2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libffi 3.4.2.
5 # Report bugs to <http://github.com/libffi/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/libffi/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.4.2'
594 PACKAGE_STRING
='libffi 3.4.2'
595 PACKAGE_BUGREPORT
='http://github.com/libffi/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 LIBFFI_BUILD_VERSIONED_SHLIB_SUN_FALSE
640 LIBFFI_BUILD_VERSIONED_SHLIB_SUN_TRUE
641 LIBFFI_BUILD_VERSIONED_SHLIB_GNU_FALSE
642 LIBFFI_BUILD_VERSIONED_SHLIB_GNU_TRUE
643 LIBFFI_BUILD_VERSIONED_SHLIB_FALSE
644 LIBFFI_BUILD_VERSIONED_SHLIB_TRUE
656 FFI_EXEC_TRAMPOLINE_TABLE
657 FFI_EXEC_TRAMPOLINE_TABLE_FALSE
658 FFI_EXEC_TRAMPOLINE_TABLE_TRUE
659 HAVE_LONG_DOUBLE_VARIANT
667 MAINTAINER_MODE_FALSE
690 am__fastdepCCAS_FALSE
732 INSTALL_STRIP_PROGRAM
787 program_transform_name
800 enable_option_checking
803 enable_generated_files_in_srcdir
804 enable_dependency_tracking
811 enable_maintainer_mode
816 enable_exec_static_tramp
820 with_gcc_major_version_only
822 ac_precious_vars
='build_alias
832 # Initialize some variables set by options.
834 ac_init_version
=false
835 ac_unrecognized_opts
=
837 # The variables have the same names as the options, with
838 # dashes changed to underlines.
846 program_transform_name
=s
,x
,x
,
854 # Installation directory options.
855 # These are left unexpanded so users can "make install exec_prefix=/foo"
856 # and all the variables that are supposed to be based on exec_prefix
857 # by default will actually change.
858 # Use braces instead of parens because sh, perl, etc. also accept them.
859 # (The list follows the same order as the GNU Coding Standards.)
860 bindir
='${exec_prefix}/bin'
861 sbindir
='${exec_prefix}/sbin'
862 libexecdir
='${exec_prefix}/libexec'
863 datarootdir
='${prefix}/share'
864 datadir
='${datarootdir}'
865 sysconfdir
='${prefix}/etc'
866 sharedstatedir
='${prefix}/com'
867 localstatedir
='${prefix}/var'
868 includedir
='${prefix}/include'
869 oldincludedir
='/usr/include'
870 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
871 infodir
='${datarootdir}/info'
876 libdir
='${exec_prefix}/lib'
877 localedir
='${datarootdir}/locale'
878 mandir
='${datarootdir}/man'
884 # If the previous option needs an argument, assign it.
885 if test -n "$ac_prev"; then
886 eval $ac_prev=\
$ac_option
892 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
897 # Accept the important Cygnus configure options, so we can diagnose typos.
899 case $ac_dashdash$ac_option in
903 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
905 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
908 -build |
--build |
--buil |
--bui |
--bu)
909 ac_prev
=build_alias
;;
910 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
911 build_alias
=$ac_optarg ;;
913 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
914 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
915 ac_prev
=cache_file
;;
916 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
917 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
918 cache_file
=$ac_optarg ;;
921 cache_file
=config.cache
;;
923 -datadir |
--datadir |
--datadi |
--datad)
925 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
926 datadir
=$ac_optarg ;;
928 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
929 |
--dataroo |
--dataro |
--datar)
930 ac_prev
=datarootdir
;;
931 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
932 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
933 datarootdir
=$ac_optarg ;;
935 -disable-* |
--disable-*)
936 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
937 # Reject names that are not valid shell variable names.
938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
939 as_fn_error $?
"invalid feature name: $ac_useropt"
940 ac_useropt_orig
=$ac_useropt
941 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942 case $ac_user_opts in
946 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
947 ac_unrecognized_sep
=', ';;
949 eval enable_
$ac_useropt=no
;;
951 -docdir |
--docdir |
--docdi |
--doc |
--do)
953 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
956 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
958 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
961 -enable-* |
--enable-*)
962 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
963 # Reject names that are not valid shell variable names.
964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
965 as_fn_error $?
"invalid feature name: $ac_useropt"
966 ac_useropt_orig
=$ac_useropt
967 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968 case $ac_user_opts in
972 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
973 ac_unrecognized_sep
=', ';;
975 eval enable_
$ac_useropt=\
$ac_optarg ;;
977 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
978 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
979 |
--exec |
--exe |
--ex)
980 ac_prev
=exec_prefix
;;
981 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
982 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
983 |
--exec=* |
--exe=* |
--ex=*)
984 exec_prefix
=$ac_optarg ;;
986 -gas |
--gas |
--ga |
--g)
987 # Obsolete; use --with-gas.
990 -help |
--help |
--hel |
--he |
-h)
992 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
993 ac_init_help
=recursive
;;
994 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
995 ac_init_help
=short
;;
997 -host |
--host |
--hos |
--ho)
998 ac_prev
=host_alias
;;
999 -host=* |
--host=* |
--hos=* |
--ho=*)
1000 host_alias
=$ac_optarg ;;
1002 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1004 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1006 htmldir
=$ac_optarg ;;
1008 -includedir |
--includedir |
--includedi |
--included |
--include \
1009 |
--includ |
--inclu |
--incl |
--inc)
1010 ac_prev
=includedir
;;
1011 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1012 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1013 includedir
=$ac_optarg ;;
1015 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1017 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1018 infodir
=$ac_optarg ;;
1020 -libdir |
--libdir |
--libdi |
--libd)
1022 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1023 libdir
=$ac_optarg ;;
1025 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1026 |
--libexe |
--libex |
--libe)
1027 ac_prev
=libexecdir
;;
1028 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1029 |
--libexe=* |
--libex=* |
--libe=*)
1030 libexecdir
=$ac_optarg ;;
1032 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1033 ac_prev
=localedir
;;
1034 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1035 localedir
=$ac_optarg ;;
1037 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1038 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1039 ac_prev
=localstatedir
;;
1040 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1041 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1042 localstatedir
=$ac_optarg ;;
1044 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1046 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1047 mandir
=$ac_optarg ;;
1049 -nfp |
--nfp |
--nf)
1050 # Obsolete; use --without-fp.
1053 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1054 |
--no-cr |
--no-c |
-n)
1057 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1058 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1061 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1062 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1063 |
--oldin |
--oldi |
--old |
--ol |
--o)
1064 ac_prev
=oldincludedir
;;
1065 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1066 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1067 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1068 oldincludedir
=$ac_optarg ;;
1070 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1072 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1073 prefix
=$ac_optarg ;;
1075 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1076 |
--program-pre |
--program-pr |
--program-p)
1077 ac_prev
=program_prefix
;;
1078 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1079 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1080 program_prefix
=$ac_optarg ;;
1082 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1083 |
--program-suf |
--program-su |
--program-s)
1084 ac_prev
=program_suffix
;;
1085 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1086 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1087 program_suffix
=$ac_optarg ;;
1089 -program-transform-name |
--program-transform-name \
1090 |
--program-transform-nam |
--program-transform-na \
1091 |
--program-transform-n |
--program-transform- \
1092 |
--program-transform |
--program-transfor \
1093 |
--program-transfo |
--program-transf \
1094 |
--program-trans |
--program-tran \
1095 |
--progr-tra |
--program-tr |
--program-t)
1096 ac_prev
=program_transform_name
;;
1097 -program-transform-name=* |
--program-transform-name=* \
1098 |
--program-transform-nam=* |
--program-transform-na=* \
1099 |
--program-transform-n=* |
--program-transform-=* \
1100 |
--program-transform=* |
--program-transfor=* \
1101 |
--program-transfo=* |
--program-transf=* \
1102 |
--program-trans=* |
--program-tran=* \
1103 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1104 program_transform_name
=$ac_optarg ;;
1106 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1108 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1109 pdfdir
=$ac_optarg ;;
1111 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1113 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1116 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1117 |
-silent |
--silent |
--silen |
--sile |
--sil)
1120 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1122 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1124 sbindir
=$ac_optarg ;;
1126 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1127 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1128 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1130 ac_prev
=sharedstatedir
;;
1131 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1132 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1133 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1135 sharedstatedir
=$ac_optarg ;;
1137 -site |
--site |
--sit)
1139 -site=* |
--site=* |
--sit=*)
1142 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1144 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1145 srcdir
=$ac_optarg ;;
1147 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1148 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1149 ac_prev
=sysconfdir
;;
1150 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1151 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1152 sysconfdir
=$ac_optarg ;;
1154 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1155 ac_prev
=target_alias
;;
1156 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1157 target_alias
=$ac_optarg ;;
1159 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1162 -version |
--version |
--versio |
--versi |
--vers |
-V)
1163 ac_init_version
=: ;;
1166 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1169 as_fn_error $?
"invalid package name: $ac_useropt"
1170 ac_useropt_orig
=$ac_useropt
1171 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1176 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1177 ac_unrecognized_sep
=', ';;
1179 eval with_
$ac_useropt=\
$ac_optarg ;;
1181 -without-* |
--without-*)
1182 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1185 as_fn_error $?
"invalid package name: $ac_useropt"
1186 ac_useropt_orig
=$ac_useropt
1187 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1192 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1193 ac_unrecognized_sep
=', ';;
1195 eval with_
$ac_useropt=no
;;
1198 # Obsolete; use --with-x.
1201 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1202 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1203 ac_prev
=x_includes
;;
1204 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1205 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1206 x_includes
=$ac_optarg ;;
1208 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1209 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1210 ac_prev
=x_libraries
;;
1211 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1212 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1213 x_libraries
=$ac_optarg ;;
1215 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1216 Try \`$0 --help' for more information"
1220 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1221 # Reject names that are not valid shell variable names.
1222 case $ac_envvar in #(
1223 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1224 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1226 eval $ac_envvar=\
$ac_optarg
1227 export $ac_envvar ;;
1230 # FIXME: should be removed in autoconf 3.0.
1231 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1232 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1233 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1234 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1240 if test -n "$ac_prev"; then
1241 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1242 as_fn_error $?
"missing argument to $ac_option"
1245 if test -n "$ac_unrecognized_opts"; then
1246 case $enable_option_checking in
1248 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1249 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1253 # Check all directory arguments for consistency.
1254 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1255 datadir sysconfdir sharedstatedir localstatedir includedir \
1256 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1257 libdir localedir mandir
1259 eval ac_val
=\$
$ac_var
1260 # Remove trailing slashes.
1263 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1264 eval $ac_var=\
$ac_val;;
1266 # Be sure to have absolute directory names.
1268 [\\/$
]* | ?
:[\\/]* ) continue;;
1269 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1271 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1274 # There might be people who depend on the old broken behavior: `$host'
1275 # used to hold the argument of --host etc.
1276 # FIXME: To remove some day.
1279 target
=$target_alias
1281 # FIXME: To remove some day.
1282 if test "x$host_alias" != x
; then
1283 if test "x$build_alias" = x
; then
1284 cross_compiling
=maybe
1285 elif test "x$build_alias" != "x$host_alias"; then
1291 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1293 test "$silent" = yes && exec 6>/dev
/null
1296 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1297 ac_ls_di
=`ls -di .` &&
1298 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1299 as_fn_error $?
"working directory cannot be determined"
1300 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1301 as_fn_error $?
"pwd does not report name of working directory"
1304 # Find the source files, if location was not specified.
1305 if test -z "$srcdir"; then
1306 ac_srcdir_defaulted
=yes
1307 # Try the directory containing this script, then the parent directory.
1308 ac_confdir
=`$as_dirname -- "$as_myself" ||
1309 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310 X"$as_myself" : 'X\(//\)[^/]' \| \
1311 X"$as_myself" : 'X\(//\)$' \| \
1312 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1313 $as_echo X"$as_myself" |
1314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1332 if test ! -r "$srcdir/$ac_unique_file"; then
1336 ac_srcdir_defaulted
=no
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1340 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1342 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1344 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1346 # When building in place, set srcdir=.
1347 if test "$ac_abs_confdir" = "$ac_pwd"; then
1350 # Remove unnecessary trailing slashes from srcdir.
1351 # Double slashes in file names in object file debugging info
1352 # mess up M-x gdb in Emacs.
1354 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1356 for ac_var
in $ac_precious_vars; do
1357 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1358 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1359 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1360 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1364 # Report the --help message.
1366 if test "$ac_init_help" = "long"; then
1367 # Omit some internal or obsolete options to make the list less imposing.
1368 # This message is too long to be a string in the A/UX 3.1 sh.
1370 \`configure' configures libffi 3.4.2 to adapt to many kinds of systems.
1372 Usage: $0 [OPTION]... [VAR=VALUE]...
1374 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1375 VAR=VALUE. See below for descriptions of some of the useful variables.
1377 Defaults for the options are specified in brackets.
1380 -h, --help display this help and exit
1381 --help=short display options specific to this package
1382 --help=recursive display the short help of all the included packages
1383 -V, --version display version information and exit
1384 -q, --quiet, --silent do not print \`checking ...' messages
1385 --cache-file=FILE cache test results in FILE [disabled]
1386 -C, --config-cache alias for \`--cache-file=config.cache'
1387 -n, --no-create do not create output files
1388 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1390 Installation directories:
1391 --prefix=PREFIX install architecture-independent files in PREFIX
1392 [$ac_default_prefix]
1393 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1396 By default, \`make install' will install all the files in
1397 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1398 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1399 for instance \`--prefix=\$HOME'.
1401 For better control, use the options below.
1403 Fine tuning of the installation directories:
1404 --bindir=DIR user executables [EPREFIX/bin]
1405 --sbindir=DIR system admin executables [EPREFIX/sbin]
1406 --libexecdir=DIR program executables [EPREFIX/libexec]
1407 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1408 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1409 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1410 --libdir=DIR object code libraries [EPREFIX/lib]
1411 --includedir=DIR C header files [PREFIX/include]
1412 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1413 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1414 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1415 --infodir=DIR info documentation [DATAROOTDIR/info]
1416 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1417 --mandir=DIR man documentation [DATAROOTDIR/man]
1418 --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
1419 --htmldir=DIR html documentation [DOCDIR]
1420 --dvidir=DIR dvi documentation [DOCDIR]
1421 --pdfdir=DIR pdf documentation [DOCDIR]
1422 --psdir=DIR ps documentation [DOCDIR]
1428 --program-prefix=PREFIX prepend PREFIX to installed program names
1429 --program-suffix=SUFFIX append SUFFIX to installed program names
1430 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1433 --build=BUILD configure
for building on BUILD
[guessed
]
1434 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1435 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1439 if test -n "$ac_init_help"; then
1440 case $ac_init_help in
1441 short | recursive
) echo "Configuration of libffi 3.4.2:";;
1446 --disable-option-checking ignore unrecognized
--enable/--with options
1447 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1448 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1449 --enable-multilib build many library versions
(default
)
1450 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1451 --disable-silent-rules verbose build output
(undo
: "make V=0")
1452 --enable-generated-files-in-srcdir
1453 put copies of generated files
in source dir intended
1454 for creating
source tarballs
for users without
1455 texinfo bison or flex
1456 --enable-dependency-tracking
1457 do not reject slow dependency extractors
1458 --disable-dependency-tracking
1459 speeds up one-time build
1460 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1461 --enable-static[=PKGS
] build static libraries
[default
=yes]
1462 --enable-fast-install[=PKGS
]
1463 optimize
for fast installation
[default
=yes]
1464 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1465 --enable-maintainer-mode
1466 enable make rules and dependencies not useful
(and
1467 sometimes confusing
) to the casual installer
1468 --enable-pax_emutramp enable pax emulated trampolines
, for we can
't use PROT_EXEC
1469 --enable-debug debugging mode
1470 --disable-structs omit code for struct support
1471 --disable-raw-api make the raw api unavailable
1472 --enable-exec-static-tramp enable use of static exec trampolines
1473 --enable-purify-safety purify-safe mode
1474 --enable-symvers=STYLE enables symbol versioning of the shared library
1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1480 --with-pic try to use only PIC/non-PIC objects [default=use
1482 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1483 --with-toolexeclibdir=DIR
1484 install libraries built with a cross compiler within
1486 --with-gcc-major-version-only
1487 use only GCC major number in filesystem paths
1489 Some influential environment variables:
1490 CC C compiler command
1491 CFLAGS C compiler flags
1492 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1493 nonstandard directory <lib dir>
1494 LIBS libraries to pass to the linker, e.g. -l<library>
1495 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1496 you have headers in a nonstandard directory <include dir>
1497 CXX C++ compiler command
1498 CXXFLAGS C++ compiler flags
1499 CCAS assembler compiler command (defaults to CC)
1500 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1502 CXXCPP C++ preprocessor
1504 Use these variables to override the choices made by `configure' or to
help
1505 it to
find libraries and programs with nonstandard names
/locations.
1507 Report bugs to
<http
://github.com
/libffi
/libffi
/issues
>.
1512 if test "$ac_init_help" = "recursive"; then
1513 # If there are subdirs, report their specific --help.
1514 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1515 test -d "$ac_dir" ||
1516 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1521 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1523 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1524 # A ".." for each directory in $ac_dir_suffix.
1525 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1526 case $ac_top_builddir_sub in
1527 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1528 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1531 ac_abs_top_builddir
=$ac_pwd
1532 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1533 # for backward compatibility:
1534 ac_top_builddir
=$ac_top_build_prefix
1537 .
) # We are building in place.
1539 ac_top_srcdir
=$ac_top_builddir_sub
1540 ac_abs_top_srcdir
=$ac_pwd ;;
1541 [\\/]* | ?
:[\\/]* ) # Absolute name.
1542 ac_srcdir
=$srcdir$ac_dir_suffix;
1543 ac_top_srcdir
=$srcdir
1544 ac_abs_top_srcdir
=$srcdir ;;
1546 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1548 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1550 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1552 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1553 # Check for guested configure.
1554 if test -f "$ac_srcdir/configure.gnu"; then
1556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557 elif test -f "$ac_srcdir/configure"; then
1559 $SHELL "$ac_srcdir/configure" --help=recursive
1561 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1563 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1567 test -n "$ac_init_help" && exit $ac_status
1568 if $ac_init_version; then
1570 libffi configure
3.4.2
1571 generated by GNU Autoconf
2.69
1573 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1574 This configure
script is free software
; the Free Software Foundation
1575 gives unlimited permission to copy
, distribute and modify it.
1580 ## ------------------------ ##
1581 ## Autoconf initialization. ##
1582 ## ------------------------ ##
1584 # ac_fn_c_try_compile LINENO
1585 # --------------------------
1586 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1587 ac_fn_c_try_compile
()
1589 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1590 rm -f conftest.
$ac_objext
1591 if { { ac_try
="$ac_compile"
1593 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1594 *) ac_try_echo=$ac_try;;
1596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597 $as_echo "$ac_try_echo"; } >&5
1598 (eval "$ac_compile") 2>conftest.err
1600 if test -s conftest.err; then
1601 grep -v '^ *+' conftest.err >conftest.er1
1602 cat conftest.er1 >&5
1603 mv -f conftest.er1 conftest.err
1605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606 test $ac_status = 0; } && {
1607 test -z "$ac_c_werror_flag" ||
1608 test ! -s conftest.err
1609 } && test -s conftest.$ac_objext; then :
1612 $as_echo "$as_me: failed program was:" >&5
1613 sed 's/^/| /' conftest.$ac_ext >&5
1617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1618 as_fn_set_status $ac_retval
1620 } # ac_fn_c_try_compile
1622 # ac_fn_cxx_try_compile LINENO
1623 # ----------------------------
1624 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1625 ac_fn_cxx_try_compile ()
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 rm -f conftest.$ac_objext
1629 if { { ac_try="$ac_compile"
1631 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1632 *) ac_try_echo
=$ac_try;;
1634 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635 $as_echo "$ac_try_echo"; } >&5
1636 (eval "$ac_compile") 2>conftest.err
1638 if test -s conftest.err
; then
1639 grep -v '^ *+' conftest.err
>conftest.er1
1640 cat conftest.er1
>&5
1641 mv -f conftest.er1 conftest.err
1643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644 test $ac_status = 0; } && {
1645 test -z "$ac_cxx_werror_flag" ||
1646 test ! -s conftest.err
1647 } && test -s conftest.
$ac_objext; then :
1650 $as_echo "$as_me: failed program was:" >&5
1651 sed 's/^/| /' conftest.
$ac_ext >&5
1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656 as_fn_set_status
$ac_retval
1658 } # ac_fn_cxx_try_compile
1660 # ac_fn_c_try_link LINENO
1661 # -----------------------
1662 # Try to link conftest.$ac_ext, and return whether this succeeded.
1665 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1666 rm -f conftest.
$ac_objext conftest
$ac_exeext
1667 if { { ac_try
="$ac_link"
1669 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 $as_echo "$ac_try_echo"; } >&5
1674 (eval "$ac_link") 2>conftest.err
1676 if test -s conftest.err; then
1677 grep -v '^ *+' conftest.err >conftest.er1
1678 cat conftest.er1 >&5
1679 mv -f conftest.er1 conftest.err
1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; } && {
1683 test -z "$ac_c_werror_flag" ||
1684 test ! -s conftest.err
1685 } && test -s conftest$ac_exeext && {
1686 test "$cross_compiling" = yes ||
1687 test -x conftest$ac_exeext
1691 $as_echo "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.$ac_ext >&5
1696 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1697 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1698 # interfere with the next link command; also delete a directory that is
1699 # left behind by Apple's compiler. We do this before executing the actions.
1700 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702 as_fn_set_status $ac_retval
1704 } # ac_fn_c_try_link
1706 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1707 # -------------------------------------------------------
1708 # Tests whether HEADER exists and can be compiled using the include files in
1709 # INCLUDES, setting the cache variable VAR accordingly.
1710 ac_fn_c_check_header_compile ()
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1714 $as_echo_n "checking for $2... " >&6; }
1715 if eval \${$3+:} false; then :
1716 $as_echo_n "(cached) " >&6
1718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719 /* end confdefs.h. */
1723 if ac_fn_c_try_compile "$LINENO"; then :
1728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1732 $as_echo "$ac_res" >&6; }
1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735 } # ac_fn_c_check_header_compile
1737 # ac_fn_c_try_cpp LINENO
1738 # ----------------------
1739 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 if { { ac_try="$ac_cpp conftest.$ac_ext"
1745 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1746 *) ac_try_echo
=$ac_try;;
1748 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 $as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1752 if test -s conftest.err
; then
1753 grep -v '^ *+' conftest.err
>conftest.er1
1754 cat conftest.er1
>&5
1755 mv -f conftest.er1 conftest.err
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; } > conftest.i
&& {
1759 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1760 test ! -s conftest.err
1764 $as_echo "$as_me: failed program was:" >&5
1765 sed 's/^/| /' conftest.
$ac_ext >&5
1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770 as_fn_set_status
$ac_retval
1774 # ac_fn_c_try_run LINENO
1775 # ----------------------
1776 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1777 # that executables *can* be run.
1780 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1781 if { { ac_try
="$ac_link"
1783 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_link") 2>&5
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1792 { { case "(($ac_try" in
1793 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1794 *) ac_try_echo
=$ac_try;;
1796 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797 $as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_try") 2>&5
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; }; }; then :
1804 $as_echo "$as_me: program exited with status $ac_status" >&5
1805 $as_echo "$as_me: failed program was:" >&5
1806 sed 's/^/| /' conftest.
$ac_ext >&5
1808 ac_retval
=$ac_status
1810 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 as_fn_set_status
$ac_retval
1816 # ac_fn_c_check_func LINENO FUNC VAR
1817 # ----------------------------------
1818 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1819 ac_fn_c_check_func
()
1821 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823 $as_echo_n "checking for $2... " >&6; }
1824 if eval \
${$3+:} false
; then :
1825 $as_echo_n "(cached) " >&6
1827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h. */
1829 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1831 #define $2 innocuous_$2
1833 /* System header to define __stub macros and hopefully few prototypes,
1834 which can conflict with char $2 (); below.
1835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1836 <limits.h> exists even on freestanding compilers. */
1839 # include <limits.h>
1841 # include <assert.h>
1846 /* Override any GCC internal prototype to avoid an error.
1847 Use char because int might match the return type of a GCC
1848 builtin and then its argument prototype would still apply. */
1853 /* The GNU C library defines this for functions which it implements
1854 to always fail with ENOSYS. Some functions are actually named
1855 something starting with __ and the normal name is an alias. */
1856 #if defined __stub_$2 || defined __stub___$2
1868 if ac_fn_c_try_link
"$LINENO"; then :
1873 rm -f core conftest.err conftest.
$ac_objext \
1874 conftest
$ac_exeext conftest.
$ac_ext
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878 $as_echo "$ac_res" >&6; }
1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881 } # ac_fn_c_check_func
1883 # ac_fn_cxx_try_cpp LINENO
1884 # ------------------------
1885 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1886 ac_fn_cxx_try_cpp
()
1888 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1889 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1891 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1892 *) ac_try_echo=$ac_try;;
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1898 if test -s conftest.err; then
1899 grep -v '^ *+' conftest.err >conftest.er1
1900 cat conftest.er1 >&5
1901 mv -f conftest.er1 conftest.err
1903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904 test $ac_status = 0; } > conftest.i && {
1905 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1906 test ! -s conftest.err
1910 $as_echo "$as_me: failed program was:" >&5
1911 sed 's/^/| /' conftest.$ac_ext >&5
1915 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916 as_fn_set_status $ac_retval
1918 } # ac_fn_cxx_try_cpp
1920 # ac_fn_cxx_try_link LINENO
1921 # -------------------------
1922 # Try to link conftest.$ac_ext, and return whether this succeeded.
1923 ac_fn_cxx_try_link ()
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 rm -f conftest.$ac_objext conftest$ac_exeext
1927 if { { ac_try="$ac_link"
1929 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1930 *) ac_try_echo
=$ac_try;;
1932 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1933 $as_echo "$ac_try_echo"; } >&5
1934 (eval "$ac_link") 2>conftest.err
1936 if test -s conftest.err
; then
1937 grep -v '^ *+' conftest.err
>conftest.er1
1938 cat conftest.er1
>&5
1939 mv -f conftest.er1 conftest.err
1941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942 test $ac_status = 0; } && {
1943 test -z "$ac_cxx_werror_flag" ||
1944 test ! -s conftest.err
1945 } && test -s conftest
$ac_exeext && {
1946 test "$cross_compiling" = yes ||
1947 test -x conftest
$ac_exeext
1951 $as_echo "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.
$ac_ext >&5
1956 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1957 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1958 # interfere with the next link command; also delete a directory that is
1959 # left behind by Apple's compiler. We do this before executing the actions.
1960 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1961 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962 as_fn_set_status
$ac_retval
1964 } # ac_fn_cxx_try_link
1966 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1967 # --------------------------------------------
1968 # Tries to find the compile-time value of EXPR in a program that includes
1969 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1971 ac_fn_c_compute_int
()
1973 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1974 if test "$cross_compiling" = yes; then
1975 # Depending upon the size, compute the lo and hi bounds.
1976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h. */
1982 static int test_array [1 - 2 * !(($2) >= 0)];
1984 return test_array [0];
1990 if ac_fn_c_try_compile
"$LINENO"; then :
1993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h. */
1999 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2001 return test_array [0];
2007 if ac_fn_c_try_compile
"$LINENO"; then :
2008 ac_hi
=$ac_mid; break
2010 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2011 if test $ac_lo -le $ac_mid; then
2015 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2017 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2026 static int test_array [1 - 2 * !(($2) < 0)];
2028 return test_array [0];
2034 if ac_fn_c_try_compile
"$LINENO"; then :
2037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h. */
2043 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2045 return test_array [0];
2051 if ac_fn_c_try_compile
"$LINENO"; then :
2052 ac_lo
=$ac_mid; break
2054 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2055 if test $ac_mid -le $ac_hi; then
2059 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2061 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2066 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2068 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2069 # Binary search between lo and hi bounds.
2070 while test "x$ac_lo" != "x$ac_hi"; do
2071 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2078 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2080 return test_array [0];
2086 if ac_fn_c_try_compile
"$LINENO"; then :
2089 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2091 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2094 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2101 static long int longval () { return $2; }
2102 static unsigned long int ulongval () { return $2; }
2109 FILE *f = fopen ("conftest.val", "w");
2114 long int i = longval ();
2117 fprintf (f, "%ld", i);
2121 unsigned long int i = ulongval ();
2124 fprintf (f, "%lu", i);
2126 /* Do not output a trailing newline, as this causes \r\n confusion
2127 on some platforms. */
2128 return ferror (f) || fclose (f) != 0;
2134 if ac_fn_c_try_run
"$LINENO"; then :
2135 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2139 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2140 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2144 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2145 as_fn_set_status
$ac_retval
2147 } # ac_fn_c_compute_int
2149 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2150 # -------------------------------------------------------
2151 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2152 # the include files in INCLUDES and setting the cache variable VAR
2154 ac_fn_c_check_header_mongrel
()
2156 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2157 if eval \
${$3+:} false
; then :
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2159 $as_echo_n "checking for $2... " >&6; }
2160 if eval \
${$3+:} false
; then :
2161 $as_echo_n "(cached) " >&6
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2165 $as_echo "$ac_res" >&6; }
2167 # Is the header compilable?
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2169 $as_echo_n "checking $2 usability... " >&6; }
2170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2171 /* end confdefs.h. */
2175 if ac_fn_c_try_compile
"$LINENO"; then :
2176 ac_header_compiler
=yes
2178 ac_header_compiler
=no
2180 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2182 $as_echo "$ac_header_compiler" >&6; }
2184 # Is the header present?
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2186 $as_echo_n "checking $2 presence... " >&6; }
2187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2188 /* end confdefs.h. */
2191 if ac_fn_c_try_cpp
"$LINENO"; then :
2192 ac_header_preproc
=yes
2194 ac_header_preproc
=no
2196 rm -f conftest.err conftest.i conftest.
$ac_ext
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2198 $as_echo "$ac_header_preproc" >&6; }
2200 # So? What about this header?
2201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2204 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2206 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2210 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2212 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2214 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2216 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2218 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2219 ( $as_echo "## ----------------------------------------------------- ##
2220 ## Report this to http://github.com/libffi/libffi/issues ##
2221 ## ----------------------------------------------------- ##"
2222 ) |
sed "s/^/$as_me: WARNING: /" >&2
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2226 $as_echo_n "checking for $2... " >&6; }
2227 if eval \
${$3+:} false
; then :
2228 $as_echo_n "(cached) " >&6
2230 eval "$3=\$ac_header_compiler"
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2234 $as_echo "$ac_res" >&6; }
2236 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2238 } # ac_fn_c_check_header_mongrel
2240 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2241 # -------------------------------------------
2242 # Tests whether TYPE exists after having included INCLUDES, setting cache
2243 # variable VAR accordingly.
2244 ac_fn_c_check_type
()
2246 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2248 $as_echo_n "checking for $2... " >&6; }
2249 if eval \
${$3+:} false
; then :
2250 $as_echo_n "(cached) " >&6
2253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2254 /* end confdefs.h. */
2265 if ac_fn_c_try_compile
"$LINENO"; then :
2266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h. */
2278 if ac_fn_c_try_compile
"$LINENO"; then :
2283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2285 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2289 $as_echo "$ac_res" >&6; }
2290 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2292 } # ac_fn_c_check_type
2293 cat >config.log
<<_ACEOF
2294 This file contains any messages produced by compilers while
2295 running configure, to aid debugging if configure makes a mistake.
2297 It was created by libffi $as_me 3.4.2, which was
2298 generated by GNU Autoconf 2.69. Invocation command line was
2310 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2311 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2312 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2313 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2314 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2316 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2317 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2319 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2320 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2321 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2322 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2323 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2324 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2325 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2329 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2333 test -z "$as_dir" && as_dir
=.
2334 $as_echo "PATH: $as_dir"
2350 # Keep a trace of the command line.
2351 # Strip out --no-create and --no-recursion so they do not pile up.
2352 # Strip out --silent because we don't want to record it for future runs.
2353 # Also quote any args containing shell meta-characters.
2354 # Make two passes to allow for proper duplicate-argument suppression.
2358 ac_must_keep_next
=false
2364 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2365 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2366 |
-silent |
--silent |
--silen |
--sile |
--sil)
2369 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2372 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2374 as_fn_append ac_configure_args1
" '$ac_arg'"
2375 if test $ac_must_keep_next = true
; then
2376 ac_must_keep_next
=false
# Got value, back to normal.
2379 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2380 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2381 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2382 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2383 case "$ac_configure_args0 " in
2384 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2387 -* ) ac_must_keep_next
=true
;;
2390 as_fn_append ac_configure_args
" '$ac_arg'"
2395 { ac_configure_args0
=; unset ac_configure_args0
;}
2396 { ac_configure_args1
=; unset ac_configure_args1
;}
2398 # When interrupted or exit'd, cleanup temporary files, and complete
2399 # config.log. We remove comments because anyway the quotes in there
2400 # would cause problems or look ugly.
2401 # WARNING: Use '\'' to represent an apostrophe within the trap.
2402 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2403 trap 'exit_status=$?
2404 # Save into config.log some information that might help in debugging.
2408 $as_echo "## ---------------- ##
2409 ## Cache variables. ##
2410 ## ---------------- ##"
2412 # The following way of writing the cache mishandles newlines in values,
2414 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2415 eval ac_val=\$$ac_var
2419 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2420 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2423 _ | IFS | as_nl) ;; #(
2424 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2425 *) { eval $ac_var=; unset $ac_var;} ;;
2430 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2431 *${as_nl}ac_space=\ *)
2433 "s/'\''/'\''\\\\'\'''\''/g;
2434 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2437 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2444 $as_echo "## ----------------- ##
2445 ## Output variables. ##
2446 ## ----------------- ##"
2448 for ac_var in $ac_subst_vars
2450 eval ac_val=\$$ac_var
2452 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2454 $as_echo "$ac_var='\''$ac_val'\''"
2458 if test -n "$ac_subst_files"; then
2459 $as_echo "## ------------------- ##
2460 ## File substitutions. ##
2461 ## ------------------- ##"
2463 for ac_var
in $ac_subst_files
2465 eval ac_val
=\$
$ac_var
2467 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2469 $as_echo "$ac_var='\''$ac_val'\''"
2474 if test -s confdefs.h; then
2475 $as_echo "## ----------- ##
2482 test "$ac_signal" != 0 &&
2483 $as_echo "$as_me: caught signal $ac_signal"
2484 $as_echo "$as_me: exit $exit_status"
2486 rm -f core *.core core.conftest.* &&
2487 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2490 for ac_signal
in 1 2 13 15; do
2491 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2495 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2496 rm -f -r conftest
* confdefs.h
2498 $as_echo "/* confdefs.h */" > confdefs.h
2500 # Predefined preprocessor variables.
2502 cat >>confdefs.h
<<_ACEOF
2503 #define PACKAGE_NAME "$PACKAGE_NAME"
2506 cat >>confdefs.h
<<_ACEOF
2507 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2510 cat >>confdefs.h
<<_ACEOF
2511 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2514 cat >>confdefs.h
<<_ACEOF
2515 #define PACKAGE_STRING "$PACKAGE_STRING"
2518 cat >>confdefs.h
<<_ACEOF
2519 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2522 cat >>confdefs.h
<<_ACEOF
2523 #define PACKAGE_URL "$PACKAGE_URL"
2527 # Let the site file select an alternate cache file if it wants to.
2528 # Prefer an explicitly selected file to automatically selected ones.
2531 if test -n "$CONFIG_SITE"; then
2532 # We do not want a PATH search for config.site.
2533 case $CONFIG_SITE in #((
2534 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2535 */*) ac_site_file1
=$CONFIG_SITE;;
2536 *) ac_site_file1
=.
/$CONFIG_SITE;;
2538 elif test "x$prefix" != xNONE
; then
2539 ac_site_file1
=$prefix/share
/config.site
2540 ac_site_file2
=$prefix/etc
/config.site
2542 ac_site_file1
=$ac_default_prefix/share
/config.site
2543 ac_site_file2
=$ac_default_prefix/etc
/config.site
2545 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2547 test "x$ac_site_file" = xNONE
&& continue
2548 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2550 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2551 sed 's/^/| /' "$ac_site_file" >&5
2553 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2555 as_fn_error $?
"failed to load site script $ac_site_file
2556 See \`config.log' for more details" "$LINENO" 5; }
2560 if test -r "$cache_file"; then
2561 # Some versions of bash will fail to source /dev/null (special files
2562 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2563 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2565 $as_echo "$as_me: loading cache $cache_file" >&6;}
2567 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2568 *) .
"./$cache_file";;
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2573 $as_echo "$as_me: creating cache $cache_file" >&6;}
2577 # Check that the precious variables saved in the cache have kept the same
2579 ac_cache_corrupted
=false
2580 for ac_var
in $ac_precious_vars; do
2581 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2582 eval ac_new_set
=\
$ac_env_${ac_var}_set
2583 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2584 eval ac_new_val
=\
$ac_env_${ac_var}_value
2585 case $ac_old_set,$ac_new_set in
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2588 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2589 ac_cache_corrupted
=: ;;
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2592 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2593 ac_cache_corrupted
=: ;;
2596 if test "x$ac_old_val" != "x$ac_new_val"; then
2597 # differences in whitespace do not lead to failure.
2598 ac_old_val_w
=`echo x $ac_old_val`
2599 ac_new_val_w
=`echo x $ac_new_val`
2600 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2602 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2603 ac_cache_corrupted
=:
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2606 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2607 eval $ac_var=\
$ac_old_val
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2610 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2612 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2615 # Pass precious variables to config.status.
2616 if test "$ac_new_set" = set; then
2618 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2619 *) ac_arg
=$ac_var=$ac_new_val ;;
2621 case " $ac_configure_args " in
2622 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2623 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2627 if $ac_cache_corrupted; then
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2631 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2632 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2634 ## -------------------- ##
2635 ## Main body of script. ##
2636 ## -------------------- ##
2639 ac_cpp
='$CPP $CPPFLAGS'
2640 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2641 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2642 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2648 ac_config_headers
="$ac_config_headers fficonfig.h"
2651 # Default to --enable-multilib
2652 # Check whether --enable-multilib was given.
2653 if test "${enable_multilib+set}" = set; then :
2654 enableval
=$enable_multilib; case "$enableval" in
2655 yes) multilib
=yes ;;
2657 *) as_fn_error $?
"bad value $enableval for multilib option" "$LINENO" 5 ;;
2664 # We may get other options which we leave undocumented:
2665 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2666 # See config-ml.in if you want the gory details.
2668 if test "$srcdir" = "."; then
2669 if test "$with_target_subdir" != "."; then
2670 multi_basedir
="$srcdir/$with_multisrctop../.."
2672 multi_basedir
="$srcdir/$with_multisrctop.."
2675 multi_basedir
="$srcdir/.."
2679 # Even if the default multilib is not a cross compilation,
2680 # it may be that some of the other multilibs are.
2681 if test $cross_compiling = no
&& test $multilib = yes \
2682 && test "x${with_multisubdir}" != x
; then
2683 cross_compiling
=maybe
2686 ac_config_commands
="$ac_config_commands default-1"
2690 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2691 if test -f "$ac_dir/install-sh"; then
2693 ac_install_sh
="$ac_aux_dir/install-sh -c"
2695 elif test -f "$ac_dir/install.sh"; then
2697 ac_install_sh
="$ac_aux_dir/install.sh -c"
2699 elif test -f "$ac_dir/shtool"; then
2701 ac_install_sh
="$ac_aux_dir/shtool install -c"
2705 if test -z "$ac_aux_dir"; then
2706 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2709 # These three variables are undocumented and unsupported,
2710 # and are intended to be withdrawn in a future Autoconf release.
2711 # They can cause serious problems if a builder's source tree is in a directory
2712 # whose full name contains unusual characters.
2713 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2714 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2715 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2718 # Make sure we can run config.sub.
2719 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2720 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2723 $as_echo_n "checking build system type... " >&6; }
2724 if ${ac_cv_build+:} false
; then :
2725 $as_echo_n "(cached) " >&6
2727 ac_build_alias
=$build_alias
2728 test "x$ac_build_alias" = x
&&
2729 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2730 test "x$ac_build_alias" = x
&&
2731 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2732 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2733 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2737 $as_echo "$ac_cv_build" >&6; }
2738 case $ac_cv_build in
2740 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2743 ac_save_IFS
=$IFS; IFS
='-'
2749 # Remember, the first character of IFS is used to create $*,
2750 # except with old shells:
2753 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2757 $as_echo_n "checking host system type... " >&6; }
2758 if ${ac_cv_host+:} false
; then :
2759 $as_echo_n "(cached) " >&6
2761 if test "x$host_alias" = x
; then
2762 ac_cv_host
=$ac_cv_build
2764 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2765 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2770 $as_echo "$ac_cv_host" >&6; }
2773 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2776 ac_save_IFS
=$IFS; IFS
='-'
2782 # Remember, the first character of IFS is used to create $*,
2783 # except with old shells:
2786 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2790 $as_echo_n "checking target system type... " >&6; }
2791 if ${ac_cv_target+:} false
; then :
2792 $as_echo_n "(cached) " >&6
2794 if test "x$target_alias" = x
; then
2795 ac_cv_target
=$ac_cv_host
2797 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2798 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2803 $as_echo "$ac_cv_target" >&6; }
2804 case $ac_cv_target in
2806 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2808 target
=$ac_cv_target
2809 ac_save_IFS
=$IFS; IFS
='-'
2815 # Remember, the first character of IFS is used to create $*,
2816 # except with old shells:
2819 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2822 # The aliases save the names the user supplied, while $host etc.
2823 # will get canonicalized.
2824 test -n "$target_alias" &&
2825 test "$program_prefix$program_suffix$program_transform_name" = \
2827 program_prefix
=${target_alias}-
2829 target_alias
=${target_alias-$host_alias}
2831 am__api_version
='1.15'
2833 # Find a good install program. We prefer a C program (faster),
2834 # so one script is as good as another. But avoid the broken or
2835 # incompatible versions:
2836 # SysV /etc/install, /usr/sbin/install
2837 # SunOS /usr/etc/install
2838 # IRIX /sbin/install
2840 # AmigaOS /C/install, which installs bootblocks on floppy discs
2841 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2842 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2843 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2844 # OS/2's system install, which has a completely different semantic
2845 # ./install, which can be erroneously created by make from ./install.sh.
2846 # Reject install programs that cannot install multiple files.
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2848 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2849 if test -z "$INSTALL"; then
2850 if ${ac_cv_path_install+:} false
; then :
2851 $as_echo_n "(cached) " >&6
2853 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2857 test -z "$as_dir" && as_dir
=.
2858 # Account for people who put trailing slashes in PATH elements.
2859 case $as_dir/ in #((
2860 .
/ | .
// |
/[cC
]/* | \
2861 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2862 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2865 # OSF1 and SCO ODT 3.0 have their own names for install.
2866 # Don't use installbsd from OSF since it installs stuff as root
2868 for ac_prog
in ginstall scoinst
install; do
2869 for ac_exec_ext
in '' $ac_executable_extensions; do
2870 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2871 if test $ac_prog = install &&
2872 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2873 # AIX install. It has an incompatible calling convention.
2875 elif test $ac_prog = install &&
2876 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2877 # program-specific install script used by HP pwplus--don't use.
2880 rm -rf conftest.one conftest.two conftest.dir
2881 echo one
> conftest.one
2882 echo two
> conftest.two
2884 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2885 test -s conftest.one
&& test -s conftest.two
&&
2886 test -s conftest.dir
/conftest.one
&&
2887 test -s conftest.dir
/conftest.two
2889 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2902 rm -rf conftest.one conftest.two conftest.dir
2905 if test "${ac_cv_path_install+set}" = set; then
2906 INSTALL
=$ac_cv_path_install
2908 # As a last resort, use the slow shell script. Don't cache a
2909 # value for INSTALL within a source directory, because that will
2910 # break other packages using the cache if that directory is
2911 # removed, or if the value is a relative name.
2912 INSTALL
=$ac_install_sh
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2916 $as_echo "$INSTALL" >&6; }
2918 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2919 # It thinks the first close brace ends the variable substitution.
2920 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2922 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2924 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2927 $as_echo_n "checking whether build environment is sane... " >&6; }
2928 # Reject unsafe characters in $srcdir or the absolute working directory
2929 # name. Accept space and tab only in the latter.
2933 *[\\\"\
#\$\&\'\`$am_lf]*)
2934 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2937 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2938 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2941 # Do 'set' in a subshell so we don't clobber the current shell's
2942 # arguments. Must try -L first in case configure is actually a
2943 # symlink; some systems play weird games with the mod time of symlinks
2944 # (eg FreeBSD returns the mod time of the symlink's containing
2948 for am_try
in 1 2; do
2949 echo "timestamp, slept: $am_has_slept" > conftest.
file
2950 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2951 if test "$*" = "X"; then
2953 set X
`ls -t "$srcdir/configure" conftest.file`
2955 if test "$*" != "X $srcdir/configure conftest.file" \
2956 && test "$*" != "X conftest.file $srcdir/configure"; then
2958 # If neither matched, then we have a broken ls. This can happen
2959 # if, for instance, CONFIG_SHELL is bash and it inherits a
2960 # broken ls alias from the environment. This has actually
2961 # happened. Such a system could not be considered "sane".
2962 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2963 alias in your environment" "$LINENO" 5
2965 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2972 test "$2" = conftest.
file
2978 as_fn_error $?
"newly created file is older than distributed files!
2979 Check your system clock" "$LINENO" 5
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2982 $as_echo "yes" >&6; }
2983 # If we didn't sleep, we still need to ensure time stamps of config.status and
2984 # generated files are strictly newer.
2986 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2993 test "$program_prefix" != NONE
&&
2994 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2995 # Use a double $ so make ignores it.
2996 test "$program_suffix" != NONE
&&
2997 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2998 # Double any \ or $.
2999 # By default was `s,x,x', remove it if useless.
3000 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3001 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3003 # Expand $ac_aux_dir to an absolute path.
3004 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
3006 if test x
"${MISSING+set}" != xset
; then
3009 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3011 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3014 # Use eval to expand $SHELL
3015 if eval "$MISSING --is-lightweight"; then
3016 am_missing_run
="$MISSING "
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3020 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3023 if test x
"${install_sh+set}" != xset
; then
3026 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3028 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3032 # Installed binaries are usually stripped using 'strip' when the user
3033 # run "make install-strip". However 'strip' might not be the right
3034 # tool to use in cross-compilation environments, therefore Automake
3035 # will honor the 'STRIP' environment variable to overrule this program.
3036 if test "$cross_compiling" != no
; then
3037 if test -n "$ac_tool_prefix"; then
3038 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3039 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3041 $as_echo_n "checking for $ac_word... " >&6; }
3042 if ${ac_cv_prog_STRIP+:} false
; then :
3043 $as_echo_n "(cached) " >&6
3045 if test -n "$STRIP"; then
3046 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3048 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3052 test -z "$as_dir" && as_dir
=.
3053 for ac_exec_ext
in '' $ac_executable_extensions; do
3054 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3055 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3065 STRIP
=$ac_cv_prog_STRIP
3066 if test -n "$STRIP"; then
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3068 $as_echo "$STRIP" >&6; }
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3071 $as_echo "no" >&6; }
3076 if test -z "$ac_cv_prog_STRIP"; then
3078 # Extract the first word of "strip", so it can be a program name with args.
3079 set dummy strip
; ac_word
=$2
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3081 $as_echo_n "checking for $ac_word... " >&6; }
3082 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3083 $as_echo_n "(cached) " >&6
3085 if test -n "$ac_ct_STRIP"; then
3086 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3088 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3092 test -z "$as_dir" && as_dir
=.
3093 for ac_exec_ext
in '' $ac_executable_extensions; do
3094 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3095 ac_cv_prog_ac_ct_STRIP
="strip"
3096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3105 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3106 if test -n "$ac_ct_STRIP"; then
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3108 $as_echo "$ac_ct_STRIP" >&6; }
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111 $as_echo "no" >&6; }
3114 if test "x$ac_ct_STRIP" = x
; then
3117 case $cross_compiling:$ac_tool_warned in
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3121 ac_tool_warned
=yes ;;
3126 STRIP
="$ac_cv_prog_STRIP"
3130 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3133 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3134 if test -z "$MKDIR_P"; then
3135 if ${ac_cv_path_mkdir+:} false
; then :
3136 $as_echo_n "(cached) " >&6
3138 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3139 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3142 test -z "$as_dir" && as_dir
=.
3143 for ac_prog
in mkdir gmkdir
; do
3144 for ac_exec_ext
in '' $ac_executable_extensions; do
3145 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3146 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3147 'mkdir (GNU coreutils) '* | \
3148 'mkdir (coreutils) '* | \
3149 'mkdir (fileutils) '4.1*)
3150 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3160 test -d .
/--version && rmdir .
/--version
3161 if test "${ac_cv_path_mkdir+set}" = set; then
3162 MKDIR_P
="$ac_cv_path_mkdir -p"
3164 # As a last resort, use the slow shell script. Don't cache a
3165 # value for MKDIR_P within a source directory, because that will
3166 # break other packages using the cache if that directory is
3167 # removed, or if the value is a relative name.
3168 MKDIR_P
="$ac_install_sh -d"
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3172 $as_echo "$MKDIR_P" >&6; }
3174 for ac_prog
in gawk mawk nawk
awk
3176 # Extract the first word of "$ac_prog", so it can be a program name with args.
3177 set dummy
$ac_prog; ac_word
=$2
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3179 $as_echo_n "checking for $ac_word... " >&6; }
3180 if ${ac_cv_prog_AWK+:} false
; then :
3181 $as_echo_n "(cached) " >&6
3183 if test -n "$AWK"; then
3184 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3190 test -z "$as_dir" && as_dir
=.
3191 for ac_exec_ext
in '' $ac_executable_extensions; do
3192 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3193 ac_cv_prog_AWK
="$ac_prog"
3194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3204 if test -n "$AWK"; then
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3206 $as_echo "$AWK" >&6; }
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209 $as_echo "no" >&6; }
3213 test -n "$AWK" && break
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3217 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3219 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3220 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3221 $as_echo_n "(cached) " >&6
3223 cat >conftest.
make <<\_ACEOF
3226 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3228 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3229 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3231 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3233 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3237 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3239 $as_echo "yes" >&6; }
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243 $as_echo "no" >&6; }
3244 SET_MAKE
="MAKE=${MAKE-make}"
3247 rm -rf .tst
2>/dev
/null
3248 mkdir .tst
2>/dev
/null
3249 if test -d .tst
; then
3254 rmdir .tst
2>/dev
/null
3256 # Check whether --enable-silent-rules was given.
3257 if test "${enable_silent_rules+set}" = set; then :
3258 enableval
=$enable_silent_rules;
3261 case $enable_silent_rules in # (((
3262 yes) AM_DEFAULT_VERBOSITY
=0;;
3263 no
) AM_DEFAULT_VERBOSITY
=1;;
3264 *) AM_DEFAULT_VERBOSITY
=1;;
3266 am_make
=${MAKE-make}
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3268 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3269 if ${am_cv_make_support_nested_variables+:} false
; then :
3270 $as_echo_n "(cached) " >&6
3272 if $as_echo 'TRUE=$(BAR$(V))
3278 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3279 am_cv_make_support_nested_variables
=yes
3281 am_cv_make_support_nested_variables
=no
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3285 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3286 if test $am_cv_make_support_nested_variables = yes; then
3288 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3290 AM_V
=$AM_DEFAULT_VERBOSITY
3291 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3295 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3296 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3297 # is not polluted with repeated "-I."
3298 am__isrc
=' -I$(srcdir)'
3299 # test to see if srcdir already configured
3300 if test -f $srcdir/config.status
; then
3301 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3305 # test whether we have cygpath
3306 if test -z "$CYGPATH_W"; then
3307 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3308 CYGPATH_W
='cygpath -w'
3315 # Define the identity of the package.
3320 cat >>confdefs.h
<<_ACEOF
3321 #define PACKAGE "$PACKAGE"
3325 cat >>confdefs.h
<<_ACEOF
3326 #define VERSION "$VERSION"
3329 # Some tools Automake needs.
3331 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3334 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3337 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3340 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3343 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3345 # For better backward compatibility. To be removed once Automake 1.9.x
3346 # dies out for good. For more background, see:
3347 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3348 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3349 mkdir_p
='$(MKDIR_P)'
3351 # We need awk for the "check" target (and possibly the TAP driver). The
3352 # system "awk" is bad on some platforms.
3353 # Always define AMTAR for backward compatibility. Yes, it's still used
3354 # in the wild :-( We should find a proper way to deprecate it ...
3358 # We'll loop over all known methods to create a tar archive until one works.
3359 _am_tools
='gnutar pax cpio none'
3361 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3368 # POSIX will say in a future version that running "rm -f" with no argument
3369 # is OK; and we want to be able to make that assumption in our Makefile
3370 # recipes. So use an aggressive probe to check that the usage we want is
3371 # actually supported "in the wild" to an acceptable degree.
3372 # See automake bug#10828.
3373 # To make any issue more visible, cause the running configure to be aborted
3374 # by default if the 'rm' program in use doesn't match our expectations; the
3375 # user can still override this though.
3376 if rm -f && rm -fr && rm -rf; then : OK
; else
3380 Your 'rm' program seems unable to run without file operands specified
3381 on the command line, even when the '-f' option is present. This is contrary
3382 to the behaviour of most rm programs out there, and not conforming with
3383 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3385 Please tell bug-automake@gnu.org about your system, including the value
3386 of your $PATH and any error possibly output before this message. This
3387 can help us improve future automake versions.
3390 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3391 echo 'Configuration will proceed anyway, since you have set the' >&2
3392 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3396 Aborting the configuration process, to ensure you take notice of the issue.
3398 You can download and install GNU coreutils to get an 'rm' implementation
3399 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3401 If you want to complete the configuration process using your problematic
3402 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3403 to "yes", and re-run configure.
3406 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3411 # We would like our source tree to be readonly. However when releases or
3412 # pre-releases are generated, the flex/bison generated files as well as the
3413 # various formats of manuals need to be included along with the rest of the
3414 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
3417 $as_echo_n "checking generated-files-in-srcdir... " >&6; }
3418 # Check whether --enable-generated-files-in-srcdir was given.
3419 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3420 enableval
=$enable_generated_files_in_srcdir; case "$enableval" in
3421 yes) enable_generated_files_in_srcdir
=yes ;;
3422 no
) enable_generated_files_in_srcdir
=no
;;
3423 *) as_fn_error $?
"Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3426 enable_generated_files_in_srcdir
=no
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
3430 $as_echo "$enable_generated_files_in_srcdir" >&6; }
3431 if test "$enable_generated_files_in_srcdir" = yes; then
3440 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3441 # We must force CC to /not/ be precious variables; otherwise
3442 # the wrong, non-multilib-adjusted value will be used in multilibs.
3443 # As a side effect, we have to subst CFLAGS ourselves.
3444 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
3445 # defaults of its own if none are provided.
3451 ac_cpp
='$CPP $CPPFLAGS'
3452 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3453 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3454 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3455 if test -n "$ac_tool_prefix"; then
3456 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3457 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3459 $as_echo_n "checking for $ac_word... " >&6; }
3460 if ${ac_cv_prog_CC+:} false
; then :
3461 $as_echo_n "(cached) " >&6
3463 if test -n "$CC"; then
3464 ac_cv_prog_CC
="$CC" # Let the user override the test.
3466 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3470 test -z "$as_dir" && as_dir
=.
3471 for ac_exec_ext
in '' $ac_executable_extensions; do
3472 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3473 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3484 if test -n "$CC"; then
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3486 $as_echo "$CC" >&6; }
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3489 $as_echo "no" >&6; }
3494 if test -z "$ac_cv_prog_CC"; then
3496 # Extract the first word of "gcc", so it can be a program name with args.
3497 set dummy gcc
; ac_word
=$2
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3499 $as_echo_n "checking for $ac_word... " >&6; }
3500 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3501 $as_echo_n "(cached) " >&6
3503 if test -n "$ac_ct_CC"; then
3504 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3506 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3510 test -z "$as_dir" && as_dir
=.
3511 for ac_exec_ext
in '' $ac_executable_extensions; do
3512 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3513 ac_cv_prog_ac_ct_CC
="gcc"
3514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3523 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3524 if test -n "$ac_ct_CC"; then
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3526 $as_echo "$ac_ct_CC" >&6; }
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3529 $as_echo "no" >&6; }
3532 if test "x$ac_ct_CC" = x
; then
3535 case $cross_compiling:$ac_tool_warned in
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3539 ac_tool_warned
=yes ;;
3547 if test -z "$CC"; then
3548 if test -n "$ac_tool_prefix"; then
3549 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3550 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3552 $as_echo_n "checking for $ac_word... " >&6; }
3553 if ${ac_cv_prog_CC+:} false
; then :
3554 $as_echo_n "(cached) " >&6
3556 if test -n "$CC"; then
3557 ac_cv_prog_CC
="$CC" # Let the user override the test.
3559 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3563 test -z "$as_dir" && as_dir
=.
3564 for ac_exec_ext
in '' $ac_executable_extensions; do
3565 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3566 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3577 if test -n "$CC"; then
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3579 $as_echo "$CC" >&6; }
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3582 $as_echo "no" >&6; }
3588 if test -z "$CC"; then
3589 # Extract the first word of "cc", so it can be a program name with args.
3590 set dummy cc
; ac_word
=$2
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3592 $as_echo_n "checking for $ac_word... " >&6; }
3593 if ${ac_cv_prog_CC+:} false
; then :
3594 $as_echo_n "(cached) " >&6
3596 if test -n "$CC"; then
3597 ac_cv_prog_CC
="$CC" # Let the user override the test.
3600 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3604 test -z "$as_dir" && as_dir
=.
3605 for ac_exec_ext
in '' $ac_executable_extensions; do
3606 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3607 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3608 ac_prog_rejected
=yes
3612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3619 if test $ac_prog_rejected = yes; then
3620 # We found a bogon in the path, so make sure we never use it.
3621 set dummy
$ac_cv_prog_CC
3623 if test $# != 0; then
3624 # We chose a different compiler from the bogus one.
3625 # However, it has the same basename, so the bogon will be chosen
3626 # first if we set CC to just the basename; use the full file name.
3628 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3634 if test -n "$CC"; then
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3636 $as_echo "$CC" >&6; }
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3639 $as_echo "no" >&6; }
3644 if test -z "$CC"; then
3645 if test -n "$ac_tool_prefix"; then
3646 for ac_prog
in cl.exe
3648 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3649 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3651 $as_echo_n "checking for $ac_word... " >&6; }
3652 if ${ac_cv_prog_CC+:} false
; then :
3653 $as_echo_n "(cached) " >&6
3655 if test -n "$CC"; then
3656 ac_cv_prog_CC
="$CC" # Let the user override the test.
3658 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3662 test -z "$as_dir" && as_dir
=.
3663 for ac_exec_ext
in '' $ac_executable_extensions; do
3664 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3665 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3676 if test -n "$CC"; then
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3678 $as_echo "$CC" >&6; }
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681 $as_echo "no" >&6; }
3685 test -n "$CC" && break
3688 if test -z "$CC"; then
3690 for ac_prog
in cl.exe
3692 # Extract the first word of "$ac_prog", so it can be a program name with args.
3693 set dummy
$ac_prog; ac_word
=$2
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3695 $as_echo_n "checking for $ac_word... " >&6; }
3696 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3697 $as_echo_n "(cached) " >&6
3699 if test -n "$ac_ct_CC"; then
3700 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3702 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3706 test -z "$as_dir" && as_dir
=.
3707 for ac_exec_ext
in '' $ac_executable_extensions; do
3708 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3709 ac_cv_prog_ac_ct_CC
="$ac_prog"
3710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3719 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3720 if test -n "$ac_ct_CC"; then
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3722 $as_echo "$ac_ct_CC" >&6; }
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3725 $as_echo "no" >&6; }
3729 test -n "$ac_ct_CC" && break
3732 if test "x$ac_ct_CC" = x
; then
3735 case $cross_compiling:$ac_tool_warned in
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3739 ac_tool_warned
=yes ;;
3748 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3750 as_fn_error $?
"no acceptable C compiler found in \$PATH
3751 See \`config.log' for more details" "$LINENO" 5; }
3753 # Provide some information about the compiler.
3754 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3757 for ac_option
in --version -v -V -qversion; do
3758 { { ac_try
="$ac_compiler $ac_option >&5"
3760 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3761 *) ac_try_echo=$ac_try;;
3763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3764 $as_echo "$ac_try_echo"; } >&5
3765 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3767 if test -s conftest.err; then
3769 ... rest of stderr output deleted ...
3770 10q' conftest.err >conftest.er1
3771 cat conftest.er1 >&5
3773 rm -f conftest.er1 conftest.err
3774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3775 test $ac_status = 0; }
3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h. */
3789 ac_clean_files_save=$ac_clean_files
3790 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3791 # Try to create an executable without -o first, disregard a.out.
3792 # It will help us diagnose broken compilers, and finding out an intuition
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3795 $as_echo_n "checking whether the C compiler works... " >&6; }
3796 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3798 # The possible output files:
3799 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3802 for ac_file in $ac_files
3805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3806 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3811 if { { ac_try="$ac_link_default"
3813 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3814 *) ac_try_echo
=$ac_try;;
3816 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3817 $as_echo "$ac_try_echo"; } >&5
3818 (eval "$ac_link_default") 2>&5
3820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3821 test $ac_status = 0; }; then :
3822 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3823 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3824 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3825 # so that the user can short-circuit this test for compilers unknown to
3827 for ac_file
in $ac_files ''
3829 test -f "$ac_file" ||
continue
3831 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3834 # We found the default executable, but exeext='' is most
3838 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3840 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3842 # We set ac_cv_exeext here because the later test for it is not
3843 # safe: cross compilers may not add the suffix if given an `-o'
3844 # argument, so we may need to know it at that point already.
3845 # Even if this section looks crufty: it has the advantage of
3852 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3857 if test -z "$ac_file"; then :
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3859 $as_echo "no" >&6; }
3860 $as_echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.
$ac_ext >&5
3863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3865 as_fn_error
77 "C compiler cannot create executables
3866 See \`config.log' for more details" "$LINENO" 5; }
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3869 $as_echo "yes" >&6; }
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3872 $as_echo_n "checking for C compiler default output file name... " >&6; }
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3874 $as_echo "$ac_file" >&6; }
3875 ac_exeext
=$ac_cv_exeext
3877 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3878 ac_clean_files
=$ac_clean_files_save
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3880 $as_echo_n "checking for suffix of executables... " >&6; }
3881 if { { ac_try
="$ac_link"
3883 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3884 *) ac_try_echo=$ac_try;;
3886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3887 $as_echo "$ac_try_echo"; } >&5
3888 (eval "$ac_link") 2>&5
3890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3891 test $ac_status = 0; }; then :
3892 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3893 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3894 # work properly (i.e., refer to `conftest.exe'), while it won't with
3896 for ac_file
in conftest.exe conftest conftest.
*; do
3897 test -f "$ac_file" ||
continue
3899 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3900 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3906 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3908 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3909 See \`config.log' for more details" "$LINENO" 5; }
3911 rm -f conftest conftest
$ac_cv_exeext
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3913 $as_echo "$ac_cv_exeext" >&6; }
3915 rm -f conftest.
$ac_ext
3916 EXEEXT
=$ac_cv_exeext
3918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3919 /* end confdefs.h. */
3924 FILE *f = fopen ("conftest.out", "w");
3925 return ferror (f) || fclose (f) != 0;
3931 ac_clean_files
="$ac_clean_files conftest.out"
3932 # Check that the compiler produces executables we can run. If not, either
3933 # the compiler is broken, or we cross compile.
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3935 $as_echo_n "checking whether we are cross compiling... " >&6; }
3936 if test "$cross_compiling" != yes; then
3937 { { ac_try
="$ac_link"
3939 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3940 *) ac_try_echo=$ac_try;;
3942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3943 $as_echo "$ac_try_echo"; } >&5
3944 (eval "$ac_link") 2>&5
3946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3947 test $ac_status = 0; }
3948 if { ac_try='./conftest$ac_cv_exeext'
3949 { { case "(($ac_try" in
3950 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3951 *) ac_try_echo
=$ac_try;;
3953 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3954 $as_echo "$ac_try_echo"; } >&5
3955 (eval "$ac_try") 2>&5
3957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3958 test $ac_status = 0; }; }; then
3961 if test "$cross_compiling" = maybe
; then
3964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3966 as_fn_error $?
"cannot run C compiled programs.
3967 If you meant to cross compile, use \`--host'.
3968 See \`config.log' for more details" "$LINENO" 5; }
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3973 $as_echo "$cross_compiling" >&6; }
3975 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3976 ac_clean_files
=$ac_clean_files_save
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3978 $as_echo_n "checking for suffix of object files... " >&6; }
3979 if ${ac_cv_objext+:} false
; then :
3980 $as_echo_n "(cached) " >&6
3982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3983 /* end confdefs.h. */
3993 rm -f conftest.o conftest.obj
3994 if { { ac_try
="$ac_compile"
3996 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3997 *) ac_try_echo=$ac_try;;
3999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4000 $as_echo "$ac_try_echo"; } >&5
4001 (eval "$ac_compile") 2>&5
4003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4004 test $ac_status = 0; }; then :
4005 for ac_file in conftest.o conftest.obj conftest.*; do
4006 test -f "$ac_file" || continue;
4008 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4009 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4014 $as_echo "$as_me: failed program was:" >&5
4015 sed 's/^/| /' conftest.$ac_ext >&5
4017 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4019 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4020 See \
`config.log' for more details" "$LINENO" 5; }
4022 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4025 $as_echo "$ac_cv_objext" >&6; }
4026 OBJEXT=$ac_cv_objext
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4029 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4030 if ${ac_cv_c_compiler_gnu+:} false; then :
4031 $as_echo_n "(cached) " >&6
4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034 /* end confdefs.h. */
4047 if ac_fn_c_try_compile "$LINENO"; then :
4052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4053 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4057 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4058 if test $ac_compiler_gnu = yes; then
4063 ac_test_CFLAGS=${CFLAGS+set}
4064 ac_save_CFLAGS=$CFLAGS
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4066 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4067 if ${ac_cv_prog_cc_g+:} false; then :
4068 $as_echo_n "(cached) " >&6
4070 ac_save_c_werror_flag=$ac_c_werror_flag
4071 ac_c_werror_flag=yes
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4085 if ac_fn_c_try_compile "$LINENO"; then :
4089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090 /* end confdefs.h. */
4100 if ac_fn_c_try_compile "$LINENO"; then :
4103 ac_c_werror_flag=$ac_save_c_werror_flag
4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h. */
4116 if ac_fn_c_try_compile "$LINENO"; then :
4119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4124 ac_c_werror_flag=$ac_save_c_werror_flag
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4127 $as_echo "$ac_cv_prog_cc_g" >&6; }
4128 if test "$ac_test_CFLAGS" = set; then
4129 CFLAGS=$ac_save_CFLAGS
4130 elif test $ac_cv_prog_cc_g = yes; then
4131 if test "$GCC" = yes; then
4137 if test "$GCC" = yes; then
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4144 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4145 if ${ac_cv_prog_cc_c89+:} false; then :
4146 $as_echo_n "(cached) " >&6
4148 ac_cv_prog_cc_c89=no
4150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4151 /* end confdefs.h. */
4155 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4156 struct buf { int x; };
4157 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4158 static char *e (p, i)
4164 static char *f (char * (*g) (char **, int), char **p, ...)
4169 s = g (p, va_arg (v,int));
4174 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4175 function prototypes and stuff, but not '\xHH' hex character constants.
4176 These don't provoke an error unfortunately, instead are silently treated
4177 as 'x'. The following induces an error, until -std is added to get
4178 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4179 array size at least. It's necessary to write '\x00'==0 to get something
4180 that's true only with -std. */
4181 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4183 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4184 inside strings and character constants. */
4186 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4188 int test (int i, double x);
4189 struct s1 {int (*f) (int a);};
4190 struct s2 {int (*f) (double a);};
4191 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4197 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4202 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4203 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4205 CC="$ac_save_CC $ac_arg"
4206 if ac_fn_c_try_compile "$LINENO"; then :
4207 ac_cv_prog_cc_c89=$ac_arg
4209 rm -f core conftest.err conftest.$ac_objext
4210 test "x$ac_cv_prog_cc_c89" != "xno" && break
4212 rm -f conftest.$ac_ext
4217 case "x$ac_cv_prog_cc_c89" in
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4220 $as_echo "none needed" >&6; } ;;
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4223 $as_echo "unsupported" >&6; } ;;
4225 CC="$CC $ac_cv_prog_cc_c89"
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4227 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4229 if test "x$ac_cv_prog_cc_c89" != xno; then :
4234 ac_cpp='$CPP $CPPFLAGS'
4235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4240 ac_cpp='$CPP $CPPFLAGS'
4241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4245 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4246 if ${am_cv_prog_cc_c_o+:} false; then :
4247 $as_echo_n "(cached) " >&6
4249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250 /* end confdefs.h. */
4260 # Make sure it works both with $CC and with simple cc.
4261 # Following AC_PROG_CC_C_O, we do the test twice because some
4262 # compilers refuse to overwrite an existing .o file with -o,
4263 # though they will create one.
4264 am_cv_prog_cc_c_o=yes
4266 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4267 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } \
4271 && test -f conftest2.$ac_objext; then
4274 am_cv_prog_cc_c_o=no
4278 rm -f core conftest*
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4282 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4283 if test "$am_cv_prog_cc_c_o" != yes; then
4284 # Losing compiler, so override with the script.
4285 # FIXME: It is wrong to rewrite CC.
4286 # But if we don't then we get into trouble of one sort or another.
4287 # A longer-term fix would be to have automake use am__CC in this case,
4288 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4289 CC="$am_aux_dir/compile $CC"
4292 ac_cpp='$CPP $CPPFLAGS'
4293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4297 DEPDIR="${am__leading_dot}deps"
4299 ac_config_commands="$ac_config_commands depfiles"
4302 am_make=${MAKE-make}
4303 cat > confinc << 'END'
4305 @echo this is the am__doit target
4308 # If we don't find an include directive, just comment out the code.
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4310 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4314 # First try GNU make style include.
4315 echo "include confinc" > confmf
4316 # Ignore all kinds of additional output from 'make'.
4317 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4318 *the\ am__doit\ target*)
4324 # Now try BSD make style include.
4325 if test "$am__include" = "#"; then
4326 echo '.include "confinc"' > confmf
4327 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4328 *the\ am__doit\ target*)
4329 am__include=.include
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4338 $as_echo "$_am_result" >&6; }
4339 rm -f confinc confmf
4341 # Check whether --enable-dependency-tracking was given.
4342 if test "${enable_dependency_tracking+set}" = set; then :
4343 enableval=$enable_dependency_tracking;
4346 if test "x$enable_dependency_tracking" != xno; then
4347 am_depcomp="$ac_aux_dir/depcomp"
4351 if test "x$enable_dependency_tracking" != xno; then
4361 depcc="$CC" am_compiler_list=
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4364 $as_echo_n "checking dependency style of $depcc... " >&6; }
4365 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4366 $as_echo_n "(cached) " >&6
4368 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4369 # We make a subdir and do the tests there. Otherwise we can end up
4370 # making bogus files that we don't know about and never remove. For
4371 # instance it was reported that on HP-UX the gcc test will end up
4372 # making a dummy file named 'D' -- because '-MD' means "put the output
4376 # Copy depcomp to subdir because otherwise we won't find it if we're
4377 # using a relative directory.
4378 cp "$am_depcomp" conftest.dir
4380 # We will build objects and dependencies in a subdirectory because
4381 # it helps to detect inapplicable dependency modes. For instance
4382 # both Tru64's cc and ICC support -MD to output dependencies as a
4383 # side effect of compilation, but ICC will put the dependencies in
4384 # the current directory while Tru64 will put them in the object
4388 am_cv_CC_dependencies_compiler_type=none
4389 if test "$am_compiler_list" = ""; then
4390 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4393 case " $depcc " in #(
4394 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4397 for depmode in $am_compiler_list; do
4398 # Setup a source with many dependencies, because some compilers
4399 # like to wrap large dependency lists on column 80 (with \), and
4400 # we should not choose a depcomp mode which is confused by this.
4402 # We need to recreate these files for each test, as the compiler may
4403 # overwrite some of them when testing with obscure command lines.
4404 # This happens at least with the AIX C compiler.
4406 for i in 1 2 3 4 5 6; do
4407 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4408 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4409 # Solaris 10 /bin/sh.
4410 echo '/* dummy */' > sub/conftst$i.h
4412 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4414 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4415 # mode. It turns out that the SunPro C++ compiler does not properly
4416 # handle '-M -o', and we need to detect this. Also, some Intel
4417 # versions had trouble with output in subdirs.
4418 am__obj=sub/conftest.${OBJEXT-o}
4419 am__minus_obj="-o $am__obj"
4422 # This depmode causes a compiler race in universal mode.
4423 test "$am__universal" = false || continue
4426 # After this tag, mechanisms are not by side-effect, so they'll
4427 # only be used when explicitly requested.
4428 if test "x$enable_dependency_tracking" = xyes; then
4434 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4435 # This compiler won't grok '-c -o', but also, the minuso test has
4436 # not run yet. These depmodes are late enough in the game, and
4437 # so weak that their functioning should not be impacted.
4438 am__obj=conftest.${OBJEXT-o}
4443 if depmode=$depmode \
4444 source=sub/conftest.c object=$am__obj \
4445 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4446 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4447 >/dev/null 2>conftest.err &&
4448 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4449 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4450 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4451 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4452 # icc doesn't choke on unknown options, it will just issue warnings
4453 # or remarks (even with -Werror). So we grep stderr for any message
4454 # that says an option was ignored or not supported.
4455 # When given -MP, icc 7.0 and 7.1 complain thusly:
4456 # icc: Command line warning: ignoring option '-M'; no argument required
4457 # The diagnosis changed in icc 8.0:
4458 # icc: Command line remark: option '-MP' not supported
4459 if (grep 'ignoring option' conftest.err ||
4460 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4461 am_cv_CC_dependencies_compiler_type=$depmode
4470 am_cv_CC_dependencies_compiler_type=none
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4475 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4476 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4479 test "x$enable_dependency_tracking" != xno \
4480 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4482 am__fastdepCC_FALSE='#'
4484 am__fastdepCC_TRUE='#'
4485 am__fastdepCC_FALSE=
4490 ac_cpp='$CXXCPP $CPPFLAGS'
4491 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4492 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4493 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4494 if test -z "$CXX"; then
4495 if test -n "$CCC"; then
4498 if test -n "$ac_tool_prefix"; then
4499 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4501 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4502 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4504 $as_echo_n "checking for $ac_word... " >&6; }
4505 if ${ac_cv_prog_CXX+:} false; then :
4506 $as_echo_n "(cached) " >&6
4508 if test -n "$CXX"; then
4509 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515 test -z "$as_dir" && as_dir=.
4516 for ac_exec_ext in '' $ac_executable_extensions; do
4517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4518 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4529 if test -n "$CXX"; then
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4531 $as_echo "$CXX" >&6; }
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4534 $as_echo "no" >&6; }
4538 test -n "$CXX" && break
4541 if test -z "$CXX"; then
4543 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4545 # Extract the first word of "$ac_prog", so it can be a program name with args.
4546 set dummy $ac_prog; ac_word=$2
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4548 $as_echo_n "checking for $ac_word... " >&6; }
4549 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4550 $as_echo_n "(cached) " >&6
4552 if test -n "$ac_ct_CXX"; then
4553 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559 test -z "$as_dir" && as_dir=.
4560 for ac_exec_ext in '' $ac_executable_extensions; do
4561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4562 ac_cv_prog_ac_ct_CXX="$ac_prog"
4563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4573 if test -n "$ac_ct_CXX"; then
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4575 $as_echo "$ac_ct_CXX" >&6; }
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4578 $as_echo "no" >&6; }
4582 test -n "$ac_ct_CXX" && break
4585 if test "x$ac_ct_CXX" = x; then
4588 case $cross_compiling:$ac_tool_warned in
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4592 ac_tool_warned=yes ;;
4600 # Provide some information about the compiler.
4601 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4604 for ac_option in --version -v -V -qversion; do
4605 { { ac_try="$ac_compiler $ac_option >&5"
4607 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4608 *) ac_try_echo
=$ac_try;;
4610 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4611 $as_echo "$ac_try_echo"; } >&5
4612 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4614 if test -s conftest.err
; then
4616 ... rest of stderr output deleted ...
4617 10q' conftest.err
>conftest.er1
4618 cat conftest.er1
>&5
4620 rm -f conftest.er1 conftest.err
4621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4622 test $ac_status = 0; }
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4626 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4627 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4628 $as_echo_n "(cached) " >&6
4630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4631 /* end confdefs.h. */
4644 if ac_fn_cxx_try_compile
"$LINENO"; then :
4649 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4650 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4654 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4655 if test $ac_compiler_gnu = yes; then
4660 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4661 ac_save_CXXFLAGS
=$CXXFLAGS
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4663 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4664 if ${ac_cv_prog_cxx_g+:} false
; then :
4665 $as_echo_n "(cached) " >&6
4667 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4668 ac_cxx_werror_flag
=yes
4671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h. */
4682 if ac_fn_cxx_try_compile
"$LINENO"; then :
4683 ac_cv_prog_cxx_g
=yes
4686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4687 /* end confdefs.h. */
4697 if ac_fn_cxx_try_compile
"$LINENO"; then :
4700 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4703 /* end confdefs.h. */
4713 if ac_fn_cxx_try_compile
"$LINENO"; then :
4714 ac_cv_prog_cxx_g
=yes
4716 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4718 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4720 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4721 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4724 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4725 if test "$ac_test_CXXFLAGS" = set; then
4726 CXXFLAGS
=$ac_save_CXXFLAGS
4727 elif test $ac_cv_prog_cxx_g = yes; then
4728 if test "$GXX" = yes; then
4734 if test "$GXX" = yes; then
4741 ac_cpp
='$CPP $CPPFLAGS'
4742 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4743 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4744 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4746 depcc
="$CXX" am_compiler_list
=
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4749 $as_echo_n "checking dependency style of $depcc... " >&6; }
4750 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
4751 $as_echo_n "(cached) " >&6
4753 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4754 # We make a subdir and do the tests there. Otherwise we can end up
4755 # making bogus files that we don't know about and never remove. For
4756 # instance it was reported that on HP-UX the gcc test will end up
4757 # making a dummy file named 'D' -- because '-MD' means "put the output
4761 # Copy depcomp to subdir because otherwise we won't find it if we're
4762 # using a relative directory.
4763 cp "$am_depcomp" conftest.dir
4765 # We will build objects and dependencies in a subdirectory because
4766 # it helps to detect inapplicable dependency modes. For instance
4767 # both Tru64's cc and ICC support -MD to output dependencies as a
4768 # side effect of compilation, but ICC will put the dependencies in
4769 # the current directory while Tru64 will put them in the object
4773 am_cv_CXX_dependencies_compiler_type
=none
4774 if test "$am_compiler_list" = ""; then
4775 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4778 case " $depcc " in #(
4779 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4782 for depmode
in $am_compiler_list; do
4783 # Setup a source with many dependencies, because some compilers
4784 # like to wrap large dependency lists on column 80 (with \), and
4785 # we should not choose a depcomp mode which is confused by this.
4787 # We need to recreate these files for each test, as the compiler may
4788 # overwrite some of them when testing with obscure command lines.
4789 # This happens at least with the AIX C compiler.
4791 for i
in 1 2 3 4 5 6; do
4792 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4793 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4794 # Solaris 10 /bin/sh.
4795 echo '/* dummy */' > sub
/conftst
$i.h
4797 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4799 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4800 # mode. It turns out that the SunPro C++ compiler does not properly
4801 # handle '-M -o', and we need to detect this. Also, some Intel
4802 # versions had trouble with output in subdirs.
4803 am__obj
=sub
/conftest.
${OBJEXT-o}
4804 am__minus_obj
="-o $am__obj"
4807 # This depmode causes a compiler race in universal mode.
4808 test "$am__universal" = false ||
continue
4811 # After this tag, mechanisms are not by side-effect, so they'll
4812 # only be used when explicitly requested.
4813 if test "x$enable_dependency_tracking" = xyes
; then
4819 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
4820 # This compiler won't grok '-c -o', but also, the minuso test has
4821 # not run yet. These depmodes are late enough in the game, and
4822 # so weak that their functioning should not be impacted.
4823 am__obj
=conftest.
${OBJEXT-o}
4828 if depmode
=$depmode \
4829 source=sub
/conftest.c object
=$am__obj \
4830 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4831 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4832 >/dev
/null
2>conftest.err
&&
4833 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4834 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4835 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4836 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4837 # icc doesn't choke on unknown options, it will just issue warnings
4838 # or remarks (even with -Werror). So we grep stderr for any message
4839 # that says an option was ignored or not supported.
4840 # When given -MP, icc 7.0 and 7.1 complain thusly:
4841 # icc: Command line warning: ignoring option '-M'; no argument required
4842 # The diagnosis changed in icc 8.0:
4843 # icc: Command line remark: option '-MP' not supported
4844 if (grep 'ignoring option' conftest.err ||
4845 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4846 am_cv_CXX_dependencies_compiler_type
=$depmode
4855 am_cv_CXX_dependencies_compiler_type
=none
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4860 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4861 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
4864 test "x$enable_dependency_tracking" != xno \
4865 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
4866 am__fastdepCXX_TRUE
=
4867 am__fastdepCXX_FALSE
='#'
4869 am__fastdepCXX_TRUE
='#'
4870 am__fastdepCXX_FALSE
=
4880 # By default we simply use the C compiler to build assembly code.
4882 test "${CCAS+set}" = set || CCAS
=$CC
4883 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
4887 depcc
="$CCAS" am_compiler_list
=
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4890 $as_echo_n "checking dependency style of $depcc... " >&6; }
4891 if ${am_cv_CCAS_dependencies_compiler_type+:} false
; then :
4892 $as_echo_n "(cached) " >&6
4894 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4895 # We make a subdir and do the tests there. Otherwise we can end up
4896 # making bogus files that we don't know about and never remove. For
4897 # instance it was reported that on HP-UX the gcc test will end up
4898 # making a dummy file named 'D' -- because '-MD' means "put the output
4902 # Copy depcomp to subdir because otherwise we won't find it if we're
4903 # using a relative directory.
4904 cp "$am_depcomp" conftest.dir
4906 # We will build objects and dependencies in a subdirectory because
4907 # it helps to detect inapplicable dependency modes. For instance
4908 # both Tru64's cc and ICC support -MD to output dependencies as a
4909 # side effect of compilation, but ICC will put the dependencies in
4910 # the current directory while Tru64 will put them in the object
4914 am_cv_CCAS_dependencies_compiler_type
=none
4915 if test "$am_compiler_list" = ""; then
4916 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4921 for depmode
in $am_compiler_list; do
4922 # Setup a source with many dependencies, because some compilers
4923 # like to wrap large dependency lists on column 80 (with \), and
4924 # we should not choose a depcomp mode which is confused by this.
4926 # We need to recreate these files for each test, as the compiler may
4927 # overwrite some of them when testing with obscure command lines.
4928 # This happens at least with the AIX C compiler.
4930 for i
in 1 2 3 4 5 6; do
4931 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4932 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4933 # Solaris 10 /bin/sh.
4934 echo '/* dummy */' > sub
/conftst
$i.h
4936 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4938 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4939 # mode. It turns out that the SunPro C++ compiler does not properly
4940 # handle '-M -o', and we need to detect this. Also, some Intel
4941 # versions had trouble with output in subdirs.
4942 am__obj
=sub
/conftest.
${OBJEXT-o}
4943 am__minus_obj
="-o $am__obj"
4946 # This depmode causes a compiler race in universal mode.
4947 test "$am__universal" = false ||
continue
4950 # After this tag, mechanisms are not by side-effect, so they'll
4951 # only be used when explicitly requested.
4952 if test "x$enable_dependency_tracking" = xyes
; then
4958 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
4959 # This compiler won't grok '-c -o', but also, the minuso test has
4960 # not run yet. These depmodes are late enough in the game, and
4961 # so weak that their functioning should not be impacted.
4962 am__obj
=conftest.
${OBJEXT-o}
4967 if depmode
=$depmode \
4968 source=sub
/conftest.c object
=$am__obj \
4969 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4970 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4971 >/dev
/null
2>conftest.err
&&
4972 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4973 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4974 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4975 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4976 # icc doesn't choke on unknown options, it will just issue warnings
4977 # or remarks (even with -Werror). So we grep stderr for any message
4978 # that says an option was ignored or not supported.
4979 # When given -MP, icc 7.0 and 7.1 complain thusly:
4980 # icc: Command line warning: ignoring option '-M'; no argument required
4981 # The diagnosis changed in icc 8.0:
4982 # icc: Command line remark: option '-MP' not supported
4983 if (grep 'ignoring option' conftest.err ||
4984 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4985 am_cv_CCAS_dependencies_compiler_type
=$depmode
4994 am_cv_CCAS_dependencies_compiler_type
=none
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4999 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5000 CCASDEPMODE
=depmode
=$am_cv_CCAS_dependencies_compiler_type
5003 test "x$enable_dependency_tracking" != xno \
5004 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3
; then
5005 am__fastdepCCAS_TRUE
=
5006 am__fastdepCCAS_FALSE
='#'
5008 am__fastdepCCAS_TRUE
='#'
5009 am__fastdepCCAS_FALSE
=
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5017 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5022 macro_version
='2.2.7a'
5023 macro_revision
='1.3134'
5037 ltmain
="$ac_aux_dir/ltmain.sh"
5039 # Backslashify metacharacters that are still active within
5040 # double-quoted strings.
5041 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
5043 # Same as above, but do not quote variable references.
5044 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
5046 # Sed substitution to delay expansion of an escaped shell variable in a
5047 # double_quote_subst'ed string.
5048 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
5050 # Sed substitution to delay expansion of an escaped single quote.
5051 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
5053 # Sed substitution to avoid accidental globbing in evaled expressions
5054 no_glob_subst
='s/\*/\\\*/g'
5056 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5057 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5058 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5061 $as_echo_n "checking how to print strings... " >&6; }
5062 # Test print first, because it will be a builtin if present.
5063 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5064 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5066 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5069 # Use this function as a fallback that always works.
5070 func_fallback_echo ()
5072 eval 'cat <<_LTECHO_EOF
5076 ECHO='func_fallback_echo
'
5079 # func_echo_all arg...
5080 # Invoke $ECHO with all args, space-separated.
5087 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5088 $as_echo "printf" >&6; } ;;
5089 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5090 $as_echo "print -r" >&6; } ;;
5091 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5092 $as_echo "cat" >&6; } ;;
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5109 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5110 if ${ac_cv_path_SED+:} false; then :
5111 $as_echo_n "(cached) " >&6
5113 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5114 for ac_i in 1 2 3 4 5 6 7; do
5115 ac_script="$ac_script$as_nl$ac_script"
5117 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5118 { ac_script=; unset ac_script;}
5119 if test -z "$SED"; then
5120 ac_path_SED_found=false
5121 # Loop through the user's path and
test for each of PROGNAME-LIST
5122 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5126 test -z "$as_dir" && as_dir
=.
5127 for ac_prog
in sed gsed
; do
5128 for ac_exec_ext
in '' $ac_executable_extensions; do
5129 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
5130 as_fn_executable_p
"$ac_path_SED" ||
continue
5131 # Check for GNU ac_path_SED and select it if it is found.
5132 # Check for GNU $ac_path_SED
5133 case `"$ac_path_SED" --version 2>&1` in
5135 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
5138 $as_echo_n 0123456789 >"conftest.in"
5141 cat "conftest.in" "conftest.in" >"conftest.tmp"
5142 mv "conftest.tmp" "conftest.in"
5143 cp "conftest.in" "conftest.nl"
5144 $as_echo '' >> "conftest.nl"
5145 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5146 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5147 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5148 if test $ac_count -gt ${ac_path_SED_max-0}; then
5149 # Best one so far, save it but keep looking for a better one
5150 ac_cv_path_SED
="$ac_path_SED"
5151 ac_path_SED_max
=$ac_count
5153 # 10*(2^10) chars as input seems more than enough
5154 test $ac_count -gt 10 && break
5156 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5159 $ac_path_SED_found && break 3
5164 if test -z "$ac_cv_path_SED"; then
5165 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5173 $as_echo "$ac_cv_path_SED" >&6; }
5174 SED
="$ac_cv_path_SED"
5177 test -z "$SED" && SED
=sed
5178 Xsed
="$SED -e 1s/^X//"
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5191 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5192 if ${ac_cv_path_GREP+:} false
; then :
5193 $as_echo_n "(cached) " >&6
5195 if test -z "$GREP"; then
5196 ac_path_GREP_found
=false
5197 # Loop through the user's path and test for each of PROGNAME-LIST
5198 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5199 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5202 test -z "$as_dir" && as_dir
=.
5203 for ac_prog
in grep ggrep
; do
5204 for ac_exec_ext
in '' $ac_executable_extensions; do
5205 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5206 as_fn_executable_p
"$ac_path_GREP" ||
continue
5207 # Check for GNU ac_path_GREP and select it if it is found.
5208 # Check for GNU $ac_path_GREP
5209 case `"$ac_path_GREP" --version 2>&1` in
5211 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5214 $as_echo_n 0123456789 >"conftest.in"
5217 cat "conftest.in" "conftest.in" >"conftest.tmp"
5218 mv "conftest.tmp" "conftest.in"
5219 cp "conftest.in" "conftest.nl"
5220 $as_echo 'GREP' >> "conftest.nl"
5221 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5222 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5223 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5224 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5225 # Best one so far, save it but keep looking for a better one
5226 ac_cv_path_GREP
="$ac_path_GREP"
5227 ac_path_GREP_max
=$ac_count
5229 # 10*(2^10) chars as input seems more than enough
5230 test $ac_count -gt 10 && break
5232 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5235 $ac_path_GREP_found && break 3
5240 if test -z "$ac_cv_path_GREP"; then
5241 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5244 ac_cv_path_GREP
=$GREP
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5249 $as_echo "$ac_cv_path_GREP" >&6; }
5250 GREP
="$ac_cv_path_GREP"
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5254 $as_echo_n "checking for egrep... " >&6; }
5255 if ${ac_cv_path_EGREP+:} false
; then :
5256 $as_echo_n "(cached) " >&6
5258 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5259 then ac_cv_path_EGREP
="$GREP -E"
5261 if test -z "$EGREP"; then
5262 ac_path_EGREP_found
=false
5263 # Loop through the user's path and test for each of PROGNAME-LIST
5264 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5265 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5268 test -z "$as_dir" && as_dir
=.
5269 for ac_prog
in egrep; do
5270 for ac_exec_ext
in '' $ac_executable_extensions; do
5271 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5272 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5273 # Check for GNU ac_path_EGREP and select it if it is found.
5274 # Check for GNU $ac_path_EGREP
5275 case `"$ac_path_EGREP" --version 2>&1` in
5277 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5280 $as_echo_n 0123456789 >"conftest.in"
5283 cat "conftest.in" "conftest.in" >"conftest.tmp"
5284 mv "conftest.tmp" "conftest.in"
5285 cp "conftest.in" "conftest.nl"
5286 $as_echo 'EGREP' >> "conftest.nl"
5287 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5288 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5289 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5290 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5291 # Best one so far, save it but keep looking for a better one
5292 ac_cv_path_EGREP
="$ac_path_EGREP"
5293 ac_path_EGREP_max
=$ac_count
5295 # 10*(2^10) chars as input seems more than enough
5296 test $ac_count -gt 10 && break
5298 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5301 $ac_path_EGREP_found && break 3
5306 if test -z "$ac_cv_path_EGREP"; then
5307 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5310 ac_cv_path_EGREP
=$EGREP
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5316 $as_echo "$ac_cv_path_EGREP" >&6; }
5317 EGREP
="$ac_cv_path_EGREP"
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5321 $as_echo_n "checking for fgrep... " >&6; }
5322 if ${ac_cv_path_FGREP+:} false
; then :
5323 $as_echo_n "(cached) " >&6
5325 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
5326 then ac_cv_path_FGREP
="$GREP -F"
5328 if test -z "$FGREP"; then
5329 ac_path_FGREP_found
=false
5330 # Loop through the user's path and test for each of PROGNAME-LIST
5331 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5332 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5335 test -z "$as_dir" && as_dir
=.
5336 for ac_prog
in fgrep
; do
5337 for ac_exec_ext
in '' $ac_executable_extensions; do
5338 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
5339 as_fn_executable_p
"$ac_path_FGREP" ||
continue
5340 # Check for GNU ac_path_FGREP and select it if it is found.
5341 # Check for GNU $ac_path_FGREP
5342 case `"$ac_path_FGREP" --version 2>&1` in
5344 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
5347 $as_echo_n 0123456789 >"conftest.in"
5350 cat "conftest.in" "conftest.in" >"conftest.tmp"
5351 mv "conftest.tmp" "conftest.in"
5352 cp "conftest.in" "conftest.nl"
5353 $as_echo 'FGREP' >> "conftest.nl"
5354 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5355 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5356 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5357 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5358 # Best one so far, save it but keep looking for a better one
5359 ac_cv_path_FGREP
="$ac_path_FGREP"
5360 ac_path_FGREP_max
=$ac_count
5362 # 10*(2^10) chars as input seems more than enough
5363 test $ac_count -gt 10 && break
5365 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5368 $ac_path_FGREP_found && break 3
5373 if test -z "$ac_cv_path_FGREP"; then
5374 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5377 ac_cv_path_FGREP
=$FGREP
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5383 $as_echo "$ac_cv_path_FGREP" >&6; }
5384 FGREP
="$ac_cv_path_FGREP"
5387 test -z "$GREP" && GREP
=grep
5407 # Check whether --with-gnu-ld was given.
5408 if test "${with_gnu_ld+set}" = set; then :
5409 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5415 if test "$GCC" = yes; then
5416 # Check if gcc -print-prog-name=ld gives a path.
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5418 $as_echo_n "checking for ld used by $CC... " >&6; }
5421 # gcc leaves a trailing carriage return which upsets mingw
5422 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5424 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5427 # Accept absolute paths.
5429 re_direlt
='/[^/][^/]*/\.\./'
5430 # Canonicalize the pathname of ld
5431 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5432 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
5433 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5435 test -z "$LD" && LD
="$ac_prog"
5438 # If it fails, then pretend we aren't using GCC.
5442 # If it is relative, then search for the first ld in PATH.
5446 elif test "$with_gnu_ld" = yes; then
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5448 $as_echo_n "checking for GNU ld... " >&6; }
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5451 $as_echo_n "checking for non-GNU ld... " >&6; }
5453 if ${lt_cv_path_LD+:} false
; then :
5454 $as_echo_n "(cached) " >&6
5456 if test -z "$LD"; then
5457 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5458 for ac_dir
in $PATH; do
5460 test -z "$ac_dir" && ac_dir
=.
5461 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5462 lt_cv_path_LD
="$ac_dir/$ac_prog"
5463 # Check to see if the program is GNU ld. I'd rather use --version,
5464 # but apparently some variants of GNU ld only accept -v.
5465 # Break only if it was the GNU/non-GNU ld that we prefer.
5466 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5467 *GNU
* |
*'with BFD'*)
5468 test "$with_gnu_ld" != no
&& break
5471 test "$with_gnu_ld" != yes && break
5478 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
5483 if test -n "$LD"; then
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5485 $as_echo "$LD" >&6; }
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5488 $as_echo "no" >&6; }
5490 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5492 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5493 if ${lt_cv_prog_gnu_ld+:} false
; then :
5494 $as_echo_n "(cached) " >&6
5496 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5497 case `$LD -v 2>&1 </dev/null` in
5498 *GNU
* |
*'with BFD'*)
5499 lt_cv_prog_gnu_ld
=yes
5502 lt_cv_prog_gnu_ld
=no
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5507 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5508 with_gnu_ld
=$lt_cv_prog_gnu_ld
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5519 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5520 if ${lt_cv_path_NM+:} false
; then :
5521 $as_echo_n "(cached) " >&6
5523 if test -n "$NM"; then
5524 # Let the user override the test.
5527 lt_nm_to_check
="${ac_tool_prefix}nm"
5528 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5529 lt_nm_to_check
="$lt_nm_to_check nm"
5531 for lt_tmp_nm
in $lt_nm_to_check; do
5532 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5533 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
5535 test -z "$ac_dir" && ac_dir
=.
5536 tmp_nm
="$ac_dir/$lt_tmp_nm"
5537 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
5538 # Check to see if the nm accepts a BSD-compat flag.
5539 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5540 # nm: unknown option "B" ignored
5541 # Tru64's nm complains that /dev/null is an invalid object file
5542 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5543 */dev
/null
* |
*'Invalid file or object type'*)
5544 lt_cv_path_NM
="$tmp_nm -B"
5548 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5550 lt_cv_path_NM
="$tmp_nm -p"
5554 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5555 continue # so that we can try to find one that supports BSD flags
5564 : ${lt_cv_path_NM=no}
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5568 $as_echo "$lt_cv_path_NM" >&6; }
5569 if test "$lt_cv_path_NM" != "no"; then
5572 # Didn't find any BSD compatible name lister, look for dumpbin.
5573 if test -n "$DUMPBIN"; then :
5574 # Let the user override the test.
5576 if test -n "$ac_tool_prefix"; then
5577 for ac_prog
in dumpbin
"link -dump"
5579 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5580 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5582 $as_echo_n "checking for $ac_word... " >&6; }
5583 if ${ac_cv_prog_DUMPBIN+:} false
; then :
5584 $as_echo_n "(cached) " >&6
5586 if test -n "$DUMPBIN"; then
5587 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
5589 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5593 test -z "$as_dir" && as_dir
=.
5594 for ac_exec_ext
in '' $ac_executable_extensions; do
5595 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5596 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
5597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5606 DUMPBIN
=$ac_cv_prog_DUMPBIN
5607 if test -n "$DUMPBIN"; then
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5609 $as_echo "$DUMPBIN" >&6; }
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5612 $as_echo "no" >&6; }
5616 test -n "$DUMPBIN" && break
5619 if test -z "$DUMPBIN"; then
5620 ac_ct_DUMPBIN
=$DUMPBIN
5621 for ac_prog
in dumpbin
"link -dump"
5623 # Extract the first word of "$ac_prog", so it can be a program name with args.
5624 set dummy
$ac_prog; ac_word
=$2
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5626 $as_echo_n "checking for $ac_word... " >&6; }
5627 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
5628 $as_echo_n "(cached) " >&6
5630 if test -n "$ac_ct_DUMPBIN"; then
5631 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
5633 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5637 test -z "$as_dir" && as_dir
=.
5638 for ac_exec_ext
in '' $ac_executable_extensions; do
5639 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5640 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
5641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5650 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
5651 if test -n "$ac_ct_DUMPBIN"; then
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5653 $as_echo "$ac_ct_DUMPBIN" >&6; }
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656 $as_echo "no" >&6; }
5660 test -n "$ac_ct_DUMPBIN" && break
5663 if test "x$ac_ct_DUMPBIN" = x
; then
5666 case $cross_compiling:$ac_tool_warned in
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5670 ac_tool_warned
=yes ;;
5672 DUMPBIN
=$ac_ct_DUMPBIN
5676 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5678 DUMPBIN
="$DUMPBIN -symbols"
5686 if test "$DUMPBIN" != ":"; then
5690 test -z "$NM" && NM
=nm
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5698 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5699 if ${lt_cv_nm_interface+:} false
; then :
5700 $as_echo_n "(cached) " >&6
5702 lt_cv_nm_interface
="BSD nm"
5703 echo "int some_variable = 0;" > conftest.
$ac_ext
5704 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5705 (eval "$ac_compile" 2>conftest.err
)
5706 cat conftest.err
>&5
5707 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5708 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
5709 cat conftest.err
>&5
5710 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5711 cat conftest.out
>&5
5712 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
5713 lt_cv_nm_interface
="MS dumpbin"
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5718 $as_echo "$lt_cv_nm_interface" >&6; }
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5721 $as_echo_n "checking whether ln -s works... " >&6; }
5723 if test "$LN_S" = "ln -s"; then
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5725 $as_echo "yes" >&6; }
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5728 $as_echo "no, using $LN_S" >&6; }
5731 # find the maximum length of command line arguments
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5733 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5734 if ${lt_cv_sys_max_cmd_len+:} false
; then :
5735 $as_echo_n "(cached) " >&6
5742 # On DJGPP, this test can blow up pretty badly due to problems in libc
5743 # (any single argument exceeding 2000 bytes causes a buffer overrun
5744 # during glob expansion). Even if it were fixed, the result of this
5745 # check would be larger than it should be.
5746 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
5750 # Under GNU Hurd, this test is not required because there is
5751 # no limit to the length of command line arguments.
5752 # Libtool will interpret -1 as no limit whatsoever
5753 lt_cv_sys_max_cmd_len
=-1;
5756 cygwin
* | mingw
* | cegcc
*)
5757 # On Win9x/ME, this test blows up -- it succeeds, but takes
5758 # about 5 minutes as the teststring grows exponentially.
5759 # Worse, since 9x/ME are not pre-emptively multitasking,
5760 # you end up with a "frozen" computer, even though with patience
5761 # the test eventually succeeds (with a max line length of 256k).
5762 # Instead, let's just punt: use the minimum linelength reported by
5763 # all of the supported platforms: 8192 (on NT/2K/XP).
5764 lt_cv_sys_max_cmd_len
=8192;
5768 # On MiNT this can take a long time and run out of memory.
5769 lt_cv_sys_max_cmd_len
=8192;
5773 # On AmigaOS with pdksh, this test takes hours, literally.
5774 # So we just punt and use a minimum line length of 8192.
5775 lt_cv_sys_max_cmd_len
=8192;
5778 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
5779 # This has been around since 386BSD, at least. Likely further.
5780 if test -x /sbin
/sysctl
; then
5781 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
5782 elif test -x /usr
/sbin
/sysctl
; then
5783 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
5785 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
5787 # And add a safety zone
5788 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5789 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5793 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5794 lt_cv_sys_max_cmd_len
=196608
5798 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5799 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5800 # nice to cause kernel panics so lets avoid the loop below.
5801 # First set a reasonable default.
5802 lt_cv_sys_max_cmd_len
=16384
5804 if test -x /sbin
/sysconfig
; then
5805 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5806 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
5811 lt_cv_sys_max_cmd_len
=102400
5813 sysv5
* | sco5v6
* | sysv4.2uw2
*)
5814 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5815 if test -n "$kargmax"; then
5816 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
5818 lt_cv_sys_max_cmd_len
=32768
5822 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
5823 if test -n "$lt_cv_sys_max_cmd_len"; then
5824 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5825 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5827 # Make teststring a little bigger before we do anything with it.
5828 # a 1K string should be a reasonable start.
5829 for i
in 1 2 3 4 5 6 7 8 ; do
5830 teststring
=$teststring$teststring
5832 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
5833 # If test is not a shell built-in, we'll probably end up computing a
5834 # maximum length that is only half of the actual maximum length, but
5836 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5837 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
5838 test $i != 17 # 1/2 MB should be enough
5841 teststring
=$teststring$teststring
5843 # Only check the string length outside the loop.
5844 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
5846 # Add a significant safety factor because C++ compilers can tack on
5847 # massive amounts of additional arguments before passing them to the
5848 # linker. It appears as though 1/2 is a usable value.
5849 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
5856 if test -n $lt_cv_sys_max_cmd_len ; then
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5858 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5861 $as_echo "none" >&6; }
5863 max_cmd_len
=$lt_cv_sys_max_cmd_len
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5875 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5876 # Try some XSI features
5879 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5881 && eval 'test $(( 1 + 1 )) -eq 2 \
5882 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
5885 $as_echo "$xsi_shell" >&6; }
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
5889 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
5891 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
5893 && lt_shell_append=yes
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
5895 $as_echo "$lt_shell_append" >&6; }
5898 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5908 # test EBCDIC or ASCII
5909 case `echo X|tr X '\101'` in
5910 A) # ASCII based system
5911 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5912 lt_SP2NL='tr \040 \012'
5913 lt_NL2SP='tr \015\012 \040\040'
5915 *) # EBCDIC based system
5916 lt_SP2NL='tr \100 \n'
5917 lt_NL2SP='tr \r\n \100\100'
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
5930 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
5931 if ${lt_cv_ld_reload_flag+:} false; then :
5932 $as_echo_n "(cached
) " >&6
5934 lt_cv_ld_reload_flag='-r'
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
5937 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5938 reload_flag=$lt_cv_ld_reload_flag
5939 case $reload_flag in
5941 *) reload_flag=" $reload_flag" ;;
5943 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5946 if test "$GCC" = yes; then
5947 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5949 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5962 if test -n "$ac_tool_prefix"; then
5963 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5964 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5966 $as_echo_n "checking
for $ac_word...
" >&6; }
5967 if ${ac_cv_prog_OBJDUMP+:} false; then :
5968 $as_echo_n "(cached
) " >&6
5970 if test -n "$OBJDUMP"; then
5971 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5977 test -z "$as_dir" && as_dir=.
5978 for ac_exec_ext in '' $ac_executable_extensions; do
5979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5980 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5981 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5990 OBJDUMP=$ac_cv_prog_OBJDUMP
5991 if test -n "$OBJDUMP"; then
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
5993 $as_echo "$OBJDUMP" >&6; }
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5996 $as_echo "no
" >&6; }
6001 if test -z "$ac_cv_prog_OBJDUMP"; then
6002 ac_ct_OBJDUMP=$OBJDUMP
6003 # Extract the first word of "objdump
", so it can be a program name with args.
6004 set dummy objdump; ac_word=$2
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6006 $as_echo_n "checking
for $ac_word...
" >&6; }
6007 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6008 $as_echo_n "(cached
) " >&6
6010 if test -n "$ac_ct_OBJDUMP"; then
6011 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017 test -z "$as_dir" && as_dir=.
6018 for ac_exec_ext in '' $ac_executable_extensions; do
6019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6020 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
6021 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6030 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6031 if test -n "$ac_ct_OBJDUMP"; then
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
6033 $as_echo "$ac_ct_OBJDUMP" >&6; }
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6036 $as_echo "no
" >&6; }
6039 if test "x
$ac_ct_OBJDUMP" = x; then
6042 case $cross_compiling:$ac_tool_warned in
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6045 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6046 ac_tool_warned=yes ;;
6048 OBJDUMP=$ac_ct_OBJDUMP
6051 OBJDUMP="$ac_cv_prog_OBJDUMP"
6054 test -z "$OBJDUMP" && OBJDUMP=objdump
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
6065 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
6066 if ${lt_cv_deplibs_check_method+:} false; then :
6067 $as_echo_n "(cached
) " >&6
6069 lt_cv_file_magic_cmd='$MAGIC_CMD'
6070 lt_cv_file_magic_test_file=
6071 lt_cv_deplibs_check_method='unknown'
6072 # Need to set the preceding variable on all platforms that support
6073 # interlibrary dependencies.
6074 # 'none' -- dependencies not supported.
6075 # `unknown' -- same as none, but documents that we really don't know.
6076 # 'pass_all' -- all dependencies passed with no checks.
6077 # 'test_compile' -- check by making test program.
6078 # 'file_magic [[regex]]' -- check by looking for files in library path
6079 # which responds to the $file_magic_cmd with a given extended regex.
6080 # If you have `file' or equivalent on your system and you're not sure
6081 # whether `pass_all' will *always* work, you probably want this one.
6085 lt_cv_deplibs_check_method=pass_all
6089 lt_cv_deplibs_check_method=pass_all
6093 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6094 lt_cv_file_magic_cmd='/usr/bin/file -L'
6095 lt_cv_file_magic_test_file=/shlib/libc.so
6099 # func_win32_libid is a shell function defined in ltmain.sh
6100 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6101 lt_cv_file_magic_cmd='func_win32_libid'
6105 # Base MSYS/MinGW do not provide the 'file' command needed by
6106 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6107 # unless we find 'file', for example because we are cross-compiling.
6108 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6109 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
6110 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6111 lt_cv_file_magic_cmd='func_win32_libid'
6113 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6114 lt_cv_file_magic_cmd='$OBJDUMP -f'
6119 # use the weaker test based on 'objdump'. See mingw*.
6120 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6121 lt_cv_file_magic_cmd='$OBJDUMP -f'
6124 darwin* | rhapsody*)
6125 lt_cv_deplibs_check_method=pass_all
6128 freebsd* | dragonfly*)
6129 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6132 # Not sure whether the presence of OpenBSD here was a mistake.
6133 # Let's accept both of them until this is cleared up.
6134 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6135 lt_cv_file_magic_cmd=/usr/bin/file
6136 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6140 lt_cv_deplibs_check_method=pass_all
6145 lt_cv_deplibs_check_method=pass_all
6149 lt_cv_deplibs_check_method=pass_all
6152 hpux10.20* | hpux11*)
6153 lt_cv_file_magic_cmd=/usr/bin/file
6156 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6157 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6160 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]'
6161 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6164 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6165 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6171 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6172 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6175 irix5* | irix6* | nonstopux*)
6177 *-32|*"-32 ") libmagic=32-bit;;
6178 *-n32|*"-n32 ") libmagic=N32;;
6179 *-64|*"-64 ") libmagic=64-bit;;
6180 *) libmagic=never-match;;
6182 lt_cv_deplibs_check_method=pass_all
6185 # This must be Linux ELF.
6186 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6187 lt_cv_deplibs_check_method=pass_all
6191 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6192 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6194 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6199 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6200 lt_cv_file_magic_cmd=/usr/bin/file
6201 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6205 lt_cv_deplibs_check_method=pass_all
6209 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
6210 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6212 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6216 osf3* | osf4* | osf5*)
6217 lt_cv_deplibs_check_method=pass_all
6221 lt_cv_deplibs_check_method=pass_all
6225 lt_cv_deplibs_check_method=pass_all
6228 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6229 lt_cv_deplibs_check_method=pass_all
6233 case $host_vendor in
6235 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]'
6236 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6239 lt_cv_deplibs_check_method=pass_all
6242 lt_cv_file_magic_cmd='/bin/file'
6243 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6246 lt_cv_file_magic_cmd='/bin/file'
6247 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
6248 lt_cv_file_magic_test_file=/lib/libc.so
6251 lt_cv_deplibs_check_method=pass_all
6254 lt_cv_deplibs_check_method=pass_all
6260 lt_cv_deplibs_check_method=pass_all
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
6266 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6267 file_magic_cmd=$lt_cv_file_magic_cmd
6268 deplibs_check_method=$lt_cv_deplibs_check_method
6269 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6282 if test -n "$ac_tool_prefix"; then
6283 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6284 set dummy ${ac_tool_prefix}ar; ac_word=$2
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6286 $as_echo_n "checking
for $ac_word...
" >&6; }
6287 if ${ac_cv_prog_AR+:} false; then :
6288 $as_echo_n "(cached
) " >&6
6290 if test -n "$AR"; then
6291 ac_cv_prog_AR="$AR" # Let the user override the test.
6293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297 test -z "$as_dir" && as_dir=.
6298 for ac_exec_ext in '' $ac_executable_extensions; do
6299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6300 ac_cv_prog_AR="${ac_tool_prefix}ar"
6301 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6311 if test -n "$AR"; then
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
6313 $as_echo "$AR" >&6; }
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6316 $as_echo "no
" >&6; }
6321 if test -z "$ac_cv_prog_AR"; then
6323 # Extract the first word of "ar", so it can be a program name with args.
6324 set dummy ar; ac_word=$2
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6326 $as_echo_n "checking
for $ac_word...
" >&6; }
6327 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6328 $as_echo_n "(cached
) " >&6
6330 if test -n "$ac_ct_AR"; then
6331 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6337 test -z "$as_dir" && as_dir=.
6338 for ac_exec_ext in '' $ac_executable_extensions; do
6339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6340 ac_cv_prog_ac_ct_AR="ar"
6341 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6350 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6351 if test -n "$ac_ct_AR"; then
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
6353 $as_echo "$ac_ct_AR" >&6; }
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6356 $as_echo "no
" >&6; }
6359 if test "x
$ac_ct_AR" = x; then
6362 case $cross_compiling:$ac_tool_warned in
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6365 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6366 ac_tool_warned=yes ;;
6374 test -z "$AR" && AR=ar
6375 test -z "$AR_FLAGS" && AR_FLAGS=cru
6387 if test -n "$ac_tool_prefix"; then
6388 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
6389 set dummy ${ac_tool_prefix}strip; ac_word=$2
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6391 $as_echo_n "checking
for $ac_word...
" >&6; }
6392 if ${ac_cv_prog_STRIP+:} false; then :
6393 $as_echo_n "(cached
) " >&6
6395 if test -n "$STRIP"; then
6396 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402 test -z "$as_dir" && as_dir=.
6403 for ac_exec_ext in '' $ac_executable_extensions; do
6404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6405 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
6406 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6415 STRIP=$ac_cv_prog_STRIP
6416 if test -n "$STRIP"; then
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
6418 $as_echo "$STRIP" >&6; }
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6421 $as_echo "no
" >&6; }
6426 if test -z "$ac_cv_prog_STRIP"; then
6428 # Extract the first word of "strip
", so it can be a program name with args.
6429 set dummy strip; ac_word=$2
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6431 $as_echo_n "checking
for $ac_word...
" >&6; }
6432 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6433 $as_echo_n "(cached
) " >&6
6435 if test -n "$ac_ct_STRIP"; then
6436 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 test -z "$as_dir" && as_dir=.
6443 for ac_exec_ext in '' $ac_executable_extensions; do
6444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6445 ac_cv_prog_ac_ct_STRIP="strip
"
6446 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6455 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6456 if test -n "$ac_ct_STRIP"; then
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
6458 $as_echo "$ac_ct_STRIP" >&6; }
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6461 $as_echo "no
" >&6; }
6464 if test "x
$ac_ct_STRIP" = x; then
6467 case $cross_compiling:$ac_tool_warned in
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6470 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6471 ac_tool_warned=yes ;;
6476 STRIP="$ac_cv_prog_STRIP"
6479 test -z "$STRIP" && STRIP=:
6486 if test -n "$ac_tool_prefix"; then
6487 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
6488 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6490 $as_echo_n "checking
for $ac_word...
" >&6; }
6491 if ${ac_cv_prog_RANLIB+:} false; then :
6492 $as_echo_n "(cached
) " >&6
6494 if test -n "$RANLIB"; then
6495 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6501 test -z "$as_dir" && as_dir=.
6502 for ac_exec_ext in '' $ac_executable_extensions; do
6503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6504 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
6505 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6514 RANLIB=$ac_cv_prog_RANLIB
6515 if test -n "$RANLIB"; then
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
6517 $as_echo "$RANLIB" >&6; }
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6520 $as_echo "no
" >&6; }
6525 if test -z "$ac_cv_prog_RANLIB"; then
6526 ac_ct_RANLIB=$RANLIB
6527 # Extract the first word of "ranlib
", so it can be a program name with args.
6528 set dummy ranlib; ac_word=$2
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6530 $as_echo_n "checking
for $ac_word...
" >&6; }
6531 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6532 $as_echo_n "(cached
) " >&6
6534 if test -n "$ac_ct_RANLIB"; then
6535 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541 test -z "$as_dir" && as_dir=.
6542 for ac_exec_ext in '' $ac_executable_extensions; do
6543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6544 ac_cv_prog_ac_ct_RANLIB="ranlib
"
6545 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6554 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6555 if test -n "$ac_ct_RANLIB"; then
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
6557 $as_echo "$ac_ct_RANLIB" >&6; }
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6560 $as_echo "no
" >&6; }
6563 if test "x
$ac_ct_RANLIB" = x; then
6566 case $cross_compiling:$ac_tool_warned in
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6569 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6570 ac_tool_warned=yes ;;
6572 RANLIB=$ac_ct_RANLIB
6575 RANLIB="$ac_cv_prog_RANLIB"
6578 test -z "$RANLIB" && RANLIB=:
6585 # Determine commands to create old-style static archives.
6586 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6587 old_postinstall_cmds='chmod 644 $oldlib'
6588 old_postuninstall_cmds=
6590 if test -n "$RANLIB"; then
6593 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
6596 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
6599 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
6604 lock_old_archive_extraction=yes ;;
6606 lock_old_archive_extraction=no ;;
6647 # If no C compiler was specified, use CC.
6650 # If no C compiler flags were specified, use CFLAGS.
6651 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6653 # Allow CC to be a program name with arguments.
6657 # Check for command to grab the raw symbol name followed by C symbol from nm.
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
6659 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
6660 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6661 $as_echo_n "(cached
) " >&6
6664 # These are sane defaults that work on at least a few old systems.
6665 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6667 # Character class describing NM global symbol codes.
6668 symcode='[BCDEGRST]'
6670 # Regexp to match symbols that can be accessed directly from C.
6671 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6673 # Define system-specific variables.
6678 cygwin* | mingw* | pw32* | cegcc*)
6679 symcode='[ABCDGISTW]'
6682 if test "$host_cpu" = ia64; then
6683 symcode='[ABCDEGRST]'
6687 symcode='[BCDEGRST]'
6690 symcode='[BCDEGQRST]'
6701 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6709 # If we're using GNU nm, then use its standard symbol codes.
6710 case `$NM -V 2>&1` in
6711 *GNU* | *'with BFD'*)
6712 symcode='[ABCDGIRSTW]' ;;
6715 # Transform an extracted symbol line into a proper C declaration.
6716 # Some systems (esp. on ia64) link data and code symbols differently,
6717 # so use this general approach.
6718 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6720 # Transform an extracted symbol line into symbol name and symbol address
6721 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6722 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'"
6724 # Handle CRLF in mingw tool chain
6728 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6732 # Try without a prefix underscore, then with it.
6733 for ac_symprfx in "" "_
"; do
6735 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6736 symxfrm="\\1 $ac_symprfx\\2 \\2"
6738 # Write the raw and C identifiers.
6739 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6740 # Fake it for dumpbin and say T for any non-static function
6741 # and D for any global variable.
6742 # Also find C++ and __fastcall symbols from MSVC++,
6743 # which start with @ or ?.
6744 lt_cv_sys_global_symbol_pipe="$AWK '"\
6745 " {last_section=section; section=\$ 3};"\
6746 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6747 " \$ 0!~/External *\|/{next};"\
6748 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6749 " {if(hide[section]) next};"\
6750 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6751 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6752 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6753 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6754 " ' prfx
=^
$ac_symprfx"
6756 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6759 # Check to see that the pipe works correctly.
6763 cat > conftest.$ac_ext <<_LT_EOF
6768 void nm_test_func(void);
6769 void nm_test_func(void){}
6773 int main(){nm_test_var='a';nm_test_func();return(0);}
6776 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6777 (eval $ac_compile) 2>&5
6779 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6780 test $ac_status = 0; }; then
6781 # Now try to grab the symbols.
6783 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
6784 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6786 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6787 test $ac_status = 0; } && test -s "$nlist"; then
6788 # Try sorting and uniquifying the output.
6789 if sort "$nlist" | uniq > "$nlist"T; then
6790 mv -f "$nlist"T "$nlist"
6795 # Make sure that we snagged all the symbols we need.
6796 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6797 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6798 cat <<_LT_EOF > conftest.$ac_ext
6804 # Now generate the symbol file.
6805 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6807 cat <<_LT_EOF >> conftest.$ac_ext
6809 /* The mapping between symbol names and symbols. */
6814 lt__PROGRAM__LTX_preloaded_symbols[] =
6816 { "@PROGRAM@
", (void *) 0 },
6818 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6819 cat <<\_LT_EOF >> conftest.$ac_ext
6823 /* This works around a problem in FreeBSD linker */
6824 #ifdef FREEBSD_WORKAROUND
6825 static const void *lt_preloaded_setup() {
6826 return lt__PROGRAM__LTX_preloaded_symbols;
6834 # Now try linking the two files.
6835 mv conftest.$ac_objext conftstm.$ac_objext
6836 lt_save_LIBS="$LIBS"
6837 lt_save_CFLAGS="$CFLAGS"
6838 LIBS="conftstm.
$ac_objext"
6839 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6840 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6841 (eval $ac_link) 2>&5
6843 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6844 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6847 LIBS="$lt_save_LIBS"
6848 CFLAGS="$lt_save_CFLAGS"
6850 echo "cannot
find nm_test_func
in $nlist" >&5
6853 echo "cannot
find nm_test_var
in $nlist" >&5
6856 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
6859 echo "$progname: failed program was
:" >&5
6860 cat conftest.$ac_ext >&5
6862 rm -rf conftest* conftst*
6864 # Do not use the global_symbol_pipe unless it works.
6865 if test "$pipe_works" = yes; then
6868 lt_cv_sys_global_symbol_pipe=
6874 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6875 lt_cv_sys_global_symbol_to_cdecl=
6877 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
6879 $as_echo "failed
" >&6; }
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
6882 $as_echo "ok
" >&6; }
6907 # Check whether --enable-libtool-lock was given.
6908 if test "${enable_libtool_lock+set}" = set; then :
6909 enableval=$enable_libtool_lock;
6912 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
6914 # Some flags need to be propagated to the compiler or linker for good
6918 # Find out which ABI we are using.
6919 echo 'int i;' > conftest.$ac_ext
6920 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6921 (eval $ac_compile) 2>&5
6923 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6924 test $ac_status = 0; }; then
6925 case `/usr/bin/file conftest.$ac_objext` in
6937 # Find out which ABI we are using.
6938 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
6939 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6940 (eval $ac_compile) 2>&5
6942 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6943 test $ac_status = 0; }; then
6944 if test "$lt_cv_prog_gnu_ld" = yes; then
6945 case `/usr/bin/file conftest.$ac_objext` in
6947 LD="${LD-ld} -melf32bsmip"
6950 LD="${LD-ld} -melf32bmipn32"
6953 LD="${LD-ld} -melf64bmip"
6957 case `/usr/bin/file conftest.$ac_objext` in
6973 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6974 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6975 # Find out which ABI we are using.
6976 echo 'int i;' > conftest.$ac_ext
6977 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6978 (eval $ac_compile) 2>&5
6980 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6981 test $ac_status = 0; }; then
6982 case `/usr/bin/file conftest.o` in
6985 x86_64-*kfreebsd*-gnu)
6986 LD="${LD-ld} -m elf_i386_fbsd
"
6989 case `/usr/bin/file conftest.o` in
6991 LD="${LD-ld} -m elf32_x86_64
"
6994 LD="${LD-ld} -m elf_i386
"
6998 powerpc64le-*linux*)
6999 LD="${LD-ld} -m elf32lppclinux
"
7002 LD="${LD-ld} -m elf32ppclinux
"
7005 LD="${LD-ld} -m elf_s390
"
7008 LD="${LD-ld} -m elf32_sparc
"
7014 x86_64-*kfreebsd*-gnu)
7015 LD="${LD-ld} -m elf_x86_64_fbsd
"
7018 LD="${LD-ld} -m elf_x86_64
"
7021 LD="${LD-ld} -m elf64lppc
"
7024 LD="${LD-ld} -m elf64ppc
"
7026 s390*-*linux*|s390*-*tpf*)
7027 LD="${LD-ld} -m elf64_s390
"
7030 LD="${LD-ld} -m elf64_sparc
"
7040 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7041 SAVE_CFLAGS="$CFLAGS"
7042 CFLAGS="$CFLAGS -belf"
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
7044 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
7045 if ${lt_cv_cc_needs_belf+:} false; then :
7046 $as_echo_n "(cached
) " >&6
7049 ac_cpp='$CPP $CPPFLAGS'
7050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7055 /* end confdefs.h. */
7065 if ac_fn_c_try_link "$LINENO"; then :
7066 lt_cv_cc_needs_belf=yes
7068 lt_cv_cc_needs_belf=no
7070 rm -f core conftest.err conftest.$ac_objext \
7071 conftest$ac_exeext conftest.$ac_ext
7073 ac_cpp='$CPP $CPPFLAGS'
7074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
7080 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7081 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7082 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7083 CFLAGS="$SAVE_CFLAGS"
7087 # Find out which ABI we are using.
7088 echo 'int i;' > conftest.$ac_ext
7089 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7090 (eval $ac_compile) 2>&5
7092 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7093 test $ac_status = 0; }; then
7094 case `/usr/bin/file conftest.o` in
7096 case $lt_cv_prog_gnu_ld in
7097 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
7099 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7111 need_locks="$enable_libtool_lock"
7115 rhapsody* | darwin*)
7116 if test -n "$ac_tool_prefix"; then
7117 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
7118 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7120 $as_echo_n "checking
for $ac_word...
" >&6; }
7121 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7122 $as_echo_n "(cached
) " >&6
7124 if test -n "$DSYMUTIL"; then
7125 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131 test -z "$as_dir" && as_dir=.
7132 for ac_exec_ext in '' $ac_executable_extensions; do
7133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7134 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
7135 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7144 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7145 if test -n "$DSYMUTIL"; then
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
7147 $as_echo "$DSYMUTIL" >&6; }
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7150 $as_echo "no
" >&6; }
7155 if test -z "$ac_cv_prog_DSYMUTIL"; then
7156 ac_ct_DSYMUTIL=$DSYMUTIL
7157 # Extract the first word of "dsymutil
", so it can be a program name with args.
7158 set dummy dsymutil; ac_word=$2
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7160 $as_echo_n "checking
for $ac_word...
" >&6; }
7161 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7162 $as_echo_n "(cached
) " >&6
7164 if test -n "$ac_ct_DSYMUTIL"; then
7165 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 test -z "$as_dir" && as_dir=.
7172 for ac_exec_ext in '' $ac_executable_extensions; do
7173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7174 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
7175 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7184 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7185 if test -n "$ac_ct_DSYMUTIL"; then
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
7187 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7190 $as_echo "no
" >&6; }
7193 if test "x
$ac_ct_DSYMUTIL" = x; then
7196 case $cross_compiling:$ac_tool_warned in
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7199 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7200 ac_tool_warned=yes ;;
7202 DSYMUTIL=$ac_ct_DSYMUTIL
7205 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7208 if test -n "$ac_tool_prefix"; then
7209 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
7210 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7212 $as_echo_n "checking
for $ac_word...
" >&6; }
7213 if ${ac_cv_prog_NMEDIT+:} false; then :
7214 $as_echo_n "(cached
) " >&6
7216 if test -n "$NMEDIT"; then
7217 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7223 test -z "$as_dir" && as_dir=.
7224 for ac_exec_ext in '' $ac_executable_extensions; do
7225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7226 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
7227 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7236 NMEDIT=$ac_cv_prog_NMEDIT
7237 if test -n "$NMEDIT"; then
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
7239 $as_echo "$NMEDIT" >&6; }
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7242 $as_echo "no
" >&6; }
7247 if test -z "$ac_cv_prog_NMEDIT"; then
7248 ac_ct_NMEDIT=$NMEDIT
7249 # Extract the first word of "nmedit
", so it can be a program name with args.
7250 set dummy nmedit; ac_word=$2
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7252 $as_echo_n "checking
for $ac_word...
" >&6; }
7253 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7254 $as_echo_n "(cached
) " >&6
7256 if test -n "$ac_ct_NMEDIT"; then
7257 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263 test -z "$as_dir" && as_dir=.
7264 for ac_exec_ext in '' $ac_executable_extensions; do
7265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7266 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
7267 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7276 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7277 if test -n "$ac_ct_NMEDIT"; then
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
7279 $as_echo "$ac_ct_NMEDIT" >&6; }
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7282 $as_echo "no
" >&6; }
7285 if test "x
$ac_ct_NMEDIT" = x; then
7288 case $cross_compiling:$ac_tool_warned in
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7291 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7292 ac_tool_warned=yes ;;
7294 NMEDIT=$ac_ct_NMEDIT
7297 NMEDIT="$ac_cv_prog_NMEDIT"
7300 if test -n "$ac_tool_prefix"; then
7301 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
7302 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7304 $as_echo_n "checking
for $ac_word...
" >&6; }
7305 if ${ac_cv_prog_LIPO+:} false; then :
7306 $as_echo_n "(cached
) " >&6
7308 if test -n "$LIPO"; then
7309 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 test -z "$as_dir" && as_dir=.
7316 for ac_exec_ext in '' $ac_executable_extensions; do
7317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7318 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
7319 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7328 LIPO=$ac_cv_prog_LIPO
7329 if test -n "$LIPO"; then
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
7331 $as_echo "$LIPO" >&6; }
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7334 $as_echo "no
" >&6; }
7339 if test -z "$ac_cv_prog_LIPO"; then
7341 # Extract the first word of "lipo
", so it can be a program name with args.
7342 set dummy lipo; ac_word=$2
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7344 $as_echo_n "checking
for $ac_word...
" >&6; }
7345 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7346 $as_echo_n "(cached
) " >&6
7348 if test -n "$ac_ct_LIPO"; then
7349 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 test -z "$as_dir" && as_dir=.
7356 for ac_exec_ext in '' $ac_executable_extensions; do
7357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7358 ac_cv_prog_ac_ct_LIPO="lipo
"
7359 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7368 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7369 if test -n "$ac_ct_LIPO"; then
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
7371 $as_echo "$ac_ct_LIPO" >&6; }
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7374 $as_echo "no
" >&6; }
7377 if test "x
$ac_ct_LIPO" = x; then
7380 case $cross_compiling:$ac_tool_warned in
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7383 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7384 ac_tool_warned=yes ;;
7389 LIPO="$ac_cv_prog_LIPO"
7392 if test -n "$ac_tool_prefix"; then
7393 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
7394 set dummy ${ac_tool_prefix}otool; ac_word=$2
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7396 $as_echo_n "checking
for $ac_word...
" >&6; }
7397 if ${ac_cv_prog_OTOOL+:} false; then :
7398 $as_echo_n "(cached
) " >&6
7400 if test -n "$OTOOL"; then
7401 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407 test -z "$as_dir" && as_dir=.
7408 for ac_exec_ext in '' $ac_executable_extensions; do
7409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7410 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
7411 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7420 OTOOL=$ac_cv_prog_OTOOL
7421 if test -n "$OTOOL"; then
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
7423 $as_echo "$OTOOL" >&6; }
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7426 $as_echo "no
" >&6; }
7431 if test -z "$ac_cv_prog_OTOOL"; then
7433 # Extract the first word of "otool
", so it can be a program name with args.
7434 set dummy otool; ac_word=$2
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7436 $as_echo_n "checking
for $ac_word...
" >&6; }
7437 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7438 $as_echo_n "(cached
) " >&6
7440 if test -n "$ac_ct_OTOOL"; then
7441 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447 test -z "$as_dir" && as_dir=.
7448 for ac_exec_ext in '' $ac_executable_extensions; do
7449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7450 ac_cv_prog_ac_ct_OTOOL="otool
"
7451 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7460 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7461 if test -n "$ac_ct_OTOOL"; then
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
7463 $as_echo "$ac_ct_OTOOL" >&6; }
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7466 $as_echo "no
" >&6; }
7469 if test "x
$ac_ct_OTOOL" = x; then
7472 case $cross_compiling:$ac_tool_warned in
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7475 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7476 ac_tool_warned=yes ;;
7481 OTOOL="$ac_cv_prog_OTOOL"
7484 if test -n "$ac_tool_prefix"; then
7485 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
7486 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7488 $as_echo_n "checking
for $ac_word...
" >&6; }
7489 if ${ac_cv_prog_OTOOL64+:} false; then :
7490 $as_echo_n "(cached
) " >&6
7492 if test -n "$OTOOL64"; then
7493 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499 test -z "$as_dir" && as_dir=.
7500 for ac_exec_ext in '' $ac_executable_extensions; do
7501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7502 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
7503 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7512 OTOOL64=$ac_cv_prog_OTOOL64
7513 if test -n "$OTOOL64"; then
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
7515 $as_echo "$OTOOL64" >&6; }
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7518 $as_echo "no
" >&6; }
7523 if test -z "$ac_cv_prog_OTOOL64"; then
7524 ac_ct_OTOOL64=$OTOOL64
7525 # Extract the first word of "otool64
", so it can be a program name with args.
7526 set dummy otool64; ac_word=$2
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7528 $as_echo_n "checking
for $ac_word...
" >&6; }
7529 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7530 $as_echo_n "(cached
) " >&6
7532 if test -n "$ac_ct_OTOOL64"; then
7533 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539 test -z "$as_dir" && as_dir=.
7540 for ac_exec_ext in '' $ac_executable_extensions; do
7541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7542 ac_cv_prog_ac_ct_OTOOL64="otool64
"
7543 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7552 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7553 if test -n "$ac_ct_OTOOL64"; then
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
7555 $as_echo "$ac_ct_OTOOL64" >&6; }
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7558 $as_echo "no
" >&6; }
7561 if test "x
$ac_ct_OTOOL64" = x; then
7564 case $cross_compiling:$ac_tool_warned in
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7567 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7568 ac_tool_warned=yes ;;
7570 OTOOL64=$ac_ct_OTOOL64
7573 OTOOL64="$ac_cv_prog_OTOOL64"
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
7603 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
7604 if ${lt_cv_apple_cc_single_mod+:} false; then :
7605 $as_echo_n "(cached
) " >&6
7607 lt_cv_apple_cc_single_mod=no
7608 if test -z "${LT_MULTI_MODULE}"; then
7609 # By default we will add the -single_module flag. You can override
7610 # by either setting the environment variable LT_MULTI_MODULE
7611 # non-empty at configure time, or by adding -multi_module to the
7613 rm -rf libconftest.dylib*
7614 echo "int foo
(void
){return 1;}" > conftest.c
7615 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7616 -dynamiclib -Wl,-single_module conftest.c
" >&5
7617 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7618 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7620 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7621 lt_cv_apple_cc_single_mod=yes
7623 cat conftest.err >&5
7625 rm -rf libconftest.dylib*
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
7630 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
7632 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
7633 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7634 $as_echo_n "(cached
) " >&6
7636 lt_cv_ld_exported_symbols_list=no
7637 save_LDFLAGS=$LDFLAGS
7638 echo "_main
" > conftest.sym
7639 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
7640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641 /* end confdefs.h. */
7651 if ac_fn_c_try_link "$LINENO"; then :
7652 lt_cv_ld_exported_symbols_list=yes
7654 lt_cv_ld_exported_symbols_list=no
7656 rm -f core conftest.err conftest.$ac_objext \
7657 conftest$ac_exeext conftest.$ac_ext
7658 LDFLAGS="$save_LDFLAGS"
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
7662 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
7664 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
7665 if ${lt_cv_ld_force_load+:} false; then :
7666 $as_echo_n "(cached
) " >&6
7668 lt_cv_ld_force_load=no
7669 cat > conftest.c << _LT_EOF
7670 int forced_loaded() { return 2;}
7672 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
7673 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7674 echo "$AR cru libconftest.a conftest.o
" >&5
7675 $AR cru libconftest.a conftest.o 2>&5
7676 cat > conftest.c << _LT_EOF
7677 int main() { return 0;}
7679 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
7680 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7682 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7683 lt_cv_ld_force_load=yes
7685 cat conftest.err >&5
7687 rm -f conftest.err libconftest.a conftest conftest.c
7688 rm -rf conftest.dSYM
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
7692 $as_echo "$lt_cv_ld_force_load" >&6; }
7693 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7694 # build without first building modern cctools / linker.
7695 case $host_cpu-$host_os in
7696 *-rhapsody* | *-darwin1.[012])
7697 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7699 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7701 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7702 # deployment target is forced to an earlier version.
7703 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7704 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7707 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7714 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7715 _lt_dar_single_mod='$single_module'
7717 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7718 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7720 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7722 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
7723 _lt_dsymutil='~$DSYMUTIL $lib || :'
7731 ac_cpp='$CPP $CPPFLAGS'
7732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
7736 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
7737 # On Suns, sometimes $CPP names a directory.
7738 if test -n "$CPP" && test -d "$CPP"; then
7741 if test -z "$CPP"; then
7742 if ${ac_cv_prog_CPP+:} false; then :
7743 $as_echo_n "(cached
) " >&6
7745 # Double quotes because CPP needs to be expanded
7746 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
7749 for ac_c_preproc_warn_flag in '' yes
7751 # Use a header file that comes with gcc, so configuring glibc
7752 # with a fresh cross-compiler works.
7753 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7754 # <limits.h> exists even on freestanding compilers.
7755 # On the NeXT, cc -E runs the code through the compiler's parser,
7756 # not just through cpp. "Syntax error
" is here to catch this case.
7757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7758 /* end confdefs.h. */
7760 # include <limits.h>
7762 # include <assert.h>
7766 if ac_fn_c_try_cpp "$LINENO"; then :
7769 # Broken: fails on valid input.
7772 rm -f conftest.err conftest.i conftest.$ac_ext
7774 # OK, works on sane cases. Now check whether nonexistent headers
7775 # can be detected and how.
7776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777 /* end confdefs.h. */
7778 #include <ac_nonexistent.h>
7780 if ac_fn_c_try_cpp "$LINENO"; then :
7781 # Broken: success on invalid input.
7784 # Passes both tests.
7788 rm -f conftest.err conftest.i conftest.$ac_ext
7791 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7792 rm -f conftest.i conftest.err conftest.$ac_ext
7793 if $ac_preproc_ok; then :
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
7806 $as_echo "$CPP" >&6; }
7808 for ac_c_preproc_warn_flag in '' yes
7810 # Use a header file that comes with gcc, so configuring glibc
7811 # with a fresh cross-compiler works.
7812 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7813 # <limits.h> exists even on freestanding compilers.
7814 # On the NeXT, cc -E runs the code through the compiler's parser,
7815 # not just through cpp. "Syntax error
" is here to catch this case.
7816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7817 /* end confdefs.h. */
7819 # include <limits.h>
7821 # include <assert.h>
7825 if ac_fn_c_try_cpp "$LINENO"; then :
7828 # Broken: fails on valid input.
7831 rm -f conftest.err conftest.i conftest.$ac_ext
7833 # OK, works on sane cases. Now check whether nonexistent headers
7834 # can be detected and how.
7835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7836 /* end confdefs.h. */
7837 #include <ac_nonexistent.h>
7839 if ac_fn_c_try_cpp "$LINENO"; then :
7840 # Broken: success on invalid input.
7843 # Passes both tests.
7847 rm -f conftest.err conftest.i conftest.$ac_ext
7850 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7851 rm -f conftest.i conftest.err conftest.$ac_ext
7852 if $ac_preproc_ok; then :
7855 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
7856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7857 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7858 See \`config.log' for more details
" "$LINENO" 5; }
7862 ac_cpp='$CPP $CPPFLAGS'
7863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
7869 $as_echo_n "checking
for ANSI C header files...
" >&6; }
7870 if ${ac_cv_header_stdc+:} false; then :
7871 $as_echo_n "(cached
) " >&6
7873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7874 /* end confdefs.h. */
7888 if ac_fn_c_try_compile "$LINENO"; then :
7889 ac_cv_header_stdc=yes
7891 ac_cv_header_stdc=no
7893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7895 if test $ac_cv_header_stdc = yes; then
7896 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7898 /* end confdefs.h. */
7902 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7903 $EGREP "memchr
" >/dev/null 2>&1; then :
7906 ac_cv_header_stdc=no
7912 if test $ac_cv_header_stdc = yes; then
7913 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7915 /* end confdefs.h. */
7919 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7920 $EGREP "free
" >/dev/null 2>&1; then :
7923 ac_cv_header_stdc=no
7929 if test $ac_cv_header_stdc = yes; then
7930 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7931 if test "$cross_compiling" = yes; then :
7934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7935 /* end confdefs.h. */
7938 #if ((' ' & 0x0FF) == 0x020)
7939 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7940 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7942 # define ISLOWER(c) \
7943 (('a' <= (c) && (c) <= 'i') \
7944 || ('j' <= (c) && (c) <= 'r') \
7945 || ('s' <= (c) && (c) <= 'z'))
7946 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7949 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7954 for (i = 0; i < 256; i++)
7955 if (XOR (islower (i), ISLOWER (i))
7956 || toupper (i) != TOUPPER (i))
7961 if ac_fn_c_try_run "$LINENO"; then :
7964 ac_cv_header_stdc=no
7966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7967 conftest.$ac_objext conftest.beam conftest.$ac_ext
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
7973 $as_echo "$ac_cv_header_stdc" >&6; }
7974 if test $ac_cv_header_stdc = yes; then
7976 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7980 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7981 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7982 inttypes.h stdint.h unistd.h
7984 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7985 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7987 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7988 cat >>confdefs.h
<<_ACEOF
7989 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7997 for ac_header
in dlfcn.h
7999 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8001 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
8002 cat >>confdefs.h
<<_ACEOF
8003 #define HAVE_DLFCN_H 1
8025 # Check whether --enable-shared was given.
8026 if test "${enable_shared+set}" = set; then :
8027 enableval
=$enable_shared; p
=${PACKAGE-default}
8029 yes) enable_shared
=yes ;;
8030 no
) enable_shared
=no
;;
8033 # Look at the argument we got. We use all the common list separators.
8034 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8035 for pkg
in $enableval; do
8037 if test "X$pkg" = "X$p"; then
8056 # Check whether --enable-static was given.
8057 if test "${enable_static+set}" = set; then :
8058 enableval
=$enable_static; p
=${PACKAGE-default}
8060 yes) enable_static
=yes ;;
8061 no
) enable_static
=no
;;
8064 # Look at the argument we got. We use all the common list separators.
8065 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8066 for pkg
in $enableval; do
8068 if test "X$pkg" = "X$p"; then
8088 # Check whether --with-pic was given.
8089 if test "${with_pic+set}" = set; then :
8090 withval
=$with_pic; pic_mode
="$withval"
8096 test -z "$pic_mode" && pic_mode
=default
8104 # Check whether --enable-fast-install was given.
8105 if test "${enable_fast_install+set}" = set; then :
8106 enableval
=$enable_fast_install; p
=${PACKAGE-default}
8108 yes) enable_fast_install
=yes ;;
8109 no
) enable_fast_install
=no
;;
8111 enable_fast_install
=no
8112 # Look at the argument we got. We use all the common list separators.
8113 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8114 for pkg
in $enableval; do
8116 if test "X$pkg" = "X$p"; then
8117 enable_fast_install
=yes
8124 enable_fast_install
=yes
8137 # This can be used to rebuild libtool when needed
8138 LIBTOOL_DEPS
="$ltmain"
8140 # Always use our own libtool.
8141 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
8168 test -z "$LN_S" && LN_S
="ln -s"
8183 if test -n "${ZSH_VERSION+set}" ; then
8184 setopt NO_GLOB_SUBST
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8188 $as_echo_n "checking for objdir... " >&6; }
8189 if ${lt_cv_objdir+:} false
; then :
8190 $as_echo_n "(cached) " >&6
8192 rm -f .libs
2>/dev
/null
8193 mkdir .libs
2>/dev
/null
8194 if test -d .libs
; then
8197 # MS-DOS does not allow filenames that begin with a dot.
8200 rmdir .libs
2>/dev
/null
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8203 $as_echo "$lt_cv_objdir" >&6; }
8204 objdir
=$lt_cv_objdir
8210 cat >>confdefs.h
<<_ACEOF
8211 #define LT_OBJDIR "$lt_cv_objdir/"
8219 # AIX sometimes has problems with the GCC collect2 program. For some
8220 # reason, if we set the COLLECT_NAMES environment variable, the problems
8221 # vanish in a puff of smoke.
8222 if test "X${COLLECT_NAMES+set}" != Xset
; then
8224 export COLLECT_NAMES
8231 can_build_shared
=yes
8233 # All known linkers require a `.a' archive for static linking (except MSVC,
8234 # which needs '.lib').
8237 with_gnu_ld
="$lt_cv_prog_gnu_ld"
8240 old_CFLAGS
="$CFLAGS"
8242 # Set sane defaults for various variables
8243 test -z "$CC" && CC
=cc
8244 test -z "$LTCC" && LTCC
=$CC
8245 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
8246 test -z "$LD" && LD
=ld
8247 test -z "$ac_objext" && ac_objext
=o
8249 for cc_temp
in $compiler""; do
8251 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
8252 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
8257 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8260 # Only perform the check for file, if the check method requires it
8261 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
8262 case $deplibs_check_method in
8264 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8266 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8267 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8268 $as_echo_n "(cached) " >&6
8272 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8275 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8276 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8277 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8278 for ac_dir
in $ac_dummy; do
8280 test -z "$ac_dir" && ac_dir
=.
8281 if test -f $ac_dir/${ac_tool_prefix}file; then
8282 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
8283 if test -n "$file_magic_test_file"; then
8284 case $deplibs_check_method in
8286 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8287 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8288 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8289 $EGREP "$file_magic_regex" > /dev
/null
; then
8294 *** Warning: the command libtool uses to detect shared libraries,
8295 *** $file_magic_cmd, produces output that libtool cannot recognize.
8296 *** The result is that libtool may fail to recognize shared libraries
8297 *** as such. This will affect the creation of libtool libraries that
8298 *** depend on shared libraries, but programs linked with such libtool
8299 *** libraries will work regardless of this problem. Nevertheless, you
8300 *** may want to report the problem to your system manager and/or to
8301 *** bug-libtool@gnu.org
8311 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8316 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8317 if test -n "$MAGIC_CMD"; then
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8319 $as_echo "$MAGIC_CMD" >&6; }
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8322 $as_echo "no" >&6; }
8329 if test -z "$lt_cv_path_MAGIC_CMD"; then
8330 if test -n "$ac_tool_prefix"; then
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8332 $as_echo_n "checking for file... " >&6; }
8333 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8334 $as_echo_n "(cached) " >&6
8338 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8341 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8342 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8343 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8344 for ac_dir
in $ac_dummy; do
8346 test -z "$ac_dir" && ac_dir
=.
8347 if test -f $ac_dir/file; then
8348 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
8349 if test -n "$file_magic_test_file"; then
8350 case $deplibs_check_method in
8352 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8353 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8354 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8355 $EGREP "$file_magic_regex" > /dev
/null
; then
8360 *** Warning: the command libtool uses to detect shared libraries,
8361 *** $file_magic_cmd, produces output that libtool cannot recognize.
8362 *** The result is that libtool may fail to recognize shared libraries
8363 *** as such. This will affect the creation of libtool libraries that
8364 *** depend on shared libraries, but programs linked with such libtool
8365 *** libraries will work regardless of this problem. Nevertheless, you
8366 *** may want to report the problem to your system manager and/or to
8367 *** bug-libtool@gnu.org
8377 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8382 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8383 if test -n "$MAGIC_CMD"; then
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8385 $as_echo "$MAGIC_CMD" >&6; }
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388 $as_echo "no" >&6; }
8401 # Use C for the default configuration in the libtool script
8405 ac_cpp
='$CPP $CPPFLAGS'
8406 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8407 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8408 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8411 # Source file extension for C test sources.
8414 # Object file extension for compiled C test sources.
8418 # Code to be used in simple compile tests
8419 lt_simple_compile_test_code
="int some_variable = 0;"
8421 # Code to be used in simple link tests
8422 lt_simple_link_test_code
='int main(){return(0);}'
8430 # If no C compiler was specified, use CC.
8433 # If no C compiler flags were specified, use CFLAGS.
8434 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8436 # Allow CC to be a program name with arguments.
8439 # Save the default compiler, since it gets overwritten when the other
8440 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8441 compiler_DEFAULT
=$CC
8443 # save warnings/boilerplate of simple test code
8444 ac_outfile
=conftest.
$ac_objext
8445 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8446 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8447 _lt_compiler_boilerplate
=`cat conftest.err`
8450 ac_outfile
=conftest.
$ac_objext
8451 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8452 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8453 _lt_linker_boilerplate
=`cat conftest.err`
8458 ## There is no encapsulation within the following macros, do not change
8459 ## the running order or otherwise move them around unless you know exactly
8460 ## what you are doing...
8461 if test -n "$compiler"; then
8463 lt_prog_compiler_no_builtin_flag
=
8465 if test "$GCC" = yes; then
8466 case $cc_basename in
8468 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8470 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8474 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8475 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
8476 $as_echo_n "(cached) " >&6
8478 lt_cv_prog_compiler_rtti_exceptions
=no
8479 ac_outfile
=conftest.
$ac_objext
8480 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8481 lt_compiler_flag
="-fno-rtti -fno-exceptions"
8482 # Insert the option either (1) after the last *FLAGS variable, or
8483 # (2) before a word containing "conftest.", or (3) at the end.
8484 # Note that $ac_compile itself does not contain backslashes and begins
8485 # with a dollar sign (not a hyphen), so the echo should work correctly.
8486 # The option is referenced via a variable to avoid confusing sed.
8487 lt_compile
=`echo "$ac_compile" | $SED \
8488 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8489 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8490 -e 's:$: $lt_compiler_flag:'`
8491 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8492 (eval "$lt_compile" 2>conftest.err
)
8494 cat conftest.err
>&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 if (exit $ac_status) && test -s "$ac_outfile"; then
8497 # The compiler can only warn and ignore the option if not recognized
8498 # So say no if there are warnings other than the usual output.
8499 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8500 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8501 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8502 lt_cv_prog_compiler_rtti_exceptions
=yes
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8509 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8511 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
8512 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8524 lt_prog_compiler_wl
=
8525 lt_prog_compiler_pic
=
8526 lt_prog_compiler_static
=
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8529 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8531 if test "$GCC" = yes; then
8532 lt_prog_compiler_wl
='-Wl,'
8533 lt_prog_compiler_static
='-static'
8537 # All AIX code is PIC.
8538 if test "$host_cpu" = ia64
; then
8539 # AIX 5 now supports IA64 processor
8540 lt_prog_compiler_static
='-Bstatic'
8542 lt_prog_compiler_pic
='-fPIC'
8548 # see comment about AmigaOS4 .so support
8549 lt_prog_compiler_pic
='-fPIC'
8552 # FIXME: we need at least 68020 code to build shared libraries, but
8553 # adding the `-m68020' flag to GCC prevents building anything better,
8555 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8560 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8561 # PIC is the default for these OSes.
8564 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8565 # This hack is so that the source file can tell whether it is being
8566 # built for inclusion in a dll (and should export symbols for example).
8567 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8568 # (--disable-auto-import) libraries
8569 lt_prog_compiler_pic
='-DDLL_EXPORT'
8572 darwin
* | rhapsody
*)
8573 # PIC is the default on this platform
8574 # Common symbols not allowed in MH_DYLIB files
8575 lt_prog_compiler_pic
='-fno-common'
8579 # PIC is the default for Haiku.
8580 # The "-static" flag exists, but is broken.
8581 lt_prog_compiler_static
=
8585 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8586 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8587 # sets the default TLS model and affects inlining.
8593 lt_prog_compiler_pic
='-fPIC'
8599 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8600 # Instead, we relocate shared libraries at runtime.
8604 # Just because we use GCC doesn't mean we suddenly get shared libraries
8605 # on systems that don't support them.
8606 lt_prog_compiler_can_build_shared
=no
8611 # QNX uses GNU C++, but need to define -shared option too, otherwise
8613 lt_prog_compiler_pic
='-fPIC -shared'
8617 if test -d /usr
/nec
; then
8618 lt_prog_compiler_pic
=-Kconform_pic
8623 lt_prog_compiler_pic
='-fPIC'
8627 case $cc_basename in
8628 nvcc
*) # Cuda Compiler Driver 2.2
8629 lt_prog_compiler_wl
='-Xlinker '
8630 lt_prog_compiler_pic
='-Xcompiler -fPIC'
8634 # PORTME Check for flag to pass linker flags through the system compiler.
8637 lt_prog_compiler_wl
='-Wl,'
8638 if test "$host_cpu" = ia64
; then
8639 # AIX 5 now supports IA64 processor
8640 lt_prog_compiler_static
='-Bstatic'
8642 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8646 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8647 # This hack is so that the source file can tell whether it is being
8648 # built for inclusion in a dll (and should export symbols for example).
8649 lt_prog_compiler_pic
='-DDLL_EXPORT'
8652 hpux9
* | hpux10
* | hpux11
*)
8653 lt_prog_compiler_wl
='-Wl,'
8654 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8661 lt_prog_compiler_pic
='+Z'
8664 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8665 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8668 irix5
* | irix6
* | nonstopux
*)
8669 lt_prog_compiler_wl
='-Wl,'
8670 # PIC (with -KPIC) is the default.
8671 lt_prog_compiler_static
='-non_shared'
8674 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8675 case $cc_basename in
8676 # old Intel for x86_64 which still supported -KPIC.
8678 lt_prog_compiler_wl
='-Wl,'
8679 lt_prog_compiler_pic
='-KPIC'
8680 lt_prog_compiler_static
='-static'
8682 # icc used to be incompatible with GCC.
8683 # ICC 10 doesn't accept -KPIC any more.
8685 lt_prog_compiler_wl
='-Wl,'
8686 lt_prog_compiler_pic
='-fPIC'
8687 lt_prog_compiler_static
='-static'
8689 # Lahey Fortran 8.1.
8691 lt_prog_compiler_wl
='-Wl,'
8692 lt_prog_compiler_pic
='--shared'
8693 lt_prog_compiler_static
='--static'
8695 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8696 # Portland Group compilers (*not* the Pentium gcc compiler,
8697 # which looks to be a dead project)
8698 lt_prog_compiler_wl
='-Wl,'
8699 lt_prog_compiler_pic
='-fpic'
8700 lt_prog_compiler_static
='-Bstatic'
8703 lt_prog_compiler_wl
='-Wl,'
8704 # All Alpha code is PIC.
8705 lt_prog_compiler_static
='-non_shared'
8707 xl
* | bgxl
* | bgf
* | mpixl
*)
8708 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8709 lt_prog_compiler_wl
='-Wl,'
8710 lt_prog_compiler_pic
='-qpic'
8711 lt_prog_compiler_static
='-qstaticlink'
8714 case `$CC -V 2>&1 | sed 5q` in
8715 *Sun\ F
* |
*Sun
*Fortran
*)
8716 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8717 lt_prog_compiler_pic
='-KPIC'
8718 lt_prog_compiler_static
='-Bstatic'
8719 lt_prog_compiler_wl
=''
8723 lt_prog_compiler_pic
='-KPIC'
8724 lt_prog_compiler_static
='-Bstatic'
8725 lt_prog_compiler_wl
='-Wl,'
8733 lt_prog_compiler_pic
='-KPIC'
8734 lt_prog_compiler_static
='-Bstatic'
8738 # QNX uses GNU C++, but need to define -shared option too, otherwise
8740 lt_prog_compiler_pic
='-fPIC -shared'
8743 osf3
* | osf4
* | osf5
*)
8744 lt_prog_compiler_wl
='-Wl,'
8745 # All OSF/1 code is PIC.
8746 lt_prog_compiler_static
='-non_shared'
8750 lt_prog_compiler_static
='-non_shared'
8754 lt_prog_compiler_pic
='-KPIC'
8755 lt_prog_compiler_static
='-Bstatic'
8756 case $cc_basename in
8758 lt_prog_compiler_wl
='-Qoption ld ';;
8760 lt_prog_compiler_wl
='-Wl,';;
8765 lt_prog_compiler_wl
='-Qoption ld '
8766 lt_prog_compiler_pic
='-PIC'
8767 lt_prog_compiler_static
='-Bstatic'
8770 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8771 lt_prog_compiler_wl
='-Wl,'
8772 lt_prog_compiler_pic
='-KPIC'
8773 lt_prog_compiler_static
='-Bstatic'
8777 if test -d /usr
/nec
;then
8778 lt_prog_compiler_pic
='-Kconform_pic'
8779 lt_prog_compiler_static
='-Bstatic'
8783 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8784 lt_prog_compiler_wl
='-Wl,'
8785 lt_prog_compiler_pic
='-KPIC'
8786 lt_prog_compiler_static
='-Bstatic'
8790 lt_prog_compiler_wl
='-Wl,'
8791 lt_prog_compiler_can_build_shared
=no
8795 lt_prog_compiler_pic
='-pic'
8796 lt_prog_compiler_static
='-Bstatic'
8800 lt_prog_compiler_can_build_shared
=no
8806 # For platforms which do not support PIC, -DPIC is meaningless:
8808 lt_prog_compiler_pic
=
8811 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8815 $as_echo "$lt_prog_compiler_pic" >&6; }
8823 # Check to make sure the PIC flag actually works.
8825 if test -n "$lt_prog_compiler_pic"; then
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8827 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8828 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
8829 $as_echo_n "(cached) " >&6
8831 lt_cv_prog_compiler_pic_works
=no
8832 ac_outfile
=conftest.
$ac_objext
8833 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8834 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8835 # Insert the option either (1) after the last *FLAGS variable, or
8836 # (2) before a word containing "conftest.", or (3) at the end.
8837 # Note that $ac_compile itself does not contain backslashes and begins
8838 # with a dollar sign (not a hyphen), so the echo should work correctly.
8839 # The option is referenced via a variable to avoid confusing sed.
8840 lt_compile
=`echo "$ac_compile" | $SED \
8841 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8842 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8843 -e 's:$: $lt_compiler_flag:'`
8844 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8845 (eval "$lt_compile" 2>conftest.err
)
8847 cat conftest.err
>&5
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 if (exit $ac_status) && test -s "$ac_outfile"; then
8850 # The compiler can only warn and ignore the option if not recognized
8851 # So say no if there are warnings other than the usual output.
8852 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8853 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8854 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8855 lt_cv_prog_compiler_pic_works
=yes
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8862 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8864 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8865 case $lt_prog_compiler_pic in
8867 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8870 lt_prog_compiler_pic
=
8871 lt_prog_compiler_can_build_shared
=no
8882 # Check to make sure the static flag actually works.
8884 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8886 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8887 if ${lt_cv_prog_compiler_static_works+:} false
; then :
8888 $as_echo_n "(cached) " >&6
8890 lt_cv_prog_compiler_static_works
=no
8891 save_LDFLAGS
="$LDFLAGS"
8892 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8893 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8894 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8895 # The linker can only warn and ignore the option if not recognized
8896 # So say no if there are warnings
8897 if test -s conftest.err
; then
8898 # Append any errors to the config.log.
8899 cat conftest.err
1>&5
8900 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
8901 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8902 if diff conftest.exp conftest.er2
>/dev
/null
; then
8903 lt_cv_prog_compiler_static_works
=yes
8906 lt_cv_prog_compiler_static_works
=yes
8910 LDFLAGS
="$save_LDFLAGS"
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8914 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8916 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8919 lt_prog_compiler_static
=
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8929 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8930 if ${lt_cv_prog_compiler_c_o+:} false
; then :
8931 $as_echo_n "(cached) " >&6
8933 lt_cv_prog_compiler_c_o
=no
8934 $RM -r conftest
2>/dev
/null
8938 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8940 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8941 # Insert the option either (1) after the last *FLAGS variable, or
8942 # (2) before a word containing "conftest.", or (3) at the end.
8943 # Note that $ac_compile itself does not contain backslashes and begins
8944 # with a dollar sign (not a hyphen), so the echo should work correctly.
8945 lt_compile
=`echo "$ac_compile" | $SED \
8946 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8947 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8948 -e 's:$: $lt_compiler_flag:'`
8949 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8950 (eval "$lt_compile" 2>out
/conftest.err
)
8952 cat out
/conftest.err
>&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8956 # The compiler can only warn and ignore the option if not recognized
8957 # So say no if there are warnings
8958 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8959 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8960 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8961 lt_cv_prog_compiler_c_o
=yes
8966 # SGI C++ compiler will create directory out/ii_files/ for
8967 # template instantiation
8968 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8969 $RM out
/* && rmdir out
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8976 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8984 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8985 if ${lt_cv_prog_compiler_c_o+:} false
; then :
8986 $as_echo_n "(cached) " >&6
8988 lt_cv_prog_compiler_c_o
=no
8989 $RM -r conftest
2>/dev
/null
8993 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8995 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8996 # Insert the option either (1) after the last *FLAGS variable, or
8997 # (2) before a word containing "conftest.", or (3) at the end.
8998 # Note that $ac_compile itself does not contain backslashes and begins
8999 # with a dollar sign (not a hyphen), so the echo should work correctly.
9000 lt_compile
=`echo "$ac_compile" | $SED \
9001 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9002 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9003 -e 's:$: $lt_compiler_flag:'`
9004 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9005 (eval "$lt_compile" 2>out
/conftest.err
)
9007 cat out
/conftest.err
>&5
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9011 # The compiler can only warn and ignore the option if not recognized
9012 # So say no if there are warnings
9013 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
9014 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9015 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9016 lt_cv_prog_compiler_c_o
=yes
9021 # SGI C++ compiler will create directory out/ii_files/ for
9022 # template instantiation
9023 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9024 $RM out
/* && rmdir out
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9031 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9036 hard_links
="nottested"
9037 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
9038 # do not overwrite the value of need_locks provided by the user
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9040 $as_echo_n "checking if we can lock with hard links... " >&6; }
9043 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9045 ln conftest.a conftest.b
2>&5 || hard_links
=no
9046 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9048 $as_echo "$hard_links" >&6; }
9049 if test "$hard_links" = no
; then
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9051 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9064 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9067 allow_undefined_flag
=
9068 always_export_symbols
=no
9070 archive_expsym_cmds
=
9071 compiler_needs_object
=no
9072 enable_shared_with_static_runtimes
=no
9073 export_dynamic_flag_spec
=
9074 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9075 hardcode_automatic
=no
9077 hardcode_direct_absolute
=no
9078 hardcode_libdir_flag_spec
=
9079 hardcode_libdir_flag_spec_ld
=
9080 hardcode_libdir_separator
=
9082 hardcode_shlibpath_var
=unsupported
9084 link_all_deplibs
=unknown
9087 old_archive_from_new_cmds
=
9088 old_archive_from_expsyms_cmds
=
9089 thread_safe_flag_spec
=
9090 whole_archive_flag_spec
=
9091 # include_expsyms should be a list of space-separated symbols to be *always*
9092 # included in the symbol list
9094 # exclude_expsyms can be an extended regexp of symbols to exclude
9095 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9096 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9097 # as well as any symbol that contains `d'.
9098 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9099 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9100 # platforms (ab)use it in PIC code, but their linkers get confused if
9101 # the symbol is explicitly referenced. Since portable code cannot
9102 # rely on this symbol name, it's probably fine to never include it in
9103 # preloaded symbol tables.
9104 # Exclude shared library initialization/finalization symbols.
9105 extract_expsyms_cmds
=
9108 cygwin
* | mingw
* | pw32
* | cegcc
*)
9109 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9110 # When not using gcc, we currently assume that we are using
9111 # Microsoft Visual C++.
9112 if test "$GCC" != yes; then
9117 # we just hope/assume this is gcc and not c89 (= MSVC++)
9127 # On some targets, GNU ld is compatible enough with the native linker
9128 # that we're better off using the native interface for both.
9129 lt_use_gnu_ld_interface
=no
9130 if test "$with_gnu_ld" = yes; then
9133 # The AIX port of GNU ld has always aspired to compatibility
9134 # with the native linker. However, as the warning in the GNU ld
9135 # block says, versions before 2.19.5* couldn't really create working
9136 # shared libraries, regardless of the interface used.
9137 case `$LD -v 2>&1` in
9138 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
9139 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
9140 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
9142 lt_use_gnu_ld_interface
=yes
9147 lt_use_gnu_ld_interface
=yes
9152 if test "$lt_use_gnu_ld_interface" = yes; then
9153 # If archive_cmds runs LD, not CC, wlarc should be empty
9156 # Set some defaults for GNU ld with shared library support. These
9157 # are reset later if shared libraries are not supported. Putting them
9158 # here allows them to be overridden if necessary.
9159 runpath_var
=LD_RUN_PATH
9160 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9161 export_dynamic_flag_spec
='${wl}--export-dynamic'
9162 # ancient GNU ld didn't support --whole-archive et. al.
9163 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
9164 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9166 whole_archive_flag_spec
=
9168 supports_anon_versioning
=no
9169 case `$LD -v 2>&1` in
9170 *GNU\ gold
*) supports_anon_versioning
=yes ;;
9171 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
9172 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
9173 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
9174 *\
2.11.
*) ;; # other 2.11 versions
9175 *) supports_anon_versioning
=yes ;;
9178 # See if GNU ld supports shared libraries.
9181 # On AIX/PPC, the GNU linker is very broken
9182 if test "$host_cpu" != ia64
; then
9186 *** Warning: the GNU linker, at least up to release 2.19, is reported
9187 *** to be unable to reliably create shared libraries on AIX.
9188 *** Therefore, libtool is disabling shared libraries support. If you
9189 *** really care for shared libraries, you may want to install binutils
9190 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9191 *** You will then need to restart the configuration process.
9200 # see comment about AmigaOS4 .so support
9201 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9202 archive_expsym_cmds
=''
9205 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)'
9206 hardcode_libdir_flag_spec
='-L$libdir'
9207 hardcode_minus_L
=yes
9213 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9214 allow_undefined_flag
=unsupported
9215 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9216 # support --undefined. This deserves some investigation. FIXME
9217 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9223 cygwin
* | mingw
* | pw32
* | cegcc
*)
9224 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9225 # as there is no search path for DLLs.
9226 hardcode_libdir_flag_spec
='-L$libdir'
9227 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9228 allow_undefined_flag
=unsupported
9229 always_export_symbols
=no
9230 enable_shared_with_static_runtimes
=yes
9231 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9233 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9234 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9235 # If the export-symbols file already is a .def file (1st line
9236 # is EXPORTS), use it as is; otherwise, prepend...
9237 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9238 cp $export_symbols $output_objdir/$soname.def;
9240 echo EXPORTS > $output_objdir/$soname.def;
9241 cat $export_symbols >> $output_objdir/$soname.def;
9243 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9250 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9251 link_all_deplibs
=yes
9256 hardcode_shlibpath_var
=no
9257 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9258 export_dynamic_flag_spec
='${wl}-E'
9259 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9260 # Instead, shared libraries are loaded at an image base (0x10000000 by
9261 # default) and relocated if they conflict, which is a slow very memory
9262 # consuming and fragmenting process. To avoid this, we pick a random,
9263 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9264 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9265 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9266 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'
9269 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
9271 if test "$host_os" = linux-dietlibc
; then
9272 case $cc_basename in
9273 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9276 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9277 && test "$tmp_diet" = no
9279 tmp_addflag
=' $pic_flag'
9280 tmp_sharedflag
='-shared'
9281 case $cc_basename,$host_cpu in
9282 pgcc
*) # Portland Group C compiler
9283 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'
9284 tmp_addflag
=' $pic_flag'
9286 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9287 # Portland Group f77 and f90 compilers
9288 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'
9289 tmp_addflag
=' $pic_flag -Mnomain' ;;
9290 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9291 tmp_addflag
=' -i_dynamic' ;;
9292 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9293 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9294 ifc
* | ifort
*) # Intel Fortran compiler
9295 tmp_addflag
=' -nofor_main' ;;
9296 lf95
*) # Lahey Fortran 8.1
9297 whole_archive_flag_spec
=
9298 tmp_sharedflag
='--shared' ;;
9299 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9300 tmp_sharedflag
='-qmkshrobj'
9302 nvcc
*) # Cuda Compiler Driver 2.2
9303 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'
9304 compiler_needs_object
=yes
9307 case `$CC -V 2>&1 | sed 5q` in
9308 *Sun\ C
*) # Sun C 5.9
9309 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'
9310 compiler_needs_object
=yes
9311 tmp_sharedflag
='-G' ;;
9312 *Sun\ F
*) # Sun Fortran 8.3
9313 tmp_sharedflag
='-G' ;;
9315 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9317 if test "x$supports_anon_versioning" = xyes
; then
9318 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9319 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9320 echo "local: *; };" >> $output_objdir/$libname.ver~
9321 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9324 case $cc_basename in
9325 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9326 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9327 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9328 hardcode_libdir_flag_spec
=
9329 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9330 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9331 if test "x$supports_anon_versioning" = xyes
; then
9332 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9333 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9334 echo "local: *; };" >> $output_objdir/$libname.ver~
9335 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9345 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9346 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9349 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9350 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9355 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9359 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9360 *** create shared libraries on Solaris systems. Therefore, libtool
9361 *** is disabling shared libraries support. We urge you to upgrade GNU
9362 *** binutils to release 2.9.1 or newer. Another option is to modify
9363 *** your PATH or compiler configuration so that the native linker is
9364 *** used, and then restart.
9367 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9368 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9369 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9375 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9376 case `$LD -v 2>&1` in
9377 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9381 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9382 *** reliably create shared libraries on SCO systems. Therefore, libtool
9383 *** is disabling shared libraries support. We urge you to upgrade GNU
9384 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9385 *** your PATH or compiler configuration so that the native linker is
9386 *** used, and then restart.
9391 # For security reasons, it is highly recommended that you always
9392 # use absolute paths for naming shared libraries, and exclude the
9393 # DT_RUNPATH tag from executables and libraries. But doing so
9394 # requires that you compile everything twice, which is a pain.
9395 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9396 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9397 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9398 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9407 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9410 hardcode_shlibpath_var
=no
9414 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9415 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9416 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9423 if test "$ld_shlibs" = no
; then
9425 hardcode_libdir_flag_spec
=
9426 export_dynamic_flag_spec
=
9427 whole_archive_flag_spec
=
9430 # PORTME fill in a description of your system's linker (not GNU ld)
9433 allow_undefined_flag
=unsupported
9434 always_export_symbols
=yes
9435 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'
9436 # Note: this linker hardcodes the directories in LIBPATH if there
9437 # are no directories specified by -L.
9438 hardcode_minus_L
=yes
9439 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9440 # Neither direct hardcoding nor static linking is supported with a
9442 hardcode_direct
=unsupported
9447 if test "$host_cpu" = ia64
; then
9448 # On IA64, the linker does run time linking by default, so we don't
9449 # have to do anything special.
9450 aix_use_runtimelinking
=no
9451 exp_sym_flag
='-Bexport'
9454 # If we're using GNU nm, then we don't want the "-C" option.
9455 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9456 # Also, AIX nm treats weak defined symbols like other global
9457 # defined symbols, whereas GNU nm marks them as "W".
9458 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9459 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'
9461 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'
9463 aix_use_runtimelinking
=no
9465 # Test if we are trying to use run time linking or normal
9466 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9467 # need to do runtime linking.
9468 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9469 for ld_flag
in $LDFLAGS; do
9470 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9471 aix_use_runtimelinking
=yes
9478 exp_sym_flag
='-bexport'
9479 no_entry_flag
='-bnoentry'
9482 # When large executables or shared objects are built, AIX ld can
9483 # have problems creating the table of contents. If linking a library
9484 # or program results in "error TOC overflow" add -mminimal-toc to
9485 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9486 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9490 hardcode_direct_absolute
=yes
9491 hardcode_libdir_separator
=':'
9492 link_all_deplibs
=yes
9493 file_list_spec
='${wl}-f,'
9495 if test "$GCC" = yes; then
9496 case $host_os in aix4.
[012]|aix4.
[012].
*)
9497 # We only want to do this on AIX 4.2 and lower, the check
9498 # below for broken collect2 doesn't work under 4.3+
9499 collect2name
=`${CC} -print-prog-name=collect2`
9500 if test -f "$collect2name" &&
9501 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9503 # We have reworked collect2
9506 # We have old collect2
9507 hardcode_direct
=unsupported
9508 # It fails to find uninstalled libraries when the uninstalled
9509 # path is not listed in the libpath. Setting hardcode_minus_L
9510 # to unsupported forces relinking
9511 hardcode_minus_L
=yes
9512 hardcode_libdir_flag_spec
='-L$libdir'
9513 hardcode_libdir_separator
=
9517 shared_flag
='-shared'
9518 if test "$aix_use_runtimelinking" = yes; then
9519 shared_flag
="$shared_flag "'${wl}-G'
9523 if test "$host_cpu" = ia64
; then
9524 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9525 # chokes on -Wl,-G. The following line is correct:
9528 if test "$aix_use_runtimelinking" = yes; then
9529 shared_flag
='${wl}-G'
9531 shared_flag
='${wl}-bM:SRE'
9536 export_dynamic_flag_spec
='${wl}-bexpall'
9537 # It seems that -bexpall does not export symbols beginning with
9538 # underscore (_), so it is better to generate a list of symbols to export.
9539 always_export_symbols
=yes
9540 if test "$aix_use_runtimelinking" = yes; then
9541 # Warning - without using the other runtime loading flags (-brtl),
9542 # -berok will link without error, but may produce a broken library.
9543 allow_undefined_flag
='-berok'
9544 # Determine the default libpath from the value encoded in an
9546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9547 /* end confdefs.h. */
9557 if ac_fn_c_try_link
"$LINENO"; then :
9559 lt_aix_libpath_sed
='
9560 /Import File Strings/,/^$/ {
9566 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9567 # Check for a 64-bit object if we didn't find anything.
9568 if test -z "$aix_libpath"; then
9569 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9572 rm -f core conftest.err conftest.
$ac_objext \
9573 conftest
$ac_exeext conftest.
$ac_ext
9574 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9576 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9577 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"
9579 if test "$host_cpu" = ia64
; then
9580 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9581 allow_undefined_flag
="-z nodefs"
9582 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"
9584 # Determine the default libpath from the value encoded in an
9586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9587 /* end confdefs.h. */
9597 if ac_fn_c_try_link
"$LINENO"; then :
9599 lt_aix_libpath_sed
='
9600 /Import File Strings/,/^$/ {
9606 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9607 # Check for a 64-bit object if we didn't find anything.
9608 if test -z "$aix_libpath"; then
9609 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9612 rm -f core conftest.err conftest.
$ac_objext \
9613 conftest
$ac_exeext conftest.
$ac_ext
9614 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9616 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9617 # Warning - without using the other run time loading flags,
9618 # -berok will link without error, but may produce a broken library.
9619 no_undefined_flag
=' ${wl}-bernotok'
9620 allow_undefined_flag
=' ${wl}-berok'
9621 if test "$with_gnu_ld" = yes; then
9622 # We only use this code for GNU lds that support --whole-archive.
9623 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9625 # Exported symbols can be pulled into shared objects from archives
9626 whole_archive_flag_spec
='$convenience'
9628 archive_cmds_need_lc
=yes
9629 # This is similar to how AIX traditionally builds its shared libraries.
9630 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'
9638 # see comment about AmigaOS4 .so support
9639 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9640 archive_expsym_cmds
=''
9643 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)'
9644 hardcode_libdir_flag_spec
='-L$libdir'
9645 hardcode_minus_L
=yes
9651 export_dynamic_flag_spec
=-rdynamic
9654 cygwin
* | mingw
* | pw32
* | cegcc
*)
9655 # When not using gcc, we currently assume that we are using
9656 # Microsoft Visual C++.
9657 # hardcode_libdir_flag_spec is actually meaningless, as there is
9658 # no search path for DLLs.
9659 hardcode_libdir_flag_spec
=' '
9660 allow_undefined_flag
=unsupported
9661 # Tell ltmain to make .lib files, not .a files.
9663 # Tell ltmain to make .dll files, not .so files.
9665 # FIXME: Setting linknames here is a bad hack.
9666 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9667 # The linker will automatically build a .lib file if we build a DLL.
9668 old_archive_from_new_cmds
='true'
9669 # FIXME: Should let the user specify the lib program.
9670 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9671 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9672 enable_shared_with_static_runtimes
=yes
9675 darwin
* | rhapsody
*)
9678 archive_cmds_need_lc
=no
9680 hardcode_automatic
=yes
9681 hardcode_shlibpath_var
=unsupported
9682 if test "$lt_cv_ld_force_load" = "yes"; then
9683 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\"`'
9685 whole_archive_flag_spec
=''
9687 link_all_deplibs
=yes
9688 allow_undefined_flag
="$_lt_dar_allow_undefined"
9689 case $cc_basename in
9690 ifort
*) _lt_dar_can_shared
=yes ;;
9691 *) _lt_dar_can_shared
=$GCC ;;
9693 if test "$_lt_dar_can_shared" = "yes"; then
9694 output_verbose_link_cmd
=func_echo_all
9695 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9696 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9697 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}"
9698 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}"
9707 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9708 hardcode_libdir_flag_spec
='-L$libdir'
9709 hardcode_shlibpath_var
=no
9712 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9713 # support. Future versions do this automatically, but an explicit c++rt0.o
9714 # does not break anything, and helps significantly (at the cost of a little
9717 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9718 hardcode_libdir_flag_spec
='-R$libdir'
9720 hardcode_shlibpath_var
=no
9723 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9725 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9727 hardcode_minus_L
=yes
9728 hardcode_shlibpath_var
=no
9731 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9732 freebsd
* | dragonfly
*)
9733 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9734 hardcode_libdir_flag_spec
='-R$libdir'
9736 hardcode_shlibpath_var
=no
9740 if test "$GCC" = yes; then
9741 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'
9743 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'
9745 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9746 hardcode_libdir_separator
=:
9749 # hardcode_minus_L: Not really in the search PATH,
9750 # but as the default location of the library.
9751 hardcode_minus_L
=yes
9752 export_dynamic_flag_spec
='${wl}-E'
9756 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9757 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9759 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9761 if test "$with_gnu_ld" = no
; then
9762 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9763 hardcode_libdir_flag_spec_ld
='+b $libdir'
9764 hardcode_libdir_separator
=:
9766 hardcode_direct_absolute
=yes
9767 export_dynamic_flag_spec
='${wl}-E'
9768 # hardcode_minus_L: Not really in the search PATH,
9769 # but as the default location of the library.
9770 hardcode_minus_L
=yes
9775 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9778 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9781 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9784 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9790 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9793 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9797 # Older versions of the 11.00 compiler do not understand -b yet
9798 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9800 $as_echo_n "checking if $CC understands -b... " >&6; }
9801 if ${lt_cv_prog_compiler__b+:} false
; then :
9802 $as_echo_n "(cached) " >&6
9804 lt_cv_prog_compiler__b
=no
9805 save_LDFLAGS
="$LDFLAGS"
9806 LDFLAGS
="$LDFLAGS -b"
9807 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9808 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9809 # The linker can only warn and ignore the option if not recognized
9810 # So say no if there are warnings
9811 if test -s conftest.err
; then
9812 # Append any errors to the config.log.
9813 cat conftest.err
1>&5
9814 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9815 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9816 if diff conftest.exp conftest.er2
>/dev
/null
; then
9817 lt_cv_prog_compiler__b
=yes
9820 lt_cv_prog_compiler__b
=yes
9824 LDFLAGS
="$save_LDFLAGS"
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9828 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9830 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9831 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9833 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9839 if test "$with_gnu_ld" = no
; then
9840 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9841 hardcode_libdir_separator
=:
9846 hardcode_shlibpath_var
=no
9850 hardcode_direct_absolute
=yes
9851 export_dynamic_flag_spec
='${wl}-E'
9853 # hardcode_minus_L: Not really in the search PATH,
9854 # but as the default location of the library.
9855 hardcode_minus_L
=yes
9861 irix5
* | irix6
* | nonstopux
*)
9862 if test "$GCC" = yes; then
9863 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'
9864 # Try to use the -exported_symbol ld option, if it does not
9865 # work, assume that -exports_file does not work either and
9866 # implicitly export all symbols.
9867 save_LDFLAGS
="$LDFLAGS"
9868 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9870 /* end confdefs.h. */
9873 if ac_fn_c_try_link
"$LINENO"; then :
9874 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'
9877 rm -f core conftest.err conftest.
$ac_objext \
9878 conftest
$ac_exeext conftest.
$ac_ext
9879 LDFLAGS
="$save_LDFLAGS"
9881 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'
9882 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'
9884 archive_cmds_need_lc
='no'
9885 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9886 hardcode_libdir_separator
=:
9888 link_all_deplibs
=yes
9892 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9893 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9895 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9897 hardcode_libdir_flag_spec
='-R$libdir'
9899 hardcode_shlibpath_var
=no
9903 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9905 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9906 hardcode_libdir_separator
=:
9907 hardcode_shlibpath_var
=no
9914 if test -f /usr
/libexec
/ld.so
; then
9916 hardcode_shlibpath_var
=no
9917 hardcode_direct_absolute
=yes
9918 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9919 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9920 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9921 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9922 export_dynamic_flag_spec
='${wl}-E'
9925 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9926 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9927 hardcode_libdir_flag_spec
='-R$libdir'
9930 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9931 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9941 hardcode_libdir_flag_spec
='-L$libdir'
9942 hardcode_minus_L
=yes
9943 allow_undefined_flag
=unsupported
9944 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'
9945 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9949 if test "$GCC" = yes; then
9950 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9951 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'
9953 allow_undefined_flag
=' -expect_unresolved \*'
9954 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'
9956 archive_cmds_need_lc
='no'
9957 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9958 hardcode_libdir_separator
=:
9961 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9962 if test "$GCC" = yes; then
9963 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9964 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'
9965 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9967 allow_undefined_flag
=' -expect_unresolved \*'
9968 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'
9969 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~
9970 $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'
9972 # Both c and cxx compiler support -rpath directly
9973 hardcode_libdir_flag_spec
='-rpath $libdir'
9975 archive_cmds_need_lc
='no'
9976 hardcode_libdir_separator
=:
9980 no_undefined_flag
=' -z defs'
9981 if test "$GCC" = yes; then
9983 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9984 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9985 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9987 case `$CC -V 2>&1` in
9990 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9991 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9992 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9996 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9997 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9998 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10002 hardcode_libdir_flag_spec
='-R$libdir'
10003 hardcode_shlibpath_var
=no
10005 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10007 # The compiler driver will combine and reorder linker options,
10008 # but understands `-z linker_flag'. GCC discards it without `$wl',
10009 # but is careful enough not to reorder.
10010 # Supported since Solaris 2.6 (maybe 2.5.1?)
10011 if test "$GCC" = yes; then
10012 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10014 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10018 link_all_deplibs
=yes
10022 if test "x$host_vendor" = xsequent
; then
10023 # Use $CC to link under sequent, because it throws in some extra .o
10024 # files that make .init and .fini sections work.
10025 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10027 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10029 hardcode_libdir_flag_spec
='-L$libdir'
10030 hardcode_direct
=yes
10031 hardcode_minus_L
=yes
10032 hardcode_shlibpath_var
=no
10036 case $host_vendor in
10038 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10039 hardcode_direct
=yes # is this really true???
10042 ## LD is ld it makes a PLAMLIB
10043 ## CC just makes a GrossModule.
10044 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10045 reload_cmds
='$CC -r -o $output$reload_objs'
10049 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10050 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10053 runpath_var
='LD_RUN_PATH'
10054 hardcode_shlibpath_var
=no
10058 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10059 hardcode_shlibpath_var
=no
10060 export_dynamic_flag_spec
='-Bexport'
10064 if test -d /usr
/nec
; then
10065 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10066 hardcode_shlibpath_var
=no
10067 runpath_var
=LD_RUN_PATH
10068 hardcode_runpath_var
=yes
10073 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10074 no_undefined_flag
='${wl}-z,text'
10075 archive_cmds_need_lc
=no
10076 hardcode_shlibpath_var
=no
10077 runpath_var
='LD_RUN_PATH'
10079 if test "$GCC" = yes; then
10080 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10081 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10083 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10084 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10088 sysv5
* | sco3.2v5
* | sco5v6
*)
10089 # Note: We can NOT use -z defs as we might desire, because we do not
10090 # link with -lc, and that would cause any symbols used from libc to
10091 # always be unresolved, which means just about no library would
10092 # ever link correctly. If we're not using GNU ld we use -z text
10093 # though, which does catch some bad symbols but isn't as heavy-handed
10095 no_undefined_flag
='${wl}-z,text'
10096 allow_undefined_flag
='${wl}-z,nodefs'
10097 archive_cmds_need_lc
=no
10098 hardcode_shlibpath_var
=no
10099 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10100 hardcode_libdir_separator
=':'
10101 link_all_deplibs
=yes
10102 export_dynamic_flag_spec
='${wl}-Bexport'
10103 runpath_var
='LD_RUN_PATH'
10105 if test "$GCC" = yes; then
10106 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10107 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10109 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10110 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10115 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10116 hardcode_libdir_flag_spec
='-L$libdir'
10117 hardcode_shlibpath_var
=no
10125 if test x
$host_vendor = xsni
; then
10127 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10128 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10135 $as_echo "$ld_shlibs" >&6; }
10136 test "$ld_shlibs" = no
&& can_build_shared
=no
10138 with_gnu_ld
=$with_gnu_ld
10155 # Do we need to explicitly link libc?
10157 case "x$archive_cmds_need_lc" in
10159 # Assume -lc should be added
10160 archive_cmds_need_lc
=yes
10162 if test "$enable_shared" = yes && test "$GCC" = yes; then
10163 case $archive_cmds in
10165 # FIXME: we may have to deal with multi-command sequences.
10168 # Test whether the compiler implicitly links with -lc since on some
10169 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10170 # to ld, don't add -lc before -lgcc.
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10172 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10173 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10174 $as_echo_n "(cached) " >&6
10177 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10179 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10180 (eval $ac_compile) 2>&5
10182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10183 test $ac_status = 0; } 2>conftest.err
; then
10186 libobjs
=conftest.
$ac_objext
10188 wl
=$lt_prog_compiler_wl
10189 pic_flag
=$lt_prog_compiler_pic
10195 lt_save_allow_undefined_flag
=$allow_undefined_flag
10196 allow_undefined_flag
=
10197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10198 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10201 test $ac_status = 0; }
10203 lt_cv_archive_cmds_need_lc
=no
10205 lt_cv_archive_cmds_need_lc
=yes
10207 allow_undefined_flag
=$lt_save_allow_undefined_flag
10209 cat conftest.err
1>&5
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10215 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10216 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10380 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10382 if test "$GCC" = yes; then
10384 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10385 *) lt_awk_arg
="/^libraries:/" ;;
10388 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10389 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10391 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10392 case $lt_search_path_spec in
10394 # if the path contains ";" then we assume it to be the separator
10395 # otherwise default to the standard path separator (i.e. ":") - it is
10396 # assumed that no part of a normal pathname contains ";" but that should
10397 # okay in the real world where ";" in dirpaths is itself problematic.
10398 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10401 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10404 # Ok, now we have the path, separated by spaces, we can step through it
10405 # and add multilib dir if necessary.
10406 lt_tmp_lt_search_path_spec
=
10407 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10408 for lt_sys_path
in $lt_search_path_spec; do
10409 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10410 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10412 test -d "$lt_sys_path" && \
10413 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10416 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10417 BEGIN {RS=" "; FS="/|\n";} {
10420 for (lt_i = NF; lt_i > 0; lt_i--) {
10421 if ($lt_i != "" && $lt_i != ".") {
10422 if ($lt_i == "..") {
10425 if (lt_count == 0) {
10426 lt_foo="/" $lt_i lt_foo;
10433 if (lt_foo != "") { lt_freq[lt_foo]++; }
10434 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10436 # AWK program above erroneously prepends '/' to C:/dos/paths
10439 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10440 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10442 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10444 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10446 library_names_spec
=
10447 libname_spec
='lib$name'
10451 postuninstall_cmds
=
10455 shlibpath_overrides_runpath
=unknown
10457 dynamic_linker
="$host_os ld.so"
10458 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10459 need_lib_prefix
=unknown
10460 hardcode_into_libs
=no
10462 # when you set need_version to no, make sure it does not cause -set_version
10463 # flags to be left without arguments
10464 need_version
=unknown
10469 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10470 shlibpath_var
=LIBPATH
10472 # AIX 3 has no versioning support, so we append a major version to the name.
10473 soname_spec
='${libname}${release}${shared_ext}$major'
10480 hardcode_into_libs
=yes
10481 if test "$host_cpu" = ia64
; then
10482 # AIX 5 supports IA64
10483 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10484 shlibpath_var
=LD_LIBRARY_PATH
10486 # With GCC up to 2.95.x, collect2 would create an import file
10487 # for dependence libraries. The import file would start with
10488 # the line `#! .'. This would cause the generated library to
10489 # depend on `.', always an invalid library. This was fixed in
10490 # development snapshots of GCC prior to 3.0.
10492 aix4 | aix4.
[01] | aix4.
[01].
*)
10493 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10495 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10498 can_build_shared
=no
10502 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10503 # soname into executable. Probably we can add versioning support to
10504 # collect2, so additional links can be useful in future.
10505 if test "$aix_use_runtimelinking" = yes; then
10506 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10507 # instead of lib<name>.a to let people know that these are not
10508 # typical AIX shared libraries.
10509 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10511 # We preserve .a as extension for shared libraries through AIX4.2
10512 # and later when we are not doing run time linking.
10513 library_names_spec
='${libname}${release}.a $libname.a'
10514 soname_spec
='${libname}${release}${shared_ext}$major'
10516 shlibpath_var
=LIBPATH
10523 # Since July 2007 AmigaOS4 officially supports .so libraries.
10524 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10525 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10528 library_names_spec
='$libname.ixlibrary $libname.a'
10529 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10530 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'
10536 library_names_spec
='${libname}${shared_ext}'
10537 dynamic_linker
="$host_os ld.so"
10538 shlibpath_var
=LIBRARY_PATH
10544 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10545 soname_spec
='${libname}${release}${shared_ext}$major'
10546 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10547 shlibpath_var
=LD_LIBRARY_PATH
10548 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10549 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10550 # the default ld.so.conf also contains /usr/contrib/lib and
10551 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10552 # libtool to hard-code these into programs
10555 cygwin
* | mingw
* | pw32
* | cegcc
*)
10556 version_type
=windows
10561 case $GCC,$host_os in
10562 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10563 library_names_spec
='$libname.dll.a'
10564 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10565 postinstall_cmds
='base_file=`basename \${file}`~
10566 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10567 dldir=$destdir/`dirname \$dlpath`~
10568 test -d \$dldir || mkdir -p \$dldir~
10569 $install_prog $dir/$dlname \$dldir/$dlname~
10570 chmod a+x \$dldir/$dlname~
10571 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10572 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10574 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10575 dlpath=$dir/\$dldll~
10577 shlibpath_overrides_runpath
=yes
10581 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10582 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10584 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10587 # MinGW DLLs use traditional 'lib' prefix
10588 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10591 # pw32 DLLs use 'pw' prefix rather than 'lib'
10592 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10598 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10601 dynamic_linker
='Win32 ld.exe'
10602 # FIXME: first we should search . and the directory the executable is in
10606 darwin
* | rhapsody
*)
10607 dynamic_linker
="$host_os dyld"
10608 version_type
=darwin
10611 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10612 soname_spec
='${libname}${release}${major}$shared_ext'
10613 shlibpath_overrides_runpath
=yes
10614 shlibpath_var
=DYLD_LIBRARY_PATH
10615 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10617 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10618 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10625 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10626 soname_spec
='${libname}${release}${shared_ext}$major'
10627 shlibpath_var
=LD_LIBRARY_PATH
10630 freebsd
* | dragonfly
*)
10631 # DragonFly does not have aout. When/if they implement a new
10632 # versioning mechanism, adjust this.
10633 if test -x /usr
/bin
/objformat
; then
10634 objformat
=`/usr/bin/objformat`
10637 freebsd
[23].
*) objformat
=aout
;;
10638 *) objformat
=elf
;;
10641 version_type
=freebsd-
$objformat
10642 case $version_type in
10644 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10649 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10653 shlibpath_var
=LD_LIBRARY_PATH
10656 shlibpath_overrides_runpath
=yes
10658 freebsd3.
[01]* | freebsdelf3.
[01]*)
10659 shlibpath_overrides_runpath
=yes
10660 hardcode_into_libs
=yes
10662 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10663 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10664 shlibpath_overrides_runpath
=no
10665 hardcode_into_libs
=yes
10667 *) # from 4.6 on, and DragonFly
10668 shlibpath_overrides_runpath
=yes
10669 hardcode_into_libs
=yes
10678 dynamic_linker
="$host_os runtime_loader"
10679 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10680 soname_spec
='${libname}${release}${shared_ext}$major'
10681 shlibpath_var
=LIBRARY_PATH
10682 shlibpath_overrides_runpath
=yes
10683 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10684 hardcode_into_libs
=yes
10687 hpux9
* | hpux10
* | hpux11
*)
10688 # Give a soname corresponding to the major version so that dld.sl refuses to
10689 # link against other versions.
10696 hardcode_into_libs
=yes
10697 dynamic_linker
="$host_os dld.so"
10698 shlibpath_var
=LD_LIBRARY_PATH
10699 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10700 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10701 soname_spec
='${libname}${release}${shared_ext}$major'
10702 if test "X$HPUX_IA64_MODE" = X32
; then
10703 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10705 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10707 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10711 hardcode_into_libs
=yes
10712 dynamic_linker
="$host_os dld.sl"
10713 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10714 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10715 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10716 soname_spec
='${libname}${release}${shared_ext}$major'
10717 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10718 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10722 dynamic_linker
="$host_os dld.sl"
10723 shlibpath_var
=SHLIB_PATH
10724 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10725 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10726 soname_spec
='${libname}${release}${shared_ext}$major'
10729 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10730 postinstall_cmds
='chmod 555 $lib'
10731 # or fails outright, so override atomically:
10732 install_override_mode
=555
10739 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10740 soname_spec
='${libname}${release}${shared_ext}$major'
10741 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10742 shlibpath_var
=LD_LIBRARY_PATH
10743 shlibpath_overrides_runpath
=no
10744 hardcode_into_libs
=yes
10747 irix5
* | irix6
* | nonstopux
*)
10749 nonstopux
*) version_type
=nonstopux
;;
10751 if test "$lt_cv_prog_gnu_ld" = yes; then
10759 soname_spec
='${libname}${release}${shared_ext}$major'
10760 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10762 irix5
* | nonstopux
*)
10763 libsuff
= shlibsuff
=
10766 case $LD in # libtool.m4 will add one of these switches to LD
10767 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10768 libsuff
= shlibsuff
= libmagic
=32-bit;;
10769 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10770 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10771 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10772 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10773 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10777 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10778 shlibpath_overrides_runpath
=no
10779 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10780 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10781 hardcode_into_libs
=yes
10784 # No shared lib support for Linux oldld, aout, or coff.
10785 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10789 # This must be Linux ELF.
10791 # uclinux* changes (here and below) have been submitted to the libtool
10792 # project, but have not yet been accepted: they are GCC-local changes
10793 # for the time being. (See
10794 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10795 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
10799 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10800 soname_spec
='${libname}${release}${shared_ext}$major'
10801 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10802 shlibpath_var
=LD_LIBRARY_PATH
10803 shlibpath_overrides_runpath
=no
10805 # Some binutils ld are patched to set DT_RUNPATH
10806 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
10807 $as_echo_n "(cached) " >&6
10809 lt_cv_shlibpath_overrides_runpath
=no
10810 save_LDFLAGS
=$LDFLAGS
10811 save_libdir
=$libdir
10812 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10813 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10815 /* end confdefs.h. */
10825 if ac_fn_c_try_link
"$LINENO"; then :
10826 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10827 lt_cv_shlibpath_overrides_runpath
=yes
10830 rm -f core conftest.err conftest.
$ac_objext \
10831 conftest
$ac_exeext conftest.
$ac_ext
10832 LDFLAGS
=$save_LDFLAGS
10833 libdir
=$save_libdir
10837 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10839 # This implies no fast_install, which is unacceptable.
10840 # Some rework will be needed to allow for fast_install
10841 # before this can be enabled.
10842 hardcode_into_libs
=yes
10844 # Append ld.so.conf contents to the search path
10845 if test -f /etc
/ld.so.conf
; then
10846 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' ' '`
10847 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10850 # We used to test for /lib/ld.so.1 and disable shared libraries on
10851 # powerpc, because MkLinux only supported shared libraries with the
10852 # GNU dynamic linker. Since this was broken with cross compilers,
10853 # most powerpc-linux boxes support dynamic linking these days and
10854 # people can always --disable-shared, the test was removed, and we
10855 # assume the GNU/Linux dynamic linker is in use.
10856 dynamic_linker
='GNU/Linux ld.so'
10863 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10864 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10865 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10866 dynamic_linker
='NetBSD (a.out) ld.so'
10868 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10869 soname_spec
='${libname}${release}${shared_ext}$major'
10870 dynamic_linker
='NetBSD ld.elf_so'
10872 shlibpath_var
=LD_LIBRARY_PATH
10873 shlibpath_overrides_runpath
=yes
10874 hardcode_into_libs
=yes
10879 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10880 shlibpath_var
=LD_LIBRARY_PATH
10881 shlibpath_overrides_runpath
=yes
10888 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10889 soname_spec
='${libname}${release}${shared_ext}$major'
10890 shlibpath_var
=LD_LIBRARY_PATH
10891 shlibpath_overrides_runpath
=no
10892 hardcode_into_libs
=yes
10893 dynamic_linker
='ldqnx.so'
10898 sys_lib_dlsearch_path_spec
="/usr/lib"
10900 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10902 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10903 *) need_version
=no
;;
10905 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10906 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10907 shlibpath_var
=LD_LIBRARY_PATH
10908 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10910 openbsd2.
[89] | openbsd2.
[89].
*)
10911 shlibpath_overrides_runpath
=no
10914 shlibpath_overrides_runpath
=yes
10918 shlibpath_overrides_runpath
=yes
10923 libname_spec
='$name'
10926 library_names_spec
='$libname${shared_ext} $libname.a'
10927 dynamic_linker
='OS/2 ld.exe'
10928 shlibpath_var
=LIBPATH
10931 osf3
* | osf4
* | osf5
*)
10935 soname_spec
='${libname}${release}${shared_ext}$major'
10936 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10937 shlibpath_var
=LD_LIBRARY_PATH
10938 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10939 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10950 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10951 soname_spec
='${libname}${release}${shared_ext}$major'
10952 shlibpath_var
=LD_LIBRARY_PATH
10953 shlibpath_overrides_runpath
=yes
10954 hardcode_into_libs
=yes
10955 # ldd complains unless libraries are executable
10956 postinstall_cmds
='chmod +x $lib'
10961 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10962 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10963 shlibpath_var
=LD_LIBRARY_PATH
10964 shlibpath_overrides_runpath
=yes
10965 if test "$with_gnu_ld" = yes; then
10973 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10974 soname_spec
='${libname}${release}${shared_ext}$major'
10975 shlibpath_var
=LD_LIBRARY_PATH
10976 case $host_vendor in
10978 shlibpath_overrides_runpath
=no
10980 runpath_var
=LD_RUN_PATH
10988 shlibpath_overrides_runpath
=no
10989 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10995 if test -d /usr
/nec
;then
10997 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10998 soname_spec
='$libname${shared_ext}.$major'
10999 shlibpath_var
=LD_LIBRARY_PATH
11003 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11004 version_type
=freebsd-elf
11007 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11008 soname_spec
='${libname}${release}${shared_ext}$major'
11009 shlibpath_var
=LD_LIBRARY_PATH
11010 shlibpath_overrides_runpath
=yes
11011 hardcode_into_libs
=yes
11012 if test "$with_gnu_ld" = yes; then
11013 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11015 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11018 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11022 sys_lib_dlsearch_path_spec
='/usr/lib'
11026 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11030 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11031 shlibpath_var
=LD_LIBRARY_PATH
11032 shlibpath_overrides_runpath
=no
11033 hardcode_into_libs
=yes
11038 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11039 soname_spec
='${libname}${release}${shared_ext}$major'
11040 shlibpath_var
=LD_LIBRARY_PATH
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11048 $as_echo "$dynamic_linker" >&6; }
11049 test "$dynamic_linker" = no
&& can_build_shared
=no
11051 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11052 if test "$GCC" = yes; then
11053 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11056 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11057 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
11059 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11060 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11155 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11157 if test -n "$hardcode_libdir_flag_spec" ||
11158 test -n "$runpath_var" ||
11159 test "X$hardcode_automatic" = "Xyes" ; then
11161 # We can hardcode non-existent directories.
11162 if test "$hardcode_direct" != no
&&
11163 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11164 # have to relink, otherwise we might link with an installed library
11165 # when we should be linking with a yet-to-be-installed one
11166 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11167 test "$hardcode_minus_L" != no
; then
11168 # Linking always hardcodes the temporary library directory.
11169 hardcode_action
=relink
11171 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11172 hardcode_action
=immediate
11175 # We cannot hardcode anything, or else we can only hardcode existing
11177 hardcode_action
=unsupported
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11180 $as_echo "$hardcode_action" >&6; }
11182 if test "$hardcode_action" = relink ||
11183 test "$inherit_rpath" = yes; then
11184 # Fast installation is not supported
11185 enable_fast_install
=no
11186 elif test "$shlibpath_overrides_runpath" = yes ||
11187 test "$enable_shared" = no
; then
11188 # Fast installation is not necessary
11189 enable_fast_install
=needless
11197 if test "x$enable_dlopen" != xyes
; then
11198 enable_dlopen
=unknown
11199 enable_dlopen_self
=unknown
11200 enable_dlopen_self_static
=unknown
11207 lt_cv_dlopen
="load_add_on"
11209 lt_cv_dlopen_self
=yes
11212 mingw
* | pw32
* | cegcc
*)
11213 lt_cv_dlopen
="LoadLibrary"
11218 lt_cv_dlopen
="dlopen"
11223 # if libdl is installed we need to link against it
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11225 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11226 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11227 $as_echo_n "(cached) " >&6
11229 ac_check_lib_save_LIBS
=$LIBS
11231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11232 /* end confdefs.h. */
11234 /* Override any GCC internal prototype to avoid an error.
11235 Use char because int might match the return type of a GCC
11236 builtin and then its argument prototype would still apply. */
11249 if ac_fn_c_try_link
"$LINENO"; then :
11250 ac_cv_lib_dl_dlopen
=yes
11252 ac_cv_lib_dl_dlopen
=no
11254 rm -f core conftest.err conftest.
$ac_objext \
11255 conftest
$ac_exeext conftest.
$ac_ext
11256 LIBS
=$ac_check_lib_save_LIBS
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11259 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11260 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11261 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11264 lt_cv_dlopen
="dyld"
11266 lt_cv_dlopen_self
=yes
11273 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11274 if test "x$ac_cv_func_shl_load" = xyes
; then :
11275 lt_cv_dlopen
="shl_load"
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11278 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11279 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11280 $as_echo_n "(cached) " >&6
11282 ac_check_lib_save_LIBS
=$LIBS
11284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11285 /* end confdefs.h. */
11287 /* Override any GCC internal prototype to avoid an error.
11288 Use char because int might match the return type of a GCC
11289 builtin and then its argument prototype would still apply. */
11297 return shl_load ();
11302 if ac_fn_c_try_link
"$LINENO"; then :
11303 ac_cv_lib_dld_shl_load
=yes
11305 ac_cv_lib_dld_shl_load
=no
11307 rm -f core conftest.err conftest.
$ac_objext \
11308 conftest
$ac_exeext conftest.
$ac_ext
11309 LIBS
=$ac_check_lib_save_LIBS
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11312 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11313 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11314 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11316 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11317 if test "x$ac_cv_func_dlopen" = xyes
; then :
11318 lt_cv_dlopen
="dlopen"
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11321 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11322 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11323 $as_echo_n "(cached) " >&6
11325 ac_check_lib_save_LIBS
=$LIBS
11327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11328 /* end confdefs.h. */
11330 /* Override any GCC internal prototype to avoid an error.
11331 Use char because int might match the return type of a GCC
11332 builtin and then its argument prototype would still apply. */
11345 if ac_fn_c_try_link
"$LINENO"; then :
11346 ac_cv_lib_dl_dlopen
=yes
11348 ac_cv_lib_dl_dlopen
=no
11350 rm -f core conftest.err conftest.
$ac_objext \
11351 conftest
$ac_exeext conftest.
$ac_ext
11352 LIBS
=$ac_check_lib_save_LIBS
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11355 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11356 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11357 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11360 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11361 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11362 $as_echo_n "(cached) " >&6
11364 ac_check_lib_save_LIBS
=$LIBS
11365 LIBS
="-lsvld $LIBS"
11366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11367 /* end confdefs.h. */
11369 /* Override any GCC internal prototype to avoid an error.
11370 Use char because int might match the return type of a GCC
11371 builtin and then its argument prototype would still apply. */
11384 if ac_fn_c_try_link
"$LINENO"; then :
11385 ac_cv_lib_svld_dlopen
=yes
11387 ac_cv_lib_svld_dlopen
=no
11389 rm -f core conftest.err conftest.
$ac_objext \
11390 conftest
$ac_exeext conftest.
$ac_ext
11391 LIBS
=$ac_check_lib_save_LIBS
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11394 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11395 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11396 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11399 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11400 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11401 $as_echo_n "(cached) " >&6
11403 ac_check_lib_save_LIBS
=$LIBS
11405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11406 /* end confdefs.h. */
11408 /* Override any GCC internal prototype to avoid an error.
11409 Use char because int might match the return type of a GCC
11410 builtin and then its argument prototype would still apply. */
11418 return dld_link ();
11423 if ac_fn_c_try_link
"$LINENO"; then :
11424 ac_cv_lib_dld_dld_link
=yes
11426 ac_cv_lib_dld_dld_link
=no
11428 rm -f core conftest.err conftest.
$ac_objext \
11429 conftest
$ac_exeext conftest.
$ac_ext
11430 LIBS
=$ac_check_lib_save_LIBS
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11433 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11434 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11435 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11456 if test "x$lt_cv_dlopen" != xno
; then
11462 case $lt_cv_dlopen in
11464 save_CPPFLAGS
="$CPPFLAGS"
11465 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11467 save_LDFLAGS
="$LDFLAGS"
11468 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11471 LIBS
="$lt_cv_dlopen_libs $LIBS"
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11474 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11475 if ${lt_cv_dlopen_self+:} false
; then :
11476 $as_echo_n "(cached) " >&6
11478 if test "$cross_compiling" = yes; then :
11479 lt_cv_dlopen_self
=cross
11481 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11482 lt_status
=$lt_dlunknown
11483 cat > conftest.
$ac_ext <<_LT_EOF
11484 #line 11484 "configure"
11485 #include "confdefs.h"
11494 # define LT_DLGLOBAL RTLD_GLOBAL
11497 # define LT_DLGLOBAL DL_GLOBAL
11499 # define LT_DLGLOBAL 0
11503 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11504 find out it does not work in some platform. */
11505 #ifndef LT_DLLAZY_OR_NOW
11507 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11510 # define LT_DLLAZY_OR_NOW DL_LAZY
11513 # define LT_DLLAZY_OR_NOW RTLD_NOW
11516 # define LT_DLLAZY_OR_NOW DL_NOW
11518 # define LT_DLLAZY_OR_NOW 0
11525 /* When -fvisbility=hidden is used, assume the code has been annotated
11526 correspondingly for the symbols needed. */
11527 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11528 void fnord () __attribute__((visibility("default")));
11531 void fnord () { int i=42; }
11534 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11535 int status = $lt_dlunknown;
11539 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11542 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11543 else puts (dlerror ());
11545 /* dlclose (self); */
11553 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11554 (eval $ac_link) 2>&5
11556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11557 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11558 (.
/conftest
; exit; ) >&5 2>/dev
/null
11560 case x
$lt_status in
11561 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11562 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11563 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11566 # compilation failed
11567 lt_cv_dlopen_self
=no
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11575 $as_echo "$lt_cv_dlopen_self" >&6; }
11577 if test "x$lt_cv_dlopen_self" = xyes
; then
11578 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11580 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11581 if ${lt_cv_dlopen_self_static+:} false
; then :
11582 $as_echo_n "(cached) " >&6
11584 if test "$cross_compiling" = yes; then :
11585 lt_cv_dlopen_self_static
=cross
11587 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11588 lt_status
=$lt_dlunknown
11589 cat > conftest.
$ac_ext <<_LT_EOF
11590 #line 11590 "configure"
11591 #include "confdefs.h"
11600 # define LT_DLGLOBAL RTLD_GLOBAL
11603 # define LT_DLGLOBAL DL_GLOBAL
11605 # define LT_DLGLOBAL 0
11609 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11610 find out it does not work in some platform. */
11611 #ifndef LT_DLLAZY_OR_NOW
11613 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11616 # define LT_DLLAZY_OR_NOW DL_LAZY
11619 # define LT_DLLAZY_OR_NOW RTLD_NOW
11622 # define LT_DLLAZY_OR_NOW DL_NOW
11624 # define LT_DLLAZY_OR_NOW 0
11631 /* When -fvisbility=hidden is used, assume the code has been annotated
11632 correspondingly for the symbols needed. */
11633 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11634 void fnord () __attribute__((visibility("default")));
11637 void fnord () { int i=42; }
11640 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11641 int status = $lt_dlunknown;
11645 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11648 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11649 else puts (dlerror ());
11651 /* dlclose (self); */
11659 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11660 (eval $ac_link) 2>&5
11662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11663 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11664 (.
/conftest
; exit; ) >&5 2>/dev
/null
11666 case x
$lt_status in
11667 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11668 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11669 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11672 # compilation failed
11673 lt_cv_dlopen_self_static
=no
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11681 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11684 CPPFLAGS
="$save_CPPFLAGS"
11685 LDFLAGS
="$save_LDFLAGS"
11690 case $lt_cv_dlopen_self in
11691 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11692 *) enable_dlopen_self
=unknown
;;
11695 case $lt_cv_dlopen_self_static in
11696 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11697 *) enable_dlopen_self_static
=unknown
;;
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11720 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11721 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11722 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11723 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11725 $as_echo "yes" >&6; }
11727 # FIXME - insert some real tests, host_os isn't really good enough
11730 if test -n "$STRIP" ; then
11731 striplib
="$STRIP -x"
11732 old_striplib
="$STRIP -S"
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11734 $as_echo "yes" >&6; }
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11737 $as_echo "no" >&6; }
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11742 $as_echo "no" >&6; }
11758 # Report which library types will actually be built
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11760 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11762 $as_echo "$can_build_shared" >&6; }
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11765 $as_echo_n "checking whether to build shared libraries... " >&6; }
11766 test "$can_build_shared" = "no" && enable_shared
=no
11768 # On AIX, shared libraries and static libraries use the same namespace, and
11769 # are all built from PIC.
11772 test "$enable_shared" = yes && enable_static
=no
11773 if test -n "$RANLIB"; then
11774 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11775 postinstall_cmds
='$RANLIB $lib'
11780 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11781 test "$enable_shared" = yes && enable_static
=no
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11786 $as_echo "$enable_shared" >&6; }
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11789 $as_echo_n "checking whether to build static libraries... " >&6; }
11790 # Make sure either enable_shared or enable_static is yes.
11791 test "$enable_shared" = yes || enable_static
=yes
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11793 $as_echo "$enable_static" >&6; }
11800 ac_cpp
='$CPP $CPPFLAGS'
11801 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11802 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11803 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11807 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11808 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11809 (test "X$CXX" != "Xg++"))) ; then
11811 ac_cpp
='$CXXCPP $CPPFLAGS'
11812 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11813 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11814 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11816 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11817 if test -z "$CXXCPP"; then
11818 if ${ac_cv_prog_CXXCPP+:} false
; then :
11819 $as_echo_n "(cached) " >&6
11821 # Double quotes because CXXCPP needs to be expanded
11822 for CXXCPP
in "$CXX -E" "/lib/cpp"
11824 ac_preproc_ok
=false
11825 for ac_cxx_preproc_warn_flag
in '' yes
11827 # Use a header file that comes with gcc, so configuring glibc
11828 # with a fresh cross-compiler works.
11829 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11830 # <limits.h> exists even on freestanding compilers.
11831 # On the NeXT, cc -E runs the code through the compiler's parser,
11832 # not just through cpp. "Syntax error" is here to catch this case.
11833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11834 /* end confdefs.h. */
11836 # include <limits.h>
11838 # include <assert.h>
11842 if ac_fn_cxx_try_cpp
"$LINENO"; then :
11845 # Broken: fails on valid input.
11848 rm -f conftest.err conftest.i conftest.
$ac_ext
11850 # OK, works on sane cases. Now check whether nonexistent headers
11851 # can be detected and how.
11852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11853 /* end confdefs.h. */
11854 #include <ac_nonexistent.h>
11856 if ac_fn_cxx_try_cpp
"$LINENO"; then :
11857 # Broken: success on invalid input.
11860 # Passes both tests.
11864 rm -f conftest.err conftest.i conftest.
$ac_ext
11867 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11868 rm -f conftest.i conftest.err conftest.
$ac_ext
11869 if $ac_preproc_ok; then :
11874 ac_cv_prog_CXXCPP
=$CXXCPP
11877 CXXCPP
=$ac_cv_prog_CXXCPP
11879 ac_cv_prog_CXXCPP
=$CXXCPP
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11882 $as_echo "$CXXCPP" >&6; }
11883 ac_preproc_ok
=false
11884 for ac_cxx_preproc_warn_flag
in '' yes
11886 # Use a header file that comes with gcc, so configuring glibc
11887 # with a fresh cross-compiler works.
11888 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11889 # <limits.h> exists even on freestanding compilers.
11890 # On the NeXT, cc -E runs the code through the compiler's parser,
11891 # not just through cpp. "Syntax error" is here to catch this case.
11892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11893 /* end confdefs.h. */
11895 # include <limits.h>
11897 # include <assert.h>
11901 if ac_fn_cxx_try_cpp
"$LINENO"; then :
11904 # Broken: fails on valid input.
11907 rm -f conftest.err conftest.i conftest.
$ac_ext
11909 # OK, works on sane cases. Now check whether nonexistent headers
11910 # can be detected and how.
11911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11912 /* end confdefs.h. */
11913 #include <ac_nonexistent.h>
11915 if ac_fn_cxx_try_cpp
"$LINENO"; then :
11916 # Broken: success on invalid input.
11919 # Passes both tests.
11923 rm -f conftest.err conftest.i conftest.
$ac_ext
11926 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11927 rm -f conftest.i conftest.err conftest.
$ac_ext
11928 if $ac_preproc_ok; then :
11931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11933 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
11934 See \`config.log' for more details" "$LINENO" 5; }
11938 ac_cpp
='$CPP $CPPFLAGS'
11939 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11940 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11941 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11944 _lt_caught_CXX_error
=yes
11948 ac_cpp
='$CXXCPP $CPPFLAGS'
11949 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11950 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11951 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
11953 archive_cmds_need_lc_CXX
=no
11954 allow_undefined_flag_CXX
=
11955 always_export_symbols_CXX
=no
11956 archive_expsym_cmds_CXX
=
11957 compiler_needs_object_CXX
=no
11958 export_dynamic_flag_spec_CXX
=
11959 hardcode_direct_CXX
=no
11960 hardcode_direct_absolute_CXX
=no
11961 hardcode_libdir_flag_spec_CXX
=
11962 hardcode_libdir_flag_spec_ld_CXX
=
11963 hardcode_libdir_separator_CXX
=
11964 hardcode_minus_L_CXX
=no
11965 hardcode_shlibpath_var_CXX
=unsupported
11966 hardcode_automatic_CXX
=no
11967 inherit_rpath_CXX
=no
11969 module_expsym_cmds_CXX
=
11970 link_all_deplibs_CXX
=unknown
11971 old_archive_cmds_CXX
=$old_archive_cmds
11972 reload_flag_CXX
=$reload_flag
11973 reload_cmds_CXX
=$reload_cmds
11974 no_undefined_flag_CXX
=
11975 whole_archive_flag_spec_CXX
=
11976 enable_shared_with_static_runtimes_CXX
=no
11978 # Source file extension for C++ test sources.
11981 # Object file extension for compiled C++ test sources.
11985 # No sense in running all these tests if we already determined that
11986 # the CXX compiler isn't working. Some variables (like enable_shared)
11987 # are currently assumed to apply to all compilers on this platform,
11988 # and will be corrupted by setting them based on a non-working compiler.
11989 if test "$_lt_caught_CXX_error" != yes; then
11990 # Code to be used in simple compile tests
11991 lt_simple_compile_test_code
="int some_variable = 0;"
11993 # Code to be used in simple link tests
11994 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
11996 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12003 # If no C compiler was specified, use CC.
12006 # If no C compiler flags were specified, use CFLAGS.
12007 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
12009 # Allow CC to be a program name with arguments.
12013 # save warnings/boilerplate of simple test code
12014 ac_outfile
=conftest.
$ac_objext
12015 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
12016 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12017 _lt_compiler_boilerplate
=`cat conftest.err`
12020 ac_outfile
=conftest.
$ac_objext
12021 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
12022 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12023 _lt_linker_boilerplate
=`cat conftest.err`
12027 # Allow CC to be a program name with arguments.
12032 lt_save_with_gnu_ld
=$with_gnu_ld
12033 lt_save_path_LD
=$lt_cv_path_LD
12034 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12035 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
12037 $as_unset lt_cv_prog_gnu_ld
12039 if test -n "${lt_cv_path_LDCXX+set}"; then
12040 lt_cv_path_LD
=$lt_cv_path_LDCXX
12042 $as_unset lt_cv_path_LD
12044 test -z "${LDCXX+set}" || LD
=$LDCXX
12048 for cc_temp
in $compiler""; do
12050 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
12051 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
12056 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12059 if test -n "$compiler"; then
12060 # We don't want -fno-exception when compiling C++ code, so set the
12061 # no_builtin_flag separately
12062 if test "$GXX" = yes; then
12063 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
12065 lt_prog_compiler_no_builtin_flag_CXX
=
12068 if test "$GXX" = yes; then
12069 # Set up default GNU C++ configuration
12073 # Check whether --with-gnu-ld was given.
12074 if test "${with_gnu_ld+set}" = set; then :
12075 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12081 if test "$GCC" = yes; then
12082 # Check if gcc -print-prog-name=ld gives a path.
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12084 $as_echo_n "checking for ld used by $CC... " >&6; }
12087 # gcc leaves a trailing carriage return which upsets mingw
12088 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12090 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12093 # Accept absolute paths.
12095 re_direlt
='/[^/][^/]*/\.\./'
12096 # Canonicalize the pathname of ld
12097 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12098 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12099 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12101 test -z "$LD" && LD
="$ac_prog"
12104 # If it fails, then pretend we aren't using GCC.
12108 # If it is relative, then search for the first ld in PATH.
12109 with_gnu_ld
=unknown
12112 elif test "$with_gnu_ld" = yes; then
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12114 $as_echo_n "checking for GNU ld... " >&6; }
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12117 $as_echo_n "checking for non-GNU ld... " >&6; }
12119 if ${lt_cv_path_LD+:} false
; then :
12120 $as_echo_n "(cached) " >&6
12122 if test -z "$LD"; then
12123 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12124 for ac_dir
in $PATH; do
12126 test -z "$ac_dir" && ac_dir
=.
12127 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12128 lt_cv_path_LD
="$ac_dir/$ac_prog"
12129 # Check to see if the program is GNU ld. I'd rather use --version,
12130 # but apparently some variants of GNU ld only accept -v.
12131 # Break only if it was the GNU/non-GNU ld that we prefer.
12132 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12133 *GNU
* |
*'with BFD'*)
12134 test "$with_gnu_ld" != no
&& break
12137 test "$with_gnu_ld" != yes && break
12144 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12148 LD
="$lt_cv_path_LD"
12149 if test -n "$LD"; then
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12151 $as_echo "$LD" >&6; }
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12154 $as_echo "no" >&6; }
12156 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12158 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12159 if ${lt_cv_prog_gnu_ld+:} false
; then :
12160 $as_echo_n "(cached) " >&6
12162 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12163 case `$LD -v 2>&1 </dev/null` in
12164 *GNU
* |
*'with BFD'*)
12165 lt_cv_prog_gnu_ld
=yes
12168 lt_cv_prog_gnu_ld
=no
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12173 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12174 with_gnu_ld
=$lt_cv_prog_gnu_ld
12182 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12183 # archiving commands below assume that GNU ld is being used.
12184 if test "$with_gnu_ld" = yes; then
12185 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12186 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'
12188 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12189 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12191 # If archive_cmds runs LD, not CC, wlarc should be empty
12192 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12193 # investigate it a little bit more. (MM)
12196 # ancient GNU ld didn't support --whole-archive et. al.
12197 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12198 $GREP 'no-whole-archive' > /dev
/null
; then
12199 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12201 whole_archive_flag_spec_CXX
=
12207 # A generic and very simple default shared library creation
12208 # command for GNU C++ for the case where it uses the native
12209 # linker, instead of GNU ld. If possible, this setting should
12210 # overridden to take advantage of the native linker features on
12211 # the platform it is being used on.
12212 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12215 # Commands to make compiler produce verbose output that lists
12216 # what "hidden" libraries, object files and flags are used when
12217 # linking a shared library.
12218 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12226 # PORTME: fill in a description of your system's C++ link characteristics
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12228 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12232 # FIXME: insert proper C++ library support
12236 if test "$host_cpu" = ia64
; then
12237 # On IA64, the linker does run time linking by default, so we don't
12238 # have to do anything special.
12239 aix_use_runtimelinking
=no
12240 exp_sym_flag
='-Bexport'
12243 aix_use_runtimelinking
=no
12245 # Test if we are trying to use run time linking or normal
12246 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12247 # need to do runtime linking.
12248 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
12249 for ld_flag
in $LDFLAGS; do
12252 aix_use_runtimelinking
=yes
12260 exp_sym_flag
='-bexport'
12261 no_entry_flag
='-bnoentry'
12264 # When large executables or shared objects are built, AIX ld can
12265 # have problems creating the table of contents. If linking a library
12266 # or program results in "error TOC overflow" add -mminimal-toc to
12267 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12268 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12270 archive_cmds_CXX
=''
12271 hardcode_direct_CXX
=yes
12272 hardcode_direct_absolute_CXX
=yes
12273 hardcode_libdir_separator_CXX
=':'
12274 link_all_deplibs_CXX
=yes
12275 file_list_spec_CXX
='${wl}-f,'
12277 if test "$GXX" = yes; then
12278 case $host_os in aix4.
[012]|aix4.
[012].
*)
12279 # We only want to do this on AIX 4.2 and lower, the check
12280 # below for broken collect2 doesn't work under 4.3+
12281 collect2name
=`${CC} -print-prog-name=collect2`
12282 if test -f "$collect2name" &&
12283 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
12285 # We have reworked collect2
12288 # We have old collect2
12289 hardcode_direct_CXX
=unsupported
12290 # It fails to find uninstalled libraries when the uninstalled
12291 # path is not listed in the libpath. Setting hardcode_minus_L
12292 # to unsupported forces relinking
12293 hardcode_minus_L_CXX
=yes
12294 hardcode_libdir_flag_spec_CXX
='-L$libdir'
12295 hardcode_libdir_separator_CXX
=
12298 shared_flag
='-shared'
12299 if test "$aix_use_runtimelinking" = yes; then
12300 shared_flag
="$shared_flag "'${wl}-G'
12304 if test "$host_cpu" = ia64
; then
12305 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12306 # chokes on -Wl,-G. The following line is correct:
12309 if test "$aix_use_runtimelinking" = yes; then
12310 shared_flag
='${wl}-G'
12312 shared_flag
='${wl}-bM:SRE'
12317 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
12318 # It seems that -bexpall does not export symbols beginning with
12319 # underscore (_), so it is better to generate a list of symbols to
12321 always_export_symbols_CXX
=yes
12322 if test "$aix_use_runtimelinking" = yes; then
12323 # Warning - without using the other runtime loading flags (-brtl),
12324 # -berok will link without error, but may produce a broken library.
12325 allow_undefined_flag_CXX
='-berok'
12326 # Determine the default libpath from the value encoded in an empty
12328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12329 /* end confdefs.h. */
12339 if ac_fn_cxx_try_link
"$LINENO"; then :
12341 lt_aix_libpath_sed
='
12342 /Import File Strings/,/^$/ {
12348 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12349 # Check for a 64-bit object if we didn't find anything.
12350 if test -z "$aix_libpath"; then
12351 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12354 rm -f core conftest.err conftest.
$ac_objext \
12355 conftest
$ac_exeext conftest.
$ac_ext
12356 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
12358 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
12360 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"
12362 if test "$host_cpu" = ia64
; then
12363 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
12364 allow_undefined_flag_CXX
="-z nodefs"
12365 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"
12367 # Determine the default libpath from the value encoded in an
12368 # empty executable.
12369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12370 /* end confdefs.h. */
12380 if ac_fn_cxx_try_link
"$LINENO"; then :
12382 lt_aix_libpath_sed
='
12383 /Import File Strings/,/^$/ {
12389 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12390 # Check for a 64-bit object if we didn't find anything.
12391 if test -z "$aix_libpath"; then
12392 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12395 rm -f core conftest.err conftest.
$ac_objext \
12396 conftest
$ac_exeext conftest.
$ac_ext
12397 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
12399 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
12400 # Warning - without using the other run time loading flags,
12401 # -berok will link without error, but may produce a broken library.
12402 no_undefined_flag_CXX
=' ${wl}-bernotok'
12403 allow_undefined_flag_CXX
=' ${wl}-berok'
12404 if test "$with_gnu_ld" = yes; then
12405 # We only use this code for GNU lds that support --whole-archive.
12406 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12408 # Exported symbols can be pulled into shared objects from archives
12409 whole_archive_flag_spec_CXX
='$convenience'
12411 archive_cmds_need_lc_CXX
=yes
12412 # This is similar to how AIX traditionally builds its shared
12414 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'
12420 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12421 allow_undefined_flag_CXX
=unsupported
12422 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12423 # support --undefined. This deserves some investigation. FIXME
12424 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12431 case $cc_basename in
12433 # FIXME: insert proper C++ library support
12439 cygwin
* | mingw
* | pw32
* | cegcc
*)
12440 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12441 # as there is no search path for DLLs.
12442 hardcode_libdir_flag_spec_CXX
='-L$libdir'
12443 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
12444 allow_undefined_flag_CXX
=unsupported
12445 always_export_symbols_CXX
=no
12446 enable_shared_with_static_runtimes_CXX
=yes
12448 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
12449 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'
12450 # If the export-symbols file already is a .def file (1st line
12451 # is EXPORTS), use it as is; otherwise, prepend...
12452 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12453 cp $export_symbols $output_objdir/$soname.def;
12455 echo EXPORTS > $output_objdir/$soname.def;
12456 cat $export_symbols >> $output_objdir/$soname.def;
12458 $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'
12463 darwin
* | rhapsody
*)
12466 archive_cmds_need_lc_CXX
=no
12467 hardcode_direct_CXX
=no
12468 hardcode_automatic_CXX
=yes
12469 hardcode_shlibpath_var_CXX
=unsupported
12470 if test "$lt_cv_ld_force_load" = "yes"; then
12471 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\"`'
12473 whole_archive_flag_spec_CXX
=''
12475 link_all_deplibs_CXX
=yes
12476 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
12477 case $cc_basename in
12478 ifort
*) _lt_dar_can_shared
=yes ;;
12479 *) _lt_dar_can_shared
=$GCC ;;
12481 if test "$_lt_dar_can_shared" = "yes"; then
12482 output_verbose_link_cmd
=func_echo_all
12483 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}"
12484 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12485 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}"
12486 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}"
12487 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12488 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}"
12489 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}"
12499 case $cc_basename in
12501 # FIXME: insert proper C++ library support
12505 # Green Hills C++ Compiler
12506 # FIXME: insert proper C++ library support
12510 # FIXME: insert proper C++ library support
12517 # C++ shared libraries reported to be fairly broken before
12523 archive_cmds_need_lc_CXX
=no
12526 freebsd
* | dragonfly
*)
12527 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12536 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12537 link_all_deplibs_CXX
=yes
12541 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
12542 hardcode_libdir_separator_CXX
=:
12543 export_dynamic_flag_spec_CXX
='${wl}-E'
12544 hardcode_direct_CXX
=yes
12545 hardcode_minus_L_CXX
=yes # Not in the search PATH,
12546 # but as the default
12547 # location of the library.
12549 case $cc_basename in
12551 # FIXME: insert proper C++ library support
12555 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'
12556 # Commands to make compiler produce verbose output that lists
12557 # what "hidden" libraries, object files and flags are used when
12558 # linking a shared library.
12560 # There doesn't appear to be a way to prevent this compiler from
12561 # explicitly linking system object files so we need to strip them
12562 # from the output so that they don't get included in the library
12564 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"'
12567 if test "$GXX" = yes; then
12568 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'
12570 # FIXME: insert proper C++ library support
12578 if test $with_gnu_ld = no
; then
12579 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
12580 hardcode_libdir_separator_CXX
=:
12586 export_dynamic_flag_spec_CXX
='${wl}-E'
12592 hardcode_direct_CXX
=no
12593 hardcode_shlibpath_var_CXX
=no
12596 hardcode_direct_CXX
=yes
12597 hardcode_direct_absolute_CXX
=yes
12598 hardcode_minus_L_CXX
=yes # Not in the search PATH,
12599 # but as the default
12600 # location of the library.
12604 case $cc_basename in
12606 # FIXME: insert proper C++ library support
12612 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12615 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12618 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12621 # Commands to make compiler produce verbose output that lists
12622 # what "hidden" libraries, object files and flags are used when
12623 # linking a shared library.
12625 # There doesn't appear to be a way to prevent this compiler from
12626 # explicitly linking system object files so we need to strip them
12627 # from the output so that they don't get included in the library
12629 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"'
12632 if test "$GXX" = yes; then
12633 if test $with_gnu_ld = no
; then
12636 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12639 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12642 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'
12647 # FIXME: insert proper C++ library support
12655 hardcode_direct_CXX
=no
12656 hardcode_shlibpath_var_CXX
=no
12657 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12658 export_dynamic_flag_spec_CXX
='${wl}-E'
12659 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12660 # Instead, shared libraries are loaded at an image base (0x10000000 by
12661 # default) and relocated if they conflict, which is a slow very memory
12662 # consuming and fragmenting process. To avoid this, we pick a random,
12663 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12664 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12665 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'
12666 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'
12669 case $cc_basename in
12672 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'
12674 # Archives containing C++ object files must be created using
12675 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12676 # necessary to make sure instantiated templates are included
12678 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
12681 if test "$GXX" = yes; then
12682 if test "$with_gnu_ld" = no
; then
12683 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'
12685 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'
12688 link_all_deplibs_CXX
=yes
12691 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12692 hardcode_libdir_separator_CXX
=:
12693 inherit_rpath_CXX
=yes
12696 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12697 case $cc_basename in
12699 # Kuck and Associates, Inc. (KAI) C++ Compiler
12701 # KCC will only create a shared library if the output file
12702 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12703 # to its proper name (with version) after linking.
12704 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'
12705 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'
12706 # Commands to make compiler produce verbose output that lists
12707 # what "hidden" libraries, object files and flags are used when
12708 # linking a shared library.
12710 # There doesn't appear to be a way to prevent this compiler from
12711 # explicitly linking system object files so we need to strip them
12712 # from the output so that they don't get included in the library
12714 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"'
12716 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12717 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12719 # Archives containing C++ object files must be created using
12720 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12721 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
12726 # version 8.0 and above of icpc choke on multiply defined symbols
12727 # if we add $predep_objects and $postdep_objects, however 7.1 and
12728 # earlier do not add the objects themselves.
12729 case `$CC -V 2>&1` in
12731 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12732 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'
12734 *) # Version 8.0 or newer
12737 ia64
*) tmp_idyn
=' -i_dynamic';;
12739 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12740 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'
12743 archive_cmds_need_lc_CXX
=no
12744 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12745 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12746 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12749 # Portland Group C++ compiler
12751 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
12752 prelink_cmds_CXX
='tpldir=Template.dir~
12754 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12755 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12756 old_archive_cmds_CXX
='tpldir=Template.dir~
12758 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12759 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12761 archive_cmds_CXX
='tpldir=Template.dir~
12763 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12764 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12765 archive_expsym_cmds_CXX
='tpldir=Template.dir~
12767 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12768 $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'
12770 *) # Version 6 and above use weak symbols
12771 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12772 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'
12776 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
12777 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12778 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'
12782 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12783 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'
12785 runpath_var
=LD_RUN_PATH
12786 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
12787 hardcode_libdir_separator_CXX
=:
12789 # Commands to make compiler produce verbose output that lists
12790 # what "hidden" libraries, object files and flags are used when
12791 # linking a shared library.
12793 # There doesn't appear to be a way to prevent this compiler from
12794 # explicitly linking system object files so we need to strip them
12795 # from the output so that they don't get included in the library
12797 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'
12799 xl
* | mpixl
* | bgxl
*)
12800 # IBM XL 8.0 on PPC, with GNU ld
12801 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12802 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12803 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12804 if test "x$supports_anon_versioning" = xyes
; then
12805 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
12806 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12807 echo "local: *; };" >> $output_objdir/$libname.ver~
12808 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12812 case `$CC -V 2>&1 | sed 5q` in
12815 no_undefined_flag_CXX
=' -zdefs'
12816 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12817 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'
12818 hardcode_libdir_flag_spec_CXX
='-R$libdir'
12819 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'
12820 compiler_needs_object_CXX
=yes
12822 # Not sure whether something based on
12823 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12825 output_verbose_link_cmd
='func_echo_all'
12827 # Archives containing C++ object files must be created using
12828 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12829 # necessary to make sure instantiated templates are included
12831 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
12839 # FIXME: insert proper C++ library support
12844 # FIXME: insert proper C++ library support
12849 case $cc_basename in
12851 # FIXME: insert proper C++ library support
12855 # FIXME: insert proper C++ library support
12862 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
12863 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12865 hardcode_libdir_flag_spec_CXX
='-R$libdir'
12866 hardcode_direct_CXX
=yes
12867 hardcode_shlibpath_var_CXX
=no
12869 # Workaround some broken pre-1.5 toolchains
12870 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12878 # C++ shared libraries are fairly broken
12883 if test -f /usr
/libexec
/ld.so
; then
12884 hardcode_direct_CXX
=yes
12885 hardcode_shlibpath_var_CXX
=no
12886 hardcode_direct_absolute_CXX
=yes
12887 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12888 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12889 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12890 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12891 export_dynamic_flag_spec_CXX
='${wl}-E'
12892 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12894 output_verbose_link_cmd
=func_echo_all
12900 osf3
* | osf4
* | osf5
*)
12901 case $cc_basename in
12903 # Kuck and Associates, Inc. (KAI) C++ Compiler
12905 # KCC will only create a shared library if the output file
12906 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12907 # to its proper name (with version) after linking.
12908 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'
12910 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12911 hardcode_libdir_separator_CXX
=:
12913 # Archives containing C++ object files must be created using
12914 # the KAI C++ compiler.
12916 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
12917 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
12921 # Rational C++ 2.4.1
12922 # FIXME: insert proper C++ library support
12928 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
12929 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'
12930 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12933 allow_undefined_flag_CXX
=' -expect_unresolved \*'
12934 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'
12935 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12936 echo "-hidden">> $lib.exp~
12937 $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~
12939 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
12943 hardcode_libdir_separator_CXX
=:
12945 # Commands to make compiler produce verbose output that lists
12946 # what "hidden" libraries, object files and flags are used when
12947 # linking a shared library.
12949 # There doesn't appear to be a way to prevent this compiler from
12950 # explicitly linking system object files so we need to strip them
12951 # from the output so that they don't get included in the library
12953 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"'
12956 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
12957 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
12960 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'
12963 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'
12967 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12968 hardcode_libdir_separator_CXX
=:
12970 # Commands to make compiler produce verbose output that lists
12971 # what "hidden" libraries, object files and flags are used when
12972 # linking a shared library.
12973 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12976 # FIXME: insert proper C++ library support
12984 # FIXME: insert proper C++ library support
12989 case $cc_basename in
12992 # FIXME: insert proper C++ library support
12997 # FIXME: insert proper C++ library support
13001 # FIXME: insert proper C++ library support
13008 case $cc_basename in
13010 # Sun C++ 4.2, 5.x and Centerline C++
13011 archive_cmds_need_lc_CXX
=yes
13012 no_undefined_flag_CXX
=' -zdefs'
13013 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13014 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13015 $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'
13017 hardcode_libdir_flag_spec_CXX
='-R$libdir'
13018 hardcode_shlibpath_var_CXX
=no
13020 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13022 # The compiler driver will combine and reorder linker options,
13023 # but understands `-z linker_flag'.
13024 # Supported since Solaris 2.6 (maybe 2.5.1?)
13025 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
13028 link_all_deplibs_CXX
=yes
13030 output_verbose_link_cmd
='func_echo_all'
13032 # Archives containing C++ object files must be created using
13033 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13034 # necessary to make sure instantiated templates are included
13036 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
13039 # Green Hills C++ Compiler
13040 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13042 # The C++ compiler must be used to create the archive.
13043 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13046 # GNU C++ compiler with Solaris linker
13047 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
13048 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
13049 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
13050 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13051 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13052 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13054 # Commands to make compiler produce verbose output that lists
13055 # what "hidden" libraries, object files and flags are used when
13056 # linking a shared library.
13057 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13059 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13061 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13062 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13063 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13065 # Commands to make compiler produce verbose output that lists
13066 # what "hidden" libraries, object files and flags are used when
13067 # linking a shared library.
13068 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13071 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
13073 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13075 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13083 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13084 no_undefined_flag_CXX
='${wl}-z,text'
13085 archive_cmds_need_lc_CXX
=no
13086 hardcode_shlibpath_var_CXX
=no
13087 runpath_var
='LD_RUN_PATH'
13089 case $cc_basename in
13091 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13092 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13095 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13096 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13101 sysv5
* | sco3.2v5
* | sco5v6
*)
13102 # Note: We can NOT use -z defs as we might desire, because we do not
13103 # link with -lc, and that would cause any symbols used from libc to
13104 # always be unresolved, which means just about no library would
13105 # ever link correctly. If we're not using GNU ld we use -z text
13106 # though, which does catch some bad symbols but isn't as heavy-handed
13108 no_undefined_flag_CXX
='${wl}-z,text'
13109 allow_undefined_flag_CXX
='${wl}-z,nodefs'
13110 archive_cmds_need_lc_CXX
=no
13111 hardcode_shlibpath_var_CXX
=no
13112 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
13113 hardcode_libdir_separator_CXX
=':'
13114 link_all_deplibs_CXX
=yes
13115 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
13116 runpath_var
='LD_RUN_PATH'
13118 case $cc_basename in
13120 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13121 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13122 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
13123 '"$old_archive_cmds_CXX"
13124 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
13125 '"$reload_cmds_CXX"
13128 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13129 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13135 case $cc_basename in
13137 # NonStop-UX NCC 3.20
13138 # FIXME: insert proper C++ library support
13142 # FIXME: insert proper C++ library support
13149 # FIXME: insert proper C++ library support
13154 # FIXME: insert proper C++ library support
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13160 $as_echo "$ld_shlibs_CXX" >&6; }
13161 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
13167 ## There is no encapsulation within the following macros, do not change
13168 ## the running order or otherwise move them around unless you know exactly
13169 ## what you are doing...
13170 # Dependencies to place before and after the object being linked:
13171 predep_objects_CXX
=
13172 postdep_objects_CXX
=
13175 compiler_lib_search_path_CXX
=
13177 cat > conftest.
$ac_ext <<_LT_EOF
13181 Foo (void) { a = 0; }
13187 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13188 (eval $ac_compile) 2>&5
13190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13191 test $ac_status = 0; }; then
13192 # Parse the compiler output and extract the necessary
13193 # objects, libraries and library flags.
13195 # Sentinel used to keep track of whether or not we are before
13196 # the conftest object file.
13197 pre_test_object_deps_done
=no
13199 for p
in `eval "$output_verbose_link_cmd"`; do
13203 # Some compilers place space between "-{L,R}" and the path.
13204 # Remove the space.
13205 if test $p = "-L" ||
13206 test $p = "-R"; then
13213 if test "$pre_test_object_deps_done" = no
; then
13216 # Internal compiler library paths should come after those
13217 # provided the user. The postdeps already come after the
13218 # user supplied libs so there is no need to process them.
13219 if test -z "$compiler_lib_search_path_CXX"; then
13220 compiler_lib_search_path_CXX
="${prev}${p}"
13222 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
13225 # The "-l" case would never come before the object being
13226 # linked, so don't bother handling this case.
13229 if test -z "$postdeps_CXX"; then
13230 postdeps_CXX
="${prev}${p}"
13232 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
13238 # This assumes that the test object file only shows up
13239 # once in the compiler output.
13240 if test "$p" = "conftest.$objext"; then
13241 pre_test_object_deps_done
=yes
13245 if test "$pre_test_object_deps_done" = no
; then
13246 if test -z "$predep_objects_CXX"; then
13247 predep_objects_CXX
="$p"
13249 predep_objects_CXX
="$predep_objects_CXX $p"
13252 if test -z "$postdep_objects_CXX"; then
13253 postdep_objects_CXX
="$p"
13255 postdep_objects_CXX
="$postdep_objects_CXX $p"
13260 *) ;; # Ignore the rest.
13268 echo "libtool.m4: error: problem compiling CXX test program"
13271 $RM -f confest.
$objext
13273 # PORTME: override above test on systems where it is broken
13276 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13277 # hack all around it, let's just trust "g++" to DTRT.
13278 predep_objects_CXX
=
13279 postdep_objects_CXX
=
13284 case `$CC -V 2>&1 | sed 5q` in
13288 # The more standards-conforming stlport4 library is
13289 # incompatible with the Cstd library. Avoid specifying
13290 # it if it's in CXXFLAGS. Ignore libCrun as
13291 # -library=stlport4 depends on it.
13292 case " $CXX $CXXFLAGS " in
13293 *" -library=stlport4 "*)
13294 solaris_use_stlport4
=yes
13298 if test "$solaris_use_stlport4" != yes; then
13299 postdeps_CXX
='-library=Cstd -library=Crun'
13306 case $cc_basename in
13308 # The more standards-conforming stlport4 library is
13309 # incompatible with the Cstd library. Avoid specifying
13310 # it if it's in CXXFLAGS. Ignore libCrun as
13311 # -library=stlport4 depends on it.
13312 case " $CXX $CXXFLAGS " in
13313 *" -library=stlport4 "*)
13314 solaris_use_stlport4
=yes
13318 # Adding this requires a known-good setup of shared libraries for
13319 # Sun compiler versions before 5.6, else PIC objects from an old
13320 # archive will be linked into the output, leading to subtle bugs.
13321 if test "$solaris_use_stlport4" != yes; then
13322 postdeps_CXX
='-library=Cstd -library=Crun'
13330 case " $postdeps_CXX " in
13331 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
13333 compiler_lib_search_dirs_CXX
=
13334 if test -n "${compiler_lib_search_path_CXX}"; then
13335 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13368 lt_prog_compiler_wl_CXX
=
13369 lt_prog_compiler_pic_CXX
=
13370 lt_prog_compiler_static_CXX
=
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13373 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13375 # C++ specific cases for pic, static, wl, etc.
13376 if test "$GXX" = yes; then
13377 lt_prog_compiler_wl_CXX
='-Wl,'
13378 lt_prog_compiler_static_CXX
='-static'
13382 # All AIX code is PIC.
13383 if test "$host_cpu" = ia64
; then
13384 # AIX 5 now supports IA64 processor
13385 lt_prog_compiler_static_CXX
='-Bstatic'
13387 lt_prog_compiler_pic_CXX
='-fPIC'
13393 # see comment about AmigaOS4 .so support
13394 lt_prog_compiler_pic_CXX
='-fPIC'
13397 # FIXME: we need at least 68020 code to build shared libraries, but
13398 # adding the `-m68020' flag to GCC prevents building anything better,
13400 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
13405 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
13406 # PIC is the default for these OSes.
13408 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
13409 # This hack is so that the source file can tell whether it is being
13410 # built for inclusion in a dll (and should export symbols for example).
13411 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13412 # (--disable-auto-import) libraries
13413 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
13415 darwin
* | rhapsody
*)
13416 # PIC is the default on this platform
13417 # Common symbols not allowed in MH_DYLIB files
13418 lt_prog_compiler_pic_CXX
='-fno-common'
13421 # DJGPP does not support shared libraries at all
13422 lt_prog_compiler_pic_CXX
=
13425 # PIC is the default for Haiku.
13426 # The "-static" flag exists, but is broken.
13427 lt_prog_compiler_static_CXX
=
13430 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13431 # Instead, we relocate shared libraries at runtime.
13434 if test -d /usr
/nec
; then
13435 lt_prog_compiler_pic_CXX
=-Kconform_pic
13439 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13440 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13441 # sets the default TLS model and affects inlining.
13446 lt_prog_compiler_pic_CXX
='-fPIC'
13451 # QNX uses GNU C++, but need to define -shared option too, otherwise
13452 # it will coredump.
13453 lt_prog_compiler_pic_CXX
='-fPIC -shared'
13456 lt_prog_compiler_pic_CXX
='-fPIC'
13462 # All AIX code is PIC.
13463 if test "$host_cpu" = ia64
; then
13464 # AIX 5 now supports IA64 processor
13465 lt_prog_compiler_static_CXX
='-Bstatic'
13467 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
13471 case $cc_basename in
13473 # Green Hills C++ Compiler
13474 # _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"
13479 case $cc_basename in
13481 lt_prog_compiler_pic_CXX
='-KPIC'
13484 # Green Hills C++ Compiler
13485 lt_prog_compiler_pic_CXX
='-pic'
13491 freebsd
* | dragonfly
*)
13492 # FreeBSD uses GNU C++
13494 hpux9
* | hpux10
* | hpux11
*)
13495 case $cc_basename in
13497 lt_prog_compiler_wl_CXX
='-Wl,'
13498 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
13499 if test "$host_cpu" != ia64
; then
13500 lt_prog_compiler_pic_CXX
='+Z'
13504 lt_prog_compiler_wl_CXX
='-Wl,'
13505 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
13511 lt_prog_compiler_pic_CXX
='+Z'
13520 # This is c89, which is MS Visual C++ (no shared libs)
13521 # Anyone wants to do a port?
13523 irix5
* | irix6
* | nonstopux
*)
13524 case $cc_basename in
13526 lt_prog_compiler_wl_CXX
='-Wl,'
13527 lt_prog_compiler_static_CXX
='-non_shared'
13528 # CC pic flag -KPIC is the default.
13534 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
13535 case $cc_basename in
13538 lt_prog_compiler_wl_CXX
='--backend -Wl,'
13539 lt_prog_compiler_pic_CXX
='-fPIC'
13542 # old Intel C++ for x86_64 which still supported -KPIC.
13543 lt_prog_compiler_wl_CXX
='-Wl,'
13544 lt_prog_compiler_pic_CXX
='-KPIC'
13545 lt_prog_compiler_static_CXX
='-static'
13548 # Intel C++, used to be incompatible with GCC.
13549 # ICC 10 doesn't accept -KPIC any more.
13550 lt_prog_compiler_wl_CXX
='-Wl,'
13551 lt_prog_compiler_pic_CXX
='-fPIC'
13552 lt_prog_compiler_static_CXX
='-static'
13555 # Portland Group C++ compiler
13556 lt_prog_compiler_wl_CXX
='-Wl,'
13557 lt_prog_compiler_pic_CXX
='-fpic'
13558 lt_prog_compiler_static_CXX
='-Bstatic'
13562 # Make sure the PIC flag is empty. It appears that all Alpha
13563 # Linux and Compaq Tru64 Unix objects are PIC.
13564 lt_prog_compiler_pic_CXX
=
13565 lt_prog_compiler_static_CXX
='-non_shared'
13567 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
13568 # IBM XL 8.0, 9.0 on PPC and BlueGene
13569 lt_prog_compiler_wl_CXX
='-Wl,'
13570 lt_prog_compiler_pic_CXX
='-qpic'
13571 lt_prog_compiler_static_CXX
='-qstaticlink'
13574 case `$CC -V 2>&1 | sed 5q` in
13577 lt_prog_compiler_pic_CXX
='-KPIC'
13578 lt_prog_compiler_static_CXX
='-Bstatic'
13579 lt_prog_compiler_wl_CXX
='-Qoption ld '
13590 case $cc_basename in
13592 lt_prog_compiler_pic_CXX
='-W c,exportall'
13601 # QNX uses GNU C++, but need to define -shared option too, otherwise
13602 # it will coredump.
13603 lt_prog_compiler_pic_CXX
='-fPIC -shared'
13605 osf3
* | osf4
* | osf5
*)
13606 case $cc_basename in
13608 lt_prog_compiler_wl_CXX
='--backend -Wl,'
13611 # Rational C++ 2.4.1
13612 lt_prog_compiler_pic_CXX
='-pic'
13615 # Digital/Compaq C++
13616 lt_prog_compiler_wl_CXX
='-Wl,'
13617 # Make sure the PIC flag is empty. It appears that all Alpha
13618 # Linux and Compaq Tru64 Unix objects are PIC.
13619 lt_prog_compiler_pic_CXX
=
13620 lt_prog_compiler_static_CXX
='-non_shared'
13629 case $cc_basename in
13631 # Sun C++ 4.2, 5.x and Centerline C++
13632 lt_prog_compiler_pic_CXX
='-KPIC'
13633 lt_prog_compiler_static_CXX
='-Bstatic'
13634 lt_prog_compiler_wl_CXX
='-Qoption ld '
13637 # Green Hills C++ Compiler
13638 lt_prog_compiler_pic_CXX
='-PIC'
13645 case $cc_basename in
13648 lt_prog_compiler_pic_CXX
='-pic'
13649 lt_prog_compiler_static_CXX
='-Bstatic'
13653 lt_prog_compiler_pic_CXX
='-pic'
13659 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
13660 case $cc_basename in
13662 lt_prog_compiler_wl_CXX
='-Wl,'
13663 lt_prog_compiler_pic_CXX
='-KPIC'
13664 lt_prog_compiler_static_CXX
='-Bstatic'
13669 case $cc_basename in
13671 # NonStop-UX NCC 3.20
13672 lt_prog_compiler_pic_CXX
='-KPIC'
13681 lt_prog_compiler_can_build_shared_CXX
=no
13687 # For platforms which do not support PIC, -DPIC is meaningless:
13689 lt_prog_compiler_pic_CXX
=
13692 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13696 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13701 # Check to make sure the PIC flag actually works.
13703 if test -n "$lt_prog_compiler_pic_CXX"; then
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13705 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13706 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
13707 $as_echo_n "(cached) " >&6
13709 lt_cv_prog_compiler_pic_works_CXX
=no
13710 ac_outfile
=conftest.
$ac_objext
13711 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13712 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
13713 # Insert the option either (1) after the last *FLAGS variable, or
13714 # (2) before a word containing "conftest.", or (3) at the end.
13715 # Note that $ac_compile itself does not contain backslashes and begins
13716 # with a dollar sign (not a hyphen), so the echo should work correctly.
13717 # The option is referenced via a variable to avoid confusing sed.
13718 lt_compile
=`echo "$ac_compile" | $SED \
13719 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13720 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13721 -e 's:$: $lt_compiler_flag:'`
13722 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13723 (eval "$lt_compile" 2>conftest.err
)
13725 cat conftest.err
>&5
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 if (exit $ac_status) && test -s "$ac_outfile"; then
13728 # The compiler can only warn and ignore the option if not recognized
13729 # So say no if there are warnings other than the usual output.
13730 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
13731 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
13732 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
13733 lt_cv_prog_compiler_pic_works_CXX
=yes
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13740 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13742 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
13743 case $lt_prog_compiler_pic_CXX in
13745 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
13748 lt_prog_compiler_pic_CXX
=
13749 lt_prog_compiler_can_build_shared_CXX
=no
13757 # Check to make sure the static flag actually works.
13759 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13761 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13762 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
13763 $as_echo_n "(cached) " >&6
13765 lt_cv_prog_compiler_static_works_CXX
=no
13766 save_LDFLAGS
="$LDFLAGS"
13767 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
13768 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
13769 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
13770 # The linker can only warn and ignore the option if not recognized
13771 # So say no if there are warnings
13772 if test -s conftest.err
; then
13773 # Append any errors to the config.log.
13774 cat conftest.err
1>&5
13775 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
13776 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
13777 if diff conftest.exp conftest.er2
>/dev
/null
; then
13778 lt_cv_prog_compiler_static_works_CXX
=yes
13781 lt_cv_prog_compiler_static_works_CXX
=yes
13785 LDFLAGS
="$save_LDFLAGS"
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13789 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13791 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
13794 lt_prog_compiler_static_CXX
=
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13801 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13802 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
13803 $as_echo_n "(cached) " >&6
13805 lt_cv_prog_compiler_c_o_CXX
=no
13806 $RM -r conftest
2>/dev
/null
13810 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13812 lt_compiler_flag
="-o out/conftest2.$ac_objext"
13813 # Insert the option either (1) after the last *FLAGS variable, or
13814 # (2) before a word containing "conftest.", or (3) at the end.
13815 # Note that $ac_compile itself does not contain backslashes and begins
13816 # with a dollar sign (not a hyphen), so the echo should work correctly.
13817 lt_compile
=`echo "$ac_compile" | $SED \
13818 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13819 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13820 -e 's:$: $lt_compiler_flag:'`
13821 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13822 (eval "$lt_compile" 2>out
/conftest.err
)
13824 cat out
/conftest.err
>&5
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
13828 # The compiler can only warn and ignore the option if not recognized
13829 # So say no if there are warnings
13830 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
13831 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
13832 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
13833 lt_cv_prog_compiler_c_o_CXX
=yes
13838 # SGI C++ compiler will create directory out/ii_files/ for
13839 # template instantiation
13840 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
13841 $RM out
/* && rmdir out
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13848 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13853 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13854 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
13855 $as_echo_n "(cached) " >&6
13857 lt_cv_prog_compiler_c_o_CXX
=no
13858 $RM -r conftest
2>/dev
/null
13862 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13864 lt_compiler_flag
="-o out/conftest2.$ac_objext"
13865 # Insert the option either (1) after the last *FLAGS variable, or
13866 # (2) before a word containing "conftest.", or (3) at the end.
13867 # Note that $ac_compile itself does not contain backslashes and begins
13868 # with a dollar sign (not a hyphen), so the echo should work correctly.
13869 lt_compile
=`echo "$ac_compile" | $SED \
13870 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13871 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13872 -e 's:$: $lt_compiler_flag:'`
13873 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13874 (eval "$lt_compile" 2>out
/conftest.err
)
13876 cat out
/conftest.err
>&5
13877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
13880 # The compiler can only warn and ignore the option if not recognized
13881 # So say no if there are warnings
13882 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
13883 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
13884 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
13885 lt_cv_prog_compiler_c_o_CXX
=yes
13890 # SGI C++ compiler will create directory out/ii_files/ for
13891 # template instantiation
13892 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
13893 $RM out
/* && rmdir out
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13900 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13905 hard_links
="nottested"
13906 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
13907 # do not overwrite the value of need_locks provided by the user
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13909 $as_echo_n "checking if we can lock with hard links... " >&6; }
13912 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13914 ln conftest.a conftest.b
2>&5 || hard_links
=no
13915 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13917 $as_echo "$hard_links" >&6; }
13918 if test "$hard_links" = no
; then
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13920 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13930 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13932 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13935 # If we're using GNU nm, then we don't want the "-C" option.
13936 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13937 # Also, AIX nm treats weak defined symbols like other global defined
13938 # symbols, whereas GNU nm marks them as "W".
13939 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
13940 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'
13942 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'
13946 export_symbols_cmds_CXX
="$ltdll_cmds"
13948 cygwin
* | mingw
* | cegcc
*)
13949 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'
13952 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13955 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13958 $as_echo "$ld_shlibs_CXX" >&6; }
13959 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
13961 with_gnu_ld_CXX
=$with_gnu_ld
13969 # Do we need to explicitly link libc?
13971 case "x$archive_cmds_need_lc_CXX" in
13973 # Assume -lc should be added
13974 archive_cmds_need_lc_CXX
=yes
13976 if test "$enable_shared" = yes && test "$GCC" = yes; then
13977 case $archive_cmds_CXX in
13979 # FIXME: we may have to deal with multi-command sequences.
13982 # Test whether the compiler implicitly links with -lc since on some
13983 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13984 # to ld, don't add -lc before -lgcc.
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13986 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13987 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
13988 $as_echo_n "(cached) " >&6
13991 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13993 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13994 (eval $ac_compile) 2>&5
13996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13997 test $ac_status = 0; } 2>conftest.err
; then
14000 libobjs
=conftest.
$ac_objext
14002 wl
=$lt_prog_compiler_wl_CXX
14003 pic_flag
=$lt_prog_compiler_pic_CXX
14009 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
14010 allow_undefined_flag_CXX
=
14011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14012 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
14014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14015 test $ac_status = 0; }
14017 lt_cv_archive_cmds_need_lc_CXX
=no
14019 lt_cv_archive_cmds_need_lc_CXX
=yes
14021 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
14023 cat conftest.err
1>&5
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14029 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14030 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14101 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14103 library_names_spec
=
14104 libname_spec
='lib$name'
14108 postuninstall_cmds
=
14112 shlibpath_overrides_runpath
=unknown
14114 dynamic_linker
="$host_os ld.so"
14115 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
14116 need_lib_prefix
=unknown
14117 hardcode_into_libs
=no
14119 # when you set need_version to no, make sure it does not cause -set_version
14120 # flags to be left without arguments
14121 need_version
=unknown
14126 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
14127 shlibpath_var
=LIBPATH
14129 # AIX 3 has no versioning support, so we append a major version to the name.
14130 soname_spec
='${libname}${release}${shared_ext}$major'
14137 hardcode_into_libs
=yes
14138 if test "$host_cpu" = ia64
; then
14139 # AIX 5 supports IA64
14140 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14141 shlibpath_var
=LD_LIBRARY_PATH
14143 # With GCC up to 2.95.x, collect2 would create an import file
14144 # for dependence libraries. The import file would start with
14145 # the line `#! .'. This would cause the generated library to
14146 # depend on `.', always an invalid library. This was fixed in
14147 # development snapshots of GCC prior to 3.0.
14149 aix4 | aix4.
[01] | aix4.
[01].
*)
14150 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14152 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
14155 can_build_shared
=no
14159 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14160 # soname into executable. Probably we can add versioning support to
14161 # collect2, so additional links can be useful in future.
14162 if test "$aix_use_runtimelinking" = yes; then
14163 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14164 # instead of lib<name>.a to let people know that these are not
14165 # typical AIX shared libraries.
14166 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14168 # We preserve .a as extension for shared libraries through AIX4.2
14169 # and later when we are not doing run time linking.
14170 library_names_spec
='${libname}${release}.a $libname.a'
14171 soname_spec
='${libname}${release}${shared_ext}$major'
14173 shlibpath_var
=LIBPATH
14180 # Since July 2007 AmigaOS4 officially supports .so libraries.
14181 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14182 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14185 library_names_spec
='$libname.ixlibrary $libname.a'
14186 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14187 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'
14193 library_names_spec
='${libname}${shared_ext}'
14194 dynamic_linker
="$host_os ld.so"
14195 shlibpath_var
=LIBRARY_PATH
14201 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14202 soname_spec
='${libname}${release}${shared_ext}$major'
14203 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
14204 shlibpath_var
=LD_LIBRARY_PATH
14205 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14206 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
14207 # the default ld.so.conf also contains /usr/contrib/lib and
14208 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14209 # libtool to hard-code these into programs
14212 cygwin
* | mingw
* | pw32
* | cegcc
*)
14213 version_type
=windows
14218 case $GCC,$host_os in
14219 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
14220 library_names_spec
='$libname.dll.a'
14221 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14222 postinstall_cmds
='base_file=`basename \${file}`~
14223 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14224 dldir=$destdir/`dirname \$dlpath`~
14225 test -d \$dldir || mkdir -p \$dldir~
14226 $install_prog $dir/$dlname \$dldir/$dlname~
14227 chmod a+x \$dldir/$dlname~
14228 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14229 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14231 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14232 dlpath=$dir/\$dldll~
14234 shlibpath_overrides_runpath
=yes
14238 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14239 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14243 # MinGW DLLs use traditional 'lib' prefix
14244 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14247 # pw32 DLLs use 'pw' prefix rather than 'lib'
14248 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14254 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14257 dynamic_linker
='Win32 ld.exe'
14258 # FIXME: first we should search . and the directory the executable is in
14262 darwin
* | rhapsody
*)
14263 dynamic_linker
="$host_os dyld"
14264 version_type
=darwin
14267 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14268 soname_spec
='${libname}${release}${major}$shared_ext'
14269 shlibpath_overrides_runpath
=yes
14270 shlibpath_var
=DYLD_LIBRARY_PATH
14271 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
14273 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
14280 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14281 soname_spec
='${libname}${release}${shared_ext}$major'
14282 shlibpath_var
=LD_LIBRARY_PATH
14285 freebsd
* | dragonfly
*)
14286 # DragonFly does not have aout. When/if they implement a new
14287 # versioning mechanism, adjust this.
14288 if test -x /usr
/bin
/objformat
; then
14289 objformat
=`/usr/bin/objformat`
14292 freebsd
[23].
*) objformat
=aout
;;
14293 *) objformat
=elf
;;
14296 version_type
=freebsd-
$objformat
14297 case $version_type in
14299 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14304 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14308 shlibpath_var
=LD_LIBRARY_PATH
14311 shlibpath_overrides_runpath
=yes
14313 freebsd3.
[01]* | freebsdelf3.
[01]*)
14314 shlibpath_overrides_runpath
=yes
14315 hardcode_into_libs
=yes
14317 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
14318 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
14319 shlibpath_overrides_runpath
=no
14320 hardcode_into_libs
=yes
14322 *) # from 4.6 on, and DragonFly
14323 shlibpath_overrides_runpath
=yes
14324 hardcode_into_libs
=yes
14333 dynamic_linker
="$host_os runtime_loader"
14334 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14335 soname_spec
='${libname}${release}${shared_ext}$major'
14336 shlibpath_var
=LIBRARY_PATH
14337 shlibpath_overrides_runpath
=yes
14338 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14339 hardcode_into_libs
=yes
14342 hpux9
* | hpux10
* | hpux11
*)
14343 # Give a soname corresponding to the major version so that dld.sl refuses to
14344 # link against other versions.
14351 hardcode_into_libs
=yes
14352 dynamic_linker
="$host_os dld.so"
14353 shlibpath_var
=LD_LIBRARY_PATH
14354 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14355 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14356 soname_spec
='${libname}${release}${shared_ext}$major'
14357 if test "X$HPUX_IA64_MODE" = X32
; then
14358 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14360 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
14362 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14366 hardcode_into_libs
=yes
14367 dynamic_linker
="$host_os dld.sl"
14368 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
14369 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14370 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14371 soname_spec
='${libname}${release}${shared_ext}$major'
14372 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14373 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14377 dynamic_linker
="$host_os dld.sl"
14378 shlibpath_var
=SHLIB_PATH
14379 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
14380 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14381 soname_spec
='${libname}${release}${shared_ext}$major'
14384 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14385 postinstall_cmds
='chmod 555 $lib'
14386 # or fails outright, so override atomically:
14387 install_override_mode
=555
14394 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14395 soname_spec
='${libname}${release}${shared_ext}$major'
14396 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
14397 shlibpath_var
=LD_LIBRARY_PATH
14398 shlibpath_overrides_runpath
=no
14399 hardcode_into_libs
=yes
14402 irix5
* | irix6
* | nonstopux
*)
14404 nonstopux
*) version_type
=nonstopux
;;
14406 if test "$lt_cv_prog_gnu_ld" = yes; then
14414 soname_spec
='${libname}${release}${shared_ext}$major'
14415 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14417 irix5
* | nonstopux
*)
14418 libsuff
= shlibsuff
=
14421 case $LD in # libtool.m4 will add one of these switches to LD
14422 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
14423 libsuff
= shlibsuff
= libmagic
=32-bit;;
14424 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
14425 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
14426 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
14427 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
14428 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
14432 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
14433 shlibpath_overrides_runpath
=no
14434 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14435 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
14436 hardcode_into_libs
=yes
14439 # No shared lib support for Linux oldld, aout, or coff.
14440 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
14444 # This must be Linux ELF.
14446 # uclinux* changes (here and below) have been submitted to the libtool
14447 # project, but have not yet been accepted: they are GCC-local changes
14448 # for the time being. (See
14449 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14450 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
14454 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14455 soname_spec
='${libname}${release}${shared_ext}$major'
14456 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14457 shlibpath_var
=LD_LIBRARY_PATH
14458 shlibpath_overrides_runpath
=no
14460 # Some binutils ld are patched to set DT_RUNPATH
14461 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
14462 $as_echo_n "(cached) " >&6
14464 lt_cv_shlibpath_overrides_runpath
=no
14465 save_LDFLAGS
=$LDFLAGS
14466 save_libdir
=$libdir
14467 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14468 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14470 /* end confdefs.h. */
14480 if ac_fn_cxx_try_link
"$LINENO"; then :
14481 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
14482 lt_cv_shlibpath_overrides_runpath
=yes
14485 rm -f core conftest.err conftest.
$ac_objext \
14486 conftest
$ac_exeext conftest.
$ac_ext
14487 LDFLAGS
=$save_LDFLAGS
14488 libdir
=$save_libdir
14492 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
14494 # This implies no fast_install, which is unacceptable.
14495 # Some rework will be needed to allow for fast_install
14496 # before this can be enabled.
14497 hardcode_into_libs
=yes
14499 # Append ld.so.conf contents to the search path
14500 if test -f /etc
/ld.so.conf
; then
14501 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' ' '`
14502 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
14505 # We used to test for /lib/ld.so.1 and disable shared libraries on
14506 # powerpc, because MkLinux only supported shared libraries with the
14507 # GNU dynamic linker. Since this was broken with cross compilers,
14508 # most powerpc-linux boxes support dynamic linking these days and
14509 # people can always --disable-shared, the test was removed, and we
14510 # assume the GNU/Linux dynamic linker is in use.
14511 dynamic_linker
='GNU/Linux ld.so'
14518 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
14519 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14520 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14521 dynamic_linker
='NetBSD (a.out) ld.so'
14523 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14524 soname_spec
='${libname}${release}${shared_ext}$major'
14525 dynamic_linker
='NetBSD ld.elf_so'
14527 shlibpath_var
=LD_LIBRARY_PATH
14528 shlibpath_overrides_runpath
=yes
14529 hardcode_into_libs
=yes
14534 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14535 shlibpath_var
=LD_LIBRARY_PATH
14536 shlibpath_overrides_runpath
=yes
14543 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14544 soname_spec
='${libname}${release}${shared_ext}$major'
14545 shlibpath_var
=LD_LIBRARY_PATH
14546 shlibpath_overrides_runpath
=no
14547 hardcode_into_libs
=yes
14548 dynamic_linker
='ldqnx.so'
14553 sys_lib_dlsearch_path_spec
="/usr/lib"
14555 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14557 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
14558 *) need_version
=no
;;
14560 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14561 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14562 shlibpath_var
=LD_LIBRARY_PATH
14563 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14565 openbsd2.
[89] | openbsd2.
[89].
*)
14566 shlibpath_overrides_runpath
=no
14569 shlibpath_overrides_runpath
=yes
14573 shlibpath_overrides_runpath
=yes
14578 libname_spec
='$name'
14581 library_names_spec
='$libname${shared_ext} $libname.a'
14582 dynamic_linker
='OS/2 ld.exe'
14583 shlibpath_var
=LIBPATH
14586 osf3
* | osf4
* | osf5
*)
14590 soname_spec
='${libname}${release}${shared_ext}$major'
14591 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14592 shlibpath_var
=LD_LIBRARY_PATH
14593 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14594 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
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 shlibpath_var
=LD_LIBRARY_PATH
14608 shlibpath_overrides_runpath
=yes
14609 hardcode_into_libs
=yes
14610 # ldd complains unless libraries are executable
14611 postinstall_cmds
='chmod +x $lib'
14616 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14617 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14618 shlibpath_var
=LD_LIBRARY_PATH
14619 shlibpath_overrides_runpath
=yes
14620 if test "$with_gnu_ld" = yes; then
14628 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14629 soname_spec
='${libname}${release}${shared_ext}$major'
14630 shlibpath_var
=LD_LIBRARY_PATH
14631 case $host_vendor in
14633 shlibpath_overrides_runpath
=no
14635 runpath_var
=LD_RUN_PATH
14643 shlibpath_overrides_runpath
=no
14644 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
14650 if test -d /usr
/nec
;then
14652 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14653 soname_spec
='$libname${shared_ext}.$major'
14654 shlibpath_var
=LD_LIBRARY_PATH
14658 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
14659 version_type
=freebsd-elf
14662 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14663 soname_spec
='${libname}${release}${shared_ext}$major'
14664 shlibpath_var
=LD_LIBRARY_PATH
14665 shlibpath_overrides_runpath
=yes
14666 hardcode_into_libs
=yes
14667 if test "$with_gnu_ld" = yes; then
14668 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14670 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
14673 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
14677 sys_lib_dlsearch_path_spec
='/usr/lib'
14681 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14685 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14686 shlibpath_var
=LD_LIBRARY_PATH
14687 shlibpath_overrides_runpath
=no
14688 hardcode_into_libs
=yes
14693 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14694 soname_spec
='${libname}${release}${shared_ext}$major'
14695 shlibpath_var
=LD_LIBRARY_PATH
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14703 $as_echo "$dynamic_linker" >&6; }
14704 test "$dynamic_linker" = no
&& can_build_shared
=no
14706 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
14707 if test "$GCC" = yes; then
14708 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14711 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14712 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
14714 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14715 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14756 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14757 hardcode_action_CXX
=
14758 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14759 test -n "$runpath_var_CXX" ||
14760 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14762 # We can hardcode non-existent directories.
14763 if test "$hardcode_direct_CXX" != no
&&
14764 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14765 # have to relink, otherwise we might link with an installed library
14766 # when we should be linking with a yet-to-be-installed one
14767 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14768 test "$hardcode_minus_L_CXX" != no
; then
14769 # Linking always hardcodes the temporary library directory.
14770 hardcode_action_CXX
=relink
14772 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14773 hardcode_action_CXX
=immediate
14776 # We cannot hardcode anything, or else we can only hardcode existing
14778 hardcode_action_CXX
=unsupported
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14781 $as_echo "$hardcode_action_CXX" >&6; }
14783 if test "$hardcode_action_CXX" = relink ||
14784 test "$inherit_rpath_CXX" = yes; then
14785 # Fast installation is not supported
14786 enable_fast_install
=no
14787 elif test "$shlibpath_overrides_runpath" = yes ||
14788 test "$enable_shared" = no
; then
14789 # Fast installation is not necessary
14790 enable_fast_install
=needless
14799 fi # test -n "$compiler"
14805 with_gnu_ld
=$lt_save_with_gnu_ld
14806 lt_cv_path_LDCXX
=$lt_cv_path_LD
14807 lt_cv_path_LD
=$lt_save_path_LD
14808 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
14809 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
14810 fi # test "$_lt_caught_CXX_error" != yes
14813 ac_cpp
='$CPP $CPPFLAGS'
14814 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14815 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14816 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14830 ac_config_commands
="$ac_config_commands libtool"
14835 # Only expand once:
14839 if test -n "$ac_tool_prefix"; then
14840 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
14841 set dummy
${ac_tool_prefix}readelf
; ac_word
=$2
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14843 $as_echo_n "checking for $ac_word... " >&6; }
14844 if ${ac_cv_prog_READELF+:} false
; then :
14845 $as_echo_n "(cached) " >&6
14847 if test -n "$READELF"; then
14848 ac_cv_prog_READELF
="$READELF" # Let the user override the test.
14850 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14851 for as_dir
in $PATH
14854 test -z "$as_dir" && as_dir
=.
14855 for ac_exec_ext
in '' $ac_executable_extensions; do
14856 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14857 ac_cv_prog_READELF
="${ac_tool_prefix}readelf"
14858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14867 READELF
=$ac_cv_prog_READELF
14868 if test -n "$READELF"; then
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
14870 $as_echo "$READELF" >&6; }
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14873 $as_echo "no" >&6; }
14878 if test -z "$ac_cv_prog_READELF"; then
14879 ac_ct_READELF
=$READELF
14880 # Extract the first word of "readelf", so it can be a program name with args.
14881 set dummy readelf
; ac_word
=$2
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14883 $as_echo_n "checking for $ac_word... " >&6; }
14884 if ${ac_cv_prog_ac_ct_READELF+:} false
; then :
14885 $as_echo_n "(cached) " >&6
14887 if test -n "$ac_ct_READELF"; then
14888 ac_cv_prog_ac_ct_READELF
="$ac_ct_READELF" # Let the user override the test.
14890 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14891 for as_dir
in $PATH
14894 test -z "$as_dir" && as_dir
=.
14895 for ac_exec_ext
in '' $ac_executable_extensions; do
14896 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14897 ac_cv_prog_ac_ct_READELF
="readelf"
14898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14907 ac_ct_READELF
=$ac_cv_prog_ac_ct_READELF
14908 if test -n "$ac_ct_READELF"; then
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
14910 $as_echo "$ac_ct_READELF" >&6; }
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14913 $as_echo "no" >&6; }
14916 if test "x$ac_ct_READELF" = x
; then
14919 case $cross_compiling:$ac_tool_warned in
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14923 ac_tool_warned
=yes ;;
14925 READELF
=$ac_ct_READELF
14928 READELF
="$ac_cv_prog_READELF"
14932 # Test for 64-bit build.
14933 # The cast to long int works around a bug in the HP C Compiler
14934 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14935 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14936 # This bug is HP SR number 8606223364.
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
14938 $as_echo_n "checking size of size_t... " >&6; }
14939 if ${ac_cv_sizeof_size_t+:} false
; then :
14940 $as_echo_n "(cached) " >&6
14942 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
14945 if test "$ac_cv_type_size_t" = yes; then
14946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14948 as_fn_error
77 "cannot compute sizeof (size_t)
14949 See \`config.log' for more details" "$LINENO" 5; }
14951 ac_cv_sizeof_size_t
=0
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
14957 $as_echo "$ac_cv_sizeof_size_t" >&6; }
14961 cat >>confdefs.h
<<_ACEOF
14962 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14967 cat > local.exp
<<EOF
14968 set CC_FOR_TARGET "$CC"
14969 set CXX_FOR_TARGET "$CXX"
14970 set compiler_vendor "$ax_cv_c_compiler_vendor"
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14975 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14976 # Check whether --enable-maintainer-mode was given.
14977 if test "${enable_maintainer_mode+set}" = set; then :
14978 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
14980 USE_MAINTAINER_MODE
=no
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14984 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14985 if test $USE_MAINTAINER_MODE = yes; then
14986 MAINTAINER_MODE_TRUE
=
14987 MAINTAINER_MODE_FALSE
='#'
14989 MAINTAINER_MODE_TRUE
='#'
14990 MAINTAINER_MODE_FALSE
=
14993 MAINT
=$MAINTAINER_MODE_TRUE
14997 for ac_header
in sys
/memfd.h
14999 ac_fn_c_check_header_mongrel
"$LINENO" "sys/memfd.h" "ac_cv_header_sys_memfd_h" "$ac_includes_default"
15000 if test "x$ac_cv_header_sys_memfd_h" = xyes
; then :
15001 cat >>confdefs.h
<<_ACEOF
15002 #define HAVE_SYS_MEMFD_H 1
15009 for ac_func
in memfd_create
15011 ac_fn_c_check_func
"$LINENO" "memfd_create" "ac_cv_func_memfd_create"
15012 if test "x$ac_cv_func_memfd_create" = xyes
; then :
15013 cat >>confdefs.h
<<_ACEOF
15014 #define HAVE_MEMFD_CREATE 1
15021 for ac_header
in sys
/mman.h
15023 ac_fn_c_check_header_mongrel
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
15024 if test "x$ac_cv_header_sys_mman_h" = xyes
; then :
15025 cat >>confdefs.h
<<_ACEOF
15026 #define HAVE_SYS_MMAN_H 1
15033 for ac_func
in mmap mkostemp mkstemp
15035 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15036 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15037 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15038 cat >>confdefs.h
<<_ACEOF
15039 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15046 ac_fn_c_check_header_mongrel
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
15047 if test "x$ac_cv_header_sys_mman_h" = xyes
; then :
15048 libffi_header_sys_mman_h
=yes
15050 libffi_header_sys_mman_h
=no
15054 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
15055 if test "x$ac_cv_func_mmap" = xyes
; then :
15056 libffi_func_mmap
=yes
15058 libffi_func_mmap
=no
15061 if test "$libffi_header_sys_mman_h" != yes \
15062 ||
test "$libffi_func_mmap" != yes; then
15063 ac_cv_func_mmap_file
=no
15064 ac_cv_func_mmap_dev_zero
=no
15065 ac_cv_func_mmap_anon
=no
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
15068 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
15069 if ${ac_cv_func_mmap_file+:} false
; then :
15070 $as_echo_n "(cached) " >&6
15072 # Add a system to this blacklist if
15073 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
15074 # memory area containing the same data that you'd get if you applied
15075 # read() to the same fd. The only system known to have a problem here
15076 # is VMS, where text files have record structure.
15079 ac_cv_func_mmap_file
=no
;;
15081 ac_cv_func_mmap_file
=yes;;
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
15085 $as_echo "$ac_cv_func_mmap_file" >&6; }
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
15087 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
15088 if ${ac_cv_func_mmap_dev_zero+:} false
; then :
15089 $as_echo_n "(cached) " >&6
15091 # Add a system to this blacklist if it has mmap() but /dev/zero
15092 # does not exist, or if mmapping /dev/zero does not give anonymous
15093 # zeroed pages with both the following properties:
15094 # 1. If you map N consecutive pages in with one call, and then
15095 # unmap any subset of those pages, the pages that were not
15096 # explicitly unmapped remain accessible.
15097 # 2. If you map two adjacent blocks of memory and then unmap them
15098 # both at once, they must both go away.
15099 # Systems known to be in this category are Windows (all variants),
15102 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
15103 ac_cv_func_mmap_dev_zero
=no
;;
15105 ac_cv_func_mmap_dev_zero
=yes;;
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
15109 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
15111 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
15113 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
15114 if ${ac_cv_decl_map_anon+:} false
; then :
15115 $as_echo_n "(cached) " >&6
15117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15118 /* end confdefs.h. */
15119 #include <sys/types.h>
15120 #include <sys/mman.h>
15121 #include <unistd.h>
15123 #ifndef MAP_ANONYMOUS
15124 #define MAP_ANONYMOUS MAP_ANON
15130 int n = MAP_ANONYMOUS;
15135 if ac_fn_c_try_compile
"$LINENO"; then :
15136 ac_cv_decl_map_anon
=yes
15138 ac_cv_decl_map_anon
=no
15140 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
15143 $as_echo "$ac_cv_decl_map_anon" >&6; }
15145 if test $ac_cv_decl_map_anon = no
; then
15146 ac_cv_func_mmap_anon
=no
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
15149 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
15150 if ${ac_cv_func_mmap_anon+:} false
; then :
15151 $as_echo_n "(cached) " >&6
15153 # Add a system to this blacklist if it has mmap() and MAP_ANON or
15154 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
15155 # doesn't give anonymous zeroed pages with the same properties listed
15156 # above for use of /dev/zero.
15157 # Systems known to be in this category are Windows, VMS, and SCO Unix.
15159 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
15160 ac_cv_func_mmap_anon
=no
;;
15162 ac_cv_func_mmap_anon
=yes;;
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
15166 $as_echo "$ac_cv_func_mmap_anon" >&6; }
15170 if test $ac_cv_func_mmap_file = yes; then
15172 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
15175 if test $ac_cv_func_mmap_dev_zero = yes; then
15177 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
15180 if test $ac_cv_func_mmap_anon = yes; then
15182 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
15187 if test -d $srcdir/testsuite
; then
15189 TESTSUBDIR_FALSE
='#'
15191 TESTSUBDIR_TRUE
='#'
15196 TARGETDIR
="unknown"
15197 HAVE_LONG_DOUBLE_VARIANT
=0
15199 .
${srcdir}/configure.
host
15201 if test -n "${UNSUPPORTED}"; then
15202 as_fn_error $?
"\"libffi has not been ported to $host.\"" "$LINENO" 5
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15209 $as_echo_n "checking for ANSI C header files... " >&6; }
15210 if ${ac_cv_header_stdc+:} false
; then :
15211 $as_echo_n "(cached) " >&6
15213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15214 /* end confdefs.h. */
15215 #include <stdlib.h>
15216 #include <stdarg.h>
15217 #include <string.h>
15228 if ac_fn_c_try_compile
"$LINENO"; then :
15229 ac_cv_header_stdc
=yes
15231 ac_cv_header_stdc
=no
15233 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15235 if test $ac_cv_header_stdc = yes; then
15236 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15238 /* end confdefs.h. */
15239 #include <string.h>
15242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15243 $EGREP "memchr" >/dev
/null
2>&1; then :
15246 ac_cv_header_stdc
=no
15252 if test $ac_cv_header_stdc = yes; then
15253 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15255 /* end confdefs.h. */
15256 #include <stdlib.h>
15259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15260 $EGREP "free" >/dev
/null
2>&1; then :
15263 ac_cv_header_stdc
=no
15269 if test $ac_cv_header_stdc = yes; then
15270 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15271 if test "$cross_compiling" = yes; then :
15274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15275 /* end confdefs.h. */
15277 #include <stdlib.h>
15278 #if ((' ' & 0x0FF) == 0x020)
15279 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15280 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15282 # define ISLOWER(c) \
15283 (('a' <= (c) && (c) <= 'i') \
15284 || ('j' <= (c) && (c) <= 'r') \
15285 || ('s' <= (c) && (c) <= 'z'))
15286 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15289 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15294 for (i = 0; i < 256; i++)
15295 if (XOR (islower (i), ISLOWER (i))
15296 || toupper (i) != TOUPPER (i))
15301 if ac_fn_c_try_run
"$LINENO"; then :
15304 ac_cv_header_stdc
=no
15306 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15307 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15313 $as_echo "$ac_cv_header_stdc" >&6; }
15314 if test $ac_cv_header_stdc = yes; then
15316 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15320 for ac_func
in memcpy
15322 ac_fn_c_check_func
"$LINENO" "memcpy" "ac_cv_func_memcpy"
15323 if test "x$ac_cv_func_memcpy" = xyes
; then :
15324 cat >>confdefs.h
<<_ACEOF
15325 #define HAVE_MEMCPY 1
15331 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15332 if test "x$ac_cv_type_size_t" = xyes
; then :
15336 cat >>confdefs.h
<<_ACEOF
15337 #define size_t unsigned int
15342 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15343 # for constant arguments. Useless!
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15345 $as_echo_n "checking for working alloca.h... " >&6; }
15346 if ${ac_cv_working_alloca_h+:} false
; then :
15347 $as_echo_n "(cached) " >&6
15349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15350 /* end confdefs.h. */
15351 #include <alloca.h>
15355 char *p = (char *) alloca (2 * sizeof (int));
15361 if ac_fn_c_try_link
"$LINENO"; then :
15362 ac_cv_working_alloca_h
=yes
15364 ac_cv_working_alloca_h
=no
15366 rm -f core conftest.err conftest.
$ac_objext \
15367 conftest
$ac_exeext conftest.
$ac_ext
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15370 $as_echo "$ac_cv_working_alloca_h" >&6; }
15371 if test $ac_cv_working_alloca_h = yes; then
15373 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15378 $as_echo_n "checking for alloca... " >&6; }
15379 if ${ac_cv_func_alloca_works+:} false
; then :
15380 $as_echo_n "(cached) " >&6
15382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15383 /* end confdefs.h. */
15385 # define alloca __builtin_alloca
15388 # include <malloc.h>
15389 # define alloca _alloca
15391 # ifdef HAVE_ALLOCA_H
15392 # include <alloca.h>
15397 # ifndef alloca /* predefined by HP cc +Olibcalls */
15398 void *alloca (size_t);
15408 char *p = (char *) alloca (1);
15414 if ac_fn_c_try_link
"$LINENO"; then :
15415 ac_cv_func_alloca_works
=yes
15417 ac_cv_func_alloca_works
=no
15419 rm -f core conftest.err conftest.
$ac_objext \
15420 conftest
$ac_exeext conftest.
$ac_ext
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15423 $as_echo "$ac_cv_func_alloca_works" >&6; }
15425 if test $ac_cv_func_alloca_works = yes; then
15427 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15430 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15431 # that cause trouble. Some versions do not even contain alloca or
15432 # contain a buggy version. If you still want to use their alloca,
15433 # use ar to extract alloca.o from them instead of compiling alloca.c.
15435 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
15437 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15441 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15442 if ${ac_cv_os_cray+:} false
; then :
15443 $as_echo_n "(cached) " >&6
15445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15446 /* end confdefs.h. */
15447 #if defined CRAY && ! defined CRAY2
15454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15455 $EGREP "webecray" >/dev
/null
2>&1; then :
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15464 $as_echo "$ac_cv_os_cray" >&6; }
15465 if test $ac_cv_os_cray = yes; then
15466 for ac_func
in _getb67 GETB67 getb67
; do
15467 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15468 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15469 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15471 cat >>confdefs.h
<<_ACEOF
15472 #define CRAY_STACKSEG_END $ac_func
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15482 $as_echo_n "checking stack direction for C alloca... " >&6; }
15483 if ${ac_cv_c_stack_direction+:} false
; then :
15484 $as_echo_n "(cached) " >&6
15486 if test "$cross_compiling" = yes; then :
15487 ac_cv_c_stack_direction
=0
15489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15490 /* end confdefs.h. */
15491 $ac_includes_default
15493 find_stack_direction (int *addr, int depth)
15495 int dir, dummy = 0;
15498 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15499 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15500 return dir + dummy;
15504 main (int argc, char **argv)
15506 return find_stack_direction (0, argc + !argv + 20) < 0;
15509 if ac_fn_c_try_run
"$LINENO"; then :
15510 ac_cv_c_stack_direction
=1
15512 ac_cv_c_stack_direction
=-1
15514 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15515 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15520 $as_echo "$ac_cv_c_stack_direction" >&6; }
15521 cat >>confdefs.h
<<_ACEOF
15522 #define STACK_DIRECTION $ac_cv_c_stack_direction
15529 # The cast to long int works around a bug in the HP C Compiler
15530 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15531 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15532 # This bug is HP SR number 8606223364.
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
15534 $as_echo_n "checking size of double... " >&6; }
15535 if ${ac_cv_sizeof_double+:} false
; then :
15536 $as_echo_n "(cached) " >&6
15538 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
15541 if test "$ac_cv_type_double" = yes; then
15542 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15543 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15544 as_fn_error
77 "cannot compute sizeof (double)
15545 See \`config.log' for more details" "$LINENO" 5; }
15547 ac_cv_sizeof_double
=0
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
15553 $as_echo "$ac_cv_sizeof_double" >&6; }
15557 cat >>confdefs.h
<<_ACEOF
15558 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
15562 # The cast to long int works around a bug in the HP C Compiler
15563 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15564 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15565 # This bug is HP SR number 8606223364.
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
15567 $as_echo_n "checking size of long double... " >&6; }
15568 if ${ac_cv_sizeof_long_double+:} false
; then :
15569 $as_echo_n "(cached) " >&6
15571 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
15574 if test "$ac_cv_type_long_double" = yes; then
15575 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15577 as_fn_error
77 "cannot compute sizeof (long double)
15578 See \`config.log' for more details" "$LINENO" 5; }
15580 ac_cv_sizeof_long_double
=0
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
15586 $as_echo "$ac_cv_sizeof_long_double" >&6; }
15590 cat >>confdefs.h
<<_ACEOF
15591 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
15596 # Also AC_SUBST this variable for ffi.h.
15597 if test -z "$HAVE_LONG_DOUBLE"; then
15599 if test $ac_cv_sizeof_long_double != 0; then
15600 if test $HAVE_LONG_DOUBLE_VARIANT != 0; then
15602 $as_echo "#define HAVE_LONG_DOUBLE_VARIANT 1" >>confdefs.h
15606 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
15609 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15619 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15620 if ${ac_cv_c_bigendian+:} false
; then :
15621 $as_echo_n "(cached) " >&6
15623 ac_cv_c_bigendian
=unknown
15624 # See if we're dealing with a universal compiler.
15625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15626 /* end confdefs.h. */
15627 #ifndef __APPLE_CC__
15628 not a universal capable compiler
15633 if ac_fn_c_try_compile
"$LINENO"; then :
15635 # Check for potential -arch flags. It is not universal unless
15636 # there are at least two -arch flags with different values.
15639 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15640 if test -n "$ac_prev"; then
15642 i?
86 | x86_64 | ppc | ppc64
)
15643 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
15646 ac_cv_c_bigendian
=universal
15652 elif test "x$ac_word" = "x-arch"; then
15657 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15658 if test $ac_cv_c_bigendian = unknown
; then
15659 # See if sys/param.h defines the BYTE_ORDER macro.
15660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15661 /* end confdefs.h. */
15662 #include <sys/types.h>
15663 #include <sys/param.h>
15668 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15669 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15671 bogus endian macros
15678 if ac_fn_c_try_compile
"$LINENO"; then :
15679 # It does; now see whether it defined to BIG_ENDIAN or not.
15680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15681 /* end confdefs.h. */
15682 #include <sys/types.h>
15683 #include <sys/param.h>
15688 #if BYTE_ORDER != BIG_ENDIAN
15696 if ac_fn_c_try_compile
"$LINENO"; then :
15697 ac_cv_c_bigendian
=yes
15699 ac_cv_c_bigendian
=no
15701 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15703 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15705 if test $ac_cv_c_bigendian = unknown
; then
15706 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15708 /* end confdefs.h. */
15709 #include <limits.h>
15714 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15715 bogus endian macros
15722 if ac_fn_c_try_compile
"$LINENO"; then :
15723 # It does; now see whether it defined to _BIG_ENDIAN or not.
15724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15725 /* end confdefs.h. */
15726 #include <limits.h>
15731 #ifndef _BIG_ENDIAN
15739 if ac_fn_c_try_compile
"$LINENO"; then :
15740 ac_cv_c_bigendian
=yes
15742 ac_cv_c_bigendian
=no
15744 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15746 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15748 if test $ac_cv_c_bigendian = unknown
; then
15749 # Compile a test program.
15750 if test "$cross_compiling" = yes; then :
15751 # Try to guess by grepping values from an object file.
15752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15753 /* end confdefs.h. */
15754 short int ascii_mm[] =
15755 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15756 short int ascii_ii[] =
15757 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15758 int use_ascii (int i) {
15759 return ascii_mm[i] + ascii_ii[i];
15761 short int ebcdic_ii[] =
15762 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15763 short int ebcdic_mm[] =
15764 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15765 int use_ebcdic (int i) {
15766 return ebcdic_mm[i] + ebcdic_ii[i];
15773 return use_ascii (foo) == use_ebcdic (foo);
15778 if ac_fn_c_try_compile
"$LINENO"; then :
15779 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
15780 ac_cv_c_bigendian
=yes
15782 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
15783 if test "$ac_cv_c_bigendian" = unknown
; then
15784 ac_cv_c_bigendian
=no
15786 # finding both strings is unlikely to happen, but who knows?
15787 ac_cv_c_bigendian
=unknown
15791 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15794 /* end confdefs.h. */
15795 $ac_includes_default
15800 /* Are we little or big endian? From Harbison&Steele. */
15804 char c[sizeof (long int)];
15807 return u.c[sizeof (long int) - 1] == 1;
15813 if ac_fn_c_try_run
"$LINENO"; then :
15814 ac_cv_c_bigendian
=no
15816 ac_cv_c_bigendian
=yes
15818 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15819 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15825 $as_echo "$ac_cv_c_bigendian" >&6; }
15826 case $ac_cv_c_bigendian in #(
15828 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15834 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15838 as_fn_error $?
"unknown endianness
15839 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
15844 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
15845 if ${gcc_cv_as_cfi_pseudo_op+:} false
; then :
15846 $as_echo_n "(cached) " >&6
15849 gcc_cv_as_cfi_pseudo_op
=unknown
15850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15851 /* end confdefs.h. */
15852 asm (".cfi_startproc\n\t.cfi_endproc");
15861 if ac_fn_c_try_compile
"$LINENO"; then :
15862 gcc_cv_as_cfi_pseudo_op
=yes
15864 gcc_cv_as_cfi_pseudo_op
=no
15866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
15870 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
15871 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes
; then
15873 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
15881 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
15882 if ${libffi_cv_as_sparc_ua_pcrel+:} false
; then :
15883 $as_echo_n "(cached) " >&6
15886 save_CFLAGS
="$CFLAGS"
15887 save_LDFLAGS
="$LDFLAGS"
15888 CFLAGS
="$CFLAGS -fpic"
15889 LDFLAGS
="$LDFLAGS -shared"
15890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15891 /* end confdefs.h. */
15892 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
15901 if ac_fn_c_try_link
"$LINENO"; then :
15902 libffi_cv_as_sparc_ua_pcrel
=yes
15904 libffi_cv_as_sparc_ua_pcrel
=no
15906 rm -f core conftest.err conftest.
$ac_objext \
15907 conftest
$ac_exeext conftest.
$ac_ext
15908 CFLAGS
="$save_CFLAGS"
15909 LDFLAGS
="$save_LDFLAGS"
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
15912 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
15913 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes
; then
15915 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
15920 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
15921 if ${libffi_cv_as_register_pseudo_op+:} false
; then :
15922 $as_echo_n "(cached) " >&6
15925 libffi_cv_as_register_pseudo_op
=unknown
15926 # Check if we have .register
15927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15928 /* end confdefs.h. */
15933 asm (".register %g2, #scratch");
15938 if ac_fn_c_try_compile
"$LINENO"; then :
15939 libffi_cv_as_register_pseudo_op
=yes
15941 libffi_cv_as_register_pseudo_op
=no
15943 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
15947 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
15948 if test "x$libffi_cv_as_register_pseudo_op" = xyes
; then
15950 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15957 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
15958 if ${libffi_cv_as_x86_pcrel+:} false
; then :
15959 $as_echo_n "(cached) " >&6
15962 libffi_cv_as_x86_pcrel
=no
15963 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
15964 if $CC $CFLAGS -c conftest.s
> /dev
/null
2>&1; then
15965 libffi_cv_as_x86_pcrel
=yes
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
15970 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
15971 if test "x$libffi_cv_as_x86_pcrel" = xyes
; then
15973 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler uses zarch features" >&5
15980 $as_echo_n "checking compiler uses zarch features... " >&6; }
15981 if ${libffi_cv_as_s390_zarch+:} false
; then :
15982 $as_echo_n "(cached) " >&6
15985 libffi_cv_as_s390_zarch
=no
15986 echo 'void foo(void) { bar(); bar(); }' > conftest.c
15987 if $CC $CFLAGS -S conftest.c
> /dev
/null
2>&1; then
15988 if grep -q brasl conftest.s
; then
15989 libffi_cv_as_s390_zarch
=yes
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_s390_zarch" >&5
15995 $as_echo "$libffi_cv_as_s390_zarch" >&6; }
15996 if test "x$libffi_cv_as_s390_zarch" = xyes
; then
15998 $as_echo "#define HAVE_AS_S390_ZARCH 1" >>confdefs.h
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports pointer authentication" >&5
16005 $as_echo_n "checking whether compiler supports pointer authentication... " >&6; }
16006 if ${libffi_cv_as_ptrauth+:} false
; then :
16007 $as_echo_n "(cached) " >&6
16010 libffi_cv_as_ptrauth
=unknown
16011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16012 /* end confdefs.h. */
16019 # if __has_feature(ptrauth_calls)
16020 # define HAVE_PTRAUTH 1
16024 #ifndef HAVE_PTRAUTH
16025 # error Pointer authentication not supported
16032 if ac_fn_c_try_compile
"$LINENO"; then :
16033 libffi_cv_as_ptrauth
=yes
16035 libffi_cv_as_ptrauth
=no
16037 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ptrauth" >&5
16041 $as_echo "$libffi_cv_as_ptrauth" >&6; }
16042 if test "x$libffi_cv_as_ptrauth" = xyes
; then
16044 $as_echo "#define HAVE_PTRAUTH 1" >>confdefs.h
16048 # On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
16049 # Check whether --enable-pax_emutramp was given.
16050 if test "${enable_pax_emutramp+set}" = set; then :
16051 enableval
=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
16053 $as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
16059 FFI_EXEC_TRAMPOLINE_TABLE
=0
16061 *arm
*-apple-* | aarch64-apple-
*)
16062 FFI_EXEC_TRAMPOLINE_TABLE
=1
16064 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
16067 *-apple-* |
*-*-freebsd* |
*-*-kfreebsd* |
*-*-openbsd* |
*-pc-solaris* |
*-linux-android*)
16069 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
16073 if test x
$FFI_EXEC_TRAMPOLINE_TABLE = x1
; then
16074 FFI_EXEC_TRAMPOLINE_TABLE_TRUE
=
16075 FFI_EXEC_TRAMPOLINE_TABLE_FALSE
='#'
16077 FFI_EXEC_TRAMPOLINE_TABLE_TRUE
='#'
16078 FFI_EXEC_TRAMPOLINE_TABLE_FALSE
=
16083 if test x
$TARGET = xX86_64
; then
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking toolchain supports unwind section type" >&5
16085 $as_echo_n "checking toolchain supports unwind section type... " >&6; }
16086 if ${libffi_cv_as_x86_64_unwind_section_type+:} false
; then :
16087 $as_echo_n "(cached) " >&6
16090 cat > conftest1.s
<< EOF
16095 .section .eh_frame,"a",@unwind
16099 cat > conftest2.c
<< EOF
16104 libffi_cv_as_x86_64_unwind_section_type
=no
16105 # we ensure that we can compile _and_ link an assembly file containing an @unwind section
16106 # since the compiler can support it and not the linker (ie old binutils)
16107 if $CC -Wa,--fatal-warnings $CFLAGS -c conftest1.s
> /dev
/null
2>&1 && \
16108 $CC conftest2.c conftest1.o
> /dev
/null
2>&1 ; then
16109 libffi_cv_as_x86_64_unwind_section_type
=yes
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
16114 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
16115 if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes
; then
16117 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
16122 if test "x$GCC" = "xyes"; then
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
16124 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
16125 if ${libffi_cv_ro_eh_frame+:} false
; then :
16126 $as_echo_n "(cached) " >&6
16129 libffi_cv_ro_eh_frame
=yes
16130 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
16131 if $CC $CFLAGS -c -fpic -fexceptions -fno-lto -o conftest.o conftest.c
> /dev
/null
2>&1; then
16132 if $READELF -WS conftest.o |
grep -q -n 'eh_frame .* WA'; then
16133 libffi_cv_ro_eh_frame
=no
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
16140 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
16141 if test "x$libffi_cv_ro_eh_frame" = xyes
; then
16143 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
16146 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
16150 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
16155 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
16156 if ${libffi_cv_hidden_visibility_attribute+:} false
; then :
16157 $as_echo_n "(cached) " >&6
16160 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1 ; }' > conftest.c
16161 libffi_cv_hidden_visibility_attribute
=no
16162 if { ac_try
='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
16163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16164 (eval $ac_try) 2>&5
16166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16167 test $ac_status = 0; }; }; then
16168 if egrep '(\.hidden|\.private_extern).*foo' conftest.s
>/dev
/null
; then
16169 libffi_cv_hidden_visibility_attribute
=yes
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
16176 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
16177 if test $libffi_cv_hidden_visibility_attribute = yes; then
16179 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
16184 # See if makeinfo has been installed and is modern enough
16185 # that we can use it.
16187 # Extract the first word of "makeinfo", so it can be a program name with args.
16188 set dummy makeinfo
; ac_word
=$2
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16190 $as_echo_n "checking for $ac_word... " >&6; }
16191 if ${ac_cv_prog_MAKEINFO+:} false
; then :
16192 $as_echo_n "(cached) " >&6
16194 if test -n "$MAKEINFO"; then
16195 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
16197 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16198 for as_dir
in $PATH
16201 test -z "$as_dir" && as_dir
=.
16202 for ac_exec_ext
in '' $ac_executable_extensions; do
16203 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16204 ac_cv_prog_MAKEINFO
="makeinfo"
16205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16214 MAKEINFO
=$ac_cv_prog_MAKEINFO
16215 if test -n "$MAKEINFO"; then
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
16217 $as_echo "$MAKEINFO" >&6; }
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16220 $as_echo "no" >&6; }
16224 if test -n "$MAKEINFO"; then
16225 # Found it, now check the version.
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
16227 $as_echo_n "checking for modern makeinfo... " >&6; }
16228 if ${gcc_cv_prog_makeinfo_modern+:} false
; then :
16229 $as_echo_n "(cached) " >&6
16231 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
16232 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
16234 case $ac_prog_version in
16235 '') gcc_cv_prog_makeinfo_modern
=no
;;
16236 4.
[4-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
16237 *) gcc_cv_prog_makeinfo_modern
=no
;;
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
16242 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
16244 gcc_cv_prog_makeinfo_modern
=no
16246 if test $gcc_cv_prog_makeinfo_modern = no
; then
16247 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
16250 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
16252 BUILD_DOCS_FALSE
='#'
16254 BUILD_DOCS_TRUE
='#'
16266 for i
in $SOURCES; do
16267 TARGET_OBJ
="${TARGET_OBJ} src/${TARGETDIR}/"`echo $i | sed 's/[cS]$/lo/'`
16274 # Check whether --enable-debug was given.
16275 if test "${enable_debug+set}" = set; then :
16276 enableval
=$enable_debug; if test "$enable_debug" = "yes"; then
16278 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
16283 if test "$enable_debug" = "yes"; then
16285 FFI_DEBUG_FALSE
='#'
16292 # Check whether --enable-structs was given.
16293 if test "${enable_structs+set}" = set; then :
16294 enableval
=$enable_structs; if test "$enable_structs" = "no"; then
16296 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
16301 if test "$enable_debug" = "yes"; then
16303 FFI_DEBUG_FALSE
='#'
16310 # Check whether --enable-raw-api was given.
16311 if test "${enable_raw_api+set}" = set; then :
16312 enableval
=$enable_raw_api; if test "$enable_raw_api" = "no"; then
16314 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
16320 # Check whether --enable-exec-static-tramp was given.
16321 if test "${enable_exec_static_tramp+set}" = set; then :
16322 enableval
=$enable_exec_static_tramp;
16326 if test "$enable_exec_static_tramp" = yes; then
16330 *arm
*-*-linux-* | aarch64
*-*-linux-* | i
*86-*-linux-* | x86_64-
*-linux-*)
16332 $as_echo "#define FFI_EXEC_STATIC_TRAMP 1" >>confdefs.h
16338 # Check whether --enable-purify-safety was given.
16339 if test "${enable_purify_safety+set}" = set; then :
16340 enableval
=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
16342 $as_echo "#define USING_PURIFY 1" >>confdefs.h
16349 # Check whether --with-toolexeclibdir was given.
16350 if test "${with_toolexeclibdir+set}" = set; then :
16351 withval
=$with_toolexeclibdir; case ${with_toolexeclibdir} in
16355 with_toolexeclibdir
=`echo $with_toolexeclibdir | sed 's,/$,,'`
16359 with_toolexeclibdir
=no
16364 if test -n "$with_cross_host" &&
16365 test x
"$with_cross_host" != x
"no"; then
16366 toolexecdir
='$(exec_prefix)/$(target_alias)'
16367 case ${with_toolexeclibdir} in
16369 toolexeclibdir
='$(toolexecdir)/lib'
16372 toolexeclibdir
=${with_toolexeclibdir}
16376 toolexecdir
='$(libdir)/gcc-lib/$(target_alias)'
16377 toolexeclibdir
='$(libdir)'
16379 multi_os_directory
=`$CC -print-multi-os-directory`
16380 case $multi_os_directory in
16381 .
) ;; # Avoid trailing /.
16382 *) toolexeclibdir
=$toolexeclibdir/$multi_os_directory ;;
16387 if test "${multilib}" = "yes"; then
16388 multilib_arg
="--enable-multilib"
16393 # Check linker support.
16396 # Check whether --with-gnu-ld was given.
16397 if test "${with_gnu_ld+set}" = set; then :
16398 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
16404 if test "$GCC" = yes; then
16405 # Check if gcc -print-prog-name=ld gives a path.
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16407 $as_echo_n "checking for ld used by $CC... " >&6; }
16410 # gcc leaves a trailing carriage return which upsets mingw
16411 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16413 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
16416 # Accept absolute paths.
16418 re_direlt
='/[^/][^/]*/\.\./'
16419 # Canonicalize the pathname of ld
16420 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16421 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
16422 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16424 test -z "$LD" && LD
="$ac_prog"
16427 # If it fails, then pretend we aren't using GCC.
16431 # If it is relative, then search for the first ld in PATH.
16432 with_gnu_ld
=unknown
16435 elif test "$with_gnu_ld" = yes; then
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16437 $as_echo_n "checking for GNU ld... " >&6; }
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16440 $as_echo_n "checking for non-GNU ld... " >&6; }
16442 if ${lt_cv_path_LD+:} false
; then :
16443 $as_echo_n "(cached) " >&6
16445 if test -z "$LD"; then
16446 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
16447 for ac_dir
in $PATH; do
16449 test -z "$ac_dir" && ac_dir
=.
16450 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
16451 lt_cv_path_LD
="$ac_dir/$ac_prog"
16452 # Check to see if the program is GNU ld. I'd rather use --version,
16453 # but apparently some variants of GNU ld only accept -v.
16454 # Break only if it was the GNU/non-GNU ld that we prefer.
16455 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16456 *GNU
* |
*'with BFD'*)
16457 test "$with_gnu_ld" != no
&& break
16460 test "$with_gnu_ld" != yes && break
16467 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
16471 LD
="$lt_cv_path_LD"
16472 if test -n "$LD"; then
16473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16474 $as_echo "$LD" >&6; }
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16477 $as_echo "no" >&6; }
16479 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16481 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16482 if ${lt_cv_prog_gnu_ld+:} false
; then :
16483 $as_echo_n "(cached) " >&6
16485 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16486 case `$LD -v 2>&1 </dev/null` in
16487 *GNU
* |
*'with BFD'*)
16488 lt_cv_prog_gnu_ld
=yes
16491 lt_cv_prog_gnu_ld
=no
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16496 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16497 with_gnu_ld
=$lt_cv_prog_gnu_ld
16505 # If we're not using GNU ld, then there's no point in even trying these
16506 # tests. Check for that first. We should have already tested for gld
16507 # by now (in libtool), but require it now just to be safe...
16508 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS
=''
16509 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS
=''
16513 # The name set by libtool depends on the version of libtool. Shame on us
16514 # for depending on an impl detail, but c'est la vie. Older versions used
16515 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16516 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16517 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16518 # set (hence we're using an older libtool), then set it.
16519 if test x
${with_gnu_ld+set} != xset
; then
16520 if test x
${ac_cv_prog_gnu_ld+set} != xset
; then
16521 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16524 with_gnu_ld
=$ac_cv_prog_gnu_ld
16528 # Start by getting the version number. I think the libtool test already
16529 # does some of this, but throws away the result.
16530 libat_ld_is_gold
=no
16531 if $LD --version 2>/dev
/null |
grep 'GNU gold'> /dev
/null
2>&1; then
16532 libat_ld_is_gold
=yes
16535 if $LD --version 2>/dev
/null |
grep 'LLD '> /dev
/null
2>&1; then
16536 libat_ld_is_lld
=yes
16539 ldver
=`$LD --version 2>/dev/null |
16540 sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'`
16542 libat_gnu_ld_version
=`echo $ldver | \
16543 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16545 # Set --gc-sections.
16546 if test "$with_gnu_ld" = "notbroken"; then
16547 # GNU ld it is! Joy and bunny rabbits!
16549 # All these tests are for C++; save the language and the compiler flags.
16550 # Need to do this so that g++ won't try to link in libstdc++
16551 ac_test_CFLAGS
="${CFLAGS+set}"
16552 ac_save_CFLAGS
="$CFLAGS"
16553 CFLAGS
='-x c++ -Wl,--gc-sections'
16555 # Check for -Wl,--gc-sections
16556 # XXX This test is broken at the moment, as symbols required for linking
16557 # are now in libsupc++ (not built yet). In addition, this test has
16558 # cored on solaris in the past. In addition, --gc-sections doesn't
16559 # really work at the moment (keeps on discarding used sections, first
16560 # .eh_frame and now some of the glibc sections for iconv).
16561 # Bzzzzt. Thanks for playing, maybe next time.
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16563 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16564 if test "$cross_compiling" = yes; then :
16565 ac_sectionLDflags
=yes
16567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16568 /* end confdefs.h. */
16578 if ac_fn_c_try_run
"$LINENO"; then :
16579 ac_sectionLDflags
=yes
16581 ac_sectionLDflags
=no
16583 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16584 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16587 if test "$ac_test_CFLAGS" = set; then
16588 CFLAGS
="$ac_save_CFLAGS"
16590 # this is the suspicious part
16593 if test "$ac_sectionLDflags" = "yes"; then
16594 SECTION_LDFLAGS
="-Wl,--gc-sections $SECTION_LDFLAGS"
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16597 $as_echo "$ac_sectionLDflags" >&6; }
16600 # Set linker optimization flags.
16601 if test x
"$with_gnu_ld" = x
"yes"; then
16602 OPT_LDFLAGS
="-Wl,-O1 $OPT_LDFLAGS"
16610 # Check whether --enable-symvers was given.
16611 if test "${enable_symvers+set}" = set; then :
16612 enableval
=$enable_symvers;
16613 case "$enableval" in
16614 yes|no|gnu
*|sun
) ;;
16615 *) as_fn_error $?
"Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16624 # If we never went through the LIBFFI_CHECK_LINKER_FEATURES macro, then we
16625 # don't know enough about $LD to do tricks...
16628 # Turn a 'yes' into a suitable default.
16629 if test x
$enable_symvers = xyes
; then
16630 # FIXME The following test is too strict, in theory.
16631 if test $enable_shared = no ||
test "x$LD" = x
; then
16634 if test $with_gnu_ld = yes ; then
16637 case ${target_os} in
16638 # Sun symbol versioning exists since Solaris 2.5.
16639 solaris2.
[5-9]* | solaris2.1
[0-9]*)
16640 enable_symvers
=sun
;;
16642 enable_symvers
=no
;;
16648 # Check if 'sun' was requested on non-Solaris 2 platforms.
16649 if test x
$enable_symvers = xsun
; then
16650 case ${target_os} in
16655 # Unlikely to work.
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16657 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16659 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16661 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16667 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16668 if test $enable_symvers != no
; then
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16670 $as_echo_n "checking for shared libgcc... " >&6; }
16671 ac_save_CFLAGS
="$CFLAGS"
16673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16674 /* end confdefs.h. */
16684 if ac_fn_c_try_link
"$LINENO"; then :
16685 libat_shared_libgcc
=yes
16687 libat_shared_libgcc
=no
16689 rm -f core conftest.err conftest.
$ac_objext \
16690 conftest
$ac_exeext conftest.
$ac_ext
16691 CFLAGS
="$ac_save_CFLAGS"
16692 if test $libat_shared_libgcc = no
; then
16693 cat > conftest.c
<<EOF
16694 int main (void) { return 0; }
16696 libat_libgcc_s_suffix
=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16697 -shared -shared-libgcc -o conftest.so \
16698 conftest.c -v 2>&1 >/dev/null \
16699 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16700 rm -f conftest.c conftest.so
16701 if test x
${libat_libgcc_s_suffix+set} = xset
; then
16702 CFLAGS
=" -lgcc_s$libat_libgcc_s_suffix"
16703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16704 /* end confdefs.h. */
16714 if ac_fn_c_try_link
"$LINENO"; then :
16715 libat_shared_libgcc
=yes
16717 rm -f core conftest.err conftest.
$ac_objext \
16718 conftest
$ac_exeext conftest.
$ac_ext
16719 CFLAGS
="$ac_save_CFLAGS"
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_shared_libgcc" >&5
16723 $as_echo "$libat_shared_libgcc" >&6; }
16726 # For GNU ld, we need at least this version. The format is described in
16727 # LIBFFI_CHECK_LINKER_FEATURES above.
16728 libat_min_gnu_ld_version
=21400
16729 # XXXXXXXXXXX libat_gnu_ld_version=21390
16731 # Check to see if unspecified "yes" value can win, given results above.
16732 # Change "yes" into either "no" or a style name.
16733 if test $enable_symvers != no
&& test $libat_shared_libgcc = yes; then
16734 if test $with_gnu_ld = yes; then
16735 if test $libat_gnu_ld_version -ge $libat_min_gnu_ld_version ; then
16737 elif test $libat_ld_is_gold = yes ; then
16739 elif test $libat_ld_is_lld = yes ; then
16742 # The right tools, the right setup, but too old. Fallbacks?
16743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&5
16744 $as_echo "$as_me: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&2;}
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16746 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16748 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&5
16750 $as_echo "$as_me: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&2;}
16751 if test $libat_gnu_ld_version -ge 21200 ; then
16752 # Globbing fix is present, proper block support is not.
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16754 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16759 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16763 elif test $enable_symvers = sun
; then
16764 : All interesting versions of Sun ld support sun style symbol versioning.
16766 # just fail for now
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16768 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16770 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16772 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16774 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16778 if test $enable_symvers = gnu
; then
16780 $as_echo "#define LIBFFI_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16784 if test $enable_symvers != no
; then
16785 LIBFFI_BUILD_VERSIONED_SHLIB_TRUE
=
16786 LIBFFI_BUILD_VERSIONED_SHLIB_FALSE
='#'
16788 LIBFFI_BUILD_VERSIONED_SHLIB_TRUE
='#'
16789 LIBFFI_BUILD_VERSIONED_SHLIB_FALSE
=
16792 if test $enable_symvers = gnu
; then
16793 LIBFFI_BUILD_VERSIONED_SHLIB_GNU_TRUE
=
16794 LIBFFI_BUILD_VERSIONED_SHLIB_GNU_FALSE
='#'
16796 LIBFFI_BUILD_VERSIONED_SHLIB_GNU_TRUE
='#'
16797 LIBFFI_BUILD_VERSIONED_SHLIB_GNU_FALSE
=
16800 if test $enable_symvers = sun
; then
16801 LIBFFI_BUILD_VERSIONED_SHLIB_SUN_TRUE
=
16802 LIBFFI_BUILD_VERSIONED_SHLIB_SUN_FALSE
='#'
16804 LIBFFI_BUILD_VERSIONED_SHLIB_SUN_TRUE
='#'
16805 LIBFFI_BUILD_VERSIONED_SHLIB_SUN_FALSE
=
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16809 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16812 # Determine what GCC version number to use in filesystem paths.
16814 get_gcc_base_ver
="cat"
16816 # Check whether --with-gcc-major-version-only was given.
16817 if test "${with_gcc_major_version_only+set}" = set; then :
16818 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
16819 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
16827 ac_config_commands
="$ac_config_commands include"
16829 ac_config_commands
="$ac_config_commands src"
16832 ac_config_files
="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
16835 ac_config_links
="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
16838 cat >confcache
<<\_ACEOF
16839 # This file is a shell script that caches the results of configure
16840 # tests run on this system so they can be shared between configure
16841 # scripts and configure runs, see configure's option --config-cache.
16842 # It is not useful on other systems. If it contains results you don't
16843 # want to keep, you may remove or edit it.
16845 # config.status only pays attention to the cache file if you give it
16846 # the --recheck option to rerun configure.
16848 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16849 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16850 # following values.
16854 # The following way of writing the cache mishandles newlines in values,
16855 # but we know of no workaround that is simple, portable, and efficient.
16856 # So, we kill variables containing newlines.
16857 # Ultrix sh set writes to stderr and can't be redirected directly,
16858 # and sets the high bit in the cache file unless we assign to the vars.
16860 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16861 eval ac_val
=\$
$ac_var
16865 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16866 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16869 _ | IFS | as_nl
) ;; #(
16870 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16871 *) { eval $ac_var=; unset $ac_var;} ;;
16877 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16878 *${as_nl}ac_space
=\
*)
16879 # `set' does not quote correctly, so add quotes: double-quote
16880 # substitution turns \\\\ into \\, and sed turns \\ into \.
16883 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16886 # `set' quotes correctly as required by POSIX, so do not add quotes.
16887 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16896 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16898 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16900 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16901 if test -w "$cache_file"; then
16902 if test "x$cache_file" != "x/dev/null"; then
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16904 $as_echo "$as_me: updating cache $cache_file" >&6;}
16905 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
16906 cat confcache
>"$cache_file"
16908 case $cache_file in #(
16910 mv -f confcache
"$cache_file"$$
&&
16911 mv -f "$cache_file"$$
"$cache_file" ;; #(
16913 mv -f confcache
"$cache_file" ;;
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16919 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16924 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16925 # Let make expand exec_prefix.
16926 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16928 DEFS
=-DHAVE_CONFIG_H
16933 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16934 # 1. Remove the extension, and $U if already installed.
16935 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16936 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16937 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16938 # will be set to the directory where LIBOBJS objects are built.
16939 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16940 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16942 LIBOBJS
=$ac_libobjs
16944 LTLIBOBJS
=$ac_ltlibobjs
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16948 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16949 if test -n "$am_sleep_pid"; then
16950 # Hide warnings about reused PIDs.
16951 wait $am_sleep_pid 2>/dev
/null
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16954 $as_echo "done" >&6; }
16955 if test -n "$EXEEXT"; then
16957 am__EXEEXT_FALSE
='#'
16959 am__EXEEXT_TRUE
='#'
16963 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
16964 as_fn_error $?
"conditional \"GENINSRC\" was never defined.
16965 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16967 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16968 as_fn_error $?
"conditional \"AMDEP\" was never defined.
16969 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16971 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16972 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
16973 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16975 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16976 as_fn_error $?
"conditional \"am__fastdepCXX\" was never defined.
16977 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16979 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
16980 as_fn_error $?
"conditional \"am__fastdepCCAS\" was never defined.
16981 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16983 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16984 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
16985 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16987 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16988 as_fn_error $?
"conditional \"TESTSUBDIR\" was never defined.
16989 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16992 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
16993 as_fn_error $?
"conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
16994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16996 if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
16997 as_fn_error $?
"conditional \"BUILD_DOCS\" was never defined.
16998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17000 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
17001 as_fn_error $?
"conditional \"FFI_DEBUG\" was never defined.
17002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17004 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
17005 as_fn_error $?
"conditional \"FFI_DEBUG\" was never defined.
17006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17008 if test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_FALSE}"; then
17009 as_fn_error $?
"conditional \"LIBFFI_BUILD_VERSIONED_SHLIB\" was never defined.
17010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17012 if test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17013 as_fn_error $?
"conditional \"LIBFFI_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17016 if test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17017 as_fn_error $?
"conditional \"LIBFFI_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17021 : "${CONFIG_STATUS=./config.status}"
17023 ac_clean_files_save
=$ac_clean_files
17024 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17026 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17028 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17030 # Generated by $as_me.
17031 # Run this file to recreate the current configuration.
17032 # Compiler output produced by configure, useful for debugging
17033 # configure, is in config.log if it exists.
17036 ac_cs_recheck=false
17039 SHELL=\${CONFIG_SHELL-$SHELL}
17042 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
17043 ## -------------------- ##
17044 ## M4sh Initialization. ##
17045 ## -------------------- ##
17047 # Be more Bourne compatible
17048 DUALCASE
=1; export DUALCASE
# for MKS sh
17049 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
17052 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17053 # is contrary to our usage. Disable this feature.
17054 alias -g '${1+"$@"}'='"$@"'
17055 setopt NO_GLOB_SUBST
17057 case `(set -o) 2>/dev/null` in #(
17069 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17070 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17071 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17072 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17073 # Prefer a ksh shell builtin over an external printf program on Solaris,
17074 # but without wasting forks for bash or zsh.
17075 if test -z "$BASH_VERSION$ZSH_VERSION" \
17076 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17077 as_echo='print
-r --'
17078 as_echo_n='print
-rn --'
17079 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17080 as_echo='printf %s
\n'
17081 as_echo_n='printf %s
'
17083 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17084 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17085 as_echo_n='/usr
/ucb
/echo -n'
17087 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17088 as_echo_n_body='eval
17092 expr "X$arg" : "X\\(.*\\)$as_nl";
17093 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17095 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17097 export as_echo_n_body
17098 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17100 export as_echo_body
17101 as_echo='sh
-c $as_echo_body as_echo
'
17104 # The user is always right.
17105 if test "${PATH_SEPARATOR+set}" != set; then
17107 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17108 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17115 # We need space, tab and new line, in precisely that order. Quoting is
17116 # there to prevent editors from complaining about space-tab.
17117 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17118 # splitting by setting IFS to empty value.)
17121 # Find who we are. Look in the path if we contain no directory separator.
17124 *[\\/]* ) as_myself=$0 ;;
17125 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17126 for as_dir in $PATH
17129 test -z "$as_dir" && as_dir=.
17130 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17136 # We did not find ourselves, most probably we were run as `sh COMMAND'
17137 # in which case we are not to be found in the path.
17138 if test "x$as_myself" = x
; then
17141 if test ! -f "$as_myself"; then
17142 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17146 # Unset variables that we do not need and which cause bugs (e.g. in
17147 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17148 # suppresses any "Segmentation fault" message there. '((' could
17149 # trigger a bug in pdksh 5.2.14.
17150 for as_var
in BASH_ENV ENV MAIL MAILPATH
17151 do eval test x\
${$as_var+set} = xset \
17152 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
17165 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
17168 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17169 # ----------------------------------------
17170 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17171 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17172 # script with STATUS, using 1 if that was 0.
17175 as_status
=$1; test $as_status -eq 0 && as_status
=1
17177 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
17178 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17180 $as_echo "$as_me: error: $2" >&2
17181 as_fn_exit
$as_status
17185 # as_fn_set_status STATUS
17186 # -----------------------
17187 # Set $? to STATUS, without forking.
17188 as_fn_set_status
()
17191 } # as_fn_set_status
17193 # as_fn_exit STATUS
17194 # -----------------
17195 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17199 as_fn_set_status
$1
17205 # Portably unset VAR.
17208 { eval $1=; unset $1;}
17210 as_unset
=as_fn_unset
17211 # as_fn_append VAR VALUE
17212 # ----------------------
17213 # Append the text in VALUE to the end of the definition contained in VAR. Take
17214 # advantage of any shell optimizations that allow amortized linear growth over
17215 # repeated appends, instead of the typical quadratic growth present in naive
17217 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
17218 eval 'as_fn_append ()
17229 # as_fn_arith ARG...
17230 # ------------------
17231 # Perform arithmetic evaluation on the ARGs, and store the result in the
17232 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17233 # must be portable across $(()) and expr.
17234 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
17235 eval 'as_fn_arith ()
17242 as_val
=`expr "$@" || test $? -eq 1`
17247 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17248 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17254 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17255 as_basename
=basename
17260 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
17266 as_me
=`$as_basename -- "$0" ||
17267 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17268 X"$0" : 'X\(//\)$' \| \
17269 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17271 sed '/^.*\/\([^/][^/]*\)\/*$/{
17285 # Avoid depending upon Character Ranges.
17286 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17287 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17288 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17289 as_cr_digits
='0123456789'
17290 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17292 ECHO_C
= ECHO_N
= ECHO_T
=
17293 case `echo -n x` in #(((((
17295 case `echo 'xy\c'` in
17296 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
17298 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
17305 rm -f conf$$ conf$$.exe conf$$.
file
17306 if test -d conf$$.dir
; then
17307 rm -f conf$$.dir
/conf$$.
file
17310 mkdir conf$$.dir
2>/dev
/null
17312 if (echo >conf$$.
file) 2>/dev
/null
; then
17313 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17315 # ... but there are two gotchas:
17316 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17317 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17318 # In both cases, we have to default to `cp -pR'.
17319 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
17321 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17329 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
17330 rmdir conf$$.dir
2>/dev
/null
17335 # Create "$as_dir" as a directory, including parents if necessary.
17340 -*) as_dir
=.
/$as_dir;;
17342 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
17346 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17347 *) as_qdir
=$as_dir;;
17349 as_dirs
="'$as_qdir' $as_dirs"
17350 as_dir
=`$as_dirname -- "$as_dir" ||
17351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17352 X"$as_dir" : 'X\(//\)[^/]' \| \
17353 X"$as_dir" : 'X\(//\)$' \| \
17354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17355 $as_echo X"$as_dir" |
17356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17360 /^X\(\/\/\)[^/].*/{
17373 test -d "$as_dir" && break
17375 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
17376 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
17380 if mkdir
-p .
2>/dev
/null
; then
17381 as_mkdir_p
='mkdir -p "$as_dir"'
17383 test -d .
/-p && rmdir .
/-p
17388 # as_fn_executable_p FILE
17389 # -----------------------
17390 # Test if FILE is an executable regular file.
17391 as_fn_executable_p
()
17393 test -f "$1" && test -x "$1"
17394 } # as_fn_executable_p
17395 as_test_x
='test -x'
17396 as_executable_p
=as_fn_executable_p
17398 # Sed expression to map a string onto a valid CPP name.
17399 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17401 # Sed expression to map a string onto a valid variable name.
17402 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17406 ## ----------------------------------- ##
17407 ## Main body of $CONFIG_STATUS script. ##
17408 ## ----------------------------------- ##
17410 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
17412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17413 # Save the log message, to keep $0 and so on meaningful, and to
17414 # report actual input values of CONFIG_FILES etc. instead of their
17415 # values after options handling.
17417 This file was extended by libffi $as_me 3.4.2, which was
17418 generated by GNU Autoconf 2.69. Invocation command line was
17420 CONFIG_FILES = $CONFIG_FILES
17421 CONFIG_HEADERS = $CONFIG_HEADERS
17422 CONFIG_LINKS = $CONFIG_LINKS
17423 CONFIG_COMMANDS = $CONFIG_COMMANDS
17426 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17431 case $ac_config_files in *"
17432 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
17435 case $ac_config_headers in *"
17436 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
17440 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17441 # Files that config.status was made for.
17442 config_files="$ac_config_files"
17443 config_headers="$ac_config_headers"
17444 config_links="$ac_config_links"
17445 config_commands="$ac_config_commands"
17449 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17451 \`$as_me' instantiates files and other configuration actions
17452 from templates according to the current configuration. Unless the files
17453 and actions are specified as TAGs, all are instantiated by default.
17455 Usage: $0 [OPTION]... [TAG]...
17457 -h, --help print this help, then exit
17458 -V, --version print version number and configuration settings, then exit
17459 --config print configuration, then exit
17460 -q, --quiet, --silent
17461 do not print progress messages
17462 -d, --debug don't remove temporary files
17463 --recheck update $as_me by reconfiguring in the same conditions
17464 --file=FILE[:TEMPLATE]
17465 instantiate the configuration file FILE
17466 --header=FILE[:TEMPLATE]
17467 instantiate the configuration header FILE
17469 Configuration files:
17472 Configuration headers:
17475 Configuration links:
17478 Configuration commands:
17481 Report bugs to <http://github.com/libffi/libffi/issues>."
17484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17485 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17487 libffi config.status 3.4.2
17488 configured by $0, generated by GNU Autoconf 2.69,
17489 with options \\"\$ac_cs_config\\"
17491 Copyright (C) 2012 Free Software Foundation, Inc.
17492 This config.status script is free software; the Free Software Foundation
17493 gives unlimited permission to copy, distribute and modify it."
17500 test -n "\$AWK" || AWK=awk
17503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17504 # The default lists apply if the user does not specify any file.
17510 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17511 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
17515 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17527 # Handling of the options.
17528 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17530 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
17531 $as_echo "$ac_cs_version"; exit ;;
17532 --config |
--confi |
--conf |
--con |
--co |
--c )
17533 $as_echo "$ac_cs_config"; exit ;;
17534 --debug |
--debu |
--deb |
--de |
--d |
-d )
17536 --file |
--fil |
--fi |
--f )
17539 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17540 '') as_fn_error $?
"missing file argument" ;;
17542 as_fn_append CONFIG_FILES
" '$ac_optarg'"
17543 ac_need_defaults
=false
;;
17544 --header |
--heade |
--head |
--hea )
17547 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17549 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
17550 ac_need_defaults
=false
;;
17552 # Conflict between --help and --header
17553 as_fn_error $?
"ambiguous option: \`$1'
17554 Try \`$0 --help' for more information.";;
17555 --help |
--hel |
-h )
17556 $as_echo "$ac_cs_usage"; exit ;;
17557 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17558 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17561 # This is an error.
17562 -*) as_fn_error $?
"unrecognized option: \`$1'
17563 Try \`$0 --help' for more information." ;;
17565 *) as_fn_append ac_config_targets
" $1"
17566 ac_need_defaults
=false
;;
17572 ac_configure_extra_args
=
17574 if $ac_cs_silent; then
17576 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17581 if \$ac_cs_recheck; then
17582 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17584 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17585 CONFIG_SHELL='$SHELL'
17586 export CONFIG_SHELL
17591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17595 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17596 ## Running $as_me. ##
17602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17610 with_multisubdir="$with_multisubdir"
17611 with_multisrctop="$with_multisrctop"
17612 with_target_subdir="$with_target_subdir"
17613 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17614 multi_basedir="$multi_basedir"
17615 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17618 GFORTRAN="$GFORTRAN"
17620 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17623 # The HP-UX ksh and POSIX shell print the target directory to stdout
17624 # if CDPATH is set.
17625 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17627 sed_quote_subst='$sed_quote_subst'
17628 double_quote_subst='$double_quote_subst'
17629 delay_variable_subst='$delay_variable_subst'
17630 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17631 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17632 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17633 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17634 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17635 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17636 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17637 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17638 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17639 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17640 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17641 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17642 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17643 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17644 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17645 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17646 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17647 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17648 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17649 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17650 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17651 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17652 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17653 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17654 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17655 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17656 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17657 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17658 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17659 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17660 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17661 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17662 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17663 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17664 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17665 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17666 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17667 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17668 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17669 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17670 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17671 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17672 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17673 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17674 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17675 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17676 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17677 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17678 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"`'
17679 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17680 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17681 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17682 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17683 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17684 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17685 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17686 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17687 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17688 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17689 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17690 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17691 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17692 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17693 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17694 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17695 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17696 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17697 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17698 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17699 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17700 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17701 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17702 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17703 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17704 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17705 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17706 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17707 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17708 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17709 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17710 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17711 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17712 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17713 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17714 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17715 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17716 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17717 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17718 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17719 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17720 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17721 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17722 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17723 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17724 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17725 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17726 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17727 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17728 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17729 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17730 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17731 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17732 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17733 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17734 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17735 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17736 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17737 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17738 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17739 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17740 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17741 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17742 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17743 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17744 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17745 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17746 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17747 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17748 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17749 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17750 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17751 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17752 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17753 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17754 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17755 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17756 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17757 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17758 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17759 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17760 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17761 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17762 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17763 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17764 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17765 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17766 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17767 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17768 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17769 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17770 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17771 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17772 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17773 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17774 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17775 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17776 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17777 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17778 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17779 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17780 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17781 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17782 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17783 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17784 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17785 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17786 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17787 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17788 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17789 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17790 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17791 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17792 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17793 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17794 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17795 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17796 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17797 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17798 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17799 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17800 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17801 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17802 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17803 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17804 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17807 LTCFLAGS='$LTCFLAGS'
17808 compiler='$compiler_DEFAULT'
17810 # A function that is used when there is no print builtin or printf.
17811 func_fallback_echo ()
17813 eval 'cat <<_LTECHO_EOF
17818 # Quote evaled strings.
17832 deplibs_check_method \
17841 lt_cv_sys_global_symbol_pipe \
17842 lt_cv_sys_global_symbol_to_cdecl \
17843 lt_cv_sys_global_symbol_to_c_name_address \
17844 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17845 lt_prog_compiler_no_builtin_flag \
17846 lt_prog_compiler_wl \
17847 lt_prog_compiler_pic \
17848 lt_prog_compiler_static \
17849 lt_cv_prog_compiler_c_o \
17857 export_dynamic_flag_spec \
17858 whole_archive_flag_spec \
17859 compiler_needs_object \
17861 allow_undefined_flag \
17862 no_undefined_flag \
17863 hardcode_libdir_flag_spec \
17864 hardcode_libdir_flag_spec_ld \
17865 hardcode_libdir_separator \
17870 variables_saved_for_relink \
17872 library_names_spec \
17874 install_override_mode \
17878 compiler_lib_search_dirs \
17883 compiler_lib_search_path \
17887 lt_prog_compiler_no_builtin_flag_CXX \
17888 lt_prog_compiler_wl_CXX \
17889 lt_prog_compiler_pic_CXX \
17890 lt_prog_compiler_static_CXX \
17891 lt_cv_prog_compiler_c_o_CXX \
17892 export_dynamic_flag_spec_CXX \
17893 whole_archive_flag_spec_CXX \
17894 compiler_needs_object_CXX \
17896 allow_undefined_flag_CXX \
17897 no_undefined_flag_CXX \
17898 hardcode_libdir_flag_spec_CXX \
17899 hardcode_libdir_flag_spec_ld_CXX \
17900 hardcode_libdir_separator_CXX \
17901 fix_srcfile_path_CXX \
17902 exclude_expsyms_CXX \
17903 include_expsyms_CXX \
17904 file_list_spec_CXX \
17905 compiler_lib_search_dirs_CXX \
17906 predep_objects_CXX \
17907 postdep_objects_CXX \
17910 compiler_lib_search_path_CXX; do
17911 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17912 *[\\\\\\\`\\"\\\$]*)
17913 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17916 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17921 # Double-quote double-evaled strings.
17922 for var in reload_cmds \
17923 old_postinstall_cmds \
17924 old_postuninstall_cmds \
17926 extract_expsyms_cmds \
17927 old_archive_from_new_cmds \
17928 old_archive_from_expsyms_cmds \
17930 archive_expsym_cmds \
17932 module_expsym_cmds \
17933 export_symbols_cmds \
17936 postuninstall_cmds \
17938 sys_lib_search_path_spec \
17939 sys_lib_dlsearch_path_spec \
17941 old_archive_cmds_CXX \
17942 old_archive_from_new_cmds_CXX \
17943 old_archive_from_expsyms_cmds_CXX \
17945 archive_expsym_cmds_CXX \
17947 module_expsym_cmds_CXX \
17948 export_symbols_cmds_CXX \
17949 prelink_cmds_CXX; do
17950 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17951 *[\\\\\\\`\\"\\\$]*)
17952 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17955 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17960 ac_aux_dir='$ac_aux_dir'
17961 xsi_shell='$xsi_shell'
17962 lt_shell_append='$lt_shell_append'
17964 # See if we are running on zsh, and set the options which allow our
17965 # commands through without removal of \ escapes INIT.
17966 if test -n "\${ZSH_VERSION+set}" ; then
17967 setopt NO_GLOB_SUBST
17973 TIMESTAMP='$TIMESTAMP'
17981 TARGETDIR="$TARGETDIR"
17985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17987 # Handling of arguments.
17988 for ac_config_target
in $ac_config_targets
17990 case $ac_config_target in
17991 "fficonfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS fficonfig.h" ;;
17992 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
17993 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
17994 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
17995 "include") CONFIG_COMMANDS
="$CONFIG_COMMANDS include" ;;
17996 "src") CONFIG_COMMANDS
="$CONFIG_COMMANDS src" ;;
17997 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
17998 "include/ffi.h") CONFIG_FILES
="$CONFIG_FILES include/ffi.h" ;;
17999 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18000 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
18001 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
18002 "libffi.pc") CONFIG_FILES
="$CONFIG_FILES libffi.pc" ;;
18003 "include/ffitarget.h") CONFIG_LINKS
="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
18005 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18010 # If the user did not use the arguments to specify the items to instantiate,
18011 # then the envvar interface is used. Set only those that are not.
18012 # We use the long form for the default assignment because of an extremely
18013 # bizarre bug on SunOS 4.1.3.
18014 if $ac_need_defaults; then
18015 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18016 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18017 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
18018 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18021 # Have a temporary directory for convenience. Make it in the build tree
18022 # simply because there is no reason against having it here, and in addition,
18023 # creating and moving files from /tmp can sometimes cause problems.
18024 # Hook for its removal unless debugging.
18025 # Note that there is a small window in which the directory will not be cleaned:
18026 # after its creation but before its name has been assigned to `$tmp'.
18030 trap 'exit_status=$?
18031 : "${ac_tmp:=$tmp}"
18032 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18034 trap 'as_fn_exit 1' 1 2 13 15
18036 # Create a (secure) tmp directory for tmp files.
18039 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18043 tmp
=.
/conf$$
-$RANDOM
18044 (umask 077 && mkdir
"$tmp")
18045 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
18048 # Set up the scripts for CONFIG_FILES section.
18049 # No need to generate them if there are no CONFIG_FILES.
18050 # This happens for instance with `./config.status config.h'.
18051 if test -n "$CONFIG_FILES"; then
18054 ac_cr
=`echo X | tr X '\015'`
18055 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18056 # But we know of no other shell where ac_cr would be empty at this
18057 # point, so we can use a bashism as a fallback.
18058 if test "x$ac_cr" = x
; then
18059 eval ac_cr
=\$
\'\\r
\'
18061 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18062 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18065 ac_cs_awk_cr
=$ac_cr
18068 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18073 echo "cat >conf$$subs.awk <<_ACEOF" &&
18074 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18076 } >conf$$subs.sh ||
18077 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18078 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18080 for ac_last_try in false false false false false :; do
18081 . ./conf$$subs.sh ||
18082 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18084 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
18085 if test $ac_delim_n = $ac_delim_num; then
18087 elif $ac_last_try; then
18088 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18090 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18093 rm -f conf$$subs.sh
18095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18096 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
18100 s/^/S["/; s
/!.
*/"]=/
18110 s/\(.\{148\}\)..*/\1/
18112 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18117 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18124 s/\(.\{148\}\)..*/\1/
18126 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18130 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18135 ' <conf$$subs.awk | sed '
18140 ' >>$CONFIG_STATUS || ac_write_fail=1
18141 rm -f conf$$subs.awk
18142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18144 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
18145 for (key in S) S_is_set[key] = 1
18151 nfields = split(line, field, "@
")
18153 len = length(field[1])
18154 for (i = 2; i < nfields; i++) {
18156 keylen = length(key)
18157 if (S_is_set[key]) {
18159 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18160 len += length(value) + length(field[++i])
18171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18172 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18173 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18176 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
18177 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
18180 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18181 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
18182 # trailing colons and then remove the whole line if VPATH becomes empty
18183 # (actually we leave an empty line to preserve line numbers).
18184 if test "x
$srcdir" = x.; then
18185 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18204 fi # test -n "$CONFIG_FILES"
18206 # Set up the scripts for CONFIG_HEADERS section.
18207 # No need to generate them if there are no CONFIG_HEADERS.
18208 # This happens for instance with `./config.status Makefile'.
18209 if test -n "$CONFIG_HEADERS"; then
18210 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
18214 # Transform confdefs.h into an awk script `defines.awk', embedded as
18215 # here-document in config.status, that substitutes the proper values into
18216 # config.h.in to produce config.h.
18218 # Create a delimiter string that does not exist in confdefs.h, to ease
18219 # handling of long lines.
18221 for ac_last_try in false false :; do
18222 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
18223 if test -z "$ac_tt"; then
18225 elif $ac_last_try; then
18226 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
18228 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18232 # For the awk script, D is an array of macro values keyed by name,
18233 # likewise P contains macro parameters if any. Preserve backslash
18234 # newline sequences.
18236 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18238 s/.\{148\}/&'"$ac_delim"'/g
18241 s/^[ ]*#[ ]*define[ ][ ]*/ /
18248 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18250 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18254 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18255 D["\
1"]=" \
3\\\\\\n
"\\/p
18257 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18262 s/.\{148\}/&'"$ac_delim"'/g
18267 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18270 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18272 ' <confdefs.h | sed '
18273 s/'"$ac_delim"'/"\\\
18274 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18276 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18277 for (key in D) D_is_set[key] = 1
18280 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18282 split(line, arg, " ")
18283 if (arg[1] == "#") {
18287 defundef
= substr
(arg
[1], 2)
18290 split(mac1
, mac2
, "(") #)
18292 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18293 if (D_is_set
[macro
]) {
18294 # Preserve the white space surrounding the "#".
18295 print prefix
"define", macro P
[macro
] D
[macro
]
18298 # Replace #undef with comments. This is necessary, for example,
18299 # in the case of _POSIX_SOURCE, which is predefined and required
18300 # on some systems where configure will not decide to define it.
18301 if (defundef
== "undef") {
18302 print
"/*", prefix defundef
, macro
, "*/"
18310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18311 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
18312 fi # test -n "$CONFIG_HEADERS"
18315 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18320 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18322 case $ac_mode$ac_tag in
18324 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
18325 :[FH
]-) ac_tag
=-:-;;
18326 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18343 -) ac_f
="$ac_tmp/stdin";;
18344 *) # Look for the file first in the build tree, then in the source tree
18345 # (if the path is not absolute). The absolute path cannot be DOS-style,
18346 # because $ac_f cannot contain `:'.
18350 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18352 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18354 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18355 as_fn_append ac_file_inputs
" '$ac_f'"
18358 # Let's still pretend it is `configure' which instantiates (i.e., don't
18359 # use $as_me), people would be surprised to read:
18360 # /* config.h. Generated by config.status. */
18361 configure_input
='Generated from '`
18362 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18364 if test x
"$ac_file" != x-
; then
18365 configure_input
="$ac_file. $configure_input"
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18367 $as_echo "$as_me: creating $ac_file" >&6;}
18369 # Neutralize special characters interpreted by sed in replacement strings.
18370 case $configure_input in #(
18371 *\
&* |
*\|
* |
*\\* )
18372 ac_sed_conf_input
=`$as_echo "$configure_input" |
18373 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18374 *) ac_sed_conf_input
=$configure_input;;
18378 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
18379 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
18384 ac_dir
=`$as_dirname -- "$ac_file" ||
18385 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18386 X"$ac_file" : 'X\(//\)[^/]' \| \
18387 X"$ac_file" : 'X\(//\)$' \| \
18388 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18389 $as_echo X"$ac_file" |
18390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18394 /^X\(\/\/\)[^/].*/{
18407 as_dir
="$ac_dir"; as_fn_mkdir_p
18411 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18413 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18414 # A ".." for each directory in $ac_dir_suffix.
18415 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18416 case $ac_top_builddir_sub in
18417 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18418 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18421 ac_abs_top_builddir
=$ac_pwd
18422 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18423 # for backward compatibility:
18424 ac_top_builddir
=$ac_top_build_prefix
18427 .
) # We are building in place.
18429 ac_top_srcdir
=$ac_top_builddir_sub
18430 ac_abs_top_srcdir
=$ac_pwd ;;
18431 [\\/]* | ?
:[\\/]* ) # Absolute name.
18432 ac_srcdir
=$srcdir$ac_dir_suffix;
18433 ac_top_srcdir
=$srcdir
18434 ac_abs_top_srcdir
=$srcdir ;;
18435 *) # Relative name.
18436 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18437 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18438 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18440 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18450 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18451 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
18453 ac_MKDIR_P
=$MKDIR_P
18455 [\\/$
]* | ?
:[\\/]* ) ;;
18456 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
18460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18461 # If the template does not know about datarootdir, expand it.
18462 # FIXME: This hack should be removed a few years after 2.60.
18463 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18474 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18475 *datarootdir
*) ac_datarootdir_seen
=yes;;
18476 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18478 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18481 ac_datarootdir_hack='
18482 s&@datadir@&$datadir&g
18483 s&@docdir@&$docdir&g
18484 s&@infodir@&$infodir&g
18485 s&@localedir@&$localedir&g
18486 s&@mandir@&$mandir&g
18487 s&\\\${datarootdir}&$datarootdir&g' ;;
18491 # Neutralize VPATH when `$srcdir' = `.'.
18492 # Shell code in configure.ac might set extrasub.
18493 # FIXME: do we really want to maintain this feature?
18494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18495 ac_sed_extra="$ac_vpsub
18498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18500 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18501 s|@configure_input@|
$ac_sed_conf_input|
;t t
18502 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
18503 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
18504 s
&@srcdir@
&$ac_srcdir&;t t
18505 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
18506 s
&@top_srcdir@
&$ac_top_srcdir&;t t
18507 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
18508 s
&@builddir@
&$ac_builddir&;t t
18509 s
&@abs_builddir@
&$ac_abs_builddir&;t t
18510 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
18511 s
&@INSTALL@
&$ac_INSTALL&;t t
18512 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
18513 $ac_datarootdir_hack
18515 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
18516 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
18518 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18519 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
18520 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18521 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
18522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
18523 which seems to be undefined. Please make sure it is defined" >&5
18524 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
18525 which seems to be undefined. Please make sure it is defined" >&2;}
18527 rm -f "$ac_tmp/stdin"
18529 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18530 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18532 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18538 if test x"$ac_file" != x-; then
18540 $as_echo "/* $configure_input */" \
18541 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18542 } >"$ac_tmp/config.h" \
18543 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18544 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18545 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18546 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18549 mv "$ac_tmp/config.h" "$ac_file" \
18550 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18553 $as_echo "/* $configure_input */" \
18554 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18555 || as_fn_error $? "could not create -" "$LINENO" 5
18557 # Compute "$ac_file"'s index
in $config_headers.
18560 for _am_header
in $config_headers :; do
18561 case $_am_header in
18562 $_am_arg |
$_am_arg:* )
18565 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
18568 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18569 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18570 X"$_am_arg" : 'X\(//\)[^/]' \| \
18571 X"$_am_arg" : 'X\(//\)$' \| \
18572 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18573 $as_echo X"$_am_arg" |
18574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18578 /^X\(\/\/\)[^/].*/{
18590 s/.*/./; q'`/stamp-h
$_am_stamp_count
18597 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
18600 # Prefer the file from the source tree if names are identical.
18601 if test "$ac_source" = "$ac_file" ||
test ! -r "$ac_source"; then
18602 ac_source
=$srcdir/$ac_source
18605 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
18606 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
18608 if test ! -r "$ac_source"; then
18609 as_fn_error $?
"$ac_source: file not found" "$LINENO" 5
18613 # Try a relative symlink, then a hard link, then a copy.
18615 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$ac_source ;;
18616 *) ac_rel_source
=$ac_top_build_prefix$ac_source ;;
18618 ln -s "$ac_rel_source" "$ac_file" 2>/dev
/null ||
18619 ln "$ac_source" "$ac_file" 2>/dev
/null ||
18620 cp -p "$ac_source" "$ac_file" ||
18621 as_fn_error $?
"cannot link or copy $ac_source to $ac_file" "$LINENO" 5
18624 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18625 $as_echo "$as_me: executing $ac_file commands" >&6;}
18630 case $ac_file$ac_mode in
18632 # Only add multilib support code if we just rebuilt the top-level
18634 case " $CONFIG_FILES " in
18636 ac_file
=Makefile .
${multi_basedir}/config-ml.
in
18639 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
18640 # Older Autoconf quotes --file arguments for eval, but not when files
18641 # are listed without --file. Let's play safe and only enable the eval
18642 # if we detect the quoting.
18643 case $CONFIG_FILES in
18644 *\'*) eval set x
"$CONFIG_FILES" ;;
18645 *) set x
$CONFIG_FILES ;;
18650 # Strip MF so we end up with the name of the file.
18651 mf
=`echo "$mf" | sed -e 's/:.*$//'`
18652 # Check whether this is an Automake generated Makefile or not.
18653 # We used to match only the files named 'Makefile.in', but
18654 # some people rename them; so instead we look at the file content.
18655 # Grep'ing the first line is not enough: some people post-process
18656 # each Makefile.in and add a new line on top of each file to say so.
18657 # Grep'ing the whole file is not good either: AIX grep has a line
18658 # limit of 2048, but all sed's we know have understand at least 4000.
18659 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
18660 dirpart
=`$as_dirname -- "$mf" ||
18661 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18662 X"$mf" : 'X\(//\)[^/]' \| \
18663 X"$mf" : 'X\(//\)$' \| \
18664 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18670 /^X\(\/\/\)[^/].*/{
18686 # Extract the definition of DEPDIR, am__include, and am__quote
18687 # from the Makefile without running 'make'.
18688 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
18689 test -z "$DEPDIR" && continue
18690 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
18691 test -z "$am__include" && continue
18692 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
18693 # Find all dependency output files, they are included files with
18694 # $(DEPDIR) in their names. We invoke sed twice because it is the
18695 # simplest approach to changing $(DEPDIR) to its actual value in the
18697 for file in `sed -n "
18698 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18699 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18700 # Make sure the directory exists.
18701 test -f "$dirpart/$file" && continue
18702 fdir
=`$as_dirname -- "$file" ||
18703 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18704 X"$file" : 'X\(//\)[^/]' \| \
18705 X"$file" : 'X\(//\)$' \| \
18706 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18707 $as_echo X"$file" |
18708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18712 /^X\(\/\/\)[^/].*/{
18725 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
18726 # echo "creating $dirpart/$file"
18727 echo '# dummy' > "$dirpart/$file"
18734 # See if we are running on zsh, and set the options which allow our
18735 # commands through without removal of \ escapes.
18736 if test -n "${ZSH_VERSION+set}" ; then
18737 setopt NO_GLOB_SUBST
18740 cfgfile
="${ofile}T"
18741 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18744 cat <<_LT_EOF >> "$cfgfile"
18747 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18748 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18749 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18750 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18752 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18753 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18754 # Written by Gordon Matzigkeit, 1996
18756 # This file is part of GNU Libtool.
18758 # GNU Libtool is free software; you can redistribute it and/or
18759 # modify it under the terms of the GNU General Public License as
18760 # published by the Free Software Foundation; either version 2 of
18761 # the License, or (at your option) any later version.
18763 # As a special exception to the GNU General Public License,
18764 # if you distribute this file as part of a program or library that
18765 # is built using GNU Libtool, you may include this file under the
18766 # same distribution terms that you use for the rest of that program.
18768 # GNU Libtool is distributed in the hope that it will be useful,
18769 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18770 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18771 # GNU General Public License for more details.
18773 # You should have received a copy of the GNU General Public License
18774 # along with GNU Libtool; see the file COPYING. If not, a copy
18775 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18776 # obtained by writing to the Free Software Foundation, Inc.,
18777 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18780 # The names of the tagged configurations supported by this script.
18781 available_tags="CXX "
18783 # ### BEGIN LIBTOOL CONFIG
18785 # Which release of libtool.m4 was used?
18786 macro_version=$macro_version
18787 macro_revision=$macro_revision
18789 # Whether or not to build shared libraries.
18790 build_libtool_libs=$enable_shared
18792 # Whether or not to build static libraries.
18793 build_old_libs=$enable_static
18795 # What type of objects to build.
18798 # Whether or not to optimize for fast installation.
18799 fast_install=$enable_fast_install
18801 # Shell to use when invoking shell scripts.
18804 # An echo program that protects backslashes.
18808 host_alias=$host_alias
18812 # The build system.
18813 build_alias=$build_alias
18817 # A sed program that does not truncate output.
18820 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18821 Xsed="\$SED -e 1s/^X//"
18823 # A grep program that handles long lines.
18829 # A literal string matcher.
18832 # A BSD- or MS-compatible name lister.
18835 # Whether we need soft or hard links.
18838 # What is the maximum length of a command?
18839 max_cmd_len=$max_cmd_len
18841 # Object file suffix (normally "o").
18844 # Executable file suffix (normally "").
18847 # whether the shell understands "unset".
18850 # turn spaces into newlines.
18853 # turn newlines into spaces.
18856 # An object symbol dumper.
18857 OBJDUMP=$lt_OBJDUMP
18859 # Method to check whether dependent libraries are shared objects.
18860 deplibs_check_method=$lt_deplibs_check_method
18862 # Command to use when deplibs_check_method == "file_magic".
18863 file_magic_cmd=$lt_file_magic_cmd
18867 AR_FLAGS=$lt_AR_FLAGS
18869 # A symbol stripping program.
18872 # Commands used to install an old-style archive.
18874 old_postinstall_cmds=$lt_old_postinstall_cmds
18875 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18877 # Whether to use a lock for old archive extraction.
18878 lock_old_archive_extraction=$lock_old_archive_extraction
18883 # LTCC compiler flags.
18884 LTCFLAGS=$lt_CFLAGS
18886 # Take the output of nm and produce a listing of raw symbols and C names.
18887 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18889 # Transform the output of nm in a proper C declaration.
18890 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18892 # Transform the output of nm in a C name address pair.
18893 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18895 # Transform the output of nm in a C name address pair when lib prefix is needed.
18896 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18898 # The name of the directory that contains temporary libtool files.
18901 # Used to examine libraries when file_magic_cmd begins with "file".
18902 MAGIC_CMD=$MAGIC_CMD
18904 # Must we lock files when doing compilation?
18905 need_locks=$lt_need_locks
18907 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18908 DSYMUTIL=$lt_DSYMUTIL
18910 # Tool to change global to local symbols on Mac OS X.
18913 # Tool to manipulate fat objects and archives on Mac OS X.
18916 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18919 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18920 OTOOL64=$lt_OTOOL64
18922 # Old archive suffix (normally "a").
18925 # Shared library suffix (normally ".so").
18926 shrext_cmds=$lt_shrext_cmds
18928 # The commands to extract the exported symbol list from a shared archive.
18929 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18931 # Variables whose values should be saved in libtool wrapper scripts and
18932 # restored at link time.
18933 variables_saved_for_relink=$lt_variables_saved_for_relink
18935 # Do we need the "lib" prefix for modules?
18936 need_lib_prefix=$need_lib_prefix
18938 # Do we need a version for libraries?
18939 need_version=$need_version
18941 # Library versioning type.
18942 version_type=$version_type
18944 # Shared library runtime path variable.
18945 runpath_var=$runpath_var
18947 # Shared library path variable.
18948 shlibpath_var=$shlibpath_var
18950 # Is shlibpath searched before the hard-coded library search path?
18951 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18953 # Format of library name prefix.
18954 libname_spec=$lt_libname_spec
18956 # List of archive names. First name is the real one, the rest are links.
18957 # The last name is the one that the linker finds with -lNAME
18958 library_names_spec=$lt_library_names_spec
18960 # The coded name of the library, if different from the real name.
18961 soname_spec=$lt_soname_spec
18963 # Permission mode override for installation of shared libraries.
18964 install_override_mode=$lt_install_override_mode
18966 # Command to use after installation of a shared archive.
18967 postinstall_cmds=$lt_postinstall_cmds
18969 # Command to use after uninstallation of a shared archive.
18970 postuninstall_cmds=$lt_postuninstall_cmds
18972 # Commands used to finish a libtool library installation in a directory.
18973 finish_cmds=$lt_finish_cmds
18975 # As "finish_cmds", except a single script fragment to be evaled but
18977 finish_eval=$lt_finish_eval
18979 # Whether we should hardcode library paths into libraries.
18980 hardcode_into_libs=$hardcode_into_libs
18982 # Compile-time system search path for libraries.
18983 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18985 # Run-time system search path for libraries.
18986 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18988 # Whether dlopen is supported.
18989 dlopen_support=$enable_dlopen
18991 # Whether dlopen of programs is supported.
18992 dlopen_self=$enable_dlopen_self
18994 # Whether dlopen of statically linked programs is supported.
18995 dlopen_self_static=$enable_dlopen_self_static
18997 # Commands to strip libraries.
18998 old_striplib=$lt_old_striplib
18999 striplib=$lt_striplib
19002 # The linker used to build libraries.
19005 # How to create reloadable object files.
19006 reload_flag=$lt_reload_flag
19007 reload_cmds=$lt_reload_cmds
19009 # Commands used to build an old-style archive.
19010 old_archive_cmds=$lt_old_archive_cmds
19012 # A language specific compiler.
19015 # Is the compiler the GNU compiler?
19018 # Compiler flag to turn off builtin functions.
19019 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19021 # How to pass a linker flag through the compiler.
19022 wl=$lt_lt_prog_compiler_wl
19024 # Additional compiler flags for building library objects.
19025 pic_flag=$lt_lt_prog_compiler_pic
19027 # Compiler flag to prevent dynamic linking.
19028 link_static_flag=$lt_lt_prog_compiler_static
19030 # Does compiler simultaneously support -c and -o options?
19031 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19033 # Whether or not to add -lc for building shared libraries.
19034 build_libtool_need_lc=$archive_cmds_need_lc
19036 # Whether or not to disallow shared libs when runtime libs are static.
19037 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19039 # Compiler flag to allow reflexive dlopens.
19040 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19042 # Compiler flag to generate shared objects directly from archives.
19043 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19045 # Whether the compiler copes with passing no objects directly.
19046 compiler_needs_object=$lt_compiler_needs_object
19048 # Create an old-style archive from a shared archive.
19049 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19051 # Create a temporary old-style archive to link instead of a shared archive.
19052 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19054 # Commands used to build a shared archive.
19055 archive_cmds=$lt_archive_cmds
19056 archive_expsym_cmds=$lt_archive_expsym_cmds
19058 # Commands used to build a loadable module if different from building
19059 # a shared archive.
19060 module_cmds=$lt_module_cmds
19061 module_expsym_cmds=$lt_module_expsym_cmds
19063 # Whether we are building with GNU ld or not.
19064 with_gnu_ld=$lt_with_gnu_ld
19066 # Flag that allows shared libraries with undefined symbols to be built.
19067 allow_undefined_flag=$lt_allow_undefined_flag
19069 # Flag that enforces no undefined symbols.
19070 no_undefined_flag=$lt_no_undefined_flag
19072 # Flag to hardcode \$libdir into a binary during linking.
19073 # This must work even if \$libdir does not exist
19074 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19076 # If ld is used when linking, flag to hardcode \$libdir into a binary
19077 # during linking. This must work even if \$libdir does not exist.
19078 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19080 # Whether we need a single "-rpath" flag with a separated argument.
19081 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19083 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19084 # DIR into the resulting binary.
19085 hardcode_direct=$hardcode_direct
19087 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19088 # DIR into the resulting binary and the resulting library dependency is
19089 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19090 # library is relocated.
19091 hardcode_direct_absolute=$hardcode_direct_absolute
19093 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19094 # into the resulting binary.
19095 hardcode_minus_L=$hardcode_minus_L
19097 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19098 # into the resulting binary.
19099 hardcode_shlibpath_var=$hardcode_shlibpath_var
19101 # Set to "yes" if building a shared library automatically hardcodes DIR
19102 # into the library and all subsequent libraries and executables linked
19104 hardcode_automatic=$hardcode_automatic
19106 # Set to yes if linker adds runtime paths of dependent libraries
19107 # to runtime path list.
19108 inherit_rpath=$inherit_rpath
19110 # Whether libtool must link a program against all its dependency libraries.
19111 link_all_deplibs=$link_all_deplibs
19113 # Fix the shell variable \$srcfile for the compiler.
19114 fix_srcfile_path=$lt_fix_srcfile_path
19116 # Set to "yes" if exported symbols are required.
19117 always_export_symbols=$always_export_symbols
19119 # The commands to list exported symbols.
19120 export_symbols_cmds=$lt_export_symbols_cmds
19122 # Symbols that should not be listed in the preloaded symbols.
19123 exclude_expsyms=$lt_exclude_expsyms
19125 # Symbols that must always be exported.
19126 include_expsyms=$lt_include_expsyms
19128 # Commands necessary for linking programs (against libraries) with templates.
19129 prelink_cmds=$lt_prelink_cmds
19131 # Specify filename containing input files.
19132 file_list_spec=$lt_file_list_spec
19134 # How to hardcode a shared library path into an executable.
19135 hardcode_action=$hardcode_action
19137 # The directories searched by this compiler when creating a shared library.
19138 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19140 # Dependencies to place before and after the objects being linked to
19141 # create a shared library.
19142 predep_objects=$lt_predep_objects
19143 postdep_objects=$lt_postdep_objects
19144 predeps=$lt_predeps
19145 postdeps=$lt_postdeps
19147 # The library search path used internally by the compiler when linking
19148 # a shared library.
19149 compiler_lib_search_path=$lt_compiler_lib_search_path
19151 # ### END LIBTOOL CONFIG
19157 cat <<\_LT_EOF
>> "$cfgfile"
19158 # AIX sometimes has problems with the GCC collect2 program. For some
19159 # reason, if we set the COLLECT_NAMES environment variable, the problems
19160 # vanish in a puff of smoke.
19161 if test "X${COLLECT_NAMES+set}" != Xset
; then
19163 export COLLECT_NAMES
19170 ltmain
="$ac_aux_dir/ltmain.sh"
19173 # We use sed instead of cat because bash on DJGPP gets confused if
19174 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19175 # text mode, it properly converts lines to CR/LF. This bash problem
19176 # is reportedly fixed, but why not run on old versions too?
19177 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19178 ||
(rm -f "$cfgfile"; exit 1)
19182 cat << \_LT_EOF
>> "$cfgfile"
19184 # func_dirname file append nondir_replacement
19185 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19186 # otherwise set result to NONDIR_REPLACEMENT.
19190 */*) func_dirname_result
="${1%/*}${2}" ;;
19191 * ) func_dirname_result
="${3}" ;;
19195 # func_basename file
19198 func_basename_result
="${1##*/}"
19201 # func_dirname_and_basename file append nondir_replacement
19202 # perform func_basename and func_dirname in a single function
19204 # dirname: Compute the dirname of FILE. If nonempty,
19205 # add APPEND to the result, otherwise set result
19206 # to NONDIR_REPLACEMENT.
19207 # value returned in "$func_dirname_result"
19208 # basename: Compute filename of FILE.
19209 # value retuned in "$func_basename_result"
19210 # Implementation must be kept synchronized with func_dirname
19211 # and func_basename. For efficiency, we do not delegate to
19212 # those functions but instead duplicate the functionality here.
19213 func_dirname_and_basename
()
19216 */*) func_dirname_result
="${1%/*}${2}" ;;
19217 * ) func_dirname_result
="${3}" ;;
19219 func_basename_result
="${1##*/}"
19222 # func_stripname prefix suffix name
19223 # strip PREFIX and SUFFIX off of NAME.
19224 # PREFIX and SUFFIX must not contain globbing or regex special
19225 # characters, hashes, percent signs, but SUFFIX may contain a leading
19226 # dot (in which case that matches only a dot).
19229 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19230 # positional parameters, so assign one to ordinary parameter first.
19231 func_stripname_result
=${3}
19232 func_stripname_result
=${func_stripname_result#"${1}"}
19233 func_stripname_result
=${func_stripname_result%"${2}"}
19239 func_opt_split_opt
=${1%%=*}
19240 func_opt_split_arg
=${1#*=}
19247 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
19248 *) func_lo2o_result
=${1} ;;
19252 # func_xform libobj-or-source
19255 func_xform_result
=${1%.*}.lo
19258 # func_arith arithmetic-term...
19261 func_arith_result
=$
(( $
* ))
19265 # STRING may not start with a hyphen.
19268 func_len_result
=${#1}
19273 *) # Bourne compatible functions.
19274 cat << \_LT_EOF
>> "$cfgfile"
19276 # func_dirname file append nondir_replacement
19277 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19278 # otherwise set result to NONDIR_REPLACEMENT.
19281 # Extract subdirectory from the argument.
19282 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
19283 if test "X$func_dirname_result" = "X${1}"; then
19284 func_dirname_result
="${3}"
19286 func_dirname_result
="$func_dirname_result${2}"
19290 # func_basename file
19293 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
19297 # func_stripname prefix suffix name
19298 # strip PREFIX and SUFFIX off of NAME.
19299 # PREFIX and SUFFIX must not contain globbing or regex special
19300 # characters, hashes, percent signs, but SUFFIX may contain a leading
19301 # dot (in which case that matches only a dot).
19302 # func_strip_suffix prefix name
19306 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19307 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19312 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
19313 my_sed_long_arg
='1s/^-[^=]*=//'
19318 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19319 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19325 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
19328 # func_xform libobj-or-source
19331 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19334 # func_arith arithmetic-term...
19337 func_arith_result
=`expr "$@"`
19341 # STRING may not start with a hyphen.
19344 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19350 case $lt_shell_append in
19352 cat << \_LT_EOF
>> "$cfgfile"
19354 # func_append var value
19355 # Append VALUE to the end of shell variable VAR.
19363 cat << \_LT_EOF
>> "$cfgfile"
19365 # func_append var value
19366 # Append VALUE to the end of shell variable VAR.
19377 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19378 ||
(rm -f "$cfgfile"; exit 1)
19380 mv -f "$cfgfile" "$ofile" ||
19381 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19385 cat <<_LT_EOF >> "$ofile"
19387 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19389 # The linker used to build libraries.
19392 # How to create reloadable object files.
19393 reload_flag=$lt_reload_flag_CXX
19394 reload_cmds=$lt_reload_cmds_CXX
19396 # Commands used to build an old-style archive.
19397 old_archive_cmds=$lt_old_archive_cmds_CXX
19399 # A language specific compiler.
19400 CC=$lt_compiler_CXX
19402 # Is the compiler the GNU compiler?
19405 # Compiler flag to turn off builtin functions.
19406 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19408 # How to pass a linker flag through the compiler.
19409 wl=$lt_lt_prog_compiler_wl_CXX
19411 # Additional compiler flags for building library objects.
19412 pic_flag=$lt_lt_prog_compiler_pic_CXX
19414 # Compiler flag to prevent dynamic linking.
19415 link_static_flag=$lt_lt_prog_compiler_static_CXX
19417 # Does compiler simultaneously support -c and -o options?
19418 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19420 # Whether or not to add -lc for building shared libraries.
19421 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19423 # Whether or not to disallow shared libs when runtime libs are static.
19424 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19426 # Compiler flag to allow reflexive dlopens.
19427 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19429 # Compiler flag to generate shared objects directly from archives.
19430 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19432 # Whether the compiler copes with passing no objects directly.
19433 compiler_needs_object=$lt_compiler_needs_object_CXX
19435 # Create an old-style archive from a shared archive.
19436 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19438 # Create a temporary old-style archive to link instead of a shared archive.
19439 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19441 # Commands used to build a shared archive.
19442 archive_cmds=$lt_archive_cmds_CXX
19443 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19445 # Commands used to build a loadable module if different from building
19446 # a shared archive.
19447 module_cmds=$lt_module_cmds_CXX
19448 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19450 # Whether we are building with GNU ld or not.
19451 with_gnu_ld=$lt_with_gnu_ld_CXX
19453 # Flag that allows shared libraries with undefined symbols to be built.
19454 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19456 # Flag that enforces no undefined symbols.
19457 no_undefined_flag=$lt_no_undefined_flag_CXX
19459 # Flag to hardcode \$libdir into a binary during linking.
19460 # This must work even if \$libdir does not exist
19461 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19463 # If ld is used when linking, flag to hardcode \$libdir into a binary
19464 # during linking. This must work even if \$libdir does not exist.
19465 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19467 # Whether we need a single "-rpath" flag with a separated argument.
19468 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19470 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19471 # DIR into the resulting binary.
19472 hardcode_direct=$hardcode_direct_CXX
19474 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19475 # DIR into the resulting binary and the resulting library dependency is
19476 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19477 # library is relocated.
19478 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19480 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19481 # into the resulting binary.
19482 hardcode_minus_L=$hardcode_minus_L_CXX
19484 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19485 # into the resulting binary.
19486 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19488 # Set to "yes" if building a shared library automatically hardcodes DIR
19489 # into the library and all subsequent libraries and executables linked
19491 hardcode_automatic=$hardcode_automatic_CXX
19493 # Set to yes if linker adds runtime paths of dependent libraries
19494 # to runtime path list.
19495 inherit_rpath=$inherit_rpath_CXX
19497 # Whether libtool must link a program against all its dependency libraries.
19498 link_all_deplibs=$link_all_deplibs_CXX
19500 # Fix the shell variable \$srcfile for the compiler.
19501 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19503 # Set to "yes" if exported symbols are required.
19504 always_export_symbols=$always_export_symbols_CXX
19506 # The commands to list exported symbols.
19507 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19509 # Symbols that should not be listed in the preloaded symbols.
19510 exclude_expsyms=$lt_exclude_expsyms_CXX
19512 # Symbols that must always be exported.
19513 include_expsyms=$lt_include_expsyms_CXX
19515 # Commands necessary for linking programs (against libraries) with templates.
19516 prelink_cmds=$lt_prelink_cmds_CXX
19518 # Specify filename containing input files.
19519 file_list_spec=$lt_file_list_spec_CXX
19521 # How to hardcode a shared library path into an executable.
19522 hardcode_action=$hardcode_action_CXX
19524 # The directories searched by this compiler when creating a shared library.
19525 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19527 # Dependencies to place before and after the objects being linked to
19528 # create a shared library.
19529 predep_objects=$lt_predep_objects_CXX
19530 postdep_objects=$lt_postdep_objects_CXX
19531 predeps=$lt_predeps_CXX
19532 postdeps=$lt_postdeps_CXX
19534 # The library search path used internally by the compiler when linking
19535 # a shared library.
19536 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19538 # ### END LIBTOOL TAG CONFIG: CXX
19542 "include":C
) test -d include || mkdir include
;;
19544 test -d src || mkdir src
19545 test -d src
/$TARGETDIR || mkdir src
/$TARGETDIR
19554 ac_clean_files
=$ac_clean_files_save
19556 test $ac_write_fail = 0 ||
19557 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
19560 # configure is writing to config.log, and then calls config.status.
19561 # config.status does its own redirection, appending to config.log.
19562 # Unfortunately, on DOS this fails, as config.log is still kept open
19563 # by configure, so config.status won't be able to write to it; its
19564 # output is simply discarded. So we exec the FD to /dev/null,
19565 # effectively closing config.log, so it can be properly (re)opened and
19566 # appended to by config.status. When coming back to configure, we
19567 # need to make the FD available again.
19568 if test "$no_create" != yes; then
19570 ac_config_status_args
=
19571 test "$silent" = yes &&
19572 ac_config_status_args
="$ac_config_status_args --quiet"
19574 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19576 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19577 # would make configure fail if this is the last instruction.
19578 $ac_cs_success || as_fn_exit
1
19580 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19582 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}