2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libffi 3.99999.
5 # Report bugs to <http://github.com/atgreen/libffi/issues>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var
in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\
${$as_var+set} = xset \
122 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
135 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
140 _as_can_reexec
=no
; export _as_can_reexec
;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
149 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec
=; unset _as_can_reexec
;}
162 if test "x$CONFIG_SHELL" = x
; then
163 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required
="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev
/null
; then :
215 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
218 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
220 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir
=.
227 for as_base
in sh bash ksh sh5
; do
228 # Try only shells that exist, to save several forks.
229 as_shell
=$as_dir/$as_base
230 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
232 CONFIG_SHELL
=$as_shell as_have_required
=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
241 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
243 CONFIG_SHELL
=$SHELL as_have_required
=yes
248 if test "x$CONFIG_SHELL" != x
; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
258 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x
$as_have_required = xno
; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x
${ZSH_VERSION+set} = xset
; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://github.com/atgreen/libffi/issues about your
279 $0: system, including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
287 SHELL
=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE
= GREP_OPTIONS
=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir
=.
/$as_dir;;
332 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
336 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs
="'$as_qdir' $as_dirs"
340 as_dir
=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
366 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p
()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
409 as_val
=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status
=$1; test $as_status -eq 0 && as_status
=1
423 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit
$as_status
430 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
437 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
449 as_me
=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits
='0123456789'
473 as_cr_alnum
=$as_cr_Letters$as_cr_digits
476 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
477 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x
"$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec
=no
; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C
= ECHO_N
= ECHO_T
=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
524 rm -f conf$$ conf$$.exe conf$$.
file
525 if test -d conf$$.dir
; then
526 rm -f conf$$.dir
/conf$$.
file
529 mkdir conf$$.dir
2>/dev
/null
531 if (echo >conf$$.
file) 2>/dev
/null
; then
532 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
540 elif ln conf$$.
file conf$$
2>/dev
/null
; then
548 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
549 rmdir conf$$.dir
2>/dev
/null
551 if mkdir
-p .
2>/dev
/null
; then
552 as_mkdir_p
='mkdir -p "$as_dir"'
554 test -d .
/-p && rmdir .
/-p
559 as_executable_p
=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL
=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix
=/usr
/local
583 ac_config_libobj_dir
=.
590 # Identity of this package.
591 PACKAGE_NAME
='libffi'
592 PACKAGE_TARNAME
='libffi'
593 PACKAGE_VERSION
='3.99999'
594 PACKAGE_STRING
='libffi 3.99999'
595 PACKAGE_BUGREPORT
='http://github.com/atgreen/libffi/issues'
598 # Factoring default headers for most tests.
599 ac_includes_default
="\
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
611 # ifdef HAVE_STDLIB_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
634 ac_subst_vars
='am__EXEEXT_FALSE
639 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE
640 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE
641 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE
642 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE
643 LIBAT_BUILD_VERSIONED_SHLIB_FALSE
644 LIBAT_BUILD_VERSIONED_SHLIB_TRUE
654 FFI_EXEC_TRAMPOLINE_TABLE
655 FFI_EXEC_TRAMPOLINE_TABLE_FALSE
656 FFI_EXEC_TRAMPOLINE_TABLE_TRUE
657 HAVE_LONG_DOUBLE_VARIANT
665 MAINTAINER_MODE_FALSE
687 am__fastdepCCAS_FALSE
731 INSTALL_STRIP_PROGRAM
786 program_transform_name
799 enable_option_checking
802 enable_generated_files_in_srcdir
803 enable_dependency_tracking
810 enable_maintainer_mode
818 with_gcc_major_version_only
820 ac_precious_vars
='build_alias
830 # Initialize some variables set by options.
832 ac_init_version
=false
833 ac_unrecognized_opts
=
835 # The variables have the same names as the options, with
836 # dashes changed to underlines.
844 program_transform_name
=s
,x
,x
,
852 # Installation directory options.
853 # These are left unexpanded so users can "make install exec_prefix=/foo"
854 # and all the variables that are supposed to be based on exec_prefix
855 # by default will actually change.
856 # Use braces instead of parens because sh, perl, etc. also accept them.
857 # (The list follows the same order as the GNU Coding Standards.)
858 bindir
='${exec_prefix}/bin'
859 sbindir
='${exec_prefix}/sbin'
860 libexecdir
='${exec_prefix}/libexec'
861 datarootdir
='${prefix}/share'
862 datadir
='${datarootdir}'
863 sysconfdir
='${prefix}/etc'
864 sharedstatedir
='${prefix}/com'
865 localstatedir
='${prefix}/var'
866 includedir
='${prefix}/include'
867 oldincludedir
='/usr/include'
868 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
869 infodir
='${datarootdir}/info'
874 libdir
='${exec_prefix}/lib'
875 localedir
='${datarootdir}/locale'
876 mandir
='${datarootdir}/man'
882 # If the previous option needs an argument, assign it.
883 if test -n "$ac_prev"; then
884 eval $ac_prev=\
$ac_option
890 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
895 # Accept the important Cygnus configure options, so we can diagnose typos.
897 case $ac_dashdash$ac_option in
901 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
903 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
906 -build |
--build |
--buil |
--bui |
--bu)
907 ac_prev
=build_alias
;;
908 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
909 build_alias
=$ac_optarg ;;
911 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
912 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
913 ac_prev
=cache_file
;;
914 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
915 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
916 cache_file
=$ac_optarg ;;
919 cache_file
=config.cache
;;
921 -datadir |
--datadir |
--datadi |
--datad)
923 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
924 datadir
=$ac_optarg ;;
926 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
927 |
--dataroo |
--dataro |
--datar)
928 ac_prev
=datarootdir
;;
929 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
930 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
931 datarootdir
=$ac_optarg ;;
933 -disable-* |
--disable-*)
934 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
935 # Reject names that are not valid shell variable names.
936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
937 as_fn_error $?
"invalid feature name: $ac_useropt"
938 ac_useropt_orig
=$ac_useropt
939 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
940 case $ac_user_opts in
944 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
945 ac_unrecognized_sep
=', ';;
947 eval enable_
$ac_useropt=no
;;
949 -docdir |
--docdir |
--docdi |
--doc |
--do)
951 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
954 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
956 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
959 -enable-* |
--enable-*)
960 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
961 # Reject names that are not valid shell variable names.
962 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
963 as_fn_error $?
"invalid feature name: $ac_useropt"
964 ac_useropt_orig
=$ac_useropt
965 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966 case $ac_user_opts in
970 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
971 ac_unrecognized_sep
=', ';;
973 eval enable_
$ac_useropt=\
$ac_optarg ;;
975 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
976 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
977 |
--exec |
--exe |
--ex)
978 ac_prev
=exec_prefix
;;
979 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
980 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
981 |
--exec=* |
--exe=* |
--ex=*)
982 exec_prefix
=$ac_optarg ;;
984 -gas |
--gas |
--ga |
--g)
985 # Obsolete; use --with-gas.
988 -help |
--help |
--hel |
--he |
-h)
990 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
991 ac_init_help
=recursive
;;
992 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
993 ac_init_help
=short
;;
995 -host |
--host |
--hos |
--ho)
996 ac_prev
=host_alias
;;
997 -host=* |
--host=* |
--hos=* |
--ho=*)
998 host_alias
=$ac_optarg ;;
1000 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1002 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1004 htmldir
=$ac_optarg ;;
1006 -includedir |
--includedir |
--includedi |
--included |
--include \
1007 |
--includ |
--inclu |
--incl |
--inc)
1008 ac_prev
=includedir
;;
1009 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1010 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1011 includedir
=$ac_optarg ;;
1013 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1015 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1016 infodir
=$ac_optarg ;;
1018 -libdir |
--libdir |
--libdi |
--libd)
1020 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1021 libdir
=$ac_optarg ;;
1023 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1024 |
--libexe |
--libex |
--libe)
1025 ac_prev
=libexecdir
;;
1026 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1027 |
--libexe=* |
--libex=* |
--libe=*)
1028 libexecdir
=$ac_optarg ;;
1030 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1031 ac_prev
=localedir
;;
1032 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1033 localedir
=$ac_optarg ;;
1035 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1036 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1037 ac_prev
=localstatedir
;;
1038 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1039 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1040 localstatedir
=$ac_optarg ;;
1042 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1044 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1045 mandir
=$ac_optarg ;;
1047 -nfp |
--nfp |
--nf)
1048 # Obsolete; use --without-fp.
1051 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1052 |
--no-cr |
--no-c |
-n)
1055 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1056 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1059 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1060 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1061 |
--oldin |
--oldi |
--old |
--ol |
--o)
1062 ac_prev
=oldincludedir
;;
1063 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1064 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1065 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1066 oldincludedir
=$ac_optarg ;;
1068 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1070 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1071 prefix
=$ac_optarg ;;
1073 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1074 |
--program-pre |
--program-pr |
--program-p)
1075 ac_prev
=program_prefix
;;
1076 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1077 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1078 program_prefix
=$ac_optarg ;;
1080 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1081 |
--program-suf |
--program-su |
--program-s)
1082 ac_prev
=program_suffix
;;
1083 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1084 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1085 program_suffix
=$ac_optarg ;;
1087 -program-transform-name |
--program-transform-name \
1088 |
--program-transform-nam |
--program-transform-na \
1089 |
--program-transform-n |
--program-transform- \
1090 |
--program-transform |
--program-transfor \
1091 |
--program-transfo |
--program-transf \
1092 |
--program-trans |
--program-tran \
1093 |
--progr-tra |
--program-tr |
--program-t)
1094 ac_prev
=program_transform_name
;;
1095 -program-transform-name=* |
--program-transform-name=* \
1096 |
--program-transform-nam=* |
--program-transform-na=* \
1097 |
--program-transform-n=* |
--program-transform-=* \
1098 |
--program-transform=* |
--program-transfor=* \
1099 |
--program-transfo=* |
--program-transf=* \
1100 |
--program-trans=* |
--program-tran=* \
1101 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1102 program_transform_name
=$ac_optarg ;;
1104 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1106 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1107 pdfdir
=$ac_optarg ;;
1109 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1111 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1114 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1115 |
-silent |
--silent |
--silen |
--sile |
--sil)
1118 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1120 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1122 sbindir
=$ac_optarg ;;
1124 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1125 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1126 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1128 ac_prev
=sharedstatedir
;;
1129 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1130 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1131 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1133 sharedstatedir
=$ac_optarg ;;
1135 -site |
--site |
--sit)
1137 -site=* |
--site=* |
--sit=*)
1140 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1142 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1143 srcdir
=$ac_optarg ;;
1145 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1146 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1147 ac_prev
=sysconfdir
;;
1148 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1149 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1150 sysconfdir
=$ac_optarg ;;
1152 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1153 ac_prev
=target_alias
;;
1154 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1155 target_alias
=$ac_optarg ;;
1157 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1160 -version |
--version |
--versio |
--versi |
--vers |
-V)
1161 ac_init_version
=: ;;
1164 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1165 # Reject names that are not valid shell variable names.
1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1167 as_fn_error $?
"invalid package name: $ac_useropt"
1168 ac_useropt_orig
=$ac_useropt
1169 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1174 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1175 ac_unrecognized_sep
=', ';;
1177 eval with_
$ac_useropt=\
$ac_optarg ;;
1179 -without-* |
--without-*)
1180 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1183 as_fn_error $?
"invalid package name: $ac_useropt"
1184 ac_useropt_orig
=$ac_useropt
1185 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1190 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1191 ac_unrecognized_sep
=', ';;
1193 eval with_
$ac_useropt=no
;;
1196 # Obsolete; use --with-x.
1199 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1200 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1201 ac_prev
=x_includes
;;
1202 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1203 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1204 x_includes
=$ac_optarg ;;
1206 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1207 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1208 ac_prev
=x_libraries
;;
1209 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1210 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1211 x_libraries
=$ac_optarg ;;
1213 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1214 Try \`$0 --help' for more information"
1218 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1219 # Reject names that are not valid shell variable names.
1220 case $ac_envvar in #(
1221 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1222 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1224 eval $ac_envvar=\
$ac_optarg
1225 export $ac_envvar ;;
1228 # FIXME: should be removed in autoconf 3.0.
1229 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1230 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1231 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1232 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1238 if test -n "$ac_prev"; then
1239 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1240 as_fn_error $?
"missing argument to $ac_option"
1243 if test -n "$ac_unrecognized_opts"; then
1244 case $enable_option_checking in
1246 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1247 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1251 # Check all directory arguments for consistency.
1252 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1253 datadir sysconfdir sharedstatedir localstatedir includedir \
1254 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1255 libdir localedir mandir
1257 eval ac_val
=\$
$ac_var
1258 # Remove trailing slashes.
1261 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1262 eval $ac_var=\
$ac_val;;
1264 # Be sure to have absolute directory names.
1266 [\\/$
]* | ?
:[\\/]* ) continue;;
1267 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1269 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1272 # There might be people who depend on the old broken behavior: `$host'
1273 # used to hold the argument of --host etc.
1274 # FIXME: To remove some day.
1277 target
=$target_alias
1279 # FIXME: To remove some day.
1280 if test "x$host_alias" != x
; then
1281 if test "x$build_alias" = x
; then
1282 cross_compiling
=maybe
1283 elif test "x$build_alias" != "x$host_alias"; then
1289 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1291 test "$silent" = yes && exec 6>/dev
/null
1294 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1295 ac_ls_di
=`ls -di .` &&
1296 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1297 as_fn_error $?
"working directory cannot be determined"
1298 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1299 as_fn_error $?
"pwd does not report name of working directory"
1302 # Find the source files, if location was not specified.
1303 if test -z "$srcdir"; then
1304 ac_srcdir_defaulted
=yes
1305 # Try the directory containing this script, then the parent directory.
1306 ac_confdir
=`$as_dirname -- "$as_myself" ||
1307 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1308 X"$as_myself" : 'X\(//\)[^/]' \| \
1309 X"$as_myself" : 'X\(//\)$' \| \
1310 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1311 $as_echo X"$as_myself" |
1312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1330 if test ! -r "$srcdir/$ac_unique_file"; then
1334 ac_srcdir_defaulted
=no
1336 if test ! -r "$srcdir/$ac_unique_file"; then
1337 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1338 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1340 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1342 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1344 # When building in place, set srcdir=.
1345 if test "$ac_abs_confdir" = "$ac_pwd"; then
1348 # Remove unnecessary trailing slashes from srcdir.
1349 # Double slashes in file names in object file debugging info
1350 # mess up M-x gdb in Emacs.
1352 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1354 for ac_var
in $ac_precious_vars; do
1355 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1356 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1357 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1358 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1362 # Report the --help message.
1364 if test "$ac_init_help" = "long"; then
1365 # Omit some internal or obsolete options to make the list less imposing.
1366 # This message is too long to be a string in the A/UX 3.1 sh.
1368 \`configure' configures libffi 3.99999 to adapt to many kinds of systems.
1370 Usage: $0 [OPTION]... [VAR=VALUE]...
1372 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1373 VAR=VALUE. See below for descriptions of some of the useful variables.
1375 Defaults for the options are specified in brackets.
1378 -h, --help display this help and exit
1379 --help=short display options specific to this package
1380 --help=recursive display the short help of all the included packages
1381 -V, --version display version information and exit
1382 -q, --quiet, --silent do not print \`checking ...' messages
1383 --cache-file=FILE cache test results in FILE [disabled]
1384 -C, --config-cache alias for \`--cache-file=config.cache'
1385 -n, --no-create do not create output files
1386 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1388 Installation directories:
1389 --prefix=PREFIX install architecture-independent files in PREFIX
1390 [$ac_default_prefix]
1391 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1394 By default, \`make install' will install all the files in
1395 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1396 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1397 for instance \`--prefix=\$HOME'.
1399 For better control, use the options below.
1401 Fine tuning of the installation directories:
1402 --bindir=DIR user executables [EPREFIX/bin]
1403 --sbindir=DIR system admin executables [EPREFIX/sbin]
1404 --libexecdir=DIR program executables [EPREFIX/libexec]
1405 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1406 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1407 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1408 --libdir=DIR object code libraries [EPREFIX/lib]
1409 --includedir=DIR C header files [PREFIX/include]
1410 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1411 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1412 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1413 --infodir=DIR info documentation [DATAROOTDIR/info]
1414 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1415 --mandir=DIR man documentation [DATAROOTDIR/man]
1416 --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
1417 --htmldir=DIR html documentation [DOCDIR]
1418 --dvidir=DIR dvi documentation [DOCDIR]
1419 --pdfdir=DIR pdf documentation [DOCDIR]
1420 --psdir=DIR ps documentation [DOCDIR]
1426 --program-prefix=PREFIX prepend PREFIX to installed program names
1427 --program-suffix=SUFFIX append SUFFIX to installed program names
1428 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1431 --build=BUILD configure
for building on BUILD
[guessed
]
1432 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1433 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1437 if test -n "$ac_init_help"; then
1438 case $ac_init_help in
1439 short | recursive
) echo "Configuration of libffi 3.99999:";;
1444 --disable-option-checking ignore unrecognized
--enable/--with options
1445 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1446 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1447 --enable-multilib build many library versions
(default
)
1448 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1449 --disable-silent-rules verbose build output
(undo
: "make V=0")
1450 --enable-generated-files-in-srcdir
1451 put copies of generated files
in source dir intended
1452 for creating
source tarballs
for users without
1453 texinfo bison or flex
1454 --enable-dependency-tracking
1455 do not reject slow dependency extractors
1456 --disable-dependency-tracking
1457 speeds up one-time build
1458 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1459 --enable-static[=PKGS
] build static libraries
[default
=yes]
1460 --enable-fast-install[=PKGS
]
1461 optimize
for fast installation
[default
=yes]
1462 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1463 --enable-maintainer-mode
1464 enable make rules and dependencies not useful
(and
1465 sometimes confusing
) to the casual installer
1466 --enable-pax_emutramp enable pax emulated trampolines
, for we can
't use PROT_EXEC
1467 --enable-debug debugging mode
1468 --disable-structs omit code for struct support
1469 --disable-raw-api make the raw api unavailable
1470 --enable-purify-safety purify-safe mode
1471 --enable-symvers=STYLE enables symbol versioning of the shared library
1475 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1476 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1477 --with-pic try to use only PIC/non-PIC objects [default=use
1479 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1480 --with-toolexeclibdir=DIR
1481 install libraries built with a cross compiler within
1483 --with-gcc-major-version-only
1484 use only GCC major number in filesystem paths
1486 Some influential environment variables:
1487 CC C compiler command
1488 CFLAGS C compiler flags
1489 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1490 nonstandard directory <lib dir>
1491 LIBS libraries to pass to the linker, e.g. -l<library>
1492 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1493 you have headers in a nonstandard directory <include dir>
1494 CXX C++ compiler command
1495 CXXFLAGS C++ compiler flags
1496 CCAS assembler compiler command (defaults to CC)
1497 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1499 CXXCPP C++ preprocessor
1501 Use these variables to override the choices made by `configure' or to
help
1502 it to
find libraries and programs with nonstandard names
/locations.
1504 Report bugs to
<http
://github.com
/atgreen
/libffi
/issues
>.
1509 if test "$ac_init_help" = "recursive"; then
1510 # If there are subdirs, report their specific --help.
1511 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1512 test -d "$ac_dir" ||
1513 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1518 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1520 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1521 # A ".." for each directory in $ac_dir_suffix.
1522 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1523 case $ac_top_builddir_sub in
1524 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1525 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1528 ac_abs_top_builddir
=$ac_pwd
1529 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1530 # for backward compatibility:
1531 ac_top_builddir
=$ac_top_build_prefix
1534 .
) # We are building in place.
1536 ac_top_srcdir
=$ac_top_builddir_sub
1537 ac_abs_top_srcdir
=$ac_pwd ;;
1538 [\\/]* | ?
:[\\/]* ) # Absolute name.
1539 ac_srcdir
=$srcdir$ac_dir_suffix;
1540 ac_top_srcdir
=$srcdir
1541 ac_abs_top_srcdir
=$srcdir ;;
1543 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1544 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1545 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1547 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1549 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1550 # Check for guested configure.
1551 if test -f "$ac_srcdir/configure.gnu"; then
1553 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1554 elif test -f "$ac_srcdir/configure"; then
1556 $SHELL "$ac_srcdir/configure" --help=recursive
1558 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1560 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1564 test -n "$ac_init_help" && exit $ac_status
1565 if $ac_init_version; then
1567 libffi configure
3.99999
1568 generated by GNU Autoconf
2.69
1570 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1571 This configure
script is free software
; the Free Software Foundation
1572 gives unlimited permission to copy
, distribute and modify it.
1577 ## ------------------------ ##
1578 ## Autoconf initialization. ##
1579 ## ------------------------ ##
1581 # ac_fn_c_try_compile LINENO
1582 # --------------------------
1583 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1584 ac_fn_c_try_compile
()
1586 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1587 rm -f conftest.
$ac_objext
1588 if { { ac_try
="$ac_compile"
1590 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1591 *) ac_try_echo=$ac_try;;
1593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594 $as_echo "$ac_try_echo"; } >&5
1595 (eval "$ac_compile") 2>conftest.err
1597 if test -s conftest.err; then
1598 grep -v '^ *+' conftest.err >conftest.er1
1599 cat conftest.er1 >&5
1600 mv -f conftest.er1 conftest.err
1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 test $ac_status = 0; } && {
1604 test -z "$ac_c_werror_flag" ||
1605 test ! -s conftest.err
1606 } && test -s conftest.$ac_objext; then :
1609 $as_echo "$as_me: failed program was:" >&5
1610 sed 's/^/| /' conftest.$ac_ext >&5
1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615 as_fn_set_status $ac_retval
1617 } # ac_fn_c_try_compile
1619 # ac_fn_cxx_try_compile LINENO
1620 # ----------------------------
1621 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1622 ac_fn_cxx_try_compile ()
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 rm -f conftest.$ac_objext
1626 if { { ac_try="$ac_compile"
1628 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1629 *) ac_try_echo
=$ac_try;;
1631 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 $as_echo "$ac_try_echo"; } >&5
1633 (eval "$ac_compile") 2>conftest.err
1635 if test -s conftest.err
; then
1636 grep -v '^ *+' conftest.err
>conftest.er1
1637 cat conftest.er1
>&5
1638 mv -f conftest.er1 conftest.err
1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; } && {
1642 test -z "$ac_cxx_werror_flag" ||
1643 test ! -s conftest.err
1644 } && test -s conftest.
$ac_objext; then :
1647 $as_echo "$as_me: failed program was:" >&5
1648 sed 's/^/| /' conftest.
$ac_ext >&5
1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653 as_fn_set_status
$ac_retval
1655 } # ac_fn_cxx_try_compile
1657 # ac_fn_c_try_link LINENO
1658 # -----------------------
1659 # Try to link conftest.$ac_ext, and return whether this succeeded.
1662 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1663 rm -f conftest.
$ac_objext conftest
$ac_exeext
1664 if { { ac_try
="$ac_link"
1666 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_link") 2>conftest.err
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } && {
1680 test -z "$ac_c_werror_flag" ||
1681 test ! -s conftest.err
1682 } && test -s conftest$ac_exeext && {
1683 test "$cross_compiling" = yes ||
1684 test -x conftest$ac_exeext
1688 $as_echo "$as_me: failed program was:" >&5
1689 sed 's/^/| /' conftest.$ac_ext >&5
1693 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1694 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1695 # interfere with the next link command; also delete a directory that is
1696 # left behind by Apple's compiler. We do this before executing the actions.
1697 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699 as_fn_set_status $ac_retval
1701 } # ac_fn_c_try_link
1703 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1704 # -------------------------------------------------------
1705 # Tests whether HEADER exists and can be compiled using the include files in
1706 # INCLUDES, setting the cache variable VAR accordingly.
1707 ac_fn_c_check_header_compile ()
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 $as_echo_n "checking for $2... " >&6; }
1712 if eval \${$3+:} false; then :
1713 $as_echo_n "(cached) " >&6
1715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716 /* end confdefs.h. */
1720 if ac_fn_c_try_compile "$LINENO"; then :
1725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729 $as_echo "$ac_res" >&6; }
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732 } # ac_fn_c_check_header_compile
1734 # ac_fn_c_try_cpp LINENO
1735 # ----------------------
1736 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.err
1749 if test -s conftest.err
; then
1750 grep -v '^ *+' conftest.err
>conftest.er1
1751 cat conftest.er1
>&5
1752 mv -f conftest.er1 conftest.err
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; } > conftest.i
&& {
1756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1757 test ! -s conftest.err
1761 $as_echo "$as_me: failed program was:" >&5
1762 sed 's/^/| /' conftest.
$ac_ext >&5
1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767 as_fn_set_status
$ac_retval
1771 # ac_fn_c_try_run LINENO
1772 # ----------------------
1773 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1774 # that executables *can* be run.
1777 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1778 if { { ac_try
="$ac_link"
1780 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_link") 2>&5
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1789 { { case "(($ac_try" in
1790 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1791 *) ac_try_echo
=$ac_try;;
1793 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795 (eval "$ac_try") 2>&5
1797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798 test $ac_status = 0; }; }; then :
1801 $as_echo "$as_me: program exited with status $ac_status" >&5
1802 $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.
$ac_ext >&5
1805 ac_retval
=$ac_status
1807 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809 as_fn_set_status
$ac_retval
1813 # ac_fn_c_check_func LINENO FUNC VAR
1814 # ----------------------------------
1815 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1816 ac_fn_c_check_func
()
1818 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if eval \
${$3+:} false
; then :
1822 $as_echo_n "(cached) " >&6
1824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1825 /* end confdefs.h. */
1826 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1828 #define $2 innocuous_$2
1830 /* System header to define __stub macros and hopefully few prototypes,
1831 which can conflict with char $2 (); below.
1832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1833 <limits.h> exists even on freestanding compilers. */
1836 # include <limits.h>
1838 # include <assert.h>
1843 /* Override any GCC internal prototype to avoid an error.
1844 Use char because int might match the return type of a GCC
1845 builtin and then its argument prototype would still apply. */
1850 /* The GNU C library defines this for functions which it implements
1851 to always fail with ENOSYS. Some functions are actually named
1852 something starting with __ and the normal name is an alias. */
1853 #if defined __stub_$2 || defined __stub___$2
1865 if ac_fn_c_try_link
"$LINENO"; then :
1870 rm -f core conftest.err conftest.
$ac_objext \
1871 conftest
$ac_exeext conftest.
$ac_ext
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878 } # ac_fn_c_check_func
1880 # ac_fn_cxx_try_cpp LINENO
1881 # ------------------------
1882 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1883 ac_fn_cxx_try_cpp
()
1885 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1886 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1888 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892 $as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1895 if test -s conftest.err; then
1896 grep -v '^ *+' conftest.err >conftest.er1
1897 cat conftest.er1 >&5
1898 mv -f conftest.er1 conftest.err
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; } > conftest.i && {
1902 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1903 test ! -s conftest.err
1907 $as_echo "$as_me: failed program was:" >&5
1908 sed 's/^/| /' conftest.$ac_ext >&5
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913 as_fn_set_status $ac_retval
1915 } # ac_fn_cxx_try_cpp
1917 # ac_fn_cxx_try_link LINENO
1918 # -------------------------
1919 # Try to link conftest.$ac_ext, and return whether this succeeded.
1920 ac_fn_cxx_try_link ()
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 rm -f conftest.$ac_objext conftest$ac_exeext
1924 if { { ac_try="$ac_link"
1926 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1927 *) ac_try_echo
=$ac_try;;
1929 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 $as_echo "$ac_try_echo"; } >&5
1931 (eval "$ac_link") 2>conftest.err
1933 if test -s conftest.err
; then
1934 grep -v '^ *+' conftest.err
>conftest.er1
1935 cat conftest.er1
>&5
1936 mv -f conftest.er1 conftest.err
1938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939 test $ac_status = 0; } && {
1940 test -z "$ac_cxx_werror_flag" ||
1941 test ! -s conftest.err
1942 } && test -s conftest
$ac_exeext && {
1943 test "$cross_compiling" = yes ||
1944 test -x conftest
$ac_exeext
1948 $as_echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.
$ac_ext >&5
1953 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1954 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1955 # interfere with the next link command; also delete a directory that is
1956 # left behind by Apple's compiler. We do this before executing the actions.
1957 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959 as_fn_set_status
$ac_retval
1961 } # ac_fn_cxx_try_link
1963 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1964 # --------------------------------------------
1965 # Tries to find the compile-time value of EXPR in a program that includes
1966 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1968 ac_fn_c_compute_int
()
1970 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1971 if test "$cross_compiling" = yes; then
1972 # Depending upon the size, compute the lo and hi bounds.
1973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1979 static int test_array [1 - 2 * !(($2) >= 0)];
1981 return test_array [0];
1987 if ac_fn_c_try_compile
"$LINENO"; then :
1990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
1996 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1998 return test_array [0];
2004 if ac_fn_c_try_compile
"$LINENO"; then :
2005 ac_hi
=$ac_mid; break
2007 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2008 if test $ac_lo -le $ac_mid; then
2012 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2014 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2023 static int test_array [1 - 2 * !(($2) < 0)];
2025 return test_array [0];
2031 if ac_fn_c_try_compile
"$LINENO"; then :
2034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2040 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2042 return test_array [0];
2048 if ac_fn_c_try_compile
"$LINENO"; then :
2049 ac_lo
=$ac_mid; break
2051 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2052 if test $ac_mid -le $ac_hi; then
2056 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2058 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2063 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2065 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2066 # Binary search between lo and hi bounds.
2067 while test "x$ac_lo" != "x$ac_hi"; do
2068 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2075 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2077 return test_array [0];
2083 if ac_fn_c_try_compile
"$LINENO"; then :
2086 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2091 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2096 /* end confdefs.h. */
2098 static long int longval () { return $2; }
2099 static unsigned long int ulongval () { return $2; }
2106 FILE *f = fopen ("conftest.val", "w");
2111 long int i = longval ();
2114 fprintf (f, "%ld", i);
2118 unsigned long int i = ulongval ();
2121 fprintf (f, "%lu", i);
2123 /* Do not output a trailing newline, as this causes \r\n confusion
2124 on some platforms. */
2125 return ferror (f) || fclose (f) != 0;
2131 if ac_fn_c_try_run
"$LINENO"; then :
2132 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2136 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2137 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2141 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2142 as_fn_set_status
$ac_retval
2144 } # ac_fn_c_compute_int
2146 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2147 # -------------------------------------------------------
2148 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2149 # the include files in INCLUDES and setting the cache variable VAR
2151 ac_fn_c_check_header_mongrel
()
2153 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2154 if eval \
${$3+:} false
; then :
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2156 $as_echo_n "checking for $2... " >&6; }
2157 if eval \
${$3+:} false
; then :
2158 $as_echo_n "(cached) " >&6
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2162 $as_echo "$ac_res" >&6; }
2164 # Is the header compilable?
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2166 $as_echo_n "checking $2 usability... " >&6; }
2167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h. */
2172 if ac_fn_c_try_compile
"$LINENO"; then :
2173 ac_header_compiler
=yes
2175 ac_header_compiler
=no
2177 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2179 $as_echo "$ac_header_compiler" >&6; }
2181 # Is the header present?
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2183 $as_echo_n "checking $2 presence... " >&6; }
2184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h. */
2188 if ac_fn_c_try_cpp
"$LINENO"; then :
2189 ac_header_preproc
=yes
2191 ac_header_preproc
=no
2193 rm -f conftest.err conftest.i conftest.
$ac_ext
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2195 $as_echo "$ac_header_preproc" >&6; }
2197 # So? What about this header?
2198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2201 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2203 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2207 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2209 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2211 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2213 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2215 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2216 ( $as_echo "## ------------------------------------------------------ ##
2217 ## Report this to http://github.com/atgreen/libffi/issues ##
2218 ## ------------------------------------------------------ ##"
2219 ) |
sed "s/^/$as_me: WARNING: /" >&2
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2223 $as_echo_n "checking for $2... " >&6; }
2224 if eval \
${$3+:} false
; then :
2225 $as_echo_n "(cached) " >&6
2227 eval "$3=\$ac_header_compiler"
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2231 $as_echo "$ac_res" >&6; }
2233 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2235 } # ac_fn_c_check_header_mongrel
2237 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2238 # -------------------------------------------
2239 # Tests whether TYPE exists after having included INCLUDES, setting cache
2240 # variable VAR accordingly.
2241 ac_fn_c_check_type
()
2243 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2245 $as_echo_n "checking for $2... " >&6; }
2246 if eval \
${$3+:} false
; then :
2247 $as_echo_n "(cached) " >&6
2250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2251 /* end confdefs.h. */
2262 if ac_fn_c_try_compile
"$LINENO"; then :
2263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h. */
2275 if ac_fn_c_try_compile
"$LINENO"; then :
2280 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2282 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2286 $as_echo "$ac_res" >&6; }
2287 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2289 } # ac_fn_c_check_type
2290 cat >config.log
<<_ACEOF
2291 This file contains any messages produced by compilers while
2292 running configure, to aid debugging if configure makes a mistake.
2294 It was created by libffi $as_me 3.99999, which was
2295 generated by GNU Autoconf 2.69. Invocation command line was
2307 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2308 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2309 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2310 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2311 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2313 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2314 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2316 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2317 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2318 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2319 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2320 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2321 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2322 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2326 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2330 test -z "$as_dir" && as_dir
=.
2331 $as_echo "PATH: $as_dir"
2347 # Keep a trace of the command line.
2348 # Strip out --no-create and --no-recursion so they do not pile up.
2349 # Strip out --silent because we don't want to record it for future runs.
2350 # Also quote any args containing shell meta-characters.
2351 # Make two passes to allow for proper duplicate-argument suppression.
2355 ac_must_keep_next
=false
2361 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2362 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2363 |
-silent |
--silent |
--silen |
--sile |
--sil)
2366 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2369 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2371 as_fn_append ac_configure_args1
" '$ac_arg'"
2372 if test $ac_must_keep_next = true
; then
2373 ac_must_keep_next
=false
# Got value, back to normal.
2376 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2377 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2378 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2379 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2380 case "$ac_configure_args0 " in
2381 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2384 -* ) ac_must_keep_next
=true
;;
2387 as_fn_append ac_configure_args
" '$ac_arg'"
2392 { ac_configure_args0
=; unset ac_configure_args0
;}
2393 { ac_configure_args1
=; unset ac_configure_args1
;}
2395 # When interrupted or exit'd, cleanup temporary files, and complete
2396 # config.log. We remove comments because anyway the quotes in there
2397 # would cause problems or look ugly.
2398 # WARNING: Use '\'' to represent an apostrophe within the trap.
2399 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2400 trap 'exit_status=$?
2401 # Save into config.log some information that might help in debugging.
2405 $as_echo "## ---------------- ##
2406 ## Cache variables. ##
2407 ## ---------------- ##"
2409 # The following way of writing the cache mishandles newlines in values,
2411 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2412 eval ac_val=\$$ac_var
2416 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2417 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2420 _ | IFS | as_nl) ;; #(
2421 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2422 *) { eval $ac_var=; unset $ac_var;} ;;
2427 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2428 *${as_nl}ac_space=\ *)
2430 "s/'\''/'\''\\\\'\'''\''/g;
2431 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2434 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2441 $as_echo "## ----------------- ##
2442 ## Output variables. ##
2443 ## ----------------- ##"
2445 for ac_var in $ac_subst_vars
2447 eval ac_val=\$$ac_var
2449 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2451 $as_echo "$ac_var='\''$ac_val'\''"
2455 if test -n "$ac_subst_files"; then
2456 $as_echo "## ------------------- ##
2457 ## File substitutions. ##
2458 ## ------------------- ##"
2460 for ac_var
in $ac_subst_files
2462 eval ac_val
=\$
$ac_var
2464 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2466 $as_echo "$ac_var='\''$ac_val'\''"
2471 if test -s confdefs.h; then
2472 $as_echo "## ----------- ##
2479 test "$ac_signal" != 0 &&
2480 $as_echo "$as_me: caught signal $ac_signal"
2481 $as_echo "$as_me: exit $exit_status"
2483 rm -f core *.core core.conftest.* &&
2484 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2487 for ac_signal
in 1 2 13 15; do
2488 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2492 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2493 rm -f -r conftest
* confdefs.h
2495 $as_echo "/* confdefs.h */" > confdefs.h
2497 # Predefined preprocessor variables.
2499 cat >>confdefs.h
<<_ACEOF
2500 #define PACKAGE_NAME "$PACKAGE_NAME"
2503 cat >>confdefs.h
<<_ACEOF
2504 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2507 cat >>confdefs.h
<<_ACEOF
2508 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2511 cat >>confdefs.h
<<_ACEOF
2512 #define PACKAGE_STRING "$PACKAGE_STRING"
2515 cat >>confdefs.h
<<_ACEOF
2516 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2519 cat >>confdefs.h
<<_ACEOF
2520 #define PACKAGE_URL "$PACKAGE_URL"
2524 # Let the site file select an alternate cache file if it wants to.
2525 # Prefer an explicitly selected file to automatically selected ones.
2528 if test -n "$CONFIG_SITE"; then
2529 # We do not want a PATH search for config.site.
2530 case $CONFIG_SITE in #((
2531 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2532 */*) ac_site_file1
=$CONFIG_SITE;;
2533 *) ac_site_file1
=.
/$CONFIG_SITE;;
2535 elif test "x$prefix" != xNONE
; then
2536 ac_site_file1
=$prefix/share
/config.site
2537 ac_site_file2
=$prefix/etc
/config.site
2539 ac_site_file1
=$ac_default_prefix/share
/config.site
2540 ac_site_file2
=$ac_default_prefix/etc
/config.site
2542 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2544 test "x$ac_site_file" = xNONE
&& continue
2545 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2547 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2548 sed 's/^/| /' "$ac_site_file" >&5
2550 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2552 as_fn_error $?
"failed to load site script $ac_site_file
2553 See \`config.log' for more details" "$LINENO" 5; }
2557 if test -r "$cache_file"; then
2558 # Some versions of bash will fail to source /dev/null (special files
2559 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2560 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2562 $as_echo "$as_me: loading cache $cache_file" >&6;}
2564 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2565 *) .
"./$cache_file";;
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2570 $as_echo "$as_me: creating cache $cache_file" >&6;}
2574 # Check that the precious variables saved in the cache have kept the same
2576 ac_cache_corrupted
=false
2577 for ac_var
in $ac_precious_vars; do
2578 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2579 eval ac_new_set
=\
$ac_env_${ac_var}_set
2580 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2581 eval ac_new_val
=\
$ac_env_${ac_var}_value
2582 case $ac_old_set,$ac_new_set in
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2585 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2586 ac_cache_corrupted
=: ;;
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2589 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2590 ac_cache_corrupted
=: ;;
2593 if test "x$ac_old_val" != "x$ac_new_val"; then
2594 # differences in whitespace do not lead to failure.
2595 ac_old_val_w
=`echo x $ac_old_val`
2596 ac_new_val_w
=`echo x $ac_new_val`
2597 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2599 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2600 ac_cache_corrupted
=:
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2603 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2604 eval $ac_var=\
$ac_old_val
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2607 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2609 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2612 # Pass precious variables to config.status.
2613 if test "$ac_new_set" = set; then
2615 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2616 *) ac_arg
=$ac_var=$ac_new_val ;;
2618 case " $ac_configure_args " in
2619 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2620 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2624 if $ac_cache_corrupted; then
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2628 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2629 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2631 ## -------------------- ##
2632 ## Main body of script. ##
2633 ## -------------------- ##
2636 ac_cpp
='$CPP $CPPFLAGS'
2637 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2638 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2639 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2645 ac_config_headers
="$ac_config_headers fficonfig.h"
2648 # Default to --enable-multilib
2649 # Check whether --enable-multilib was given.
2650 if test "${enable_multilib+set}" = set; then :
2651 enableval
=$enable_multilib; case "$enableval" in
2652 yes) multilib
=yes ;;
2654 *) as_fn_error $?
"bad value $enableval for multilib option" "$LINENO" 5 ;;
2661 # We may get other options which we leave undocumented:
2662 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2663 # See config-ml.in if you want the gory details.
2665 if test "$srcdir" = "."; then
2666 if test "$with_target_subdir" != "."; then
2667 multi_basedir
="$srcdir/$with_multisrctop../.."
2669 multi_basedir
="$srcdir/$with_multisrctop.."
2672 multi_basedir
="$srcdir/.."
2676 # Even if the default multilib is not a cross compilation,
2677 # it may be that some of the other multilibs are.
2678 if test $cross_compiling = no
&& test $multilib = yes \
2679 && test "x${with_multisubdir}" != x
; then
2680 cross_compiling
=maybe
2683 ac_config_commands
="$ac_config_commands default-1"
2687 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2688 if test -f "$ac_dir/install-sh"; then
2690 ac_install_sh
="$ac_aux_dir/install-sh -c"
2692 elif test -f "$ac_dir/install.sh"; then
2694 ac_install_sh
="$ac_aux_dir/install.sh -c"
2696 elif test -f "$ac_dir/shtool"; then
2698 ac_install_sh
="$ac_aux_dir/shtool install -c"
2702 if test -z "$ac_aux_dir"; then
2703 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2706 # These three variables are undocumented and unsupported,
2707 # and are intended to be withdrawn in a future Autoconf release.
2708 # They can cause serious problems if a builder's source tree is in a directory
2709 # whose full name contains unusual characters.
2710 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2711 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2712 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2715 # Make sure we can run config.sub.
2716 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2717 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2720 $as_echo_n "checking build system type... " >&6; }
2721 if ${ac_cv_build+:} false
; then :
2722 $as_echo_n "(cached) " >&6
2724 ac_build_alias
=$build_alias
2725 test "x$ac_build_alias" = x
&&
2726 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2727 test "x$ac_build_alias" = x
&&
2728 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2729 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2730 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2734 $as_echo "$ac_cv_build" >&6; }
2735 case $ac_cv_build in
2737 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2740 ac_save_IFS
=$IFS; IFS
='-'
2746 # Remember, the first character of IFS is used to create $*,
2747 # except with old shells:
2750 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2754 $as_echo_n "checking host system type... " >&6; }
2755 if ${ac_cv_host+:} false
; then :
2756 $as_echo_n "(cached) " >&6
2758 if test "x$host_alias" = x
; then
2759 ac_cv_host
=$ac_cv_build
2761 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2762 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2767 $as_echo "$ac_cv_host" >&6; }
2770 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2773 ac_save_IFS
=$IFS; IFS
='-'
2779 # Remember, the first character of IFS is used to create $*,
2780 # except with old shells:
2783 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2787 $as_echo_n "checking target system type... " >&6; }
2788 if ${ac_cv_target+:} false
; then :
2789 $as_echo_n "(cached) " >&6
2791 if test "x$target_alias" = x
; then
2792 ac_cv_target
=$ac_cv_host
2794 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2795 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2800 $as_echo "$ac_cv_target" >&6; }
2801 case $ac_cv_target in
2803 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2805 target
=$ac_cv_target
2806 ac_save_IFS
=$IFS; IFS
='-'
2812 # Remember, the first character of IFS is used to create $*,
2813 # except with old shells:
2816 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2819 # The aliases save the names the user supplied, while $host etc.
2820 # will get canonicalized.
2821 test -n "$target_alias" &&
2822 test "$program_prefix$program_suffix$program_transform_name" = \
2824 program_prefix
=${target_alias}-
2826 target_alias
=${target_alias-$host_alias}
2828 am__api_version
='1.15'
2830 # Find a good install program. We prefer a C program (faster),
2831 # so one script is as good as another. But avoid the broken or
2832 # incompatible versions:
2833 # SysV /etc/install, /usr/sbin/install
2834 # SunOS /usr/etc/install
2835 # IRIX /sbin/install
2837 # AmigaOS /C/install, which installs bootblocks on floppy discs
2838 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2839 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2840 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2841 # OS/2's system install, which has a completely different semantic
2842 # ./install, which can be erroneously created by make from ./install.sh.
2843 # Reject install programs that cannot install multiple files.
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2845 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2846 if test -z "$INSTALL"; then
2847 if ${ac_cv_path_install+:} false
; then :
2848 $as_echo_n "(cached) " >&6
2850 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2854 test -z "$as_dir" && as_dir
=.
2855 # Account for people who put trailing slashes in PATH elements.
2856 case $as_dir/ in #((
2857 .
/ | .
// |
/[cC
]/* | \
2858 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2859 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2862 # OSF1 and SCO ODT 3.0 have their own names for install.
2863 # Don't use installbsd from OSF since it installs stuff as root
2865 for ac_prog
in ginstall scoinst
install; do
2866 for ac_exec_ext
in '' $ac_executable_extensions; do
2867 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2868 if test $ac_prog = install &&
2869 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2870 # AIX install. It has an incompatible calling convention.
2872 elif test $ac_prog = install &&
2873 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2874 # program-specific install script used by HP pwplus--don't use.
2877 rm -rf conftest.one conftest.two conftest.dir
2878 echo one
> conftest.one
2879 echo two
> conftest.two
2881 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2882 test -s conftest.one
&& test -s conftest.two
&&
2883 test -s conftest.dir
/conftest.one
&&
2884 test -s conftest.dir
/conftest.two
2886 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2899 rm -rf conftest.one conftest.two conftest.dir
2902 if test "${ac_cv_path_install+set}" = set; then
2903 INSTALL
=$ac_cv_path_install
2905 # As a last resort, use the slow shell script. Don't cache a
2906 # value for INSTALL within a source directory, because that will
2907 # break other packages using the cache if that directory is
2908 # removed, or if the value is a relative name.
2909 INSTALL
=$ac_install_sh
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2913 $as_echo "$INSTALL" >&6; }
2915 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2916 # It thinks the first close brace ends the variable substitution.
2917 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2919 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2921 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2924 $as_echo_n "checking whether build environment is sane... " >&6; }
2925 # Reject unsafe characters in $srcdir or the absolute working directory
2926 # name. Accept space and tab only in the latter.
2930 *[\\\"\
#\$\&\'\`$am_lf]*)
2931 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2934 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2935 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2938 # Do 'set' in a subshell so we don't clobber the current shell's
2939 # arguments. Must try -L first in case configure is actually a
2940 # symlink; some systems play weird games with the mod time of symlinks
2941 # (eg FreeBSD returns the mod time of the symlink's containing
2945 for am_try
in 1 2; do
2946 echo "timestamp, slept: $am_has_slept" > conftest.
file
2947 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2948 if test "$*" = "X"; then
2950 set X
`ls -t "$srcdir/configure" conftest.file`
2952 if test "$*" != "X $srcdir/configure conftest.file" \
2953 && test "$*" != "X conftest.file $srcdir/configure"; then
2955 # If neither matched, then we have a broken ls. This can happen
2956 # if, for instance, CONFIG_SHELL is bash and it inherits a
2957 # broken ls alias from the environment. This has actually
2958 # happened. Such a system could not be considered "sane".
2959 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2960 alias in your environment" "$LINENO" 5
2962 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2969 test "$2" = conftest.
file
2975 as_fn_error $?
"newly created file is older than distributed files!
2976 Check your system clock" "$LINENO" 5
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2979 $as_echo "yes" >&6; }
2980 # If we didn't sleep, we still need to ensure time stamps of config.status and
2981 # generated files are strictly newer.
2983 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2990 test "$program_prefix" != NONE
&&
2991 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2992 # Use a double $ so make ignores it.
2993 test "$program_suffix" != NONE
&&
2994 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2995 # Double any \ or $.
2996 # By default was `s,x,x', remove it if useless.
2997 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2998 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3000 # Expand $ac_aux_dir to an absolute path.
3001 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
3003 if test x
"${MISSING+set}" != xset
; then
3006 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3008 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3011 # Use eval to expand $SHELL
3012 if eval "$MISSING --is-lightweight"; then
3013 am_missing_run
="$MISSING "
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3017 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3020 if test x
"${install_sh+set}" != xset
; then
3023 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3025 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3029 # Installed binaries are usually stripped using 'strip' when the user
3030 # run "make install-strip". However 'strip' might not be the right
3031 # tool to use in cross-compilation environments, therefore Automake
3032 # will honor the 'STRIP' environment variable to overrule this program.
3033 if test "$cross_compiling" != no
; then
3034 if test -n "$ac_tool_prefix"; then
3035 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3036 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3038 $as_echo_n "checking for $ac_word... " >&6; }
3039 if ${ac_cv_prog_STRIP+:} false
; then :
3040 $as_echo_n "(cached) " >&6
3042 if test -n "$STRIP"; then
3043 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3045 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3049 test -z "$as_dir" && as_dir
=.
3050 for ac_exec_ext
in '' $ac_executable_extensions; do
3051 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3052 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3062 STRIP
=$ac_cv_prog_STRIP
3063 if test -n "$STRIP"; then
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3065 $as_echo "$STRIP" >&6; }
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3068 $as_echo "no" >&6; }
3073 if test -z "$ac_cv_prog_STRIP"; then
3075 # Extract the first word of "strip", so it can be a program name with args.
3076 set dummy strip
; ac_word
=$2
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078 $as_echo_n "checking for $ac_word... " >&6; }
3079 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3080 $as_echo_n "(cached) " >&6
3082 if test -n "$ac_ct_STRIP"; then
3083 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3085 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3089 test -z "$as_dir" && as_dir
=.
3090 for ac_exec_ext
in '' $ac_executable_extensions; do
3091 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3092 ac_cv_prog_ac_ct_STRIP
="strip"
3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3102 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3103 if test -n "$ac_ct_STRIP"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3105 $as_echo "$ac_ct_STRIP" >&6; }
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3111 if test "x$ac_ct_STRIP" = x
; then
3114 case $cross_compiling:$ac_tool_warned in
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3118 ac_tool_warned
=yes ;;
3123 STRIP
="$ac_cv_prog_STRIP"
3127 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3130 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3131 if test -z "$MKDIR_P"; then
3132 if ${ac_cv_path_mkdir+:} false
; then :
3133 $as_echo_n "(cached) " >&6
3135 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3136 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3139 test -z "$as_dir" && as_dir
=.
3140 for ac_prog
in mkdir gmkdir
; do
3141 for ac_exec_ext
in '' $ac_executable_extensions; do
3142 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3143 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3144 'mkdir (GNU coreutils) '* | \
3145 'mkdir (coreutils) '* | \
3146 'mkdir (fileutils) '4.1*)
3147 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3157 test -d .
/--version && rmdir .
/--version
3158 if test "${ac_cv_path_mkdir+set}" = set; then
3159 MKDIR_P
="$ac_cv_path_mkdir -p"
3161 # As a last resort, use the slow shell script. Don't cache a
3162 # value for MKDIR_P within a source directory, because that will
3163 # break other packages using the cache if that directory is
3164 # removed, or if the value is a relative name.
3165 MKDIR_P
="$ac_install_sh -d"
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3169 $as_echo "$MKDIR_P" >&6; }
3171 for ac_prog
in gawk mawk nawk
awk
3173 # Extract the first word of "$ac_prog", so it can be a program name with args.
3174 set dummy
$ac_prog; ac_word
=$2
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3176 $as_echo_n "checking for $ac_word... " >&6; }
3177 if ${ac_cv_prog_AWK+:} false
; then :
3178 $as_echo_n "(cached) " >&6
3180 if test -n "$AWK"; then
3181 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3187 test -z "$as_dir" && as_dir
=.
3188 for ac_exec_ext
in '' $ac_executable_extensions; do
3189 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3190 ac_cv_prog_AWK
="$ac_prog"
3191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3201 if test -n "$AWK"; then
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3203 $as_echo "$AWK" >&6; }
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206 $as_echo "no" >&6; }
3210 test -n "$AWK" && break
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3214 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3216 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3217 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3218 $as_echo_n "(cached) " >&6
3220 cat >conftest.
make <<\_ACEOF
3223 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3225 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3226 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3228 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3230 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3234 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3236 $as_echo "yes" >&6; }
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240 $as_echo "no" >&6; }
3241 SET_MAKE
="MAKE=${MAKE-make}"
3244 rm -rf .tst
2>/dev
/null
3245 mkdir .tst
2>/dev
/null
3246 if test -d .tst
; then
3251 rmdir .tst
2>/dev
/null
3253 # Check whether --enable-silent-rules was given.
3254 if test "${enable_silent_rules+set}" = set; then :
3255 enableval
=$enable_silent_rules;
3258 case $enable_silent_rules in # (((
3259 yes) AM_DEFAULT_VERBOSITY
=0;;
3260 no
) AM_DEFAULT_VERBOSITY
=1;;
3261 *) AM_DEFAULT_VERBOSITY
=1;;
3263 am_make
=${MAKE-make}
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3265 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3266 if ${am_cv_make_support_nested_variables+:} false
; then :
3267 $as_echo_n "(cached) " >&6
3269 if $as_echo 'TRUE=$(BAR$(V))
3275 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3276 am_cv_make_support_nested_variables
=yes
3278 am_cv_make_support_nested_variables
=no
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3282 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3283 if test $am_cv_make_support_nested_variables = yes; then
3285 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3287 AM_V
=$AM_DEFAULT_VERBOSITY
3288 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3292 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3293 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3294 # is not polluted with repeated "-I."
3295 am__isrc
=' -I$(srcdir)'
3296 # test to see if srcdir already configured
3297 if test -f $srcdir/config.status
; then
3298 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3302 # test whether we have cygpath
3303 if test -z "$CYGPATH_W"; then
3304 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3305 CYGPATH_W
='cygpath -w'
3312 # Define the identity of the package.
3317 cat >>confdefs.h
<<_ACEOF
3318 #define PACKAGE "$PACKAGE"
3322 cat >>confdefs.h
<<_ACEOF
3323 #define VERSION "$VERSION"
3326 # Some tools Automake needs.
3328 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3331 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3334 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3337 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3340 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3342 # For better backward compatibility. To be removed once Automake 1.9.x
3343 # dies out for good. For more background, see:
3344 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3345 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3346 mkdir_p
='$(MKDIR_P)'
3348 # We need awk for the "check" target (and possibly the TAP driver). The
3349 # system "awk" is bad on some platforms.
3350 # Always define AMTAR for backward compatibility. Yes, it's still used
3351 # in the wild :-( We should find a proper way to deprecate it ...
3355 # We'll loop over all known methods to create a tar archive until one works.
3356 _am_tools
='gnutar pax cpio none'
3358 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3365 # POSIX will say in a future version that running "rm -f" with no argument
3366 # is OK; and we want to be able to make that assumption in our Makefile
3367 # recipes. So use an aggressive probe to check that the usage we want is
3368 # actually supported "in the wild" to an acceptable degree.
3369 # See automake bug#10828.
3370 # To make any issue more visible, cause the running configure to be aborted
3371 # by default if the 'rm' program in use doesn't match our expectations; the
3372 # user can still override this though.
3373 if rm -f && rm -fr && rm -rf; then : OK
; else
3377 Your 'rm' program seems unable to run without file operands specified
3378 on the command line, even when the '-f' option is present. This is contrary
3379 to the behaviour of most rm programs out there, and not conforming with
3380 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3382 Please tell bug-automake@gnu.org about your system, including the value
3383 of your $PATH and any error possibly output before this message. This
3384 can help us improve future automake versions.
3387 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3388 echo 'Configuration will proceed anyway, since you have set the' >&2
3389 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3393 Aborting the configuration process, to ensure you take notice of the issue.
3395 You can download and install GNU coreutils to get an 'rm' implementation
3396 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3398 If you want to complete the configuration process using your problematic
3399 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3400 to "yes", and re-run configure.
3403 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3408 # See if makeinfo has been installed and is modern enough
3409 # that we can use it.
3411 # Extract the first word of "makeinfo", so it can be a program name with args.
3412 set dummy makeinfo
; ac_word
=$2
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3414 $as_echo_n "checking for $ac_word... " >&6; }
3415 if ${ac_cv_prog_MAKEINFO+:} false
; then :
3416 $as_echo_n "(cached) " >&6
3418 if test -n "$MAKEINFO"; then
3419 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
3421 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3425 test -z "$as_dir" && as_dir
=.
3426 for ac_exec_ext
in '' $ac_executable_extensions; do
3427 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3428 ac_cv_prog_MAKEINFO
="makeinfo"
3429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3438 MAKEINFO
=$ac_cv_prog_MAKEINFO
3439 if test -n "$MAKEINFO"; then
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
3441 $as_echo "$MAKEINFO" >&6; }
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444 $as_echo "no" >&6; }
3448 if test -n "$MAKEINFO"; then
3449 # Found it, now check the version.
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
3451 $as_echo_n "checking for modern makeinfo... " >&6; }
3452 if ${gcc_cv_prog_makeinfo_modern+:} false
; then :
3453 $as_echo_n "(cached) " >&6
3455 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
3456 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3458 case $ac_prog_version in
3459 '') gcc_cv_prog_makeinfo_modern
=no
;;
3460 4.
[4-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
3461 *) gcc_cv_prog_makeinfo_modern
=no
;;
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
3466 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
3468 gcc_cv_prog_makeinfo_modern
=no
3470 if test $gcc_cv_prog_makeinfo_modern = no
; then
3471 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
3474 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
3476 BUILD_INFO_FALSE
='#'
3483 # We would like our source tree to be readonly. However when releases or
3484 # pre-releases are generated, the flex/bison generated files as well as the
3485 # various formats of manuals need to be included along with the rest of the
3486 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
3489 $as_echo_n "checking generated-files-in-srcdir... " >&6; }
3490 # Check whether --enable-generated-files-in-srcdir was given.
3491 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3492 enableval
=$enable_generated_files_in_srcdir; case "$enableval" in
3493 yes) enable_generated_files_in_srcdir
=yes ;;
3494 no
) enable_generated_files_in_srcdir
=no
;;
3495 *) as_fn_error $?
"Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3498 enable_generated_files_in_srcdir
=no
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
3502 $as_echo "$enable_generated_files_in_srcdir" >&6; }
3503 if test "$enable_generated_files_in_srcdir" = yes; then
3512 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3513 # We must force CC to /not/ be precious variables; otherwise
3514 # the wrong, non-multilib-adjusted value will be used in multilibs.
3515 # As a side effect, we have to subst CFLAGS ourselves.
3516 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
3517 # defaults of its own if none are provided.
3523 ac_cpp
='$CPP $CPPFLAGS'
3524 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3525 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3526 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3527 if test -n "$ac_tool_prefix"; then
3528 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3529 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3531 $as_echo_n "checking for $ac_word... " >&6; }
3532 if ${ac_cv_prog_CC+:} false
; then :
3533 $as_echo_n "(cached) " >&6
3535 if test -n "$CC"; then
3536 ac_cv_prog_CC
="$CC" # Let the user override the test.
3538 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3542 test -z "$as_dir" && as_dir
=.
3543 for ac_exec_ext
in '' $ac_executable_extensions; do
3544 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3545 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3556 if test -n "$CC"; then
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3558 $as_echo "$CC" >&6; }
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3561 $as_echo "no" >&6; }
3566 if test -z "$ac_cv_prog_CC"; then
3568 # Extract the first word of "gcc", so it can be a program name with args.
3569 set dummy gcc
; ac_word
=$2
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3571 $as_echo_n "checking for $ac_word... " >&6; }
3572 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3573 $as_echo_n "(cached) " >&6
3575 if test -n "$ac_ct_CC"; then
3576 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3578 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3582 test -z "$as_dir" && as_dir
=.
3583 for ac_exec_ext
in '' $ac_executable_extensions; do
3584 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3585 ac_cv_prog_ac_ct_CC
="gcc"
3586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3595 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3596 if test -n "$ac_ct_CC"; then
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3598 $as_echo "$ac_ct_CC" >&6; }
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3601 $as_echo "no" >&6; }
3604 if test "x$ac_ct_CC" = x
; then
3607 case $cross_compiling:$ac_tool_warned in
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3611 ac_tool_warned
=yes ;;
3619 if test -z "$CC"; then
3620 if test -n "$ac_tool_prefix"; then
3621 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3622 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3624 $as_echo_n "checking for $ac_word... " >&6; }
3625 if ${ac_cv_prog_CC+:} false
; then :
3626 $as_echo_n "(cached) " >&6
3628 if test -n "$CC"; then
3629 ac_cv_prog_CC
="$CC" # Let the user override the test.
3631 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3635 test -z "$as_dir" && as_dir
=.
3636 for ac_exec_ext
in '' $ac_executable_extensions; do
3637 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3638 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3649 if test -n "$CC"; then
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3651 $as_echo "$CC" >&6; }
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3654 $as_echo "no" >&6; }
3660 if test -z "$CC"; then
3661 # Extract the first word of "cc", so it can be a program name with args.
3662 set dummy cc
; ac_word
=$2
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3664 $as_echo_n "checking for $ac_word... " >&6; }
3665 if ${ac_cv_prog_CC+:} false
; then :
3666 $as_echo_n "(cached) " >&6
3668 if test -n "$CC"; then
3669 ac_cv_prog_CC
="$CC" # Let the user override the test.
3672 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3676 test -z "$as_dir" && as_dir
=.
3677 for ac_exec_ext
in '' $ac_executable_extensions; do
3678 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3679 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3680 ac_prog_rejected
=yes
3684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3691 if test $ac_prog_rejected = yes; then
3692 # We found a bogon in the path, so make sure we never use it.
3693 set dummy
$ac_cv_prog_CC
3695 if test $# != 0; then
3696 # We chose a different compiler from the bogus one.
3697 # However, it has the same basename, so the bogon will be chosen
3698 # first if we set CC to just the basename; use the full file name.
3700 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3706 if test -n "$CC"; then
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3708 $as_echo "$CC" >&6; }
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3711 $as_echo "no" >&6; }
3716 if test -z "$CC"; then
3717 if test -n "$ac_tool_prefix"; then
3718 for ac_prog
in cl.exe
3720 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3721 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3723 $as_echo_n "checking for $ac_word... " >&6; }
3724 if ${ac_cv_prog_CC+:} false
; then :
3725 $as_echo_n "(cached) " >&6
3727 if test -n "$CC"; then
3728 ac_cv_prog_CC
="$CC" # Let the user override the test.
3730 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3734 test -z "$as_dir" && as_dir
=.
3735 for ac_exec_ext
in '' $ac_executable_extensions; do
3736 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3737 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3748 if test -n "$CC"; then
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3750 $as_echo "$CC" >&6; }
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3753 $as_echo "no" >&6; }
3757 test -n "$CC" && break
3760 if test -z "$CC"; then
3762 for ac_prog
in cl.exe
3764 # Extract the first word of "$ac_prog", so it can be a program name with args.
3765 set dummy
$ac_prog; ac_word
=$2
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3767 $as_echo_n "checking for $ac_word... " >&6; }
3768 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3769 $as_echo_n "(cached) " >&6
3771 if test -n "$ac_ct_CC"; then
3772 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3774 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3778 test -z "$as_dir" && as_dir
=.
3779 for ac_exec_ext
in '' $ac_executable_extensions; do
3780 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3781 ac_cv_prog_ac_ct_CC
="$ac_prog"
3782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3791 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3792 if test -n "$ac_ct_CC"; then
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3794 $as_echo "$ac_ct_CC" >&6; }
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3797 $as_echo "no" >&6; }
3801 test -n "$ac_ct_CC" && break
3804 if test "x$ac_ct_CC" = x
; then
3807 case $cross_compiling:$ac_tool_warned in
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3811 ac_tool_warned
=yes ;;
3820 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3822 as_fn_error $?
"no acceptable C compiler found in \$PATH
3823 See \`config.log' for more details" "$LINENO" 5; }
3825 # Provide some information about the compiler.
3826 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3829 for ac_option
in --version -v -V -qversion; do
3830 { { ac_try
="$ac_compiler $ac_option >&5"
3832 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3833 *) ac_try_echo=$ac_try;;
3835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3836 $as_echo "$ac_try_echo"; } >&5
3837 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3839 if test -s conftest.err; then
3841 ... rest of stderr output deleted ...
3842 10q' conftest.err >conftest.er1
3843 cat conftest.er1 >&5
3845 rm -f conftest.er1 conftest.err
3846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3847 test $ac_status = 0; }
3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851 /* end confdefs.h. */
3861 ac_clean_files_save=$ac_clean_files
3862 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3863 # Try to create an executable without -o first, disregard a.out.
3864 # It will help us diagnose broken compilers, and finding out an intuition
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3867 $as_echo_n "checking whether the C compiler works... " >&6; }
3868 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3870 # The possible output files:
3871 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3874 for ac_file in $ac_files
3877 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3878 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3883 if { { ac_try="$ac_link_default"
3885 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3886 *) ac_try_echo
=$ac_try;;
3888 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3889 $as_echo "$ac_try_echo"; } >&5
3890 (eval "$ac_link_default") 2>&5
3892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3893 test $ac_status = 0; }; then :
3894 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3895 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3896 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3897 # so that the user can short-circuit this test for compilers unknown to
3899 for ac_file
in $ac_files ''
3901 test -f "$ac_file" ||
continue
3903 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3906 # We found the default executable, but exeext='' is most
3910 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3912 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3914 # We set ac_cv_exeext here because the later test for it is not
3915 # safe: cross compilers may not add the suffix if given an `-o'
3916 # argument, so we may need to know it at that point already.
3917 # Even if this section looks crufty: it has the advantage of
3924 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3929 if test -z "$ac_file"; then :
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3931 $as_echo "no" >&6; }
3932 $as_echo "$as_me: failed program was:" >&5
3933 sed 's/^/| /' conftest.
$ac_ext >&5
3935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3937 as_fn_error
77 "C compiler cannot create executables
3938 See \`config.log' for more details" "$LINENO" 5; }
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3941 $as_echo "yes" >&6; }
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3944 $as_echo_n "checking for C compiler default output file name... " >&6; }
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3946 $as_echo "$ac_file" >&6; }
3947 ac_exeext
=$ac_cv_exeext
3949 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3950 ac_clean_files
=$ac_clean_files_save
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3952 $as_echo_n "checking for suffix of executables... " >&6; }
3953 if { { ac_try
="$ac_link"
3955 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3959 $as_echo "$ac_try_echo"; } >&5
3960 (eval "$ac_link") 2>&5
3962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3963 test $ac_status = 0; }; then :
3964 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3965 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3966 # work properly (i.e., refer to `conftest.exe'), while it won't with
3968 for ac_file
in conftest.exe conftest conftest.
*; do
3969 test -f "$ac_file" ||
continue
3971 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3972 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3980 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3981 See \`config.log' for more details" "$LINENO" 5; }
3983 rm -f conftest conftest
$ac_cv_exeext
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3985 $as_echo "$ac_cv_exeext" >&6; }
3987 rm -f conftest.
$ac_ext
3988 EXEEXT
=$ac_cv_exeext
3990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3991 /* end confdefs.h. */
3996 FILE *f = fopen ("conftest.out", "w");
3997 return ferror (f) || fclose (f) != 0;
4003 ac_clean_files
="$ac_clean_files conftest.out"
4004 # Check that the compiler produces executables we can run. If not, either
4005 # the compiler is broken, or we cross compile.
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4007 $as_echo_n "checking whether we are cross compiling... " >&6; }
4008 if test "$cross_compiling" != yes; then
4009 { { ac_try
="$ac_link"
4011 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4012 *) ac_try_echo=$ac_try;;
4014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4015 $as_echo "$ac_try_echo"; } >&5
4016 (eval "$ac_link") 2>&5
4018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4019 test $ac_status = 0; }
4020 if { ac_try='./conftest$ac_cv_exeext'
4021 { { case "(($ac_try" in
4022 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4023 *) ac_try_echo
=$ac_try;;
4025 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4026 $as_echo "$ac_try_echo"; } >&5
4027 (eval "$ac_try") 2>&5
4029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4030 test $ac_status = 0; }; }; then
4033 if test "$cross_compiling" = maybe
; then
4036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4038 as_fn_error $?
"cannot run C compiled programs.
4039 If you meant to cross compile, use \`--host'.
4040 See \`config.log' for more details" "$LINENO" 5; }
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4045 $as_echo "$cross_compiling" >&6; }
4047 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4048 ac_clean_files
=$ac_clean_files_save
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4050 $as_echo_n "checking for suffix of object files... " >&6; }
4051 if ${ac_cv_objext+:} false
; then :
4052 $as_echo_n "(cached) " >&6
4054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4065 rm -f conftest.o conftest.obj
4066 if { { ac_try
="$ac_compile"
4068 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4069 *) ac_try_echo=$ac_try;;
4071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4072 $as_echo "$ac_try_echo"; } >&5
4073 (eval "$ac_compile") 2>&5
4075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4076 test $ac_status = 0; }; then :
4077 for ac_file in conftest.o conftest.obj conftest.*; do
4078 test -f "$ac_file" || continue;
4080 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4081 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4086 $as_echo "$as_me: failed program was:" >&5
4087 sed 's/^/| /' conftest.$ac_ext >&5
4089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4091 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4092 See \
`config.log' for more details" "$LINENO" 5; }
4094 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4097 $as_echo "$ac_cv_objext" >&6; }
4098 OBJEXT=$ac_cv_objext
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4101 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4102 if ${ac_cv_c_compiler_gnu+:} false; then :
4103 $as_echo_n "(cached) " >&6
4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h. */
4119 if ac_fn_c_try_compile "$LINENO"; then :
4124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4125 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4129 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4130 if test $ac_compiler_gnu = yes; then
4135 ac_test_CFLAGS=${CFLAGS+set}
4136 ac_save_CFLAGS=$CFLAGS
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4138 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4139 if ${ac_cv_prog_cc_g+:} false; then :
4140 $as_echo_n "(cached) " >&6
4142 ac_save_c_werror_flag=$ac_c_werror_flag
4143 ac_c_werror_flag=yes
4146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147 /* end confdefs.h. */
4157 if ac_fn_c_try_compile "$LINENO"; then :
4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162 /* end confdefs.h. */
4172 if ac_fn_c_try_compile "$LINENO"; then :
4175 ac_c_werror_flag=$ac_save_c_werror_flag
4177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4178 /* end confdefs.h. */
4188 if ac_fn_c_try_compile "$LINENO"; then :
4191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4196 ac_c_werror_flag=$ac_save_c_werror_flag
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4199 $as_echo "$ac_cv_prog_cc_g" >&6; }
4200 if test "$ac_test_CFLAGS" = set; then
4201 CFLAGS=$ac_save_CFLAGS
4202 elif test $ac_cv_prog_cc_g = yes; then
4203 if test "$GCC" = yes; then
4209 if test "$GCC" = yes; then
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4216 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4217 if ${ac_cv_prog_cc_c89+:} false; then :
4218 $as_echo_n "(cached) " >&6
4220 ac_cv_prog_cc_c89=no
4222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223 /* end confdefs.h. */
4227 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4228 struct buf { int x; };
4229 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4230 static char *e (p, i)
4236 static char *f (char * (*g) (char **, int), char **p, ...)
4241 s = g (p, va_arg (v,int));
4246 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4247 function prototypes and stuff, but not '\xHH' hex character constants.
4248 These don't provoke an error unfortunately, instead are silently treated
4249 as 'x'. The following induces an error, until -std is added to get
4250 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4251 array size at least. It's necessary to write '\x00'==0 to get something
4252 that's true only with -std. */
4253 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4255 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4256 inside strings and character constants. */
4258 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4260 int test (int i, double x);
4261 struct s1 {int (*f) (int a);};
4262 struct s2 {int (*f) (double a);};
4263 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4269 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4274 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4275 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4277 CC="$ac_save_CC $ac_arg"
4278 if ac_fn_c_try_compile "$LINENO"; then :
4279 ac_cv_prog_cc_c89=$ac_arg
4281 rm -f core conftest.err conftest.$ac_objext
4282 test "x$ac_cv_prog_cc_c89" != "xno" && break
4284 rm -f conftest.$ac_ext
4289 case "x$ac_cv_prog_cc_c89" in
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4292 $as_echo "none needed" >&6; } ;;
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4295 $as_echo "unsupported" >&6; } ;;
4297 CC="$CC $ac_cv_prog_cc_c89"
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4299 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4301 if test "x$ac_cv_prog_cc_c89" != xno; then :
4306 ac_cpp='$CPP $CPPFLAGS'
4307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4312 ac_cpp='$CPP $CPPFLAGS'
4313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4317 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4318 if ${am_cv_prog_cc_c_o+:} false; then :
4319 $as_echo_n "(cached) " >&6
4321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322 /* end confdefs.h. */
4332 # Make sure it works both with $CC and with simple cc.
4333 # Following AC_PROG_CC_C_O, we do the test twice because some
4334 # compilers refuse to overwrite an existing .o file with -o,
4335 # though they will create one.
4336 am_cv_prog_cc_c_o=yes
4338 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4339 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); } \
4343 && test -f conftest2.$ac_objext; then
4346 am_cv_prog_cc_c_o=no
4350 rm -f core conftest*
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4354 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4355 if test "$am_cv_prog_cc_c_o" != yes; then
4356 # Losing compiler, so override with the script.
4357 # FIXME: It is wrong to rewrite CC.
4358 # But if we don't then we get into trouble of one sort or another.
4359 # A longer-term fix would be to have automake use am__CC in this case,
4360 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4361 CC="$am_aux_dir/compile $CC"
4364 ac_cpp='$CPP $CPPFLAGS'
4365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4369 DEPDIR="${am__leading_dot}deps"
4371 ac_config_commands="$ac_config_commands depfiles"
4374 am_make=${MAKE-make}
4375 cat > confinc << 'END'
4377 @echo this is the am__doit target
4380 # If we don't find an include directive, just comment out the code.
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4382 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4386 # First try GNU make style include.
4387 echo "include confinc" > confmf
4388 # Ignore all kinds of additional output from 'make'.
4389 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4390 *the\ am__doit\ target*)
4396 # Now try BSD make style include.
4397 if test "$am__include" = "#"; then
4398 echo '.include "confinc"' > confmf
4399 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4400 *the\ am__doit\ target*)
4401 am__include=.include
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4410 $as_echo "$_am_result" >&6; }
4411 rm -f confinc confmf
4413 # Check whether --enable-dependency-tracking was given.
4414 if test "${enable_dependency_tracking+set}" = set; then :
4415 enableval=$enable_dependency_tracking;
4418 if test "x$enable_dependency_tracking" != xno; then
4419 am_depcomp="$ac_aux_dir/depcomp"
4423 if test "x$enable_dependency_tracking" != xno; then
4433 depcc="$CC" am_compiler_list=
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4436 $as_echo_n "checking dependency style of $depcc... " >&6; }
4437 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4438 $as_echo_n "(cached) " >&6
4440 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4441 # We make a subdir and do the tests there. Otherwise we can end up
4442 # making bogus files that we don't know about and never remove. For
4443 # instance it was reported that on HP-UX the gcc test will end up
4444 # making a dummy file named 'D' -- because '-MD' means "put the output
4448 # Copy depcomp to subdir because otherwise we won't find it if we're
4449 # using a relative directory.
4450 cp "$am_depcomp" conftest.dir
4452 # We will build objects and dependencies in a subdirectory because
4453 # it helps to detect inapplicable dependency modes. For instance
4454 # both Tru64's cc and ICC support -MD to output dependencies as a
4455 # side effect of compilation, but ICC will put the dependencies in
4456 # the current directory while Tru64 will put them in the object
4460 am_cv_CC_dependencies_compiler_type=none
4461 if test "$am_compiler_list" = ""; then
4462 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4465 case " $depcc " in #(
4466 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4469 for depmode in $am_compiler_list; do
4470 # Setup a source with many dependencies, because some compilers
4471 # like to wrap large dependency lists on column 80 (with \), and
4472 # we should not choose a depcomp mode which is confused by this.
4474 # We need to recreate these files for each test, as the compiler may
4475 # overwrite some of them when testing with obscure command lines.
4476 # This happens at least with the AIX C compiler.
4478 for i in 1 2 3 4 5 6; do
4479 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4480 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4481 # Solaris 10 /bin/sh.
4482 echo '/* dummy */' > sub/conftst$i.h
4484 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4486 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4487 # mode. It turns out that the SunPro C++ compiler does not properly
4488 # handle '-M -o', and we need to detect this. Also, some Intel
4489 # versions had trouble with output in subdirs.
4490 am__obj=sub/conftest.${OBJEXT-o}
4491 am__minus_obj="-o $am__obj"
4494 # This depmode causes a compiler race in universal mode.
4495 test "$am__universal" = false || continue
4498 # After this tag, mechanisms are not by side-effect, so they'll
4499 # only be used when explicitly requested.
4500 if test "x$enable_dependency_tracking" = xyes; then
4506 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4507 # This compiler won't grok '-c -o', but also, the minuso test has
4508 # not run yet. These depmodes are late enough in the game, and
4509 # so weak that their functioning should not be impacted.
4510 am__obj=conftest.${OBJEXT-o}
4515 if depmode=$depmode \
4516 source=sub/conftest.c object=$am__obj \
4517 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4518 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4519 >/dev/null 2>conftest.err &&
4520 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4521 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4522 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4523 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4524 # icc doesn't choke on unknown options, it will just issue warnings
4525 # or remarks (even with -Werror). So we grep stderr for any message
4526 # that says an option was ignored or not supported.
4527 # When given -MP, icc 7.0 and 7.1 complain thusly:
4528 # icc: Command line warning: ignoring option '-M'; no argument required
4529 # The diagnosis changed in icc 8.0:
4530 # icc: Command line remark: option '-MP' not supported
4531 if (grep 'ignoring option' conftest.err ||
4532 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4533 am_cv_CC_dependencies_compiler_type=$depmode
4542 am_cv_CC_dependencies_compiler_type=none
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4547 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4548 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4551 test "x$enable_dependency_tracking" != xno \
4552 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4554 am__fastdepCC_FALSE='#'
4556 am__fastdepCC_TRUE='#'
4557 am__fastdepCC_FALSE=
4562 ac_cpp='$CXXCPP $CPPFLAGS'
4563 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4564 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4565 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4566 if test -z "$CXX"; then
4567 if test -n "$CCC"; then
4570 if test -n "$ac_tool_prefix"; then
4571 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4573 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4574 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4576 $as_echo_n "checking for $ac_word... " >&6; }
4577 if ${ac_cv_prog_CXX+:} false; then :
4578 $as_echo_n "(cached) " >&6
4580 if test -n "$CXX"; then
4581 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 test -z "$as_dir" && as_dir=.
4588 for ac_exec_ext in '' $ac_executable_extensions; do
4589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4590 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4601 if test -n "$CXX"; then
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4603 $as_echo "$CXX" >&6; }
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4606 $as_echo "no" >&6; }
4610 test -n "$CXX" && break
4613 if test -z "$CXX"; then
4615 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4617 # Extract the first word of "$ac_prog", so it can be a program name with args.
4618 set dummy $ac_prog; ac_word=$2
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4620 $as_echo_n "checking for $ac_word... " >&6; }
4621 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4622 $as_echo_n "(cached) " >&6
4624 if test -n "$ac_ct_CXX"; then
4625 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 test -z "$as_dir" && as_dir=.
4632 for ac_exec_ext in '' $ac_executable_extensions; do
4633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4634 ac_cv_prog_ac_ct_CXX="$ac_prog"
4635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4644 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4645 if test -n "$ac_ct_CXX"; then
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4647 $as_echo "$ac_ct_CXX" >&6; }
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4650 $as_echo "no" >&6; }
4654 test -n "$ac_ct_CXX" && break
4657 if test "x$ac_ct_CXX" = x; then
4660 case $cross_compiling:$ac_tool_warned in
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4664 ac_tool_warned=yes ;;
4672 # Provide some information about the compiler.
4673 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4676 for ac_option in --version -v -V -qversion; do
4677 { { ac_try="$ac_compiler $ac_option >&5"
4679 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4680 *) ac_try_echo
=$ac_try;;
4682 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4683 $as_echo "$ac_try_echo"; } >&5
4684 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4686 if test -s conftest.err
; then
4688 ... rest of stderr output deleted ...
4689 10q' conftest.err
>conftest.er1
4690 cat conftest.er1
>&5
4692 rm -f conftest.er1 conftest.err
4693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4694 test $ac_status = 0; }
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4698 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4699 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4700 $as_echo_n "(cached) " >&6
4702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4703 /* end confdefs.h. */
4716 if ac_fn_cxx_try_compile
"$LINENO"; then :
4721 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4722 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4726 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4727 if test $ac_compiler_gnu = yes; then
4732 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4733 ac_save_CXXFLAGS
=$CXXFLAGS
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4735 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4736 if ${ac_cv_prog_cxx_g+:} false
; then :
4737 $as_echo_n "(cached) " >&6
4739 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4740 ac_cxx_werror_flag
=yes
4743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4754 if ac_fn_cxx_try_compile
"$LINENO"; then :
4755 ac_cv_prog_cxx_g
=yes
4758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4759 /* end confdefs.h. */
4769 if ac_fn_cxx_try_compile
"$LINENO"; then :
4772 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4775 /* end confdefs.h. */
4785 if ac_fn_cxx_try_compile
"$LINENO"; then :
4786 ac_cv_prog_cxx_g
=yes
4788 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4790 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4793 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4796 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4797 if test "$ac_test_CXXFLAGS" = set; then
4798 CXXFLAGS
=$ac_save_CXXFLAGS
4799 elif test $ac_cv_prog_cxx_g = yes; then
4800 if test "$GXX" = yes; then
4806 if test "$GXX" = yes; then
4813 ac_cpp
='$CPP $CPPFLAGS'
4814 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4815 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4816 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4818 depcc
="$CXX" am_compiler_list
=
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4821 $as_echo_n "checking dependency style of $depcc... " >&6; }
4822 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
4823 $as_echo_n "(cached) " >&6
4825 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4826 # We make a subdir and do the tests there. Otherwise we can end up
4827 # making bogus files that we don't know about and never remove. For
4828 # instance it was reported that on HP-UX the gcc test will end up
4829 # making a dummy file named 'D' -- because '-MD' means "put the output
4833 # Copy depcomp to subdir because otherwise we won't find it if we're
4834 # using a relative directory.
4835 cp "$am_depcomp" conftest.dir
4837 # We will build objects and dependencies in a subdirectory because
4838 # it helps to detect inapplicable dependency modes. For instance
4839 # both Tru64's cc and ICC support -MD to output dependencies as a
4840 # side effect of compilation, but ICC will put the dependencies in
4841 # the current directory while Tru64 will put them in the object
4845 am_cv_CXX_dependencies_compiler_type
=none
4846 if test "$am_compiler_list" = ""; then
4847 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4850 case " $depcc " in #(
4851 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4854 for depmode
in $am_compiler_list; do
4855 # Setup a source with many dependencies, because some compilers
4856 # like to wrap large dependency lists on column 80 (with \), and
4857 # we should not choose a depcomp mode which is confused by this.
4859 # We need to recreate these files for each test, as the compiler may
4860 # overwrite some of them when testing with obscure command lines.
4861 # This happens at least with the AIX C compiler.
4863 for i
in 1 2 3 4 5 6; do
4864 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4865 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4866 # Solaris 10 /bin/sh.
4867 echo '/* dummy */' > sub
/conftst
$i.h
4869 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4871 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4872 # mode. It turns out that the SunPro C++ compiler does not properly
4873 # handle '-M -o', and we need to detect this. Also, some Intel
4874 # versions had trouble with output in subdirs.
4875 am__obj
=sub
/conftest.
${OBJEXT-o}
4876 am__minus_obj
="-o $am__obj"
4879 # This depmode causes a compiler race in universal mode.
4880 test "$am__universal" = false ||
continue
4883 # After this tag, mechanisms are not by side-effect, so they'll
4884 # only be used when explicitly requested.
4885 if test "x$enable_dependency_tracking" = xyes
; then
4891 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
4892 # This compiler won't grok '-c -o', but also, the minuso test has
4893 # not run yet. These depmodes are late enough in the game, and
4894 # so weak that their functioning should not be impacted.
4895 am__obj
=conftest.
${OBJEXT-o}
4900 if depmode
=$depmode \
4901 source=sub
/conftest.c object
=$am__obj \
4902 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4903 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4904 >/dev
/null
2>conftest.err
&&
4905 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4906 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4907 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4908 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4909 # icc doesn't choke on unknown options, it will just issue warnings
4910 # or remarks (even with -Werror). So we grep stderr for any message
4911 # that says an option was ignored or not supported.
4912 # When given -MP, icc 7.0 and 7.1 complain thusly:
4913 # icc: Command line warning: ignoring option '-M'; no argument required
4914 # The diagnosis changed in icc 8.0:
4915 # icc: Command line remark: option '-MP' not supported
4916 if (grep 'ignoring option' conftest.err ||
4917 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4918 am_cv_CXX_dependencies_compiler_type
=$depmode
4927 am_cv_CXX_dependencies_compiler_type
=none
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4932 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4933 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
4936 test "x$enable_dependency_tracking" != xno \
4937 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
4938 am__fastdepCXX_TRUE
=
4939 am__fastdepCXX_FALSE
='#'
4941 am__fastdepCXX_TRUE
='#'
4942 am__fastdepCXX_FALSE
=
4952 # By default we simply use the C compiler to build assembly code.
4954 test "${CCAS+set}" = set || CCAS
=$CC
4955 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
4959 depcc
="$CCAS" am_compiler_list
=
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4962 $as_echo_n "checking dependency style of $depcc... " >&6; }
4963 if ${am_cv_CCAS_dependencies_compiler_type+:} false
; then :
4964 $as_echo_n "(cached) " >&6
4966 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4967 # We make a subdir and do the tests there. Otherwise we can end up
4968 # making bogus files that we don't know about and never remove. For
4969 # instance it was reported that on HP-UX the gcc test will end up
4970 # making a dummy file named 'D' -- because '-MD' means "put the output
4974 # Copy depcomp to subdir because otherwise we won't find it if we're
4975 # using a relative directory.
4976 cp "$am_depcomp" conftest.dir
4978 # We will build objects and dependencies in a subdirectory because
4979 # it helps to detect inapplicable dependency modes. For instance
4980 # both Tru64's cc and ICC support -MD to output dependencies as a
4981 # side effect of compilation, but ICC will put the dependencies in
4982 # the current directory while Tru64 will put them in the object
4986 am_cv_CCAS_dependencies_compiler_type
=none
4987 if test "$am_compiler_list" = ""; then
4988 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4993 for depmode
in $am_compiler_list; do
4994 # Setup a source with many dependencies, because some compilers
4995 # like to wrap large dependency lists on column 80 (with \), and
4996 # we should not choose a depcomp mode which is confused by this.
4998 # We need to recreate these files for each test, as the compiler may
4999 # overwrite some of them when testing with obscure command lines.
5000 # This happens at least with the AIX C compiler.
5002 for i
in 1 2 3 4 5 6; do
5003 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5004 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5005 # Solaris 10 /bin/sh.
5006 echo '/* dummy */' > sub
/conftst
$i.h
5008 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5010 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5011 # mode. It turns out that the SunPro C++ compiler does not properly
5012 # handle '-M -o', and we need to detect this. Also, some Intel
5013 # versions had trouble with output in subdirs.
5014 am__obj
=sub
/conftest.
${OBJEXT-o}
5015 am__minus_obj
="-o $am__obj"
5018 # This depmode causes a compiler race in universal mode.
5019 test "$am__universal" = false ||
continue
5022 # After this tag, mechanisms are not by side-effect, so they'll
5023 # only be used when explicitly requested.
5024 if test "x$enable_dependency_tracking" = xyes
; then
5030 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
5031 # This compiler won't grok '-c -o', but also, the minuso test has
5032 # not run yet. These depmodes are late enough in the game, and
5033 # so weak that their functioning should not be impacted.
5034 am__obj
=conftest.
${OBJEXT-o}
5039 if depmode
=$depmode \
5040 source=sub
/conftest.c object
=$am__obj \
5041 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5042 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5043 >/dev
/null
2>conftest.err
&&
5044 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5045 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5046 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5047 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5048 # icc doesn't choke on unknown options, it will just issue warnings
5049 # or remarks (even with -Werror). So we grep stderr for any message
5050 # that says an option was ignored or not supported.
5051 # When given -MP, icc 7.0 and 7.1 complain thusly:
5052 # icc: Command line warning: ignoring option '-M'; no argument required
5053 # The diagnosis changed in icc 8.0:
5054 # icc: Command line remark: option '-MP' not supported
5055 if (grep 'ignoring option' conftest.err ||
5056 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5057 am_cv_CCAS_dependencies_compiler_type
=$depmode
5066 am_cv_CCAS_dependencies_compiler_type
=none
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5071 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5072 CCASDEPMODE
=depmode
=$am_cv_CCAS_dependencies_compiler_type
5075 test "x$enable_dependency_tracking" != xno \
5076 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3
; then
5077 am__fastdepCCAS_TRUE
=
5078 am__fastdepCCAS_FALSE
='#'
5080 am__fastdepCCAS_TRUE
='#'
5081 am__fastdepCCAS_FALSE
=
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5089 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5094 macro_version
='2.2.7a'
5095 macro_revision
='1.3134'
5109 ltmain
="$ac_aux_dir/ltmain.sh"
5111 # Backslashify metacharacters that are still active within
5112 # double-quoted strings.
5113 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
5115 # Same as above, but do not quote variable references.
5116 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
5118 # Sed substitution to delay expansion of an escaped shell variable in a
5119 # double_quote_subst'ed string.
5120 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
5122 # Sed substitution to delay expansion of an escaped single quote.
5123 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
5125 # Sed substitution to avoid accidental globbing in evaled expressions
5126 no_glob_subst
='s/\*/\\\*/g'
5128 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5129 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5130 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5133 $as_echo_n "checking how to print strings... " >&6; }
5134 # Test print first, because it will be a builtin if present.
5135 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5136 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5138 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5141 # Use this function as a fallback that always works.
5142 func_fallback_echo ()
5144 eval 'cat <<_LTECHO_EOF
5148 ECHO='func_fallback_echo
'
5151 # func_echo_all arg...
5152 # Invoke $ECHO with all args, space-separated.
5159 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5160 $as_echo "printf" >&6; } ;;
5161 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5162 $as_echo "print -r" >&6; } ;;
5163 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5164 $as_echo "cat" >&6; } ;;
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5181 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5182 if ${ac_cv_path_SED+:} false; then :
5183 $as_echo_n "(cached) " >&6
5185 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5186 for ac_i in 1 2 3 4 5 6 7; do
5187 ac_script="$ac_script$as_nl$ac_script"
5189 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5190 { ac_script=; unset ac_script;}
5191 if test -z "$SED"; then
5192 ac_path_SED_found=false
5193 # Loop through the user's path and
test for each of PROGNAME-LIST
5194 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5198 test -z "$as_dir" && as_dir
=.
5199 for ac_prog
in sed gsed
; do
5200 for ac_exec_ext
in '' $ac_executable_extensions; do
5201 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
5202 as_fn_executable_p
"$ac_path_SED" ||
continue
5203 # Check for GNU ac_path_SED and select it if it is found.
5204 # Check for GNU $ac_path_SED
5205 case `"$ac_path_SED" --version 2>&1` in
5207 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
5210 $as_echo_n 0123456789 >"conftest.in"
5213 cat "conftest.in" "conftest.in" >"conftest.tmp"
5214 mv "conftest.tmp" "conftest.in"
5215 cp "conftest.in" "conftest.nl"
5216 $as_echo '' >> "conftest.nl"
5217 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5218 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5219 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5220 if test $ac_count -gt ${ac_path_SED_max-0}; then
5221 # Best one so far, save it but keep looking for a better one
5222 ac_cv_path_SED
="$ac_path_SED"
5223 ac_path_SED_max
=$ac_count
5225 # 10*(2^10) chars as input seems more than enough
5226 test $ac_count -gt 10 && break
5228 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5231 $ac_path_SED_found && break 3
5236 if test -z "$ac_cv_path_SED"; then
5237 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5245 $as_echo "$ac_cv_path_SED" >&6; }
5246 SED
="$ac_cv_path_SED"
5249 test -z "$SED" && SED
=sed
5250 Xsed
="$SED -e 1s/^X//"
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5263 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5264 if ${ac_cv_path_GREP+:} false
; then :
5265 $as_echo_n "(cached) " >&6
5267 if test -z "$GREP"; then
5268 ac_path_GREP_found
=false
5269 # Loop through the user's path and test for each of PROGNAME-LIST
5270 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5271 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5274 test -z "$as_dir" && as_dir
=.
5275 for ac_prog
in grep ggrep
; do
5276 for ac_exec_ext
in '' $ac_executable_extensions; do
5277 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5278 as_fn_executable_p
"$ac_path_GREP" ||
continue
5279 # Check for GNU ac_path_GREP and select it if it is found.
5280 # Check for GNU $ac_path_GREP
5281 case `"$ac_path_GREP" --version 2>&1` in
5283 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5286 $as_echo_n 0123456789 >"conftest.in"
5289 cat "conftest.in" "conftest.in" >"conftest.tmp"
5290 mv "conftest.tmp" "conftest.in"
5291 cp "conftest.in" "conftest.nl"
5292 $as_echo 'GREP' >> "conftest.nl"
5293 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5294 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5295 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5296 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5297 # Best one so far, save it but keep looking for a better one
5298 ac_cv_path_GREP
="$ac_path_GREP"
5299 ac_path_GREP_max
=$ac_count
5301 # 10*(2^10) chars as input seems more than enough
5302 test $ac_count -gt 10 && break
5304 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5307 $ac_path_GREP_found && break 3
5312 if test -z "$ac_cv_path_GREP"; then
5313 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5316 ac_cv_path_GREP
=$GREP
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5321 $as_echo "$ac_cv_path_GREP" >&6; }
5322 GREP
="$ac_cv_path_GREP"
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5326 $as_echo_n "checking for egrep... " >&6; }
5327 if ${ac_cv_path_EGREP+:} false
; then :
5328 $as_echo_n "(cached) " >&6
5330 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5331 then ac_cv_path_EGREP
="$GREP -E"
5333 if test -z "$EGREP"; then
5334 ac_path_EGREP_found
=false
5335 # Loop through the user's path and test for each of PROGNAME-LIST
5336 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5337 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5340 test -z "$as_dir" && as_dir
=.
5341 for ac_prog
in egrep; do
5342 for ac_exec_ext
in '' $ac_executable_extensions; do
5343 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5344 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5345 # Check for GNU ac_path_EGREP and select it if it is found.
5346 # Check for GNU $ac_path_EGREP
5347 case `"$ac_path_EGREP" --version 2>&1` in
5349 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5352 $as_echo_n 0123456789 >"conftest.in"
5355 cat "conftest.in" "conftest.in" >"conftest.tmp"
5356 mv "conftest.tmp" "conftest.in"
5357 cp "conftest.in" "conftest.nl"
5358 $as_echo 'EGREP' >> "conftest.nl"
5359 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5360 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5361 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5362 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5363 # Best one so far, save it but keep looking for a better one
5364 ac_cv_path_EGREP
="$ac_path_EGREP"
5365 ac_path_EGREP_max
=$ac_count
5367 # 10*(2^10) chars as input seems more than enough
5368 test $ac_count -gt 10 && break
5370 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5373 $ac_path_EGREP_found && break 3
5378 if test -z "$ac_cv_path_EGREP"; then
5379 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5382 ac_cv_path_EGREP
=$EGREP
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5388 $as_echo "$ac_cv_path_EGREP" >&6; }
5389 EGREP
="$ac_cv_path_EGREP"
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5393 $as_echo_n "checking for fgrep... " >&6; }
5394 if ${ac_cv_path_FGREP+:} false
; then :
5395 $as_echo_n "(cached) " >&6
5397 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
5398 then ac_cv_path_FGREP
="$GREP -F"
5400 if test -z "$FGREP"; then
5401 ac_path_FGREP_found
=false
5402 # Loop through the user's path and test for each of PROGNAME-LIST
5403 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5404 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5407 test -z "$as_dir" && as_dir
=.
5408 for ac_prog
in fgrep
; do
5409 for ac_exec_ext
in '' $ac_executable_extensions; do
5410 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
5411 as_fn_executable_p
"$ac_path_FGREP" ||
continue
5412 # Check for GNU ac_path_FGREP and select it if it is found.
5413 # Check for GNU $ac_path_FGREP
5414 case `"$ac_path_FGREP" --version 2>&1` in
5416 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
5419 $as_echo_n 0123456789 >"conftest.in"
5422 cat "conftest.in" "conftest.in" >"conftest.tmp"
5423 mv "conftest.tmp" "conftest.in"
5424 cp "conftest.in" "conftest.nl"
5425 $as_echo 'FGREP' >> "conftest.nl"
5426 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5427 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5428 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5429 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5430 # Best one so far, save it but keep looking for a better one
5431 ac_cv_path_FGREP
="$ac_path_FGREP"
5432 ac_path_FGREP_max
=$ac_count
5434 # 10*(2^10) chars as input seems more than enough
5435 test $ac_count -gt 10 && break
5437 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5440 $ac_path_FGREP_found && break 3
5445 if test -z "$ac_cv_path_FGREP"; then
5446 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5449 ac_cv_path_FGREP
=$FGREP
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5455 $as_echo "$ac_cv_path_FGREP" >&6; }
5456 FGREP
="$ac_cv_path_FGREP"
5459 test -z "$GREP" && GREP
=grep
5479 # Check whether --with-gnu-ld was given.
5480 if test "${with_gnu_ld+set}" = set; then :
5481 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5487 if test "$GCC" = yes; then
5488 # Check if gcc -print-prog-name=ld gives a path.
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5490 $as_echo_n "checking for ld used by $CC... " >&6; }
5493 # gcc leaves a trailing carriage return which upsets mingw
5494 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5496 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5499 # Accept absolute paths.
5501 re_direlt
='/[^/][^/]*/\.\./'
5502 # Canonicalize the pathname of ld
5503 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5504 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
5505 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5507 test -z "$LD" && LD
="$ac_prog"
5510 # If it fails, then pretend we aren't using GCC.
5514 # If it is relative, then search for the first ld in PATH.
5518 elif test "$with_gnu_ld" = yes; then
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5520 $as_echo_n "checking for GNU ld... " >&6; }
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5523 $as_echo_n "checking for non-GNU ld... " >&6; }
5525 if ${lt_cv_path_LD+:} false
; then :
5526 $as_echo_n "(cached) " >&6
5528 if test -z "$LD"; then
5529 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5530 for ac_dir
in $PATH; do
5532 test -z "$ac_dir" && ac_dir
=.
5533 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5534 lt_cv_path_LD
="$ac_dir/$ac_prog"
5535 # Check to see if the program is GNU ld. I'd rather use --version,
5536 # but apparently some variants of GNU ld only accept -v.
5537 # Break only if it was the GNU/non-GNU ld that we prefer.
5538 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5539 *GNU
* |
*'with BFD'*)
5540 test "$with_gnu_ld" != no
&& break
5543 test "$with_gnu_ld" != yes && break
5550 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
5555 if test -n "$LD"; then
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5557 $as_echo "$LD" >&6; }
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5560 $as_echo "no" >&6; }
5562 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5564 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5565 if ${lt_cv_prog_gnu_ld+:} false
; then :
5566 $as_echo_n "(cached) " >&6
5568 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5569 case `$LD -v 2>&1 </dev/null` in
5570 *GNU
* |
*'with BFD'*)
5571 lt_cv_prog_gnu_ld
=yes
5574 lt_cv_prog_gnu_ld
=no
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5579 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5580 with_gnu_ld
=$lt_cv_prog_gnu_ld
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5591 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5592 if ${lt_cv_path_NM+:} false
; then :
5593 $as_echo_n "(cached) " >&6
5595 if test -n "$NM"; then
5596 # Let the user override the test.
5599 lt_nm_to_check
="${ac_tool_prefix}nm"
5600 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5601 lt_nm_to_check
="$lt_nm_to_check nm"
5603 for lt_tmp_nm
in $lt_nm_to_check; do
5604 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5605 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
5607 test -z "$ac_dir" && ac_dir
=.
5608 tmp_nm
="$ac_dir/$lt_tmp_nm"
5609 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
5610 # Check to see if the nm accepts a BSD-compat flag.
5611 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5612 # nm: unknown option "B" ignored
5613 # Tru64's nm complains that /dev/null is an invalid object file
5614 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5615 */dev
/null
* |
*'Invalid file or object type'*)
5616 lt_cv_path_NM
="$tmp_nm -B"
5620 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5622 lt_cv_path_NM
="$tmp_nm -p"
5626 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5627 continue # so that we can try to find one that supports BSD flags
5636 : ${lt_cv_path_NM=no}
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5640 $as_echo "$lt_cv_path_NM" >&6; }
5641 if test "$lt_cv_path_NM" != "no"; then
5644 # Didn't find any BSD compatible name lister, look for dumpbin.
5645 if test -n "$DUMPBIN"; then :
5646 # Let the user override the test.
5648 if test -n "$ac_tool_prefix"; then
5649 for ac_prog
in dumpbin
"link -dump"
5651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5652 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5654 $as_echo_n "checking for $ac_word... " >&6; }
5655 if ${ac_cv_prog_DUMPBIN+:} false
; then :
5656 $as_echo_n "(cached) " >&6
5658 if test -n "$DUMPBIN"; then
5659 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
5661 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5665 test -z "$as_dir" && as_dir
=.
5666 for ac_exec_ext
in '' $ac_executable_extensions; do
5667 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5668 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
5669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5678 DUMPBIN
=$ac_cv_prog_DUMPBIN
5679 if test -n "$DUMPBIN"; then
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5681 $as_echo "$DUMPBIN" >&6; }
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5684 $as_echo "no" >&6; }
5688 test -n "$DUMPBIN" && break
5691 if test -z "$DUMPBIN"; then
5692 ac_ct_DUMPBIN
=$DUMPBIN
5693 for ac_prog
in dumpbin
"link -dump"
5695 # Extract the first word of "$ac_prog", so it can be a program name with args.
5696 set dummy
$ac_prog; ac_word
=$2
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5698 $as_echo_n "checking for $ac_word... " >&6; }
5699 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
5700 $as_echo_n "(cached) " >&6
5702 if test -n "$ac_ct_DUMPBIN"; then
5703 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
5705 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5709 test -z "$as_dir" && as_dir
=.
5710 for ac_exec_ext
in '' $ac_executable_extensions; do
5711 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5712 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
5713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5722 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
5723 if test -n "$ac_ct_DUMPBIN"; then
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5725 $as_echo "$ac_ct_DUMPBIN" >&6; }
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728 $as_echo "no" >&6; }
5732 test -n "$ac_ct_DUMPBIN" && break
5735 if test "x$ac_ct_DUMPBIN" = x
; then
5738 case $cross_compiling:$ac_tool_warned in
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5742 ac_tool_warned
=yes ;;
5744 DUMPBIN
=$ac_ct_DUMPBIN
5748 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5750 DUMPBIN
="$DUMPBIN -symbols"
5758 if test "$DUMPBIN" != ":"; then
5762 test -z "$NM" && NM
=nm
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5770 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5771 if ${lt_cv_nm_interface+:} false
; then :
5772 $as_echo_n "(cached) " >&6
5774 lt_cv_nm_interface
="BSD nm"
5775 echo "int some_variable = 0;" > conftest.
$ac_ext
5776 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5777 (eval "$ac_compile" 2>conftest.err
)
5778 cat conftest.err
>&5
5779 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5780 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
5781 cat conftest.err
>&5
5782 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5783 cat conftest.out
>&5
5784 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
5785 lt_cv_nm_interface
="MS dumpbin"
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5790 $as_echo "$lt_cv_nm_interface" >&6; }
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5793 $as_echo_n "checking whether ln -s works... " >&6; }
5795 if test "$LN_S" = "ln -s"; then
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5797 $as_echo "yes" >&6; }
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5800 $as_echo "no, using $LN_S" >&6; }
5803 # find the maximum length of command line arguments
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5805 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5806 if ${lt_cv_sys_max_cmd_len+:} false
; then :
5807 $as_echo_n "(cached) " >&6
5814 # On DJGPP, this test can blow up pretty badly due to problems in libc
5815 # (any single argument exceeding 2000 bytes causes a buffer overrun
5816 # during glob expansion). Even if it were fixed, the result of this
5817 # check would be larger than it should be.
5818 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
5822 # Under GNU Hurd, this test is not required because there is
5823 # no limit to the length of command line arguments.
5824 # Libtool will interpret -1 as no limit whatsoever
5825 lt_cv_sys_max_cmd_len
=-1;
5828 cygwin
* | mingw
* | cegcc
*)
5829 # On Win9x/ME, this test blows up -- it succeeds, but takes
5830 # about 5 minutes as the teststring grows exponentially.
5831 # Worse, since 9x/ME are not pre-emptively multitasking,
5832 # you end up with a "frozen" computer, even though with patience
5833 # the test eventually succeeds (with a max line length of 256k).
5834 # Instead, let's just punt: use the minimum linelength reported by
5835 # all of the supported platforms: 8192 (on NT/2K/XP).
5836 lt_cv_sys_max_cmd_len
=8192;
5840 # On MiNT this can take a long time and run out of memory.
5841 lt_cv_sys_max_cmd_len
=8192;
5845 # On AmigaOS with pdksh, this test takes hours, literally.
5846 # So we just punt and use a minimum line length of 8192.
5847 lt_cv_sys_max_cmd_len
=8192;
5850 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
5851 # This has been around since 386BSD, at least. Likely further.
5852 if test -x /sbin
/sysctl
; then
5853 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
5854 elif test -x /usr
/sbin
/sysctl
; then
5855 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
5857 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
5859 # And add a safety zone
5860 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5861 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5865 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5866 lt_cv_sys_max_cmd_len
=196608
5870 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5871 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5872 # nice to cause kernel panics so lets avoid the loop below.
5873 # First set a reasonable default.
5874 lt_cv_sys_max_cmd_len
=16384
5876 if test -x /sbin
/sysconfig
; then
5877 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5878 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
5883 lt_cv_sys_max_cmd_len
=102400
5885 sysv5
* | sco5v6
* | sysv4.2uw2
*)
5886 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5887 if test -n "$kargmax"; then
5888 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
5890 lt_cv_sys_max_cmd_len
=32768
5894 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
5895 if test -n "$lt_cv_sys_max_cmd_len"; then
5896 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5897 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5899 # Make teststring a little bigger before we do anything with it.
5900 # a 1K string should be a reasonable start.
5901 for i
in 1 2 3 4 5 6 7 8 ; do
5902 teststring
=$teststring$teststring
5904 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
5905 # If test is not a shell built-in, we'll probably end up computing a
5906 # maximum length that is only half of the actual maximum length, but
5908 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5909 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
5910 test $i != 17 # 1/2 MB should be enough
5913 teststring
=$teststring$teststring
5915 # Only check the string length outside the loop.
5916 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
5918 # Add a significant safety factor because C++ compilers can tack on
5919 # massive amounts of additional arguments before passing them to the
5920 # linker. It appears as though 1/2 is a usable value.
5921 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
5928 if test -n $lt_cv_sys_max_cmd_len ; then
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5930 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5933 $as_echo "none" >&6; }
5935 max_cmd_len
=$lt_cv_sys_max_cmd_len
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5947 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5948 # Try some XSI features
5951 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5953 && eval 'test $(( 1 + 1 )) -eq 2 \
5954 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
5957 $as_echo "$xsi_shell" >&6; }
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
5961 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
5963 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
5965 && lt_shell_append=yes
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
5967 $as_echo "$lt_shell_append" >&6; }
5970 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5980 # test EBCDIC or ASCII
5981 case `echo X|tr X '\101'` in
5982 A) # ASCII based system
5983 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5984 lt_SP2NL='tr \040 \012'
5985 lt_NL2SP='tr \015\012 \040\040'
5987 *) # EBCDIC based system
5988 lt_SP2NL='tr \100 \n'
5989 lt_NL2SP='tr \r\n \100\100'
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
6002 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
6003 if ${lt_cv_ld_reload_flag+:} false; then :
6004 $as_echo_n "(cached
) " >&6
6006 lt_cv_ld_reload_flag='-r'
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
6009 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6010 reload_flag=$lt_cv_ld_reload_flag
6011 case $reload_flag in
6013 *) reload_flag=" $reload_flag" ;;
6015 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6018 if test "$GCC" = yes; then
6019 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6021 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6034 if test -n "$ac_tool_prefix"; then
6035 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
6036 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6038 $as_echo_n "checking
for $ac_word...
" >&6; }
6039 if ${ac_cv_prog_OBJDUMP+:} false; then :
6040 $as_echo_n "(cached
) " >&6
6042 if test -n "$OBJDUMP"; then
6043 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049 test -z "$as_dir" && as_dir=.
6050 for ac_exec_ext in '' $ac_executable_extensions; do
6051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6052 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
6053 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6062 OBJDUMP=$ac_cv_prog_OBJDUMP
6063 if test -n "$OBJDUMP"; then
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
6065 $as_echo "$OBJDUMP" >&6; }
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6068 $as_echo "no
" >&6; }
6073 if test -z "$ac_cv_prog_OBJDUMP"; then
6074 ac_ct_OBJDUMP=$OBJDUMP
6075 # Extract the first word of "objdump
", so it can be a program name with args.
6076 set dummy objdump; ac_word=$2
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6078 $as_echo_n "checking
for $ac_word...
" >&6; }
6079 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6080 $as_echo_n "(cached
) " >&6
6082 if test -n "$ac_ct_OBJDUMP"; then
6083 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089 test -z "$as_dir" && as_dir=.
6090 for ac_exec_ext in '' $ac_executable_extensions; do
6091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6092 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
6093 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6102 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6103 if test -n "$ac_ct_OBJDUMP"; then
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
6105 $as_echo "$ac_ct_OBJDUMP" >&6; }
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6108 $as_echo "no
" >&6; }
6111 if test "x
$ac_ct_OBJDUMP" = x; then
6114 case $cross_compiling:$ac_tool_warned in
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6117 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6118 ac_tool_warned=yes ;;
6120 OBJDUMP=$ac_ct_OBJDUMP
6123 OBJDUMP="$ac_cv_prog_OBJDUMP"
6126 test -z "$OBJDUMP" && OBJDUMP=objdump
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
6137 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
6138 if ${lt_cv_deplibs_check_method+:} false; then :
6139 $as_echo_n "(cached
) " >&6
6141 lt_cv_file_magic_cmd='$MAGIC_CMD'
6142 lt_cv_file_magic_test_file=
6143 lt_cv_deplibs_check_method='unknown'
6144 # Need to set the preceding variable on all platforms that support
6145 # interlibrary dependencies.
6146 # 'none' -- dependencies not supported.
6147 # `unknown' -- same as none, but documents that we really don't know.
6148 # 'pass_all' -- all dependencies passed with no checks.
6149 # 'test_compile' -- check by making test program.
6150 # 'file_magic [[regex]]' -- check by looking for files in library path
6151 # which responds to the $file_magic_cmd with a given extended regex.
6152 # If you have `file' or equivalent on your system and you're not sure
6153 # whether `pass_all' will *always* work, you probably want this one.
6157 lt_cv_deplibs_check_method=pass_all
6161 lt_cv_deplibs_check_method=pass_all
6165 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6166 lt_cv_file_magic_cmd='/usr/bin/file -L'
6167 lt_cv_file_magic_test_file=/shlib/libc.so
6171 # func_win32_libid is a shell function defined in ltmain.sh
6172 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6173 lt_cv_file_magic_cmd='func_win32_libid'
6177 # Base MSYS/MinGW do not provide the 'file' command needed by
6178 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6179 # unless we find 'file', for example because we are cross-compiling.
6180 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6181 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
6182 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6183 lt_cv_file_magic_cmd='func_win32_libid'
6185 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6186 lt_cv_file_magic_cmd='$OBJDUMP -f'
6191 # use the weaker test based on 'objdump'. See mingw*.
6192 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6193 lt_cv_file_magic_cmd='$OBJDUMP -f'
6196 darwin* | rhapsody*)
6197 lt_cv_deplibs_check_method=pass_all
6200 freebsd* | dragonfly*)
6201 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6204 # Not sure whether the presence of OpenBSD here was a mistake.
6205 # Let's accept both of them until this is cleared up.
6206 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6207 lt_cv_file_magic_cmd=/usr/bin/file
6208 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6212 lt_cv_deplibs_check_method=pass_all
6217 lt_cv_deplibs_check_method=pass_all
6221 lt_cv_deplibs_check_method=pass_all
6224 hpux10.20* | hpux11*)
6225 lt_cv_file_magic_cmd=/usr/bin/file
6228 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6229 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6232 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]'
6233 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6236 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6237 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6243 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6244 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6247 irix5* | irix6* | nonstopux*)
6249 *-32|*"-32 ") libmagic=32-bit;;
6250 *-n32|*"-n32 ") libmagic=N32;;
6251 *-64|*"-64 ") libmagic=64-bit;;
6252 *) libmagic=never-match;;
6254 lt_cv_deplibs_check_method=pass_all
6257 # This must be Linux ELF.
6258 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6259 lt_cv_deplibs_check_method=pass_all
6263 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6264 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6266 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6271 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6272 lt_cv_file_magic_cmd=/usr/bin/file
6273 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6277 lt_cv_deplibs_check_method=pass_all
6281 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
6282 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6284 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6288 osf3* | osf4* | osf5*)
6289 lt_cv_deplibs_check_method=pass_all
6293 lt_cv_deplibs_check_method=pass_all
6297 lt_cv_deplibs_check_method=pass_all
6300 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6301 lt_cv_deplibs_check_method=pass_all
6305 case $host_vendor in
6307 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]'
6308 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6311 lt_cv_deplibs_check_method=pass_all
6314 lt_cv_file_magic_cmd='/bin/file'
6315 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6318 lt_cv_file_magic_cmd='/bin/file'
6319 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
6320 lt_cv_file_magic_test_file=/lib/libc.so
6323 lt_cv_deplibs_check_method=pass_all
6326 lt_cv_deplibs_check_method=pass_all
6332 lt_cv_deplibs_check_method=pass_all
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
6338 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6339 file_magic_cmd=$lt_cv_file_magic_cmd
6340 deplibs_check_method=$lt_cv_deplibs_check_method
6341 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6354 if test -n "$ac_tool_prefix"; then
6355 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6356 set dummy ${ac_tool_prefix}ar; ac_word=$2
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6358 $as_echo_n "checking
for $ac_word...
" >&6; }
6359 if ${ac_cv_prog_AR+:} false; then :
6360 $as_echo_n "(cached
) " >&6
6362 if test -n "$AR"; then
6363 ac_cv_prog_AR="$AR" # Let the user override the test.
6365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369 test -z "$as_dir" && as_dir=.
6370 for ac_exec_ext in '' $ac_executable_extensions; do
6371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6372 ac_cv_prog_AR="${ac_tool_prefix}ar"
6373 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6383 if test -n "$AR"; then
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
6385 $as_echo "$AR" >&6; }
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6388 $as_echo "no
" >&6; }
6393 if test -z "$ac_cv_prog_AR"; then
6395 # Extract the first word of "ar", so it can be a program name with args.
6396 set dummy ar; ac_word=$2
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6398 $as_echo_n "checking
for $ac_word...
" >&6; }
6399 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6400 $as_echo_n "(cached
) " >&6
6402 if test -n "$ac_ct_AR"; then
6403 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409 test -z "$as_dir" && as_dir=.
6410 for ac_exec_ext in '' $ac_executable_extensions; do
6411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6412 ac_cv_prog_ac_ct_AR="ar"
6413 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6422 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6423 if test -n "$ac_ct_AR"; then
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
6425 $as_echo "$ac_ct_AR" >&6; }
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6428 $as_echo "no
" >&6; }
6431 if test "x
$ac_ct_AR" = x; then
6434 case $cross_compiling:$ac_tool_warned in
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6437 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6438 ac_tool_warned=yes ;;
6446 test -z "$AR" && AR=ar
6447 test -z "$AR_FLAGS" && AR_FLAGS=cru
6459 if test -n "$ac_tool_prefix"; then
6460 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
6461 set dummy ${ac_tool_prefix}strip; ac_word=$2
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6463 $as_echo_n "checking
for $ac_word...
" >&6; }
6464 if ${ac_cv_prog_STRIP+:} false; then :
6465 $as_echo_n "(cached
) " >&6
6467 if test -n "$STRIP"; then
6468 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474 test -z "$as_dir" && as_dir=.
6475 for ac_exec_ext in '' $ac_executable_extensions; do
6476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6477 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
6478 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6487 STRIP=$ac_cv_prog_STRIP
6488 if test -n "$STRIP"; then
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
6490 $as_echo "$STRIP" >&6; }
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6493 $as_echo "no
" >&6; }
6498 if test -z "$ac_cv_prog_STRIP"; then
6500 # Extract the first word of "strip
", so it can be a program name with args.
6501 set dummy strip; ac_word=$2
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6503 $as_echo_n "checking
for $ac_word...
" >&6; }
6504 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6505 $as_echo_n "(cached
) " >&6
6507 if test -n "$ac_ct_STRIP"; then
6508 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514 test -z "$as_dir" && as_dir=.
6515 for ac_exec_ext in '' $ac_executable_extensions; do
6516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6517 ac_cv_prog_ac_ct_STRIP="strip
"
6518 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6527 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6528 if test -n "$ac_ct_STRIP"; then
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
6530 $as_echo "$ac_ct_STRIP" >&6; }
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6533 $as_echo "no
" >&6; }
6536 if test "x
$ac_ct_STRIP" = x; then
6539 case $cross_compiling:$ac_tool_warned in
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6542 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6543 ac_tool_warned=yes ;;
6548 STRIP="$ac_cv_prog_STRIP"
6551 test -z "$STRIP" && STRIP=:
6558 if test -n "$ac_tool_prefix"; then
6559 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
6560 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6562 $as_echo_n "checking
for $ac_word...
" >&6; }
6563 if ${ac_cv_prog_RANLIB+:} false; then :
6564 $as_echo_n "(cached
) " >&6
6566 if test -n "$RANLIB"; then
6567 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573 test -z "$as_dir" && as_dir=.
6574 for ac_exec_ext in '' $ac_executable_extensions; do
6575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6576 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
6577 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6586 RANLIB=$ac_cv_prog_RANLIB
6587 if test -n "$RANLIB"; then
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
6589 $as_echo "$RANLIB" >&6; }
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6592 $as_echo "no
" >&6; }
6597 if test -z "$ac_cv_prog_RANLIB"; then
6598 ac_ct_RANLIB=$RANLIB
6599 # Extract the first word of "ranlib
", so it can be a program name with args.
6600 set dummy ranlib; ac_word=$2
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6602 $as_echo_n "checking
for $ac_word...
" >&6; }
6603 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6604 $as_echo_n "(cached
) " >&6
6606 if test -n "$ac_ct_RANLIB"; then
6607 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613 test -z "$as_dir" && as_dir=.
6614 for ac_exec_ext in '' $ac_executable_extensions; do
6615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6616 ac_cv_prog_ac_ct_RANLIB="ranlib
"
6617 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6626 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6627 if test -n "$ac_ct_RANLIB"; then
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
6629 $as_echo "$ac_ct_RANLIB" >&6; }
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6632 $as_echo "no
" >&6; }
6635 if test "x
$ac_ct_RANLIB" = x; then
6638 case $cross_compiling:$ac_tool_warned in
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6641 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6642 ac_tool_warned=yes ;;
6644 RANLIB=$ac_ct_RANLIB
6647 RANLIB="$ac_cv_prog_RANLIB"
6650 test -z "$RANLIB" && RANLIB=:
6657 # Determine commands to create old-style static archives.
6658 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6659 old_postinstall_cmds='chmod 644 $oldlib'
6660 old_postuninstall_cmds=
6662 if test -n "$RANLIB"; then
6665 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
6668 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
6671 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
6676 lock_old_archive_extraction=yes ;;
6678 lock_old_archive_extraction=no ;;
6719 # If no C compiler was specified, use CC.
6722 # If no C compiler flags were specified, use CFLAGS.
6723 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6725 # Allow CC to be a program name with arguments.
6729 # Check for command to grab the raw symbol name followed by C symbol from nm.
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
6731 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
6732 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6733 $as_echo_n "(cached
) " >&6
6736 # These are sane defaults that work on at least a few old systems.
6737 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6739 # Character class describing NM global symbol codes.
6740 symcode='[BCDEGRST]'
6742 # Regexp to match symbols that can be accessed directly from C.
6743 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6745 # Define system-specific variables.
6750 cygwin* | mingw* | pw32* | cegcc*)
6751 symcode='[ABCDGISTW]'
6754 if test "$host_cpu" = ia64; then
6755 symcode='[ABCDEGRST]'
6759 symcode='[BCDEGRST]'
6762 symcode='[BCDEGQRST]'
6773 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6781 # If we're using GNU nm, then use its standard symbol codes.
6782 case `$NM -V 2>&1` in
6783 *GNU* | *'with BFD'*)
6784 symcode='[ABCDGIRSTW]' ;;
6787 # Transform an extracted symbol line into a proper C declaration.
6788 # Some systems (esp. on ia64) link data and code symbols differently,
6789 # so use this general approach.
6790 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6792 # Transform an extracted symbol line into symbol name and symbol address
6793 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6794 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'"
6796 # Handle CRLF in mingw tool chain
6800 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6804 # Try without a prefix underscore, then with it.
6805 for ac_symprfx in "" "_
"; do
6807 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6808 symxfrm="\\1 $ac_symprfx\\2 \\2"
6810 # Write the raw and C identifiers.
6811 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6812 # Fake it for dumpbin and say T for any non-static function
6813 # and D for any global variable.
6814 # Also find C++ and __fastcall symbols from MSVC++,
6815 # which start with @ or ?.
6816 lt_cv_sys_global_symbol_pipe="$AWK '"\
6817 " {last_section=section; section=\$ 3};"\
6818 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6819 " \$ 0!~/External *\|/{next};"\
6820 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6821 " {if(hide[section]) next};"\
6822 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6823 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6824 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6825 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6826 " ' prfx
=^
$ac_symprfx"
6828 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6831 # Check to see that the pipe works correctly.
6835 cat > conftest.$ac_ext <<_LT_EOF
6840 void nm_test_func(void);
6841 void nm_test_func(void){}
6845 int main(){nm_test_var='a';nm_test_func();return(0);}
6848 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6849 (eval $ac_compile) 2>&5
6851 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6852 test $ac_status = 0; }; then
6853 # Now try to grab the symbols.
6855 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
6856 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6858 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6859 test $ac_status = 0; } && test -s "$nlist"; then
6860 # Try sorting and uniquifying the output.
6861 if sort "$nlist" | uniq > "$nlist"T; then
6862 mv -f "$nlist"T "$nlist"
6867 # Make sure that we snagged all the symbols we need.
6868 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6869 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6870 cat <<_LT_EOF > conftest.$ac_ext
6876 # Now generate the symbol file.
6877 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6879 cat <<_LT_EOF >> conftest.$ac_ext
6881 /* The mapping between symbol names and symbols. */
6886 lt__PROGRAM__LTX_preloaded_symbols[] =
6888 { "@PROGRAM@
", (void *) 0 },
6890 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6891 cat <<\_LT_EOF >> conftest.$ac_ext
6895 /* This works around a problem in FreeBSD linker */
6896 #ifdef FREEBSD_WORKAROUND
6897 static const void *lt_preloaded_setup() {
6898 return lt__PROGRAM__LTX_preloaded_symbols;
6906 # Now try linking the two files.
6907 mv conftest.$ac_objext conftstm.$ac_objext
6908 lt_save_LIBS="$LIBS"
6909 lt_save_CFLAGS="$CFLAGS"
6910 LIBS="conftstm.
$ac_objext"
6911 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6912 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6913 (eval $ac_link) 2>&5
6915 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6916 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6919 LIBS="$lt_save_LIBS"
6920 CFLAGS="$lt_save_CFLAGS"
6922 echo "cannot
find nm_test_func
in $nlist" >&5
6925 echo "cannot
find nm_test_var
in $nlist" >&5
6928 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
6931 echo "$progname: failed program was
:" >&5
6932 cat conftest.$ac_ext >&5
6934 rm -rf conftest* conftst*
6936 # Do not use the global_symbol_pipe unless it works.
6937 if test "$pipe_works" = yes; then
6940 lt_cv_sys_global_symbol_pipe=
6946 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6947 lt_cv_sys_global_symbol_to_cdecl=
6949 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
6951 $as_echo "failed
" >&6; }
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
6954 $as_echo "ok
" >&6; }
6979 # Check whether --enable-libtool-lock was given.
6980 if test "${enable_libtool_lock+set}" = set; then :
6981 enableval=$enable_libtool_lock;
6984 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
6986 # Some flags need to be propagated to the compiler or linker for good
6990 # Find out which ABI we are using.
6991 echo 'int i;' > conftest.$ac_ext
6992 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6993 (eval $ac_compile) 2>&5
6995 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6996 test $ac_status = 0; }; then
6997 case `/usr/bin/file conftest.$ac_objext` in
7009 # Find out which ABI we are using.
7010 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
7011 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7012 (eval $ac_compile) 2>&5
7014 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7015 test $ac_status = 0; }; then
7016 if test "$lt_cv_prog_gnu_ld" = yes; then
7017 case `/usr/bin/file conftest.$ac_objext` in
7019 LD="${LD-ld} -melf32bsmip"
7022 LD="${LD-ld} -melf32bmipn32"
7025 LD="${LD-ld} -melf64bmip"
7029 case `/usr/bin/file conftest.$ac_objext` in
7045 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7046 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7047 # Find out which ABI we are using.
7048 echo 'int i;' > conftest.$ac_ext
7049 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7050 (eval $ac_compile) 2>&5
7052 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7053 test $ac_status = 0; }; then
7054 case `/usr/bin/file conftest.o` in
7057 x86_64-*kfreebsd*-gnu)
7058 LD="${LD-ld} -m elf_i386_fbsd
"
7061 case `/usr/bin/file conftest.o` in
7063 LD="${LD-ld} -m elf32_x86_64
"
7066 LD="${LD-ld} -m elf_i386
"
7070 powerpc64le-*linux*)
7071 LD="${LD-ld} -m elf32lppclinux
"
7074 LD="${LD-ld} -m elf32ppclinux
"
7077 LD="${LD-ld} -m elf_s390
"
7080 LD="${LD-ld} -m elf32_sparc
"
7086 x86_64-*kfreebsd*-gnu)
7087 LD="${LD-ld} -m elf_x86_64_fbsd
"
7090 LD="${LD-ld} -m elf_x86_64
"
7093 LD="${LD-ld} -m elf64lppc
"
7096 LD="${LD-ld} -m elf64ppc
"
7098 s390*-*linux*|s390*-*tpf*)
7099 LD="${LD-ld} -m elf64_s390
"
7102 LD="${LD-ld} -m elf64_sparc
"
7112 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7113 SAVE_CFLAGS="$CFLAGS"
7114 CFLAGS="$CFLAGS -belf"
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
7116 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
7117 if ${lt_cv_cc_needs_belf+:} false; then :
7118 $as_echo_n "(cached
) " >&6
7121 ac_cpp='$CPP $CPPFLAGS'
7122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7127 /* end confdefs.h. */
7137 if ac_fn_c_try_link "$LINENO"; then :
7138 lt_cv_cc_needs_belf=yes
7140 lt_cv_cc_needs_belf=no
7142 rm -f core conftest.err conftest.$ac_objext \
7143 conftest$ac_exeext conftest.$ac_ext
7145 ac_cpp='$CPP $CPPFLAGS'
7146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
7152 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7153 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7154 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7155 CFLAGS="$SAVE_CFLAGS"
7159 # Find out which ABI we are using.
7160 echo 'int i;' > conftest.$ac_ext
7161 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7162 (eval $ac_compile) 2>&5
7164 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7165 test $ac_status = 0; }; then
7166 case `/usr/bin/file conftest.o` in
7168 case $lt_cv_prog_gnu_ld in
7169 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
7171 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7183 need_locks="$enable_libtool_lock"
7187 rhapsody* | darwin*)
7188 if test -n "$ac_tool_prefix"; then
7189 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
7190 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7192 $as_echo_n "checking
for $ac_word...
" >&6; }
7193 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7194 $as_echo_n "(cached
) " >&6
7196 if test -n "$DSYMUTIL"; then
7197 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203 test -z "$as_dir" && as_dir=.
7204 for ac_exec_ext in '' $ac_executable_extensions; do
7205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7206 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
7207 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7216 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7217 if test -n "$DSYMUTIL"; then
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
7219 $as_echo "$DSYMUTIL" >&6; }
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7222 $as_echo "no
" >&6; }
7227 if test -z "$ac_cv_prog_DSYMUTIL"; then
7228 ac_ct_DSYMUTIL=$DSYMUTIL
7229 # Extract the first word of "dsymutil
", so it can be a program name with args.
7230 set dummy dsymutil; ac_word=$2
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7232 $as_echo_n "checking
for $ac_word...
" >&6; }
7233 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7234 $as_echo_n "(cached
) " >&6
7236 if test -n "$ac_ct_DSYMUTIL"; then
7237 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7243 test -z "$as_dir" && as_dir=.
7244 for ac_exec_ext in '' $ac_executable_extensions; do
7245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7246 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
7247 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7256 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7257 if test -n "$ac_ct_DSYMUTIL"; then
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
7259 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7262 $as_echo "no
" >&6; }
7265 if test "x
$ac_ct_DSYMUTIL" = x; then
7268 case $cross_compiling:$ac_tool_warned in
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7271 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7272 ac_tool_warned=yes ;;
7274 DSYMUTIL=$ac_ct_DSYMUTIL
7277 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7280 if test -n "$ac_tool_prefix"; then
7281 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
7282 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7284 $as_echo_n "checking
for $ac_word...
" >&6; }
7285 if ${ac_cv_prog_NMEDIT+:} false; then :
7286 $as_echo_n "(cached
) " >&6
7288 if test -n "$NMEDIT"; then
7289 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295 test -z "$as_dir" && as_dir=.
7296 for ac_exec_ext in '' $ac_executable_extensions; do
7297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7298 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
7299 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7308 NMEDIT=$ac_cv_prog_NMEDIT
7309 if test -n "$NMEDIT"; then
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
7311 $as_echo "$NMEDIT" >&6; }
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7314 $as_echo "no
" >&6; }
7319 if test -z "$ac_cv_prog_NMEDIT"; then
7320 ac_ct_NMEDIT=$NMEDIT
7321 # Extract the first word of "nmedit
", so it can be a program name with args.
7322 set dummy nmedit; ac_word=$2
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7324 $as_echo_n "checking
for $ac_word...
" >&6; }
7325 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7326 $as_echo_n "(cached
) " >&6
7328 if test -n "$ac_ct_NMEDIT"; then
7329 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335 test -z "$as_dir" && as_dir=.
7336 for ac_exec_ext in '' $ac_executable_extensions; do
7337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7338 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
7339 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7348 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7349 if test -n "$ac_ct_NMEDIT"; then
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
7351 $as_echo "$ac_ct_NMEDIT" >&6; }
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7354 $as_echo "no
" >&6; }
7357 if test "x
$ac_ct_NMEDIT" = x; then
7360 case $cross_compiling:$ac_tool_warned in
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7363 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7364 ac_tool_warned=yes ;;
7366 NMEDIT=$ac_ct_NMEDIT
7369 NMEDIT="$ac_cv_prog_NMEDIT"
7372 if test -n "$ac_tool_prefix"; then
7373 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
7374 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7376 $as_echo_n "checking
for $ac_word...
" >&6; }
7377 if ${ac_cv_prog_LIPO+:} false; then :
7378 $as_echo_n "(cached
) " >&6
7380 if test -n "$LIPO"; then
7381 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387 test -z "$as_dir" && as_dir=.
7388 for ac_exec_ext in '' $ac_executable_extensions; do
7389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7390 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
7391 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7400 LIPO=$ac_cv_prog_LIPO
7401 if test -n "$LIPO"; then
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
7403 $as_echo "$LIPO" >&6; }
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7406 $as_echo "no
" >&6; }
7411 if test -z "$ac_cv_prog_LIPO"; then
7413 # Extract the first word of "lipo
", so it can be a program name with args.
7414 set dummy lipo; ac_word=$2
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7416 $as_echo_n "checking
for $ac_word...
" >&6; }
7417 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7418 $as_echo_n "(cached
) " >&6
7420 if test -n "$ac_ct_LIPO"; then
7421 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427 test -z "$as_dir" && as_dir=.
7428 for ac_exec_ext in '' $ac_executable_extensions; do
7429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7430 ac_cv_prog_ac_ct_LIPO="lipo
"
7431 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7440 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7441 if test -n "$ac_ct_LIPO"; then
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
7443 $as_echo "$ac_ct_LIPO" >&6; }
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7446 $as_echo "no
" >&6; }
7449 if test "x
$ac_ct_LIPO" = x; then
7452 case $cross_compiling:$ac_tool_warned in
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7455 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7456 ac_tool_warned=yes ;;
7461 LIPO="$ac_cv_prog_LIPO"
7464 if test -n "$ac_tool_prefix"; then
7465 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
7466 set dummy ${ac_tool_prefix}otool; ac_word=$2
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7468 $as_echo_n "checking
for $ac_word...
" >&6; }
7469 if ${ac_cv_prog_OTOOL+:} false; then :
7470 $as_echo_n "(cached
) " >&6
7472 if test -n "$OTOOL"; then
7473 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479 test -z "$as_dir" && as_dir=.
7480 for ac_exec_ext in '' $ac_executable_extensions; do
7481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7482 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
7483 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7492 OTOOL=$ac_cv_prog_OTOOL
7493 if test -n "$OTOOL"; then
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
7495 $as_echo "$OTOOL" >&6; }
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7498 $as_echo "no
" >&6; }
7503 if test -z "$ac_cv_prog_OTOOL"; then
7505 # Extract the first word of "otool
", so it can be a program name with args.
7506 set dummy otool; ac_word=$2
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7508 $as_echo_n "checking
for $ac_word...
" >&6; }
7509 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7510 $as_echo_n "(cached
) " >&6
7512 if test -n "$ac_ct_OTOOL"; then
7513 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519 test -z "$as_dir" && as_dir=.
7520 for ac_exec_ext in '' $ac_executable_extensions; do
7521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7522 ac_cv_prog_ac_ct_OTOOL="otool
"
7523 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7532 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7533 if test -n "$ac_ct_OTOOL"; then
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
7535 $as_echo "$ac_ct_OTOOL" >&6; }
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7538 $as_echo "no
" >&6; }
7541 if test "x
$ac_ct_OTOOL" = x; then
7544 case $cross_compiling:$ac_tool_warned in
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7547 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7548 ac_tool_warned=yes ;;
7553 OTOOL="$ac_cv_prog_OTOOL"
7556 if test -n "$ac_tool_prefix"; then
7557 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
7558 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7560 $as_echo_n "checking
for $ac_word...
" >&6; }
7561 if ${ac_cv_prog_OTOOL64+:} false; then :
7562 $as_echo_n "(cached
) " >&6
7564 if test -n "$OTOOL64"; then
7565 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7571 test -z "$as_dir" && as_dir=.
7572 for ac_exec_ext in '' $ac_executable_extensions; do
7573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7574 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
7575 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7584 OTOOL64=$ac_cv_prog_OTOOL64
7585 if test -n "$OTOOL64"; then
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
7587 $as_echo "$OTOOL64" >&6; }
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7590 $as_echo "no
" >&6; }
7595 if test -z "$ac_cv_prog_OTOOL64"; then
7596 ac_ct_OTOOL64=$OTOOL64
7597 # Extract the first word of "otool64
", so it can be a program name with args.
7598 set dummy otool64; ac_word=$2
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7600 $as_echo_n "checking
for $ac_word...
" >&6; }
7601 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7602 $as_echo_n "(cached
) " >&6
7604 if test -n "$ac_ct_OTOOL64"; then
7605 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7611 test -z "$as_dir" && as_dir=.
7612 for ac_exec_ext in '' $ac_executable_extensions; do
7613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7614 ac_cv_prog_ac_ct_OTOOL64="otool64
"
7615 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7624 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7625 if test -n "$ac_ct_OTOOL64"; then
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
7627 $as_echo "$ac_ct_OTOOL64" >&6; }
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7630 $as_echo "no
" >&6; }
7633 if test "x
$ac_ct_OTOOL64" = x; then
7636 case $cross_compiling:$ac_tool_warned in
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7639 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7640 ac_tool_warned=yes ;;
7642 OTOOL64=$ac_ct_OTOOL64
7645 OTOOL64="$ac_cv_prog_OTOOL64"
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
7675 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
7676 if ${lt_cv_apple_cc_single_mod+:} false; then :
7677 $as_echo_n "(cached
) " >&6
7679 lt_cv_apple_cc_single_mod=no
7680 if test -z "${LT_MULTI_MODULE}"; then
7681 # By default we will add the -single_module flag. You can override
7682 # by either setting the environment variable LT_MULTI_MODULE
7683 # non-empty at configure time, or by adding -multi_module to the
7685 rm -rf libconftest.dylib*
7686 echo "int foo
(void
){return 1;}" > conftest.c
7687 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7688 -dynamiclib -Wl,-single_module conftest.c
" >&5
7689 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7690 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7692 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7693 lt_cv_apple_cc_single_mod=yes
7695 cat conftest.err >&5
7697 rm -rf libconftest.dylib*
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
7702 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
7704 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
7705 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7706 $as_echo_n "(cached
) " >&6
7708 lt_cv_ld_exported_symbols_list=no
7709 save_LDFLAGS=$LDFLAGS
7710 echo "_main
" > conftest.sym
7711 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
7712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7713 /* end confdefs.h. */
7723 if ac_fn_c_try_link "$LINENO"; then :
7724 lt_cv_ld_exported_symbols_list=yes
7726 lt_cv_ld_exported_symbols_list=no
7728 rm -f core conftest.err conftest.$ac_objext \
7729 conftest$ac_exeext conftest.$ac_ext
7730 LDFLAGS="$save_LDFLAGS"
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
7734 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
7736 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
7737 if ${lt_cv_ld_force_load+:} false; then :
7738 $as_echo_n "(cached
) " >&6
7740 lt_cv_ld_force_load=no
7741 cat > conftest.c << _LT_EOF
7742 int forced_loaded() { return 2;}
7744 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
7745 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7746 echo "$AR cru libconftest.a conftest.o
" >&5
7747 $AR cru libconftest.a conftest.o 2>&5
7748 cat > conftest.c << _LT_EOF
7749 int main() { return 0;}
7751 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
7752 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7754 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7755 lt_cv_ld_force_load=yes
7757 cat conftest.err >&5
7759 rm -f conftest.err libconftest.a conftest conftest.c
7760 rm -rf conftest.dSYM
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
7764 $as_echo "$lt_cv_ld_force_load" >&6; }
7765 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7766 # build without first building modern cctools / linker.
7767 case $host_cpu-$host_os in
7768 *-rhapsody* | *-darwin1.[012])
7769 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7771 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7773 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7774 # deployment target is forced to an earlier version.
7775 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7776 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7779 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7786 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7787 _lt_dar_single_mod='$single_module'
7789 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7790 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7792 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7794 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
7795 _lt_dsymutil='~$DSYMUTIL $lib || :'
7803 ac_cpp='$CPP $CPPFLAGS'
7804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
7808 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
7809 # On Suns, sometimes $CPP names a directory.
7810 if test -n "$CPP" && test -d "$CPP"; then
7813 if test -z "$CPP"; then
7814 if ${ac_cv_prog_CPP+:} false; then :
7815 $as_echo_n "(cached
) " >&6
7817 # Double quotes because CPP needs to be expanded
7818 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
7821 for ac_c_preproc_warn_flag in '' yes
7823 # Use a header file that comes with gcc, so configuring glibc
7824 # with a fresh cross-compiler works.
7825 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7826 # <limits.h> exists even on freestanding compilers.
7827 # On the NeXT, cc -E runs the code through the compiler's parser,
7828 # not just through cpp. "Syntax error
" is here to catch this case.
7829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7830 /* end confdefs.h. */
7832 # include <limits.h>
7834 # include <assert.h>
7838 if ac_fn_c_try_cpp "$LINENO"; then :
7841 # Broken: fails on valid input.
7844 rm -f conftest.err conftest.i conftest.$ac_ext
7846 # OK, works on sane cases. Now check whether nonexistent headers
7847 # can be detected and how.
7848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7849 /* end confdefs.h. */
7850 #include <ac_nonexistent.h>
7852 if ac_fn_c_try_cpp "$LINENO"; then :
7853 # Broken: success on invalid input.
7856 # Passes both tests.
7860 rm -f conftest.err conftest.i conftest.$ac_ext
7863 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7864 rm -f conftest.i conftest.err conftest.$ac_ext
7865 if $ac_preproc_ok; then :
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
7878 $as_echo "$CPP" >&6; }
7880 for ac_c_preproc_warn_flag in '' yes
7882 # Use a header file that comes with gcc, so configuring glibc
7883 # with a fresh cross-compiler works.
7884 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7885 # <limits.h> exists even on freestanding compilers.
7886 # On the NeXT, cc -E runs the code through the compiler's parser,
7887 # not just through cpp. "Syntax error
" is here to catch this case.
7888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7889 /* end confdefs.h. */
7891 # include <limits.h>
7893 # include <assert.h>
7897 if ac_fn_c_try_cpp "$LINENO"; then :
7900 # Broken: fails on valid input.
7903 rm -f conftest.err conftest.i conftest.$ac_ext
7905 # OK, works on sane cases. Now check whether nonexistent headers
7906 # can be detected and how.
7907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7908 /* end confdefs.h. */
7909 #include <ac_nonexistent.h>
7911 if ac_fn_c_try_cpp "$LINENO"; then :
7912 # Broken: success on invalid input.
7915 # Passes both tests.
7919 rm -f conftest.err conftest.i conftest.$ac_ext
7922 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7923 rm -f conftest.i conftest.err conftest.$ac_ext
7924 if $ac_preproc_ok; then :
7927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
7928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7929 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7930 See \`config.log' for more details
" "$LINENO" 5; }
7934 ac_cpp='$CPP $CPPFLAGS'
7935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
7941 $as_echo_n "checking
for ANSI C header files...
" >&6; }
7942 if ${ac_cv_header_stdc+:} false; then :
7943 $as_echo_n "(cached
) " >&6
7945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7946 /* end confdefs.h. */
7960 if ac_fn_c_try_compile "$LINENO"; then :
7961 ac_cv_header_stdc=yes
7963 ac_cv_header_stdc=no
7965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7967 if test $ac_cv_header_stdc = yes; then
7968 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7970 /* end confdefs.h. */
7974 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7975 $EGREP "memchr
" >/dev/null 2>&1; then :
7978 ac_cv_header_stdc=no
7984 if test $ac_cv_header_stdc = yes; then
7985 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987 /* end confdefs.h. */
7991 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7992 $EGREP "free
" >/dev/null 2>&1; then :
7995 ac_cv_header_stdc=no
8001 if test $ac_cv_header_stdc = yes; then
8002 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8003 if test "$cross_compiling" = yes; then :
8006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8007 /* end confdefs.h. */
8010 #if ((' ' & 0x0FF) == 0x020)
8011 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8012 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8014 # define ISLOWER(c) \
8015 (('a' <= (c) && (c) <= 'i') \
8016 || ('j' <= (c) && (c) <= 'r') \
8017 || ('s' <= (c) && (c) <= 'z'))
8018 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8021 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8026 for (i = 0; i < 256; i++)
8027 if (XOR (islower (i), ISLOWER (i))
8028 || toupper (i) != TOUPPER (i))
8033 if ac_fn_c_try_run "$LINENO"; then :
8036 ac_cv_header_stdc=no
8038 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8039 conftest.$ac_objext conftest.beam conftest.$ac_ext
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
8045 $as_echo "$ac_cv_header_stdc" >&6; }
8046 if test $ac_cv_header_stdc = yes; then
8048 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8052 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8053 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
8054 inttypes.h stdint.h unistd.h
8056 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8057 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8059 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
8060 cat >>confdefs.h
<<_ACEOF
8061 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8069 for ac_header
in dlfcn.h
8071 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8073 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
8074 cat >>confdefs.h
<<_ACEOF
8075 #define HAVE_DLFCN_H 1
8097 # Check whether --enable-shared was given.
8098 if test "${enable_shared+set}" = set; then :
8099 enableval
=$enable_shared; p
=${PACKAGE-default}
8101 yes) enable_shared
=yes ;;
8102 no
) enable_shared
=no
;;
8105 # Look at the argument we got. We use all the common list separators.
8106 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8107 for pkg
in $enableval; do
8109 if test "X$pkg" = "X$p"; then
8128 # Check whether --enable-static was given.
8129 if test "${enable_static+set}" = set; then :
8130 enableval
=$enable_static; p
=${PACKAGE-default}
8132 yes) enable_static
=yes ;;
8133 no
) enable_static
=no
;;
8136 # Look at the argument we got. We use all the common list separators.
8137 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8138 for pkg
in $enableval; do
8140 if test "X$pkg" = "X$p"; then
8160 # Check whether --with-pic was given.
8161 if test "${with_pic+set}" = set; then :
8162 withval
=$with_pic; pic_mode
="$withval"
8168 test -z "$pic_mode" && pic_mode
=default
8176 # Check whether --enable-fast-install was given.
8177 if test "${enable_fast_install+set}" = set; then :
8178 enableval
=$enable_fast_install; p
=${PACKAGE-default}
8180 yes) enable_fast_install
=yes ;;
8181 no
) enable_fast_install
=no
;;
8183 enable_fast_install
=no
8184 # Look at the argument we got. We use all the common list separators.
8185 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8186 for pkg
in $enableval; do
8188 if test "X$pkg" = "X$p"; then
8189 enable_fast_install
=yes
8196 enable_fast_install
=yes
8209 # This can be used to rebuild libtool when needed
8210 LIBTOOL_DEPS
="$ltmain"
8212 # Always use our own libtool.
8213 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
8240 test -z "$LN_S" && LN_S
="ln -s"
8255 if test -n "${ZSH_VERSION+set}" ; then
8256 setopt NO_GLOB_SUBST
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8260 $as_echo_n "checking for objdir... " >&6; }
8261 if ${lt_cv_objdir+:} false
; then :
8262 $as_echo_n "(cached) " >&6
8264 rm -f .libs
2>/dev
/null
8265 mkdir .libs
2>/dev
/null
8266 if test -d .libs
; then
8269 # MS-DOS does not allow filenames that begin with a dot.
8272 rmdir .libs
2>/dev
/null
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8275 $as_echo "$lt_cv_objdir" >&6; }
8276 objdir
=$lt_cv_objdir
8282 cat >>confdefs.h
<<_ACEOF
8283 #define LT_OBJDIR "$lt_cv_objdir/"
8291 # AIX sometimes has problems with the GCC collect2 program. For some
8292 # reason, if we set the COLLECT_NAMES environment variable, the problems
8293 # vanish in a puff of smoke.
8294 if test "X${COLLECT_NAMES+set}" != Xset
; then
8296 export COLLECT_NAMES
8303 can_build_shared
=yes
8305 # All known linkers require a `.a' archive for static linking (except MSVC,
8306 # which needs '.lib').
8309 with_gnu_ld
="$lt_cv_prog_gnu_ld"
8312 old_CFLAGS
="$CFLAGS"
8314 # Set sane defaults for various variables
8315 test -z "$CC" && CC
=cc
8316 test -z "$LTCC" && LTCC
=$CC
8317 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
8318 test -z "$LD" && LD
=ld
8319 test -z "$ac_objext" && ac_objext
=o
8321 for cc_temp
in $compiler""; do
8323 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
8324 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
8329 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8332 # Only perform the check for file, if the check method requires it
8333 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
8334 case $deplibs_check_method in
8336 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8338 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8339 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8340 $as_echo_n "(cached) " >&6
8344 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8347 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8348 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8349 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8350 for ac_dir
in $ac_dummy; do
8352 test -z "$ac_dir" && ac_dir
=.
8353 if test -f $ac_dir/${ac_tool_prefix}file; then
8354 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
8355 if test -n "$file_magic_test_file"; then
8356 case $deplibs_check_method in
8358 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8359 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8360 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8361 $EGREP "$file_magic_regex" > /dev
/null
; then
8366 *** Warning: the command libtool uses to detect shared libraries,
8367 *** $file_magic_cmd, produces output that libtool cannot recognize.
8368 *** The result is that libtool may fail to recognize shared libraries
8369 *** as such. This will affect the creation of libtool libraries that
8370 *** depend on shared libraries, but programs linked with such libtool
8371 *** libraries will work regardless of this problem. Nevertheless, you
8372 *** may want to report the problem to your system manager and/or to
8373 *** bug-libtool@gnu.org
8383 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8388 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8389 if test -n "$MAGIC_CMD"; then
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8391 $as_echo "$MAGIC_CMD" >&6; }
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394 $as_echo "no" >&6; }
8401 if test -z "$lt_cv_path_MAGIC_CMD"; then
8402 if test -n "$ac_tool_prefix"; then
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8404 $as_echo_n "checking for file... " >&6; }
8405 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8406 $as_echo_n "(cached) " >&6
8410 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8413 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8414 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8415 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8416 for ac_dir
in $ac_dummy; do
8418 test -z "$ac_dir" && ac_dir
=.
8419 if test -f $ac_dir/file; then
8420 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
8421 if test -n "$file_magic_test_file"; then
8422 case $deplibs_check_method in
8424 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8425 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8426 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8427 $EGREP "$file_magic_regex" > /dev
/null
; then
8432 *** Warning: the command libtool uses to detect shared libraries,
8433 *** $file_magic_cmd, produces output that libtool cannot recognize.
8434 *** The result is that libtool may fail to recognize shared libraries
8435 *** as such. This will affect the creation of libtool libraries that
8436 *** depend on shared libraries, but programs linked with such libtool
8437 *** libraries will work regardless of this problem. Nevertheless, you
8438 *** may want to report the problem to your system manager and/or to
8439 *** bug-libtool@gnu.org
8449 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8454 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8455 if test -n "$MAGIC_CMD"; then
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8457 $as_echo "$MAGIC_CMD" >&6; }
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8460 $as_echo "no" >&6; }
8473 # Use C for the default configuration in the libtool script
8477 ac_cpp
='$CPP $CPPFLAGS'
8478 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8479 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8480 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8483 # Source file extension for C test sources.
8486 # Object file extension for compiled C test sources.
8490 # Code to be used in simple compile tests
8491 lt_simple_compile_test_code
="int some_variable = 0;"
8493 # Code to be used in simple link tests
8494 lt_simple_link_test_code
='int main(){return(0);}'
8502 # If no C compiler was specified, use CC.
8505 # If no C compiler flags were specified, use CFLAGS.
8506 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8508 # Allow CC to be a program name with arguments.
8511 # Save the default compiler, since it gets overwritten when the other
8512 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8513 compiler_DEFAULT
=$CC
8515 # save warnings/boilerplate of simple test code
8516 ac_outfile
=conftest.
$ac_objext
8517 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8518 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8519 _lt_compiler_boilerplate
=`cat conftest.err`
8522 ac_outfile
=conftest.
$ac_objext
8523 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8524 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8525 _lt_linker_boilerplate
=`cat conftest.err`
8530 ## There is no encapsulation within the following macros, do not change
8531 ## the running order or otherwise move them around unless you know exactly
8532 ## what you are doing...
8533 if test -n "$compiler"; then
8535 lt_prog_compiler_no_builtin_flag
=
8537 if test "$GCC" = yes; then
8538 case $cc_basename in
8540 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8542 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8546 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8547 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
8548 $as_echo_n "(cached) " >&6
8550 lt_cv_prog_compiler_rtti_exceptions
=no
8551 ac_outfile
=conftest.
$ac_objext
8552 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8553 lt_compiler_flag
="-fno-rtti -fno-exceptions"
8554 # Insert the option either (1) after the last *FLAGS variable, or
8555 # (2) before a word containing "conftest.", or (3) at the end.
8556 # Note that $ac_compile itself does not contain backslashes and begins
8557 # with a dollar sign (not a hyphen), so the echo should work correctly.
8558 # The option is referenced via a variable to avoid confusing sed.
8559 lt_compile
=`echo "$ac_compile" | $SED \
8560 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8561 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8562 -e 's:$: $lt_compiler_flag:'`
8563 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8564 (eval "$lt_compile" 2>conftest.err
)
8566 cat conftest.err
>&5
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 if (exit $ac_status) && test -s "$ac_outfile"; then
8569 # The compiler can only warn and ignore the option if not recognized
8570 # So say no if there are warnings other than the usual output.
8571 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8572 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8573 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8574 lt_cv_prog_compiler_rtti_exceptions
=yes
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8581 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8583 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
8584 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8596 lt_prog_compiler_wl
=
8597 lt_prog_compiler_pic
=
8598 lt_prog_compiler_static
=
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8601 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8603 if test "$GCC" = yes; then
8604 lt_prog_compiler_wl
='-Wl,'
8605 lt_prog_compiler_static
='-static'
8609 # All AIX code is PIC.
8610 if test "$host_cpu" = ia64
; then
8611 # AIX 5 now supports IA64 processor
8612 lt_prog_compiler_static
='-Bstatic'
8614 lt_prog_compiler_pic
='-fPIC'
8620 # see comment about AmigaOS4 .so support
8621 lt_prog_compiler_pic
='-fPIC'
8624 # FIXME: we need at least 68020 code to build shared libraries, but
8625 # adding the `-m68020' flag to GCC prevents building anything better,
8627 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8632 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8633 # PIC is the default for these OSes.
8636 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8637 # This hack is so that the source file can tell whether it is being
8638 # built for inclusion in a dll (and should export symbols for example).
8639 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8640 # (--disable-auto-import) libraries
8641 lt_prog_compiler_pic
='-DDLL_EXPORT'
8644 darwin
* | rhapsody
*)
8645 # PIC is the default on this platform
8646 # Common symbols not allowed in MH_DYLIB files
8647 lt_prog_compiler_pic
='-fno-common'
8651 # PIC is the default for Haiku.
8652 # The "-static" flag exists, but is broken.
8653 lt_prog_compiler_static
=
8657 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8658 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8659 # sets the default TLS model and affects inlining.
8665 lt_prog_compiler_pic
='-fPIC'
8671 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8672 # Instead, we relocate shared libraries at runtime.
8676 # Just because we use GCC doesn't mean we suddenly get shared libraries
8677 # on systems that don't support them.
8678 lt_prog_compiler_can_build_shared
=no
8683 # QNX uses GNU C++, but need to define -shared option too, otherwise
8685 lt_prog_compiler_pic
='-fPIC -shared'
8689 if test -d /usr
/nec
; then
8690 lt_prog_compiler_pic
=-Kconform_pic
8695 lt_prog_compiler_pic
='-fPIC'
8699 case $cc_basename in
8700 nvcc
*) # Cuda Compiler Driver 2.2
8701 lt_prog_compiler_wl
='-Xlinker '
8702 lt_prog_compiler_pic
='-Xcompiler -fPIC'
8706 # PORTME Check for flag to pass linker flags through the system compiler.
8709 lt_prog_compiler_wl
='-Wl,'
8710 if test "$host_cpu" = ia64
; then
8711 # AIX 5 now supports IA64 processor
8712 lt_prog_compiler_static
='-Bstatic'
8714 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8718 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8719 # This hack is so that the source file can tell whether it is being
8720 # built for inclusion in a dll (and should export symbols for example).
8721 lt_prog_compiler_pic
='-DDLL_EXPORT'
8724 hpux9
* | hpux10
* | hpux11
*)
8725 lt_prog_compiler_wl
='-Wl,'
8726 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8733 lt_prog_compiler_pic
='+Z'
8736 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8737 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8740 irix5
* | irix6
* | nonstopux
*)
8741 lt_prog_compiler_wl
='-Wl,'
8742 # PIC (with -KPIC) is the default.
8743 lt_prog_compiler_static
='-non_shared'
8746 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8747 case $cc_basename in
8748 # old Intel for x86_64 which still supported -KPIC.
8750 lt_prog_compiler_wl
='-Wl,'
8751 lt_prog_compiler_pic
='-KPIC'
8752 lt_prog_compiler_static
='-static'
8754 # icc used to be incompatible with GCC.
8755 # ICC 10 doesn't accept -KPIC any more.
8757 lt_prog_compiler_wl
='-Wl,'
8758 lt_prog_compiler_pic
='-fPIC'
8759 lt_prog_compiler_static
='-static'
8761 # Lahey Fortran 8.1.
8763 lt_prog_compiler_wl
='-Wl,'
8764 lt_prog_compiler_pic
='--shared'
8765 lt_prog_compiler_static
='--static'
8767 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8768 # Portland Group compilers (*not* the Pentium gcc compiler,
8769 # which looks to be a dead project)
8770 lt_prog_compiler_wl
='-Wl,'
8771 lt_prog_compiler_pic
='-fpic'
8772 lt_prog_compiler_static
='-Bstatic'
8775 lt_prog_compiler_wl
='-Wl,'
8776 # All Alpha code is PIC.
8777 lt_prog_compiler_static
='-non_shared'
8779 xl
* | bgxl
* | bgf
* | mpixl
*)
8780 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8781 lt_prog_compiler_wl
='-Wl,'
8782 lt_prog_compiler_pic
='-qpic'
8783 lt_prog_compiler_static
='-qstaticlink'
8786 case `$CC -V 2>&1 | sed 5q` in
8787 *Sun\ F
* |
*Sun
*Fortran
*)
8788 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8789 lt_prog_compiler_pic
='-KPIC'
8790 lt_prog_compiler_static
='-Bstatic'
8791 lt_prog_compiler_wl
=''
8795 lt_prog_compiler_pic
='-KPIC'
8796 lt_prog_compiler_static
='-Bstatic'
8797 lt_prog_compiler_wl
='-Wl,'
8805 lt_prog_compiler_pic
='-KPIC'
8806 lt_prog_compiler_static
='-Bstatic'
8810 # QNX uses GNU C++, but need to define -shared option too, otherwise
8812 lt_prog_compiler_pic
='-fPIC -shared'
8815 osf3
* | osf4
* | osf5
*)
8816 lt_prog_compiler_wl
='-Wl,'
8817 # All OSF/1 code is PIC.
8818 lt_prog_compiler_static
='-non_shared'
8822 lt_prog_compiler_static
='-non_shared'
8826 lt_prog_compiler_pic
='-KPIC'
8827 lt_prog_compiler_static
='-Bstatic'
8828 case $cc_basename in
8830 lt_prog_compiler_wl
='-Qoption ld ';;
8832 lt_prog_compiler_wl
='-Wl,';;
8837 lt_prog_compiler_wl
='-Qoption ld '
8838 lt_prog_compiler_pic
='-PIC'
8839 lt_prog_compiler_static
='-Bstatic'
8842 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8843 lt_prog_compiler_wl
='-Wl,'
8844 lt_prog_compiler_pic
='-KPIC'
8845 lt_prog_compiler_static
='-Bstatic'
8849 if test -d /usr
/nec
;then
8850 lt_prog_compiler_pic
='-Kconform_pic'
8851 lt_prog_compiler_static
='-Bstatic'
8855 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8856 lt_prog_compiler_wl
='-Wl,'
8857 lt_prog_compiler_pic
='-KPIC'
8858 lt_prog_compiler_static
='-Bstatic'
8862 lt_prog_compiler_wl
='-Wl,'
8863 lt_prog_compiler_can_build_shared
=no
8867 lt_prog_compiler_pic
='-pic'
8868 lt_prog_compiler_static
='-Bstatic'
8872 lt_prog_compiler_can_build_shared
=no
8878 # For platforms which do not support PIC, -DPIC is meaningless:
8880 lt_prog_compiler_pic
=
8883 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8887 $as_echo "$lt_prog_compiler_pic" >&6; }
8895 # Check to make sure the PIC flag actually works.
8897 if test -n "$lt_prog_compiler_pic"; then
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8899 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8900 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
8901 $as_echo_n "(cached) " >&6
8903 lt_cv_prog_compiler_pic_works
=no
8904 ac_outfile
=conftest.
$ac_objext
8905 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8906 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8907 # Insert the option either (1) after the last *FLAGS variable, or
8908 # (2) before a word containing "conftest.", or (3) at the end.
8909 # Note that $ac_compile itself does not contain backslashes and begins
8910 # with a dollar sign (not a hyphen), so the echo should work correctly.
8911 # The option is referenced via a variable to avoid confusing sed.
8912 lt_compile
=`echo "$ac_compile" | $SED \
8913 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8914 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8915 -e 's:$: $lt_compiler_flag:'`
8916 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8917 (eval "$lt_compile" 2>conftest.err
)
8919 cat conftest.err
>&5
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 if (exit $ac_status) && test -s "$ac_outfile"; then
8922 # The compiler can only warn and ignore the option if not recognized
8923 # So say no if there are warnings other than the usual output.
8924 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8925 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8926 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8927 lt_cv_prog_compiler_pic_works
=yes
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8934 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8936 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8937 case $lt_prog_compiler_pic in
8939 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8942 lt_prog_compiler_pic
=
8943 lt_prog_compiler_can_build_shared
=no
8954 # Check to make sure the static flag actually works.
8956 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8958 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8959 if ${lt_cv_prog_compiler_static_works+:} false
; then :
8960 $as_echo_n "(cached) " >&6
8962 lt_cv_prog_compiler_static_works
=no
8963 save_LDFLAGS
="$LDFLAGS"
8964 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8965 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8966 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8967 # The linker can only warn and ignore the option if not recognized
8968 # So say no if there are warnings
8969 if test -s conftest.err
; then
8970 # Append any errors to the config.log.
8971 cat conftest.err
1>&5
8972 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
8973 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8974 if diff conftest.exp conftest.er2
>/dev
/null
; then
8975 lt_cv_prog_compiler_static_works
=yes
8978 lt_cv_prog_compiler_static_works
=yes
8982 LDFLAGS
="$save_LDFLAGS"
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8986 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8988 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8991 lt_prog_compiler_static
=
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9001 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9002 if ${lt_cv_prog_compiler_c_o+:} false
; then :
9003 $as_echo_n "(cached) " >&6
9005 lt_cv_prog_compiler_c_o
=no
9006 $RM -r conftest
2>/dev
/null
9010 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9012 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9013 # Insert the option either (1) after the last *FLAGS variable, or
9014 # (2) before a word containing "conftest.", or (3) at the end.
9015 # Note that $ac_compile itself does not contain backslashes and begins
9016 # with a dollar sign (not a hyphen), so the echo should work correctly.
9017 lt_compile
=`echo "$ac_compile" | $SED \
9018 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9019 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9020 -e 's:$: $lt_compiler_flag:'`
9021 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9022 (eval "$lt_compile" 2>out
/conftest.err
)
9024 cat out
/conftest.err
>&5
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9028 # The compiler can only warn and ignore the option if not recognized
9029 # So say no if there are warnings
9030 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
9031 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9032 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9033 lt_cv_prog_compiler_c_o
=yes
9038 # SGI C++ compiler will create directory out/ii_files/ for
9039 # template instantiation
9040 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9041 $RM out
/* && rmdir out
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9048 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9056 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9057 if ${lt_cv_prog_compiler_c_o+:} false
; then :
9058 $as_echo_n "(cached) " >&6
9060 lt_cv_prog_compiler_c_o
=no
9061 $RM -r conftest
2>/dev
/null
9065 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9067 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9068 # Insert the option either (1) after the last *FLAGS variable, or
9069 # (2) before a word containing "conftest.", or (3) at the end.
9070 # Note that $ac_compile itself does not contain backslashes and begins
9071 # with a dollar sign (not a hyphen), so the echo should work correctly.
9072 lt_compile
=`echo "$ac_compile" | $SED \
9073 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9074 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9075 -e 's:$: $lt_compiler_flag:'`
9076 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9077 (eval "$lt_compile" 2>out
/conftest.err
)
9079 cat out
/conftest.err
>&5
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9083 # The compiler can only warn and ignore the option if not recognized
9084 # So say no if there are warnings
9085 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
9086 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9087 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9088 lt_cv_prog_compiler_c_o
=yes
9093 # SGI C++ compiler will create directory out/ii_files/ for
9094 # template instantiation
9095 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9096 $RM out
/* && rmdir out
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9103 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9108 hard_links
="nottested"
9109 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
9110 # do not overwrite the value of need_locks provided by the user
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9112 $as_echo_n "checking if we can lock with hard links... " >&6; }
9115 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9117 ln conftest.a conftest.b
2>&5 || hard_links
=no
9118 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9120 $as_echo "$hard_links" >&6; }
9121 if test "$hard_links" = no
; then
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9123 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9136 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9139 allow_undefined_flag
=
9140 always_export_symbols
=no
9142 archive_expsym_cmds
=
9143 compiler_needs_object
=no
9144 enable_shared_with_static_runtimes
=no
9145 export_dynamic_flag_spec
=
9146 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9147 hardcode_automatic
=no
9149 hardcode_direct_absolute
=no
9150 hardcode_libdir_flag_spec
=
9151 hardcode_libdir_flag_spec_ld
=
9152 hardcode_libdir_separator
=
9154 hardcode_shlibpath_var
=unsupported
9156 link_all_deplibs
=unknown
9159 old_archive_from_new_cmds
=
9160 old_archive_from_expsyms_cmds
=
9161 thread_safe_flag_spec
=
9162 whole_archive_flag_spec
=
9163 # include_expsyms should be a list of space-separated symbols to be *always*
9164 # included in the symbol list
9166 # exclude_expsyms can be an extended regexp of symbols to exclude
9167 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9168 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9169 # as well as any symbol that contains `d'.
9170 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9171 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9172 # platforms (ab)use it in PIC code, but their linkers get confused if
9173 # the symbol is explicitly referenced. Since portable code cannot
9174 # rely on this symbol name, it's probably fine to never include it in
9175 # preloaded symbol tables.
9176 # Exclude shared library initialization/finalization symbols.
9177 extract_expsyms_cmds
=
9180 cygwin
* | mingw
* | pw32
* | cegcc
*)
9181 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9182 # When not using gcc, we currently assume that we are using
9183 # Microsoft Visual C++.
9184 if test "$GCC" != yes; then
9189 # we just hope/assume this is gcc and not c89 (= MSVC++)
9199 # On some targets, GNU ld is compatible enough with the native linker
9200 # that we're better off using the native interface for both.
9201 lt_use_gnu_ld_interface
=no
9202 if test "$with_gnu_ld" = yes; then
9205 # The AIX port of GNU ld has always aspired to compatibility
9206 # with the native linker. However, as the warning in the GNU ld
9207 # block says, versions before 2.19.5* couldn't really create working
9208 # shared libraries, regardless of the interface used.
9209 case `$LD -v 2>&1` in
9210 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
9211 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
9212 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
9214 lt_use_gnu_ld_interface
=yes
9219 lt_use_gnu_ld_interface
=yes
9224 if test "$lt_use_gnu_ld_interface" = yes; then
9225 # If archive_cmds runs LD, not CC, wlarc should be empty
9228 # Set some defaults for GNU ld with shared library support. These
9229 # are reset later if shared libraries are not supported. Putting them
9230 # here allows them to be overridden if necessary.
9231 runpath_var
=LD_RUN_PATH
9232 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9233 export_dynamic_flag_spec
='${wl}--export-dynamic'
9234 # ancient GNU ld didn't support --whole-archive et. al.
9235 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
9236 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9238 whole_archive_flag_spec
=
9240 supports_anon_versioning
=no
9241 case `$LD -v 2>&1` in
9242 *GNU\ gold
*) supports_anon_versioning
=yes ;;
9243 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
9244 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
9245 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
9246 *\
2.11.
*) ;; # other 2.11 versions
9247 *) supports_anon_versioning
=yes ;;
9250 # See if GNU ld supports shared libraries.
9253 # On AIX/PPC, the GNU linker is very broken
9254 if test "$host_cpu" != ia64
; then
9258 *** Warning: the GNU linker, at least up to release 2.19, is reported
9259 *** to be unable to reliably create shared libraries on AIX.
9260 *** Therefore, libtool is disabling shared libraries support. If you
9261 *** really care for shared libraries, you may want to install binutils
9262 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9263 *** You will then need to restart the configuration process.
9272 # see comment about AmigaOS4 .so support
9273 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9274 archive_expsym_cmds
=''
9277 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)'
9278 hardcode_libdir_flag_spec
='-L$libdir'
9279 hardcode_minus_L
=yes
9285 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9286 allow_undefined_flag
=unsupported
9287 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9288 # support --undefined. This deserves some investigation. FIXME
9289 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9295 cygwin
* | mingw
* | pw32
* | cegcc
*)
9296 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9297 # as there is no search path for DLLs.
9298 hardcode_libdir_flag_spec
='-L$libdir'
9299 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9300 allow_undefined_flag
=unsupported
9301 always_export_symbols
=no
9302 enable_shared_with_static_runtimes
=yes
9303 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9305 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9306 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9307 # If the export-symbols file already is a .def file (1st line
9308 # is EXPORTS), use it as is; otherwise, prepend...
9309 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9310 cp $export_symbols $output_objdir/$soname.def;
9312 echo EXPORTS > $output_objdir/$soname.def;
9313 cat $export_symbols >> $output_objdir/$soname.def;
9315 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9322 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9323 link_all_deplibs
=yes
9328 hardcode_shlibpath_var
=no
9329 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9330 export_dynamic_flag_spec
='${wl}-E'
9331 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9332 # Instead, shared libraries are loaded at an image base (0x10000000 by
9333 # default) and relocated if they conflict, which is a slow very memory
9334 # consuming and fragmenting process. To avoid this, we pick a random,
9335 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9336 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9337 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9338 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'
9341 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
9343 if test "$host_os" = linux-dietlibc
; then
9344 case $cc_basename in
9345 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9348 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9349 && test "$tmp_diet" = no
9351 tmp_addflag
=' $pic_flag'
9352 tmp_sharedflag
='-shared'
9353 case $cc_basename,$host_cpu in
9354 pgcc
*) # Portland Group C compiler
9355 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'
9356 tmp_addflag
=' $pic_flag'
9358 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9359 # Portland Group f77 and f90 compilers
9360 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'
9361 tmp_addflag
=' $pic_flag -Mnomain' ;;
9362 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9363 tmp_addflag
=' -i_dynamic' ;;
9364 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9365 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9366 ifc
* | ifort
*) # Intel Fortran compiler
9367 tmp_addflag
=' -nofor_main' ;;
9368 lf95
*) # Lahey Fortran 8.1
9369 whole_archive_flag_spec
=
9370 tmp_sharedflag
='--shared' ;;
9371 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9372 tmp_sharedflag
='-qmkshrobj'
9374 nvcc
*) # Cuda Compiler Driver 2.2
9375 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'
9376 compiler_needs_object
=yes
9379 case `$CC -V 2>&1 | sed 5q` in
9380 *Sun\ C
*) # Sun C 5.9
9381 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'
9382 compiler_needs_object
=yes
9383 tmp_sharedflag
='-G' ;;
9384 *Sun\ F
*) # Sun Fortran 8.3
9385 tmp_sharedflag
='-G' ;;
9387 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9389 if test "x$supports_anon_versioning" = xyes
; then
9390 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9391 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9392 echo "local: *; };" >> $output_objdir/$libname.ver~
9393 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9396 case $cc_basename in
9397 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9398 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9399 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9400 hardcode_libdir_flag_spec
=
9401 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9402 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9403 if test "x$supports_anon_versioning" = xyes
; then
9404 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9405 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9406 echo "local: *; };" >> $output_objdir/$libname.ver~
9407 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9417 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9418 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9421 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9422 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9427 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9431 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9432 *** create shared libraries on Solaris systems. Therefore, libtool
9433 *** is disabling shared libraries support. We urge you to upgrade GNU
9434 *** binutils to release 2.9.1 or newer. Another option is to modify
9435 *** your PATH or compiler configuration so that the native linker is
9436 *** used, and then restart.
9439 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9440 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9441 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9447 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9448 case `$LD -v 2>&1` in
9449 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9453 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9454 *** reliably create shared libraries on SCO systems. Therefore, libtool
9455 *** is disabling shared libraries support. We urge you to upgrade GNU
9456 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9457 *** your PATH or compiler configuration so that the native linker is
9458 *** used, and then restart.
9463 # For security reasons, it is highly recommended that you always
9464 # use absolute paths for naming shared libraries, and exclude the
9465 # DT_RUNPATH tag from executables and libraries. But doing so
9466 # requires that you compile everything twice, which is a pain.
9467 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9468 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9469 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9470 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9479 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9482 hardcode_shlibpath_var
=no
9486 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9487 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9488 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9495 if test "$ld_shlibs" = no
; then
9497 hardcode_libdir_flag_spec
=
9498 export_dynamic_flag_spec
=
9499 whole_archive_flag_spec
=
9502 # PORTME fill in a description of your system's linker (not GNU ld)
9505 allow_undefined_flag
=unsupported
9506 always_export_symbols
=yes
9507 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'
9508 # Note: this linker hardcodes the directories in LIBPATH if there
9509 # are no directories specified by -L.
9510 hardcode_minus_L
=yes
9511 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9512 # Neither direct hardcoding nor static linking is supported with a
9514 hardcode_direct
=unsupported
9519 if test "$host_cpu" = ia64
; then
9520 # On IA64, the linker does run time linking by default, so we don't
9521 # have to do anything special.
9522 aix_use_runtimelinking
=no
9523 exp_sym_flag
='-Bexport'
9526 # If we're using GNU nm, then we don't want the "-C" option.
9527 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9528 # Also, AIX nm treats weak defined symbols like other global
9529 # defined symbols, whereas GNU nm marks them as "W".
9530 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9531 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'
9533 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'
9535 aix_use_runtimelinking
=no
9537 # Test if we are trying to use run time linking or normal
9538 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9539 # need to do runtime linking.
9540 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9541 for ld_flag
in $LDFLAGS; do
9542 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9543 aix_use_runtimelinking
=yes
9550 exp_sym_flag
='-bexport'
9551 no_entry_flag
='-bnoentry'
9554 # When large executables or shared objects are built, AIX ld can
9555 # have problems creating the table of contents. If linking a library
9556 # or program results in "error TOC overflow" add -mminimal-toc to
9557 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9558 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9562 hardcode_direct_absolute
=yes
9563 hardcode_libdir_separator
=':'
9564 link_all_deplibs
=yes
9565 file_list_spec
='${wl}-f,'
9567 if test "$GCC" = yes; then
9568 case $host_os in aix4.
[012]|aix4.
[012].
*)
9569 # We only want to do this on AIX 4.2 and lower, the check
9570 # below for broken collect2 doesn't work under 4.3+
9571 collect2name
=`${CC} -print-prog-name=collect2`
9572 if test -f "$collect2name" &&
9573 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9575 # We have reworked collect2
9578 # We have old collect2
9579 hardcode_direct
=unsupported
9580 # It fails to find uninstalled libraries when the uninstalled
9581 # path is not listed in the libpath. Setting hardcode_minus_L
9582 # to unsupported forces relinking
9583 hardcode_minus_L
=yes
9584 hardcode_libdir_flag_spec
='-L$libdir'
9585 hardcode_libdir_separator
=
9589 shared_flag
='-shared'
9590 if test "$aix_use_runtimelinking" = yes; then
9591 shared_flag
="$shared_flag "'${wl}-G'
9595 if test "$host_cpu" = ia64
; then
9596 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9597 # chokes on -Wl,-G. The following line is correct:
9600 if test "$aix_use_runtimelinking" = yes; then
9601 shared_flag
='${wl}-G'
9603 shared_flag
='${wl}-bM:SRE'
9608 export_dynamic_flag_spec
='${wl}-bexpall'
9609 # It seems that -bexpall does not export symbols beginning with
9610 # underscore (_), so it is better to generate a list of symbols to export.
9611 always_export_symbols
=yes
9612 if test "$aix_use_runtimelinking" = yes; then
9613 # Warning - without using the other runtime loading flags (-brtl),
9614 # -berok will link without error, but may produce a broken library.
9615 allow_undefined_flag
='-berok'
9616 # Determine the default libpath from the value encoded in an
9618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9619 /* end confdefs.h. */
9629 if ac_fn_c_try_link
"$LINENO"; then :
9631 lt_aix_libpath_sed
='
9632 /Import File Strings/,/^$/ {
9638 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9639 # Check for a 64-bit object if we didn't find anything.
9640 if test -z "$aix_libpath"; then
9641 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9644 rm -f core conftest.err conftest.
$ac_objext \
9645 conftest
$ac_exeext conftest.
$ac_ext
9646 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9648 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9649 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"
9651 if test "$host_cpu" = ia64
; then
9652 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9653 allow_undefined_flag
="-z nodefs"
9654 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"
9656 # Determine the default libpath from the value encoded in an
9658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9659 /* end confdefs.h. */
9669 if ac_fn_c_try_link
"$LINENO"; then :
9671 lt_aix_libpath_sed
='
9672 /Import File Strings/,/^$/ {
9678 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9679 # Check for a 64-bit object if we didn't find anything.
9680 if test -z "$aix_libpath"; then
9681 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9684 rm -f core conftest.err conftest.
$ac_objext \
9685 conftest
$ac_exeext conftest.
$ac_ext
9686 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9688 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9689 # Warning - without using the other run time loading flags,
9690 # -berok will link without error, but may produce a broken library.
9691 no_undefined_flag
=' ${wl}-bernotok'
9692 allow_undefined_flag
=' ${wl}-berok'
9693 if test "$with_gnu_ld" = yes; then
9694 # We only use this code for GNU lds that support --whole-archive.
9695 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9697 # Exported symbols can be pulled into shared objects from archives
9698 whole_archive_flag_spec
='$convenience'
9700 archive_cmds_need_lc
=yes
9701 # This is similar to how AIX traditionally builds its shared libraries.
9702 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'
9710 # see comment about AmigaOS4 .so support
9711 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9712 archive_expsym_cmds
=''
9715 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)'
9716 hardcode_libdir_flag_spec
='-L$libdir'
9717 hardcode_minus_L
=yes
9723 export_dynamic_flag_spec
=-rdynamic
9726 cygwin
* | mingw
* | pw32
* | cegcc
*)
9727 # When not using gcc, we currently assume that we are using
9728 # Microsoft Visual C++.
9729 # hardcode_libdir_flag_spec is actually meaningless, as there is
9730 # no search path for DLLs.
9731 hardcode_libdir_flag_spec
=' '
9732 allow_undefined_flag
=unsupported
9733 # Tell ltmain to make .lib files, not .a files.
9735 # Tell ltmain to make .dll files, not .so files.
9737 # FIXME: Setting linknames here is a bad hack.
9738 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9739 # The linker will automatically build a .lib file if we build a DLL.
9740 old_archive_from_new_cmds
='true'
9741 # FIXME: Should let the user specify the lib program.
9742 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9743 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9744 enable_shared_with_static_runtimes
=yes
9747 darwin
* | rhapsody
*)
9750 archive_cmds_need_lc
=no
9752 hardcode_automatic
=yes
9753 hardcode_shlibpath_var
=unsupported
9754 if test "$lt_cv_ld_force_load" = "yes"; then
9755 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\"`'
9757 whole_archive_flag_spec
=''
9759 link_all_deplibs
=yes
9760 allow_undefined_flag
="$_lt_dar_allow_undefined"
9761 case $cc_basename in
9762 ifort
*) _lt_dar_can_shared
=yes ;;
9763 *) _lt_dar_can_shared
=$GCC ;;
9765 if test "$_lt_dar_can_shared" = "yes"; then
9766 output_verbose_link_cmd
=func_echo_all
9767 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9768 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9769 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}"
9770 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}"
9779 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9780 hardcode_libdir_flag_spec
='-L$libdir'
9781 hardcode_shlibpath_var
=no
9784 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9785 # support. Future versions do this automatically, but an explicit c++rt0.o
9786 # does not break anything, and helps significantly (at the cost of a little
9789 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9790 hardcode_libdir_flag_spec
='-R$libdir'
9792 hardcode_shlibpath_var
=no
9795 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9797 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9799 hardcode_minus_L
=yes
9800 hardcode_shlibpath_var
=no
9803 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9804 freebsd
* | dragonfly
*)
9805 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9806 hardcode_libdir_flag_spec
='-R$libdir'
9808 hardcode_shlibpath_var
=no
9812 if test "$GCC" = yes; then
9813 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'
9815 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'
9817 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9818 hardcode_libdir_separator
=:
9821 # hardcode_minus_L: Not really in the search PATH,
9822 # but as the default location of the library.
9823 hardcode_minus_L
=yes
9824 export_dynamic_flag_spec
='${wl}-E'
9828 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9829 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9831 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9833 if test "$with_gnu_ld" = no
; then
9834 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9835 hardcode_libdir_flag_spec_ld
='+b $libdir'
9836 hardcode_libdir_separator
=:
9838 hardcode_direct_absolute
=yes
9839 export_dynamic_flag_spec
='${wl}-E'
9840 # hardcode_minus_L: Not really in the search PATH,
9841 # but as the default location of the library.
9842 hardcode_minus_L
=yes
9847 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9850 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9853 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9856 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9862 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9865 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9869 # Older versions of the 11.00 compiler do not understand -b yet
9870 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9872 $as_echo_n "checking if $CC understands -b... " >&6; }
9873 if ${lt_cv_prog_compiler__b+:} false
; then :
9874 $as_echo_n "(cached) " >&6
9876 lt_cv_prog_compiler__b
=no
9877 save_LDFLAGS
="$LDFLAGS"
9878 LDFLAGS
="$LDFLAGS -b"
9879 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9880 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9881 # The linker can only warn and ignore the option if not recognized
9882 # So say no if there are warnings
9883 if test -s conftest.err
; then
9884 # Append any errors to the config.log.
9885 cat conftest.err
1>&5
9886 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9887 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9888 if diff conftest.exp conftest.er2
>/dev
/null
; then
9889 lt_cv_prog_compiler__b
=yes
9892 lt_cv_prog_compiler__b
=yes
9896 LDFLAGS
="$save_LDFLAGS"
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9900 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9902 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9903 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9905 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9911 if test "$with_gnu_ld" = no
; then
9912 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9913 hardcode_libdir_separator
=:
9918 hardcode_shlibpath_var
=no
9922 hardcode_direct_absolute
=yes
9923 export_dynamic_flag_spec
='${wl}-E'
9925 # hardcode_minus_L: Not really in the search PATH,
9926 # but as the default location of the library.
9927 hardcode_minus_L
=yes
9933 irix5
* | irix6
* | nonstopux
*)
9934 if test "$GCC" = yes; then
9935 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'
9936 # Try to use the -exported_symbol ld option, if it does not
9937 # work, assume that -exports_file does not work either and
9938 # implicitly export all symbols.
9939 save_LDFLAGS
="$LDFLAGS"
9940 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9942 /* end confdefs.h. */
9945 if ac_fn_c_try_link
"$LINENO"; then :
9946 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'
9949 rm -f core conftest.err conftest.
$ac_objext \
9950 conftest
$ac_exeext conftest.
$ac_ext
9951 LDFLAGS
="$save_LDFLAGS"
9953 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'
9954 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'
9956 archive_cmds_need_lc
='no'
9957 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9958 hardcode_libdir_separator
=:
9960 link_all_deplibs
=yes
9964 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9965 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9967 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9969 hardcode_libdir_flag_spec
='-R$libdir'
9971 hardcode_shlibpath_var
=no
9975 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9977 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9978 hardcode_libdir_separator
=:
9979 hardcode_shlibpath_var
=no
9986 if test -f /usr
/libexec
/ld.so
; then
9988 hardcode_shlibpath_var
=no
9989 hardcode_direct_absolute
=yes
9990 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9991 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9992 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9993 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9994 export_dynamic_flag_spec
='${wl}-E'
9997 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9998 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9999 hardcode_libdir_flag_spec
='-R$libdir'
10002 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10003 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10013 hardcode_libdir_flag_spec
='-L$libdir'
10014 hardcode_minus_L
=yes
10015 allow_undefined_flag
=unsupported
10016 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'
10017 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10021 if test "$GCC" = yes; then
10022 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10023 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'
10025 allow_undefined_flag
=' -expect_unresolved \*'
10026 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'
10028 archive_cmds_need_lc
='no'
10029 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10030 hardcode_libdir_separator
=:
10033 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
10034 if test "$GCC" = yes; then
10035 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10036 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'
10037 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10039 allow_undefined_flag
=' -expect_unresolved \*'
10040 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'
10041 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~
10042 $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'
10044 # Both c and cxx compiler support -rpath directly
10045 hardcode_libdir_flag_spec
='-rpath $libdir'
10047 archive_cmds_need_lc
='no'
10048 hardcode_libdir_separator
=:
10052 no_undefined_flag
=' -z defs'
10053 if test "$GCC" = yes; then
10055 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10056 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10057 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10059 case `$CC -V 2>&1` in
10062 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10063 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10064 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10068 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10069 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10070 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10074 hardcode_libdir_flag_spec
='-R$libdir'
10075 hardcode_shlibpath_var
=no
10077 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10079 # The compiler driver will combine and reorder linker options,
10080 # but understands `-z linker_flag'. GCC discards it without `$wl',
10081 # but is careful enough not to reorder.
10082 # Supported since Solaris 2.6 (maybe 2.5.1?)
10083 if test "$GCC" = yes; then
10084 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10086 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10090 link_all_deplibs
=yes
10094 if test "x$host_vendor" = xsequent
; then
10095 # Use $CC to link under sequent, because it throws in some extra .o
10096 # files that make .init and .fini sections work.
10097 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10099 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10101 hardcode_libdir_flag_spec
='-L$libdir'
10102 hardcode_direct
=yes
10103 hardcode_minus_L
=yes
10104 hardcode_shlibpath_var
=no
10108 case $host_vendor in
10110 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10111 hardcode_direct
=yes # is this really true???
10114 ## LD is ld it makes a PLAMLIB
10115 ## CC just makes a GrossModule.
10116 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10117 reload_cmds
='$CC -r -o $output$reload_objs'
10121 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10122 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10125 runpath_var
='LD_RUN_PATH'
10126 hardcode_shlibpath_var
=no
10130 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10131 hardcode_shlibpath_var
=no
10132 export_dynamic_flag_spec
='-Bexport'
10136 if test -d /usr
/nec
; then
10137 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10138 hardcode_shlibpath_var
=no
10139 runpath_var
=LD_RUN_PATH
10140 hardcode_runpath_var
=yes
10145 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10146 no_undefined_flag
='${wl}-z,text'
10147 archive_cmds_need_lc
=no
10148 hardcode_shlibpath_var
=no
10149 runpath_var
='LD_RUN_PATH'
10151 if test "$GCC" = yes; then
10152 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10153 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10155 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10156 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10160 sysv5
* | sco3.2v5
* | sco5v6
*)
10161 # Note: We can NOT use -z defs as we might desire, because we do not
10162 # link with -lc, and that would cause any symbols used from libc to
10163 # always be unresolved, which means just about no library would
10164 # ever link correctly. If we're not using GNU ld we use -z text
10165 # though, which does catch some bad symbols but isn't as heavy-handed
10167 no_undefined_flag
='${wl}-z,text'
10168 allow_undefined_flag
='${wl}-z,nodefs'
10169 archive_cmds_need_lc
=no
10170 hardcode_shlibpath_var
=no
10171 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10172 hardcode_libdir_separator
=':'
10173 link_all_deplibs
=yes
10174 export_dynamic_flag_spec
='${wl}-Bexport'
10175 runpath_var
='LD_RUN_PATH'
10177 if test "$GCC" = yes; then
10178 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10179 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10181 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10182 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10187 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10188 hardcode_libdir_flag_spec
='-L$libdir'
10189 hardcode_shlibpath_var
=no
10197 if test x
$host_vendor = xsni
; then
10199 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10200 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10207 $as_echo "$ld_shlibs" >&6; }
10208 test "$ld_shlibs" = no
&& can_build_shared
=no
10210 with_gnu_ld
=$with_gnu_ld
10227 # Do we need to explicitly link libc?
10229 case "x$archive_cmds_need_lc" in
10231 # Assume -lc should be added
10232 archive_cmds_need_lc
=yes
10234 if test "$enable_shared" = yes && test "$GCC" = yes; then
10235 case $archive_cmds in
10237 # FIXME: we may have to deal with multi-command sequences.
10240 # Test whether the compiler implicitly links with -lc since on some
10241 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10242 # to ld, don't add -lc before -lgcc.
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10244 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10245 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10246 $as_echo_n "(cached) " >&6
10249 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10252 (eval $ac_compile) 2>&5
10254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10255 test $ac_status = 0; } 2>conftest.err
; then
10258 libobjs
=conftest.
$ac_objext
10260 wl
=$lt_prog_compiler_wl
10261 pic_flag
=$lt_prog_compiler_pic
10267 lt_save_allow_undefined_flag
=$allow_undefined_flag
10268 allow_undefined_flag
=
10269 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10270 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10273 test $ac_status = 0; }
10275 lt_cv_archive_cmds_need_lc
=no
10277 lt_cv_archive_cmds_need_lc
=yes
10279 allow_undefined_flag
=$lt_save_allow_undefined_flag
10281 cat conftest.err
1>&5
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10287 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10288 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10452 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10454 if test "$GCC" = yes; then
10456 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10457 *) lt_awk_arg
="/^libraries:/" ;;
10460 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10461 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10463 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10464 case $lt_search_path_spec in
10466 # if the path contains ";" then we assume it to be the separator
10467 # otherwise default to the standard path separator (i.e. ":") - it is
10468 # assumed that no part of a normal pathname contains ";" but that should
10469 # okay in the real world where ";" in dirpaths is itself problematic.
10470 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10473 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10476 # Ok, now we have the path, separated by spaces, we can step through it
10477 # and add multilib dir if necessary.
10478 lt_tmp_lt_search_path_spec
=
10479 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10480 for lt_sys_path
in $lt_search_path_spec; do
10481 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10482 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10484 test -d "$lt_sys_path" && \
10485 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10488 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10489 BEGIN {RS=" "; FS="/|\n";} {
10492 for (lt_i = NF; lt_i > 0; lt_i--) {
10493 if ($lt_i != "" && $lt_i != ".") {
10494 if ($lt_i == "..") {
10497 if (lt_count == 0) {
10498 lt_foo="/" $lt_i lt_foo;
10505 if (lt_foo != "") { lt_freq[lt_foo]++; }
10506 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10508 # AWK program above erroneously prepends '/' to C:/dos/paths
10511 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10512 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10514 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10516 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10518 library_names_spec
=
10519 libname_spec
='lib$name'
10523 postuninstall_cmds
=
10527 shlibpath_overrides_runpath
=unknown
10529 dynamic_linker
="$host_os ld.so"
10530 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10531 need_lib_prefix
=unknown
10532 hardcode_into_libs
=no
10534 # when you set need_version to no, make sure it does not cause -set_version
10535 # flags to be left without arguments
10536 need_version
=unknown
10541 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10542 shlibpath_var
=LIBPATH
10544 # AIX 3 has no versioning support, so we append a major version to the name.
10545 soname_spec
='${libname}${release}${shared_ext}$major'
10552 hardcode_into_libs
=yes
10553 if test "$host_cpu" = ia64
; then
10554 # AIX 5 supports IA64
10555 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10556 shlibpath_var
=LD_LIBRARY_PATH
10558 # With GCC up to 2.95.x, collect2 would create an import file
10559 # for dependence libraries. The import file would start with
10560 # the line `#! .'. This would cause the generated library to
10561 # depend on `.', always an invalid library. This was fixed in
10562 # development snapshots of GCC prior to 3.0.
10564 aix4 | aix4.
[01] | aix4.
[01].
*)
10565 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10567 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10570 can_build_shared
=no
10574 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10575 # soname into executable. Probably we can add versioning support to
10576 # collect2, so additional links can be useful in future.
10577 if test "$aix_use_runtimelinking" = yes; then
10578 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10579 # instead of lib<name>.a to let people know that these are not
10580 # typical AIX shared libraries.
10581 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10583 # We preserve .a as extension for shared libraries through AIX4.2
10584 # and later when we are not doing run time linking.
10585 library_names_spec
='${libname}${release}.a $libname.a'
10586 soname_spec
='${libname}${release}${shared_ext}$major'
10588 shlibpath_var
=LIBPATH
10595 # Since July 2007 AmigaOS4 officially supports .so libraries.
10596 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10597 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10600 library_names_spec
='$libname.ixlibrary $libname.a'
10601 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10602 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'
10608 library_names_spec
='${libname}${shared_ext}'
10609 dynamic_linker
="$host_os ld.so"
10610 shlibpath_var
=LIBRARY_PATH
10616 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10617 soname_spec
='${libname}${release}${shared_ext}$major'
10618 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10619 shlibpath_var
=LD_LIBRARY_PATH
10620 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10621 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10622 # the default ld.so.conf also contains /usr/contrib/lib and
10623 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10624 # libtool to hard-code these into programs
10627 cygwin
* | mingw
* | pw32
* | cegcc
*)
10628 version_type
=windows
10633 case $GCC,$host_os in
10634 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10635 library_names_spec
='$libname.dll.a'
10636 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10637 postinstall_cmds
='base_file=`basename \${file}`~
10638 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10639 dldir=$destdir/`dirname \$dlpath`~
10640 test -d \$dldir || mkdir -p \$dldir~
10641 $install_prog $dir/$dlname \$dldir/$dlname~
10642 chmod a+x \$dldir/$dlname~
10643 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10644 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10646 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10647 dlpath=$dir/\$dldll~
10649 shlibpath_overrides_runpath
=yes
10653 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10654 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10656 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10659 # MinGW DLLs use traditional 'lib' prefix
10660 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10663 # pw32 DLLs use 'pw' prefix rather than 'lib'
10664 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10670 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10673 dynamic_linker
='Win32 ld.exe'
10674 # FIXME: first we should search . and the directory the executable is in
10678 darwin
* | rhapsody
*)
10679 dynamic_linker
="$host_os dyld"
10680 version_type
=darwin
10683 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10684 soname_spec
='${libname}${release}${major}$shared_ext'
10685 shlibpath_overrides_runpath
=yes
10686 shlibpath_var
=DYLD_LIBRARY_PATH
10687 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10689 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10690 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10697 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10698 soname_spec
='${libname}${release}${shared_ext}$major'
10699 shlibpath_var
=LD_LIBRARY_PATH
10702 freebsd
* | dragonfly
*)
10703 # DragonFly does not have aout. When/if they implement a new
10704 # versioning mechanism, adjust this.
10705 if test -x /usr
/bin
/objformat
; then
10706 objformat
=`/usr/bin/objformat`
10709 freebsd
[23].
*) objformat
=aout
;;
10710 *) objformat
=elf
;;
10713 version_type
=freebsd-
$objformat
10714 case $version_type in
10716 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10721 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10725 shlibpath_var
=LD_LIBRARY_PATH
10728 shlibpath_overrides_runpath
=yes
10730 freebsd3.
[01]* | freebsdelf3.
[01]*)
10731 shlibpath_overrides_runpath
=yes
10732 hardcode_into_libs
=yes
10734 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10735 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10736 shlibpath_overrides_runpath
=no
10737 hardcode_into_libs
=yes
10739 *) # from 4.6 on, and DragonFly
10740 shlibpath_overrides_runpath
=yes
10741 hardcode_into_libs
=yes
10750 dynamic_linker
="$host_os runtime_loader"
10751 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10752 soname_spec
='${libname}${release}${shared_ext}$major'
10753 shlibpath_var
=LIBRARY_PATH
10754 shlibpath_overrides_runpath
=yes
10755 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10756 hardcode_into_libs
=yes
10759 hpux9
* | hpux10
* | hpux11
*)
10760 # Give a soname corresponding to the major version so that dld.sl refuses to
10761 # link against other versions.
10768 hardcode_into_libs
=yes
10769 dynamic_linker
="$host_os dld.so"
10770 shlibpath_var
=LD_LIBRARY_PATH
10771 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10772 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10773 soname_spec
='${libname}${release}${shared_ext}$major'
10774 if test "X$HPUX_IA64_MODE" = X32
; then
10775 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10777 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10779 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10783 hardcode_into_libs
=yes
10784 dynamic_linker
="$host_os dld.sl"
10785 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10786 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10787 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10788 soname_spec
='${libname}${release}${shared_ext}$major'
10789 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10790 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10794 dynamic_linker
="$host_os dld.sl"
10795 shlibpath_var
=SHLIB_PATH
10796 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10797 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10798 soname_spec
='${libname}${release}${shared_ext}$major'
10801 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10802 postinstall_cmds
='chmod 555 $lib'
10803 # or fails outright, so override atomically:
10804 install_override_mode
=555
10811 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10812 soname_spec
='${libname}${release}${shared_ext}$major'
10813 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10814 shlibpath_var
=LD_LIBRARY_PATH
10815 shlibpath_overrides_runpath
=no
10816 hardcode_into_libs
=yes
10819 irix5
* | irix6
* | nonstopux
*)
10821 nonstopux
*) version_type
=nonstopux
;;
10823 if test "$lt_cv_prog_gnu_ld" = yes; then
10831 soname_spec
='${libname}${release}${shared_ext}$major'
10832 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10834 irix5
* | nonstopux
*)
10835 libsuff
= shlibsuff
=
10838 case $LD in # libtool.m4 will add one of these switches to LD
10839 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10840 libsuff
= shlibsuff
= libmagic
=32-bit;;
10841 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10842 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10843 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10844 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10845 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10849 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10850 shlibpath_overrides_runpath
=no
10851 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10852 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10853 hardcode_into_libs
=yes
10856 # No shared lib support for Linux oldld, aout, or coff.
10857 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10861 # This must be Linux ELF.
10863 # uclinux* changes (here and below) have been submitted to the libtool
10864 # project, but have not yet been accepted: they are GCC-local changes
10865 # for the time being. (See
10866 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10867 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
10871 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10872 soname_spec
='${libname}${release}${shared_ext}$major'
10873 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10874 shlibpath_var
=LD_LIBRARY_PATH
10875 shlibpath_overrides_runpath
=no
10877 # Some binutils ld are patched to set DT_RUNPATH
10878 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
10879 $as_echo_n "(cached) " >&6
10881 lt_cv_shlibpath_overrides_runpath
=no
10882 save_LDFLAGS
=$LDFLAGS
10883 save_libdir
=$libdir
10884 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10885 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10887 /* end confdefs.h. */
10897 if ac_fn_c_try_link
"$LINENO"; then :
10898 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10899 lt_cv_shlibpath_overrides_runpath
=yes
10902 rm -f core conftest.err conftest.
$ac_objext \
10903 conftest
$ac_exeext conftest.
$ac_ext
10904 LDFLAGS
=$save_LDFLAGS
10905 libdir
=$save_libdir
10909 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10911 # This implies no fast_install, which is unacceptable.
10912 # Some rework will be needed to allow for fast_install
10913 # before this can be enabled.
10914 hardcode_into_libs
=yes
10916 # Append ld.so.conf contents to the search path
10917 if test -f /etc
/ld.so.conf
; then
10918 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' ' '`
10919 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10922 # We used to test for /lib/ld.so.1 and disable shared libraries on
10923 # powerpc, because MkLinux only supported shared libraries with the
10924 # GNU dynamic linker. Since this was broken with cross compilers,
10925 # most powerpc-linux boxes support dynamic linking these days and
10926 # people can always --disable-shared, the test was removed, and we
10927 # assume the GNU/Linux dynamic linker is in use.
10928 dynamic_linker
='GNU/Linux ld.so'
10935 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10936 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10937 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10938 dynamic_linker
='NetBSD (a.out) ld.so'
10940 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10941 soname_spec
='${libname}${release}${shared_ext}$major'
10942 dynamic_linker
='NetBSD ld.elf_so'
10944 shlibpath_var
=LD_LIBRARY_PATH
10945 shlibpath_overrides_runpath
=yes
10946 hardcode_into_libs
=yes
10951 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10952 shlibpath_var
=LD_LIBRARY_PATH
10953 shlibpath_overrides_runpath
=yes
10960 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10961 soname_spec
='${libname}${release}${shared_ext}$major'
10962 shlibpath_var
=LD_LIBRARY_PATH
10963 shlibpath_overrides_runpath
=no
10964 hardcode_into_libs
=yes
10965 dynamic_linker
='ldqnx.so'
10970 sys_lib_dlsearch_path_spec
="/usr/lib"
10972 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10974 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10975 *) need_version
=no
;;
10977 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10978 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10979 shlibpath_var
=LD_LIBRARY_PATH
10980 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10982 openbsd2.
[89] | openbsd2.
[89].
*)
10983 shlibpath_overrides_runpath
=no
10986 shlibpath_overrides_runpath
=yes
10990 shlibpath_overrides_runpath
=yes
10995 libname_spec
='$name'
10998 library_names_spec
='$libname${shared_ext} $libname.a'
10999 dynamic_linker
='OS/2 ld.exe'
11000 shlibpath_var
=LIBPATH
11003 osf3
* | osf4
* | osf5
*)
11007 soname_spec
='${libname}${release}${shared_ext}$major'
11008 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11009 shlibpath_var
=LD_LIBRARY_PATH
11010 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11011 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
11022 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11023 soname_spec
='${libname}${release}${shared_ext}$major'
11024 shlibpath_var
=LD_LIBRARY_PATH
11025 shlibpath_overrides_runpath
=yes
11026 hardcode_into_libs
=yes
11027 # ldd complains unless libraries are executable
11028 postinstall_cmds
='chmod +x $lib'
11033 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11034 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11035 shlibpath_var
=LD_LIBRARY_PATH
11036 shlibpath_overrides_runpath
=yes
11037 if test "$with_gnu_ld" = yes; then
11045 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11046 soname_spec
='${libname}${release}${shared_ext}$major'
11047 shlibpath_var
=LD_LIBRARY_PATH
11048 case $host_vendor in
11050 shlibpath_overrides_runpath
=no
11052 runpath_var
=LD_RUN_PATH
11060 shlibpath_overrides_runpath
=no
11061 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11067 if test -d /usr
/nec
;then
11069 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11070 soname_spec
='$libname${shared_ext}.$major'
11071 shlibpath_var
=LD_LIBRARY_PATH
11075 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11076 version_type
=freebsd-elf
11079 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11080 soname_spec
='${libname}${release}${shared_ext}$major'
11081 shlibpath_var
=LD_LIBRARY_PATH
11082 shlibpath_overrides_runpath
=yes
11083 hardcode_into_libs
=yes
11084 if test "$with_gnu_ld" = yes; then
11085 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11087 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11090 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11094 sys_lib_dlsearch_path_spec
='/usr/lib'
11098 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11102 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11103 shlibpath_var
=LD_LIBRARY_PATH
11104 shlibpath_overrides_runpath
=no
11105 hardcode_into_libs
=yes
11110 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11111 soname_spec
='${libname}${release}${shared_ext}$major'
11112 shlibpath_var
=LD_LIBRARY_PATH
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11120 $as_echo "$dynamic_linker" >&6; }
11121 test "$dynamic_linker" = no
&& can_build_shared
=no
11123 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11124 if test "$GCC" = yes; then
11125 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11128 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11129 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
11131 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11132 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11227 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11229 if test -n "$hardcode_libdir_flag_spec" ||
11230 test -n "$runpath_var" ||
11231 test "X$hardcode_automatic" = "Xyes" ; then
11233 # We can hardcode non-existent directories.
11234 if test "$hardcode_direct" != no
&&
11235 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11236 # have to relink, otherwise we might link with an installed library
11237 # when we should be linking with a yet-to-be-installed one
11238 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11239 test "$hardcode_minus_L" != no
; then
11240 # Linking always hardcodes the temporary library directory.
11241 hardcode_action
=relink
11243 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11244 hardcode_action
=immediate
11247 # We cannot hardcode anything, or else we can only hardcode existing
11249 hardcode_action
=unsupported
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11252 $as_echo "$hardcode_action" >&6; }
11254 if test "$hardcode_action" = relink ||
11255 test "$inherit_rpath" = yes; then
11256 # Fast installation is not supported
11257 enable_fast_install
=no
11258 elif test "$shlibpath_overrides_runpath" = yes ||
11259 test "$enable_shared" = no
; then
11260 # Fast installation is not necessary
11261 enable_fast_install
=needless
11269 if test "x$enable_dlopen" != xyes
; then
11270 enable_dlopen
=unknown
11271 enable_dlopen_self
=unknown
11272 enable_dlopen_self_static
=unknown
11279 lt_cv_dlopen
="load_add_on"
11281 lt_cv_dlopen_self
=yes
11284 mingw
* | pw32
* | cegcc
*)
11285 lt_cv_dlopen
="LoadLibrary"
11290 lt_cv_dlopen
="dlopen"
11295 # if libdl is installed we need to link against it
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11297 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11298 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11299 $as_echo_n "(cached) " >&6
11301 ac_check_lib_save_LIBS
=$LIBS
11303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11304 /* end confdefs.h. */
11306 /* Override any GCC internal prototype to avoid an error.
11307 Use char because int might match the return type of a GCC
11308 builtin and then its argument prototype would still apply. */
11321 if ac_fn_c_try_link
"$LINENO"; then :
11322 ac_cv_lib_dl_dlopen
=yes
11324 ac_cv_lib_dl_dlopen
=no
11326 rm -f core conftest.err conftest.
$ac_objext \
11327 conftest
$ac_exeext conftest.
$ac_ext
11328 LIBS
=$ac_check_lib_save_LIBS
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11331 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11332 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11333 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11336 lt_cv_dlopen
="dyld"
11338 lt_cv_dlopen_self
=yes
11345 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11346 if test "x$ac_cv_func_shl_load" = xyes
; then :
11347 lt_cv_dlopen
="shl_load"
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11350 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11351 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11352 $as_echo_n "(cached) " >&6
11354 ac_check_lib_save_LIBS
=$LIBS
11356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11357 /* end confdefs.h. */
11359 /* Override any GCC internal prototype to avoid an error.
11360 Use char because int might match the return type of a GCC
11361 builtin and then its argument prototype would still apply. */
11369 return shl_load ();
11374 if ac_fn_c_try_link
"$LINENO"; then :
11375 ac_cv_lib_dld_shl_load
=yes
11377 ac_cv_lib_dld_shl_load
=no
11379 rm -f core conftest.err conftest.
$ac_objext \
11380 conftest
$ac_exeext conftest.
$ac_ext
11381 LIBS
=$ac_check_lib_save_LIBS
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11384 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11385 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11386 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11388 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11389 if test "x$ac_cv_func_dlopen" = xyes
; then :
11390 lt_cv_dlopen
="dlopen"
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11393 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11394 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11395 $as_echo_n "(cached) " >&6
11397 ac_check_lib_save_LIBS
=$LIBS
11399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11400 /* end confdefs.h. */
11402 /* Override any GCC internal prototype to avoid an error.
11403 Use char because int might match the return type of a GCC
11404 builtin and then its argument prototype would still apply. */
11417 if ac_fn_c_try_link
"$LINENO"; then :
11418 ac_cv_lib_dl_dlopen
=yes
11420 ac_cv_lib_dl_dlopen
=no
11422 rm -f core conftest.err conftest.
$ac_objext \
11423 conftest
$ac_exeext conftest.
$ac_ext
11424 LIBS
=$ac_check_lib_save_LIBS
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11427 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11428 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11429 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11432 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11433 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11434 $as_echo_n "(cached) " >&6
11436 ac_check_lib_save_LIBS
=$LIBS
11437 LIBS
="-lsvld $LIBS"
11438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11439 /* end confdefs.h. */
11441 /* Override any GCC internal prototype to avoid an error.
11442 Use char because int might match the return type of a GCC
11443 builtin and then its argument prototype would still apply. */
11456 if ac_fn_c_try_link
"$LINENO"; then :
11457 ac_cv_lib_svld_dlopen
=yes
11459 ac_cv_lib_svld_dlopen
=no
11461 rm -f core conftest.err conftest.
$ac_objext \
11462 conftest
$ac_exeext conftest.
$ac_ext
11463 LIBS
=$ac_check_lib_save_LIBS
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11466 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11467 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11468 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11471 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11472 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11473 $as_echo_n "(cached) " >&6
11475 ac_check_lib_save_LIBS
=$LIBS
11477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11478 /* end confdefs.h. */
11480 /* Override any GCC internal prototype to avoid an error.
11481 Use char because int might match the return type of a GCC
11482 builtin and then its argument prototype would still apply. */
11490 return dld_link ();
11495 if ac_fn_c_try_link
"$LINENO"; then :
11496 ac_cv_lib_dld_dld_link
=yes
11498 ac_cv_lib_dld_dld_link
=no
11500 rm -f core conftest.err conftest.
$ac_objext \
11501 conftest
$ac_exeext conftest.
$ac_ext
11502 LIBS
=$ac_check_lib_save_LIBS
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11505 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11506 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11507 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11528 if test "x$lt_cv_dlopen" != xno
; then
11534 case $lt_cv_dlopen in
11536 save_CPPFLAGS
="$CPPFLAGS"
11537 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11539 save_LDFLAGS
="$LDFLAGS"
11540 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11543 LIBS
="$lt_cv_dlopen_libs $LIBS"
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11546 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11547 if ${lt_cv_dlopen_self+:} false
; then :
11548 $as_echo_n "(cached) " >&6
11550 if test "$cross_compiling" = yes; then :
11551 lt_cv_dlopen_self
=cross
11553 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11554 lt_status
=$lt_dlunknown
11555 cat > conftest.
$ac_ext <<_LT_EOF
11556 #line 11566 "configure"
11557 #include "confdefs.h"
11566 # define LT_DLGLOBAL RTLD_GLOBAL
11569 # define LT_DLGLOBAL DL_GLOBAL
11571 # define LT_DLGLOBAL 0
11575 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11576 find out it does not work in some platform. */
11577 #ifndef LT_DLLAZY_OR_NOW
11579 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11582 # define LT_DLLAZY_OR_NOW DL_LAZY
11585 # define LT_DLLAZY_OR_NOW RTLD_NOW
11588 # define LT_DLLAZY_OR_NOW DL_NOW
11590 # define LT_DLLAZY_OR_NOW 0
11597 /* When -fvisbility=hidden is used, assume the code has been annotated
11598 correspondingly for the symbols needed. */
11599 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11600 void fnord () __attribute__((visibility("default")));
11603 void fnord () { int i=42; }
11606 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11607 int status = $lt_dlunknown;
11611 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11614 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11615 else puts (dlerror ());
11617 /* dlclose (self); */
11625 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11626 (eval $ac_link) 2>&5
11628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11629 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11630 (.
/conftest
; exit; ) >&5 2>/dev
/null
11632 case x
$lt_status in
11633 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11634 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11635 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11638 # compilation failed
11639 lt_cv_dlopen_self
=no
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11647 $as_echo "$lt_cv_dlopen_self" >&6; }
11649 if test "x$lt_cv_dlopen_self" = xyes
; then
11650 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11652 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11653 if ${lt_cv_dlopen_self_static+:} false
; then :
11654 $as_echo_n "(cached) " >&6
11656 if test "$cross_compiling" = yes; then :
11657 lt_cv_dlopen_self_static
=cross
11659 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11660 lt_status
=$lt_dlunknown
11661 cat > conftest.
$ac_ext <<_LT_EOF
11662 #line 11672 "configure"
11663 #include "confdefs.h"
11672 # define LT_DLGLOBAL RTLD_GLOBAL
11675 # define LT_DLGLOBAL DL_GLOBAL
11677 # define LT_DLGLOBAL 0
11681 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11682 find out it does not work in some platform. */
11683 #ifndef LT_DLLAZY_OR_NOW
11685 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11688 # define LT_DLLAZY_OR_NOW DL_LAZY
11691 # define LT_DLLAZY_OR_NOW RTLD_NOW
11694 # define LT_DLLAZY_OR_NOW DL_NOW
11696 # define LT_DLLAZY_OR_NOW 0
11703 /* When -fvisbility=hidden is used, assume the code has been annotated
11704 correspondingly for the symbols needed. */
11705 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11706 void fnord () __attribute__((visibility("default")));
11709 void fnord () { int i=42; }
11712 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11713 int status = $lt_dlunknown;
11717 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11720 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11721 else puts (dlerror ());
11723 /* dlclose (self); */
11731 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11732 (eval $ac_link) 2>&5
11734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11735 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11736 (.
/conftest
; exit; ) >&5 2>/dev
/null
11738 case x
$lt_status in
11739 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11740 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11741 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11744 # compilation failed
11745 lt_cv_dlopen_self_static
=no
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11753 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11756 CPPFLAGS
="$save_CPPFLAGS"
11757 LDFLAGS
="$save_LDFLAGS"
11762 case $lt_cv_dlopen_self in
11763 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11764 *) enable_dlopen_self
=unknown
;;
11767 case $lt_cv_dlopen_self_static in
11768 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11769 *) enable_dlopen_self_static
=unknown
;;
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11792 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11793 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11794 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11795 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11797 $as_echo "yes" >&6; }
11799 # FIXME - insert some real tests, host_os isn't really good enough
11802 if test -n "$STRIP" ; then
11803 striplib
="$STRIP -x"
11804 old_striplib
="$STRIP -S"
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11806 $as_echo "yes" >&6; }
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11809 $as_echo "no" >&6; }
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11814 $as_echo "no" >&6; }
11830 # Report which library types will actually be built
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11832 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11834 $as_echo "$can_build_shared" >&6; }
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11837 $as_echo_n "checking whether to build shared libraries... " >&6; }
11838 test "$can_build_shared" = "no" && enable_shared
=no
11840 # On AIX, shared libraries and static libraries use the same namespace, and
11841 # are all built from PIC.
11844 test "$enable_shared" = yes && enable_static
=no
11845 if test -n "$RANLIB"; then
11846 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11847 postinstall_cmds
='$RANLIB $lib'
11852 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11853 test "$enable_shared" = yes && enable_static
=no
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11858 $as_echo "$enable_shared" >&6; }
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11861 $as_echo_n "checking whether to build static libraries... " >&6; }
11862 # Make sure either enable_shared or enable_static is yes.
11863 test "$enable_shared" = yes || enable_static
=yes
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11865 $as_echo "$enable_static" >&6; }
11872 ac_cpp
='$CPP $CPPFLAGS'
11873 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11874 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11875 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11879 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11880 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11881 (test "X$CXX" != "Xg++"))) ; then
11883 ac_cpp
='$CXXCPP $CPPFLAGS'
11884 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11885 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11886 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11888 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11889 if test -z "$CXXCPP"; then
11890 if ${ac_cv_prog_CXXCPP+:} false
; then :
11891 $as_echo_n "(cached) " >&6
11893 # Double quotes because CXXCPP needs to be expanded
11894 for CXXCPP
in "$CXX -E" "/lib/cpp"
11896 ac_preproc_ok
=false
11897 for ac_cxx_preproc_warn_flag
in '' yes
11899 # Use a header file that comes with gcc, so configuring glibc
11900 # with a fresh cross-compiler works.
11901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11902 # <limits.h> exists even on freestanding compilers.
11903 # On the NeXT, cc -E runs the code through the compiler's parser,
11904 # not just through cpp. "Syntax error" is here to catch this case.
11905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11906 /* end confdefs.h. */
11908 # include <limits.h>
11910 # include <assert.h>
11914 if ac_fn_cxx_try_cpp
"$LINENO"; then :
11917 # Broken: fails on valid input.
11920 rm -f conftest.err conftest.i conftest.
$ac_ext
11922 # OK, works on sane cases. Now check whether nonexistent headers
11923 # can be detected and how.
11924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11925 /* end confdefs.h. */
11926 #include <ac_nonexistent.h>
11928 if ac_fn_cxx_try_cpp
"$LINENO"; then :
11929 # Broken: success on invalid input.
11932 # Passes both tests.
11936 rm -f conftest.err conftest.i conftest.
$ac_ext
11939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11940 rm -f conftest.i conftest.err conftest.
$ac_ext
11941 if $ac_preproc_ok; then :
11946 ac_cv_prog_CXXCPP
=$CXXCPP
11949 CXXCPP
=$ac_cv_prog_CXXCPP
11951 ac_cv_prog_CXXCPP
=$CXXCPP
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11954 $as_echo "$CXXCPP" >&6; }
11955 ac_preproc_ok
=false
11956 for ac_cxx_preproc_warn_flag
in '' yes
11958 # Use a header file that comes with gcc, so configuring glibc
11959 # with a fresh cross-compiler works.
11960 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11961 # <limits.h> exists even on freestanding compilers.
11962 # On the NeXT, cc -E runs the code through the compiler's parser,
11963 # not just through cpp. "Syntax error" is here to catch this case.
11964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11965 /* end confdefs.h. */
11967 # include <limits.h>
11969 # include <assert.h>
11973 if ac_fn_cxx_try_cpp
"$LINENO"; then :
11976 # Broken: fails on valid input.
11979 rm -f conftest.err conftest.i conftest.
$ac_ext
11981 # OK, works on sane cases. Now check whether nonexistent headers
11982 # can be detected and how.
11983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11984 /* end confdefs.h. */
11985 #include <ac_nonexistent.h>
11987 if ac_fn_cxx_try_cpp
"$LINENO"; then :
11988 # Broken: success on invalid input.
11991 # Passes both tests.
11995 rm -f conftest.err conftest.i conftest.
$ac_ext
11998 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11999 rm -f conftest.i conftest.err conftest.
$ac_ext
12000 if $ac_preproc_ok; then :
12003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12005 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
12006 See \`config.log' for more details" "$LINENO" 5; }
12010 ac_cpp
='$CPP $CPPFLAGS'
12011 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12012 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12013 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12016 _lt_caught_CXX_error
=yes
12020 ac_cpp
='$CXXCPP $CPPFLAGS'
12021 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12022 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12023 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12025 archive_cmds_need_lc_CXX
=no
12026 allow_undefined_flag_CXX
=
12027 always_export_symbols_CXX
=no
12028 archive_expsym_cmds_CXX
=
12029 compiler_needs_object_CXX
=no
12030 export_dynamic_flag_spec_CXX
=
12031 hardcode_direct_CXX
=no
12032 hardcode_direct_absolute_CXX
=no
12033 hardcode_libdir_flag_spec_CXX
=
12034 hardcode_libdir_flag_spec_ld_CXX
=
12035 hardcode_libdir_separator_CXX
=
12036 hardcode_minus_L_CXX
=no
12037 hardcode_shlibpath_var_CXX
=unsupported
12038 hardcode_automatic_CXX
=no
12039 inherit_rpath_CXX
=no
12041 module_expsym_cmds_CXX
=
12042 link_all_deplibs_CXX
=unknown
12043 old_archive_cmds_CXX
=$old_archive_cmds
12044 reload_flag_CXX
=$reload_flag
12045 reload_cmds_CXX
=$reload_cmds
12046 no_undefined_flag_CXX
=
12047 whole_archive_flag_spec_CXX
=
12048 enable_shared_with_static_runtimes_CXX
=no
12050 # Source file extension for C++ test sources.
12053 # Object file extension for compiled C++ test sources.
12057 # No sense in running all these tests if we already determined that
12058 # the CXX compiler isn't working. Some variables (like enable_shared)
12059 # are currently assumed to apply to all compilers on this platform,
12060 # and will be corrupted by setting them based on a non-working compiler.
12061 if test "$_lt_caught_CXX_error" != yes; then
12062 # Code to be used in simple compile tests
12063 lt_simple_compile_test_code
="int some_variable = 0;"
12065 # Code to be used in simple link tests
12066 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
12068 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12075 # If no C compiler was specified, use CC.
12078 # If no C compiler flags were specified, use CFLAGS.
12079 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
12081 # Allow CC to be a program name with arguments.
12085 # save warnings/boilerplate of simple test code
12086 ac_outfile
=conftest.
$ac_objext
12087 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
12088 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12089 _lt_compiler_boilerplate
=`cat conftest.err`
12092 ac_outfile
=conftest.
$ac_objext
12093 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
12094 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12095 _lt_linker_boilerplate
=`cat conftest.err`
12099 # Allow CC to be a program name with arguments.
12104 lt_save_with_gnu_ld
=$with_gnu_ld
12105 lt_save_path_LD
=$lt_cv_path_LD
12106 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12107 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
12109 $as_unset lt_cv_prog_gnu_ld
12111 if test -n "${lt_cv_path_LDCXX+set}"; then
12112 lt_cv_path_LD
=$lt_cv_path_LDCXX
12114 $as_unset lt_cv_path_LD
12116 test -z "${LDCXX+set}" || LD
=$LDCXX
12120 for cc_temp
in $compiler""; do
12122 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
12123 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
12128 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12131 if test -n "$compiler"; then
12132 # We don't want -fno-exception when compiling C++ code, so set the
12133 # no_builtin_flag separately
12134 if test "$GXX" = yes; then
12135 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
12137 lt_prog_compiler_no_builtin_flag_CXX
=
12140 if test "$GXX" = yes; then
12141 # Set up default GNU C++ configuration
12145 # Check whether --with-gnu-ld was given.
12146 if test "${with_gnu_ld+set}" = set; then :
12147 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12153 if test "$GCC" = yes; then
12154 # Check if gcc -print-prog-name=ld gives a path.
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12156 $as_echo_n "checking for ld used by $CC... " >&6; }
12159 # gcc leaves a trailing carriage return which upsets mingw
12160 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12162 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12165 # Accept absolute paths.
12167 re_direlt
='/[^/][^/]*/\.\./'
12168 # Canonicalize the pathname of ld
12169 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12170 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12171 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12173 test -z "$LD" && LD
="$ac_prog"
12176 # If it fails, then pretend we aren't using GCC.
12180 # If it is relative, then search for the first ld in PATH.
12181 with_gnu_ld
=unknown
12184 elif test "$with_gnu_ld" = yes; then
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12186 $as_echo_n "checking for GNU ld... " >&6; }
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12189 $as_echo_n "checking for non-GNU ld... " >&6; }
12191 if ${lt_cv_path_LD+:} false
; then :
12192 $as_echo_n "(cached) " >&6
12194 if test -z "$LD"; then
12195 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12196 for ac_dir
in $PATH; do
12198 test -z "$ac_dir" && ac_dir
=.
12199 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12200 lt_cv_path_LD
="$ac_dir/$ac_prog"
12201 # Check to see if the program is GNU ld. I'd rather use --version,
12202 # but apparently some variants of GNU ld only accept -v.
12203 # Break only if it was the GNU/non-GNU ld that we prefer.
12204 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12205 *GNU
* |
*'with BFD'*)
12206 test "$with_gnu_ld" != no
&& break
12209 test "$with_gnu_ld" != yes && break
12216 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12220 LD
="$lt_cv_path_LD"
12221 if test -n "$LD"; then
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12223 $as_echo "$LD" >&6; }
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12226 $as_echo "no" >&6; }
12228 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12230 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12231 if ${lt_cv_prog_gnu_ld+:} false
; then :
12232 $as_echo_n "(cached) " >&6
12234 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12235 case `$LD -v 2>&1 </dev/null` in
12236 *GNU
* |
*'with BFD'*)
12237 lt_cv_prog_gnu_ld
=yes
12240 lt_cv_prog_gnu_ld
=no
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12245 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12246 with_gnu_ld
=$lt_cv_prog_gnu_ld
12254 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12255 # archiving commands below assume that GNU ld is being used.
12256 if test "$with_gnu_ld" = yes; then
12257 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12258 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'
12260 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12261 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12263 # If archive_cmds runs LD, not CC, wlarc should be empty
12264 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12265 # investigate it a little bit more. (MM)
12268 # ancient GNU ld didn't support --whole-archive et. al.
12269 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12270 $GREP 'no-whole-archive' > /dev
/null
; then
12271 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12273 whole_archive_flag_spec_CXX
=
12279 # A generic and very simple default shared library creation
12280 # command for GNU C++ for the case where it uses the native
12281 # linker, instead of GNU ld. If possible, this setting should
12282 # overridden to take advantage of the native linker features on
12283 # the platform it is being used on.
12284 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12287 # Commands to make compiler produce verbose output that lists
12288 # what "hidden" libraries, object files and flags are used when
12289 # linking a shared library.
12290 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12298 # PORTME: fill in a description of your system's C++ link characteristics
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12300 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12304 # FIXME: insert proper C++ library support
12308 if test "$host_cpu" = ia64
; then
12309 # On IA64, the linker does run time linking by default, so we don't
12310 # have to do anything special.
12311 aix_use_runtimelinking
=no
12312 exp_sym_flag
='-Bexport'
12315 aix_use_runtimelinking
=no
12317 # Test if we are trying to use run time linking or normal
12318 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12319 # need to do runtime linking.
12320 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
12321 for ld_flag
in $LDFLAGS; do
12324 aix_use_runtimelinking
=yes
12332 exp_sym_flag
='-bexport'
12333 no_entry_flag
='-bnoentry'
12336 # When large executables or shared objects are built, AIX ld can
12337 # have problems creating the table of contents. If linking a library
12338 # or program results in "error TOC overflow" add -mminimal-toc to
12339 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12340 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12342 archive_cmds_CXX
=''
12343 hardcode_direct_CXX
=yes
12344 hardcode_direct_absolute_CXX
=yes
12345 hardcode_libdir_separator_CXX
=':'
12346 link_all_deplibs_CXX
=yes
12347 file_list_spec_CXX
='${wl}-f,'
12349 if test "$GXX" = yes; then
12350 case $host_os in aix4.
[012]|aix4.
[012].
*)
12351 # We only want to do this on AIX 4.2 and lower, the check
12352 # below for broken collect2 doesn't work under 4.3+
12353 collect2name
=`${CC} -print-prog-name=collect2`
12354 if test -f "$collect2name" &&
12355 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
12357 # We have reworked collect2
12360 # We have old collect2
12361 hardcode_direct_CXX
=unsupported
12362 # It fails to find uninstalled libraries when the uninstalled
12363 # path is not listed in the libpath. Setting hardcode_minus_L
12364 # to unsupported forces relinking
12365 hardcode_minus_L_CXX
=yes
12366 hardcode_libdir_flag_spec_CXX
='-L$libdir'
12367 hardcode_libdir_separator_CXX
=
12370 shared_flag
='-shared'
12371 if test "$aix_use_runtimelinking" = yes; then
12372 shared_flag
="$shared_flag "'${wl}-G'
12376 if test "$host_cpu" = ia64
; then
12377 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12378 # chokes on -Wl,-G. The following line is correct:
12381 if test "$aix_use_runtimelinking" = yes; then
12382 shared_flag
='${wl}-G'
12384 shared_flag
='${wl}-bM:SRE'
12389 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
12390 # It seems that -bexpall does not export symbols beginning with
12391 # underscore (_), so it is better to generate a list of symbols to
12393 always_export_symbols_CXX
=yes
12394 if test "$aix_use_runtimelinking" = yes; then
12395 # Warning - without using the other runtime loading flags (-brtl),
12396 # -berok will link without error, but may produce a broken library.
12397 allow_undefined_flag_CXX
='-berok'
12398 # Determine the default libpath from the value encoded in an empty
12400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12401 /* end confdefs.h. */
12411 if ac_fn_cxx_try_link
"$LINENO"; then :
12413 lt_aix_libpath_sed
='
12414 /Import File Strings/,/^$/ {
12420 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12421 # Check for a 64-bit object if we didn't find anything.
12422 if test -z "$aix_libpath"; then
12423 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12426 rm -f core conftest.err conftest.
$ac_objext \
12427 conftest
$ac_exeext conftest.
$ac_ext
12428 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
12430 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
12432 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"
12434 if test "$host_cpu" = ia64
; then
12435 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
12436 allow_undefined_flag_CXX
="-z nodefs"
12437 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"
12439 # Determine the default libpath from the value encoded in an
12440 # empty executable.
12441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12442 /* end confdefs.h. */
12452 if ac_fn_cxx_try_link
"$LINENO"; then :
12454 lt_aix_libpath_sed
='
12455 /Import File Strings/,/^$/ {
12461 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12462 # Check for a 64-bit object if we didn't find anything.
12463 if test -z "$aix_libpath"; then
12464 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12467 rm -f core conftest.err conftest.
$ac_objext \
12468 conftest
$ac_exeext conftest.
$ac_ext
12469 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
12471 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
12472 # Warning - without using the other run time loading flags,
12473 # -berok will link without error, but may produce a broken library.
12474 no_undefined_flag_CXX
=' ${wl}-bernotok'
12475 allow_undefined_flag_CXX
=' ${wl}-berok'
12476 if test "$with_gnu_ld" = yes; then
12477 # We only use this code for GNU lds that support --whole-archive.
12478 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12480 # Exported symbols can be pulled into shared objects from archives
12481 whole_archive_flag_spec_CXX
='$convenience'
12483 archive_cmds_need_lc_CXX
=yes
12484 # This is similar to how AIX traditionally builds its shared
12486 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'
12492 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12493 allow_undefined_flag_CXX
=unsupported
12494 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12495 # support --undefined. This deserves some investigation. FIXME
12496 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12503 case $cc_basename in
12505 # FIXME: insert proper C++ library support
12511 cygwin
* | mingw
* | pw32
* | cegcc
*)
12512 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12513 # as there is no search path for DLLs.
12514 hardcode_libdir_flag_spec_CXX
='-L$libdir'
12515 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
12516 allow_undefined_flag_CXX
=unsupported
12517 always_export_symbols_CXX
=no
12518 enable_shared_with_static_runtimes_CXX
=yes
12520 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
12521 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'
12522 # If the export-symbols file already is a .def file (1st line
12523 # is EXPORTS), use it as is; otherwise, prepend...
12524 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12525 cp $export_symbols $output_objdir/$soname.def;
12527 echo EXPORTS > $output_objdir/$soname.def;
12528 cat $export_symbols >> $output_objdir/$soname.def;
12530 $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'
12535 darwin
* | rhapsody
*)
12538 archive_cmds_need_lc_CXX
=no
12539 hardcode_direct_CXX
=no
12540 hardcode_automatic_CXX
=yes
12541 hardcode_shlibpath_var_CXX
=unsupported
12542 if test "$lt_cv_ld_force_load" = "yes"; then
12543 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\"`'
12545 whole_archive_flag_spec_CXX
=''
12547 link_all_deplibs_CXX
=yes
12548 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
12549 case $cc_basename in
12550 ifort
*) _lt_dar_can_shared
=yes ;;
12551 *) _lt_dar_can_shared
=$GCC ;;
12553 if test "$_lt_dar_can_shared" = "yes"; then
12554 output_verbose_link_cmd
=func_echo_all
12555 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}"
12556 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12557 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}"
12558 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}"
12559 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12560 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}"
12561 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}"
12571 case $cc_basename in
12573 # FIXME: insert proper C++ library support
12577 # Green Hills C++ Compiler
12578 # FIXME: insert proper C++ library support
12582 # FIXME: insert proper C++ library support
12589 # C++ shared libraries reported to be fairly broken before
12595 archive_cmds_need_lc_CXX
=no
12598 freebsd
* | dragonfly
*)
12599 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12608 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12609 link_all_deplibs_CXX
=yes
12613 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
12614 hardcode_libdir_separator_CXX
=:
12615 export_dynamic_flag_spec_CXX
='${wl}-E'
12616 hardcode_direct_CXX
=yes
12617 hardcode_minus_L_CXX
=yes # Not in the search PATH,
12618 # but as the default
12619 # location of the library.
12621 case $cc_basename in
12623 # FIXME: insert proper C++ library support
12627 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'
12628 # Commands to make compiler produce verbose output that lists
12629 # what "hidden" libraries, object files and flags are used when
12630 # linking a shared library.
12632 # There doesn't appear to be a way to prevent this compiler from
12633 # explicitly linking system object files so we need to strip them
12634 # from the output so that they don't get included in the library
12636 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"'
12639 if test "$GXX" = yes; then
12640 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'
12642 # FIXME: insert proper C++ library support
12650 if test $with_gnu_ld = no
; then
12651 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
12652 hardcode_libdir_separator_CXX
=:
12658 export_dynamic_flag_spec_CXX
='${wl}-E'
12664 hardcode_direct_CXX
=no
12665 hardcode_shlibpath_var_CXX
=no
12668 hardcode_direct_CXX
=yes
12669 hardcode_direct_absolute_CXX
=yes
12670 hardcode_minus_L_CXX
=yes # Not in the search PATH,
12671 # but as the default
12672 # location of the library.
12676 case $cc_basename in
12678 # FIXME: insert proper C++ library support
12684 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12687 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12690 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12693 # Commands to make compiler produce verbose output that lists
12694 # what "hidden" libraries, object files and flags are used when
12695 # linking a shared library.
12697 # There doesn't appear to be a way to prevent this compiler from
12698 # explicitly linking system object files so we need to strip them
12699 # from the output so that they don't get included in the library
12701 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"'
12704 if test "$GXX" = yes; then
12705 if test $with_gnu_ld = no
; then
12708 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12711 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12714 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'
12719 # FIXME: insert proper C++ library support
12727 hardcode_direct_CXX
=no
12728 hardcode_shlibpath_var_CXX
=no
12729 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12730 export_dynamic_flag_spec_CXX
='${wl}-E'
12731 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12732 # Instead, shared libraries are loaded at an image base (0x10000000 by
12733 # default) and relocated if they conflict, which is a slow very memory
12734 # consuming and fragmenting process. To avoid this, we pick a random,
12735 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12736 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12737 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'
12738 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'
12741 case $cc_basename in
12744 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'
12746 # Archives containing C++ object files must be created using
12747 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12748 # necessary to make sure instantiated templates are included
12750 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
12753 if test "$GXX" = yes; then
12754 if test "$with_gnu_ld" = no
; then
12755 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'
12757 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'
12760 link_all_deplibs_CXX
=yes
12763 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12764 hardcode_libdir_separator_CXX
=:
12765 inherit_rpath_CXX
=yes
12768 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12769 case $cc_basename in
12771 # Kuck and Associates, Inc. (KAI) C++ Compiler
12773 # KCC will only create a shared library if the output file
12774 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12775 # to its proper name (with version) after linking.
12776 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'
12777 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'
12778 # Commands to make compiler produce verbose output that lists
12779 # what "hidden" libraries, object files and flags are used when
12780 # linking a shared library.
12782 # There doesn't appear to be a way to prevent this compiler from
12783 # explicitly linking system object files so we need to strip them
12784 # from the output so that they don't get included in the library
12786 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"'
12788 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12789 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12791 # Archives containing C++ object files must be created using
12792 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12793 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
12798 # version 8.0 and above of icpc choke on multiply defined symbols
12799 # if we add $predep_objects and $postdep_objects, however 7.1 and
12800 # earlier do not add the objects themselves.
12801 case `$CC -V 2>&1` in
12803 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12804 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'
12806 *) # Version 8.0 or newer
12809 ia64
*) tmp_idyn
=' -i_dynamic';;
12811 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12812 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'
12815 archive_cmds_need_lc_CXX
=no
12816 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12817 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12818 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12821 # Portland Group C++ compiler
12823 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
12824 prelink_cmds_CXX
='tpldir=Template.dir~
12826 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12827 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12828 old_archive_cmds_CXX
='tpldir=Template.dir~
12830 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12831 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12833 archive_cmds_CXX
='tpldir=Template.dir~
12835 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12836 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12837 archive_expsym_cmds_CXX
='tpldir=Template.dir~
12839 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12840 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12842 *) # Version 6 and above use weak symbols
12843 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12844 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'
12848 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
12849 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12850 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'
12854 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12855 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'
12857 runpath_var
=LD_RUN_PATH
12858 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
12859 hardcode_libdir_separator_CXX
=:
12861 # Commands to make compiler produce verbose output that lists
12862 # what "hidden" libraries, object files and flags are used when
12863 # linking a shared library.
12865 # There doesn't appear to be a way to prevent this compiler from
12866 # explicitly linking system object files so we need to strip them
12867 # from the output so that they don't get included in the library
12869 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'
12871 xl
* | mpixl
* | bgxl
*)
12872 # IBM XL 8.0 on PPC, with GNU ld
12873 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12874 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12875 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12876 if test "x$supports_anon_versioning" = xyes
; then
12877 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
12878 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12879 echo "local: *; };" >> $output_objdir/$libname.ver~
12880 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12884 case `$CC -V 2>&1 | sed 5q` in
12887 no_undefined_flag_CXX
=' -zdefs'
12888 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12889 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'
12890 hardcode_libdir_flag_spec_CXX
='-R$libdir'
12891 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'
12892 compiler_needs_object_CXX
=yes
12894 # Not sure whether something based on
12895 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12897 output_verbose_link_cmd
='func_echo_all'
12899 # Archives containing C++ object files must be created using
12900 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12901 # necessary to make sure instantiated templates are included
12903 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
12911 # FIXME: insert proper C++ library support
12916 # FIXME: insert proper C++ library support
12921 case $cc_basename in
12923 # FIXME: insert proper C++ library support
12927 # FIXME: insert proper C++ library support
12934 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
12935 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12937 hardcode_libdir_flag_spec_CXX
='-R$libdir'
12938 hardcode_direct_CXX
=yes
12939 hardcode_shlibpath_var_CXX
=no
12941 # Workaround some broken pre-1.5 toolchains
12942 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12950 # C++ shared libraries are fairly broken
12955 if test -f /usr
/libexec
/ld.so
; then
12956 hardcode_direct_CXX
=yes
12957 hardcode_shlibpath_var_CXX
=no
12958 hardcode_direct_absolute_CXX
=yes
12959 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12960 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12961 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12962 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12963 export_dynamic_flag_spec_CXX
='${wl}-E'
12964 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12966 output_verbose_link_cmd
=func_echo_all
12972 osf3
* | osf4
* | osf5
*)
12973 case $cc_basename in
12975 # Kuck and Associates, Inc. (KAI) C++ Compiler
12977 # KCC will only create a shared library if the output file
12978 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12979 # to its proper name (with version) after linking.
12980 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'
12982 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12983 hardcode_libdir_separator_CXX
=:
12985 # Archives containing C++ object files must be created using
12986 # the KAI C++ compiler.
12988 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
12989 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
12993 # Rational C++ 2.4.1
12994 # FIXME: insert proper C++ library support
13000 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
13001 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'
13002 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
13005 allow_undefined_flag_CXX
=' -expect_unresolved \*'
13006 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'
13007 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13008 echo "-hidden">> $lib.exp~
13009 $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~
13011 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
13015 hardcode_libdir_separator_CXX
=:
13017 # Commands to make compiler produce verbose output that lists
13018 # what "hidden" libraries, object files and flags are used when
13019 # linking a shared library.
13021 # There doesn't appear to be a way to prevent this compiler from
13022 # explicitly linking system object files so we need to strip them
13023 # from the output so that they don't get included in the library
13025 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"'
13028 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
13029 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
13032 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'
13035 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'
13039 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
13040 hardcode_libdir_separator_CXX
=:
13042 # Commands to make compiler produce verbose output that lists
13043 # what "hidden" libraries, object files and flags are used when
13044 # linking a shared library.
13045 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13048 # FIXME: insert proper C++ library support
13056 # FIXME: insert proper C++ library support
13061 case $cc_basename in
13064 # FIXME: insert proper C++ library support
13069 # FIXME: insert proper C++ library support
13073 # FIXME: insert proper C++ library support
13080 case $cc_basename in
13082 # Sun C++ 4.2, 5.x and Centerline C++
13083 archive_cmds_need_lc_CXX
=yes
13084 no_undefined_flag_CXX
=' -zdefs'
13085 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13086 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13087 $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'
13089 hardcode_libdir_flag_spec_CXX
='-R$libdir'
13090 hardcode_shlibpath_var_CXX
=no
13092 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13094 # The compiler driver will combine and reorder linker options,
13095 # but understands `-z linker_flag'.
13096 # Supported since Solaris 2.6 (maybe 2.5.1?)
13097 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
13100 link_all_deplibs_CXX
=yes
13102 output_verbose_link_cmd
='func_echo_all'
13104 # Archives containing C++ object files must be created using
13105 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13106 # necessary to make sure instantiated templates are included
13108 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
13111 # Green Hills C++ Compiler
13112 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13114 # The C++ compiler must be used to create the archive.
13115 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13118 # GNU C++ compiler with Solaris linker
13119 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
13120 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
13121 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
13122 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13123 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13124 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13126 # Commands to make compiler produce verbose output that lists
13127 # what "hidden" libraries, object files and flags are used when
13128 # linking a shared library.
13129 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13131 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13133 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13134 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13135 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13137 # Commands to make compiler produce verbose output that lists
13138 # what "hidden" libraries, object files and flags are used when
13139 # linking a shared library.
13140 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13143 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
13145 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13147 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13155 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13156 no_undefined_flag_CXX
='${wl}-z,text'
13157 archive_cmds_need_lc_CXX
=no
13158 hardcode_shlibpath_var_CXX
=no
13159 runpath_var
='LD_RUN_PATH'
13161 case $cc_basename in
13163 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13164 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13167 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13168 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13173 sysv5
* | sco3.2v5
* | sco5v6
*)
13174 # Note: We can NOT use -z defs as we might desire, because we do not
13175 # link with -lc, and that would cause any symbols used from libc to
13176 # always be unresolved, which means just about no library would
13177 # ever link correctly. If we're not using GNU ld we use -z text
13178 # though, which does catch some bad symbols but isn't as heavy-handed
13180 no_undefined_flag_CXX
='${wl}-z,text'
13181 allow_undefined_flag_CXX
='${wl}-z,nodefs'
13182 archive_cmds_need_lc_CXX
=no
13183 hardcode_shlibpath_var_CXX
=no
13184 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
13185 hardcode_libdir_separator_CXX
=':'
13186 link_all_deplibs_CXX
=yes
13187 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
13188 runpath_var
='LD_RUN_PATH'
13190 case $cc_basename in
13192 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13193 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13194 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
13195 '"$old_archive_cmds_CXX"
13196 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
13197 '"$reload_cmds_CXX"
13200 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13201 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13207 case $cc_basename in
13209 # NonStop-UX NCC 3.20
13210 # FIXME: insert proper C++ library support
13214 # FIXME: insert proper C++ library support
13221 # FIXME: insert proper C++ library support
13226 # FIXME: insert proper C++ library support
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13232 $as_echo "$ld_shlibs_CXX" >&6; }
13233 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
13239 ## There is no encapsulation within the following macros, do not change
13240 ## the running order or otherwise move them around unless you know exactly
13241 ## what you are doing...
13242 # Dependencies to place before and after the object being linked:
13243 predep_objects_CXX
=
13244 postdep_objects_CXX
=
13247 compiler_lib_search_path_CXX
=
13249 cat > conftest.
$ac_ext <<_LT_EOF
13253 Foo (void) { a = 0; }
13259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13260 (eval $ac_compile) 2>&5
13262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13263 test $ac_status = 0; }; then
13264 # Parse the compiler output and extract the necessary
13265 # objects, libraries and library flags.
13267 # Sentinel used to keep track of whether or not we are before
13268 # the conftest object file.
13269 pre_test_object_deps_done
=no
13271 for p
in `eval "$output_verbose_link_cmd"`; do
13275 # Some compilers place space between "-{L,R}" and the path.
13276 # Remove the space.
13277 if test $p = "-L" ||
13278 test $p = "-R"; then
13285 if test "$pre_test_object_deps_done" = no
; then
13288 # Internal compiler library paths should come after those
13289 # provided the user. The postdeps already come after the
13290 # user supplied libs so there is no need to process them.
13291 if test -z "$compiler_lib_search_path_CXX"; then
13292 compiler_lib_search_path_CXX
="${prev}${p}"
13294 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
13297 # The "-l" case would never come before the object being
13298 # linked, so don't bother handling this case.
13301 if test -z "$postdeps_CXX"; then
13302 postdeps_CXX
="${prev}${p}"
13304 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
13310 # This assumes that the test object file only shows up
13311 # once in the compiler output.
13312 if test "$p" = "conftest.$objext"; then
13313 pre_test_object_deps_done
=yes
13317 if test "$pre_test_object_deps_done" = no
; then
13318 if test -z "$predep_objects_CXX"; then
13319 predep_objects_CXX
="$p"
13321 predep_objects_CXX
="$predep_objects_CXX $p"
13324 if test -z "$postdep_objects_CXX"; then
13325 postdep_objects_CXX
="$p"
13327 postdep_objects_CXX
="$postdep_objects_CXX $p"
13332 *) ;; # Ignore the rest.
13340 echo "libtool.m4: error: problem compiling CXX test program"
13343 $RM -f confest.
$objext
13345 # PORTME: override above test on systems where it is broken
13348 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13349 # hack all around it, let's just trust "g++" to DTRT.
13350 predep_objects_CXX
=
13351 postdep_objects_CXX
=
13356 case `$CC -V 2>&1 | sed 5q` in
13360 # The more standards-conforming stlport4 library is
13361 # incompatible with the Cstd library. Avoid specifying
13362 # it if it's in CXXFLAGS. Ignore libCrun as
13363 # -library=stlport4 depends on it.
13364 case " $CXX $CXXFLAGS " in
13365 *" -library=stlport4 "*)
13366 solaris_use_stlport4
=yes
13370 if test "$solaris_use_stlport4" != yes; then
13371 postdeps_CXX
='-library=Cstd -library=Crun'
13378 case $cc_basename in
13380 # The more standards-conforming stlport4 library is
13381 # incompatible with the Cstd library. Avoid specifying
13382 # it if it's in CXXFLAGS. Ignore libCrun as
13383 # -library=stlport4 depends on it.
13384 case " $CXX $CXXFLAGS " in
13385 *" -library=stlport4 "*)
13386 solaris_use_stlport4
=yes
13390 # Adding this requires a known-good setup of shared libraries for
13391 # Sun compiler versions before 5.6, else PIC objects from an old
13392 # archive will be linked into the output, leading to subtle bugs.
13393 if test "$solaris_use_stlport4" != yes; then
13394 postdeps_CXX
='-library=Cstd -library=Crun'
13402 case " $postdeps_CXX " in
13403 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
13405 compiler_lib_search_dirs_CXX
=
13406 if test -n "${compiler_lib_search_path_CXX}"; then
13407 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13440 lt_prog_compiler_wl_CXX
=
13441 lt_prog_compiler_pic_CXX
=
13442 lt_prog_compiler_static_CXX
=
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13445 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13447 # C++ specific cases for pic, static, wl, etc.
13448 if test "$GXX" = yes; then
13449 lt_prog_compiler_wl_CXX
='-Wl,'
13450 lt_prog_compiler_static_CXX
='-static'
13454 # All AIX code is PIC.
13455 if test "$host_cpu" = ia64
; then
13456 # AIX 5 now supports IA64 processor
13457 lt_prog_compiler_static_CXX
='-Bstatic'
13459 lt_prog_compiler_pic_CXX
='-fPIC'
13465 # see comment about AmigaOS4 .so support
13466 lt_prog_compiler_pic_CXX
='-fPIC'
13469 # FIXME: we need at least 68020 code to build shared libraries, but
13470 # adding the `-m68020' flag to GCC prevents building anything better,
13472 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
13477 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
13478 # PIC is the default for these OSes.
13480 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
13481 # This hack is so that the source file can tell whether it is being
13482 # built for inclusion in a dll (and should export symbols for example).
13483 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13484 # (--disable-auto-import) libraries
13485 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
13487 darwin
* | rhapsody
*)
13488 # PIC is the default on this platform
13489 # Common symbols not allowed in MH_DYLIB files
13490 lt_prog_compiler_pic_CXX
='-fno-common'
13493 # DJGPP does not support shared libraries at all
13494 lt_prog_compiler_pic_CXX
=
13497 # PIC is the default for Haiku.
13498 # The "-static" flag exists, but is broken.
13499 lt_prog_compiler_static_CXX
=
13502 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13503 # Instead, we relocate shared libraries at runtime.
13506 if test -d /usr
/nec
; then
13507 lt_prog_compiler_pic_CXX
=-Kconform_pic
13511 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13512 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13513 # sets the default TLS model and affects inlining.
13518 lt_prog_compiler_pic_CXX
='-fPIC'
13523 # QNX uses GNU C++, but need to define -shared option too, otherwise
13524 # it will coredump.
13525 lt_prog_compiler_pic_CXX
='-fPIC -shared'
13528 lt_prog_compiler_pic_CXX
='-fPIC'
13534 # All AIX code is PIC.
13535 if test "$host_cpu" = ia64
; then
13536 # AIX 5 now supports IA64 processor
13537 lt_prog_compiler_static_CXX
='-Bstatic'
13539 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
13543 case $cc_basename in
13545 # Green Hills C++ Compiler
13546 # _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"
13551 case $cc_basename in
13553 lt_prog_compiler_pic_CXX
='-KPIC'
13556 # Green Hills C++ Compiler
13557 lt_prog_compiler_pic_CXX
='-pic'
13563 freebsd
* | dragonfly
*)
13564 # FreeBSD uses GNU C++
13566 hpux9
* | hpux10
* | hpux11
*)
13567 case $cc_basename in
13569 lt_prog_compiler_wl_CXX
='-Wl,'
13570 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
13571 if test "$host_cpu" != ia64
; then
13572 lt_prog_compiler_pic_CXX
='+Z'
13576 lt_prog_compiler_wl_CXX
='-Wl,'
13577 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
13583 lt_prog_compiler_pic_CXX
='+Z'
13592 # This is c89, which is MS Visual C++ (no shared libs)
13593 # Anyone wants to do a port?
13595 irix5
* | irix6
* | nonstopux
*)
13596 case $cc_basename in
13598 lt_prog_compiler_wl_CXX
='-Wl,'
13599 lt_prog_compiler_static_CXX
='-non_shared'
13600 # CC pic flag -KPIC is the default.
13606 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
13607 case $cc_basename in
13610 lt_prog_compiler_wl_CXX
='--backend -Wl,'
13611 lt_prog_compiler_pic_CXX
='-fPIC'
13614 # old Intel C++ for x86_64 which still supported -KPIC.
13615 lt_prog_compiler_wl_CXX
='-Wl,'
13616 lt_prog_compiler_pic_CXX
='-KPIC'
13617 lt_prog_compiler_static_CXX
='-static'
13620 # Intel C++, used to be incompatible with GCC.
13621 # ICC 10 doesn't accept -KPIC any more.
13622 lt_prog_compiler_wl_CXX
='-Wl,'
13623 lt_prog_compiler_pic_CXX
='-fPIC'
13624 lt_prog_compiler_static_CXX
='-static'
13627 # Portland Group C++ compiler
13628 lt_prog_compiler_wl_CXX
='-Wl,'
13629 lt_prog_compiler_pic_CXX
='-fpic'
13630 lt_prog_compiler_static_CXX
='-Bstatic'
13634 # Make sure the PIC flag is empty. It appears that all Alpha
13635 # Linux and Compaq Tru64 Unix objects are PIC.
13636 lt_prog_compiler_pic_CXX
=
13637 lt_prog_compiler_static_CXX
='-non_shared'
13639 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
13640 # IBM XL 8.0, 9.0 on PPC and BlueGene
13641 lt_prog_compiler_wl_CXX
='-Wl,'
13642 lt_prog_compiler_pic_CXX
='-qpic'
13643 lt_prog_compiler_static_CXX
='-qstaticlink'
13646 case `$CC -V 2>&1 | sed 5q` in
13649 lt_prog_compiler_pic_CXX
='-KPIC'
13650 lt_prog_compiler_static_CXX
='-Bstatic'
13651 lt_prog_compiler_wl_CXX
='-Qoption ld '
13662 case $cc_basename in
13664 lt_prog_compiler_pic_CXX
='-W c,exportall'
13673 # QNX uses GNU C++, but need to define -shared option too, otherwise
13674 # it will coredump.
13675 lt_prog_compiler_pic_CXX
='-fPIC -shared'
13677 osf3
* | osf4
* | osf5
*)
13678 case $cc_basename in
13680 lt_prog_compiler_wl_CXX
='--backend -Wl,'
13683 # Rational C++ 2.4.1
13684 lt_prog_compiler_pic_CXX
='-pic'
13687 # Digital/Compaq C++
13688 lt_prog_compiler_wl_CXX
='-Wl,'
13689 # Make sure the PIC flag is empty. It appears that all Alpha
13690 # Linux and Compaq Tru64 Unix objects are PIC.
13691 lt_prog_compiler_pic_CXX
=
13692 lt_prog_compiler_static_CXX
='-non_shared'
13701 case $cc_basename in
13703 # Sun C++ 4.2, 5.x and Centerline C++
13704 lt_prog_compiler_pic_CXX
='-KPIC'
13705 lt_prog_compiler_static_CXX
='-Bstatic'
13706 lt_prog_compiler_wl_CXX
='-Qoption ld '
13709 # Green Hills C++ Compiler
13710 lt_prog_compiler_pic_CXX
='-PIC'
13717 case $cc_basename in
13720 lt_prog_compiler_pic_CXX
='-pic'
13721 lt_prog_compiler_static_CXX
='-Bstatic'
13725 lt_prog_compiler_pic_CXX
='-pic'
13731 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
13732 case $cc_basename in
13734 lt_prog_compiler_wl_CXX
='-Wl,'
13735 lt_prog_compiler_pic_CXX
='-KPIC'
13736 lt_prog_compiler_static_CXX
='-Bstatic'
13741 case $cc_basename in
13743 # NonStop-UX NCC 3.20
13744 lt_prog_compiler_pic_CXX
='-KPIC'
13753 lt_prog_compiler_can_build_shared_CXX
=no
13759 # For platforms which do not support PIC, -DPIC is meaningless:
13761 lt_prog_compiler_pic_CXX
=
13764 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13768 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13773 # Check to make sure the PIC flag actually works.
13775 if test -n "$lt_prog_compiler_pic_CXX"; then
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13777 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13778 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
13779 $as_echo_n "(cached) " >&6
13781 lt_cv_prog_compiler_pic_works_CXX
=no
13782 ac_outfile
=conftest.
$ac_objext
13783 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13784 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
13785 # Insert the option either (1) after the last *FLAGS variable, or
13786 # (2) before a word containing "conftest.", or (3) at the end.
13787 # Note that $ac_compile itself does not contain backslashes and begins
13788 # with a dollar sign (not a hyphen), so the echo should work correctly.
13789 # The option is referenced via a variable to avoid confusing sed.
13790 lt_compile
=`echo "$ac_compile" | $SED \
13791 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13792 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13793 -e 's:$: $lt_compiler_flag:'`
13794 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13795 (eval "$lt_compile" 2>conftest.err
)
13797 cat conftest.err
>&5
13798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799 if (exit $ac_status) && test -s "$ac_outfile"; then
13800 # The compiler can only warn and ignore the option if not recognized
13801 # So say no if there are warnings other than the usual output.
13802 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
13803 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
13804 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
13805 lt_cv_prog_compiler_pic_works_CXX
=yes
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13812 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13814 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
13815 case $lt_prog_compiler_pic_CXX in
13817 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
13820 lt_prog_compiler_pic_CXX
=
13821 lt_prog_compiler_can_build_shared_CXX
=no
13829 # Check to make sure the static flag actually works.
13831 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13833 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13834 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
13835 $as_echo_n "(cached) " >&6
13837 lt_cv_prog_compiler_static_works_CXX
=no
13838 save_LDFLAGS
="$LDFLAGS"
13839 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
13840 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
13841 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
13842 # The linker can only warn and ignore the option if not recognized
13843 # So say no if there are warnings
13844 if test -s conftest.err
; then
13845 # Append any errors to the config.log.
13846 cat conftest.err
1>&5
13847 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
13848 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
13849 if diff conftest.exp conftest.er2
>/dev
/null
; then
13850 lt_cv_prog_compiler_static_works_CXX
=yes
13853 lt_cv_prog_compiler_static_works_CXX
=yes
13857 LDFLAGS
="$save_LDFLAGS"
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13861 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13863 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
13866 lt_prog_compiler_static_CXX
=
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13873 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13874 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
13875 $as_echo_n "(cached) " >&6
13877 lt_cv_prog_compiler_c_o_CXX
=no
13878 $RM -r conftest
2>/dev
/null
13882 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13884 lt_compiler_flag
="-o out/conftest2.$ac_objext"
13885 # Insert the option either (1) after the last *FLAGS variable, or
13886 # (2) before a word containing "conftest.", or (3) at the end.
13887 # Note that $ac_compile itself does not contain backslashes and begins
13888 # with a dollar sign (not a hyphen), so the echo should work correctly.
13889 lt_compile
=`echo "$ac_compile" | $SED \
13890 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13891 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13892 -e 's:$: $lt_compiler_flag:'`
13893 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13894 (eval "$lt_compile" 2>out
/conftest.err
)
13896 cat out
/conftest.err
>&5
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
13900 # The compiler can only warn and ignore the option if not recognized
13901 # So say no if there are warnings
13902 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
13903 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
13904 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
13905 lt_cv_prog_compiler_c_o_CXX
=yes
13910 # SGI C++ compiler will create directory out/ii_files/ for
13911 # template instantiation
13912 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
13913 $RM out
/* && rmdir out
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13920 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13925 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13926 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
13927 $as_echo_n "(cached) " >&6
13929 lt_cv_prog_compiler_c_o_CXX
=no
13930 $RM -r conftest
2>/dev
/null
13934 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13936 lt_compiler_flag
="-o out/conftest2.$ac_objext"
13937 # Insert the option either (1) after the last *FLAGS variable, or
13938 # (2) before a word containing "conftest.", or (3) at the end.
13939 # Note that $ac_compile itself does not contain backslashes and begins
13940 # with a dollar sign (not a hyphen), so the echo should work correctly.
13941 lt_compile
=`echo "$ac_compile" | $SED \
13942 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13943 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13944 -e 's:$: $lt_compiler_flag:'`
13945 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13946 (eval "$lt_compile" 2>out
/conftest.err
)
13948 cat out
/conftest.err
>&5
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
13952 # The compiler can only warn and ignore the option if not recognized
13953 # So say no if there are warnings
13954 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
13955 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
13956 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
13957 lt_cv_prog_compiler_c_o_CXX
=yes
13962 # SGI C++ compiler will create directory out/ii_files/ for
13963 # template instantiation
13964 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
13965 $RM out
/* && rmdir out
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13972 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13977 hard_links
="nottested"
13978 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
13979 # do not overwrite the value of need_locks provided by the user
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13981 $as_echo_n "checking if we can lock with hard links... " >&6; }
13984 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13986 ln conftest.a conftest.b
2>&5 || hard_links
=no
13987 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13989 $as_echo "$hard_links" >&6; }
13990 if test "$hard_links" = no
; then
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13992 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14002 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14004 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14007 # If we're using GNU nm, then we don't want the "-C" option.
14008 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14009 # Also, AIX nm treats weak defined symbols like other global defined
14010 # symbols, whereas GNU nm marks them as "W".
14011 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
14012 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'
14014 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'
14018 export_symbols_cmds_CXX
="$ltdll_cmds"
14020 cygwin
* | mingw
* | cegcc
*)
14021 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'
14024 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14027 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14030 $as_echo "$ld_shlibs_CXX" >&6; }
14031 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
14033 with_gnu_ld_CXX
=$with_gnu_ld
14041 # Do we need to explicitly link libc?
14043 case "x$archive_cmds_need_lc_CXX" in
14045 # Assume -lc should be added
14046 archive_cmds_need_lc_CXX
=yes
14048 if test "$enable_shared" = yes && test "$GCC" = yes; then
14049 case $archive_cmds_CXX in
14051 # FIXME: we may have to deal with multi-command sequences.
14054 # Test whether the compiler implicitly links with -lc since on some
14055 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14056 # to ld, don't add -lc before -lgcc.
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14058 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14059 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
14060 $as_echo_n "(cached) " >&6
14063 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14065 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14066 (eval $ac_compile) 2>&5
14068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14069 test $ac_status = 0; } 2>conftest.err
; then
14072 libobjs
=conftest.
$ac_objext
14074 wl
=$lt_prog_compiler_wl_CXX
14075 pic_flag
=$lt_prog_compiler_pic_CXX
14081 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
14082 allow_undefined_flag_CXX
=
14083 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14084 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
14086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14087 test $ac_status = 0; }
14089 lt_cv_archive_cmds_need_lc_CXX
=no
14091 lt_cv_archive_cmds_need_lc_CXX
=yes
14093 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
14095 cat conftest.err
1>&5
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14101 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14102 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14173 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14175 library_names_spec
=
14176 libname_spec
='lib$name'
14180 postuninstall_cmds
=
14184 shlibpath_overrides_runpath
=unknown
14186 dynamic_linker
="$host_os ld.so"
14187 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
14188 need_lib_prefix
=unknown
14189 hardcode_into_libs
=no
14191 # when you set need_version to no, make sure it does not cause -set_version
14192 # flags to be left without arguments
14193 need_version
=unknown
14198 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
14199 shlibpath_var
=LIBPATH
14201 # AIX 3 has no versioning support, so we append a major version to the name.
14202 soname_spec
='${libname}${release}${shared_ext}$major'
14209 hardcode_into_libs
=yes
14210 if test "$host_cpu" = ia64
; then
14211 # AIX 5 supports IA64
14212 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14213 shlibpath_var
=LD_LIBRARY_PATH
14215 # With GCC up to 2.95.x, collect2 would create an import file
14216 # for dependence libraries. The import file would start with
14217 # the line `#! .'. This would cause the generated library to
14218 # depend on `.', always an invalid library. This was fixed in
14219 # development snapshots of GCC prior to 3.0.
14221 aix4 | aix4.
[01] | aix4.
[01].
*)
14222 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14224 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
14227 can_build_shared
=no
14231 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14232 # soname into executable. Probably we can add versioning support to
14233 # collect2, so additional links can be useful in future.
14234 if test "$aix_use_runtimelinking" = yes; then
14235 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14236 # instead of lib<name>.a to let people know that these are not
14237 # typical AIX shared libraries.
14238 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14240 # We preserve .a as extension for shared libraries through AIX4.2
14241 # and later when we are not doing run time linking.
14242 library_names_spec
='${libname}${release}.a $libname.a'
14243 soname_spec
='${libname}${release}${shared_ext}$major'
14245 shlibpath_var
=LIBPATH
14252 # Since July 2007 AmigaOS4 officially supports .so libraries.
14253 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14254 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14257 library_names_spec
='$libname.ixlibrary $libname.a'
14258 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14259 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'
14265 library_names_spec
='${libname}${shared_ext}'
14266 dynamic_linker
="$host_os ld.so"
14267 shlibpath_var
=LIBRARY_PATH
14273 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14274 soname_spec
='${libname}${release}${shared_ext}$major'
14275 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
14276 shlibpath_var
=LD_LIBRARY_PATH
14277 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14278 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
14279 # the default ld.so.conf also contains /usr/contrib/lib and
14280 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14281 # libtool to hard-code these into programs
14284 cygwin
* | mingw
* | pw32
* | cegcc
*)
14285 version_type
=windows
14290 case $GCC,$host_os in
14291 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
14292 library_names_spec
='$libname.dll.a'
14293 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14294 postinstall_cmds
='base_file=`basename \${file}`~
14295 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14296 dldir=$destdir/`dirname \$dlpath`~
14297 test -d \$dldir || mkdir -p \$dldir~
14298 $install_prog $dir/$dlname \$dldir/$dlname~
14299 chmod a+x \$dldir/$dlname~
14300 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14301 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14303 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14304 dlpath=$dir/\$dldll~
14306 shlibpath_overrides_runpath
=yes
14310 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14311 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14315 # MinGW DLLs use traditional 'lib' prefix
14316 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14319 # pw32 DLLs use 'pw' prefix rather than 'lib'
14320 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14326 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14329 dynamic_linker
='Win32 ld.exe'
14330 # FIXME: first we should search . and the directory the executable is in
14334 darwin
* | rhapsody
*)
14335 dynamic_linker
="$host_os dyld"
14336 version_type
=darwin
14339 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14340 soname_spec
='${libname}${release}${major}$shared_ext'
14341 shlibpath_overrides_runpath
=yes
14342 shlibpath_var
=DYLD_LIBRARY_PATH
14343 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
14345 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
14352 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14353 soname_spec
='${libname}${release}${shared_ext}$major'
14354 shlibpath_var
=LD_LIBRARY_PATH
14357 freebsd
* | dragonfly
*)
14358 # DragonFly does not have aout. When/if they implement a new
14359 # versioning mechanism, adjust this.
14360 if test -x /usr
/bin
/objformat
; then
14361 objformat
=`/usr/bin/objformat`
14364 freebsd
[23].
*) objformat
=aout
;;
14365 *) objformat
=elf
;;
14368 version_type
=freebsd-
$objformat
14369 case $version_type in
14371 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14376 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14380 shlibpath_var
=LD_LIBRARY_PATH
14383 shlibpath_overrides_runpath
=yes
14385 freebsd3.
[01]* | freebsdelf3.
[01]*)
14386 shlibpath_overrides_runpath
=yes
14387 hardcode_into_libs
=yes
14389 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
14390 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
14391 shlibpath_overrides_runpath
=no
14392 hardcode_into_libs
=yes
14394 *) # from 4.6 on, and DragonFly
14395 shlibpath_overrides_runpath
=yes
14396 hardcode_into_libs
=yes
14405 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14406 soname_spec
='${libname}${release}${shared_ext}$major'
14407 shlibpath_var
=LD_LIBRARY_PATH
14408 hardcode_into_libs
=yes
14415 dynamic_linker
="$host_os runtime_loader"
14416 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14417 soname_spec
='${libname}${release}${shared_ext}$major'
14418 shlibpath_var
=LIBRARY_PATH
14419 shlibpath_overrides_runpath
=yes
14420 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14421 hardcode_into_libs
=yes
14424 hpux9
* | hpux10
* | hpux11
*)
14425 # Give a soname corresponding to the major version so that dld.sl refuses to
14426 # link against other versions.
14433 hardcode_into_libs
=yes
14434 dynamic_linker
="$host_os dld.so"
14435 shlibpath_var
=LD_LIBRARY_PATH
14436 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14437 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14438 soname_spec
='${libname}${release}${shared_ext}$major'
14439 if test "X$HPUX_IA64_MODE" = X32
; then
14440 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14442 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
14444 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14448 hardcode_into_libs
=yes
14449 dynamic_linker
="$host_os dld.sl"
14450 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
14451 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14452 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14453 soname_spec
='${libname}${release}${shared_ext}$major'
14454 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14455 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14459 dynamic_linker
="$host_os dld.sl"
14460 shlibpath_var
=SHLIB_PATH
14461 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
14462 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14463 soname_spec
='${libname}${release}${shared_ext}$major'
14466 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14467 postinstall_cmds
='chmod 555 $lib'
14468 # or fails outright, so override atomically:
14469 install_override_mode
=555
14476 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14477 soname_spec
='${libname}${release}${shared_ext}$major'
14478 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
14479 shlibpath_var
=LD_LIBRARY_PATH
14480 shlibpath_overrides_runpath
=no
14481 hardcode_into_libs
=yes
14484 irix5
* | irix6
* | nonstopux
*)
14486 nonstopux
*) version_type
=nonstopux
;;
14488 if test "$lt_cv_prog_gnu_ld" = yes; then
14496 soname_spec
='${libname}${release}${shared_ext}$major'
14497 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14499 irix5
* | nonstopux
*)
14500 libsuff
= shlibsuff
=
14503 case $LD in # libtool.m4 will add one of these switches to LD
14504 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
14505 libsuff
= shlibsuff
= libmagic
=32-bit;;
14506 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
14507 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
14508 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
14509 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
14510 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
14514 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
14515 shlibpath_overrides_runpath
=no
14516 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14517 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
14518 hardcode_into_libs
=yes
14521 # No shared lib support for Linux oldld, aout, or coff.
14522 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
14526 # This must be Linux ELF.
14528 # uclinux* changes (here and below) have been submitted to the libtool
14529 # project, but have not yet been accepted: they are GCC-local changes
14530 # for the time being. (See
14531 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14532 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
14536 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14537 soname_spec
='${libname}${release}${shared_ext}$major'
14538 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14539 shlibpath_var
=LD_LIBRARY_PATH
14540 shlibpath_overrides_runpath
=no
14542 # Some binutils ld are patched to set DT_RUNPATH
14543 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
14544 $as_echo_n "(cached) " >&6
14546 lt_cv_shlibpath_overrides_runpath
=no
14547 save_LDFLAGS
=$LDFLAGS
14548 save_libdir
=$libdir
14549 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14550 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14552 /* end confdefs.h. */
14562 if ac_fn_cxx_try_link
"$LINENO"; then :
14563 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
14564 lt_cv_shlibpath_overrides_runpath
=yes
14567 rm -f core conftest.err conftest.
$ac_objext \
14568 conftest
$ac_exeext conftest.
$ac_ext
14569 LDFLAGS
=$save_LDFLAGS
14570 libdir
=$save_libdir
14574 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
14576 # This implies no fast_install, which is unacceptable.
14577 # Some rework will be needed to allow for fast_install
14578 # before this can be enabled.
14579 hardcode_into_libs
=yes
14581 # Append ld.so.conf contents to the search path
14582 if test -f /etc
/ld.so.conf
; then
14583 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' ' '`
14584 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
14587 # We used to test for /lib/ld.so.1 and disable shared libraries on
14588 # powerpc, because MkLinux only supported shared libraries with the
14589 # GNU dynamic linker. Since this was broken with cross compilers,
14590 # most powerpc-linux boxes support dynamic linking these days and
14591 # people can always --disable-shared, the test was removed, and we
14592 # assume the GNU/Linux dynamic linker is in use.
14593 dynamic_linker
='GNU/Linux ld.so'
14600 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
14601 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14602 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14603 dynamic_linker
='NetBSD (a.out) ld.so'
14605 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14606 soname_spec
='${libname}${release}${shared_ext}$major'
14607 dynamic_linker
='NetBSD ld.elf_so'
14609 shlibpath_var
=LD_LIBRARY_PATH
14610 shlibpath_overrides_runpath
=yes
14611 hardcode_into_libs
=yes
14616 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14617 shlibpath_var
=LD_LIBRARY_PATH
14618 shlibpath_overrides_runpath
=yes
14625 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14626 soname_spec
='${libname}${release}${shared_ext}$major'
14627 shlibpath_var
=LD_LIBRARY_PATH
14628 shlibpath_overrides_runpath
=no
14629 hardcode_into_libs
=yes
14630 dynamic_linker
='ldqnx.so'
14635 sys_lib_dlsearch_path_spec
="/usr/lib"
14637 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14639 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
14640 *) need_version
=no
;;
14642 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14643 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14644 shlibpath_var
=LD_LIBRARY_PATH
14645 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14647 openbsd2.
[89] | openbsd2.
[89].
*)
14648 shlibpath_overrides_runpath
=no
14651 shlibpath_overrides_runpath
=yes
14655 shlibpath_overrides_runpath
=yes
14660 libname_spec
='$name'
14663 library_names_spec
='$libname${shared_ext} $libname.a'
14664 dynamic_linker
='OS/2 ld.exe'
14665 shlibpath_var
=LIBPATH
14668 osf3
* | osf4
* | osf5
*)
14672 soname_spec
='${libname}${release}${shared_ext}$major'
14673 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14674 shlibpath_var
=LD_LIBRARY_PATH
14675 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14676 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
14687 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14688 soname_spec
='${libname}${release}${shared_ext}$major'
14689 shlibpath_var
=LD_LIBRARY_PATH
14690 shlibpath_overrides_runpath
=yes
14691 hardcode_into_libs
=yes
14692 # ldd complains unless libraries are executable
14693 postinstall_cmds
='chmod +x $lib'
14698 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14699 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14700 shlibpath_var
=LD_LIBRARY_PATH
14701 shlibpath_overrides_runpath
=yes
14702 if test "$with_gnu_ld" = yes; then
14710 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14711 soname_spec
='${libname}${release}${shared_ext}$major'
14712 shlibpath_var
=LD_LIBRARY_PATH
14713 case $host_vendor in
14715 shlibpath_overrides_runpath
=no
14717 runpath_var
=LD_RUN_PATH
14725 shlibpath_overrides_runpath
=no
14726 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
14732 if test -d /usr
/nec
;then
14734 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14735 soname_spec
='$libname${shared_ext}.$major'
14736 shlibpath_var
=LD_LIBRARY_PATH
14740 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
14741 version_type
=freebsd-elf
14744 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14745 soname_spec
='${libname}${release}${shared_ext}$major'
14746 shlibpath_var
=LD_LIBRARY_PATH
14747 shlibpath_overrides_runpath
=yes
14748 hardcode_into_libs
=yes
14749 if test "$with_gnu_ld" = yes; then
14750 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14752 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
14755 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
14759 sys_lib_dlsearch_path_spec
='/usr/lib'
14763 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14767 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14768 shlibpath_var
=LD_LIBRARY_PATH
14769 shlibpath_overrides_runpath
=no
14770 hardcode_into_libs
=yes
14775 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14776 soname_spec
='${libname}${release}${shared_ext}$major'
14777 shlibpath_var
=LD_LIBRARY_PATH
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14785 $as_echo "$dynamic_linker" >&6; }
14786 test "$dynamic_linker" = no
&& can_build_shared
=no
14788 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
14789 if test "$GCC" = yes; then
14790 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14793 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14794 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
14796 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14797 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14838 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14839 hardcode_action_CXX
=
14840 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14841 test -n "$runpath_var_CXX" ||
14842 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14844 # We can hardcode non-existent directories.
14845 if test "$hardcode_direct_CXX" != no
&&
14846 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14847 # have to relink, otherwise we might link with an installed library
14848 # when we should be linking with a yet-to-be-installed one
14849 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14850 test "$hardcode_minus_L_CXX" != no
; then
14851 # Linking always hardcodes the temporary library directory.
14852 hardcode_action_CXX
=relink
14854 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14855 hardcode_action_CXX
=immediate
14858 # We cannot hardcode anything, or else we can only hardcode existing
14860 hardcode_action_CXX
=unsupported
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14863 $as_echo "$hardcode_action_CXX" >&6; }
14865 if test "$hardcode_action_CXX" = relink ||
14866 test "$inherit_rpath_CXX" = yes; then
14867 # Fast installation is not supported
14868 enable_fast_install
=no
14869 elif test "$shlibpath_overrides_runpath" = yes ||
14870 test "$enable_shared" = no
; then
14871 # Fast installation is not necessary
14872 enable_fast_install
=needless
14881 fi # test -n "$compiler"
14887 with_gnu_ld
=$lt_save_with_gnu_ld
14888 lt_cv_path_LDCXX
=$lt_cv_path_LD
14889 lt_cv_path_LD
=$lt_save_path_LD
14890 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
14891 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
14892 fi # test "$_lt_caught_CXX_error" != yes
14895 ac_cpp
='$CPP $CPPFLAGS'
14896 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14897 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14898 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14912 ac_config_commands
="$ac_config_commands libtool"
14917 # Only expand once:
14921 # Test for 64-bit build.
14922 # The cast to long int works around a bug in the HP C Compiler
14923 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14924 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14925 # This bug is HP SR number 8606223364.
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
14927 $as_echo_n "checking size of size_t... " >&6; }
14928 if ${ac_cv_sizeof_size_t+:} false
; then :
14929 $as_echo_n "(cached) " >&6
14931 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
14934 if test "$ac_cv_type_size_t" = yes; then
14935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14937 as_fn_error
77 "cannot compute sizeof (size_t)
14938 See \`config.log' for more details" "$LINENO" 5; }
14940 ac_cv_sizeof_size_t
=0
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
14946 $as_echo "$ac_cv_sizeof_size_t" >&6; }
14950 cat >>confdefs.h
<<_ACEOF
14951 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14956 cat > local.exp
<<EOF
14957 set CC_FOR_TARGET "$CC"
14958 set CXX_FOR_TARGET "$CXX"
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14963 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14964 # Check whether --enable-maintainer-mode was given.
14965 if test "${enable_maintainer_mode+set}" = set; then :
14966 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
14968 USE_MAINTAINER_MODE
=no
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14972 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14973 if test $USE_MAINTAINER_MODE = yes; then
14974 MAINTAINER_MODE_TRUE
=
14975 MAINTAINER_MODE_FALSE
='#'
14977 MAINTAINER_MODE_TRUE
='#'
14978 MAINTAINER_MODE_FALSE
=
14981 MAINT
=$MAINTAINER_MODE_TRUE
14985 for ac_header
in sys
/mman.h
14987 ac_fn_c_check_header_mongrel
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
14988 if test "x$ac_cv_header_sys_mman_h" = xyes
; then :
14989 cat >>confdefs.h
<<_ACEOF
14990 #define HAVE_SYS_MMAN_H 1
14997 for ac_func
in mmap mkostemp
14999 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15000 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15001 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15002 cat >>confdefs.h
<<_ACEOF
15003 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15010 ac_fn_c_check_header_mongrel
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
15011 if test "x$ac_cv_header_sys_mman_h" = xyes
; then :
15012 libffi_header_sys_mman_h
=yes
15014 libffi_header_sys_mman_h
=no
15018 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
15019 if test "x$ac_cv_func_mmap" = xyes
; then :
15020 libffi_func_mmap
=yes
15022 libffi_func_mmap
=no
15025 if test "$libffi_header_sys_mman_h" != yes \
15026 ||
test "$libffi_func_mmap" != yes; then
15027 ac_cv_func_mmap_file
=no
15028 ac_cv_func_mmap_dev_zero
=no
15029 ac_cv_func_mmap_anon
=no
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
15032 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
15033 if ${ac_cv_func_mmap_file+:} false
; then :
15034 $as_echo_n "(cached) " >&6
15036 # Add a system to this blacklist if
15037 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
15038 # memory area containing the same data that you'd get if you applied
15039 # read() to the same fd. The only system known to have a problem here
15040 # is VMS, where text files have record structure.
15043 ac_cv_func_mmap_file
=no
;;
15045 ac_cv_func_mmap_file
=yes;;
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
15049 $as_echo "$ac_cv_func_mmap_file" >&6; }
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
15051 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
15052 if ${ac_cv_func_mmap_dev_zero+:} false
; then :
15053 $as_echo_n "(cached) " >&6
15055 # Add a system to this blacklist if it has mmap() but /dev/zero
15056 # does not exist, or if mmapping /dev/zero does not give anonymous
15057 # zeroed pages with both the following properties:
15058 # 1. If you map N consecutive pages in with one call, and then
15059 # unmap any subset of those pages, the pages that were not
15060 # explicitly unmapped remain accessible.
15061 # 2. If you map two adjacent blocks of memory and then unmap them
15062 # both at once, they must both go away.
15063 # Systems known to be in this category are Windows (all variants),
15066 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
15067 ac_cv_func_mmap_dev_zero
=no
;;
15069 ac_cv_func_mmap_dev_zero
=yes;;
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
15073 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
15075 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
15077 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
15078 if ${ac_cv_decl_map_anon+:} false
; then :
15079 $as_echo_n "(cached) " >&6
15081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15082 /* end confdefs.h. */
15083 #include <sys/types.h>
15084 #include <sys/mman.h>
15085 #include <unistd.h>
15087 #ifndef MAP_ANONYMOUS
15088 #define MAP_ANONYMOUS MAP_ANON
15094 int n = MAP_ANONYMOUS;
15099 if ac_fn_c_try_compile
"$LINENO"; then :
15100 ac_cv_decl_map_anon
=yes
15102 ac_cv_decl_map_anon
=no
15104 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
15107 $as_echo "$ac_cv_decl_map_anon" >&6; }
15109 if test $ac_cv_decl_map_anon = no
; then
15110 ac_cv_func_mmap_anon
=no
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
15113 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
15114 if ${ac_cv_func_mmap_anon+:} false
; then :
15115 $as_echo_n "(cached) " >&6
15117 # Add a system to this blacklist if it has mmap() and MAP_ANON or
15118 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
15119 # doesn't give anonymous zeroed pages with the same properties listed
15120 # above for use of /dev/zero.
15121 # Systems known to be in this category are Windows, VMS, and SCO Unix.
15123 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
15124 ac_cv_func_mmap_anon
=no
;;
15126 ac_cv_func_mmap_anon
=yes;;
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
15130 $as_echo "$ac_cv_func_mmap_anon" >&6; }
15134 if test $ac_cv_func_mmap_file = yes; then
15136 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
15139 if test $ac_cv_func_mmap_dev_zero = yes; then
15141 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
15144 if test $ac_cv_func_mmap_anon = yes; then
15146 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
15151 if test -d $srcdir/testsuite
; then
15153 TESTSUBDIR_FALSE
='#'
15155 TESTSUBDIR_TRUE
='#'
15160 TARGETDIR
="unknown"
15161 HAVE_LONG_DOUBLE_VARIANT
=0
15163 .
${srcdir}/configure.
host
15165 if test -n "${UNSUPPORTED}"; then
15166 as_fn_error $?
"\"libffi has not been ported to $host.\"" "$LINENO" 5
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15173 $as_echo_n "checking for ANSI C header files... " >&6; }
15174 if ${ac_cv_header_stdc+:} false
; then :
15175 $as_echo_n "(cached) " >&6
15177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15178 /* end confdefs.h. */
15179 #include <stdlib.h>
15180 #include <stdarg.h>
15181 #include <string.h>
15192 if ac_fn_c_try_compile
"$LINENO"; then :
15193 ac_cv_header_stdc
=yes
15195 ac_cv_header_stdc
=no
15197 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15199 if test $ac_cv_header_stdc = yes; then
15200 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15202 /* end confdefs.h. */
15203 #include <string.h>
15206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15207 $EGREP "memchr" >/dev
/null
2>&1; then :
15210 ac_cv_header_stdc
=no
15216 if test $ac_cv_header_stdc = yes; then
15217 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15219 /* end confdefs.h. */
15220 #include <stdlib.h>
15223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15224 $EGREP "free" >/dev
/null
2>&1; then :
15227 ac_cv_header_stdc
=no
15233 if test $ac_cv_header_stdc = yes; then
15234 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15235 if test "$cross_compiling" = yes; then :
15238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15239 /* end confdefs.h. */
15241 #include <stdlib.h>
15242 #if ((' ' & 0x0FF) == 0x020)
15243 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15244 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15246 # define ISLOWER(c) \
15247 (('a' <= (c) && (c) <= 'i') \
15248 || ('j' <= (c) && (c) <= 'r') \
15249 || ('s' <= (c) && (c) <= 'z'))
15250 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15253 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15258 for (i = 0; i < 256; i++)
15259 if (XOR (islower (i), ISLOWER (i))
15260 || toupper (i) != TOUPPER (i))
15265 if ac_fn_c_try_run
"$LINENO"; then :
15268 ac_cv_header_stdc
=no
15270 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15271 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15277 $as_echo "$ac_cv_header_stdc" >&6; }
15278 if test $ac_cv_header_stdc = yes; then
15280 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15284 for ac_func
in memcpy
15286 ac_fn_c_check_func
"$LINENO" "memcpy" "ac_cv_func_memcpy"
15287 if test "x$ac_cv_func_memcpy" = xyes
; then :
15288 cat >>confdefs.h
<<_ACEOF
15289 #define HAVE_MEMCPY 1
15295 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15296 if test "x$ac_cv_type_size_t" = xyes
; then :
15300 cat >>confdefs.h
<<_ACEOF
15301 #define size_t unsigned int
15306 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15307 # for constant arguments. Useless!
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15309 $as_echo_n "checking for working alloca.h... " >&6; }
15310 if ${ac_cv_working_alloca_h+:} false
; then :
15311 $as_echo_n "(cached) " >&6
15313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15314 /* end confdefs.h. */
15315 #include <alloca.h>
15319 char *p = (char *) alloca (2 * sizeof (int));
15325 if ac_fn_c_try_link
"$LINENO"; then :
15326 ac_cv_working_alloca_h
=yes
15328 ac_cv_working_alloca_h
=no
15330 rm -f core conftest.err conftest.
$ac_objext \
15331 conftest
$ac_exeext conftest.
$ac_ext
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15334 $as_echo "$ac_cv_working_alloca_h" >&6; }
15335 if test $ac_cv_working_alloca_h = yes; then
15337 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15342 $as_echo_n "checking for alloca... " >&6; }
15343 if ${ac_cv_func_alloca_works+:} false
; then :
15344 $as_echo_n "(cached) " >&6
15346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15347 /* end confdefs.h. */
15349 # define alloca __builtin_alloca
15352 # include <malloc.h>
15353 # define alloca _alloca
15355 # ifdef HAVE_ALLOCA_H
15356 # include <alloca.h>
15361 # ifndef alloca /* predefined by HP cc +Olibcalls */
15362 void *alloca (size_t);
15372 char *p = (char *) alloca (1);
15378 if ac_fn_c_try_link
"$LINENO"; then :
15379 ac_cv_func_alloca_works
=yes
15381 ac_cv_func_alloca_works
=no
15383 rm -f core conftest.err conftest.
$ac_objext \
15384 conftest
$ac_exeext conftest.
$ac_ext
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15387 $as_echo "$ac_cv_func_alloca_works" >&6; }
15389 if test $ac_cv_func_alloca_works = yes; then
15391 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15394 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15395 # that cause trouble. Some versions do not even contain alloca or
15396 # contain a buggy version. If you still want to use their alloca,
15397 # use ar to extract alloca.o from them instead of compiling alloca.c.
15399 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
15401 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15405 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15406 if ${ac_cv_os_cray+:} false
; then :
15407 $as_echo_n "(cached) " >&6
15409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15410 /* end confdefs.h. */
15411 #if defined CRAY && ! defined CRAY2
15418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15419 $EGREP "webecray" >/dev
/null
2>&1; then :
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15428 $as_echo "$ac_cv_os_cray" >&6; }
15429 if test $ac_cv_os_cray = yes; then
15430 for ac_func
in _getb67 GETB67 getb67
; do
15431 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15432 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15433 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15435 cat >>confdefs.h
<<_ACEOF
15436 #define CRAY_STACKSEG_END $ac_func
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15446 $as_echo_n "checking stack direction for C alloca... " >&6; }
15447 if ${ac_cv_c_stack_direction+:} false
; then :
15448 $as_echo_n "(cached) " >&6
15450 if test "$cross_compiling" = yes; then :
15451 ac_cv_c_stack_direction
=0
15453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15454 /* end confdefs.h. */
15455 $ac_includes_default
15457 find_stack_direction (int *addr, int depth)
15459 int dir, dummy = 0;
15462 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15463 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15464 return dir + dummy;
15468 main (int argc, char **argv)
15470 return find_stack_direction (0, argc + !argv + 20) < 0;
15473 if ac_fn_c_try_run
"$LINENO"; then :
15474 ac_cv_c_stack_direction
=1
15476 ac_cv_c_stack_direction
=-1
15478 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15479 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15484 $as_echo "$ac_cv_c_stack_direction" >&6; }
15485 cat >>confdefs.h
<<_ACEOF
15486 #define STACK_DIRECTION $ac_cv_c_stack_direction
15493 # The cast to long int works around a bug in the HP C Compiler
15494 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15495 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15496 # This bug is HP SR number 8606223364.
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
15498 $as_echo_n "checking size of double... " >&6; }
15499 if ${ac_cv_sizeof_double+:} false
; then :
15500 $as_echo_n "(cached) " >&6
15502 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
15505 if test "$ac_cv_type_double" = yes; then
15506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15508 as_fn_error
77 "cannot compute sizeof (double)
15509 See \`config.log' for more details" "$LINENO" 5; }
15511 ac_cv_sizeof_double
=0
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
15517 $as_echo "$ac_cv_sizeof_double" >&6; }
15521 cat >>confdefs.h
<<_ACEOF
15522 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
15526 # The cast to long int works around a bug in the HP C Compiler
15527 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15528 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15529 # This bug is HP SR number 8606223364.
15530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
15531 $as_echo_n "checking size of long double... " >&6; }
15532 if ${ac_cv_sizeof_long_double+:} false
; then :
15533 $as_echo_n "(cached) " >&6
15535 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
15538 if test "$ac_cv_type_long_double" = yes; then
15539 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15540 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15541 as_fn_error
77 "cannot compute sizeof (long double)
15542 See \`config.log' for more details" "$LINENO" 5; }
15544 ac_cv_sizeof_long_double
=0
15549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
15550 $as_echo "$ac_cv_sizeof_long_double" >&6; }
15554 cat >>confdefs.h
<<_ACEOF
15555 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
15560 # Also AC_SUBST this variable for ffi.h.
15561 if test -z "$HAVE_LONG_DOUBLE"; then
15563 if test $ac_cv_sizeof_long_double != 0; then
15564 if test $HAVE_LONG_DOUBLE_VARIANT != 0; then
15566 $as_echo "#define HAVE_LONG_DOUBLE_VARIANT 1" >>confdefs.h
15570 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
15573 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15583 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15584 if ${ac_cv_c_bigendian+:} false
; then :
15585 $as_echo_n "(cached) " >&6
15587 ac_cv_c_bigendian
=unknown
15588 # See if we're dealing with a universal compiler.
15589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15590 /* end confdefs.h. */
15591 #ifndef __APPLE_CC__
15592 not a universal capable compiler
15597 if ac_fn_c_try_compile
"$LINENO"; then :
15599 # Check for potential -arch flags. It is not universal unless
15600 # there are at least two -arch flags with different values.
15603 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15604 if test -n "$ac_prev"; then
15606 i?
86 | x86_64 | ppc | ppc64
)
15607 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
15610 ac_cv_c_bigendian
=universal
15616 elif test "x$ac_word" = "x-arch"; then
15621 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15622 if test $ac_cv_c_bigendian = unknown
; then
15623 # See if sys/param.h defines the BYTE_ORDER macro.
15624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15625 /* end confdefs.h. */
15626 #include <sys/types.h>
15627 #include <sys/param.h>
15632 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15633 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15635 bogus endian macros
15642 if ac_fn_c_try_compile
"$LINENO"; then :
15643 # It does; now see whether it defined to BIG_ENDIAN or not.
15644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15645 /* end confdefs.h. */
15646 #include <sys/types.h>
15647 #include <sys/param.h>
15652 #if BYTE_ORDER != BIG_ENDIAN
15660 if ac_fn_c_try_compile
"$LINENO"; then :
15661 ac_cv_c_bigendian
=yes
15663 ac_cv_c_bigendian
=no
15665 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15667 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15669 if test $ac_cv_c_bigendian = unknown
; then
15670 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15672 /* end confdefs.h. */
15673 #include <limits.h>
15678 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15679 bogus endian macros
15686 if ac_fn_c_try_compile
"$LINENO"; then :
15687 # It does; now see whether it defined to _BIG_ENDIAN or not.
15688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15689 /* end confdefs.h. */
15690 #include <limits.h>
15695 #ifndef _BIG_ENDIAN
15703 if ac_fn_c_try_compile
"$LINENO"; then :
15704 ac_cv_c_bigendian
=yes
15706 ac_cv_c_bigendian
=no
15708 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15710 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15712 if test $ac_cv_c_bigendian = unknown
; then
15713 # Compile a test program.
15714 if test "$cross_compiling" = yes; then :
15715 # Try to guess by grepping values from an object file.
15716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15717 /* end confdefs.h. */
15718 short int ascii_mm[] =
15719 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15720 short int ascii_ii[] =
15721 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15722 int use_ascii (int i) {
15723 return ascii_mm[i] + ascii_ii[i];
15725 short int ebcdic_ii[] =
15726 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15727 short int ebcdic_mm[] =
15728 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15729 int use_ebcdic (int i) {
15730 return ebcdic_mm[i] + ebcdic_ii[i];
15737 return use_ascii (foo) == use_ebcdic (foo);
15742 if ac_fn_c_try_compile
"$LINENO"; then :
15743 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
15744 ac_cv_c_bigendian
=yes
15746 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
15747 if test "$ac_cv_c_bigendian" = unknown
; then
15748 ac_cv_c_bigendian
=no
15750 # finding both strings is unlikely to happen, but who knows?
15751 ac_cv_c_bigendian
=unknown
15755 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15758 /* end confdefs.h. */
15759 $ac_includes_default
15764 /* Are we little or big endian? From Harbison&Steele. */
15768 char c[sizeof (long int)];
15771 return u.c[sizeof (long int) - 1] == 1;
15777 if ac_fn_c_try_run
"$LINENO"; then :
15778 ac_cv_c_bigendian
=no
15780 ac_cv_c_bigendian
=yes
15782 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15783 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15789 $as_echo "$ac_cv_c_bigendian" >&6; }
15790 case $ac_cv_c_bigendian in #(
15792 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15798 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15802 as_fn_error $?
"unknown endianness
15803 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
15808 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
15809 if ${gcc_cv_as_cfi_pseudo_op+:} false
; then :
15810 $as_echo_n "(cached) " >&6
15813 gcc_cv_as_cfi_pseudo_op
=unknown
15814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15815 /* end confdefs.h. */
15816 asm (".cfi_startproc\n\t.cfi_endproc");
15825 if ac_fn_c_try_compile
"$LINENO"; then :
15826 gcc_cv_as_cfi_pseudo_op
=yes
15828 gcc_cv_as_cfi_pseudo_op
=no
15830 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
15834 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
15835 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes
; then
15837 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
15845 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
15846 if ${libffi_cv_as_sparc_ua_pcrel+:} false
; then :
15847 $as_echo_n "(cached) " >&6
15850 save_CFLAGS
="$CFLAGS"
15851 save_LDFLAGS
="$LDFLAGS"
15852 CFLAGS
="$CFLAGS -fpic"
15853 LDFLAGS
="$LDFLAGS -shared"
15854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15855 /* end confdefs.h. */
15856 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
15865 if ac_fn_c_try_link
"$LINENO"; then :
15866 libffi_cv_as_sparc_ua_pcrel
=yes
15868 libffi_cv_as_sparc_ua_pcrel
=no
15870 rm -f core conftest.err conftest.
$ac_objext \
15871 conftest
$ac_exeext conftest.
$ac_ext
15872 CFLAGS
="$save_CFLAGS"
15873 LDFLAGS
="$save_LDFLAGS"
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
15876 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
15877 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes
; then
15879 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
15883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
15884 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
15885 if ${libffi_cv_as_register_pseudo_op+:} false
; then :
15886 $as_echo_n "(cached) " >&6
15889 libffi_cv_as_register_pseudo_op
=unknown
15890 # Check if we have .register
15891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15892 /* end confdefs.h. */
15897 asm (".register %g2, #scratch");
15902 if ac_fn_c_try_compile
"$LINENO"; then :
15903 libffi_cv_as_register_pseudo_op
=yes
15905 libffi_cv_as_register_pseudo_op
=no
15907 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
15911 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
15912 if test "x$libffi_cv_as_register_pseudo_op" = xyes
; then
15914 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15921 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
15922 if ${libffi_cv_as_x86_pcrel+:} false
; then :
15923 $as_echo_n "(cached) " >&6
15926 libffi_cv_as_x86_pcrel
=no
15927 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
15928 if $CC $CFLAGS -c conftest.s
> /dev
/null
2>&1; then
15929 libffi_cv_as_x86_pcrel
=yes
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
15934 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
15935 if test "x$libffi_cv_as_x86_pcrel" = xyes
; then
15937 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler uses zarch features" >&5
15944 $as_echo_n "checking compiler uses zarch features... " >&6; }
15945 if ${libffi_cv_as_s390_zarch+:} false
; then :
15946 $as_echo_n "(cached) " >&6
15949 libffi_cv_as_s390_zarch
=no
15950 echo 'void foo(void) { bar(); bar(); }' > conftest.c
15951 if $CC $CFLAGS -S conftest.c
> /dev
/null
2>&1; then
15952 if grep -q brasl conftest.s
; then
15953 libffi_cv_as_s390_zarch
=yes
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_s390_zarch" >&5
15959 $as_echo "$libffi_cv_as_s390_zarch" >&6; }
15960 if test "x$libffi_cv_as_s390_zarch" = xyes
; then
15962 $as_echo "#define HAVE_AS_S390_ZARCH 1" >>confdefs.h
15968 # On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
15969 # Check whether --enable-pax_emutramp was given.
15970 if test "${enable_pax_emutramp+set}" = set; then :
15971 enableval
=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
15973 $as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
15979 FFI_EXEC_TRAMPOLINE_TABLE
=0
15981 *arm
*-apple-darwin* | aarch64-apple-darwin
*)
15982 FFI_EXEC_TRAMPOLINE_TABLE
=1
15984 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
15987 *-apple-darwin1* |
*-*-freebsd* |
*-*-kfreebsd* |
*-*-openbsd* |
*-pc-solaris*)
15989 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
15993 if test x
$FFI_EXEC_TRAMPOLINE_TABLE = x1
; then
15994 FFI_EXEC_TRAMPOLINE_TABLE_TRUE
=
15995 FFI_EXEC_TRAMPOLINE_TABLE_FALSE
='#'
15997 FFI_EXEC_TRAMPOLINE_TABLE_TRUE
='#'
15998 FFI_EXEC_TRAMPOLINE_TABLE_FALSE
=
16003 if test x
$TARGET = xX86_64
; then
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking toolchain supports unwind section type" >&5
16005 $as_echo_n "checking toolchain supports unwind section type... " >&6; }
16006 if ${libffi_cv_as_x86_64_unwind_section_type+:} false
; then :
16007 $as_echo_n "(cached) " >&6
16010 cat > conftest1.s
<< EOF
16015 .section .eh_frame,"a",@unwind
16019 cat > conftest2.c
<< EOF
16024 libffi_cv_as_x86_64_unwind_section_type
=no
16025 # we ensure that we can compile _and_ link an assembly file containing an @unwind section
16026 # since the compiler can support it and not the linker (ie old binutils)
16027 if $CC -Wa,--fatal-warnings $CFLAGS -c conftest1.s
> /dev
/null
2>&1 && \
16028 $CC conftest2.c conftest1.o
> /dev
/null
2>&1 ; then
16029 libffi_cv_as_x86_64_unwind_section_type
=yes
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
16034 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
16035 if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes
; then
16037 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
16042 if test "x$GCC" = "xyes"; then
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
16044 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
16045 if ${libffi_cv_ro_eh_frame+:} false
; then :
16046 $as_echo_n "(cached) " >&6
16049 libffi_cv_ro_eh_frame
=no
16050 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
16051 if $CC $CFLAGS -c -fpic -fexceptions -o conftest.o conftest.c
> /dev
/null
2>&1; then
16052 objdump
-h conftest.o
> conftest.dump
2>&1
16053 libffi_eh_frame_line
=`grep -n eh_frame conftest.dump | cut -d: -f 1`
16054 if test "x$libffi_eh_frame_line" != "x"; then
16055 libffi_test_line
=`expr $libffi_eh_frame_line + 1`p
16056 sed -n $libffi_test_line conftest.dump
> conftest.line
16057 if grep READONLY conftest.line
> /dev
/null
; then
16058 libffi_cv_ro_eh_frame
=yes
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
16066 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
16067 if test "x$libffi_cv_ro_eh_frame" = xyes
; then
16069 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
16072 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
16076 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
16081 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
16082 if ${libffi_cv_hidden_visibility_attribute+:} false
; then :
16083 $as_echo_n "(cached) " >&6
16086 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1 ; }' > conftest.c
16087 libffi_cv_hidden_visibility_attribute
=no
16088 if { ac_try
='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
16089 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16090 (eval $ac_try) 2>&5
16092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16093 test $ac_status = 0; }; }; then
16094 if grep '\.hidden.*foo' conftest.s
>/dev
/null
; then
16095 libffi_cv_hidden_visibility_attribute
=yes
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
16102 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
16103 if test $libffi_cv_hidden_visibility_attribute = yes; then
16105 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
16117 for i
in $SOURCES; do
16118 TARGET_OBJ
="${TARGET_OBJ} src/${TARGETDIR}/"`echo $i | sed 's/[cS]$/lo/'`
16125 # Check whether --enable-debug was given.
16126 if test "${enable_debug+set}" = set; then :
16127 enableval
=$enable_debug; if test "$enable_debug" = "yes"; then
16129 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
16134 if test "$enable_debug" = "yes"; then
16136 FFI_DEBUG_FALSE
='#'
16143 # Check whether --enable-structs was given.
16144 if test "${enable_structs+set}" = set; then :
16145 enableval
=$enable_structs; if test "$enable_structs" = "no"; then
16147 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
16152 if test "$enable_debug" = "yes"; then
16154 FFI_DEBUG_FALSE
='#'
16161 # Check whether --enable-raw-api was given.
16162 if test "${enable_raw_api+set}" = set; then :
16163 enableval
=$enable_raw_api; if test "$enable_raw_api" = "no"; then
16165 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
16171 # Check whether --enable-purify-safety was given.
16172 if test "${enable_purify_safety+set}" = set; then :
16173 enableval
=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
16175 $as_echo "#define USING_PURIFY 1" >>confdefs.h
16182 # Check whether --with-toolexeclibdir was given.
16183 if test "${with_toolexeclibdir+set}" = set; then :
16184 withval
=$with_toolexeclibdir; case ${with_toolexeclibdir} in
16188 with_toolexeclibdir
=`echo $with_toolexeclibdir | sed 's,/$,,'`
16192 with_toolexeclibdir
=no
16197 if test -n "$with_cross_host" &&
16198 test x
"$with_cross_host" != x
"no"; then
16199 toolexecdir
='$(exec_prefix)/$(target_alias)'
16200 case ${with_toolexeclibdir} in
16202 toolexeclibdir
='$(toolexecdir)/lib'
16205 toolexeclibdir
=${with_toolexeclibdir}
16209 toolexecdir
='$(libdir)/gcc-lib/$(target_alias)'
16210 toolexeclibdir
='$(libdir)'
16212 multi_os_directory
=`$CC -print-multi-os-directory`
16213 case $multi_os_directory in
16214 .
) ;; # Avoid trailing /.
16215 *) toolexeclibdir
=$toolexeclibdir/$multi_os_directory ;;
16220 if test "${multilib}" = "yes"; then
16221 multilib_arg
="--enable-multilib"
16226 # Check linker support.
16229 # Check whether --with-gnu-ld was given.
16230 if test "${with_gnu_ld+set}" = set; then :
16231 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
16237 if test "$GCC" = yes; then
16238 # Check if gcc -print-prog-name=ld gives a path.
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16240 $as_echo_n "checking for ld used by $CC... " >&6; }
16243 # gcc leaves a trailing carriage return which upsets mingw
16244 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16246 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
16249 # Accept absolute paths.
16251 re_direlt
='/[^/][^/]*/\.\./'
16252 # Canonicalize the pathname of ld
16253 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16254 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
16255 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16257 test -z "$LD" && LD
="$ac_prog"
16260 # If it fails, then pretend we aren't using GCC.
16264 # If it is relative, then search for the first ld in PATH.
16265 with_gnu_ld
=unknown
16268 elif test "$with_gnu_ld" = yes; then
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16270 $as_echo_n "checking for GNU ld... " >&6; }
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16273 $as_echo_n "checking for non-GNU ld... " >&6; }
16275 if ${lt_cv_path_LD+:} false
; then :
16276 $as_echo_n "(cached) " >&6
16278 if test -z "$LD"; then
16279 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
16280 for ac_dir
in $PATH; do
16282 test -z "$ac_dir" && ac_dir
=.
16283 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
16284 lt_cv_path_LD
="$ac_dir/$ac_prog"
16285 # Check to see if the program is GNU ld. I'd rather use --version,
16286 # but apparently some variants of GNU ld only accept -v.
16287 # Break only if it was the GNU/non-GNU ld that we prefer.
16288 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16289 *GNU
* |
*'with BFD'*)
16290 test "$with_gnu_ld" != no
&& break
16293 test "$with_gnu_ld" != yes && break
16300 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
16304 LD
="$lt_cv_path_LD"
16305 if test -n "$LD"; then
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16307 $as_echo "$LD" >&6; }
16309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16310 $as_echo "no" >&6; }
16312 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16314 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16315 if ${lt_cv_prog_gnu_ld+:} false
; then :
16316 $as_echo_n "(cached) " >&6
16318 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16319 case `$LD -v 2>&1 </dev/null` in
16320 *GNU
* |
*'with BFD'*)
16321 lt_cv_prog_gnu_ld
=yes
16324 lt_cv_prog_gnu_ld
=no
16328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16329 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16330 with_gnu_ld
=$lt_cv_prog_gnu_ld
16338 # If we're not using GNU ld, then there's no point in even trying these
16339 # tests. Check for that first. We should have already tested for gld
16340 # by now (in libtool), but require it now just to be safe...
16341 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS
=''
16342 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS
=''
16346 # The name set by libtool depends on the version of libtool. Shame on us
16347 # for depending on an impl detail, but c'est la vie. Older versions used
16348 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16349 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16350 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16351 # set (hence we're using an older libtool), then set it.
16352 if test x
${with_gnu_ld+set} != xset
; then
16353 if test x
${ac_cv_prog_gnu_ld+set} != xset
; then
16354 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16357 with_gnu_ld
=$ac_cv_prog_gnu_ld
16361 # Start by getting the version number. I think the libtool test already
16362 # does some of this, but throws away the result.
16363 libat_ld_is_gold
=no
16364 if $LD --version 2>/dev
/null |
grep 'GNU gold'> /dev
/null
2>&1; then
16365 libat_ld_is_gold
=yes
16368 ldver
=`$LD --version 2>/dev/null |
16369 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
16371 libat_gnu_ld_version
=`echo $ldver | \
16372 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16374 # Set --gc-sections.
16375 if test "$with_gnu_ld" = "notbroken"; then
16376 # GNU ld it is! Joy and bunny rabbits!
16378 # All these tests are for C++; save the language and the compiler flags.
16379 # Need to do this so that g++ won't try to link in libstdc++
16380 ac_test_CFLAGS
="${CFLAGS+set}"
16381 ac_save_CFLAGS
="$CFLAGS"
16382 CFLAGS
='-x c++ -Wl,--gc-sections'
16384 # Check for -Wl,--gc-sections
16385 # XXX This test is broken at the moment, as symbols required for linking
16386 # are now in libsupc++ (not built yet). In addition, this test has
16387 # cored on solaris in the past. In addition, --gc-sections doesn't
16388 # really work at the moment (keeps on discarding used sections, first
16389 # .eh_frame and now some of the glibc sections for iconv).
16390 # Bzzzzt. Thanks for playing, maybe next time.
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16392 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16393 if test "$cross_compiling" = yes; then :
16394 ac_sectionLDflags
=yes
16396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16397 /* end confdefs.h. */
16407 if ac_fn_c_try_run
"$LINENO"; then :
16408 ac_sectionLDflags
=yes
16410 ac_sectionLDflags
=no
16412 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16413 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16416 if test "$ac_test_CFLAGS" = set; then
16417 CFLAGS
="$ac_save_CFLAGS"
16419 # this is the suspicious part
16422 if test "$ac_sectionLDflags" = "yes"; then
16423 SECTION_LDFLAGS
="-Wl,--gc-sections $SECTION_LDFLAGS"
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16426 $as_echo "$ac_sectionLDflags" >&6; }
16429 # Set linker optimization flags.
16430 if test x
"$with_gnu_ld" = x
"yes"; then
16431 OPT_LDFLAGS
="-Wl,-O1 $OPT_LDFLAGS"
16439 # Check whether --enable-symvers was given.
16440 if test "${enable_symvers+set}" = set; then :
16441 enableval
=$enable_symvers;
16442 case "$enableval" in
16443 yes|no|gnu
*|sun
) ;;
16444 *) as_fn_error $?
"Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16453 # If we never went through the LIBAT_CHECK_LINKER_FEATURES macro, then we
16454 # don't know enough about $LD to do tricks...
16457 # Turn a 'yes' into a suitable default.
16458 if test x
$enable_symvers = xyes
; then
16459 # FIXME The following test is too strict, in theory.
16460 if test $enable_shared = no ||
test "x$LD" = x
; then
16463 if test $with_gnu_ld = yes ; then
16466 case ${target_os} in
16467 # Sun symbol versioning exists since Solaris 2.5.
16468 solaris2.
[5-9]* | solaris2.1
[0-9]*)
16469 enable_symvers
=sun
;;
16471 enable_symvers
=no
;;
16477 # Check if 'sun' was requested on non-Solaris 2 platforms.
16478 if test x
$enable_symvers = xsun
; then
16479 case ${target_os} in
16484 # Unlikely to work.
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16486 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16488 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16490 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16496 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16497 if test $enable_symvers != no
; then
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16499 $as_echo_n "checking for shared libgcc... " >&6; }
16500 ac_save_CFLAGS
="$CFLAGS"
16502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16503 /* end confdefs.h. */
16513 if ac_fn_c_try_link
"$LINENO"; then :
16514 libat_shared_libgcc
=yes
16516 libat_shared_libgcc
=no
16518 rm -f core conftest.err conftest.
$ac_objext \
16519 conftest
$ac_exeext conftest.
$ac_ext
16520 CFLAGS
="$ac_save_CFLAGS"
16521 if test $libat_shared_libgcc = no
; then
16522 cat > conftest.c
<<EOF
16523 int main (void) { return 0; }
16525 libat_libgcc_s_suffix
=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16526 -shared -shared-libgcc -o conftest.so \
16527 conftest.c -v 2>&1 >/dev/null \
16528 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16529 rm -f conftest.c conftest.so
16530 if test x
${libat_libgcc_s_suffix+set} = xset
; then
16531 CFLAGS
=" -lgcc_s$libat_libgcc_s_suffix"
16532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16533 /* end confdefs.h. */
16543 if ac_fn_c_try_link
"$LINENO"; then :
16544 libat_shared_libgcc
=yes
16546 rm -f core conftest.err conftest.
$ac_objext \
16547 conftest
$ac_exeext conftest.
$ac_ext
16548 CFLAGS
="$ac_save_CFLAGS"
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_shared_libgcc" >&5
16552 $as_echo "$libat_shared_libgcc" >&6; }
16555 # For GNU ld, we need at least this version. The format is described in
16556 # LIBAT_CHECK_LINKER_FEATURES above.
16557 libat_min_gnu_ld_version
=21400
16558 # XXXXXXXXXXX libat_gnu_ld_version=21390
16560 # Check to see if unspecified "yes" value can win, given results above.
16561 # Change "yes" into either "no" or a style name.
16562 if test $enable_symvers != no
&& test $libat_shared_libgcc = yes; then
16563 if test $with_gnu_ld = yes; then
16564 if test $libat_gnu_ld_version -ge $libat_min_gnu_ld_version ; then
16566 elif test $libat_ld_is_gold = yes ; then
16569 # The right tools, the right setup, but too old. Fallbacks?
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&5
16571 $as_echo "$as_me: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&2;}
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16573 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16575 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&5
16577 $as_echo "$as_me: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&2;}
16578 if test $libat_gnu_ld_version -ge 21200 ; then
16579 # Globbing fix is present, proper block support is not.
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16581 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16586 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16590 elif test $enable_symvers = sun
; then
16591 : All interesting versions of Sun ld support sun style symbol versioning.
16593 # just fail for now
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16595 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16597 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16599 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16601 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16605 if test $enable_symvers = gnu
; then
16607 $as_echo "#define LIBAT_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16611 if test $enable_symvers != no
; then
16612 LIBAT_BUILD_VERSIONED_SHLIB_TRUE
=
16613 LIBAT_BUILD_VERSIONED_SHLIB_FALSE
='#'
16615 LIBAT_BUILD_VERSIONED_SHLIB_TRUE
='#'
16616 LIBAT_BUILD_VERSIONED_SHLIB_FALSE
=
16619 if test $enable_symvers = gnu
; then
16620 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE
=
16621 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE
='#'
16623 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE
='#'
16624 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE
=
16627 if test $enable_symvers = sun
; then
16628 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE
=
16629 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE
='#'
16631 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE
='#'
16632 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE
=
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16636 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16639 # Determine what GCC version number to use in filesystem paths.
16641 get_gcc_base_ver
="cat"
16643 # Check whether --with-gcc-major-version-only was given.
16644 if test "${with_gcc_major_version_only+set}" = set; then :
16645 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
16646 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
16654 ac_config_commands
="$ac_config_commands include"
16656 ac_config_commands
="$ac_config_commands src"
16659 ac_config_links
="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
16662 ac_config_files
="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
16665 cat >confcache
<<\_ACEOF
16666 # This file is a shell script that caches the results of configure
16667 # tests run on this system so they can be shared between configure
16668 # scripts and configure runs, see configure's option --config-cache.
16669 # It is not useful on other systems. If it contains results you don't
16670 # want to keep, you may remove or edit it.
16672 # config.status only pays attention to the cache file if you give it
16673 # the --recheck option to rerun configure.
16675 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16676 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16677 # following values.
16681 # The following way of writing the cache mishandles newlines in values,
16682 # but we know of no workaround that is simple, portable, and efficient.
16683 # So, we kill variables containing newlines.
16684 # Ultrix sh set writes to stderr and can't be redirected directly,
16685 # and sets the high bit in the cache file unless we assign to the vars.
16687 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16688 eval ac_val
=\$
$ac_var
16692 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16693 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16696 _ | IFS | as_nl
) ;; #(
16697 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16698 *) { eval $ac_var=; unset $ac_var;} ;;
16704 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16705 *${as_nl}ac_space
=\
*)
16706 # `set' does not quote correctly, so add quotes: double-quote
16707 # substitution turns \\\\ into \\, and sed turns \\ into \.
16710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16713 # `set' quotes correctly as required by POSIX, so do not add quotes.
16714 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16723 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16725 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16727 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16728 if test -w "$cache_file"; then
16729 if test "x$cache_file" != "x/dev/null"; then
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16731 $as_echo "$as_me: updating cache $cache_file" >&6;}
16732 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
16733 cat confcache
>"$cache_file"
16735 case $cache_file in #(
16737 mv -f confcache
"$cache_file"$$
&&
16738 mv -f "$cache_file"$$
"$cache_file" ;; #(
16740 mv -f confcache
"$cache_file" ;;
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16746 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16751 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16752 # Let make expand exec_prefix.
16753 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16755 DEFS
=-DHAVE_CONFIG_H
16760 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16761 # 1. Remove the extension, and $U if already installed.
16762 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16763 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16764 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16765 # will be set to the directory where LIBOBJS objects are built.
16766 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16767 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16769 LIBOBJS
=$ac_libobjs
16771 LTLIBOBJS
=$ac_ltlibobjs
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16775 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16776 if test -n "$am_sleep_pid"; then
16777 # Hide warnings about reused PIDs.
16778 wait $am_sleep_pid 2>/dev
/null
16780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16781 $as_echo "done" >&6; }
16782 if test -n "$EXEEXT"; then
16784 am__EXEEXT_FALSE
='#'
16786 am__EXEEXT_TRUE
='#'
16790 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
16791 as_fn_error $?
"conditional \"BUILD_INFO\" was never defined.
16792 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16794 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
16795 as_fn_error $?
"conditional \"GENINSRC\" was never defined.
16796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16798 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16799 as_fn_error $?
"conditional \"AMDEP\" was never defined.
16800 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16802 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16803 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
16804 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16806 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16807 as_fn_error $?
"conditional \"am__fastdepCXX\" was never defined.
16808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16810 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
16811 as_fn_error $?
"conditional \"am__fastdepCCAS\" was never defined.
16812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16814 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16815 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
16816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16818 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16819 as_fn_error $?
"conditional \"TESTSUBDIR\" was never defined.
16820 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16823 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
16824 as_fn_error $?
"conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
16825 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16827 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
16828 as_fn_error $?
"conditional \"FFI_DEBUG\" was never defined.
16829 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16831 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
16832 as_fn_error $?
"conditional \"FFI_DEBUG\" was never defined.
16833 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16835 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_FALSE}"; then
16836 as_fn_error $?
"conditional \"LIBAT_BUILD_VERSIONED_SHLIB\" was never defined.
16837 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16839 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
16840 as_fn_error $?
"conditional \"LIBAT_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
16841 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16843 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
16844 as_fn_error $?
"conditional \"LIBAT_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
16845 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16848 : "${CONFIG_STATUS=./config.status}"
16850 ac_clean_files_save
=$ac_clean_files
16851 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16853 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16855 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16857 # Generated by $as_me.
16858 # Run this file to recreate the current configuration.
16859 # Compiler output produced by configure, useful for debugging
16860 # configure, is in config.log if it exists.
16863 ac_cs_recheck=false
16866 SHELL=\${CONFIG_SHELL-$SHELL}
16869 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
16870 ## -------------------- ##
16871 ## M4sh Initialization. ##
16872 ## -------------------- ##
16874 # Be more Bourne compatible
16875 DUALCASE
=1; export DUALCASE
# for MKS sh
16876 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
16879 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16880 # is contrary to our usage. Disable this feature.
16881 alias -g '${1+"$@"}'='"$@"'
16882 setopt NO_GLOB_SUBST
16884 case `(set -o) 2>/dev/null` in #(
16896 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16897 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16898 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16899 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16900 # Prefer a ksh shell builtin over an external printf program on Solaris,
16901 # but without wasting forks for bash or zsh.
16902 if test -z "$BASH_VERSION$ZSH_VERSION" \
16903 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16904 as_echo='print
-r --'
16905 as_echo_n='print
-rn --'
16906 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16907 as_echo='printf %s
\n'
16908 as_echo_n='printf %s
'
16910 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16911 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
16912 as_echo_n='/usr
/ucb
/echo -n'
16914 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16915 as_echo_n_body='eval
16919 expr "X$arg" : "X\\(.*\\)$as_nl";
16920 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16922 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
16924 export as_echo_n_body
16925 as_echo_n='sh
-c $as_echo_n_body as_echo
'
16927 export as_echo_body
16928 as_echo='sh
-c $as_echo_body as_echo
'
16931 # The user is always right.
16932 if test "${PATH_SEPARATOR+set}" != set; then
16934 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16935 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16942 # We need space, tab and new line, in precisely that order. Quoting is
16943 # there to prevent editors from complaining about space-tab.
16944 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16945 # splitting by setting IFS to empty value.)
16948 # Find who we are. Look in the path if we contain no directory separator.
16951 *[\\/]* ) as_myself=$0 ;;
16952 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16953 for as_dir in $PATH
16956 test -z "$as_dir" && as_dir=.
16957 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16963 # We did not find ourselves, most probably we were run as `sh COMMAND'
16964 # in which case we are not to be found in the path.
16965 if test "x$as_myself" = x
; then
16968 if test ! -f "$as_myself"; then
16969 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16973 # Unset variables that we do not need and which cause bugs (e.g. in
16974 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16975 # suppresses any "Segmentation fault" message there. '((' could
16976 # trigger a bug in pdksh 5.2.14.
16977 for as_var
in BASH_ENV ENV MAIL MAILPATH
16978 do eval test x\
${$as_var+set} = xset \
16979 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
16992 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
16995 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16996 # ----------------------------------------
16997 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16998 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16999 # script with STATUS, using 1 if that was 0.
17002 as_status
=$1; test $as_status -eq 0 && as_status
=1
17004 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
17005 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17007 $as_echo "$as_me: error: $2" >&2
17008 as_fn_exit
$as_status
17012 # as_fn_set_status STATUS
17013 # -----------------------
17014 # Set $? to STATUS, without forking.
17015 as_fn_set_status
()
17018 } # as_fn_set_status
17020 # as_fn_exit STATUS
17021 # -----------------
17022 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17026 as_fn_set_status
$1
17032 # Portably unset VAR.
17035 { eval $1=; unset $1;}
17037 as_unset
=as_fn_unset
17038 # as_fn_append VAR VALUE
17039 # ----------------------
17040 # Append the text in VALUE to the end of the definition contained in VAR. Take
17041 # advantage of any shell optimizations that allow amortized linear growth over
17042 # repeated appends, instead of the typical quadratic growth present in naive
17044 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
17045 eval 'as_fn_append ()
17056 # as_fn_arith ARG...
17057 # ------------------
17058 # Perform arithmetic evaluation on the ARGs, and store the result in the
17059 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17060 # must be portable across $(()) and expr.
17061 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
17062 eval 'as_fn_arith ()
17069 as_val
=`expr "$@" || test $? -eq 1`
17074 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17075 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17081 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17082 as_basename
=basename
17087 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
17093 as_me
=`$as_basename -- "$0" ||
17094 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17095 X"$0" : 'X\(//\)$' \| \
17096 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17098 sed '/^.*\/\([^/][^/]*\)\/*$/{
17112 # Avoid depending upon Character Ranges.
17113 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17114 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17115 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17116 as_cr_digits
='0123456789'
17117 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17119 ECHO_C
= ECHO_N
= ECHO_T
=
17120 case `echo -n x` in #(((((
17122 case `echo 'xy\c'` in
17123 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
17125 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
17132 rm -f conf$$ conf$$.exe conf$$.
file
17133 if test -d conf$$.dir
; then
17134 rm -f conf$$.dir
/conf$$.
file
17137 mkdir conf$$.dir
2>/dev
/null
17139 if (echo >conf$$.
file) 2>/dev
/null
; then
17140 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17142 # ... but there are two gotchas:
17143 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17144 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17145 # In both cases, we have to default to `cp -pR'.
17146 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
17148 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17156 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
17157 rmdir conf$$.dir
2>/dev
/null
17162 # Create "$as_dir" as a directory, including parents if necessary.
17167 -*) as_dir
=.
/$as_dir;;
17169 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
17173 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17174 *) as_qdir
=$as_dir;;
17176 as_dirs
="'$as_qdir' $as_dirs"
17177 as_dir
=`$as_dirname -- "$as_dir" ||
17178 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17179 X"$as_dir" : 'X\(//\)[^/]' \| \
17180 X"$as_dir" : 'X\(//\)$' \| \
17181 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17182 $as_echo X"$as_dir" |
17183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17187 /^X\(\/\/\)[^/].*/{
17200 test -d "$as_dir" && break
17202 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
17203 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
17207 if mkdir
-p .
2>/dev
/null
; then
17208 as_mkdir_p
='mkdir -p "$as_dir"'
17210 test -d .
/-p && rmdir .
/-p
17215 # as_fn_executable_p FILE
17216 # -----------------------
17217 # Test if FILE is an executable regular file.
17218 as_fn_executable_p
()
17220 test -f "$1" && test -x "$1"
17221 } # as_fn_executable_p
17222 as_test_x
='test -x'
17223 as_executable_p
=as_fn_executable_p
17225 # Sed expression to map a string onto a valid CPP name.
17226 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17228 # Sed expression to map a string onto a valid variable name.
17229 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17233 ## ----------------------------------- ##
17234 ## Main body of $CONFIG_STATUS script. ##
17235 ## ----------------------------------- ##
17237 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
17239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17240 # Save the log message, to keep $0 and so on meaningful, and to
17241 # report actual input values of CONFIG_FILES etc. instead of their
17242 # values after options handling.
17244 This file was extended by libffi $as_me 3.99999, which was
17245 generated by GNU Autoconf 2.69. Invocation command line was
17247 CONFIG_FILES = $CONFIG_FILES
17248 CONFIG_HEADERS = $CONFIG_HEADERS
17249 CONFIG_LINKS = $CONFIG_LINKS
17250 CONFIG_COMMANDS = $CONFIG_COMMANDS
17253 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17258 case $ac_config_files in *"
17259 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
17262 case $ac_config_headers in *"
17263 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
17267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17268 # Files that config.status was made for.
17269 config_files="$ac_config_files"
17270 config_headers="$ac_config_headers"
17271 config_links="$ac_config_links"
17272 config_commands="$ac_config_commands"
17276 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17278 \`$as_me' instantiates files and other configuration actions
17279 from templates according to the current configuration. Unless the files
17280 and actions are specified as TAGs, all are instantiated by default.
17282 Usage: $0 [OPTION]... [TAG]...
17284 -h, --help print this help, then exit
17285 -V, --version print version number and configuration settings, then exit
17286 --config print configuration, then exit
17287 -q, --quiet, --silent
17288 do not print progress messages
17289 -d, --debug don't remove temporary files
17290 --recheck update $as_me by reconfiguring in the same conditions
17291 --file=FILE[:TEMPLATE]
17292 instantiate the configuration file FILE
17293 --header=FILE[:TEMPLATE]
17294 instantiate the configuration header FILE
17296 Configuration files:
17299 Configuration headers:
17302 Configuration links:
17305 Configuration commands:
17308 Report bugs to <http://github.com/atgreen/libffi/issues>."
17311 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17312 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17314 libffi config.status 3.99999
17315 configured by $0, generated by GNU Autoconf 2.69,
17316 with options \\"\$ac_cs_config\\"
17318 Copyright (C) 2012 Free Software Foundation, Inc.
17319 This config.status script is free software; the Free Software Foundation
17320 gives unlimited permission to copy, distribute and modify it."
17327 test -n "\$AWK" || AWK=awk
17330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17331 # The default lists apply if the user does not specify any file.
17337 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17338 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
17342 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17354 # Handling of the options.
17355 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17357 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
17358 $as_echo "$ac_cs_version"; exit ;;
17359 --config |
--confi |
--conf |
--con |
--co |
--c )
17360 $as_echo "$ac_cs_config"; exit ;;
17361 --debug |
--debu |
--deb |
--de |
--d |
-d )
17363 --file |
--fil |
--fi |
--f )
17366 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17367 '') as_fn_error $?
"missing file argument" ;;
17369 as_fn_append CONFIG_FILES
" '$ac_optarg'"
17370 ac_need_defaults
=false
;;
17371 --header |
--heade |
--head |
--hea )
17374 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17376 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
17377 ac_need_defaults
=false
;;
17379 # Conflict between --help and --header
17380 as_fn_error $?
"ambiguous option: \`$1'
17381 Try \`$0 --help' for more information.";;
17382 --help |
--hel |
-h )
17383 $as_echo "$ac_cs_usage"; exit ;;
17384 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17385 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17388 # This is an error.
17389 -*) as_fn_error $?
"unrecognized option: \`$1'
17390 Try \`$0 --help' for more information." ;;
17392 *) as_fn_append ac_config_targets
" $1"
17393 ac_need_defaults
=false
;;
17399 ac_configure_extra_args
=
17401 if $ac_cs_silent; then
17403 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17408 if \$ac_cs_recheck; then
17409 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17411 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17412 CONFIG_SHELL='$SHELL'
17413 export CONFIG_SHELL
17418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17422 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17423 ## Running $as_me. ##
17429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17437 with_multisubdir="$with_multisubdir"
17438 with_multisrctop="$with_multisrctop"
17439 with_target_subdir="$with_target_subdir"
17440 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17441 multi_basedir="$multi_basedir"
17442 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17445 GFORTRAN="$GFORTRAN"
17447 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17450 # The HP-UX ksh and POSIX shell print the target directory to stdout
17451 # if CDPATH is set.
17452 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17454 sed_quote_subst='$sed_quote_subst'
17455 double_quote_subst='$double_quote_subst'
17456 delay_variable_subst='$delay_variable_subst'
17457 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17458 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17459 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17460 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17461 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17462 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17463 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17464 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17465 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17466 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17467 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17468 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17469 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17470 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17471 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17472 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17473 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17474 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17475 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17476 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17477 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17478 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17479 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17480 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17481 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17482 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17483 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17484 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17485 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17486 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17487 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17488 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17489 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17490 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17491 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17492 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17493 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17494 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17495 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17496 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17497 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17498 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17499 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17500 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17501 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17502 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17503 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17504 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17505 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"`'
17506 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17507 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17508 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17509 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17510 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17511 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17512 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17513 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17514 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17515 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17516 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17517 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17518 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17519 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17520 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17521 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17522 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17523 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17524 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17525 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17526 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17527 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17528 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17529 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17530 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17531 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17532 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17533 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17534 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17535 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17536 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17537 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17538 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17539 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17540 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17541 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17542 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17543 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17544 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17545 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17546 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17547 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17548 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17549 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17550 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17551 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17552 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17553 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17554 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17555 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17556 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17557 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17558 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17559 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17560 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17561 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17562 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17563 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17564 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17565 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17566 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17567 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17568 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17569 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17570 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17571 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17572 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17573 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17574 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17575 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17576 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17577 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17578 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17579 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17580 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17581 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17582 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17583 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17584 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17585 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17586 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17587 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17588 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17589 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17590 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17591 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17592 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17593 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17594 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17595 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17596 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17597 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17598 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17599 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17600 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17601 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17602 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17603 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17604 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17605 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17606 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17607 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17608 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17609 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17610 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17611 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17612 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17613 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17614 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17615 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17616 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17617 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17618 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17619 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17620 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17621 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17622 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17623 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17624 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17625 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17626 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17627 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17628 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17629 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17630 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17631 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17634 LTCFLAGS='$LTCFLAGS'
17635 compiler='$compiler_DEFAULT'
17637 # A function that is used when there is no print builtin or printf.
17638 func_fallback_echo ()
17640 eval 'cat <<_LTECHO_EOF
17645 # Quote evaled strings.
17659 deplibs_check_method \
17668 lt_cv_sys_global_symbol_pipe \
17669 lt_cv_sys_global_symbol_to_cdecl \
17670 lt_cv_sys_global_symbol_to_c_name_address \
17671 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17672 lt_prog_compiler_no_builtin_flag \
17673 lt_prog_compiler_wl \
17674 lt_prog_compiler_pic \
17675 lt_prog_compiler_static \
17676 lt_cv_prog_compiler_c_o \
17684 export_dynamic_flag_spec \
17685 whole_archive_flag_spec \
17686 compiler_needs_object \
17688 allow_undefined_flag \
17689 no_undefined_flag \
17690 hardcode_libdir_flag_spec \
17691 hardcode_libdir_flag_spec_ld \
17692 hardcode_libdir_separator \
17697 variables_saved_for_relink \
17699 library_names_spec \
17701 install_override_mode \
17705 compiler_lib_search_dirs \
17710 compiler_lib_search_path \
17714 lt_prog_compiler_no_builtin_flag_CXX \
17715 lt_prog_compiler_wl_CXX \
17716 lt_prog_compiler_pic_CXX \
17717 lt_prog_compiler_static_CXX \
17718 lt_cv_prog_compiler_c_o_CXX \
17719 export_dynamic_flag_spec_CXX \
17720 whole_archive_flag_spec_CXX \
17721 compiler_needs_object_CXX \
17723 allow_undefined_flag_CXX \
17724 no_undefined_flag_CXX \
17725 hardcode_libdir_flag_spec_CXX \
17726 hardcode_libdir_flag_spec_ld_CXX \
17727 hardcode_libdir_separator_CXX \
17728 fix_srcfile_path_CXX \
17729 exclude_expsyms_CXX \
17730 include_expsyms_CXX \
17731 file_list_spec_CXX \
17732 compiler_lib_search_dirs_CXX \
17733 predep_objects_CXX \
17734 postdep_objects_CXX \
17737 compiler_lib_search_path_CXX; do
17738 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17739 *[\\\\\\\`\\"\\\$]*)
17740 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17743 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17748 # Double-quote double-evaled strings.
17749 for var in reload_cmds \
17750 old_postinstall_cmds \
17751 old_postuninstall_cmds \
17753 extract_expsyms_cmds \
17754 old_archive_from_new_cmds \
17755 old_archive_from_expsyms_cmds \
17757 archive_expsym_cmds \
17759 module_expsym_cmds \
17760 export_symbols_cmds \
17763 postuninstall_cmds \
17765 sys_lib_search_path_spec \
17766 sys_lib_dlsearch_path_spec \
17768 old_archive_cmds_CXX \
17769 old_archive_from_new_cmds_CXX \
17770 old_archive_from_expsyms_cmds_CXX \
17772 archive_expsym_cmds_CXX \
17774 module_expsym_cmds_CXX \
17775 export_symbols_cmds_CXX \
17776 prelink_cmds_CXX; do
17777 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17778 *[\\\\\\\`\\"\\\$]*)
17779 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17782 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17787 ac_aux_dir='$ac_aux_dir'
17788 xsi_shell='$xsi_shell'
17789 lt_shell_append='$lt_shell_append'
17791 # See if we are running on zsh, and set the options which allow our
17792 # commands through without removal of \ escapes INIT.
17793 if test -n "\${ZSH_VERSION+set}" ; then
17794 setopt NO_GLOB_SUBST
17800 TIMESTAMP='$TIMESTAMP'
17808 TARGETDIR="$TARGETDIR"
17812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17814 # Handling of arguments.
17815 for ac_config_target
in $ac_config_targets
17817 case $ac_config_target in
17818 "fficonfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS fficonfig.h" ;;
17819 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
17820 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
17821 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
17822 "include") CONFIG_COMMANDS
="$CONFIG_COMMANDS include" ;;
17823 "src") CONFIG_COMMANDS
="$CONFIG_COMMANDS src" ;;
17824 "include/ffitarget.h") CONFIG_LINKS
="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
17825 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
17826 "include/ffi.h") CONFIG_FILES
="$CONFIG_FILES include/ffi.h" ;;
17827 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
17828 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
17829 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
17830 "libffi.pc") CONFIG_FILES
="$CONFIG_FILES libffi.pc" ;;
17832 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17837 # If the user did not use the arguments to specify the items to instantiate,
17838 # then the envvar interface is used. Set only those that are not.
17839 # We use the long form for the default assignment because of an extremely
17840 # bizarre bug on SunOS 4.1.3.
17841 if $ac_need_defaults; then
17842 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17843 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17844 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
17845 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17848 # Have a temporary directory for convenience. Make it in the build tree
17849 # simply because there is no reason against having it here, and in addition,
17850 # creating and moving files from /tmp can sometimes cause problems.
17851 # Hook for its removal unless debugging.
17852 # Note that there is a small window in which the directory will not be cleaned:
17853 # after its creation but before its name has been assigned to `$tmp'.
17857 trap 'exit_status=$?
17858 : "${ac_tmp:=$tmp}"
17859 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17861 trap 'as_fn_exit 1' 1 2 13 15
17863 # Create a (secure) tmp directory for tmp files.
17866 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17870 tmp
=.
/conf$$
-$RANDOM
17871 (umask 077 && mkdir
"$tmp")
17872 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
17875 # Set up the scripts for CONFIG_FILES section.
17876 # No need to generate them if there are no CONFIG_FILES.
17877 # This happens for instance with `./config.status config.h'.
17878 if test -n "$CONFIG_FILES"; then
17881 ac_cr
=`echo X | tr X '\015'`
17882 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17883 # But we know of no other shell where ac_cr would be empty at this
17884 # point, so we can use a bashism as a fallback.
17885 if test "x$ac_cr" = x
; then
17886 eval ac_cr
=\$
\'\\r
\'
17888 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17889 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17892 ac_cs_awk_cr
=$ac_cr
17895 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17900 echo "cat >conf$$subs.awk <<_ACEOF" &&
17901 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17903 } >conf$$subs.sh ||
17904 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17905 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17907 for ac_last_try in false false false false false :; do
17908 . ./conf$$subs.sh ||
17909 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17911 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
17912 if test $ac_delim_n = $ac_delim_num; then
17914 elif $ac_last_try; then
17915 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17917 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17920 rm -f conf$$subs.sh
17922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17923 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
17927 s/^/S["/; s
/!.
*/"]=/
17937 s/\(.\{148\}\)..*/\1/
17939 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
17944 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17951 s/\(.\{148\}\)..*/\1/
17953 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
17957 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17962 ' <conf$$subs.awk | sed '
17967 ' >>$CONFIG_STATUS || ac_write_fail=1
17968 rm -f conf$$subs.awk
17969 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17971 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
17972 for (key in S) S_is_set[key] = 1
17978 nfields = split(line, field, "@
")
17980 len = length(field[1])
17981 for (i = 2; i < nfields; i++) {
17983 keylen = length(key)
17984 if (S_is_set[key]) {
17986 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17987 len += length(value) + length(field[++i])
17998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17999 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18000 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18003 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
18004 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
18007 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18008 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
18009 # trailing colons and then remove the whole line if VPATH becomes empty
18010 # (actually we leave an empty line to preserve line numbers).
18011 if test "x
$srcdir" = x.; then
18012 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18031 fi # test -n "$CONFIG_FILES"
18033 # Set up the scripts for CONFIG_HEADERS section.
18034 # No need to generate them if there are no CONFIG_HEADERS.
18035 # This happens for instance with `./config.status Makefile'.
18036 if test -n "$CONFIG_HEADERS"; then
18037 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
18041 # Transform confdefs.h into an awk script `defines.awk', embedded as
18042 # here-document in config.status, that substitutes the proper values into
18043 # config.h.in to produce config.h.
18045 # Create a delimiter string that does not exist in confdefs.h, to ease
18046 # handling of long lines.
18048 for ac_last_try in false false :; do
18049 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
18050 if test -z "$ac_tt"; then
18052 elif $ac_last_try; then
18053 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
18055 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18059 # For the awk script, D is an array of macro values keyed by name,
18060 # likewise P contains macro parameters if any. Preserve backslash
18061 # newline sequences.
18063 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18065 s/.\{148\}/&'"$ac_delim"'/g
18068 s/^[ ]*#[ ]*define[ ][ ]*/ /
18075 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18077 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18081 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18082 D["\
1"]=" \
3\\\\\\n
"\\/p
18084 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18089 s/.\{148\}/&'"$ac_delim"'/g
18094 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18097 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18099 ' <confdefs.h | sed '
18100 s/'"$ac_delim"'/"\\\
18101 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18103 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18104 for (key in D) D_is_set[key] = 1
18107 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18109 split(line, arg, " ")
18110 if (arg[1] == "#") {
18114 defundef
= substr
(arg
[1], 2)
18117 split(mac1
, mac2
, "(") #)
18119 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18120 if (D_is_set
[macro
]) {
18121 # Preserve the white space surrounding the "#".
18122 print prefix
"define", macro P
[macro
] D
[macro
]
18125 # Replace #undef with comments. This is necessary, for example,
18126 # in the case of _POSIX_SOURCE, which is predefined and required
18127 # on some systems where configure will not decide to define it.
18128 if (defundef
== "undef") {
18129 print
"/*", prefix defundef
, macro
, "*/"
18137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18138 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
18139 fi # test -n "$CONFIG_HEADERS"
18142 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18147 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18149 case $ac_mode$ac_tag in
18151 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
18152 :[FH
]-) ac_tag
=-:-;;
18153 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18170 -) ac_f
="$ac_tmp/stdin";;
18171 *) # Look for the file first in the build tree, then in the source tree
18172 # (if the path is not absolute). The absolute path cannot be DOS-style,
18173 # because $ac_f cannot contain `:'.
18177 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18179 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18181 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18182 as_fn_append ac_file_inputs
" '$ac_f'"
18185 # Let's still pretend it is `configure' which instantiates (i.e., don't
18186 # use $as_me), people would be surprised to read:
18187 # /* config.h. Generated by config.status. */
18188 configure_input
='Generated from '`
18189 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18191 if test x
"$ac_file" != x-
; then
18192 configure_input
="$ac_file. $configure_input"
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18194 $as_echo "$as_me: creating $ac_file" >&6;}
18196 # Neutralize special characters interpreted by sed in replacement strings.
18197 case $configure_input in #(
18198 *\
&* |
*\|
* |
*\\* )
18199 ac_sed_conf_input
=`$as_echo "$configure_input" |
18200 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18201 *) ac_sed_conf_input
=$configure_input;;
18205 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
18206 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
18211 ac_dir
=`$as_dirname -- "$ac_file" ||
18212 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18213 X"$ac_file" : 'X\(//\)[^/]' \| \
18214 X"$ac_file" : 'X\(//\)$' \| \
18215 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18216 $as_echo X"$ac_file" |
18217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18221 /^X\(\/\/\)[^/].*/{
18234 as_dir
="$ac_dir"; as_fn_mkdir_p
18238 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18240 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18241 # A ".." for each directory in $ac_dir_suffix.
18242 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18243 case $ac_top_builddir_sub in
18244 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18245 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18248 ac_abs_top_builddir
=$ac_pwd
18249 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18250 # for backward compatibility:
18251 ac_top_builddir
=$ac_top_build_prefix
18254 .
) # We are building in place.
18256 ac_top_srcdir
=$ac_top_builddir_sub
18257 ac_abs_top_srcdir
=$ac_pwd ;;
18258 [\\/]* | ?
:[\\/]* ) # Absolute name.
18259 ac_srcdir
=$srcdir$ac_dir_suffix;
18260 ac_top_srcdir
=$srcdir
18261 ac_abs_top_srcdir
=$srcdir ;;
18262 *) # Relative name.
18263 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18264 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18265 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18267 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18277 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18278 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
18280 ac_MKDIR_P
=$MKDIR_P
18282 [\\/$
]* | ?
:[\\/]* ) ;;
18283 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
18287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18288 # If the template does not know about datarootdir, expand it.
18289 # FIXME: This hack should be removed a few years after 2.60.
18290 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18301 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18302 *datarootdir
*) ac_datarootdir_seen
=yes;;
18303 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18305 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18308 ac_datarootdir_hack='
18309 s&@datadir@&$datadir&g
18310 s&@docdir@&$docdir&g
18311 s&@infodir@&$infodir&g
18312 s&@localedir@&$localedir&g
18313 s&@mandir@&$mandir&g
18314 s&\\\${datarootdir}&$datarootdir&g' ;;
18318 # Neutralize VPATH when `$srcdir' = `.'.
18319 # Shell code in configure.ac might set extrasub.
18320 # FIXME: do we really want to maintain this feature?
18321 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18322 ac_sed_extra="$ac_vpsub
18325 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18327 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18328 s|@configure_input@|
$ac_sed_conf_input|
;t t
18329 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
18330 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
18331 s
&@srcdir@
&$ac_srcdir&;t t
18332 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
18333 s
&@top_srcdir@
&$ac_top_srcdir&;t t
18334 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
18335 s
&@builddir@
&$ac_builddir&;t t
18336 s
&@abs_builddir@
&$ac_abs_builddir&;t t
18337 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
18338 s
&@INSTALL@
&$ac_INSTALL&;t t
18339 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
18340 $ac_datarootdir_hack
18342 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
18343 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
18345 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18346 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
18347 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18348 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
18350 which seems to be undefined. Please make sure it is defined" >&5
18351 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
18352 which seems to be undefined. Please make sure it is defined" >&2;}
18354 rm -f "$ac_tmp/stdin"
18356 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18357 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18359 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18365 if test x"$ac_file" != x-; then
18367 $as_echo "/* $configure_input */" \
18368 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18369 } >"$ac_tmp/config.h" \
18370 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18371 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18373 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18376 mv "$ac_tmp/config.h" "$ac_file" \
18377 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18380 $as_echo "/* $configure_input */" \
18381 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18382 || as_fn_error $? "could not create -" "$LINENO" 5
18384 # Compute "$ac_file"'s index
in $config_headers.
18387 for _am_header
in $config_headers :; do
18388 case $_am_header in
18389 $_am_arg |
$_am_arg:* )
18392 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
18395 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18396 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18397 X"$_am_arg" : 'X\(//\)[^/]' \| \
18398 X"$_am_arg" : 'X\(//\)$' \| \
18399 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18400 $as_echo X"$_am_arg" |
18401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18405 /^X\(\/\/\)[^/].*/{
18417 s/.*/./; q'`/stamp-h
$_am_stamp_count
18424 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
18427 # Prefer the file from the source tree if names are identical.
18428 if test "$ac_source" = "$ac_file" ||
test ! -r "$ac_source"; then
18429 ac_source
=$srcdir/$ac_source
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
18433 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
18435 if test ! -r "$ac_source"; then
18436 as_fn_error $?
"$ac_source: file not found" "$LINENO" 5
18440 # Try a relative symlink, then a hard link, then a copy.
18442 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$ac_source ;;
18443 *) ac_rel_source
=$ac_top_build_prefix$ac_source ;;
18445 ln -s "$ac_rel_source" "$ac_file" 2>/dev
/null ||
18446 ln "$ac_source" "$ac_file" 2>/dev
/null ||
18447 cp -p "$ac_source" "$ac_file" ||
18448 as_fn_error $?
"cannot link or copy $ac_source to $ac_file" "$LINENO" 5
18451 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18452 $as_echo "$as_me: executing $ac_file commands" >&6;}
18457 case $ac_file$ac_mode in
18459 # Only add multilib support code if we just rebuilt the top-level
18461 case " $CONFIG_FILES " in
18463 ac_file
=Makefile .
${multi_basedir}/config-ml.
in
18466 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
18467 # Older Autoconf quotes --file arguments for eval, but not when files
18468 # are listed without --file. Let's play safe and only enable the eval
18469 # if we detect the quoting.
18470 case $CONFIG_FILES in
18471 *\'*) eval set x
"$CONFIG_FILES" ;;
18472 *) set x
$CONFIG_FILES ;;
18477 # Strip MF so we end up with the name of the file.
18478 mf
=`echo "$mf" | sed -e 's/:.*$//'`
18479 # Check whether this is an Automake generated Makefile or not.
18480 # We used to match only the files named 'Makefile.in', but
18481 # some people rename them; so instead we look at the file content.
18482 # Grep'ing the first line is not enough: some people post-process
18483 # each Makefile.in and add a new line on top of each file to say so.
18484 # Grep'ing the whole file is not good either: AIX grep has a line
18485 # limit of 2048, but all sed's we know have understand at least 4000.
18486 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
18487 dirpart
=`$as_dirname -- "$mf" ||
18488 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18489 X"$mf" : 'X\(//\)[^/]' \| \
18490 X"$mf" : 'X\(//\)$' \| \
18491 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18497 /^X\(\/\/\)[^/].*/{
18513 # Extract the definition of DEPDIR, am__include, and am__quote
18514 # from the Makefile without running 'make'.
18515 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
18516 test -z "$DEPDIR" && continue
18517 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
18518 test -z "$am__include" && continue
18519 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
18520 # Find all dependency output files, they are included files with
18521 # $(DEPDIR) in their names. We invoke sed twice because it is the
18522 # simplest approach to changing $(DEPDIR) to its actual value in the
18524 for file in `sed -n "
18525 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18526 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18527 # Make sure the directory exists.
18528 test -f "$dirpart/$file" && continue
18529 fdir
=`$as_dirname -- "$file" ||
18530 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18531 X"$file" : 'X\(//\)[^/]' \| \
18532 X"$file" : 'X\(//\)$' \| \
18533 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18534 $as_echo X"$file" |
18535 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18539 /^X\(\/\/\)[^/].*/{
18552 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
18553 # echo "creating $dirpart/$file"
18554 echo '# dummy' > "$dirpart/$file"
18561 # See if we are running on zsh, and set the options which allow our
18562 # commands through without removal of \ escapes.
18563 if test -n "${ZSH_VERSION+set}" ; then
18564 setopt NO_GLOB_SUBST
18567 cfgfile
="${ofile}T"
18568 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18571 cat <<_LT_EOF >> "$cfgfile"
18574 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18575 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18576 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18577 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18579 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18580 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18581 # Written by Gordon Matzigkeit, 1996
18583 # This file is part of GNU Libtool.
18585 # GNU Libtool is free software; you can redistribute it and/or
18586 # modify it under the terms of the GNU General Public License as
18587 # published by the Free Software Foundation; either version 2 of
18588 # the License, or (at your option) any later version.
18590 # As a special exception to the GNU General Public License,
18591 # if you distribute this file as part of a program or library that
18592 # is built using GNU Libtool, you may include this file under the
18593 # same distribution terms that you use for the rest of that program.
18595 # GNU Libtool is distributed in the hope that it will be useful,
18596 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18597 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18598 # GNU General Public License for more details.
18600 # You should have received a copy of the GNU General Public License
18601 # along with GNU Libtool; see the file COPYING. If not, a copy
18602 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18603 # obtained by writing to the Free Software Foundation, Inc.,
18604 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18607 # The names of the tagged configurations supported by this script.
18608 available_tags="CXX "
18610 # ### BEGIN LIBTOOL CONFIG
18612 # Which release of libtool.m4 was used?
18613 macro_version=$macro_version
18614 macro_revision=$macro_revision
18616 # Whether or not to build shared libraries.
18617 build_libtool_libs=$enable_shared
18619 # Whether or not to build static libraries.
18620 build_old_libs=$enable_static
18622 # What type of objects to build.
18625 # Whether or not to optimize for fast installation.
18626 fast_install=$enable_fast_install
18628 # Shell to use when invoking shell scripts.
18631 # An echo program that protects backslashes.
18635 host_alias=$host_alias
18639 # The build system.
18640 build_alias=$build_alias
18644 # A sed program that does not truncate output.
18647 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18648 Xsed="\$SED -e 1s/^X//"
18650 # A grep program that handles long lines.
18656 # A literal string matcher.
18659 # A BSD- or MS-compatible name lister.
18662 # Whether we need soft or hard links.
18665 # What is the maximum length of a command?
18666 max_cmd_len=$max_cmd_len
18668 # Object file suffix (normally "o").
18671 # Executable file suffix (normally "").
18674 # whether the shell understands "unset".
18677 # turn spaces into newlines.
18680 # turn newlines into spaces.
18683 # An object symbol dumper.
18684 OBJDUMP=$lt_OBJDUMP
18686 # Method to check whether dependent libraries are shared objects.
18687 deplibs_check_method=$lt_deplibs_check_method
18689 # Command to use when deplibs_check_method == "file_magic".
18690 file_magic_cmd=$lt_file_magic_cmd
18694 AR_FLAGS=$lt_AR_FLAGS
18696 # A symbol stripping program.
18699 # Commands used to install an old-style archive.
18701 old_postinstall_cmds=$lt_old_postinstall_cmds
18702 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18704 # Whether to use a lock for old archive extraction.
18705 lock_old_archive_extraction=$lock_old_archive_extraction
18710 # LTCC compiler flags.
18711 LTCFLAGS=$lt_CFLAGS
18713 # Take the output of nm and produce a listing of raw symbols and C names.
18714 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18716 # Transform the output of nm in a proper C declaration.
18717 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18719 # Transform the output of nm in a C name address pair.
18720 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18722 # Transform the output of nm in a C name address pair when lib prefix is needed.
18723 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18725 # The name of the directory that contains temporary libtool files.
18728 # Used to examine libraries when file_magic_cmd begins with "file".
18729 MAGIC_CMD=$MAGIC_CMD
18731 # Must we lock files when doing compilation?
18732 need_locks=$lt_need_locks
18734 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18735 DSYMUTIL=$lt_DSYMUTIL
18737 # Tool to change global to local symbols on Mac OS X.
18740 # Tool to manipulate fat objects and archives on Mac OS X.
18743 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18746 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18747 OTOOL64=$lt_OTOOL64
18749 # Old archive suffix (normally "a").
18752 # Shared library suffix (normally ".so").
18753 shrext_cmds=$lt_shrext_cmds
18755 # The commands to extract the exported symbol list from a shared archive.
18756 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18758 # Variables whose values should be saved in libtool wrapper scripts and
18759 # restored at link time.
18760 variables_saved_for_relink=$lt_variables_saved_for_relink
18762 # Do we need the "lib" prefix for modules?
18763 need_lib_prefix=$need_lib_prefix
18765 # Do we need a version for libraries?
18766 need_version=$need_version
18768 # Library versioning type.
18769 version_type=$version_type
18771 # Shared library runtime path variable.
18772 runpath_var=$runpath_var
18774 # Shared library path variable.
18775 shlibpath_var=$shlibpath_var
18777 # Is shlibpath searched before the hard-coded library search path?
18778 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18780 # Format of library name prefix.
18781 libname_spec=$lt_libname_spec
18783 # List of archive names. First name is the real one, the rest are links.
18784 # The last name is the one that the linker finds with -lNAME
18785 library_names_spec=$lt_library_names_spec
18787 # The coded name of the library, if different from the real name.
18788 soname_spec=$lt_soname_spec
18790 # Permission mode override for installation of shared libraries.
18791 install_override_mode=$lt_install_override_mode
18793 # Command to use after installation of a shared archive.
18794 postinstall_cmds=$lt_postinstall_cmds
18796 # Command to use after uninstallation of a shared archive.
18797 postuninstall_cmds=$lt_postuninstall_cmds
18799 # Commands used to finish a libtool library installation in a directory.
18800 finish_cmds=$lt_finish_cmds
18802 # As "finish_cmds", except a single script fragment to be evaled but
18804 finish_eval=$lt_finish_eval
18806 # Whether we should hardcode library paths into libraries.
18807 hardcode_into_libs=$hardcode_into_libs
18809 # Compile-time system search path for libraries.
18810 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18812 # Run-time system search path for libraries.
18813 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18815 # Whether dlopen is supported.
18816 dlopen_support=$enable_dlopen
18818 # Whether dlopen of programs is supported.
18819 dlopen_self=$enable_dlopen_self
18821 # Whether dlopen of statically linked programs is supported.
18822 dlopen_self_static=$enable_dlopen_self_static
18824 # Commands to strip libraries.
18825 old_striplib=$lt_old_striplib
18826 striplib=$lt_striplib
18829 # The linker used to build libraries.
18832 # How to create reloadable object files.
18833 reload_flag=$lt_reload_flag
18834 reload_cmds=$lt_reload_cmds
18836 # Commands used to build an old-style archive.
18837 old_archive_cmds=$lt_old_archive_cmds
18839 # A language specific compiler.
18842 # Is the compiler the GNU compiler?
18845 # Compiler flag to turn off builtin functions.
18846 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18848 # How to pass a linker flag through the compiler.
18849 wl=$lt_lt_prog_compiler_wl
18851 # Additional compiler flags for building library objects.
18852 pic_flag=$lt_lt_prog_compiler_pic
18854 # Compiler flag to prevent dynamic linking.
18855 link_static_flag=$lt_lt_prog_compiler_static
18857 # Does compiler simultaneously support -c and -o options?
18858 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18860 # Whether or not to add -lc for building shared libraries.
18861 build_libtool_need_lc=$archive_cmds_need_lc
18863 # Whether or not to disallow shared libs when runtime libs are static.
18864 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18866 # Compiler flag to allow reflexive dlopens.
18867 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18869 # Compiler flag to generate shared objects directly from archives.
18870 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18872 # Whether the compiler copes with passing no objects directly.
18873 compiler_needs_object=$lt_compiler_needs_object
18875 # Create an old-style archive from a shared archive.
18876 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18878 # Create a temporary old-style archive to link instead of a shared archive.
18879 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18881 # Commands used to build a shared archive.
18882 archive_cmds=$lt_archive_cmds
18883 archive_expsym_cmds=$lt_archive_expsym_cmds
18885 # Commands used to build a loadable module if different from building
18886 # a shared archive.
18887 module_cmds=$lt_module_cmds
18888 module_expsym_cmds=$lt_module_expsym_cmds
18890 # Whether we are building with GNU ld or not.
18891 with_gnu_ld=$lt_with_gnu_ld
18893 # Flag that allows shared libraries with undefined symbols to be built.
18894 allow_undefined_flag=$lt_allow_undefined_flag
18896 # Flag that enforces no undefined symbols.
18897 no_undefined_flag=$lt_no_undefined_flag
18899 # Flag to hardcode \$libdir into a binary during linking.
18900 # This must work even if \$libdir does not exist
18901 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18903 # If ld is used when linking, flag to hardcode \$libdir into a binary
18904 # during linking. This must work even if \$libdir does not exist.
18905 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18907 # Whether we need a single "-rpath" flag with a separated argument.
18908 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18910 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18911 # DIR into the resulting binary.
18912 hardcode_direct=$hardcode_direct
18914 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18915 # DIR into the resulting binary and the resulting library dependency is
18916 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18917 # library is relocated.
18918 hardcode_direct_absolute=$hardcode_direct_absolute
18920 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18921 # into the resulting binary.
18922 hardcode_minus_L=$hardcode_minus_L
18924 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18925 # into the resulting binary.
18926 hardcode_shlibpath_var=$hardcode_shlibpath_var
18928 # Set to "yes" if building a shared library automatically hardcodes DIR
18929 # into the library and all subsequent libraries and executables linked
18931 hardcode_automatic=$hardcode_automatic
18933 # Set to yes if linker adds runtime paths of dependent libraries
18934 # to runtime path list.
18935 inherit_rpath=$inherit_rpath
18937 # Whether libtool must link a program against all its dependency libraries.
18938 link_all_deplibs=$link_all_deplibs
18940 # Fix the shell variable \$srcfile for the compiler.
18941 fix_srcfile_path=$lt_fix_srcfile_path
18943 # Set to "yes" if exported symbols are required.
18944 always_export_symbols=$always_export_symbols
18946 # The commands to list exported symbols.
18947 export_symbols_cmds=$lt_export_symbols_cmds
18949 # Symbols that should not be listed in the preloaded symbols.
18950 exclude_expsyms=$lt_exclude_expsyms
18952 # Symbols that must always be exported.
18953 include_expsyms=$lt_include_expsyms
18955 # Commands necessary for linking programs (against libraries) with templates.
18956 prelink_cmds=$lt_prelink_cmds
18958 # Specify filename containing input files.
18959 file_list_spec=$lt_file_list_spec
18961 # How to hardcode a shared library path into an executable.
18962 hardcode_action=$hardcode_action
18964 # The directories searched by this compiler when creating a shared library.
18965 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18967 # Dependencies to place before and after the objects being linked to
18968 # create a shared library.
18969 predep_objects=$lt_predep_objects
18970 postdep_objects=$lt_postdep_objects
18971 predeps=$lt_predeps
18972 postdeps=$lt_postdeps
18974 # The library search path used internally by the compiler when linking
18975 # a shared library.
18976 compiler_lib_search_path=$lt_compiler_lib_search_path
18978 # ### END LIBTOOL CONFIG
18984 cat <<\_LT_EOF
>> "$cfgfile"
18985 # AIX sometimes has problems with the GCC collect2 program. For some
18986 # reason, if we set the COLLECT_NAMES environment variable, the problems
18987 # vanish in a puff of smoke.
18988 if test "X${COLLECT_NAMES+set}" != Xset
; then
18990 export COLLECT_NAMES
18997 ltmain
="$ac_aux_dir/ltmain.sh"
19000 # We use sed instead of cat because bash on DJGPP gets confused if
19001 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19002 # text mode, it properly converts lines to CR/LF. This bash problem
19003 # is reportedly fixed, but why not run on old versions too?
19004 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19005 ||
(rm -f "$cfgfile"; exit 1)
19009 cat << \_LT_EOF
>> "$cfgfile"
19011 # func_dirname file append nondir_replacement
19012 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19013 # otherwise set result to NONDIR_REPLACEMENT.
19017 */*) func_dirname_result
="${1%/*}${2}" ;;
19018 * ) func_dirname_result
="${3}" ;;
19022 # func_basename file
19025 func_basename_result
="${1##*/}"
19028 # func_dirname_and_basename file append nondir_replacement
19029 # perform func_basename and func_dirname in a single function
19031 # dirname: Compute the dirname of FILE. If nonempty,
19032 # add APPEND to the result, otherwise set result
19033 # to NONDIR_REPLACEMENT.
19034 # value returned in "$func_dirname_result"
19035 # basename: Compute filename of FILE.
19036 # value retuned in "$func_basename_result"
19037 # Implementation must be kept synchronized with func_dirname
19038 # and func_basename. For efficiency, we do not delegate to
19039 # those functions but instead duplicate the functionality here.
19040 func_dirname_and_basename
()
19043 */*) func_dirname_result
="${1%/*}${2}" ;;
19044 * ) func_dirname_result
="${3}" ;;
19046 func_basename_result
="${1##*/}"
19049 # func_stripname prefix suffix name
19050 # strip PREFIX and SUFFIX off of NAME.
19051 # PREFIX and SUFFIX must not contain globbing or regex special
19052 # characters, hashes, percent signs, but SUFFIX may contain a leading
19053 # dot (in which case that matches only a dot).
19056 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19057 # positional parameters, so assign one to ordinary parameter first.
19058 func_stripname_result
=${3}
19059 func_stripname_result
=${func_stripname_result#"${1}"}
19060 func_stripname_result
=${func_stripname_result%"${2}"}
19066 func_opt_split_opt
=${1%%=*}
19067 func_opt_split_arg
=${1#*=}
19074 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
19075 *) func_lo2o_result
=${1} ;;
19079 # func_xform libobj-or-source
19082 func_xform_result
=${1%.*}.lo
19085 # func_arith arithmetic-term...
19088 func_arith_result
=$
(( $
* ))
19092 # STRING may not start with a hyphen.
19095 func_len_result
=${#1}
19100 *) # Bourne compatible functions.
19101 cat << \_LT_EOF
>> "$cfgfile"
19103 # func_dirname file append nondir_replacement
19104 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19105 # otherwise set result to NONDIR_REPLACEMENT.
19108 # Extract subdirectory from the argument.
19109 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
19110 if test "X$func_dirname_result" = "X${1}"; then
19111 func_dirname_result
="${3}"
19113 func_dirname_result
="$func_dirname_result${2}"
19117 # func_basename file
19120 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
19124 # func_stripname prefix suffix name
19125 # strip PREFIX and SUFFIX off of NAME.
19126 # PREFIX and SUFFIX must not contain globbing or regex special
19127 # characters, hashes, percent signs, but SUFFIX may contain a leading
19128 # dot (in which case that matches only a dot).
19129 # func_strip_suffix prefix name
19133 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19134 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19139 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
19140 my_sed_long_arg
='1s/^-[^=]*=//'
19145 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19146 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19152 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
19155 # func_xform libobj-or-source
19158 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19161 # func_arith arithmetic-term...
19164 func_arith_result
=`expr "$@"`
19168 # STRING may not start with a hyphen.
19171 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19177 case $lt_shell_append in
19179 cat << \_LT_EOF
>> "$cfgfile"
19181 # func_append var value
19182 # Append VALUE to the end of shell variable VAR.
19190 cat << \_LT_EOF
>> "$cfgfile"
19192 # func_append var value
19193 # Append VALUE to the end of shell variable VAR.
19204 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19205 ||
(rm -f "$cfgfile"; exit 1)
19207 mv -f "$cfgfile" "$ofile" ||
19208 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19212 cat <<_LT_EOF >> "$ofile"
19214 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19216 # The linker used to build libraries.
19219 # How to create reloadable object files.
19220 reload_flag=$lt_reload_flag_CXX
19221 reload_cmds=$lt_reload_cmds_CXX
19223 # Commands used to build an old-style archive.
19224 old_archive_cmds=$lt_old_archive_cmds_CXX
19226 # A language specific compiler.
19227 CC=$lt_compiler_CXX
19229 # Is the compiler the GNU compiler?
19232 # Compiler flag to turn off builtin functions.
19233 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19235 # How to pass a linker flag through the compiler.
19236 wl=$lt_lt_prog_compiler_wl_CXX
19238 # Additional compiler flags for building library objects.
19239 pic_flag=$lt_lt_prog_compiler_pic_CXX
19241 # Compiler flag to prevent dynamic linking.
19242 link_static_flag=$lt_lt_prog_compiler_static_CXX
19244 # Does compiler simultaneously support -c and -o options?
19245 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19247 # Whether or not to add -lc for building shared libraries.
19248 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19250 # Whether or not to disallow shared libs when runtime libs are static.
19251 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19253 # Compiler flag to allow reflexive dlopens.
19254 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19256 # Compiler flag to generate shared objects directly from archives.
19257 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19259 # Whether the compiler copes with passing no objects directly.
19260 compiler_needs_object=$lt_compiler_needs_object_CXX
19262 # Create an old-style archive from a shared archive.
19263 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19265 # Create a temporary old-style archive to link instead of a shared archive.
19266 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19268 # Commands used to build a shared archive.
19269 archive_cmds=$lt_archive_cmds_CXX
19270 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19272 # Commands used to build a loadable module if different from building
19273 # a shared archive.
19274 module_cmds=$lt_module_cmds_CXX
19275 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19277 # Whether we are building with GNU ld or not.
19278 with_gnu_ld=$lt_with_gnu_ld_CXX
19280 # Flag that allows shared libraries with undefined symbols to be built.
19281 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19283 # Flag that enforces no undefined symbols.
19284 no_undefined_flag=$lt_no_undefined_flag_CXX
19286 # Flag to hardcode \$libdir into a binary during linking.
19287 # This must work even if \$libdir does not exist
19288 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19290 # If ld is used when linking, flag to hardcode \$libdir into a binary
19291 # during linking. This must work even if \$libdir does not exist.
19292 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19294 # Whether we need a single "-rpath" flag with a separated argument.
19295 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19297 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19298 # DIR into the resulting binary.
19299 hardcode_direct=$hardcode_direct_CXX
19301 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19302 # DIR into the resulting binary and the resulting library dependency is
19303 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19304 # library is relocated.
19305 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19307 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19308 # into the resulting binary.
19309 hardcode_minus_L=$hardcode_minus_L_CXX
19311 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19312 # into the resulting binary.
19313 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19315 # Set to "yes" if building a shared library automatically hardcodes DIR
19316 # into the library and all subsequent libraries and executables linked
19318 hardcode_automatic=$hardcode_automatic_CXX
19320 # Set to yes if linker adds runtime paths of dependent libraries
19321 # to runtime path list.
19322 inherit_rpath=$inherit_rpath_CXX
19324 # Whether libtool must link a program against all its dependency libraries.
19325 link_all_deplibs=$link_all_deplibs_CXX
19327 # Fix the shell variable \$srcfile for the compiler.
19328 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19330 # Set to "yes" if exported symbols are required.
19331 always_export_symbols=$always_export_symbols_CXX
19333 # The commands to list exported symbols.
19334 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19336 # Symbols that should not be listed in the preloaded symbols.
19337 exclude_expsyms=$lt_exclude_expsyms_CXX
19339 # Symbols that must always be exported.
19340 include_expsyms=$lt_include_expsyms_CXX
19342 # Commands necessary for linking programs (against libraries) with templates.
19343 prelink_cmds=$lt_prelink_cmds_CXX
19345 # Specify filename containing input files.
19346 file_list_spec=$lt_file_list_spec_CXX
19348 # How to hardcode a shared library path into an executable.
19349 hardcode_action=$hardcode_action_CXX
19351 # The directories searched by this compiler when creating a shared library.
19352 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19354 # Dependencies to place before and after the objects being linked to
19355 # create a shared library.
19356 predep_objects=$lt_predep_objects_CXX
19357 postdep_objects=$lt_postdep_objects_CXX
19358 predeps=$lt_predeps_CXX
19359 postdeps=$lt_postdeps_CXX
19361 # The library search path used internally by the compiler when linking
19362 # a shared library.
19363 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19365 # ### END LIBTOOL TAG CONFIG: CXX
19369 "include":C
) test -d include || mkdir include
;;
19371 test -d src || mkdir src
19372 test -d src
/$TARGETDIR || mkdir src
/$TARGETDIR
19381 ac_clean_files
=$ac_clean_files_save
19383 test $ac_write_fail = 0 ||
19384 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
19387 # configure is writing to config.log, and then calls config.status.
19388 # config.status does its own redirection, appending to config.log.
19389 # Unfortunately, on DOS this fails, as config.log is still kept open
19390 # by configure, so config.status won't be able to write to it; its
19391 # output is simply discarded. So we exec the FD to /dev/null,
19392 # effectively closing config.log, so it can be properly (re)opened and
19393 # appended to by config.status. When coming back to configure, we
19394 # need to make the FD available again.
19395 if test "$no_create" != yes; then
19397 ac_config_status_args
=
19398 test "$silent" = yes &&
19399 ac_config_status_args
="$ac_config_status_args --quiet"
19401 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19403 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19404 # would make configure fail if this is the last instruction.
19405 $ac_cs_success || as_fn_exit
1
19407 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19409 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}