2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for LTO plugin for ld 0.1.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev
/null
; then :
213 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
218 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir
=.
225 for as_base
in sh bash ksh sh5
; do
226 # Try only shells that exist, to save several forks.
227 as_shell
=$as_dir/$as_base
228 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
230 CONFIG_SHELL
=$as_shell as_have_required
=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
239 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
241 CONFIG_SHELL
=$SHELL as_have_required
=yes
246 if test "x$CONFIG_SHELL" != x
; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
256 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x
$as_have_required = xno
; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x
${ZSH_VERSION+set} = xset
; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL
=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE
= GREP_OPTIONS
=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir
=.
/$as_dir;;
329 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
333 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs
="'$as_qdir' $as_dirs"
337 as_dir
=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
363 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p
()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
406 as_val
=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status
=$1; test $as_status -eq 0 && as_status
=1
420 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit
$as_status
427 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
434 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
446 as_me
=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits
='0123456789'
470 as_cr_alnum
=$as_cr_Letters$as_cr_digits
473 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
474 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x
"$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec
=no
; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C
= ECHO_N
= ECHO_T
=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
521 rm -f conf$$ conf$$.exe conf$$.
file
522 if test -d conf$$.dir
; then
523 rm -f conf$$.dir
/conf$$.
file
526 mkdir conf$$.dir
2>/dev
/null
528 if (echo >conf$$.
file) 2>/dev
/null
; then
529 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
537 elif ln conf$$.
file conf$$
2>/dev
/null
; then
545 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
546 rmdir conf$$.dir
2>/dev
/null
548 if mkdir
-p .
2>/dev
/null
; then
549 as_mkdir_p
='mkdir -p "$as_dir"'
551 test -d .
/-p && rmdir .
/-p
556 as_executable_p
=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL
=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix
=/usr
/local
580 ac_config_libobj_dir
=.
587 # Identity of this package.
588 PACKAGE_NAME
='LTO plugin for ld'
589 PACKAGE_TARNAME
='lto-plugin'
590 PACKAGE_VERSION
='0.1'
591 PACKAGE_STRING
='LTO plugin for ld 0.1'
595 # Factoring default headers for most tests.
596 ac_includes_default
="\
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
608 # ifdef HAVE_STDLIB_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
631 ac_subst_vars
='am__EXEEXT_FALSE
654 real_target_noncanonical
657 ac_lto_plugin_ldflags
658 ac_lto_plugin_warn_cflags
681 MAINTAINER_MODE_FALSE
695 INSTALL_STRIP_PROGRAM
753 program_transform_name
766 enable_option_checking
769 enable_maintainer_mode
771 enable_dependency_tracking
773 with_gcc_major_version_only
781 ac_precious_vars
='build_alias
792 # Initialize some variables set by options.
794 ac_init_version
=false
795 ac_unrecognized_opts
=
797 # The variables have the same names as the options, with
798 # dashes changed to underlines.
806 program_transform_name
=s
,x
,x
,
814 # Installation directory options.
815 # These are left unexpanded so users can "make install exec_prefix=/foo"
816 # and all the variables that are supposed to be based on exec_prefix
817 # by default will actually change.
818 # Use braces instead of parens because sh, perl, etc. also accept them.
819 # (The list follows the same order as the GNU Coding Standards.)
820 bindir
='${exec_prefix}/bin'
821 sbindir
='${exec_prefix}/sbin'
822 libexecdir
='${exec_prefix}/libexec'
823 datarootdir
='${prefix}/share'
824 datadir
='${datarootdir}'
825 sysconfdir
='${prefix}/etc'
826 sharedstatedir
='${prefix}/com'
827 localstatedir
='${prefix}/var'
828 includedir
='${prefix}/include'
829 oldincludedir
='/usr/include'
830 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
831 infodir
='${datarootdir}/info'
836 libdir
='${exec_prefix}/lib'
837 localedir
='${datarootdir}/locale'
838 mandir
='${datarootdir}/man'
844 # If the previous option needs an argument, assign it.
845 if test -n "$ac_prev"; then
846 eval $ac_prev=\
$ac_option
852 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
857 # Accept the important Cygnus configure options, so we can diagnose typos.
859 case $ac_dashdash$ac_option in
863 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
865 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
868 -build |
--build |
--buil |
--bui |
--bu)
869 ac_prev
=build_alias
;;
870 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
871 build_alias
=$ac_optarg ;;
873 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
874 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
875 ac_prev
=cache_file
;;
876 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
877 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
878 cache_file
=$ac_optarg ;;
881 cache_file
=config.cache
;;
883 -datadir |
--datadir |
--datadi |
--datad)
885 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
886 datadir
=$ac_optarg ;;
888 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
889 |
--dataroo |
--dataro |
--datar)
890 ac_prev
=datarootdir
;;
891 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
892 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
893 datarootdir
=$ac_optarg ;;
895 -disable-* |
--disable-*)
896 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
899 as_fn_error $?
"invalid feature name: $ac_useropt"
900 ac_useropt_orig
=$ac_useropt
901 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
906 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907 ac_unrecognized_sep
=', ';;
909 eval enable_
$ac_useropt=no
;;
911 -docdir |
--docdir |
--docdi |
--doc |
--do)
913 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
916 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
918 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
921 -enable-* |
--enable-*)
922 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
925 as_fn_error $?
"invalid feature name: $ac_useropt"
926 ac_useropt_orig
=$ac_useropt
927 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
932 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933 ac_unrecognized_sep
=', ';;
935 eval enable_
$ac_useropt=\
$ac_optarg ;;
937 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
938 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
939 |
--exec |
--exe |
--ex)
940 ac_prev
=exec_prefix
;;
941 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
942 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
943 |
--exec=* |
--exe=* |
--ex=*)
944 exec_prefix
=$ac_optarg ;;
946 -gas |
--gas |
--ga |
--g)
947 # Obsolete; use --with-gas.
950 -help |
--help |
--hel |
--he |
-h)
952 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
953 ac_init_help
=recursive
;;
954 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
955 ac_init_help
=short
;;
957 -host |
--host |
--hos |
--ho)
958 ac_prev
=host_alias
;;
959 -host=* |
--host=* |
--hos=* |
--ho=*)
960 host_alias
=$ac_optarg ;;
962 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
964 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
966 htmldir
=$ac_optarg ;;
968 -includedir |
--includedir |
--includedi |
--included |
--include \
969 |
--includ |
--inclu |
--incl |
--inc)
970 ac_prev
=includedir
;;
971 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
972 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
973 includedir
=$ac_optarg ;;
975 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
977 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
978 infodir
=$ac_optarg ;;
980 -libdir |
--libdir |
--libdi |
--libd)
982 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
985 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
986 |
--libexe |
--libex |
--libe)
987 ac_prev
=libexecdir
;;
988 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
989 |
--libexe=* |
--libex=* |
--libe=*)
990 libexecdir
=$ac_optarg ;;
992 -localedir |
--localedir |
--localedi |
--localed |
--locale)
994 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
995 localedir
=$ac_optarg ;;
997 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
998 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
999 ac_prev
=localstatedir
;;
1000 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1001 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1002 localstatedir
=$ac_optarg ;;
1004 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1006 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1007 mandir
=$ac_optarg ;;
1009 -nfp |
--nfp |
--nf)
1010 # Obsolete; use --without-fp.
1013 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1014 |
--no-cr |
--no-c |
-n)
1017 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1018 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1021 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1022 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1023 |
--oldin |
--oldi |
--old |
--ol |
--o)
1024 ac_prev
=oldincludedir
;;
1025 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1026 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1027 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1028 oldincludedir
=$ac_optarg ;;
1030 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1032 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1033 prefix
=$ac_optarg ;;
1035 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1036 |
--program-pre |
--program-pr |
--program-p)
1037 ac_prev
=program_prefix
;;
1038 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1039 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1040 program_prefix
=$ac_optarg ;;
1042 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1043 |
--program-suf |
--program-su |
--program-s)
1044 ac_prev
=program_suffix
;;
1045 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1046 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1047 program_suffix
=$ac_optarg ;;
1049 -program-transform-name |
--program-transform-name \
1050 |
--program-transform-nam |
--program-transform-na \
1051 |
--program-transform-n |
--program-transform- \
1052 |
--program-transform |
--program-transfor \
1053 |
--program-transfo |
--program-transf \
1054 |
--program-trans |
--program-tran \
1055 |
--progr-tra |
--program-tr |
--program-t)
1056 ac_prev
=program_transform_name
;;
1057 -program-transform-name=* |
--program-transform-name=* \
1058 |
--program-transform-nam=* |
--program-transform-na=* \
1059 |
--program-transform-n=* |
--program-transform-=* \
1060 |
--program-transform=* |
--program-transfor=* \
1061 |
--program-transfo=* |
--program-transf=* \
1062 |
--program-trans=* |
--program-tran=* \
1063 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1064 program_transform_name
=$ac_optarg ;;
1066 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1068 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1069 pdfdir
=$ac_optarg ;;
1071 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1073 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1076 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1077 |
-silent |
--silent |
--silen |
--sile |
--sil)
1080 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1082 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1084 sbindir
=$ac_optarg ;;
1086 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1087 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1088 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1090 ac_prev
=sharedstatedir
;;
1091 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1092 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1093 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1095 sharedstatedir
=$ac_optarg ;;
1097 -site |
--site |
--sit)
1099 -site=* |
--site=* |
--sit=*)
1102 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1104 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1105 srcdir
=$ac_optarg ;;
1107 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1108 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1109 ac_prev
=sysconfdir
;;
1110 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1111 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1112 sysconfdir
=$ac_optarg ;;
1114 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1115 ac_prev
=target_alias
;;
1116 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1117 target_alias
=$ac_optarg ;;
1119 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1122 -version |
--version |
--versio |
--versi |
--vers |
-V)
1123 ac_init_version
=: ;;
1126 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1129 as_fn_error $?
"invalid package name: $ac_useropt"
1130 ac_useropt_orig
=$ac_useropt
1131 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1136 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1137 ac_unrecognized_sep
=', ';;
1139 eval with_
$ac_useropt=\
$ac_optarg ;;
1141 -without-* |
--without-*)
1142 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1145 as_fn_error $?
"invalid package name: $ac_useropt"
1146 ac_useropt_orig
=$ac_useropt
1147 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1152 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1153 ac_unrecognized_sep
=', ';;
1155 eval with_
$ac_useropt=no
;;
1158 # Obsolete; use --with-x.
1161 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1162 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1163 ac_prev
=x_includes
;;
1164 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1165 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1166 x_includes
=$ac_optarg ;;
1168 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1169 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1170 ac_prev
=x_libraries
;;
1171 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1172 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1173 x_libraries
=$ac_optarg ;;
1175 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1176 Try \`$0 --help' for more information"
1180 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
1182 case $ac_envvar in #(
1183 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1184 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1186 eval $ac_envvar=\
$ac_optarg
1187 export $ac_envvar ;;
1190 # FIXME: should be removed in autoconf 3.0.
1191 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1193 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1200 if test -n "$ac_prev"; then
1201 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1202 as_fn_error $?
"missing argument to $ac_option"
1205 if test -n "$ac_unrecognized_opts"; then
1206 case $enable_option_checking in
1208 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1209 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1213 # Check all directory arguments for consistency.
1214 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215 datadir sysconfdir sharedstatedir localstatedir includedir \
1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217 libdir localedir mandir
1219 eval ac_val
=\$
$ac_var
1220 # Remove trailing slashes.
1223 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1224 eval $ac_var=\
$ac_val;;
1226 # Be sure to have absolute directory names.
1228 [\\/$
]* | ?
:[\\/]* ) continue;;
1229 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1231 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1234 # There might be people who depend on the old broken behavior: `$host'
1235 # used to hold the argument of --host etc.
1236 # FIXME: To remove some day.
1239 target
=$target_alias
1241 # FIXME: To remove some day.
1242 if test "x$host_alias" != x
; then
1243 if test "x$build_alias" = x
; then
1244 cross_compiling
=maybe
1245 elif test "x$build_alias" != "x$host_alias"; then
1251 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1253 test "$silent" = yes && exec 6>/dev
/null
1256 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1257 ac_ls_di
=`ls -di .` &&
1258 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1259 as_fn_error $?
"working directory cannot be determined"
1260 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261 as_fn_error $?
"pwd does not report name of working directory"
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266 ac_srcdir_defaulted
=yes
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir
=`$as_dirname -- "$as_myself" ||
1269 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$as_myself" : 'X\(//\)[^/]' \| \
1271 X"$as_myself" : 'X\(//\)$' \| \
1272 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1273 $as_echo X"$as_myself" |
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1296 ac_srcdir_defaulted
=no
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1300 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1302 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1304 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1306 # When building in place, set srcdir=.
1307 if test "$ac_abs_confdir" = "$ac_pwd"; then
1310 # Remove unnecessary trailing slashes from srcdir.
1311 # Double slashes in file names in object file debugging info
1312 # mess up M-x gdb in Emacs.
1314 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316 for ac_var
in $ac_precious_vars; do
1317 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1318 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1319 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1320 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1324 # Report the --help message.
1326 if test "$ac_init_help" = "long"; then
1327 # Omit some internal or obsolete options to make the list less imposing.
1328 # This message is too long to be a string in the A/UX 3.1 sh.
1330 \`configure' configures LTO plugin for ld 0.1 to adapt to many kinds of systems.
1332 Usage: $0 [OPTION]... [VAR=VALUE]...
1334 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335 VAR=VALUE. See below for descriptions of some of the useful variables.
1337 Defaults for the options are specified in brackets.
1340 -h, --help display this help and exit
1341 --help=short display options specific to this package
1342 --help=recursive display the short help of all the included packages
1343 -V, --version display version information and exit
1344 -q, --quiet, --silent do not print \`checking ...' messages
1345 --cache-file=FILE cache test results in FILE [disabled]
1346 -C, --config-cache alias for \`--cache-file=config.cache'
1347 -n, --no-create do not create output files
1348 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1350 Installation directories:
1351 --prefix=PREFIX install architecture-independent files in PREFIX
1352 [$ac_default_prefix]
1353 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1356 By default, \`make install' will install all the files in
1357 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1358 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359 for instance \`--prefix=\$HOME'.
1361 For better control, use the options below.
1363 Fine tuning of the installation directories:
1364 --bindir=DIR user executables [EPREFIX/bin]
1365 --sbindir=DIR system admin executables [EPREFIX/sbin]
1366 --libexecdir=DIR program executables [EPREFIX/libexec]
1367 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1368 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1369 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1370 --libdir=DIR object code libraries [EPREFIX/lib]
1371 --includedir=DIR C header files [PREFIX/include]
1372 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1373 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1374 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1375 --infodir=DIR info documentation [DATAROOTDIR/info]
1376 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1377 --mandir=DIR man documentation [DATAROOTDIR/man]
1378 --docdir=DIR documentation root [DATAROOTDIR/doc/lto-plugin]
1379 --htmldir=DIR html documentation [DOCDIR]
1380 --dvidir=DIR dvi documentation [DOCDIR]
1381 --pdfdir=DIR pdf documentation [DOCDIR]
1382 --psdir=DIR ps documentation [DOCDIR]
1388 --program-prefix=PREFIX prepend PREFIX to installed program names
1389 --program-suffix=SUFFIX append SUFFIX to installed program names
1390 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1393 --build=BUILD configure
for building on BUILD
[guessed
]
1394 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1395 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1399 if test -n "$ac_init_help"; then
1400 case $ac_init_help in
1401 short | recursive
) echo "Configuration of LTO plugin for ld 0.1:";;
1406 --disable-option-checking ignore unrecognized
--enable/--with options
1407 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1408 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1409 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1410 --disable-silent-rules verbose build output
(undo
: "make V=0")
1411 --enable-maintainer-mode
1412 enable make rules and dependencies not useful
(and
1413 sometimes confusing
) to the casual installer
1414 --enable-dependency-tracking
1415 do not reject slow dependency extractors
1416 --disable-dependency-tracking
1417 speeds up one-time build
1418 --disable-largefile omit support
for large files
1419 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1420 --enable-static[=PKGS
] build static libraries
[default
=yes]
1421 --enable-fast-install[=PKGS
]
1422 optimize
for fast installation
[default
=yes]
1423 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1426 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1427 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1428 --with-build-libsubdir=DIR Directory where to
find libraries
for build system
1429 --with-libiberty=PATH specify the directory where to
find libiberty
1431 --with-gcc-major-version-only
1432 use only GCC major number
in filesystem paths
1433 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1435 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1437 Some influential environment variables
:
1438 CC C compiler
command
1439 CFLAGS C compiler flags
1440 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1441 nonstandard directory
<lib dir
>
1442 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1443 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1444 you have headers
in a nonstandard directory
<include dir
>
1447 Use these variables to override the choices made by
`configure' or to help
1448 it to find libraries and programs with nonstandard names/locations.
1450 Report bugs to the package provider.
1455 if test "$ac_init_help" = "recursive"; then
1456 # If there are subdirs, report their specific --help.
1457 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1458 test -d "$ac_dir" ||
1459 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1464 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1467 # A ".." for each directory in $ac_dir_suffix.
1468 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1469 case $ac_top_builddir_sub in
1470 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1474 ac_abs_top_builddir=$ac_pwd
1475 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1476 # for backward compatibility:
1477 ac_top_builddir=$ac_top_build_prefix
1480 .) # We are building in place.
1482 ac_top_srcdir=$ac_top_builddir_sub
1483 ac_abs_top_srcdir=$ac_pwd ;;
1484 [\\/]* | ?:[\\/]* ) # Absolute name.
1485 ac_srcdir=$srcdir$ac_dir_suffix;
1486 ac_top_srcdir=$srcdir
1487 ac_abs_top_srcdir=$srcdir ;;
1489 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1490 ac_top_srcdir=$ac_top_build_prefix$srcdir
1491 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1493 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1495 cd "$ac_dir" || { ac_status=$?; continue; }
1496 # Check for guested configure.
1497 if test -f "$ac_srcdir/configure.gnu"; then
1499 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1500 elif test -f "$ac_srcdir/configure"; then
1502 $SHELL "$ac_srcdir/configure" --help=recursive
1504 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1506 cd "$ac_pwd" || { ac_status=$?; break; }
1510 test -n "$ac_init_help" && exit $ac_status
1511 if $ac_init_version; then
1513 LTO plugin for ld configure 0.1
1514 generated by GNU Autoconf 2.69
1516 Copyright (C) 2012 Free Software Foundation, Inc.
1517 This configure script is free software; the Free Software Foundation
1518 gives unlimited permission to copy, distribute and modify it.
1523 ## ------------------------ ##
1524 ## Autoconf initialization. ##
1525 ## ------------------------ ##
1527 # ac_fn_c_try_compile LINENO
1528 # --------------------------
1529 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1530 ac_fn_c_try_compile ()
1532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533 rm -f conftest.$ac_objext
1534 if { { ac_try="$ac_compile"
1536 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1537 *) ac_try_echo
=$ac_try;;
1539 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1540 $as_echo "$ac_try_echo"; } >&5
1541 (eval "$ac_compile") 2>conftest.err
1543 if test -s conftest.err
; then
1544 grep -v '^ *+' conftest.err
>conftest.er1
1545 cat conftest.er1
>&5
1546 mv -f conftest.er1 conftest.err
1548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1549 test $ac_status = 0; } && {
1550 test -z "$ac_c_werror_flag" ||
1551 test ! -s conftest.err
1552 } && test -s conftest.
$ac_objext; then :
1555 $as_echo "$as_me: failed program was:" >&5
1556 sed 's/^/| /' conftest.
$ac_ext >&5
1560 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1561 as_fn_set_status
$ac_retval
1563 } # ac_fn_c_try_compile
1565 # ac_fn_c_try_cpp LINENO
1566 # ----------------------
1567 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1570 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1571 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1573 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1574 *) ac_try_echo=$ac_try;;
1576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577 $as_echo "$ac_try_echo"; } >&5
1578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1580 if test -s conftest.err; then
1581 grep -v '^ *+' conftest.err >conftest.er1
1582 cat conftest.er1 >&5
1583 mv -f conftest.er1 conftest.err
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; } > conftest.i && {
1587 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1588 test ! -s conftest.err
1592 $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.$ac_ext >&5
1597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598 as_fn_set_status $ac_retval
1602 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1603 # -------------------------------------------------------
1604 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1605 # the include files in INCLUDES and setting the cache variable VAR
1607 ac_fn_c_check_header_mongrel ()
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 if eval \${$3+:} false; then :
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1612 $as_echo_n "checking for $2... " >&6; }
1613 if eval \${$3+:} false; then :
1614 $as_echo_n "(cached) " >&6
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1618 $as_echo "$ac_res" >&6; }
1620 # Is the header compilable?
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1622 $as_echo_n "checking $2 usability... " >&6; }
1623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1624 /* end confdefs.h. */
1628 if ac_fn_c_try_compile "$LINENO"; then :
1629 ac_header_compiler=yes
1631 ac_header_compiler=no
1633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1635 $as_echo "$ac_header_compiler" >&6; }
1637 # Is the header present?
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1639 $as_echo_n "checking $2 presence... " >&6; }
1640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1641 /* end confdefs.h. */
1644 if ac_fn_c_try_cpp "$LINENO"; then :
1645 ac_header_preproc=yes
1647 ac_header_preproc=no
1649 rm -f conftest.err conftest.i conftest.$ac_ext
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1651 $as_echo "$ac_header_preproc" >&6; }
1653 # So? What about this header?
1654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1657 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1659 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1663 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1665 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1667 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1669 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1671 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675 $as_echo_n "checking for $2... " >&6; }
1676 if eval \${$3+:} false; then :
1677 $as_echo_n "(cached) " >&6
1679 eval "$3=\$ac_header_compiler"
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683 $as_echo "$ac_res" >&6; }
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687 } # ac_fn_c_check_header_mongrel
1689 # ac_fn_c_try_run LINENO
1690 # ----------------------
1691 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1692 # that executables *can* be run.
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 if { { ac_try="$ac_link"
1698 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1699 *) ac_try_echo
=$ac_try;;
1701 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_link") 2>&5
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1707 { { case "(($ac_try" in
1708 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_try") 2>&5
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; }; }; then :
1719 $as_echo "$as_me: program exited with status $ac_status" >&5
1720 $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1723 ac_retval=$ac_status
1725 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727 as_fn_set_status $ac_retval
1731 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1732 # -------------------------------------------------------
1733 # Tests whether HEADER exists and can be compiled using the include files in
1734 # INCLUDES, setting the cache variable VAR accordingly.
1735 ac_fn_c_check_header_compile ()
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 $as_echo_n "checking for $2... " >&6; }
1740 if eval \${$3+:} false; then :
1741 $as_echo_n "(cached) " >&6
1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h. */
1748 if ac_fn_c_try_compile "$LINENO"; then :
1753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1757 $as_echo "$ac_res" >&6; }
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760 } # ac_fn_c_check_header_compile
1762 # ac_fn_c_try_link LINENO
1763 # -----------------------
1764 # Try to link conftest.$ac_ext, and return whether this succeeded.
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 rm -f conftest.$ac_objext conftest$ac_exeext
1769 if { { ac_try="$ac_link"
1771 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1772 *) ac_try_echo
=$ac_try;;
1774 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_link") 2>conftest.err
1778 if test -s conftest.err
; then
1779 grep -v '^ *+' conftest.err
>conftest.er1
1780 cat conftest.er1
>&5
1781 mv -f conftest.er1 conftest.err
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } && {
1785 test -z "$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1787 } && test -s conftest
$ac_exeext && {
1788 test "$cross_compiling" = yes ||
1789 test -x conftest
$ac_exeext
1793 $as_echo "$as_me: failed program was:" >&5
1794 sed 's/^/| /' conftest.
$ac_ext >&5
1798 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1799 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1800 # interfere with the next link command; also delete a directory that is
1801 # left behind by Apple's compiler. We do this before executing the actions.
1802 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804 as_fn_set_status
$ac_retval
1806 } # ac_fn_c_try_link
1808 # ac_fn_c_check_func LINENO FUNC VAR
1809 # ----------------------------------
1810 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1811 ac_fn_c_check_func
()
1813 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1815 $as_echo_n "checking for $2... " >&6; }
1816 if eval \
${$3+:} false
; then :
1817 $as_echo_n "(cached) " >&6
1819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h. */
1821 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1823 #define $2 innocuous_$2
1825 /* System header to define __stub macros and hopefully few prototypes,
1826 which can conflict with char $2 (); below.
1827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1828 <limits.h> exists even on freestanding compilers. */
1831 # include <limits.h>
1833 # include <assert.h>
1838 /* Override any GCC internal prototype to avoid an error.
1839 Use char because int might match the return type of a GCC
1840 builtin and then its argument prototype would still apply. */
1845 /* The GNU C library defines this for functions which it implements
1846 to always fail with ENOSYS. Some functions are actually named
1847 something starting with __ and the normal name is an alias. */
1848 #if defined __stub_$2 || defined __stub___$2
1860 if ac_fn_c_try_link
"$LINENO"; then :
1865 rm -f core conftest.err conftest.
$ac_objext \
1866 conftest
$ac_exeext conftest.
$ac_ext
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870 $as_echo "$ac_res" >&6; }
1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873 } # ac_fn_c_check_func
1875 # ac_fn_c_find_intX_t LINENO BITS VAR
1876 # -----------------------------------
1877 # Finds a signed integer type with width BITS, setting cache variable VAR
1879 ac_fn_c_find_intX_t
()
1881 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1883 $as_echo_n "checking for int$2_t... " >&6; }
1884 if eval \
${$3+:} false
; then :
1885 $as_echo_n "(cached) " >&6
1888 # Order is important - never check a type that is potentially smaller
1889 # than half of the expected target width.
1890 for ac_type
in int
$2_t 'int' 'long int' \
1891 'long long int' 'short int' 'signed char'; do
1892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1893 /* end confdefs.h. */
1894 $ac_includes_default
1895 enum { N = $2 / 2 - 1 };
1899 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1901 return test_array [0];
1907 if ac_fn_c_try_compile
"$LINENO"; then :
1908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h. */
1910 $ac_includes_default
1911 enum { N = $2 / 2 - 1 };
1915 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1916 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1918 return test_array [0];
1924 if ac_fn_c_try_compile
"$LINENO"; then :
1931 eval "$3=\$ac_type" ;;
1934 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1936 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1937 if eval test \"x\$
"$3"\" = x
"no"; then :
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946 $as_echo "$ac_res" >&6; }
1947 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1949 } # ac_fn_c_find_intX_t
1951 # ac_fn_c_find_uintX_t LINENO BITS VAR
1952 # ------------------------------------
1953 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1955 ac_fn_c_find_uintX_t
()
1957 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1959 $as_echo_n "checking for uint$2_t... " >&6; }
1960 if eval \
${$3+:} false
; then :
1961 $as_echo_n "(cached) " >&6
1964 # Order is important - never check a type that is potentially smaller
1965 # than half of the expected target width.
1966 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
1967 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h. */
1970 $ac_includes_default
1974 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1976 return test_array [0];
1982 if ac_fn_c_try_compile
"$LINENO"; then :
1987 eval "$3=\$ac_type" ;;
1990 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1991 if eval test \"x\$
"$3"\" = x
"no"; then :
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000 $as_echo "$ac_res" >&6; }
2001 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003 } # ac_fn_c_find_uintX_t
2004 cat >config.log
<<_ACEOF
2005 This file contains any messages produced by compilers while
2006 running configure, to aid debugging if configure makes a mistake.
2008 It was created by LTO plugin for ld $as_me 0.1, which was
2009 generated by GNU Autoconf 2.69. Invocation command line was
2021 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2022 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2023 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2024 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2025 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2027 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2028 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2030 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2031 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2032 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2033 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2034 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2035 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2036 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2040 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2044 test -z "$as_dir" && as_dir
=.
2045 $as_echo "PATH: $as_dir"
2061 # Keep a trace of the command line.
2062 # Strip out --no-create and --no-recursion so they do not pile up.
2063 # Strip out --silent because we don't want to record it for future runs.
2064 # Also quote any args containing shell meta-characters.
2065 # Make two passes to allow for proper duplicate-argument suppression.
2069 ac_must_keep_next
=false
2075 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2076 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2077 |
-silent |
--silent |
--silen |
--sile |
--sil)
2080 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2083 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2085 as_fn_append ac_configure_args1
" '$ac_arg'"
2086 if test $ac_must_keep_next = true
; then
2087 ac_must_keep_next
=false
# Got value, back to normal.
2090 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2091 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2092 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2093 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2094 case "$ac_configure_args0 " in
2095 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2098 -* ) ac_must_keep_next
=true
;;
2101 as_fn_append ac_configure_args
" '$ac_arg'"
2106 { ac_configure_args0
=; unset ac_configure_args0
;}
2107 { ac_configure_args1
=; unset ac_configure_args1
;}
2109 # When interrupted or exit'd, cleanup temporary files, and complete
2110 # config.log. We remove comments because anyway the quotes in there
2111 # would cause problems or look ugly.
2112 # WARNING: Use '\'' to represent an apostrophe within the trap.
2113 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2114 trap 'exit_status=$?
2115 # Save into config.log some information that might help in debugging.
2119 $as_echo "## ---------------- ##
2120 ## Cache variables. ##
2121 ## ---------------- ##"
2123 # The following way of writing the cache mishandles newlines in values,
2125 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2126 eval ac_val=\$$ac_var
2130 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2131 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2134 _ | IFS | as_nl) ;; #(
2135 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2136 *) { eval $ac_var=; unset $ac_var;} ;;
2141 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2142 *${as_nl}ac_space=\ *)
2144 "s/'\''/'\''\\\\'\'''\''/g;
2145 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2148 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2155 $as_echo "## ----------------- ##
2156 ## Output variables. ##
2157 ## ----------------- ##"
2159 for ac_var in $ac_subst_vars
2161 eval ac_val=\$$ac_var
2163 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2165 $as_echo "$ac_var='\''$ac_val'\''"
2169 if test -n "$ac_subst_files"; then
2170 $as_echo "## ------------------- ##
2171 ## File substitutions. ##
2172 ## ------------------- ##"
2174 for ac_var
in $ac_subst_files
2176 eval ac_val
=\$
$ac_var
2178 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2180 $as_echo "$ac_var='\''$ac_val'\''"
2185 if test -s confdefs.h; then
2186 $as_echo "## ----------- ##
2193 test "$ac_signal" != 0 &&
2194 $as_echo "$as_me: caught signal $ac_signal"
2195 $as_echo "$as_me: exit $exit_status"
2197 rm -f core *.core core.conftest.* &&
2198 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2201 for ac_signal
in 1 2 13 15; do
2202 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2206 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2207 rm -f -r conftest
* confdefs.h
2209 $as_echo "/* confdefs.h */" > confdefs.h
2211 # Predefined preprocessor variables.
2213 cat >>confdefs.h
<<_ACEOF
2214 #define PACKAGE_NAME "$PACKAGE_NAME"
2217 cat >>confdefs.h
<<_ACEOF
2218 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2221 cat >>confdefs.h
<<_ACEOF
2222 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2225 cat >>confdefs.h
<<_ACEOF
2226 #define PACKAGE_STRING "$PACKAGE_STRING"
2229 cat >>confdefs.h
<<_ACEOF
2230 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2233 cat >>confdefs.h
<<_ACEOF
2234 #define PACKAGE_URL "$PACKAGE_URL"
2238 # Let the site file select an alternate cache file if it wants to.
2239 # Prefer an explicitly selected file to automatically selected ones.
2242 if test -n "$CONFIG_SITE"; then
2243 # We do not want a PATH search for config.site.
2244 case $CONFIG_SITE in #((
2245 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2246 */*) ac_site_file1
=$CONFIG_SITE;;
2247 *) ac_site_file1
=.
/$CONFIG_SITE;;
2249 elif test "x$prefix" != xNONE
; then
2250 ac_site_file1
=$prefix/share
/config.site
2251 ac_site_file2
=$prefix/etc
/config.site
2253 ac_site_file1
=$ac_default_prefix/share
/config.site
2254 ac_site_file2
=$ac_default_prefix/etc
/config.site
2256 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2258 test "x$ac_site_file" = xNONE
&& continue
2259 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2261 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2262 sed 's/^/| /' "$ac_site_file" >&5
2264 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2266 as_fn_error $?
"failed to load site script $ac_site_file
2267 See \`config.log' for more details" "$LINENO" 5; }
2271 if test -r "$cache_file"; then
2272 # Some versions of bash will fail to source /dev/null (special files
2273 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2274 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2276 $as_echo "$as_me: loading cache $cache_file" >&6;}
2278 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2279 *) .
"./$cache_file";;
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2284 $as_echo "$as_me: creating cache $cache_file" >&6;}
2288 # Check that the precious variables saved in the cache have kept the same
2290 ac_cache_corrupted
=false
2291 for ac_var
in $ac_precious_vars; do
2292 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2293 eval ac_new_set
=\
$ac_env_${ac_var}_set
2294 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2295 eval ac_new_val
=\
$ac_env_${ac_var}_value
2296 case $ac_old_set,$ac_new_set in
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2299 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2300 ac_cache_corrupted
=: ;;
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2303 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2304 ac_cache_corrupted
=: ;;
2307 if test "x$ac_old_val" != "x$ac_new_val"; then
2308 # differences in whitespace do not lead to failure.
2309 ac_old_val_w
=`echo x $ac_old_val`
2310 ac_new_val_w
=`echo x $ac_new_val`
2311 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2313 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2314 ac_cache_corrupted
=:
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2317 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2318 eval $ac_var=\
$ac_old_val
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2321 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2323 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2326 # Pass precious variables to config.status.
2327 if test "$ac_new_set" = set; then
2329 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2330 *) ac_arg
=$ac_var=$ac_new_val ;;
2332 case " $ac_configure_args " in
2333 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2334 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2338 if $ac_cache_corrupted; then
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2342 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2343 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2345 ## -------------------- ##
2346 ## Main body of script. ##
2347 ## -------------------- ##
2350 ac_cpp
='$CPP $CPPFLAGS'
2351 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2352 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2353 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2360 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2361 if test -f "$ac_dir/install-sh"; then
2363 ac_install_sh
="$ac_aux_dir/install-sh -c"
2365 elif test -f "$ac_dir/install.sh"; then
2367 ac_install_sh
="$ac_aux_dir/install.sh -c"
2369 elif test -f "$ac_dir/shtool"; then
2371 ac_install_sh
="$ac_aux_dir/shtool install -c"
2375 if test -z "$ac_aux_dir"; then
2376 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2379 # These three variables are undocumented and unsupported,
2380 # and are intended to be withdrawn in a future Autoconf release.
2381 # They can cause serious problems if a builder's source tree is in a directory
2382 # whose full name contains unusual characters.
2383 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2384 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2385 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2388 # Make sure we can run config.sub.
2389 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2390 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2393 $as_echo_n "checking build system type... " >&6; }
2394 if ${ac_cv_build+:} false
; then :
2395 $as_echo_n "(cached) " >&6
2397 ac_build_alias
=$build_alias
2398 test "x$ac_build_alias" = x
&&
2399 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2400 test "x$ac_build_alias" = x
&&
2401 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2402 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2403 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2407 $as_echo "$ac_cv_build" >&6; }
2408 case $ac_cv_build in
2410 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2413 ac_save_IFS
=$IFS; IFS
='-'
2419 # Remember, the first character of IFS is used to create $*,
2420 # except with old shells:
2423 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2427 $as_echo_n "checking host system type... " >&6; }
2428 if ${ac_cv_host+:} false
; then :
2429 $as_echo_n "(cached) " >&6
2431 if test "x$host_alias" = x
; then
2432 ac_cv_host
=$ac_cv_build
2434 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2435 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2440 $as_echo "$ac_cv_host" >&6; }
2443 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2446 ac_save_IFS
=$IFS; IFS
='-'
2452 # Remember, the first character of IFS is used to create $*,
2453 # except with old shells:
2456 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2460 $as_echo_n "checking target system type... " >&6; }
2461 if ${ac_cv_target+:} false
; then :
2462 $as_echo_n "(cached) " >&6
2464 if test "x$target_alias" = x
; then
2465 ac_cv_target
=$ac_cv_host
2467 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2468 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2473 $as_echo "$ac_cv_target" >&6; }
2474 case $ac_cv_target in
2476 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2478 target
=$ac_cv_target
2479 ac_save_IFS
=$IFS; IFS
='-'
2485 # Remember, the first character of IFS is used to create $*,
2486 # except with old shells:
2489 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2492 # The aliases save the names the user supplied, while $host etc.
2493 # will get canonicalized.
2494 test -n "$target_alias" &&
2495 test "$program_prefix$program_suffix$program_transform_name" = \
2497 program_prefix
=${target_alias}-
2499 case ${build_alias} in
2500 "") build_noncanonical
=${build} ;;
2501 *) build_noncanonical
=${build_alias} ;;
2504 case ${host_alias} in
2505 "") host_noncanonical
=${build_noncanonical} ;;
2506 *) host_noncanonical
=${host_alias} ;;
2509 case ${target_alias} in
2510 "") target_noncanonical
=${host_noncanonical} ;;
2511 *) target_noncanonical
=${target_alias} ;;
2515 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2516 # have matching libraries, they should use host libraries: Makefile.tpl
2517 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2518 # However, they still use the build modules, because the corresponding
2519 # host modules (e.g. bison) are only built for the host when bootstrap
2521 # - build_subdir is where we find build modules, and never changes.
2522 # - build_libsubdir is where we find build libraries, and can be overridden.
2524 # Prefix 'build-' so this never conflicts with target_subdir.
2525 build_subdir
="build-${build_noncanonical}"
2527 # Check whether --with-build-libsubdir was given.
2528 if test "${with_build_libsubdir+set}" = set; then :
2529 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
2531 build_libsubdir
="$build_subdir"
2534 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2535 if ( test $srcdir = .
&& test -d gcc
) \
2536 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
2537 host_subdir
="host-${host_noncanonical}"
2542 target_subdir
=${target_noncanonical}
2544 am__api_version
='1.15'
2546 # Find a good install program. We prefer a C program (faster),
2547 # so one script is as good as another. But avoid the broken or
2548 # incompatible versions:
2549 # SysV /etc/install, /usr/sbin/install
2550 # SunOS /usr/etc/install
2551 # IRIX /sbin/install
2553 # AmigaOS /C/install, which installs bootblocks on floppy discs
2554 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2555 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2556 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2557 # OS/2's system install, which has a completely different semantic
2558 # ./install, which can be erroneously created by make from ./install.sh.
2559 # Reject install programs that cannot install multiple files.
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2561 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2562 if test -z "$INSTALL"; then
2563 if ${ac_cv_path_install+:} false
; then :
2564 $as_echo_n "(cached) " >&6
2566 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2570 test -z "$as_dir" && as_dir
=.
2571 # Account for people who put trailing slashes in PATH elements.
2572 case $as_dir/ in #((
2573 .
/ | .
// |
/[cC
]/* | \
2574 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2575 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2578 # OSF1 and SCO ODT 3.0 have their own names for install.
2579 # Don't use installbsd from OSF since it installs stuff as root
2581 for ac_prog
in ginstall scoinst
install; do
2582 for ac_exec_ext
in '' $ac_executable_extensions; do
2583 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2584 if test $ac_prog = install &&
2585 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2586 # AIX install. It has an incompatible calling convention.
2588 elif test $ac_prog = install &&
2589 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2590 # program-specific install script used by HP pwplus--don't use.
2593 rm -rf conftest.one conftest.two conftest.dir
2594 echo one
> conftest.one
2595 echo two
> conftest.two
2597 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2598 test -s conftest.one
&& test -s conftest.two
&&
2599 test -s conftest.dir
/conftest.one
&&
2600 test -s conftest.dir
/conftest.two
2602 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2615 rm -rf conftest.one conftest.two conftest.dir
2618 if test "${ac_cv_path_install+set}" = set; then
2619 INSTALL
=$ac_cv_path_install
2621 # As a last resort, use the slow shell script. Don't cache a
2622 # value for INSTALL within a source directory, because that will
2623 # break other packages using the cache if that directory is
2624 # removed, or if the value is a relative name.
2625 INSTALL
=$ac_install_sh
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2629 $as_echo "$INSTALL" >&6; }
2631 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2632 # It thinks the first close brace ends the variable substitution.
2633 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2635 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2637 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2640 $as_echo_n "checking whether build environment is sane... " >&6; }
2641 # Reject unsafe characters in $srcdir or the absolute working directory
2642 # name. Accept space and tab only in the latter.
2646 *[\\\"\
#\$\&\'\`$am_lf]*)
2647 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2650 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2651 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2654 # Do 'set' in a subshell so we don't clobber the current shell's
2655 # arguments. Must try -L first in case configure is actually a
2656 # symlink; some systems play weird games with the mod time of symlinks
2657 # (eg FreeBSD returns the mod time of the symlink's containing
2661 for am_try
in 1 2; do
2662 echo "timestamp, slept: $am_has_slept" > conftest.
file
2663 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2664 if test "$*" = "X"; then
2666 set X
`ls -t "$srcdir/configure" conftest.file`
2668 if test "$*" != "X $srcdir/configure conftest.file" \
2669 && test "$*" != "X conftest.file $srcdir/configure"; then
2671 # If neither matched, then we have a broken ls. This can happen
2672 # if, for instance, CONFIG_SHELL is bash and it inherits a
2673 # broken ls alias from the environment. This has actually
2674 # happened. Such a system could not be considered "sane".
2675 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2676 alias in your environment" "$LINENO" 5
2678 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2685 test "$2" = conftest.
file
2691 as_fn_error $?
"newly created file is older than distributed files!
2692 Check your system clock" "$LINENO" 5
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2695 $as_echo "yes" >&6; }
2696 # If we didn't sleep, we still need to ensure time stamps of config.status and
2697 # generated files are strictly newer.
2699 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2706 test "$program_prefix" != NONE
&&
2707 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2708 # Use a double $ so make ignores it.
2709 test "$program_suffix" != NONE
&&
2710 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2711 # Double any \ or $.
2712 # By default was `s,x,x', remove it if useless.
2713 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2714 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2716 # Expand $ac_aux_dir to an absolute path.
2717 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2719 if test x
"${MISSING+set}" != xset
; then
2722 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2724 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2727 # Use eval to expand $SHELL
2728 if eval "$MISSING --is-lightweight"; then
2729 am_missing_run
="$MISSING "
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2733 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2736 if test x
"${install_sh+set}" != xset
; then
2739 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2741 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2745 # Installed binaries are usually stripped using 'strip' when the user
2746 # run "make install-strip". However 'strip' might not be the right
2747 # tool to use in cross-compilation environments, therefore Automake
2748 # will honor the 'STRIP' environment variable to overrule this program.
2749 if test "$cross_compiling" != no
; then
2750 if test -n "$ac_tool_prefix"; then
2751 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2752 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2754 $as_echo_n "checking for $ac_word... " >&6; }
2755 if ${ac_cv_prog_STRIP+:} false
; then :
2756 $as_echo_n "(cached) " >&6
2758 if test -n "$STRIP"; then
2759 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2761 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2765 test -z "$as_dir" && as_dir
=.
2766 for ac_exec_ext
in '' $ac_executable_extensions; do
2767 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2768 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 STRIP
=$ac_cv_prog_STRIP
2779 if test -n "$STRIP"; then
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2781 $as_echo "$STRIP" >&6; }
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784 $as_echo "no" >&6; }
2789 if test -z "$ac_cv_prog_STRIP"; then
2791 # Extract the first word of "strip", so it can be a program name with args.
2792 set dummy strip
; ac_word
=$2
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2794 $as_echo_n "checking for $ac_word... " >&6; }
2795 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
2796 $as_echo_n "(cached) " >&6
2798 if test -n "$ac_ct_STRIP"; then
2799 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2801 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2805 test -z "$as_dir" && as_dir
=.
2806 for ac_exec_ext
in '' $ac_executable_extensions; do
2807 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2808 ac_cv_prog_ac_ct_STRIP
="strip"
2809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2818 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2819 if test -n "$ac_ct_STRIP"; then
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2821 $as_echo "$ac_ct_STRIP" >&6; }
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824 $as_echo "no" >&6; }
2827 if test "x$ac_ct_STRIP" = x
; then
2830 case $cross_compiling:$ac_tool_warned in
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2834 ac_tool_warned
=yes ;;
2839 STRIP
="$ac_cv_prog_STRIP"
2843 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2846 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2847 if test -z "$MKDIR_P"; then
2848 if ${ac_cv_path_mkdir+:} false
; then :
2849 $as_echo_n "(cached) " >&6
2851 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2852 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2855 test -z "$as_dir" && as_dir
=.
2856 for ac_prog
in mkdir gmkdir
; do
2857 for ac_exec_ext
in '' $ac_executable_extensions; do
2858 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
2859 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2860 'mkdir (GNU coreutils) '* | \
2861 'mkdir (coreutils) '* | \
2862 'mkdir (fileutils) '4.1*)
2863 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2873 test -d .
/--version && rmdir .
/--version
2874 if test "${ac_cv_path_mkdir+set}" = set; then
2875 MKDIR_P
="$ac_cv_path_mkdir -p"
2877 # As a last resort, use the slow shell script. Don't cache a
2878 # value for MKDIR_P within a source directory, because that will
2879 # break other packages using the cache if that directory is
2880 # removed, or if the value is a relative name.
2881 MKDIR_P
="$ac_install_sh -d"
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2885 $as_echo "$MKDIR_P" >&6; }
2887 for ac_prog
in gawk mawk nawk
awk
2889 # Extract the first word of "$ac_prog", so it can be a program name with args.
2890 set dummy
$ac_prog; ac_word
=$2
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892 $as_echo_n "checking for $ac_word... " >&6; }
2893 if ${ac_cv_prog_AWK+:} false
; then :
2894 $as_echo_n "(cached) " >&6
2896 if test -n "$AWK"; then
2897 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2899 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2903 test -z "$as_dir" && as_dir
=.
2904 for ac_exec_ext
in '' $ac_executable_extensions; do
2905 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2906 ac_cv_prog_AWK
="$ac_prog"
2907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2917 if test -n "$AWK"; then
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2919 $as_echo "$AWK" >&6; }
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922 $as_echo "no" >&6; }
2926 test -n "$AWK" && break
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2930 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2932 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2933 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
2934 $as_echo_n "(cached) " >&6
2936 cat >conftest.
make <<\_ACEOF
2939 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2941 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2942 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2944 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2946 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2950 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2952 $as_echo "yes" >&6; }
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956 $as_echo "no" >&6; }
2957 SET_MAKE
="MAKE=${MAKE-make}"
2960 rm -rf .tst
2>/dev
/null
2961 mkdir .tst
2>/dev
/null
2962 if test -d .tst
; then
2967 rmdir .tst
2>/dev
/null
2969 # Check whether --enable-silent-rules was given.
2970 if test "${enable_silent_rules+set}" = set; then :
2971 enableval
=$enable_silent_rules;
2974 case $enable_silent_rules in # (((
2975 yes) AM_DEFAULT_VERBOSITY
=0;;
2976 no
) AM_DEFAULT_VERBOSITY
=1;;
2977 *) AM_DEFAULT_VERBOSITY
=1;;
2979 am_make
=${MAKE-make}
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2981 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2982 if ${am_cv_make_support_nested_variables+:} false
; then :
2983 $as_echo_n "(cached) " >&6
2985 if $as_echo 'TRUE=$(BAR$(V))
2991 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
2992 am_cv_make_support_nested_variables
=yes
2994 am_cv_make_support_nested_variables
=no
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2998 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2999 if test $am_cv_make_support_nested_variables = yes; then
3001 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3003 AM_V
=$AM_DEFAULT_VERBOSITY
3004 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3008 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3009 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3010 # is not polluted with repeated "-I."
3011 am__isrc
=' -I$(srcdir)'
3012 # test to see if srcdir already configured
3013 if test -f $srcdir/config.status
; then
3014 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3018 # test whether we have cygpath
3019 if test -z "$CYGPATH_W"; then
3020 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3021 CYGPATH_W
='cygpath -w'
3028 # Define the identity of the package.
3029 PACKAGE
='lto-plugin'
3033 cat >>confdefs.h
<<_ACEOF
3034 #define PACKAGE "$PACKAGE"
3038 cat >>confdefs.h
<<_ACEOF
3039 #define VERSION "$VERSION"
3042 # Some tools Automake needs.
3044 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3047 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3050 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3053 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3056 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3058 # For better backward compatibility. To be removed once Automake 1.9.x
3059 # dies out for good. For more background, see:
3060 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3061 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3062 mkdir_p
='$(MKDIR_P)'
3064 # We need awk for the "check" target (and possibly the TAP driver). The
3065 # system "awk" is bad on some platforms.
3066 # Always define AMTAR for backward compatibility. Yes, it's still used
3067 # in the wild :-( We should find a proper way to deprecate it ...
3071 # We'll loop over all known methods to create a tar archive until one works.
3072 _am_tools
='gnutar pax cpio none'
3074 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3081 # POSIX will say in a future version that running "rm -f" with no argument
3082 # is OK; and we want to be able to make that assumption in our Makefile
3083 # recipes. So use an aggressive probe to check that the usage we want is
3084 # actually supported "in the wild" to an acceptable degree.
3085 # See automake bug#10828.
3086 # To make any issue more visible, cause the running configure to be aborted
3087 # by default if the 'rm' program in use doesn't match our expectations; the
3088 # user can still override this though.
3089 if rm -f && rm -fr && rm -rf; then : OK
; else
3093 Your 'rm' program seems unable to run without file operands specified
3094 on the command line, even when the '-f' option is present. This is contrary
3095 to the behaviour of most rm programs out there, and not conforming with
3096 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3098 Please tell bug-automake@gnu.org about your system, including the value
3099 of your $PATH and any error possibly output before this message. This
3100 can help us improve future automake versions.
3103 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3104 echo 'Configuration will proceed anyway, since you have set the' >&2
3105 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3109 Aborting the configuration process, to ensure you take notice of the issue.
3111 You can download and install GNU coreutils to get an 'rm' implementation
3112 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3114 If you want to complete the configuration process using your problematic
3115 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3116 to "yes", and re-run configure.
3119 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3125 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3126 # Check whether --enable-maintainer-mode was given.
3127 if test "${enable_maintainer_mode+set}" = set; then :
3128 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3130 USE_MAINTAINER_MODE
=no
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3134 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3135 if test $USE_MAINTAINER_MODE = yes; then
3136 MAINTAINER_MODE_TRUE
=
3137 MAINTAINER_MODE_FALSE
='#'
3139 MAINTAINER_MODE_TRUE
='#'
3140 MAINTAINER_MODE_FALSE
=
3143 MAINT
=$MAINTAINER_MODE_TRUE
3147 # Check whether --with-libiberty was given.
3148 if test "${with_libiberty+set}" = set; then :
3149 withval
=$with_libiberty;
3151 with_libiberty
=..
/libiberty
3155 DEPDIR
="${am__leading_dot}deps"
3157 ac_config_commands
="$ac_config_commands depfiles"
3160 am_make
=${MAKE-make}
3161 cat > confinc
<< 'END'
3163 @
echo this is the am__doit target
3166 # If we don't find an include directive, just comment out the code.
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3168 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3172 # First try GNU make style include.
3173 echo "include confinc" > confmf
3174 # Ignore all kinds of additional output from 'make'.
3175 case `$am_make -s -f confmf 2> /dev/null` in #(
3176 *the\ am__doit\ target
*)
3182 # Now try BSD make style include.
3183 if test "$am__include" = "#"; then
3184 echo '.include "confinc"' > confmf
3185 case `$am_make -s -f confmf 2> /dev/null` in #(
3186 *the\ am__doit\ target
*)
3187 am__include
=.include
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3196 $as_echo "$_am_result" >&6; }
3197 rm -f confinc confmf
3199 # Check whether --enable-dependency-tracking was given.
3200 if test "${enable_dependency_tracking+set}" = set; then :
3201 enableval
=$enable_dependency_tracking;
3204 if test "x$enable_dependency_tracking" != xno
; then
3205 am_depcomp
="$ac_aux_dir/depcomp"
3209 if test "x$enable_dependency_tracking" != xno; then
3219 ac_cpp
='$CPP $CPPFLAGS'
3220 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3221 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3222 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3223 if test -n "$ac_tool_prefix"; then
3224 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3225 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3227 $as_echo_n "checking for $ac_word... " >&6; }
3228 if ${ac_cv_prog_CC+:} false
; then :
3229 $as_echo_n "(cached) " >&6
3231 if test -n "$CC"; then
3232 ac_cv_prog_CC
="$CC" # Let the user override the test.
3234 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3238 test -z "$as_dir" && as_dir
=.
3239 for ac_exec_ext
in '' $ac_executable_extensions; do
3240 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3241 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3252 if test -n "$CC"; then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3254 $as_echo "$CC" >&6; }
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 $as_echo "no" >&6; }
3262 if test -z "$ac_cv_prog_CC"; then
3264 # Extract the first word of "gcc", so it can be a program name with args.
3265 set dummy gcc
; ac_word
=$2
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3267 $as_echo_n "checking for $ac_word... " >&6; }
3268 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3269 $as_echo_n "(cached) " >&6
3271 if test -n "$ac_ct_CC"; then
3272 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3274 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3278 test -z "$as_dir" && as_dir
=.
3279 for ac_exec_ext
in '' $ac_executable_extensions; do
3280 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3281 ac_cv_prog_ac_ct_CC
="gcc"
3282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3291 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3292 if test -n "$ac_ct_CC"; then
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3294 $as_echo "$ac_ct_CC" >&6; }
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297 $as_echo "no" >&6; }
3300 if test "x$ac_ct_CC" = x
; then
3303 case $cross_compiling:$ac_tool_warned in
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3307 ac_tool_warned
=yes ;;
3315 if test -z "$CC"; then
3316 if test -n "$ac_tool_prefix"; then
3317 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3318 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3320 $as_echo_n "checking for $ac_word... " >&6; }
3321 if ${ac_cv_prog_CC+:} false
; then :
3322 $as_echo_n "(cached) " >&6
3324 if test -n "$CC"; then
3325 ac_cv_prog_CC
="$CC" # Let the user override the test.
3327 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3331 test -z "$as_dir" && as_dir
=.
3332 for ac_exec_ext
in '' $ac_executable_extensions; do
3333 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3334 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3345 if test -n "$CC"; then
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3347 $as_echo "$CC" >&6; }
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350 $as_echo "no" >&6; }
3356 if test -z "$CC"; then
3357 # Extract the first word of "cc", so it can be a program name with args.
3358 set dummy cc
; ac_word
=$2
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3360 $as_echo_n "checking for $ac_word... " >&6; }
3361 if ${ac_cv_prog_CC+:} false
; then :
3362 $as_echo_n "(cached) " >&6
3364 if test -n "$CC"; then
3365 ac_cv_prog_CC
="$CC" # Let the user override the test.
3368 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3372 test -z "$as_dir" && as_dir
=.
3373 for ac_exec_ext
in '' $ac_executable_extensions; do
3374 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3375 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3376 ac_prog_rejected
=yes
3380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3387 if test $ac_prog_rejected = yes; then
3388 # We found a bogon in the path, so make sure we never use it.
3389 set dummy
$ac_cv_prog_CC
3391 if test $# != 0; then
3392 # We chose a different compiler from the bogus one.
3393 # However, it has the same basename, so the bogon will be chosen
3394 # first if we set CC to just the basename; use the full file name.
3396 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3402 if test -n "$CC"; then
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3404 $as_echo "$CC" >&6; }
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3412 if test -z "$CC"; then
3413 if test -n "$ac_tool_prefix"; then
3414 for ac_prog
in cl.exe
3416 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3417 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3419 $as_echo_n "checking for $ac_word... " >&6; }
3420 if ${ac_cv_prog_CC+:} false
; then :
3421 $as_echo_n "(cached) " >&6
3423 if test -n "$CC"; then
3424 ac_cv_prog_CC
="$CC" # Let the user override the test.
3426 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3430 test -z "$as_dir" && as_dir
=.
3431 for ac_exec_ext
in '' $ac_executable_extensions; do
3432 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3433 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3444 if test -n "$CC"; then
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3446 $as_echo "$CC" >&6; }
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3449 $as_echo "no" >&6; }
3453 test -n "$CC" && break
3456 if test -z "$CC"; then
3458 for ac_prog
in cl.exe
3460 # Extract the first word of "$ac_prog", so it can be a program name with args.
3461 set dummy
$ac_prog; ac_word
=$2
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3463 $as_echo_n "checking for $ac_word... " >&6; }
3464 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3465 $as_echo_n "(cached) " >&6
3467 if test -n "$ac_ct_CC"; then
3468 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3470 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3474 test -z "$as_dir" && as_dir
=.
3475 for ac_exec_ext
in '' $ac_executable_extensions; do
3476 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3477 ac_cv_prog_ac_ct_CC
="$ac_prog"
3478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3487 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3488 if test -n "$ac_ct_CC"; then
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3490 $as_echo "$ac_ct_CC" >&6; }
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3493 $as_echo "no" >&6; }
3497 test -n "$ac_ct_CC" && break
3500 if test "x$ac_ct_CC" = x
; then
3503 case $cross_compiling:$ac_tool_warned in
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3507 ac_tool_warned
=yes ;;
3516 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3518 as_fn_error $?
"no acceptable C compiler found in \$PATH
3519 See \`config.log' for more details" "$LINENO" 5; }
3521 # Provide some information about the compiler.
3522 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3525 for ac_option
in --version -v -V -qversion; do
3526 { { ac_try
="$ac_compiler $ac_option >&5"
3528 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3532 $as_echo "$ac_try_echo"; } >&5
3533 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3535 if test -s conftest.err; then
3537 ... rest of stderr output deleted ...
3538 10q' conftest.err >conftest.er1
3539 cat conftest.er1 >&5
3541 rm -f conftest.er1 conftest.err
3542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3543 test $ac_status = 0; }
3546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547 /* end confdefs.h. */
3557 ac_clean_files_save=$ac_clean_files
3558 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3559 # Try to create an executable without -o first, disregard a.out.
3560 # It will help us diagnose broken compilers, and finding out an intuition
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3563 $as_echo_n "checking whether the C compiler works... " >&6; }
3564 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3566 # The possible output files:
3567 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3570 for ac_file in $ac_files
3573 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3574 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3579 if { { ac_try="$ac_link_default"
3581 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3582 *) ac_try_echo
=$ac_try;;
3584 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3585 $as_echo "$ac_try_echo"; } >&5
3586 (eval "$ac_link_default") 2>&5
3588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3589 test $ac_status = 0; }; then :
3590 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3591 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3592 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3593 # so that the user can short-circuit this test for compilers unknown to
3595 for ac_file
in $ac_files ''
3597 test -f "$ac_file" ||
continue
3599 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3602 # We found the default executable, but exeext='' is most
3606 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3608 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3610 # We set ac_cv_exeext here because the later test for it is not
3611 # safe: cross compilers may not add the suffix if given an `-o'
3612 # argument, so we may need to know it at that point already.
3613 # Even if this section looks crufty: it has the advantage of
3620 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3625 if test -z "$ac_file"; then :
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3627 $as_echo "no" >&6; }
3628 $as_echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.
$ac_ext >&5
3631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3633 as_fn_error
77 "C compiler cannot create executables
3634 See \`config.log' for more details" "$LINENO" 5; }
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3637 $as_echo "yes" >&6; }
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3640 $as_echo_n "checking for C compiler default output file name... " >&6; }
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3642 $as_echo "$ac_file" >&6; }
3643 ac_exeext
=$ac_cv_exeext
3645 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3646 ac_clean_files
=$ac_clean_files_save
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3648 $as_echo_n "checking for suffix of executables... " >&6; }
3649 if { { ac_try
="$ac_link"
3651 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3652 *) ac_try_echo=$ac_try;;
3654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3655 $as_echo "$ac_try_echo"; } >&5
3656 (eval "$ac_link") 2>&5
3658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3659 test $ac_status = 0; }; then :
3660 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3661 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3662 # work properly (i.e., refer to `conftest.exe'), while it won't with
3664 for ac_file
in conftest.exe conftest conftest.
*; do
3665 test -f "$ac_file" ||
continue
3667 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3668 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3674 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3676 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3677 See \`config.log' for more details" "$LINENO" 5; }
3679 rm -f conftest conftest
$ac_cv_exeext
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3681 $as_echo "$ac_cv_exeext" >&6; }
3683 rm -f conftest.
$ac_ext
3684 EXEEXT
=$ac_cv_exeext
3686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3687 /* end confdefs.h. */
3692 FILE *f = fopen ("conftest.out", "w");
3693 return ferror (f) || fclose (f) != 0;
3699 ac_clean_files
="$ac_clean_files conftest.out"
3700 # Check that the compiler produces executables we can run. If not, either
3701 # the compiler is broken, or we cross compile.
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3703 $as_echo_n "checking whether we are cross compiling... " >&6; }
3704 if test "$cross_compiling" != yes; then
3705 { { ac_try
="$ac_link"
3707 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3708 *) ac_try_echo=$ac_try;;
3710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3711 $as_echo "$ac_try_echo"; } >&5
3712 (eval "$ac_link") 2>&5
3714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3715 test $ac_status = 0; }
3716 if { ac_try='./conftest$ac_cv_exeext'
3717 { { case "(($ac_try" in
3718 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3719 *) ac_try_echo
=$ac_try;;
3721 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3722 $as_echo "$ac_try_echo"; } >&5
3723 (eval "$ac_try") 2>&5
3725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3726 test $ac_status = 0; }; }; then
3729 if test "$cross_compiling" = maybe
; then
3732 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3734 as_fn_error $?
"cannot run C compiled programs.
3735 If you meant to cross compile, use \`--host'.
3736 See \`config.log' for more details" "$LINENO" 5; }
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3741 $as_echo "$cross_compiling" >&6; }
3743 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3744 ac_clean_files
=$ac_clean_files_save
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3746 $as_echo_n "checking for suffix of object files... " >&6; }
3747 if ${ac_cv_objext+:} false
; then :
3748 $as_echo_n "(cached) " >&6
3750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3751 /* end confdefs.h. */
3761 rm -f conftest.o conftest.obj
3762 if { { ac_try
="$ac_compile"
3764 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3765 *) ac_try_echo=$ac_try;;
3767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3768 $as_echo "$ac_try_echo"; } >&5
3769 (eval "$ac_compile") 2>&5
3771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3772 test $ac_status = 0; }; then :
3773 for ac_file in conftest.o conftest.obj conftest.*; do
3774 test -f "$ac_file" || continue;
3776 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3777 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3782 $as_echo "$as_me: failed program was:" >&5
3783 sed 's/^/| /' conftest.$ac_ext >&5
3785 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3787 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3788 See \
`config.log' for more details" "$LINENO" 5; }
3790 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3793 $as_echo "$ac_cv_objext" >&6; }
3794 OBJEXT=$ac_cv_objext
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3797 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3798 if ${ac_cv_c_compiler_gnu+:} false; then :
3799 $as_echo_n "(cached) " >&6
3801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3802 /* end confdefs.h. */
3815 if ac_fn_c_try_compile "$LINENO"; then :
3820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3821 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3825 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3826 if test $ac_compiler_gnu = yes; then
3831 ac_test_CFLAGS=${CFLAGS+set}
3832 ac_save_CFLAGS=$CFLAGS
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3834 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3835 if ${ac_cv_prog_cc_g+:} false; then :
3836 $as_echo_n "(cached) " >&6
3838 ac_save_c_werror_flag=$ac_c_werror_flag
3839 ac_c_werror_flag=yes
3842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3843 /* end confdefs.h. */
3853 if ac_fn_c_try_compile "$LINENO"; then :
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h. */
3868 if ac_fn_c_try_compile "$LINENO"; then :
3871 ac_c_werror_flag=$ac_save_c_werror_flag
3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874 /* end confdefs.h. */
3884 if ac_fn_c_try_compile "$LINENO"; then :
3887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3892 ac_c_werror_flag=$ac_save_c_werror_flag
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3895 $as_echo "$ac_cv_prog_cc_g" >&6; }
3896 if test "$ac_test_CFLAGS" = set; then
3897 CFLAGS=$ac_save_CFLAGS
3898 elif test $ac_cv_prog_cc_g = yes; then
3899 if test "$GCC" = yes; then
3905 if test "$GCC" = yes; then
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3912 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3913 if ${ac_cv_prog_cc_c89+:} false; then :
3914 $as_echo_n "(cached) " >&6
3916 ac_cv_prog_cc_c89=no
3918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919 /* end confdefs.h. */
3923 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3924 struct buf { int x; };
3925 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3926 static char *e (p, i)
3932 static char *f (char * (*g) (char **, int), char **p, ...)
3937 s = g (p, va_arg (v,int));
3942 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3943 function prototypes and stuff, but not '\xHH' hex character constants.
3944 These don't provoke an error unfortunately, instead are silently treated
3945 as 'x'. The following induces an error, until -std is added to get
3946 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3947 array size at least. It's necessary to write '\x00'==0 to get something
3948 that's true only with -std. */
3949 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3951 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3952 inside strings and character constants. */
3954 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3956 int test (int i, double x);
3957 struct s1 {int (*f) (int a);};
3958 struct s2 {int (*f) (double a);};
3959 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3965 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3970 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3971 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3973 CC="$ac_save_CC $ac_arg"
3974 if ac_fn_c_try_compile "$LINENO"; then :
3975 ac_cv_prog_cc_c89=$ac_arg
3977 rm -f core conftest.err conftest.$ac_objext
3978 test "x$ac_cv_prog_cc_c89" != "xno" && break
3980 rm -f conftest.$ac_ext
3985 case "x$ac_cv_prog_cc_c89" in
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3988 $as_echo "none needed" >&6; } ;;
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3991 $as_echo "unsupported" >&6; } ;;
3993 CC="$CC $ac_cv_prog_cc_c89"
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3995 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3997 if test "x$ac_cv_prog_cc_c89" != xno; then :
4002 ac_cpp='$CPP $CPPFLAGS'
4003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4008 ac_cpp='$CPP $CPPFLAGS'
4009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4013 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4014 if ${am_cv_prog_cc_c_o+:} false; then :
4015 $as_echo_n "(cached) " >&6
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4028 # Make sure it works both with $CC and with simple cc.
4029 # Following AC_PROG_CC_C_O, we do the test twice because some
4030 # compilers refuse to overwrite an existing .o file with -o,
4031 # though they will create one.
4032 am_cv_prog_cc_c_o=yes
4034 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4035 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); } \
4039 && test -f conftest2.$ac_objext; then
4042 am_cv_prog_cc_c_o=no
4046 rm -f core conftest*
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4050 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4051 if test "$am_cv_prog_cc_c_o" != yes; then
4052 # Losing compiler, so override with the script.
4053 # FIXME: It is wrong to rewrite CC.
4054 # But if we don't then we get into trouble of one sort or another.
4055 # A longer-term fix would be to have automake use am__CC in this case,
4056 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4057 CC="$am_aux_dir/compile $CC"
4060 ac_cpp='$CPP $CPPFLAGS'
4061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4066 depcc="$CC" am_compiler_list=
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4069 $as_echo_n "checking dependency style of $depcc... " >&6; }
4070 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4071 $as_echo_n "(cached) " >&6
4073 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4074 # We make a subdir and do the tests there. Otherwise we can end up
4075 # making bogus files that we don't know about and never remove. For
4076 # instance it was reported that on HP-UX the gcc test will end up
4077 # making a dummy file named 'D' -- because '-MD' means "put the output
4081 # Copy depcomp to subdir because otherwise we won't find it if we're
4082 # using a relative directory.
4083 cp "$am_depcomp" conftest.dir
4085 # We will build objects and dependencies in a subdirectory because
4086 # it helps to detect inapplicable dependency modes. For instance
4087 # both Tru64's cc and ICC support -MD to output dependencies as a
4088 # side effect of compilation, but ICC will put the dependencies in
4089 # the current directory while Tru64 will put them in the object
4093 am_cv_CC_dependencies_compiler_type=none
4094 if test "$am_compiler_list" = ""; then
4095 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4098 case " $depcc " in #(
4099 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4102 for depmode in $am_compiler_list; do
4103 # Setup a source with many dependencies, because some compilers
4104 # like to wrap large dependency lists on column 80 (with \), and
4105 # we should not choose a depcomp mode which is confused by this.
4107 # We need to recreate these files for each test, as the compiler may
4108 # overwrite some of them when testing with obscure command lines.
4109 # This happens at least with the AIX C compiler.
4111 for i in 1 2 3 4 5 6; do
4112 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4113 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4114 # Solaris 10 /bin/sh.
4115 echo '/* dummy */' > sub/conftst$i.h
4117 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4119 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4120 # mode. It turns out that the SunPro C++ compiler does not properly
4121 # handle '-M -o', and we need to detect this. Also, some Intel
4122 # versions had trouble with output in subdirs.
4123 am__obj=sub/conftest.${OBJEXT-o}
4124 am__minus_obj="-o $am__obj"
4127 # This depmode causes a compiler race in universal mode.
4128 test "$am__universal" = false || continue
4131 # After this tag, mechanisms are not by side-effect, so they'll
4132 # only be used when explicitly requested.
4133 if test "x$enable_dependency_tracking" = xyes; then
4139 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4140 # This compiler won't grok '-c -o', but also, the minuso test has
4141 # not run yet. These depmodes are late enough in the game, and
4142 # so weak that their functioning should not be impacted.
4143 am__obj=conftest.${OBJEXT-o}
4148 if depmode=$depmode \
4149 source=sub/conftest.c object=$am__obj \
4150 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4151 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4152 >/dev/null 2>conftest.err &&
4153 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4154 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4155 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4156 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4157 # icc doesn't choke on unknown options, it will just issue warnings
4158 # or remarks (even with -Werror). So we grep stderr for any message
4159 # that says an option was ignored or not supported.
4160 # When given -MP, icc 7.0 and 7.1 complain thusly:
4161 # icc: Command line warning: ignoring option '-M'; no argument required
4162 # The diagnosis changed in icc 8.0:
4163 # icc: Command line remark: option '-MP' not supported
4164 if (grep 'ignoring option' conftest.err ||
4165 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4166 am_cv_CC_dependencies_compiler_type=$depmode
4175 am_cv_CC_dependencies_compiler_type=none
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4180 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4181 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4184 test "x$enable_dependency_tracking" != xno \
4185 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4187 am__fastdepCC_FALSE='#'
4189 am__fastdepCC_TRUE='#'
4190 am__fastdepCC_FALSE=
4196 ac_cpp='$CPP $CPPFLAGS'
4197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4201 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4202 # On Suns, sometimes $CPP names a directory.
4203 if test -n "$CPP" && test -d "$CPP"; then
4206 if test -z "$CPP"; then
4207 if ${ac_cv_prog_CPP+:} false; then :
4208 $as_echo_n "(cached) " >&6
4210 # Double quotes because CPP needs to be expanded
4211 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4214 for ac_c_preproc_warn_flag in '' yes
4216 # Use a header file that comes with gcc, so configuring glibc
4217 # with a fresh cross-compiler works.
4218 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4219 # <limits.h> exists even on freestanding compilers.
4220 # On the NeXT, cc -E runs the code through the compiler's parser,
4221 # not just through cpp. "Syntax error" is here to catch this case.
4222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223 /* end confdefs.h. */
4225 # include <limits.h>
4227 # include <assert.h>
4231 if ac_fn_c_try_cpp "$LINENO"; then :
4234 # Broken: fails on valid input.
4237 rm -f conftest.err conftest.i conftest.$ac_ext
4239 # OK, works on sane cases. Now check whether nonexistent headers
4240 # can be detected and how.
4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242 /* end confdefs.h. */
4243 #include <ac_nonexistent.h>
4245 if ac_fn_c_try_cpp "$LINENO"; then :
4246 # Broken: success on invalid input.
4249 # Passes both tests.
4253 rm -f conftest.err conftest.i conftest.$ac_ext
4256 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4257 rm -f conftest.i conftest.err conftest.
$ac_ext
4258 if $ac_preproc_ok; then :
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4271 $as_echo "$CPP" >&6; }
4273 for ac_c_preproc_warn_flag
in '' yes
4275 # Use a header file that comes with gcc, so configuring glibc
4276 # with a fresh cross-compiler works.
4277 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4278 # <limits.h> exists even on freestanding compilers.
4279 # On the NeXT, cc -E runs the code through the compiler's parser,
4280 # not just through cpp. "Syntax error" is here to catch this case.
4281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h. */
4284 # include <limits.h>
4286 # include <assert.h>
4290 if ac_fn_c_try_cpp
"$LINENO"; then :
4293 # Broken: fails on valid input.
4296 rm -f conftest.err conftest.i conftest.
$ac_ext
4298 # OK, works on sane cases. Now check whether nonexistent headers
4299 # can be detected and how.
4300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4301 /* end confdefs.h. */
4302 #include <ac_nonexistent.h>
4304 if ac_fn_c_try_cpp
"$LINENO"; then :
4305 # Broken: success on invalid input.
4308 # Passes both tests.
4312 rm -f conftest.err conftest.i conftest.
$ac_ext
4315 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4316 rm -f conftest.i conftest.err conftest.
$ac_ext
4317 if $ac_preproc_ok; then :
4320 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4322 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4323 See \`config.log' for more details" "$LINENO" 5; }
4327 ac_cpp
='$CPP $CPPFLAGS'
4328 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4329 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4330 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4334 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4335 if ${ac_cv_path_GREP+:} false
; then :
4336 $as_echo_n "(cached) " >&6
4338 if test -z "$GREP"; then
4339 ac_path_GREP_found
=false
4340 # Loop through the user's path and test for each of PROGNAME-LIST
4341 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4342 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4345 test -z "$as_dir" && as_dir
=.
4346 for ac_prog
in grep ggrep
; do
4347 for ac_exec_ext
in '' $ac_executable_extensions; do
4348 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4349 as_fn_executable_p
"$ac_path_GREP" ||
continue
4350 # Check for GNU ac_path_GREP and select it if it is found.
4351 # Check for GNU $ac_path_GREP
4352 case `"$ac_path_GREP" --version 2>&1` in
4354 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4357 $as_echo_n 0123456789 >"conftest.in"
4360 cat "conftest.in" "conftest.in" >"conftest.tmp"
4361 mv "conftest.tmp" "conftest.in"
4362 cp "conftest.in" "conftest.nl"
4363 $as_echo 'GREP' >> "conftest.nl"
4364 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4365 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4366 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4367 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4368 # Best one so far, save it but keep looking for a better one
4369 ac_cv_path_GREP
="$ac_path_GREP"
4370 ac_path_GREP_max
=$ac_count
4372 # 10*(2^10) chars as input seems more than enough
4373 test $ac_count -gt 10 && break
4375 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4378 $ac_path_GREP_found && break 3
4383 if test -z "$ac_cv_path_GREP"; then
4384 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4387 ac_cv_path_GREP
=$GREP
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4392 $as_echo "$ac_cv_path_GREP" >&6; }
4393 GREP
="$ac_cv_path_GREP"
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4397 $as_echo_n "checking for egrep... " >&6; }
4398 if ${ac_cv_path_EGREP+:} false
; then :
4399 $as_echo_n "(cached) " >&6
4401 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4402 then ac_cv_path_EGREP
="$GREP -E"
4404 if test -z "$EGREP"; then
4405 ac_path_EGREP_found
=false
4406 # Loop through the user's path and test for each of PROGNAME-LIST
4407 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4408 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4411 test -z "$as_dir" && as_dir
=.
4412 for ac_prog
in egrep; do
4413 for ac_exec_ext
in '' $ac_executable_extensions; do
4414 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4415 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4416 # Check for GNU ac_path_EGREP and select it if it is found.
4417 # Check for GNU $ac_path_EGREP
4418 case `"$ac_path_EGREP" --version 2>&1` in
4420 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4423 $as_echo_n 0123456789 >"conftest.in"
4426 cat "conftest.in" "conftest.in" >"conftest.tmp"
4427 mv "conftest.tmp" "conftest.in"
4428 cp "conftest.in" "conftest.nl"
4429 $as_echo 'EGREP' >> "conftest.nl"
4430 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4431 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4432 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4433 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4434 # Best one so far, save it but keep looking for a better one
4435 ac_cv_path_EGREP
="$ac_path_EGREP"
4436 ac_path_EGREP_max
=$ac_count
4438 # 10*(2^10) chars as input seems more than enough
4439 test $ac_count -gt 10 && break
4441 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4444 $ac_path_EGREP_found && break 3
4449 if test -z "$ac_cv_path_EGREP"; then
4450 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4453 ac_cv_path_EGREP
=$EGREP
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4459 $as_echo "$ac_cv_path_EGREP" >&6; }
4460 EGREP
="$ac_cv_path_EGREP"
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4464 $as_echo_n "checking for ANSI C header files... " >&6; }
4465 if ${ac_cv_header_stdc+:} false
; then :
4466 $as_echo_n "(cached) " >&6
4468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h. */
4483 if ac_fn_c_try_compile
"$LINENO"; then :
4484 ac_cv_header_stdc
=yes
4486 ac_cv_header_stdc
=no
4488 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4490 if test $ac_cv_header_stdc = yes; then
4491 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h. */
4497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4498 $EGREP "memchr" >/dev
/null
2>&1; then :
4501 ac_cv_header_stdc
=no
4507 if test $ac_cv_header_stdc = yes; then
4508 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h. */
4514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4515 $EGREP "free" >/dev
/null
2>&1; then :
4518 ac_cv_header_stdc
=no
4524 if test $ac_cv_header_stdc = yes; then
4525 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4526 if test "$cross_compiling" = yes; then :
4529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h. */
4533 #if ((' ' & 0x0FF) == 0x020)
4534 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4535 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4537 # define ISLOWER(c) \
4538 (('a' <= (c) && (c) <= 'i') \
4539 || ('j' <= (c) && (c) <= 'r') \
4540 || ('s' <= (c) && (c) <= 'z'))
4541 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4544 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4549 for (i = 0; i < 256; i++)
4550 if (XOR (islower (i), ISLOWER (i))
4551 || toupper (i) != TOUPPER (i))
4556 if ac_fn_c_try_run
"$LINENO"; then :
4559 ac_cv_header_stdc
=no
4561 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4562 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4568 $as_echo "$ac_cv_header_stdc" >&6; }
4569 if test $ac_cv_header_stdc = yes; then
4571 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4575 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4576 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4577 inttypes.h stdint.h unistd.h
4579 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4580 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4582 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4583 cat >>confdefs.h
<<_ACEOF
4584 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4593 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4594 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4601 if test "$MINIX" = yes; then
4603 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4606 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4609 $as_echo "#define _MINIX 1" >>confdefs.h
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4615 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4616 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4617 $as_echo_n "(cached) " >&6
4619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4622 # define __EXTENSIONS__ 1
4623 $ac_includes_default
4632 if ac_fn_c_try_compile
"$LINENO"; then :
4633 ac_cv_safe_to_define___extensions__
=yes
4635 ac_cv_safe_to_define___extensions__
=no
4637 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4640 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4641 test $ac_cv_safe_to_define___extensions__ = yes &&
4642 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4644 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4646 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4648 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4650 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4654 ac_cpp
='$CPP $CPPFLAGS'
4655 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4656 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4657 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4658 if test -n "$ac_tool_prefix"; then
4659 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4660 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4662 $as_echo_n "checking for $ac_word... " >&6; }
4663 if ${ac_cv_prog_CC+:} false
; then :
4664 $as_echo_n "(cached) " >&6
4666 if test -n "$CC"; then
4667 ac_cv_prog_CC
="$CC" # Let the user override the test.
4669 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4673 test -z "$as_dir" && as_dir
=.
4674 for ac_exec_ext
in '' $ac_executable_extensions; do
4675 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4676 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 if test -n "$CC"; then
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4689 $as_echo "$CC" >&6; }
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4692 $as_echo "no" >&6; }
4697 if test -z "$ac_cv_prog_CC"; then
4699 # Extract the first word of "gcc", so it can be a program name with args.
4700 set dummy gcc
; ac_word
=$2
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4702 $as_echo_n "checking for $ac_word... " >&6; }
4703 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4704 $as_echo_n "(cached) " >&6
4706 if test -n "$ac_ct_CC"; then
4707 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4709 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4713 test -z "$as_dir" && as_dir
=.
4714 for ac_exec_ext
in '' $ac_executable_extensions; do
4715 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4716 ac_cv_prog_ac_ct_CC
="gcc"
4717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4726 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4727 if test -n "$ac_ct_CC"; then
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4729 $as_echo "$ac_ct_CC" >&6; }
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4732 $as_echo "no" >&6; }
4735 if test "x$ac_ct_CC" = x
; then
4738 case $cross_compiling:$ac_tool_warned in
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4742 ac_tool_warned
=yes ;;
4750 if test -z "$CC"; then
4751 if test -n "$ac_tool_prefix"; then
4752 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4753 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4755 $as_echo_n "checking for $ac_word... " >&6; }
4756 if ${ac_cv_prog_CC+:} false
; then :
4757 $as_echo_n "(cached) " >&6
4759 if test -n "$CC"; then
4760 ac_cv_prog_CC
="$CC" # Let the user override the test.
4762 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4766 test -z "$as_dir" && as_dir
=.
4767 for ac_exec_ext
in '' $ac_executable_extensions; do
4768 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4769 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4780 if test -n "$CC"; then
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4782 $as_echo "$CC" >&6; }
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4785 $as_echo "no" >&6; }
4791 if test -z "$CC"; then
4792 # Extract the first word of "cc", so it can be a program name with args.
4793 set dummy cc
; ac_word
=$2
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4795 $as_echo_n "checking for $ac_word... " >&6; }
4796 if ${ac_cv_prog_CC+:} false
; then :
4797 $as_echo_n "(cached) " >&6
4799 if test -n "$CC"; then
4800 ac_cv_prog_CC
="$CC" # Let the user override the test.
4803 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4807 test -z "$as_dir" && as_dir
=.
4808 for ac_exec_ext
in '' $ac_executable_extensions; do
4809 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4810 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4811 ac_prog_rejected
=yes
4815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4822 if test $ac_prog_rejected = yes; then
4823 # We found a bogon in the path, so make sure we never use it.
4824 set dummy
$ac_cv_prog_CC
4826 if test $# != 0; then
4827 # We chose a different compiler from the bogus one.
4828 # However, it has the same basename, so the bogon will be chosen
4829 # first if we set CC to just the basename; use the full file name.
4831 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4837 if test -n "$CC"; then
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4839 $as_echo "$CC" >&6; }
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4842 $as_echo "no" >&6; }
4847 if test -z "$CC"; then
4848 if test -n "$ac_tool_prefix"; then
4849 for ac_prog
in cl.exe
4851 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4852 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854 $as_echo_n "checking for $ac_word... " >&6; }
4855 if ${ac_cv_prog_CC+:} false
; then :
4856 $as_echo_n "(cached) " >&6
4858 if test -n "$CC"; then
4859 ac_cv_prog_CC
="$CC" # Let the user override the test.
4861 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4865 test -z "$as_dir" && as_dir
=.
4866 for ac_exec_ext
in '' $ac_executable_extensions; do
4867 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4868 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 if test -n "$CC"; then
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4881 $as_echo "$CC" >&6; }
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884 $as_echo "no" >&6; }
4888 test -n "$CC" && break
4891 if test -z "$CC"; then
4893 for ac_prog
in cl.exe
4895 # Extract the first word of "$ac_prog", so it can be a program name with args.
4896 set dummy
$ac_prog; ac_word
=$2
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4898 $as_echo_n "checking for $ac_word... " >&6; }
4899 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4900 $as_echo_n "(cached) " >&6
4902 if test -n "$ac_ct_CC"; then
4903 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4905 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4909 test -z "$as_dir" && as_dir
=.
4910 for ac_exec_ext
in '' $ac_executable_extensions; do
4911 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4912 ac_cv_prog_ac_ct_CC
="$ac_prog"
4913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4922 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4923 if test -n "$ac_ct_CC"; then
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4925 $as_echo "$ac_ct_CC" >&6; }
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4928 $as_echo "no" >&6; }
4932 test -n "$ac_ct_CC" && break
4935 if test "x$ac_ct_CC" = x
; then
4938 case $cross_compiling:$ac_tool_warned in
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4942 ac_tool_warned
=yes ;;
4951 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4953 as_fn_error $?
"no acceptable C compiler found in \$PATH
4954 See \`config.log' for more details" "$LINENO" 5; }
4956 # Provide some information about the compiler.
4957 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4960 for ac_option
in --version -v -V -qversion; do
4961 { { ac_try
="$ac_compiler $ac_option >&5"
4963 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4964 *) ac_try_echo=$ac_try;;
4966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4967 $as_echo "$ac_try_echo"; } >&5
4968 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4970 if test -s conftest.err; then
4972 ... rest of stderr output deleted ...
4973 10q' conftest.err >conftest.er1
4974 cat conftest.er1 >&5
4976 rm -f conftest.er1 conftest.err
4977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4978 test $ac_status = 0; }
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4982 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4983 if ${ac_cv_c_compiler_gnu+:} false; then :
4984 $as_echo_n "(cached) " >&6
4986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4987 /* end confdefs.h. */
5000 if ac_fn_c_try_compile "$LINENO"; then :
5005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5006 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5010 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5011 if test $ac_compiler_gnu = yes; then
5016 ac_test_CFLAGS=${CFLAGS+set}
5017 ac_save_CFLAGS=$CFLAGS
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5019 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5020 if ${ac_cv_prog_cc_g+:} false; then :
5021 $as_echo_n "(cached) " >&6
5023 ac_save_c_werror_flag=$ac_c_werror_flag
5024 ac_c_werror_flag=yes
5027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5028 /* end confdefs.h. */
5038 if ac_fn_c_try_compile "$LINENO"; then :
5042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5043 /* end confdefs.h. */
5053 if ac_fn_c_try_compile "$LINENO"; then :
5056 ac_c_werror_flag=$ac_save_c_werror_flag
5058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5059 /* end confdefs.h. */
5069 if ac_fn_c_try_compile "$LINENO"; then :
5072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5077 ac_c_werror_flag=$ac_save_c_werror_flag
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5080 $as_echo "$ac_cv_prog_cc_g" >&6; }
5081 if test "$ac_test_CFLAGS" = set; then
5082 CFLAGS=$ac_save_CFLAGS
5083 elif test $ac_cv_prog_cc_g = yes; then
5084 if test "$GCC" = yes; then
5090 if test "$GCC" = yes; then
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5097 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5098 if ${ac_cv_prog_cc_c89+:} false; then :
5099 $as_echo_n "(cached) " >&6
5101 ac_cv_prog_cc_c89=no
5103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104 /* end confdefs.h. */
5108 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5109 struct buf { int x; };
5110 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5111 static char *e (p, i)
5117 static char *f (char * (*g) (char **, int), char **p, ...)
5122 s = g (p, va_arg (v,int));
5127 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5128 function prototypes and stuff, but not '\xHH' hex character constants.
5129 These don't provoke an error unfortunately, instead are silently treated
5130 as 'x'. The following induces an error, until -std is added to get
5131 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5132 array size at least. It's necessary to write '\x00'==0 to get something
5133 that's true only with -std. */
5134 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5136 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5137 inside strings and character constants. */
5139 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5141 int test (int i, double x);
5142 struct s1 {int (*f) (int a);};
5143 struct s2 {int (*f) (double a);};
5144 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5150 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5155 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5156 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5158 CC="$ac_save_CC $ac_arg"
5159 if ac_fn_c_try_compile "$LINENO"; then :
5160 ac_cv_prog_cc_c89=$ac_arg
5162 rm -f core conftest.err conftest.$ac_objext
5163 test "x$ac_cv_prog_cc_c89" != "xno" && break
5165 rm -f conftest.$ac_ext
5170 case "x$ac_cv_prog_cc_c89" in
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5173 $as_echo "none needed" >&6; } ;;
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5176 $as_echo "unsupported" >&6; } ;;
5178 CC="$CC $ac_cv_prog_cc_c89"
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5180 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5182 if test "x$ac_cv_prog_cc_c89" != xno; then :
5187 ac_cpp='$CPP $CPPFLAGS'
5188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5193 ac_cpp='$CPP $CPPFLAGS'
5194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5198 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5199 if ${am_cv_prog_cc_c_o+:} false; then :
5200 $as_echo_n "(cached) " >&6
5202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203 /* end confdefs.h. */
5213 # Make sure it works both with $CC and with simple cc.
5214 # Following AC_PROG_CC_C_O, we do the test twice because some
5215 # compilers refuse to overwrite an existing .o file with -o,
5216 # though they will create one.
5217 am_cv_prog_cc_c_o=yes
5219 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5220 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); } \
5224 && test -f conftest2.$ac_objext; then
5227 am_cv_prog_cc_c_o=no
5231 rm -f core conftest*
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5235 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5236 if test "$am_cv_prog_cc_c_o" != yes; then
5237 # Losing compiler, so override with the script.
5238 # FIXME: It is wrong to rewrite CC.
5239 # But if we don't then we get into trouble of one sort or another.
5240 # A longer-term fix would be to have automake use am__CC in this case,
5241 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5242 CC="$am_aux_dir/compile $CC"
5245 ac_cpp='$CPP $CPPFLAGS'
5246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5251 depcc="$CC" am_compiler_list=
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5254 $as_echo_n "checking dependency style of $depcc... " >&6; }
5255 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5256 $as_echo_n "(cached) " >&6
5258 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5259 # We make a subdir and do the tests there. Otherwise we can end up
5260 # making bogus files that we don't know about and never remove. For
5261 # instance it was reported that on HP-UX the gcc test will end up
5262 # making a dummy file named 'D' -- because '-MD' means "put the output
5266 # Copy depcomp to subdir because otherwise we won't find it if we're
5267 # using a relative directory.
5268 cp "$am_depcomp" conftest.dir
5270 # We will build objects and dependencies in a subdirectory because
5271 # it helps to detect inapplicable dependency modes. For instance
5272 # both Tru64's cc and ICC support -MD to output dependencies as a
5273 # side effect of compilation, but ICC will put the dependencies in
5274 # the current directory while Tru64 will put them in the object
5278 am_cv_CC_dependencies_compiler_type=none
5279 if test "$am_compiler_list" = ""; then
5280 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
5283 case " $depcc " in #(
5284 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5287 for depmode in $am_compiler_list; do
5288 # Setup a source with many dependencies, because some compilers
5289 # like to wrap large dependency lists on column 80 (with \), and
5290 # we should not choose a depcomp mode which is confused by this.
5292 # We need to recreate these files for each test, as the compiler may
5293 # overwrite some of them when testing with obscure command lines.
5294 # This happens at least with the AIX C compiler.
5296 for i in 1 2 3 4 5 6; do
5297 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5298 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5299 # Solaris 10 /bin/sh.
5300 echo '/* dummy */' > sub/conftst$i.h
5302 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5304 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5305 # mode. It turns out that the SunPro C++ compiler does not properly
5306 # handle '-M -o', and we need to detect this. Also, some Intel
5307 # versions had trouble with output in subdirs.
5308 am__obj=sub/conftest.${OBJEXT-o}
5309 am__minus_obj="-o $am__obj"
5312 # This depmode causes a compiler race in universal mode.
5313 test "$am__universal" = false || continue
5316 # After this tag, mechanisms are not by side-effect, so they'll
5317 # only be used when explicitly requested.
5318 if test "x$enable_dependency_tracking" = xyes; then
5324 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5325 # This compiler won't grok '-c -o', but also, the minuso test has
5326 # not run yet. These depmodes are late enough in the game, and
5327 # so weak that their functioning should not be impacted.
5328 am__obj=conftest.${OBJEXT-o}
5333 if depmode=$depmode \
5334 source=sub/conftest.c object=$am__obj \
5335 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5336 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5337 >/dev/null 2>conftest.err &&
5338 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5339 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5340 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5341 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5342 # icc doesn't choke on unknown options, it will just issue warnings
5343 # or remarks (even with -Werror). So we grep stderr for any message
5344 # that says an option was ignored or not supported.
5345 # When given -MP, icc 7.0 and 7.1 complain thusly:
5346 # icc: Command line warning: ignoring option '-M'; no argument required
5347 # The diagnosis changed in icc 8.0:
5348 # icc: Command line remark: option '-MP' not supported
5349 if (grep 'ignoring option' conftest.err ||
5350 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5351 am_cv_CC_dependencies_compiler_type=$depmode
5360 am_cv_CC_dependencies_compiler_type=none
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5365 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5366 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5369 test "x$enable_dependency_tracking" != xno \
5370 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5372 am__fastdepCC_FALSE='#'
5374 am__fastdepCC_TRUE='#'
5375 am__fastdepCC_FALSE=
5379 # Check whether --enable-largefile was given.
5380 if test "${enable_largefile+set}" = set; then :
5381 enableval=$enable_largefile;
5384 if test "$enable_largefile" != no; then
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5387 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5388 if ${ac_cv_sys_largefile_CC+:} false; then :
5389 $as_echo_n "(cached) " >&6
5391 ac_cv_sys_largefile_CC=no
5392 if test "$GCC" != yes; then
5395 # IRIX 6.2 and later do not support large files by default,
5396 # so use the C compiler's -n32 option if that helps.
5397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5398 /* end confdefs.h. */
5399 #include <sys/types.h>
5400 /* Check that off_t can represent 2**63 - 1 correctly.
5401 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5402 since some C++ compilers masquerading as C compilers
5403 incorrectly reject 9223372036854775807. */
5404 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5405 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5406 && LARGE_OFF_T % 2147483647 == 1)
5416 if ac_fn_c_try_compile "$LINENO"; then :
5419 rm -f core conftest.err conftest.$ac_objext
5421 if ac_fn_c_try_compile "$LINENO"; then :
5422 ac_cv_sys_largefile_CC=' -n32'; break
5424 rm -f core conftest.err conftest.$ac_objext
5428 rm -f conftest.$ac_ext
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5432 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5433 if test "$ac_cv_sys_largefile_CC" != no; then
5434 CC=$CC$ac_cv_sys_largefile_CC
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5438 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5439 if ${ac_cv_sys_file_offset_bits+:} false; then :
5440 $as_echo_n "(cached) " >&6
5443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5444 /* end confdefs.h. */
5445 #include <sys/types.h>
5446 /* Check that off_t can represent 2**63 - 1 correctly.
5447 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5448 since some C++ compilers masquerading as C compilers
5449 incorrectly reject 9223372036854775807. */
5450 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5451 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5452 && LARGE_OFF_T % 2147483647 == 1)
5462 if ac_fn_c_try_compile "$LINENO"; then :
5463 ac_cv_sys_file_offset_bits=no; break
5465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5467 /* end confdefs.h. */
5468 #define _FILE_OFFSET_BITS 64
5469 #include <sys/types.h>
5470 /* Check that off_t can represent 2**63 - 1 correctly.
5471 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5472 since some C++ compilers masquerading as C compilers
5473 incorrectly reject 9223372036854775807. */
5474 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5475 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5476 && LARGE_OFF_T % 2147483647 == 1)
5486 if ac_fn_c_try_compile "$LINENO"; then :
5487 ac_cv_sys_file_offset_bits=64; break
5489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490 ac_cv_sys_file_offset_bits=unknown
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5495 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5496 case $ac_cv_sys_file_offset_bits in #(
5499 cat >>confdefs.h <<_ACEOF
5500 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5505 if test $ac_cv_sys_file_offset_bits = unknown; then
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5507 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5508 if ${ac_cv_sys_large_files+:} false; then :
5509 $as_echo_n "(cached) " >&6
5512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5513 /* end confdefs.h. */
5514 #include <sys/types.h>
5515 /* Check that off_t can represent 2**63 - 1 correctly.
5516 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5517 since some C++ compilers masquerading as C compilers
5518 incorrectly reject 9223372036854775807. */
5519 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5520 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5521 && LARGE_OFF_T % 2147483647 == 1)
5531 if ac_fn_c_try_compile "$LINENO"; then :
5532 ac_cv_sys_large_files=no; break
5534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5536 /* end confdefs.h. */
5537 #define _LARGE_FILES 1
5538 #include <sys/types.h>
5539 /* Check that off_t can represent 2**63 - 1 correctly.
5540 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5541 since some C++ compilers masquerading as C compilers
5542 incorrectly reject 9223372036854775807. */
5543 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5544 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5545 && LARGE_OFF_T % 2147483647 == 1)
5555 if ac_fn_c_try_compile "$LINENO"; then :
5556 ac_cv_sys_large_files=1; break
5558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5559 ac_cv_sys_large_files=unknown
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5564 $as_echo "$ac_cv_sys_large_files" >&6; }
5565 case $ac_cv_sys_large_files in #(
5568 cat >>confdefs.h <<_ACEOF
5569 #define _LARGE_FILES $ac_cv_sys_large_files
5580 ac_cpp='$CPP $CPPFLAGS'
5581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5585 ac_lto_plugin_warn_cflags=
5586 save_CFLAGS="$CFLAGS"
5587 for real_option in -Wall; do
5588 # Do the check with the no- prefix removed since gcc silently
5589 # accepts any -Wno-* option on purpose
5590 case $real_option in
5591 -Wno-*) option=-W`expr x
$real_option : 'x-Wno-\(.*\)'` ;;
5592 *) option=$real_option ;;
5594 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" |
$as_tr_sh`
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5597 $as_echo_n "checking whether $CC supports $option... " >&6; }
5598 if eval \${$as_acx_Woption+:} false; then :
5599 $as_echo_n "(cached) " >&6
5602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5603 /* end confdefs.h. */
5613 if ac_fn_c_try_compile "$LINENO"; then :
5614 eval "$as_acx_Woption=yes"
5616 eval "$as_acx_Woption=no"
5618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5621 eval ac_res=\$$as_acx_Woption
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5623 $as_echo "$ac_res" >&6; }
5624 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5625 ac_lto_plugin_warn_cflags="$ac_lto_plugin_warn_cflags${ac_lto_plugin_warn_cflags:+ }$real_option"
5628 CFLAGS="$save_CFLAGS"
5630 ac_cpp='$CPP $CPPFLAGS'
5631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5637 # Check whether -static-libgcc is supported.
5638 saved_LDFLAGS="$LDFLAGS"
5639 LDFLAGS="$LDFLAGS -static-libgcc"
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -static-libgcc" >&5
5641 $as_echo_n "checking for -static-libgcc... " >&6; }
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h. */
5647 if ac_fn_c_try_link "$LINENO"; then :
5648 have_static_libgcc=yes
5650 have_static_libgcc=no
5652 rm -f core conftest.err conftest.$ac_objext \
5653 conftest$ac_exeext conftest.$ac_ext
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_static_libgcc" >&5
5655 $as_echo "$have_static_libgcc" >&6; };
5656 LDFLAGS="$saved_LDFLAGS"
5657 # Need -Wc to get it through libtool.
5658 if test "x$have_static_libgcc" = xyes; then
5659 ac_lto_plugin_ldflags="-Wc,-static-libgcc"
5663 if test x"$host_subdir" = x.; then
5664 gcc_build_dir=../gcc
5666 gcc_build_dir=../../$host_subdir/gcc
5670 # Used for constructing correct paths for offload compilers.
5672 real_target_noncanonical=${target_noncanonical}
5673 if test x"$enable_as_accelerator_for" != x; then
5674 accel_dir_suffix=/accel/${target_noncanonical}
5675 real_target_noncanonical=${enable_as_accelerator_for}
5680 # Determine what GCC version number to use in filesystem paths.
5682 get_gcc_base_ver="cat"
5684 # Check whether --with-gcc-major-version-only was given.
5685 if test "${with_gcc_major_version_only+set}" = set; then :
5686 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
5687 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&5
5698 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&2;} ;;
5703 macro_version='2.2.7a'
5704 macro_revision='1.3134'
5718 ltmain="$ac_aux_dir/ltmain.sh"
5720 # Backslashify metacharacters that are still active within
5721 # double-quoted strings.
5722 sed_quote_subst='s/\(["`$
\\]\
)/\\\
1/g
'
5724 # Same as above, but do not quote variable references.
5725 double_quote_subst='s
/\
(["`\\]\)/\\\1/g'
5727 # Sed substitution to delay expansion of an escaped shell variable in a
5728 # double_quote_subst'ed string.
5729 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5731 # Sed substitution to delay expansion of an escaped single quote.
5732 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5734 # Sed substitution to avoid accidental globbing in evaled expressions
5735 no_glob_subst='s/\*/\\\*/g'
5737 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5738 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5739 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print
strings" >&5
5742 $as_echo_n "checking how to print
strings...
" >&6; }
5743 # Test print first, because it will be a builtin if present.
5744 if test "X
`print -r -- -n 2>/dev/null`" = X-n && \
5745 test "X
`print -r -- $ECHO 2>/dev/null`" = "X
$ECHO"; then
5747 elif test "X
`printf %s $ECHO 2>/dev/null`" = "X
$ECHO"; then
5750 # Use this function as a fallback that always works.
5751 func_fallback_echo ()
5753 eval 'cat <<_LTECHO_EOF
5757 ECHO='func_fallback_echo'
5760 # func_echo_all arg...
5761 # Invoke $ECHO with all args, space-separated.
5768 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: printf" >&5
5769 $as_echo "printf" >&6; } ;;
5770 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: print
-r" >&5
5771 $as_echo "print
-r" >&6; } ;;
5772 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: cat" >&5
5773 $as_echo "cat" >&6; } ;;
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a
sed that does not truncate output
" >&5
5790 $as_echo_n "checking
for a
sed that does not truncate output...
" >&6; }
5791 if ${ac_cv_path_SED+:} false; then :
5792 $as_echo_n "(cached
) " >&6
5794 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5795 for ac_i in 1 2 3 4 5 6 7; do
5796 ac_script="$ac_script$as_nl$ac_script"
5798 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5799 { ac_script=; unset ac_script;}
5800 if test -z "$SED"; then
5801 ac_path_SED_found=false
5802 # Loop through the user's path and test for each of PROGNAME-LIST
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807 test -z "$as_dir" && as_dir=.
5808 for ac_prog in sed gsed; do
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5811 as_fn_executable_p "$ac_path_SED" || continue
5812 # Check for GNU ac_path_SED and select it if it is found.
5813 # Check for GNU $ac_path_SED
5814 case `"$ac_path_SED" --version 2>&1` in
5816 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5819 $as_echo_n 0123456789 >"conftest.
in"
5822 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5823 mv "conftest.tmp
" "conftest.
in"
5824 cp "conftest.
in" "conftest.
nl"
5825 $as_echo '' >> "conftest.
nl"
5826 "$ac_path_SED" -f conftest.sed < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5827 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5828 as_fn_arith $ac_count + 1 && ac_count=$as_val
5829 if test $ac_count -gt ${ac_path_SED_max-0}; then
5830 # Best one so far, save it but keep looking for a better one
5831 ac_cv_path_SED="$ac_path_SED"
5832 ac_path_SED_max=$ac_count
5834 # 10*(2^10) chars as input seems more than enough
5835 test $ac_count -gt 10 && break
5837 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5840 $ac_path_SED_found && break 3
5845 if test -z "$ac_cv_path_SED"; then
5846 as_fn_error $? "no acceptable
sed could be found
in \
$PATH" "$LINENO" 5
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_SED" >&5
5854 $as_echo "$ac_cv_path_SED" >&6; }
5855 SED="$ac_cv_path_SED"
5858 test -z "$SED" && SED=sed
5859 Xsed="$SED -e 1s
/^X
//"
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for fgrep
" >&5
5872 $as_echo_n "checking
for fgrep...
" >&6; }
5873 if ${ac_cv_path_FGREP+:} false; then :
5874 $as_echo_n "(cached
) " >&6
5876 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5877 then ac_cv_path_FGREP="$GREP -F"
5879 if test -z "$FGREP"; then
5880 ac_path_FGREP_found=false
5881 # Loop through the user's path and test for each of PROGNAME-LIST
5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5886 test -z "$as_dir" && as_dir=.
5887 for ac_prog in fgrep; do
5888 for ac_exec_ext in '' $ac_executable_extensions; do
5889 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5890 as_fn_executable_p "$ac_path_FGREP" || continue
5891 # Check for GNU ac_path_FGREP and select it if it is found.
5892 # Check for GNU $ac_path_FGREP
5893 case `"$ac_path_FGREP" --version 2>&1` in
5895 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5898 $as_echo_n 0123456789 >"conftest.
in"
5901 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5902 mv "conftest.tmp
" "conftest.
in"
5903 cp "conftest.
in" "conftest.
nl"
5904 $as_echo 'FGREP' >> "conftest.
nl"
5905 "$ac_path_FGREP" FGREP < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5906 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5907 as_fn_arith $ac_count + 1 && ac_count=$as_val
5908 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5909 # Best one so far, save it but keep looking for a better one
5910 ac_cv_path_FGREP="$ac_path_FGREP"
5911 ac_path_FGREP_max=$ac_count
5913 # 10*(2^10) chars as input seems more than enough
5914 test $ac_count -gt 10 && break
5916 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5919 $ac_path_FGREP_found && break 3
5924 if test -z "$ac_cv_path_FGREP"; then
5925 as_fn_error $? "no acceptable fgrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
5928 ac_cv_path_FGREP=$FGREP
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_FGREP" >&5
5934 $as_echo "$ac_cv_path_FGREP" >&6; }
5935 FGREP="$ac_cv_path_FGREP"
5938 test -z "$GREP" && GREP=grep
5958 # Check whether --with-gnu-ld was given.
5959 if test "${with_gnu_ld+set}" = set; then :
5960 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5966 if test "$GCC" = yes; then
5967 # Check if gcc -print-prog-name=ld gives a path.
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld used by
$CC" >&5
5969 $as_echo_n "checking
for ld used by
$CC...
" >&6; }
5972 # gcc leaves a trailing carriage return which upsets mingw
5973 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5975 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5978 # Accept absolute paths.
5980 re_direlt='/[^/][^/]*/\.\./'
5981 # Canonicalize the pathname of ld
5982 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5983 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5984 ac_prog=`$ECHO $ac_prog| $SED "s
%$re_direlt%/%"`
5986 test -z "$LD" && LD="$ac_prog"
5989 # If it fails, then pretend we aren't using GCC.
5993 # If it is relative, then search for the first ld in PATH.
5997 elif test "$with_gnu_ld" = yes; then
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for GNU ld
" >&5
5999 $as_echo_n "checking
for GNU ld...
" >&6; }
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for non-GNU ld
" >&5
6002 $as_echo_n "checking
for non-GNU ld...
" >&6; }
6004 if ${lt_cv_path_LD+:} false; then :
6005 $as_echo_n "(cached
) " >&6
6007 if test -z "$LD"; then
6008 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6009 for ac_dir in $PATH; do
6011 test -z "$ac_dir" && ac_dir=.
6012 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6013 lt_cv_path_LD="$ac_dir/$ac_prog"
6014 # Check to see if the program is GNU ld. I'd rather use --version,
6015 # but apparently some variants of GNU ld only accept -v.
6016 # Break only if it was the GNU/non-GNU ld that we prefer.
6017 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6018 *GNU* | *'with BFD'*)
6019 test "$with_gnu_ld" != no && break
6022 test "$with_gnu_ld" != yes && break
6029 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6034 if test -n "$LD"; then
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
6036 $as_echo "$LD" >&6; }
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6039 $as_echo "no
" >&6; }
6041 test -z "$LD" && as_fn_error $? "no acceptable ld found
in \
$PATH" "$LINENO" 5
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if the linker
($LD) is GNU ld
" >&5
6043 $as_echo_n "checking
if the linker
($LD) is GNU ld...
" >&6; }
6044 if ${lt_cv_prog_gnu_ld+:} false; then :
6045 $as_echo_n "(cached
) " >&6
6047 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6048 case `$LD -v 2>&1 </dev/null` in
6049 *GNU* | *'with BFD'*)
6050 lt_cv_prog_gnu_ld=yes
6053 lt_cv_prog_gnu_ld=no
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_gnu_ld" >&5
6058 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6059 with_gnu_ld=$lt_cv_prog_gnu_ld
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for BSD- or MS-compatible name lister
(nm
)" >&5
6070 $as_echo_n "checking
for BSD- or MS-compatible name lister
(nm
)...
" >&6; }
6071 if ${lt_cv_path_NM+:} false; then :
6072 $as_echo_n "(cached
) " >&6
6074 if test -n "$NM"; then
6075 # Let the user override the test.
6078 lt_nm_to_check="${ac_tool_prefix}nm
"
6079 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6080 lt_nm_to_check="$lt_nm_to_check nm
"
6082 for lt_tmp_nm in $lt_nm_to_check; do
6083 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6084 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6086 test -z "$ac_dir" && ac_dir=.
6087 tmp_nm="$ac_dir/$lt_tmp_nm"
6088 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6089 # Check to see if the nm accepts a BSD-compat flag.
6090 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6091 # nm: unknown option "B
" ignored
6092 # Tru64's nm complains that /dev/null is an invalid object file
6093 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6094 */dev/null* | *'Invalid file or object type'*)
6095 lt_cv_path_NM="$tmp_nm -B"
6099 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6101 lt_cv_path_NM="$tmp_nm -p"
6105 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6106 continue # so that we can try to find one that supports BSD flags
6115 : ${lt_cv_path_NM=no}
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_NM" >&5
6119 $as_echo "$lt_cv_path_NM" >&6; }
6120 if test "$lt_cv_path_NM" != "no
"; then
6123 # Didn't find any BSD compatible name lister, look for dumpbin.
6124 if test -n "$DUMPBIN"; then :
6125 # Let the user override the test.
6127 if test -n "$ac_tool_prefix"; then
6128 for ac_prog in dumpbin "link
-dump"
6130 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6131 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6133 $as_echo_n "checking
for $ac_word...
" >&6; }
6134 if ${ac_cv_prog_DUMPBIN+:} false; then :
6135 $as_echo_n "(cached
) " >&6
6137 if test -n "$DUMPBIN"; then
6138 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144 test -z "$as_dir" && as_dir=.
6145 for ac_exec_ext in '' $ac_executable_extensions; do
6146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6147 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6148 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6157 DUMPBIN=$ac_cv_prog_DUMPBIN
6158 if test -n "$DUMPBIN"; then
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DUMPBIN" >&5
6160 $as_echo "$DUMPBIN" >&6; }
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6163 $as_echo "no
" >&6; }
6167 test -n "$DUMPBIN" && break
6170 if test -z "$DUMPBIN"; then
6171 ac_ct_DUMPBIN=$DUMPBIN
6172 for ac_prog in dumpbin "link
-dump"
6174 # Extract the first word of "$ac_prog", so it can be a program name with args.
6175 set dummy $ac_prog; ac_word=$2
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6177 $as_echo_n "checking
for $ac_word...
" >&6; }
6178 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6179 $as_echo_n "(cached
) " >&6
6181 if test -n "$ac_ct_DUMPBIN"; then
6182 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188 test -z "$as_dir" && as_dir=.
6189 for ac_exec_ext in '' $ac_executable_extensions; do
6190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6191 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6192 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6201 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6202 if test -n "$ac_ct_DUMPBIN"; then
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DUMPBIN" >&5
6204 $as_echo "$ac_ct_DUMPBIN" >&6; }
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6207 $as_echo "no
" >&6; }
6211 test -n "$ac_ct_DUMPBIN" && break
6214 if test "x
$ac_ct_DUMPBIN" = x; then
6217 case $cross_compiling:$ac_tool_warned in
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6220 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6221 ac_tool_warned=yes ;;
6223 DUMPBIN=$ac_ct_DUMPBIN
6227 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6229 DUMPBIN="$DUMPBIN -symbols"
6237 if test "$DUMPBIN" != ":"; then
6241 test -z "$NM" && NM=nm
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister
($NM) interface
" >&5
6249 $as_echo_n "checking the name lister
($NM) interface...
" >&6; }
6250 if ${lt_cv_nm_interface+:} false; then :
6251 $as_echo_n "(cached
) " >&6
6253 lt_cv_nm_interface="BSD nm
"
6254 echo "int some_variable
= 0;" > conftest.$ac_ext
6255 (eval echo "\"\
$as_me:$LINENO: $ac_compile\"" >&5)
6256 (eval "$ac_compile" 2>conftest.err)
6257 cat conftest.err >&5
6258 (eval echo "\"\
$as_me:$LINENO: $NM \\\"conftest.
$ac_objext\\\"\"" >&5)
6259 (eval "$NM \"conftest.
$ac_objext\"" 2>conftest.err > conftest.out)
6260 cat conftest.err >&5
6261 (eval echo "\"\
$as_me:$LINENO: output
\"" >&5)
6262 cat conftest.out >&5
6263 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6264 lt_cv_nm_interface="MS dumpbin
"
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_nm_interface" >&5
6269 $as_echo "$lt_cv_nm_interface" >&6; }
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
ln -s works
" >&5
6272 $as_echo_n "checking whether
ln -s works...
" >&6; }
6274 if test "$LN_S" = "ln -s"; then
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
6276 $as_echo "yes" >&6; }
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
, using
$LN_S" >&5
6279 $as_echo "no
, using
$LN_S" >&6; }
6282 # find the maximum length of command line arguments
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of
command line arguments
" >&5
6284 $as_echo_n "checking the maximum length of
command line arguments...
" >&6; }
6285 if ${lt_cv_sys_max_cmd_len+:} false; then :
6286 $as_echo_n "(cached
) " >&6
6293 # On DJGPP, this test can blow up pretty badly due to problems in libc
6294 # (any single argument exceeding 2000 bytes causes a buffer overrun
6295 # during glob expansion). Even if it were fixed, the result of this
6296 # check would be larger than it should be.
6297 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6301 # Under GNU Hurd, this test is not required because there is
6302 # no limit to the length of command line arguments.
6303 # Libtool will interpret -1 as no limit whatsoever
6304 lt_cv_sys_max_cmd_len=-1;
6307 cygwin* | mingw* | cegcc*)
6308 # On Win9x/ME, this test blows up -- it succeeds, but takes
6309 # about 5 minutes as the teststring grows exponentially.
6310 # Worse, since 9x/ME are not pre-emptively multitasking,
6311 # you end up with a "frozen
" computer, even though with patience
6312 # the test eventually succeeds (with a max line length of 256k).
6313 # Instead, let's just punt: use the minimum linelength reported by
6314 # all of the supported platforms: 8192 (on NT/2K/XP).
6315 lt_cv_sys_max_cmd_len=8192;
6319 # On MiNT this can take a long time and run out of memory.
6320 lt_cv_sys_max_cmd_len=8192;
6324 # On AmigaOS with pdksh, this test takes hours, literally.
6325 # So we just punt and use a minimum line length of 8192.
6326 lt_cv_sys_max_cmd_len=8192;
6329 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6330 # This has been around since 386BSD, at least. Likely further.
6331 if test -x /sbin/sysctl; then
6332 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6333 elif test -x /usr/sbin/sysctl; then
6334 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6336 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6338 # And add a safety zone
6339 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6340 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6344 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6345 lt_cv_sys_max_cmd_len=196608
6349 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6350 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6351 # nice to cause kernel panics so lets avoid the loop below.
6352 # First set a reasonable default.
6353 lt_cv_sys_max_cmd_len=16384
6355 if test -x /sbin/sysconfig; then
6356 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6357 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6362 lt_cv_sys_max_cmd_len=102400
6364 sysv5* | sco5v6* | sysv4.2uw2*)
6365 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6366 if test -n "$kargmax"; then
6367 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6369 lt_cv_sys_max_cmd_len=32768
6373 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6374 if test -n "$lt_cv_sys_max_cmd_len"; then
6375 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6376 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6378 # Make teststring a little bigger before we do anything with it.
6379 # a 1K string should be a reasonable start.
6380 for i in 1 2 3 4 5 6 7 8 ; do
6381 teststring=$teststring$teststring
6383 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6384 # If test is not a shell built-in, we'll probably end up computing a
6385 # maximum length that is only half of the actual maximum length, but
6387 while { test "X
"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6388 = "X
$teststring$teststring"; } >/dev/null 2>&1 &&
6389 test $i != 17 # 1/2 MB should be enough
6392 teststring=$teststring$teststring
6394 # Only check the string length outside the loop.
6395 lt_cv_sys_max_cmd_len=`expr "X
$teststring" : ".
*" 2>&1`
6397 # Add a significant safety factor because C++ compilers can tack on
6398 # massive amounts of additional arguments before passing them to the
6399 # linker. It appears as though 1/2 is a usable value.
6400 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6407 if test -n $lt_cv_sys_max_cmd_len ; then
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sys_max_cmd_len" >&5
6409 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none
" >&5
6412 $as_echo "none
" >&6; }
6414 max_cmd_len=$lt_cv_sys_max_cmd_len
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs
" >&5
6426 $as_echo_n "checking whether the shell understands some XSI constructs...
" >&6; }
6427 # Try some XSI features
6430 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6432 && eval 'test $(( 1 + 1 )) -eq 2 \
6433 && test "${#_lt_dummy}" -eq 5' ) >/dev
/null
2>&1 \
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6436 $as_echo "$xsi_shell" >&6; }
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6440 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6442 ( foo
=bar
; set foo baz
; eval "$1+=\$2" && test "$foo" = barbaz
) \
6444 && lt_shell_append
=yes
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6446 $as_echo "$lt_shell_append" >&6; }
6449 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
6459 # test EBCDIC or ASCII
6460 case `echo X|tr X '\101'` in
6461 A
) # ASCII based system
6462 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6463 lt_SP2NL
='tr \040 \012'
6464 lt_NL2SP
='tr \015\012 \040\040'
6466 *) # EBCDIC based system
6467 lt_SP2NL
='tr \100 \n'
6468 lt_NL2SP
='tr \r\n \100\100'
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6481 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6482 if ${lt_cv_ld_reload_flag+:} false
; then :
6483 $as_echo_n "(cached) " >&6
6485 lt_cv_ld_reload_flag
='-r'
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6488 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6489 reload_flag
=$lt_cv_ld_reload_flag
6490 case $reload_flag in
6492 *) reload_flag
=" $reload_flag" ;;
6494 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
6497 if test "$GCC" = yes; then
6498 reload_cmds
='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6500 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
6513 if test -n "$ac_tool_prefix"; then
6514 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6515 set dummy
${ac_tool_prefix}objdump
; ac_word
=$2
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6517 $as_echo_n "checking for $ac_word... " >&6; }
6518 if ${ac_cv_prog_OBJDUMP+:} false
; then :
6519 $as_echo_n "(cached) " >&6
6521 if test -n "$OBJDUMP"; then
6522 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
6524 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6528 test -z "$as_dir" && as_dir
=.
6529 for ac_exec_ext
in '' $ac_executable_extensions; do
6530 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6531 ac_cv_prog_OBJDUMP
="${ac_tool_prefix}objdump"
6532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6541 OBJDUMP
=$ac_cv_prog_OBJDUMP
6542 if test -n "$OBJDUMP"; then
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6544 $as_echo "$OBJDUMP" >&6; }
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6547 $as_echo "no" >&6; }
6552 if test -z "$ac_cv_prog_OBJDUMP"; then
6553 ac_ct_OBJDUMP
=$OBJDUMP
6554 # Extract the first word of "objdump", so it can be a program name with args.
6555 set dummy objdump
; ac_word
=$2
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6557 $as_echo_n "checking for $ac_word... " >&6; }
6558 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false
; then :
6559 $as_echo_n "(cached) " >&6
6561 if test -n "$ac_ct_OBJDUMP"; then
6562 ac_cv_prog_ac_ct_OBJDUMP
="$ac_ct_OBJDUMP" # Let the user override the test.
6564 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6568 test -z "$as_dir" && as_dir
=.
6569 for ac_exec_ext
in '' $ac_executable_extensions; do
6570 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6571 ac_cv_prog_ac_ct_OBJDUMP
="objdump"
6572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6581 ac_ct_OBJDUMP
=$ac_cv_prog_ac_ct_OBJDUMP
6582 if test -n "$ac_ct_OBJDUMP"; then
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6584 $as_echo "$ac_ct_OBJDUMP" >&6; }
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6587 $as_echo "no" >&6; }
6590 if test "x$ac_ct_OBJDUMP" = x
; then
6593 case $cross_compiling:$ac_tool_warned in
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6597 ac_tool_warned
=yes ;;
6599 OBJDUMP
=$ac_ct_OBJDUMP
6602 OBJDUMP
="$ac_cv_prog_OBJDUMP"
6605 test -z "$OBJDUMP" && OBJDUMP
=objdump
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6616 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6617 if ${lt_cv_deplibs_check_method+:} false
; then :
6618 $as_echo_n "(cached) " >&6
6620 lt_cv_file_magic_cmd
='$MAGIC_CMD'
6621 lt_cv_file_magic_test_file
=
6622 lt_cv_deplibs_check_method
='unknown'
6623 # Need to set the preceding variable on all platforms that support
6624 # interlibrary dependencies.
6625 # 'none' -- dependencies not supported.
6626 # `unknown' -- same as none, but documents that we really don't know.
6627 # 'pass_all' -- all dependencies passed with no checks.
6628 # 'test_compile' -- check by making test program.
6629 # 'file_magic [[regex]]' -- check by looking for files in library path
6630 # which responds to the $file_magic_cmd with a given extended regex.
6631 # If you have `file' or equivalent on your system and you're not sure
6632 # whether `pass_all' will *always* work, you probably want this one.
6636 lt_cv_deplibs_check_method
=pass_all
6640 lt_cv_deplibs_check_method
=pass_all
6644 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6645 lt_cv_file_magic_cmd
='/usr/bin/file -L'
6646 lt_cv_file_magic_test_file
=/shlib
/libc.so
6650 # func_win32_libid is a shell function defined in ltmain.sh
6651 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
6652 lt_cv_file_magic_cmd
='func_win32_libid'
6656 # Base MSYS/MinGW do not provide the 'file' command needed by
6657 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6658 # unless we find 'file', for example because we are cross-compiling.
6659 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6660 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev
/null
2>&1; then
6661 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
6662 lt_cv_file_magic_cmd
='func_win32_libid'
6664 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
6665 lt_cv_file_magic_cmd
='$OBJDUMP -f'
6670 # use the weaker test based on 'objdump'. See mingw*.
6671 lt_cv_deplibs_check_method
='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6672 lt_cv_file_magic_cmd
='$OBJDUMP -f'
6675 darwin
* | rhapsody
*)
6676 lt_cv_deplibs_check_method
=pass_all
6679 freebsd
* | dragonfly
*)
6680 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
> /dev
/null
; then
6683 # Not sure whether the presence of OpenBSD here was a mistake.
6684 # Let's accept both of them until this is cleared up.
6685 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6686 lt_cv_file_magic_cmd
=/usr
/bin
/file
6687 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
6691 lt_cv_deplibs_check_method
=pass_all
6696 lt_cv_deplibs_check_method
=pass_all
6700 lt_cv_deplibs_check_method
=pass_all
6703 hpux10.20
* | hpux11
*)
6704 lt_cv_file_magic_cmd
=/usr
/bin
/file
6707 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6708 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
6711 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]'
6712 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
6715 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6716 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
6722 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6723 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
6726 irix5
* | irix6
* | nonstopux
*)
6728 *-32|
*"-32 ") libmagic
=32-bit;;
6729 *-n32|
*"-n32 ") libmagic
=N32
;;
6730 *-64|
*"-64 ") libmagic
=64-bit;;
6731 *) libmagic
=never-match
;;
6733 lt_cv_deplibs_check_method
=pass_all
6736 # This must be Linux ELF.
6737 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
6738 lt_cv_deplibs_check_method
=pass_all
6742 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
> /dev
/null
; then
6743 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6745 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6750 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6751 lt_cv_file_magic_cmd
=/usr
/bin
/file
6752 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
6756 lt_cv_deplibs_check_method
=pass_all
6760 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6761 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6763 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6767 osf3
* | osf4
* | osf5
*)
6768 lt_cv_deplibs_check_method
=pass_all
6772 lt_cv_deplibs_check_method
=pass_all
6776 lt_cv_deplibs_check_method
=pass_all
6779 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
6780 lt_cv_deplibs_check_method
=pass_all
6784 case $host_vendor in
6786 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]'
6787 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
6790 lt_cv_deplibs_check_method
=pass_all
6793 lt_cv_file_magic_cmd
='/bin/file'
6794 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6797 lt_cv_file_magic_cmd
='/bin/file'
6798 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6799 lt_cv_file_magic_test_file
=/lib
/libc.so
6802 lt_cv_deplibs_check_method
=pass_all
6805 lt_cv_deplibs_check_method
=pass_all
6811 lt_cv_deplibs_check_method
=pass_all
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6817 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6818 file_magic_cmd
=$lt_cv_file_magic_cmd
6819 deplibs_check_method
=$lt_cv_deplibs_check_method
6820 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
6833 if test -n "$ac_tool_prefix"; then
6834 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6835 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6837 $as_echo_n "checking for $ac_word... " >&6; }
6838 if ${ac_cv_prog_AR+:} false
; then :
6839 $as_echo_n "(cached) " >&6
6841 if test -n "$AR"; then
6842 ac_cv_prog_AR
="$AR" # Let the user override the test.
6844 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6848 test -z "$as_dir" && as_dir
=.
6849 for ac_exec_ext
in '' $ac_executable_extensions; do
6850 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6851 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6862 if test -n "$AR"; then
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6864 $as_echo "$AR" >&6; }
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6867 $as_echo "no" >&6; }
6872 if test -z "$ac_cv_prog_AR"; then
6874 # Extract the first word of "ar", so it can be a program name with args.
6875 set dummy
ar; ac_word
=$2
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6877 $as_echo_n "checking for $ac_word... " >&6; }
6878 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
6879 $as_echo_n "(cached) " >&6
6881 if test -n "$ac_ct_AR"; then
6882 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6884 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6888 test -z "$as_dir" && as_dir
=.
6889 for ac_exec_ext
in '' $ac_executable_extensions; do
6890 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6891 ac_cv_prog_ac_ct_AR
="ar"
6892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6901 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6902 if test -n "$ac_ct_AR"; then
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6904 $as_echo "$ac_ct_AR" >&6; }
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6907 $as_echo "no" >&6; }
6910 if test "x$ac_ct_AR" = x
; then
6913 case $cross_compiling:$ac_tool_warned in
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6917 ac_tool_warned
=yes ;;
6925 test -z "$AR" && AR
=ar
6926 test -z "$AR_FLAGS" && AR_FLAGS
=cru
6938 if test -n "$ac_tool_prefix"; then
6939 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6940 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6942 $as_echo_n "checking for $ac_word... " >&6; }
6943 if ${ac_cv_prog_STRIP+:} false
; then :
6944 $as_echo_n "(cached) " >&6
6946 if test -n "$STRIP"; then
6947 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6949 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6953 test -z "$as_dir" && as_dir
=.
6954 for ac_exec_ext
in '' $ac_executable_extensions; do
6955 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6956 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6966 STRIP
=$ac_cv_prog_STRIP
6967 if test -n "$STRIP"; then
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6969 $as_echo "$STRIP" >&6; }
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6972 $as_echo "no" >&6; }
6977 if test -z "$ac_cv_prog_STRIP"; then
6979 # Extract the first word of "strip", so it can be a program name with args.
6980 set dummy strip
; ac_word
=$2
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6982 $as_echo_n "checking for $ac_word... " >&6; }
6983 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
6984 $as_echo_n "(cached) " >&6
6986 if test -n "$ac_ct_STRIP"; then
6987 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6989 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6993 test -z "$as_dir" && as_dir
=.
6994 for ac_exec_ext
in '' $ac_executable_extensions; do
6995 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6996 ac_cv_prog_ac_ct_STRIP
="strip"
6997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7006 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
7007 if test -n "$ac_ct_STRIP"; then
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7009 $as_echo "$ac_ct_STRIP" >&6; }
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7012 $as_echo "no" >&6; }
7015 if test "x$ac_ct_STRIP" = x
; then
7018 case $cross_compiling:$ac_tool_warned in
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7022 ac_tool_warned
=yes ;;
7027 STRIP
="$ac_cv_prog_STRIP"
7030 test -z "$STRIP" && STRIP
=:
7037 if test -n "$ac_tool_prefix"; then
7038 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7039 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7041 $as_echo_n "checking for $ac_word... " >&6; }
7042 if ${ac_cv_prog_RANLIB+:} false
; then :
7043 $as_echo_n "(cached) " >&6
7045 if test -n "$RANLIB"; then
7046 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7048 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7052 test -z "$as_dir" && as_dir
=.
7053 for ac_exec_ext
in '' $ac_executable_extensions; do
7054 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7055 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7065 RANLIB
=$ac_cv_prog_RANLIB
7066 if test -n "$RANLIB"; then
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7068 $as_echo "$RANLIB" >&6; }
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7071 $as_echo "no" >&6; }
7076 if test -z "$ac_cv_prog_RANLIB"; then
7077 ac_ct_RANLIB
=$RANLIB
7078 # Extract the first word of "ranlib", so it can be a program name with args.
7079 set dummy ranlib
; ac_word
=$2
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7081 $as_echo_n "checking for $ac_word... " >&6; }
7082 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
7083 $as_echo_n "(cached) " >&6
7085 if test -n "$ac_ct_RANLIB"; then
7086 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7088 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7092 test -z "$as_dir" && as_dir
=.
7093 for ac_exec_ext
in '' $ac_executable_extensions; do
7094 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7095 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7105 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7106 if test -n "$ac_ct_RANLIB"; then
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7108 $as_echo "$ac_ct_RANLIB" >&6; }
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7111 $as_echo "no" >&6; }
7114 if test "x$ac_ct_RANLIB" = x
; then
7117 case $cross_compiling:$ac_tool_warned in
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7121 ac_tool_warned
=yes ;;
7123 RANLIB
=$ac_ct_RANLIB
7126 RANLIB
="$ac_cv_prog_RANLIB"
7129 test -z "$RANLIB" && RANLIB
=:
7136 # Determine commands to create old-style static archives.
7137 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs'
7138 old_postinstall_cmds
='chmod 644 $oldlib'
7139 old_postuninstall_cmds
=
7141 if test -n "$RANLIB"; then
7144 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7147 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
7150 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
7155 lock_old_archive_extraction
=yes ;;
7157 lock_old_archive_extraction
=no
;;
7198 # If no C compiler was specified, use CC.
7201 # If no C compiler flags were specified, use CFLAGS.
7202 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
7204 # Allow CC to be a program name with arguments.
7208 # Check for command to grab the raw symbol name followed by C symbol from nm.
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7210 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7211 if ${lt_cv_sys_global_symbol_pipe+:} false
; then :
7212 $as_echo_n "(cached) " >&6
7215 # These are sane defaults that work on at least a few old systems.
7216 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7218 # Character class describing NM global symbol codes.
7219 symcode
='[BCDEGRST]'
7221 # Regexp to match symbols that can be accessed directly from C.
7222 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
7224 # Define system-specific variables.
7229 cygwin
* | mingw
* | pw32
* | cegcc
*)
7230 symcode
='[ABCDGISTW]'
7233 if test "$host_cpu" = ia64
; then
7234 symcode
='[ABCDEGRST]'
7238 symcode
='[BCDEGRST]'
7241 symcode
='[BCDEGQRST]'
7252 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
7260 # If we're using GNU nm, then use its standard symbol codes.
7261 case `$NM -V 2>&1` in
7262 *GNU
* |
*'with BFD'*)
7263 symcode
='[ABCDGIRSTW]' ;;
7266 # Transform an extracted symbol line into a proper C declaration.
7267 # Some systems (esp. on ia64) link data and code symbols differently,
7268 # so use this general approach.
7269 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7271 # Transform an extracted symbol line into symbol name and symbol address
7272 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7273 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'"
7275 # Handle CRLF in mingw tool chain
7279 opt_cr
=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7283 # Try without a prefix underscore, then with it.
7284 for ac_symprfx
in "" "_"; do
7286 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7287 symxfrm
="\\1 $ac_symprfx\\2 \\2"
7289 # Write the raw and C identifiers.
7290 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7291 # Fake it for dumpbin and say T for any non-static function
7292 # and D for any global variable.
7293 # Also find C++ and __fastcall symbols from MSVC++,
7294 # which start with @ or ?.
7295 lt_cv_sys_global_symbol_pipe
="$AWK '"\
7296 " {last_section=section; section=\$ 3};"\
7297 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7298 " \$ 0!~/External *\|/{next};"\
7299 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7300 " {if(hide[section]) next};"\
7301 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7302 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7303 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7304 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7305 " ' prfx=^$ac_symprfx"
7307 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7310 # Check to see that the pipe works correctly.
7314 cat > conftest.
$ac_ext <<_LT_EOF
7319 void nm_test_func(void);
7320 void nm_test_func(void){}
7324 int main(){nm_test_var='a';nm_test_func();return(0);}
7327 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7328 (eval $ac_compile) 2>&5
7330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7331 test $ac_status = 0; }; then
7332 # Now try to grab the symbols.
7334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7335 (eval $NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist) 2>&5
7337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7338 test $ac_status = 0; } && test -s "$nlist"; then
7339 # Try sorting and uniquifying the output.
7340 if sort "$nlist" |
uniq > "$nlist"T
; then
7341 mv -f "$nlist"T
"$nlist"
7346 # Make sure that we snagged all the symbols we need.
7347 if $GREP ' nm_test_var$' "$nlist" >/dev
/null
; then
7348 if $GREP ' nm_test_func$' "$nlist" >/dev
/null
; then
7349 cat <<_LT_EOF > conftest.$ac_ext
7355 # Now generate the symbol file.
7356 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7358 cat <<_LT_EOF >> conftest.$ac_ext
7360 /* The mapping between symbol names and symbols. */
7365 lt__PROGRAM__LTX_preloaded_symbols[] =
7367 { "@PROGRAM@", (void *) 0 },
7369 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" |
$GREP -v main
>> conftest.
$ac_ext
7370 cat <<\_LT_EOF
>> conftest.
$ac_ext
7374 /* This works around a problem
in FreeBSD linker
*/
7375 #ifdef FREEBSD_WORKAROUND
7376 static const void
*lt_preloaded_setup
() {
7377 return lt__PROGRAM__LTX_preloaded_symbols
;
7385 # Now try linking the two files.
7386 mv conftest.
$ac_objext conftstm.
$ac_objext
7387 lt_save_LIBS
="$LIBS"
7388 lt_save_CFLAGS
="$CFLAGS"
7389 LIBS
="conftstm.$ac_objext"
7390 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7391 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7392 (eval $ac_link) 2>&5
7394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7395 test $ac_status = 0; } && test -s conftest
${ac_exeext}; then
7398 LIBS
="$lt_save_LIBS"
7399 CFLAGS
="$lt_save_CFLAGS"
7401 echo "cannot find nm_test_func in $nlist" >&5
7404 echo "cannot find nm_test_var in $nlist" >&5
7407 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7410 echo "$progname: failed program was:" >&5
7411 cat conftest.
$ac_ext >&5
7413 rm -rf conftest
* conftst
*
7415 # Do not use the global_symbol_pipe unless it works.
7416 if test "$pipe_works" = yes; then
7419 lt_cv_sys_global_symbol_pipe
=
7425 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7426 lt_cv_sys_global_symbol_to_cdecl
=
7428 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7430 $as_echo "failed" >&6; }
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7433 $as_echo "ok" >&6; }
7457 # Check whether --enable-libtool-lock was given.
7458 if test "${enable_libtool_lock+set}" = set; then :
7459 enableval
=$enable_libtool_lock;
7462 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
7464 # Some flags need to be propagated to the compiler or linker for good
7468 # Find out which ABI we are using.
7469 echo 'int i;' > conftest.
$ac_ext
7470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7471 (eval $ac_compile) 2>&5
7473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7474 test $ac_status = 0; }; then
7475 case `/usr/bin/file conftest.$ac_objext` in
7487 # Find out which ABI we are using.
7488 echo '#line '$LINENO' "configure"' > conftest.
$ac_ext
7489 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7490 (eval $ac_compile) 2>&5
7492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7493 test $ac_status = 0; }; then
7494 if test "$lt_cv_prog_gnu_ld" = yes; then
7495 case `/usr/bin/file conftest.$ac_objext` in
7497 LD
="${LD-ld} -melf32bsmip"
7500 LD
="${LD-ld} -melf32bmipn32"
7503 LD
="${LD-ld} -melf64bmip"
7507 case `/usr/bin/file conftest.$ac_objext` in
7523 x86_64-
*kfreebsd
*-gnu|x86_64-
*linux
*|powerpc
*-*linux
*| \
7524 s390
*-*linux
*|s390
*-*tpf
*|sparc
*-*linux
*)
7525 # Find out which ABI we are using.
7526 echo 'int i;' > conftest.
$ac_ext
7527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7528 (eval $ac_compile) 2>&5
7530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7531 test $ac_status = 0; }; then
7532 case `/usr/bin/file conftest.o` in
7535 x86_64-
*kfreebsd
*-gnu)
7536 LD
="${LD-ld} -m elf_i386_fbsd"
7539 case `/usr/bin/file conftest.o` in
7541 LD
="${LD-ld} -m elf32_x86_64"
7544 LD
="${LD-ld} -m elf_i386"
7548 powerpc64le-
*linux
*)
7549 LD
="${LD-ld} -m elf32lppclinux"
7552 LD
="${LD-ld} -m elf32ppclinux"
7555 LD
="${LD-ld} -m elf_s390"
7558 LD
="${LD-ld} -m elf32_sparc"
7564 x86_64-
*kfreebsd
*-gnu)
7565 LD
="${LD-ld} -m elf_x86_64_fbsd"
7568 LD
="${LD-ld} -m elf_x86_64"
7571 LD
="${LD-ld} -m elf64lppc"
7574 LD
="${LD-ld} -m elf64ppc"
7576 s390
*-*linux
*|s390
*-*tpf
*)
7577 LD
="${LD-ld} -m elf64_s390"
7580 LD
="${LD-ld} -m elf64_sparc"
7590 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7591 SAVE_CFLAGS
="$CFLAGS"
7592 CFLAGS
="$CFLAGS -belf"
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7594 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7595 if ${lt_cv_cc_needs_belf+:} false
; then :
7596 $as_echo_n "(cached) " >&6
7599 ac_cpp
='$CPP $CPPFLAGS'
7600 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7601 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7602 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7605 /* end confdefs.h. */
7615 if ac_fn_c_try_link
"$LINENO"; then :
7616 lt_cv_cc_needs_belf
=yes
7618 lt_cv_cc_needs_belf
=no
7620 rm -f core conftest.err conftest.
$ac_objext \
7621 conftest
$ac_exeext conftest.
$ac_ext
7623 ac_cpp
='$CPP $CPPFLAGS'
7624 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7625 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7626 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7630 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7631 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
7632 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7633 CFLAGS
="$SAVE_CFLAGS"
7637 # Find out which ABI we are using.
7638 echo 'int i;' > conftest.
$ac_ext
7639 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7640 (eval $ac_compile) 2>&5
7642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7643 test $ac_status = 0; }; then
7644 case `/usr/bin/file conftest.o` in
7646 case $lt_cv_prog_gnu_ld in
7647 yes*) LD
="${LD-ld} -m elf64_sparc" ;;
7649 if ${LD-ld} -64 -r -o conftest2.o conftest.o
>/dev
/null
2>&1; then
7661 need_locks
="$enable_libtool_lock"
7665 rhapsody
* | darwin
*)
7666 if test -n "$ac_tool_prefix"; then
7667 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7668 set dummy
${ac_tool_prefix}dsymutil
; ac_word
=$2
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7670 $as_echo_n "checking for $ac_word... " >&6; }
7671 if ${ac_cv_prog_DSYMUTIL+:} false
; then :
7672 $as_echo_n "(cached) " >&6
7674 if test -n "$DSYMUTIL"; then
7675 ac_cv_prog_DSYMUTIL
="$DSYMUTIL" # Let the user override the test.
7677 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7681 test -z "$as_dir" && as_dir
=.
7682 for ac_exec_ext
in '' $ac_executable_extensions; do
7683 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7684 ac_cv_prog_DSYMUTIL
="${ac_tool_prefix}dsymutil"
7685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7694 DSYMUTIL
=$ac_cv_prog_DSYMUTIL
7695 if test -n "$DSYMUTIL"; then
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7697 $as_echo "$DSYMUTIL" >&6; }
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7700 $as_echo "no" >&6; }
7705 if test -z "$ac_cv_prog_DSYMUTIL"; then
7706 ac_ct_DSYMUTIL
=$DSYMUTIL
7707 # Extract the first word of "dsymutil", so it can be a program name with args.
7708 set dummy dsymutil
; ac_word
=$2
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7710 $as_echo_n "checking for $ac_word... " >&6; }
7711 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false
; then :
7712 $as_echo_n "(cached) " >&6
7714 if test -n "$ac_ct_DSYMUTIL"; then
7715 ac_cv_prog_ac_ct_DSYMUTIL
="$ac_ct_DSYMUTIL" # Let the user override the test.
7717 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7721 test -z "$as_dir" && as_dir
=.
7722 for ac_exec_ext
in '' $ac_executable_extensions; do
7723 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7724 ac_cv_prog_ac_ct_DSYMUTIL
="dsymutil"
7725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7734 ac_ct_DSYMUTIL
=$ac_cv_prog_ac_ct_DSYMUTIL
7735 if test -n "$ac_ct_DSYMUTIL"; then
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7737 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7740 $as_echo "no" >&6; }
7743 if test "x$ac_ct_DSYMUTIL" = x
; then
7746 case $cross_compiling:$ac_tool_warned in
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7750 ac_tool_warned
=yes ;;
7752 DSYMUTIL
=$ac_ct_DSYMUTIL
7755 DSYMUTIL
="$ac_cv_prog_DSYMUTIL"
7758 if test -n "$ac_tool_prefix"; then
7759 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7760 set dummy
${ac_tool_prefix}nmedit
; ac_word
=$2
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7762 $as_echo_n "checking for $ac_word... " >&6; }
7763 if ${ac_cv_prog_NMEDIT+:} false
; then :
7764 $as_echo_n "(cached) " >&6
7766 if test -n "$NMEDIT"; then
7767 ac_cv_prog_NMEDIT
="$NMEDIT" # Let the user override the test.
7769 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7773 test -z "$as_dir" && as_dir
=.
7774 for ac_exec_ext
in '' $ac_executable_extensions; do
7775 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7776 ac_cv_prog_NMEDIT
="${ac_tool_prefix}nmedit"
7777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7786 NMEDIT
=$ac_cv_prog_NMEDIT
7787 if test -n "$NMEDIT"; then
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7789 $as_echo "$NMEDIT" >&6; }
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792 $as_echo "no" >&6; }
7797 if test -z "$ac_cv_prog_NMEDIT"; then
7798 ac_ct_NMEDIT
=$NMEDIT
7799 # Extract the first word of "nmedit", so it can be a program name with args.
7800 set dummy nmedit
; ac_word
=$2
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7802 $as_echo_n "checking for $ac_word... " >&6; }
7803 if ${ac_cv_prog_ac_ct_NMEDIT+:} false
; then :
7804 $as_echo_n "(cached) " >&6
7806 if test -n "$ac_ct_NMEDIT"; then
7807 ac_cv_prog_ac_ct_NMEDIT
="$ac_ct_NMEDIT" # Let the user override the test.
7809 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7813 test -z "$as_dir" && as_dir
=.
7814 for ac_exec_ext
in '' $ac_executable_extensions; do
7815 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7816 ac_cv_prog_ac_ct_NMEDIT
="nmedit"
7817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7826 ac_ct_NMEDIT
=$ac_cv_prog_ac_ct_NMEDIT
7827 if test -n "$ac_ct_NMEDIT"; then
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7829 $as_echo "$ac_ct_NMEDIT" >&6; }
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7832 $as_echo "no" >&6; }
7835 if test "x$ac_ct_NMEDIT" = x
; then
7838 case $cross_compiling:$ac_tool_warned in
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7842 ac_tool_warned
=yes ;;
7844 NMEDIT
=$ac_ct_NMEDIT
7847 NMEDIT
="$ac_cv_prog_NMEDIT"
7850 if test -n "$ac_tool_prefix"; then
7851 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7852 set dummy
${ac_tool_prefix}lipo
; ac_word
=$2
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7854 $as_echo_n "checking for $ac_word... " >&6; }
7855 if ${ac_cv_prog_LIPO+:} false
; then :
7856 $as_echo_n "(cached) " >&6
7858 if test -n "$LIPO"; then
7859 ac_cv_prog_LIPO
="$LIPO" # Let the user override the test.
7861 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7865 test -z "$as_dir" && as_dir
=.
7866 for ac_exec_ext
in '' $ac_executable_extensions; do
7867 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7868 ac_cv_prog_LIPO
="${ac_tool_prefix}lipo"
7869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7878 LIPO
=$ac_cv_prog_LIPO
7879 if test -n "$LIPO"; then
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7881 $as_echo "$LIPO" >&6; }
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7884 $as_echo "no" >&6; }
7889 if test -z "$ac_cv_prog_LIPO"; then
7891 # Extract the first word of "lipo", so it can be a program name with args.
7892 set dummy lipo
; ac_word
=$2
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7894 $as_echo_n "checking for $ac_word... " >&6; }
7895 if ${ac_cv_prog_ac_ct_LIPO+:} false
; then :
7896 $as_echo_n "(cached) " >&6
7898 if test -n "$ac_ct_LIPO"; then
7899 ac_cv_prog_ac_ct_LIPO
="$ac_ct_LIPO" # Let the user override the test.
7901 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7905 test -z "$as_dir" && as_dir
=.
7906 for ac_exec_ext
in '' $ac_executable_extensions; do
7907 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7908 ac_cv_prog_ac_ct_LIPO
="lipo"
7909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7918 ac_ct_LIPO
=$ac_cv_prog_ac_ct_LIPO
7919 if test -n "$ac_ct_LIPO"; then
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7921 $as_echo "$ac_ct_LIPO" >&6; }
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7924 $as_echo "no" >&6; }
7927 if test "x$ac_ct_LIPO" = x
; then
7930 case $cross_compiling:$ac_tool_warned in
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7933 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7934 ac_tool_warned
=yes ;;
7939 LIPO
="$ac_cv_prog_LIPO"
7942 if test -n "$ac_tool_prefix"; then
7943 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7944 set dummy
${ac_tool_prefix}otool
; ac_word
=$2
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7946 $as_echo_n "checking for $ac_word... " >&6; }
7947 if ${ac_cv_prog_OTOOL+:} false
; then :
7948 $as_echo_n "(cached) " >&6
7950 if test -n "$OTOOL"; then
7951 ac_cv_prog_OTOOL
="$OTOOL" # Let the user override the test.
7953 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7957 test -z "$as_dir" && as_dir
=.
7958 for ac_exec_ext
in '' $ac_executable_extensions; do
7959 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7960 ac_cv_prog_OTOOL
="${ac_tool_prefix}otool"
7961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7970 OTOOL
=$ac_cv_prog_OTOOL
7971 if test -n "$OTOOL"; then
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7973 $as_echo "$OTOOL" >&6; }
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976 $as_echo "no" >&6; }
7981 if test -z "$ac_cv_prog_OTOOL"; then
7983 # Extract the first word of "otool", so it can be a program name with args.
7984 set dummy otool
; ac_word
=$2
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7986 $as_echo_n "checking for $ac_word... " >&6; }
7987 if ${ac_cv_prog_ac_ct_OTOOL+:} false
; then :
7988 $as_echo_n "(cached) " >&6
7990 if test -n "$ac_ct_OTOOL"; then
7991 ac_cv_prog_ac_ct_OTOOL
="$ac_ct_OTOOL" # Let the user override the test.
7993 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7997 test -z "$as_dir" && as_dir
=.
7998 for ac_exec_ext
in '' $ac_executable_extensions; do
7999 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8000 ac_cv_prog_ac_ct_OTOOL
="otool"
8001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8010 ac_ct_OTOOL
=$ac_cv_prog_ac_ct_OTOOL
8011 if test -n "$ac_ct_OTOOL"; then
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8013 $as_echo "$ac_ct_OTOOL" >&6; }
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8016 $as_echo "no" >&6; }
8019 if test "x$ac_ct_OTOOL" = x
; then
8022 case $cross_compiling:$ac_tool_warned in
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8026 ac_tool_warned
=yes ;;
8031 OTOOL
="$ac_cv_prog_OTOOL"
8034 if test -n "$ac_tool_prefix"; then
8035 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8036 set dummy
${ac_tool_prefix}otool64
; ac_word
=$2
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8038 $as_echo_n "checking for $ac_word... " >&6; }
8039 if ${ac_cv_prog_OTOOL64+:} false
; then :
8040 $as_echo_n "(cached) " >&6
8042 if test -n "$OTOOL64"; then
8043 ac_cv_prog_OTOOL64
="$OTOOL64" # Let the user override the test.
8045 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8049 test -z "$as_dir" && as_dir
=.
8050 for ac_exec_ext
in '' $ac_executable_extensions; do
8051 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8052 ac_cv_prog_OTOOL64
="${ac_tool_prefix}otool64"
8053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8062 OTOOL64
=$ac_cv_prog_OTOOL64
8063 if test -n "$OTOOL64"; then
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8065 $as_echo "$OTOOL64" >&6; }
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8068 $as_echo "no" >&6; }
8073 if test -z "$ac_cv_prog_OTOOL64"; then
8074 ac_ct_OTOOL64
=$OTOOL64
8075 # Extract the first word of "otool64", so it can be a program name with args.
8076 set dummy otool64
; ac_word
=$2
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8078 $as_echo_n "checking for $ac_word... " >&6; }
8079 if ${ac_cv_prog_ac_ct_OTOOL64+:} false
; then :
8080 $as_echo_n "(cached) " >&6
8082 if test -n "$ac_ct_OTOOL64"; then
8083 ac_cv_prog_ac_ct_OTOOL64
="$ac_ct_OTOOL64" # Let the user override the test.
8085 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8089 test -z "$as_dir" && as_dir
=.
8090 for ac_exec_ext
in '' $ac_executable_extensions; do
8091 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8092 ac_cv_prog_ac_ct_OTOOL64
="otool64"
8093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8102 ac_ct_OTOOL64
=$ac_cv_prog_ac_ct_OTOOL64
8103 if test -n "$ac_ct_OTOOL64"; then
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8105 $as_echo "$ac_ct_OTOOL64" >&6; }
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8108 $as_echo "no" >&6; }
8111 if test "x$ac_ct_OTOOL64" = x
; then
8114 case $cross_compiling:$ac_tool_warned in
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8118 ac_tool_warned
=yes ;;
8120 OTOOL64
=$ac_ct_OTOOL64
8123 OTOOL64
="$ac_cv_prog_OTOOL64"
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8153 $as_echo_n "checking for -single_module linker flag... " >&6; }
8154 if ${lt_cv_apple_cc_single_mod+:} false
; then :
8155 $as_echo_n "(cached) " >&6
8157 lt_cv_apple_cc_single_mod
=no
8158 if test -z "${LT_MULTI_MODULE}"; then
8159 # By default we will add the -single_module flag. You can override
8160 # by either setting the environment variable LT_MULTI_MODULE
8161 # non-empty at configure time, or by adding -multi_module to the
8163 rm -rf libconftest.dylib
*
8164 echo "int foo(void){return 1;}" > conftest.c
8165 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8166 -dynamiclib -Wl,-single_module conftest.c" >&5
8167 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8168 -dynamiclib -Wl,-single_module conftest.c
2>conftest.err
8170 if test -f libconftest.dylib
&& test ! -s conftest.err
&& test $_lt_result = 0; then
8171 lt_cv_apple_cc_single_mod
=yes
8173 cat conftest.err
>&5
8175 rm -rf libconftest.dylib
*
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8180 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8182 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8183 if ${lt_cv_ld_exported_symbols_list+:} false
; then :
8184 $as_echo_n "(cached) " >&6
8186 lt_cv_ld_exported_symbols_list
=no
8187 save_LDFLAGS
=$LDFLAGS
8188 echo "_main" > conftest.sym
8189 LDFLAGS
="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8191 /* end confdefs.h. */
8201 if ac_fn_c_try_link
"$LINENO"; then :
8202 lt_cv_ld_exported_symbols_list
=yes
8204 lt_cv_ld_exported_symbols_list
=no
8206 rm -f core conftest.err conftest.
$ac_objext \
8207 conftest
$ac_exeext conftest.
$ac_ext
8208 LDFLAGS
="$save_LDFLAGS"
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8212 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8214 $as_echo_n "checking for -force_load linker flag... " >&6; }
8215 if ${lt_cv_ld_force_load+:} false
; then :
8216 $as_echo_n "(cached) " >&6
8218 lt_cv_ld_force_load
=no
8219 cat > conftest.c
<< _LT_EOF
8220 int forced_loaded() { return 2;}
8222 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8223 $LTCC $LTCFLAGS -c -o conftest.o conftest.c
2>&5
8224 echo "$AR cru libconftest.a conftest.o" >&5
8225 $AR cru libconftest.a conftest.o
2>&5
8226 cat > conftest.c
<< _LT_EOF
8227 int main() { return 0;}
8229 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8230 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
2>conftest.err
8232 if test -f conftest
&& test ! -s conftest.err
&& test $_lt_result = 0 && $GREP forced_load conftest
2>&1 >/dev
/null
; then
8233 lt_cv_ld_force_load
=yes
8235 cat conftest.err
>&5
8237 rm -f conftest.err libconftest.a conftest conftest.c
8238 rm -rf conftest.dSYM
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8242 $as_echo "$lt_cv_ld_force_load" >&6; }
8244 rhapsody
* | darwin1.
[012])
8245 _lt_dar_allow_undefined
='${wl}-undefined ${wl}suppress' ;;
8247 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8248 darwin
*) # darwin 5.x on
8249 # if running on 10.5 or later, the deployment target defaults
8250 # to the OS version, if on x86, and 10.4, the deployment
8251 # target defaults to 10.4. Don't you love it?
8252 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8253 10.0,*86*-darwin8*|
10.0,*-darwin[91]*)
8254 _lt_dar_allow_undefined
='${wl}-undefined ${wl}dynamic_lookup' ;;
8256 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8258 _lt_dar_allow_undefined
='${wl}-undefined ${wl}dynamic_lookup' ;;
8262 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8263 _lt_dar_single_mod
='$single_module'
8265 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8266 _lt_dar_export_syms
=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8268 _lt_dar_export_syms
='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8270 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8271 _lt_dsymutil
='~$DSYMUTIL $lib || :'
8278 for ac_header
in dlfcn.h
8280 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8282 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
8283 cat >>confdefs.h
<<_ACEOF
8284 #define HAVE_DLFCN_H 1
8305 # Check whether --enable-shared was given.
8306 if test "${enable_shared+set}" = set; then :
8307 enableval
=$enable_shared; p
=${PACKAGE-default}
8309 yes) enable_shared
=yes ;;
8310 no
) enable_shared
=no
;;
8313 # Look at the argument we got. We use all the common list separators.
8314 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8315 for pkg
in $enableval; do
8317 if test "X$pkg" = "X$p"; then
8336 # Check whether --enable-static was given.
8337 if test "${enable_static+set}" = set; then :
8338 enableval
=$enable_static; p
=${PACKAGE-default}
8340 yes) enable_static
=yes ;;
8341 no
) enable_static
=no
;;
8344 # Look at the argument we got. We use all the common list separators.
8345 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8346 for pkg
in $enableval; do
8348 if test "X$pkg" = "X$p"; then
8368 # Check whether --with-pic was given.
8369 if test "${with_pic+set}" = set; then :
8370 withval
=$with_pic; pic_mode
="$withval"
8376 test -z "$pic_mode" && pic_mode
=default
8384 # Check whether --enable-fast-install was given.
8385 if test "${enable_fast_install+set}" = set; then :
8386 enableval
=$enable_fast_install; p
=${PACKAGE-default}
8388 yes) enable_fast_install
=yes ;;
8389 no
) enable_fast_install
=no
;;
8391 enable_fast_install
=no
8392 # Look at the argument we got. We use all the common list separators.
8393 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8394 for pkg
in $enableval; do
8396 if test "X$pkg" = "X$p"; then
8397 enable_fast_install
=yes
8404 enable_fast_install
=yes
8417 # This can be used to rebuild libtool when needed
8418 LIBTOOL_DEPS
="$ltmain"
8420 # Always use our own libtool.
8421 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
8448 test -z "$LN_S" && LN_S
="ln -s"
8463 if test -n "${ZSH_VERSION+set}" ; then
8464 setopt NO_GLOB_SUBST
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8468 $as_echo_n "checking for objdir... " >&6; }
8469 if ${lt_cv_objdir+:} false
; then :
8470 $as_echo_n "(cached) " >&6
8472 rm -f .libs
2>/dev
/null
8473 mkdir .libs
2>/dev
/null
8474 if test -d .libs
; then
8477 # MS-DOS does not allow filenames that begin with a dot.
8480 rmdir .libs
2>/dev
/null
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8483 $as_echo "$lt_cv_objdir" >&6; }
8484 objdir
=$lt_cv_objdir
8490 cat >>confdefs.h
<<_ACEOF
8491 #define LT_OBJDIR "$lt_cv_objdir/"
8499 # AIX sometimes has problems with the GCC collect2 program. For some
8500 # reason, if we set the COLLECT_NAMES environment variable, the problems
8501 # vanish in a puff of smoke.
8502 if test "X${COLLECT_NAMES+set}" != Xset
; then
8504 export COLLECT_NAMES
8511 can_build_shared
=yes
8513 # All known linkers require a `.a' archive for static linking (except MSVC,
8514 # which needs '.lib').
8517 with_gnu_ld
="$lt_cv_prog_gnu_ld"
8520 old_CFLAGS
="$CFLAGS"
8522 # Set sane defaults for various variables
8523 test -z "$CC" && CC
=cc
8524 test -z "$LTCC" && LTCC
=$CC
8525 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
8526 test -z "$LD" && LD
=ld
8527 test -z "$ac_objext" && ac_objext
=o
8529 for cc_temp
in $compiler""; do
8531 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
8532 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
8537 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8540 # Only perform the check for file, if the check method requires it
8541 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
8542 case $deplibs_check_method in
8544 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8546 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8547 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8548 $as_echo_n "(cached) " >&6
8552 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8555 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8556 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8557 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8558 for ac_dir
in $ac_dummy; do
8560 test -z "$ac_dir" && ac_dir
=.
8561 if test -f $ac_dir/${ac_tool_prefix}file; then
8562 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
8563 if test -n "$file_magic_test_file"; then
8564 case $deplibs_check_method in
8566 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8567 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8568 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8569 $EGREP "$file_magic_regex" > /dev
/null
; then
8574 *** Warning: the command libtool uses to detect shared libraries,
8575 *** $file_magic_cmd, produces output that libtool cannot recognize.
8576 *** The result is that libtool may fail to recognize shared libraries
8577 *** as such. This will affect the creation of libtool libraries that
8578 *** depend on shared libraries, but programs linked with such libtool
8579 *** libraries will work regardless of this problem. Nevertheless, you
8580 *** may want to report the problem to your system manager and/or to
8581 *** bug-libtool@gnu.org
8591 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8596 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8597 if test -n "$MAGIC_CMD"; then
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8599 $as_echo "$MAGIC_CMD" >&6; }
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8602 $as_echo "no" >&6; }
8609 if test -z "$lt_cv_path_MAGIC_CMD"; then
8610 if test -n "$ac_tool_prefix"; then
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8612 $as_echo_n "checking for file... " >&6; }
8613 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8614 $as_echo_n "(cached) " >&6
8618 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8621 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8622 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8623 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8624 for ac_dir
in $ac_dummy; do
8626 test -z "$ac_dir" && ac_dir
=.
8627 if test -f $ac_dir/file; then
8628 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
8629 if test -n "$file_magic_test_file"; then
8630 case $deplibs_check_method in
8632 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8633 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8634 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8635 $EGREP "$file_magic_regex" > /dev
/null
; then
8640 *** Warning: the command libtool uses to detect shared libraries,
8641 *** $file_magic_cmd, produces output that libtool cannot recognize.
8642 *** The result is that libtool may fail to recognize shared libraries
8643 *** as such. This will affect the creation of libtool libraries that
8644 *** depend on shared libraries, but programs linked with such libtool
8645 *** libraries will work regardless of this problem. Nevertheless, you
8646 *** may want to report the problem to your system manager and/or to
8647 *** bug-libtool@gnu.org
8657 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8662 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8663 if test -n "$MAGIC_CMD"; then
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8665 $as_echo "$MAGIC_CMD" >&6; }
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8668 $as_echo "no" >&6; }
8681 # Use C for the default configuration in the libtool script
8685 ac_cpp
='$CPP $CPPFLAGS'
8686 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8687 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8688 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8691 # Source file extension for C test sources.
8694 # Object file extension for compiled C test sources.
8698 # Code to be used in simple compile tests
8699 lt_simple_compile_test_code
="int some_variable = 0;"
8701 # Code to be used in simple link tests
8702 lt_simple_link_test_code
='int main(){return(0);}'
8710 # If no C compiler was specified, use CC.
8713 # If no C compiler flags were specified, use CFLAGS.
8714 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8716 # Allow CC to be a program name with arguments.
8719 # Save the default compiler, since it gets overwritten when the other
8720 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8721 compiler_DEFAULT
=$CC
8723 # save warnings/boilerplate of simple test code
8724 ac_outfile
=conftest.
$ac_objext
8725 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8726 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8727 _lt_compiler_boilerplate
=`cat conftest.err`
8730 ac_outfile
=conftest.
$ac_objext
8731 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8732 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8733 _lt_linker_boilerplate
=`cat conftest.err`
8738 ## There is no encapsulation within the following macros, do not change
8739 ## the running order or otherwise move them around unless you know exactly
8740 ## what you are doing...
8741 if test -n "$compiler"; then
8743 lt_prog_compiler_no_builtin_flag
=
8745 if test "$GCC" = yes; then
8746 case $cc_basename in
8748 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8750 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8754 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8755 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
8756 $as_echo_n "(cached) " >&6
8758 lt_cv_prog_compiler_rtti_exceptions
=no
8759 ac_outfile
=conftest.
$ac_objext
8760 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8761 lt_compiler_flag
="-fno-rtti -fno-exceptions"
8762 # Insert the option either (1) after the last *FLAGS variable, or
8763 # (2) before a word containing "conftest.", or (3) at the end.
8764 # Note that $ac_compile itself does not contain backslashes and begins
8765 # with a dollar sign (not a hyphen), so the echo should work correctly.
8766 # The option is referenced via a variable to avoid confusing sed.
8767 lt_compile
=`echo "$ac_compile" | $SED \
8768 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8769 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8770 -e 's:$: $lt_compiler_flag:'`
8771 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8772 (eval "$lt_compile" 2>conftest.err
)
8774 cat conftest.err
>&5
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 if (exit $ac_status) && test -s "$ac_outfile"; then
8777 # The compiler can only warn and ignore the option if not recognized
8778 # So say no if there are warnings other than the usual output.
8779 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8780 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8781 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8782 lt_cv_prog_compiler_rtti_exceptions
=yes
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8789 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8791 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
8792 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8804 lt_prog_compiler_wl
=
8805 lt_prog_compiler_pic
=
8806 lt_prog_compiler_static
=
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8809 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8811 if test "$GCC" = yes; then
8812 lt_prog_compiler_wl
='-Wl,'
8813 lt_prog_compiler_static
='-static'
8817 # All AIX code is PIC.
8818 if test "$host_cpu" = ia64
; then
8819 # AIX 5 now supports IA64 processor
8820 lt_prog_compiler_static
='-Bstatic'
8822 lt_prog_compiler_pic
='-fPIC'
8828 # see comment about AmigaOS4 .so support
8829 lt_prog_compiler_pic
='-fPIC'
8832 # FIXME: we need at least 68020 code to build shared libraries, but
8833 # adding the `-m68020' flag to GCC prevents building anything better,
8835 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8840 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8841 # PIC is the default for these OSes.
8844 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8845 # This hack is so that the source file can tell whether it is being
8846 # built for inclusion in a dll (and should export symbols for example).
8847 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8848 # (--disable-auto-import) libraries
8849 lt_prog_compiler_pic
='-DDLL_EXPORT'
8852 darwin
* | rhapsody
*)
8853 # PIC is the default on this platform
8854 # Common symbols not allowed in MH_DYLIB files
8855 lt_prog_compiler_pic
='-fno-common'
8859 # PIC is the default for Haiku.
8860 # The "-static" flag exists, but is broken.
8861 lt_prog_compiler_static
=
8865 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8866 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8867 # sets the default TLS model and affects inlining.
8873 lt_prog_compiler_pic
='-fPIC'
8879 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8880 # Instead, we relocate shared libraries at runtime.
8884 # Just because we use GCC doesn't mean we suddenly get shared libraries
8885 # on systems that don't support them.
8886 lt_prog_compiler_can_build_shared
=no
8891 # QNX uses GNU C++, but need to define -shared option too, otherwise
8893 lt_prog_compiler_pic
='-fPIC -shared'
8897 if test -d /usr
/nec
; then
8898 lt_prog_compiler_pic
=-Kconform_pic
8903 lt_prog_compiler_pic
='-fPIC'
8907 case $cc_basename in
8908 nvcc
*) # Cuda Compiler Driver 2.2
8909 lt_prog_compiler_wl
='-Xlinker '
8910 lt_prog_compiler_pic
='-Xcompiler -fPIC'
8914 # PORTME Check for flag to pass linker flags through the system compiler.
8917 lt_prog_compiler_wl
='-Wl,'
8918 if test "$host_cpu" = ia64
; then
8919 # AIX 5 now supports IA64 processor
8920 lt_prog_compiler_static
='-Bstatic'
8922 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8926 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8927 # This hack is so that the source file can tell whether it is being
8928 # built for inclusion in a dll (and should export symbols for example).
8929 lt_prog_compiler_pic
='-DDLL_EXPORT'
8932 hpux9
* | hpux10
* | hpux11
*)
8933 lt_prog_compiler_wl
='-Wl,'
8934 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8941 lt_prog_compiler_pic
='+Z'
8944 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8945 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8948 irix5
* | irix6
* | nonstopux
*)
8949 lt_prog_compiler_wl
='-Wl,'
8950 # PIC (with -KPIC) is the default.
8951 lt_prog_compiler_static
='-non_shared'
8954 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8955 case $cc_basename in
8956 # old Intel for x86_64 which still supported -KPIC.
8958 lt_prog_compiler_wl
='-Wl,'
8959 lt_prog_compiler_pic
='-KPIC'
8960 lt_prog_compiler_static
='-static'
8962 # icc used to be incompatible with GCC.
8963 # ICC 10 doesn't accept -KPIC any more.
8965 lt_prog_compiler_wl
='-Wl,'
8966 lt_prog_compiler_pic
='-fPIC'
8967 lt_prog_compiler_static
='-static'
8969 # Lahey Fortran 8.1.
8971 lt_prog_compiler_wl
='-Wl,'
8972 lt_prog_compiler_pic
='--shared'
8973 lt_prog_compiler_static
='--static'
8975 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8976 # Portland Group compilers (*not* the Pentium gcc compiler,
8977 # which looks to be a dead project)
8978 lt_prog_compiler_wl
='-Wl,'
8979 lt_prog_compiler_pic
='-fpic'
8980 lt_prog_compiler_static
='-Bstatic'
8983 lt_prog_compiler_wl
='-Wl,'
8984 # All Alpha code is PIC.
8985 lt_prog_compiler_static
='-non_shared'
8987 xl
* | bgxl
* | bgf
* | mpixl
*)
8988 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8989 lt_prog_compiler_wl
='-Wl,'
8990 lt_prog_compiler_pic
='-qpic'
8991 lt_prog_compiler_static
='-qstaticlink'
8994 case `$CC -V 2>&1 | sed 5q` in
8995 *Sun\ F
* |
*Sun
*Fortran
*)
8996 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8997 lt_prog_compiler_pic
='-KPIC'
8998 lt_prog_compiler_static
='-Bstatic'
8999 lt_prog_compiler_wl
=''
9003 lt_prog_compiler_pic
='-KPIC'
9004 lt_prog_compiler_static
='-Bstatic'
9005 lt_prog_compiler_wl
='-Wl,'
9013 lt_prog_compiler_pic
='-KPIC'
9014 lt_prog_compiler_static
='-Bstatic'
9018 # QNX uses GNU C++, but need to define -shared option too, otherwise
9020 lt_prog_compiler_pic
='-fPIC -shared'
9023 osf3
* | osf4
* | osf5
*)
9024 lt_prog_compiler_wl
='-Wl,'
9025 # All OSF/1 code is PIC.
9026 lt_prog_compiler_static
='-non_shared'
9030 lt_prog_compiler_static
='-non_shared'
9034 lt_prog_compiler_pic
='-KPIC'
9035 lt_prog_compiler_static
='-Bstatic'
9036 case $cc_basename in
9038 lt_prog_compiler_wl
='-Qoption ld ';;
9040 lt_prog_compiler_wl
='-Wl,';;
9045 lt_prog_compiler_wl
='-Qoption ld '
9046 lt_prog_compiler_pic
='-PIC'
9047 lt_prog_compiler_static
='-Bstatic'
9050 sysv4 | sysv4.2uw2
* | sysv4.3
*)
9051 lt_prog_compiler_wl
='-Wl,'
9052 lt_prog_compiler_pic
='-KPIC'
9053 lt_prog_compiler_static
='-Bstatic'
9057 if test -d /usr
/nec
;then
9058 lt_prog_compiler_pic
='-Kconform_pic'
9059 lt_prog_compiler_static
='-Bstatic'
9063 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
9064 lt_prog_compiler_wl
='-Wl,'
9065 lt_prog_compiler_pic
='-KPIC'
9066 lt_prog_compiler_static
='-Bstatic'
9070 lt_prog_compiler_wl
='-Wl,'
9071 lt_prog_compiler_can_build_shared
=no
9075 lt_prog_compiler_pic
='-pic'
9076 lt_prog_compiler_static
='-Bstatic'
9080 lt_prog_compiler_can_build_shared
=no
9086 # For platforms which do not support PIC, -DPIC is meaningless:
9088 lt_prog_compiler_pic
=
9091 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9095 $as_echo "$lt_prog_compiler_pic" >&6; }
9103 # Check to make sure the PIC flag actually works.
9105 if test -n "$lt_prog_compiler_pic"; then
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9107 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9108 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
9109 $as_echo_n "(cached) " >&6
9111 lt_cv_prog_compiler_pic_works
=no
9112 ac_outfile
=conftest.
$ac_objext
9113 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9114 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
9115 # Insert the option either (1) after the last *FLAGS variable, or
9116 # (2) before a word containing "conftest.", or (3) at the end.
9117 # Note that $ac_compile itself does not contain backslashes and begins
9118 # with a dollar sign (not a hyphen), so the echo should work correctly.
9119 # The option is referenced via a variable to avoid confusing sed.
9120 lt_compile
=`echo "$ac_compile" | $SED \
9121 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9122 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9123 -e 's:$: $lt_compiler_flag:'`
9124 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9125 (eval "$lt_compile" 2>conftest.err
)
9127 cat conftest.err
>&5
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 if (exit $ac_status) && test -s "$ac_outfile"; then
9130 # The compiler can only warn and ignore the option if not recognized
9131 # So say no if there are warnings other than the usual output.
9132 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
9133 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9134 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
9135 lt_cv_prog_compiler_pic_works
=yes
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9142 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9144 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
9145 case $lt_prog_compiler_pic in
9147 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
9150 lt_prog_compiler_pic
=
9151 lt_prog_compiler_can_build_shared
=no
9162 # Check to make sure the static flag actually works.
9164 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9166 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9167 if ${lt_cv_prog_compiler_static_works+:} false
; then :
9168 $as_echo_n "(cached) " >&6
9170 lt_cv_prog_compiler_static_works
=no
9171 save_LDFLAGS
="$LDFLAGS"
9172 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
9173 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9174 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9175 # The linker can only warn and ignore the option if not recognized
9176 # So say no if there are warnings
9177 if test -s conftest.err
; then
9178 # Append any errors to the config.log.
9179 cat conftest.err
1>&5
9180 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9181 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9182 if diff conftest.exp conftest.er2
>/dev
/null
; then
9183 lt_cv_prog_compiler_static_works
=yes
9186 lt_cv_prog_compiler_static_works
=yes
9190 LDFLAGS
="$save_LDFLAGS"
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9194 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9196 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
9199 lt_prog_compiler_static
=
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9209 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9210 if ${lt_cv_prog_compiler_c_o+:} false
; then :
9211 $as_echo_n "(cached) " >&6
9213 lt_cv_prog_compiler_c_o
=no
9214 $RM -r conftest
2>/dev
/null
9218 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9220 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9221 # Insert the option either (1) after the last *FLAGS variable, or
9222 # (2) before a word containing "conftest.", or (3) at the end.
9223 # Note that $ac_compile itself does not contain backslashes and begins
9224 # with a dollar sign (not a hyphen), so the echo should work correctly.
9225 lt_compile
=`echo "$ac_compile" | $SED \
9226 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9227 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9228 -e 's:$: $lt_compiler_flag:'`
9229 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9230 (eval "$lt_compile" 2>out
/conftest.err
)
9232 cat out
/conftest.err
>&5
9233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9236 # The compiler can only warn and ignore the option if not recognized
9237 # So say no if there are warnings
9238 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
9239 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9240 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9241 lt_cv_prog_compiler_c_o
=yes
9246 # SGI C++ compiler will create directory out/ii_files/ for
9247 # template instantiation
9248 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9249 $RM out
/* && rmdir out
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9256 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9264 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9265 if ${lt_cv_prog_compiler_c_o+:} false
; then :
9266 $as_echo_n "(cached) " >&6
9268 lt_cv_prog_compiler_c_o
=no
9269 $RM -r conftest
2>/dev
/null
9273 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9275 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9276 # Insert the option either (1) after the last *FLAGS variable, or
9277 # (2) before a word containing "conftest.", or (3) at the end.
9278 # Note that $ac_compile itself does not contain backslashes and begins
9279 # with a dollar sign (not a hyphen), so the echo should work correctly.
9280 lt_compile
=`echo "$ac_compile" | $SED \
9281 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9282 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9283 -e 's:$: $lt_compiler_flag:'`
9284 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9285 (eval "$lt_compile" 2>out
/conftest.err
)
9287 cat out
/conftest.err
>&5
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9291 # The compiler can only warn and ignore the option if not recognized
9292 # So say no if there are warnings
9293 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
9294 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9295 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9296 lt_cv_prog_compiler_c_o
=yes
9301 # SGI C++ compiler will create directory out/ii_files/ for
9302 # template instantiation
9303 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9304 $RM out
/* && rmdir out
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9311 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9316 hard_links
="nottested"
9317 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
9318 # do not overwrite the value of need_locks provided by the user
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9320 $as_echo_n "checking if we can lock with hard links... " >&6; }
9323 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9325 ln conftest.a conftest.b
2>&5 || hard_links
=no
9326 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9328 $as_echo "$hard_links" >&6; }
9329 if test "$hard_links" = no
; then
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9331 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9344 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9347 allow_undefined_flag
=
9348 always_export_symbols
=no
9350 archive_expsym_cmds
=
9351 compiler_needs_object
=no
9352 enable_shared_with_static_runtimes
=no
9353 export_dynamic_flag_spec
=
9354 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9355 hardcode_automatic
=no
9357 hardcode_direct_absolute
=no
9358 hardcode_libdir_flag_spec
=
9359 hardcode_libdir_flag_spec_ld
=
9360 hardcode_libdir_separator
=
9362 hardcode_shlibpath_var
=unsupported
9364 link_all_deplibs
=unknown
9367 old_archive_from_new_cmds
=
9368 old_archive_from_expsyms_cmds
=
9369 thread_safe_flag_spec
=
9370 whole_archive_flag_spec
=
9371 # include_expsyms should be a list of space-separated symbols to be *always*
9372 # included in the symbol list
9374 # exclude_expsyms can be an extended regexp of symbols to exclude
9375 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9376 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9377 # as well as any symbol that contains `d'.
9378 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9379 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9380 # platforms (ab)use it in PIC code, but their linkers get confused if
9381 # the symbol is explicitly referenced. Since portable code cannot
9382 # rely on this symbol name, it's probably fine to never include it in
9383 # preloaded symbol tables.
9384 # Exclude shared library initialization/finalization symbols.
9385 extract_expsyms_cmds
=
9388 cygwin
* | mingw
* | pw32
* | cegcc
*)
9389 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9390 # When not using gcc, we currently assume that we are using
9391 # Microsoft Visual C++.
9392 if test "$GCC" != yes; then
9397 # we just hope/assume this is gcc and not c89 (= MSVC++)
9407 # On some targets, GNU ld is compatible enough with the native linker
9408 # that we're better off using the native interface for both.
9409 lt_use_gnu_ld_interface
=no
9410 if test "$with_gnu_ld" = yes; then
9413 # The AIX port of GNU ld has always aspired to compatibility
9414 # with the native linker. However, as the warning in the GNU ld
9415 # block says, versions before 2.19.5* couldn't really create working
9416 # shared libraries, regardless of the interface used.
9417 case `$LD -v 2>&1` in
9418 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
9419 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
9420 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
9422 lt_use_gnu_ld_interface
=yes
9427 lt_use_gnu_ld_interface
=yes
9432 if test "$lt_use_gnu_ld_interface" = yes; then
9433 # If archive_cmds runs LD, not CC, wlarc should be empty
9436 # Set some defaults for GNU ld with shared library support. These
9437 # are reset later if shared libraries are not supported. Putting them
9438 # here allows them to be overridden if necessary.
9439 runpath_var
=LD_RUN_PATH
9440 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9441 export_dynamic_flag_spec
='${wl}--export-dynamic'
9442 # ancient GNU ld didn't support --whole-archive et. al.
9443 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
9444 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9446 whole_archive_flag_spec
=
9448 supports_anon_versioning
=no
9449 case `$LD -v 2>&1` in
9450 *GNU\ gold
*) supports_anon_versioning
=yes ;;
9451 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
9452 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
9453 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
9454 *\
2.11.
*) ;; # other 2.11 versions
9455 *) supports_anon_versioning
=yes ;;
9458 # See if GNU ld supports shared libraries.
9461 # On AIX/PPC, the GNU linker is very broken
9462 if test "$host_cpu" != ia64
; then
9466 *** Warning: the GNU linker, at least up to release 2.19, is reported
9467 *** to be unable to reliably create shared libraries on AIX.
9468 *** Therefore, libtool is disabling shared libraries support. If you
9469 *** really care for shared libraries, you may want to install binutils
9470 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9471 *** You will then need to restart the configuration process.
9480 # see comment about AmigaOS4 .so support
9481 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9482 archive_expsym_cmds
=''
9485 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)'
9486 hardcode_libdir_flag_spec
='-L$libdir'
9487 hardcode_minus_L
=yes
9493 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9494 allow_undefined_flag
=unsupported
9495 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9496 # support --undefined. This deserves some investigation. FIXME
9497 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9503 cygwin
* | mingw
* | pw32
* | cegcc
*)
9504 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9505 # as there is no search path for DLLs.
9506 hardcode_libdir_flag_spec
='-L$libdir'
9507 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9508 allow_undefined_flag
=unsupported
9509 always_export_symbols
=no
9510 enable_shared_with_static_runtimes
=yes
9511 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9513 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9514 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9515 # If the export-symbols file already is a .def file (1st line
9516 # is EXPORTS), use it as is; otherwise, prepend...
9517 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9518 cp $export_symbols $output_objdir/$soname.def;
9520 echo EXPORTS > $output_objdir/$soname.def;
9521 cat $export_symbols >> $output_objdir/$soname.def;
9523 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9530 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9531 link_all_deplibs
=yes
9536 hardcode_shlibpath_var
=no
9537 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9538 export_dynamic_flag_spec
='${wl}-E'
9539 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9540 # Instead, shared libraries are loaded at an image base (0x10000000 by
9541 # default) and relocated if they conflict, which is a slow very memory
9542 # consuming and fragmenting process. To avoid this, we pick a random,
9543 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9544 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9545 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9546 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'
9549 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
9551 if test "$host_os" = linux-dietlibc
; then
9552 case $cc_basename in
9553 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9556 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9557 && test "$tmp_diet" = no
9559 tmp_addflag
=' $pic_flag'
9560 tmp_sharedflag
='-shared'
9561 case $cc_basename,$host_cpu in
9562 pgcc
*) # Portland Group C compiler
9563 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'
9564 tmp_addflag
=' $pic_flag'
9566 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9567 # Portland Group f77 and f90 compilers
9568 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'
9569 tmp_addflag
=' $pic_flag -Mnomain' ;;
9570 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9571 tmp_addflag
=' -i_dynamic' ;;
9572 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9573 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9574 ifc
* | ifort
*) # Intel Fortran compiler
9575 tmp_addflag
=' -nofor_main' ;;
9576 lf95
*) # Lahey Fortran 8.1
9577 whole_archive_flag_spec
=
9578 tmp_sharedflag
='--shared' ;;
9579 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9580 tmp_sharedflag
='-qmkshrobj'
9582 nvcc
*) # Cuda Compiler Driver 2.2
9583 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'
9584 compiler_needs_object
=yes
9587 case `$CC -V 2>&1 | sed 5q` in
9588 *Sun\ C
*) # Sun C 5.9
9589 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'
9590 compiler_needs_object
=yes
9591 tmp_sharedflag
='-G' ;;
9592 *Sun\ F
*) # Sun Fortran 8.3
9593 tmp_sharedflag
='-G' ;;
9595 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9597 if test "x$supports_anon_versioning" = xyes
; then
9598 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9599 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9600 echo "local: *; };" >> $output_objdir/$libname.ver~
9601 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9604 case $cc_basename in
9605 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9606 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9607 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9608 hardcode_libdir_flag_spec
=
9609 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9610 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9611 if test "x$supports_anon_versioning" = xyes
; then
9612 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9613 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9614 echo "local: *; };" >> $output_objdir/$libname.ver~
9615 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9625 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9626 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9629 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9630 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9635 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9639 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9640 *** create shared libraries on Solaris systems. Therefore, libtool
9641 *** is disabling shared libraries support. We urge you to upgrade GNU
9642 *** binutils to release 2.9.1 or newer. Another option is to modify
9643 *** your PATH or compiler configuration so that the native linker is
9644 *** used, and then restart.
9647 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9648 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9649 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9655 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9656 case `$LD -v 2>&1` in
9657 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9661 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9662 *** reliably create shared libraries on SCO systems. Therefore, libtool
9663 *** is disabling shared libraries support. We urge you to upgrade GNU
9664 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9665 *** your PATH or compiler configuration so that the native linker is
9666 *** used, and then restart.
9671 # For security reasons, it is highly recommended that you always
9672 # use absolute paths for naming shared libraries, and exclude the
9673 # DT_RUNPATH tag from executables and libraries. But doing so
9674 # requires that you compile everything twice, which is a pain.
9675 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9676 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9677 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9678 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9687 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9690 hardcode_shlibpath_var
=no
9694 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9695 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9696 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9703 if test "$ld_shlibs" = no
; then
9705 hardcode_libdir_flag_spec
=
9706 export_dynamic_flag_spec
=
9707 whole_archive_flag_spec
=
9710 # PORTME fill in a description of your system's linker (not GNU ld)
9713 allow_undefined_flag
=unsupported
9714 always_export_symbols
=yes
9715 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'
9716 # Note: this linker hardcodes the directories in LIBPATH if there
9717 # are no directories specified by -L.
9718 hardcode_minus_L
=yes
9719 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9720 # Neither direct hardcoding nor static linking is supported with a
9722 hardcode_direct
=unsupported
9727 if test "$host_cpu" = ia64
; then
9728 # On IA64, the linker does run time linking by default, so we don't
9729 # have to do anything special.
9730 aix_use_runtimelinking
=no
9731 exp_sym_flag
='-Bexport'
9734 # If we're using GNU nm, then we don't want the "-C" option.
9735 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9736 # Also, AIX nm treats weak defined symbols like other global
9737 # defined symbols, whereas GNU nm marks them as "W".
9738 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9739 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'
9741 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'
9743 aix_use_runtimelinking
=no
9745 # Test if we are trying to use run time linking or normal
9746 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9747 # need to do runtime linking.
9748 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9749 for ld_flag
in $LDFLAGS; do
9750 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9751 aix_use_runtimelinking
=yes
9758 exp_sym_flag
='-bexport'
9759 no_entry_flag
='-bnoentry'
9762 # When large executables or shared objects are built, AIX ld can
9763 # have problems creating the table of contents. If linking a library
9764 # or program results in "error TOC overflow" add -mminimal-toc to
9765 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9766 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9770 hardcode_direct_absolute
=yes
9771 hardcode_libdir_separator
=':'
9772 link_all_deplibs
=yes
9773 file_list_spec
='${wl}-f,'
9775 if test "$GCC" = yes; then
9776 case $host_os in aix4.
[012]|aix4.
[012].
*)
9777 # We only want to do this on AIX 4.2 and lower, the check
9778 # below for broken collect2 doesn't work under 4.3+
9779 collect2name
=`${CC} -print-prog-name=collect2`
9780 if test -f "$collect2name" &&
9781 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9783 # We have reworked collect2
9786 # We have old collect2
9787 hardcode_direct
=unsupported
9788 # It fails to find uninstalled libraries when the uninstalled
9789 # path is not listed in the libpath. Setting hardcode_minus_L
9790 # to unsupported forces relinking
9791 hardcode_minus_L
=yes
9792 hardcode_libdir_flag_spec
='-L$libdir'
9793 hardcode_libdir_separator
=
9797 shared_flag
='-shared'
9798 if test "$aix_use_runtimelinking" = yes; then
9799 shared_flag
="$shared_flag "'${wl}-G'
9803 if test "$host_cpu" = ia64
; then
9804 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9805 # chokes on -Wl,-G. The following line is correct:
9808 if test "$aix_use_runtimelinking" = yes; then
9809 shared_flag
='${wl}-G'
9811 shared_flag
='${wl}-bM:SRE'
9816 export_dynamic_flag_spec
='${wl}-bexpall'
9817 # It seems that -bexpall does not export symbols beginning with
9818 # underscore (_), so it is better to generate a list of symbols to export.
9819 always_export_symbols
=yes
9820 if test "$aix_use_runtimelinking" = yes; then
9821 # Warning - without using the other runtime loading flags (-brtl),
9822 # -berok will link without error, but may produce a broken library.
9823 allow_undefined_flag
='-berok'
9824 # Determine the default libpath from the value encoded in an
9826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9827 /* end confdefs.h. */
9837 if ac_fn_c_try_link
"$LINENO"; then :
9839 lt_aix_libpath_sed
='
9840 /Import File Strings/,/^$/ {
9846 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9847 # Check for a 64-bit object if we didn't find anything.
9848 if test -z "$aix_libpath"; then
9849 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9852 rm -f core conftest.err conftest.
$ac_objext \
9853 conftest
$ac_exeext conftest.
$ac_ext
9854 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9856 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9857 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"
9859 if test "$host_cpu" = ia64
; then
9860 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9861 allow_undefined_flag
="-z nodefs"
9862 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"
9864 # Determine the default libpath from the value encoded in an
9866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9867 /* end confdefs.h. */
9877 if ac_fn_c_try_link
"$LINENO"; then :
9879 lt_aix_libpath_sed
='
9880 /Import File Strings/,/^$/ {
9886 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9887 # Check for a 64-bit object if we didn't find anything.
9888 if test -z "$aix_libpath"; then
9889 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9892 rm -f core conftest.err conftest.
$ac_objext \
9893 conftest
$ac_exeext conftest.
$ac_ext
9894 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9896 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9897 # Warning - without using the other run time loading flags,
9898 # -berok will link without error, but may produce a broken library.
9899 no_undefined_flag
=' ${wl}-bernotok'
9900 allow_undefined_flag
=' ${wl}-berok'
9901 if test "$with_gnu_ld" = yes; then
9902 # We only use this code for GNU lds that support --whole-archive.
9903 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9905 # Exported symbols can be pulled into shared objects from archives
9906 whole_archive_flag_spec
='$convenience'
9908 archive_cmds_need_lc
=yes
9909 # This is similar to how AIX traditionally builds its shared libraries.
9910 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'
9918 # see comment about AmigaOS4 .so support
9919 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9920 archive_expsym_cmds
=''
9923 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)'
9924 hardcode_libdir_flag_spec
='-L$libdir'
9925 hardcode_minus_L
=yes
9931 export_dynamic_flag_spec
=-rdynamic
9934 cygwin
* | mingw
* | pw32
* | cegcc
*)
9935 # When not using gcc, we currently assume that we are using
9936 # Microsoft Visual C++.
9937 # hardcode_libdir_flag_spec is actually meaningless, as there is
9938 # no search path for DLLs.
9939 hardcode_libdir_flag_spec
=' '
9940 allow_undefined_flag
=unsupported
9941 # Tell ltmain to make .lib files, not .a files.
9943 # Tell ltmain to make .dll files, not .so files.
9945 # FIXME: Setting linknames here is a bad hack.
9946 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9947 # The linker will automatically build a .lib file if we build a DLL.
9948 old_archive_from_new_cmds
='true'
9949 # FIXME: Should let the user specify the lib program.
9950 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9951 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9952 enable_shared_with_static_runtimes
=yes
9955 darwin
* | rhapsody
*)
9958 archive_cmds_need_lc
=no
9960 hardcode_automatic
=yes
9961 hardcode_shlibpath_var
=unsupported
9962 if test "$lt_cv_ld_force_load" = "yes"; then
9963 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\"`'
9965 whole_archive_flag_spec
=''
9967 link_all_deplibs
=yes
9968 allow_undefined_flag
="$_lt_dar_allow_undefined"
9969 case $cc_basename in
9970 ifort
*) _lt_dar_can_shared
=yes ;;
9971 *) _lt_dar_can_shared
=$GCC ;;
9973 if test "$_lt_dar_can_shared" = "yes"; then
9974 output_verbose_link_cmd
=func_echo_all
9975 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9976 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9977 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}"
9978 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}"
9987 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9988 hardcode_libdir_flag_spec
='-L$libdir'
9989 hardcode_shlibpath_var
=no
9992 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9993 # support. Future versions do this automatically, but an explicit c++rt0.o
9994 # does not break anything, and helps significantly (at the cost of a little
9997 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9998 hardcode_libdir_flag_spec
='-R$libdir'
10000 hardcode_shlibpath_var
=no
10003 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10005 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10006 hardcode_direct
=yes
10007 hardcode_minus_L
=yes
10008 hardcode_shlibpath_var
=no
10011 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10012 freebsd
* | dragonfly
*)
10013 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10014 hardcode_libdir_flag_spec
='-R$libdir'
10015 hardcode_direct
=yes
10016 hardcode_shlibpath_var
=no
10020 if test "$GCC" = yes; then
10021 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'
10023 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'
10025 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10026 hardcode_libdir_separator
=:
10027 hardcode_direct
=yes
10029 # hardcode_minus_L: Not really in the search PATH,
10030 # but as the default location of the library.
10031 hardcode_minus_L
=yes
10032 export_dynamic_flag_spec
='${wl}-E'
10036 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
10037 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10039 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10041 if test "$with_gnu_ld" = no
; then
10042 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10043 hardcode_libdir_flag_spec_ld
='+b $libdir'
10044 hardcode_libdir_separator
=:
10045 hardcode_direct
=yes
10046 hardcode_direct_absolute
=yes
10047 export_dynamic_flag_spec
='${wl}-E'
10048 # hardcode_minus_L: Not really in the search PATH,
10049 # but as the default location of the library.
10050 hardcode_minus_L
=yes
10055 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
10058 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10061 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10064 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10070 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10073 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10077 # Older versions of the 11.00 compiler do not understand -b yet
10078 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10080 $as_echo_n "checking if $CC understands -b... " >&6; }
10081 if ${lt_cv_prog_compiler__b+:} false
; then :
10082 $as_echo_n "(cached) " >&6
10084 lt_cv_prog_compiler__b
=no
10085 save_LDFLAGS
="$LDFLAGS"
10086 LDFLAGS
="$LDFLAGS -b"
10087 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
10088 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
10089 # The linker can only warn and ignore the option if not recognized
10090 # So say no if there are warnings
10091 if test -s conftest.err
; then
10092 # Append any errors to the config.log.
10093 cat conftest.err
1>&5
10094 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
10095 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
10096 if diff conftest.exp conftest.er2
>/dev
/null
; then
10097 lt_cv_prog_compiler__b
=yes
10100 lt_cv_prog_compiler__b
=yes
10104 LDFLAGS
="$save_LDFLAGS"
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10108 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10110 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
10111 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10113 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10119 if test "$with_gnu_ld" = no
; then
10120 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10121 hardcode_libdir_separator
=:
10126 hardcode_shlibpath_var
=no
10129 hardcode_direct
=yes
10130 hardcode_direct_absolute
=yes
10131 export_dynamic_flag_spec
='${wl}-E'
10133 # hardcode_minus_L: Not really in the search PATH,
10134 # but as the default location of the library.
10135 hardcode_minus_L
=yes
10141 irix5
* | irix6
* | nonstopux
*)
10142 if test "$GCC" = yes; then
10143 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'
10144 # Try to use the -exported_symbol ld option, if it does not
10145 # work, assume that -exports_file does not work either and
10146 # implicitly export all symbols.
10147 save_LDFLAGS
="$LDFLAGS"
10148 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10150 /* end confdefs.h. */
10153 if ac_fn_c_try_link
"$LINENO"; then :
10154 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'
10157 rm -f core conftest.err conftest.
$ac_objext \
10158 conftest
$ac_exeext conftest.
$ac_ext
10159 LDFLAGS
="$save_LDFLAGS"
10161 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'
10162 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'
10164 archive_cmds_need_lc
='no'
10165 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10166 hardcode_libdir_separator
=:
10168 link_all_deplibs
=yes
10172 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10173 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10175 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10177 hardcode_libdir_flag_spec
='-R$libdir'
10178 hardcode_direct
=yes
10179 hardcode_shlibpath_var
=no
10183 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10184 hardcode_direct
=yes
10185 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10186 hardcode_libdir_separator
=:
10187 hardcode_shlibpath_var
=no
10194 if test -f /usr
/libexec
/ld.so
; then
10195 hardcode_direct
=yes
10196 hardcode_shlibpath_var
=no
10197 hardcode_direct_absolute
=yes
10198 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10199 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10200 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10201 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10202 export_dynamic_flag_spec
='${wl}-E'
10205 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
10206 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10207 hardcode_libdir_flag_spec
='-R$libdir'
10210 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10211 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10221 hardcode_libdir_flag_spec
='-L$libdir'
10222 hardcode_minus_L
=yes
10223 allow_undefined_flag
=unsupported
10224 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'
10225 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10229 if test "$GCC" = yes; then
10230 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10231 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'
10233 allow_undefined_flag
=' -expect_unresolved \*'
10234 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'
10236 archive_cmds_need_lc
='no'
10237 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10238 hardcode_libdir_separator
=:
10241 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
10242 if test "$GCC" = yes; then
10243 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10244 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'
10245 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10247 allow_undefined_flag
=' -expect_unresolved \*'
10248 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'
10249 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~
10250 $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'
10252 # Both c and cxx compiler support -rpath directly
10253 hardcode_libdir_flag_spec
='-rpath $libdir'
10255 archive_cmds_need_lc
='no'
10256 hardcode_libdir_separator
=:
10260 no_undefined_flag
=' -z defs'
10261 if test "$GCC" = yes; then
10263 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10264 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10265 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10267 case `$CC -V 2>&1` in
10270 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10271 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10272 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10276 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10277 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10278 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10282 hardcode_libdir_flag_spec
='-R$libdir'
10283 hardcode_shlibpath_var
=no
10285 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10287 # The compiler driver will combine and reorder linker options,
10288 # but understands `-z linker_flag'. GCC discards it without `$wl',
10289 # but is careful enough not to reorder.
10290 # Supported since Solaris 2.6 (maybe 2.5.1?)
10291 if test "$GCC" = yes; then
10292 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10294 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10298 link_all_deplibs
=yes
10302 if test "x$host_vendor" = xsequent
; then
10303 # Use $CC to link under sequent, because it throws in some extra .o
10304 # files that make .init and .fini sections work.
10305 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10307 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10309 hardcode_libdir_flag_spec
='-L$libdir'
10310 hardcode_direct
=yes
10311 hardcode_minus_L
=yes
10312 hardcode_shlibpath_var
=no
10316 case $host_vendor in
10318 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10319 hardcode_direct
=yes # is this really true???
10322 ## LD is ld it makes a PLAMLIB
10323 ## CC just makes a GrossModule.
10324 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10325 reload_cmds
='$CC -r -o $output$reload_objs'
10329 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10330 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10333 runpath_var
='LD_RUN_PATH'
10334 hardcode_shlibpath_var
=no
10338 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10339 hardcode_shlibpath_var
=no
10340 export_dynamic_flag_spec
='-Bexport'
10344 if test -d /usr
/nec
; then
10345 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10346 hardcode_shlibpath_var
=no
10347 runpath_var
=LD_RUN_PATH
10348 hardcode_runpath_var
=yes
10353 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10354 no_undefined_flag
='${wl}-z,text'
10355 archive_cmds_need_lc
=no
10356 hardcode_shlibpath_var
=no
10357 runpath_var
='LD_RUN_PATH'
10359 if test "$GCC" = yes; then
10360 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10361 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10363 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10364 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10368 sysv5
* | sco3.2v5
* | sco5v6
*)
10369 # Note: We can NOT use -z defs as we might desire, because we do not
10370 # link with -lc, and that would cause any symbols used from libc to
10371 # always be unresolved, which means just about no library would
10372 # ever link correctly. If we're not using GNU ld we use -z text
10373 # though, which does catch some bad symbols but isn't as heavy-handed
10375 no_undefined_flag
='${wl}-z,text'
10376 allow_undefined_flag
='${wl}-z,nodefs'
10377 archive_cmds_need_lc
=no
10378 hardcode_shlibpath_var
=no
10379 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10380 hardcode_libdir_separator
=':'
10381 link_all_deplibs
=yes
10382 export_dynamic_flag_spec
='${wl}-Bexport'
10383 runpath_var
='LD_RUN_PATH'
10385 if test "$GCC" = yes; then
10386 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10387 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10389 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10390 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10395 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10396 hardcode_libdir_flag_spec
='-L$libdir'
10397 hardcode_shlibpath_var
=no
10405 if test x
$host_vendor = xsni
; then
10407 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10408 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10415 $as_echo "$ld_shlibs" >&6; }
10416 test "$ld_shlibs" = no
&& can_build_shared
=no
10418 with_gnu_ld
=$with_gnu_ld
10435 # Do we need to explicitly link libc?
10437 case "x$archive_cmds_need_lc" in
10439 # Assume -lc should be added
10440 archive_cmds_need_lc
=yes
10442 if test "$enable_shared" = yes && test "$GCC" = yes; then
10443 case $archive_cmds in
10445 # FIXME: we may have to deal with multi-command sequences.
10448 # Test whether the compiler implicitly links with -lc since on some
10449 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10450 # to ld, don't add -lc before -lgcc.
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10452 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10453 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10454 $as_echo_n "(cached) " >&6
10457 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10459 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10460 (eval $ac_compile) 2>&5
10462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10463 test $ac_status = 0; } 2>conftest.err
; then
10466 libobjs
=conftest.
$ac_objext
10468 wl
=$lt_prog_compiler_wl
10469 pic_flag
=$lt_prog_compiler_pic
10475 lt_save_allow_undefined_flag
=$allow_undefined_flag
10476 allow_undefined_flag
=
10477 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10478 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10481 test $ac_status = 0; }
10483 lt_cv_archive_cmds_need_lc
=no
10485 lt_cv_archive_cmds_need_lc
=yes
10487 allow_undefined_flag
=$lt_save_allow_undefined_flag
10489 cat conftest.err
1>&5
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10495 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10496 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10660 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10662 if test "$GCC" = yes; then
10664 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10665 *) lt_awk_arg
="/^libraries:/" ;;
10668 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10669 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10671 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10672 case $lt_search_path_spec in
10674 # if the path contains ";" then we assume it to be the separator
10675 # otherwise default to the standard path separator (i.e. ":") - it is
10676 # assumed that no part of a normal pathname contains ";" but that should
10677 # okay in the real world where ";" in dirpaths is itself problematic.
10678 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10681 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10684 # Ok, now we have the path, separated by spaces, we can step through it
10685 # and add multilib dir if necessary.
10686 lt_tmp_lt_search_path_spec
=
10687 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10688 for lt_sys_path
in $lt_search_path_spec; do
10689 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10690 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10692 test -d "$lt_sys_path" && \
10693 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10696 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10697 BEGIN {RS=" "; FS="/|\n";} {
10700 for (lt_i = NF; lt_i > 0; lt_i--) {
10701 if ($lt_i != "" && $lt_i != ".") {
10702 if ($lt_i == "..") {
10705 if (lt_count == 0) {
10706 lt_foo="/" $lt_i lt_foo;
10713 if (lt_foo != "") { lt_freq[lt_foo]++; }
10714 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10716 # AWK program above erroneously prepends '/' to C:/dos/paths
10719 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10720 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10722 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10724 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10726 library_names_spec
=
10727 libname_spec
='lib$name'
10731 postuninstall_cmds
=
10735 shlibpath_overrides_runpath
=unknown
10737 dynamic_linker
="$host_os ld.so"
10738 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10739 need_lib_prefix
=unknown
10740 hardcode_into_libs
=no
10742 # when you set need_version to no, make sure it does not cause -set_version
10743 # flags to be left without arguments
10744 need_version
=unknown
10749 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10750 shlibpath_var
=LIBPATH
10752 # AIX 3 has no versioning support, so we append a major version to the name.
10753 soname_spec
='${libname}${release}${shared_ext}$major'
10760 hardcode_into_libs
=yes
10761 if test "$host_cpu" = ia64
; then
10762 # AIX 5 supports IA64
10763 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10764 shlibpath_var
=LD_LIBRARY_PATH
10766 # With GCC up to 2.95.x, collect2 would create an import file
10767 # for dependence libraries. The import file would start with
10768 # the line `#! .'. This would cause the generated library to
10769 # depend on `.', always an invalid library. This was fixed in
10770 # development snapshots of GCC prior to 3.0.
10772 aix4 | aix4.
[01] | aix4.
[01].
*)
10773 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10775 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10778 can_build_shared
=no
10782 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10783 # soname into executable. Probably we can add versioning support to
10784 # collect2, so additional links can be useful in future.
10785 if test "$aix_use_runtimelinking" = yes; then
10786 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10787 # instead of lib<name>.a to let people know that these are not
10788 # typical AIX shared libraries.
10789 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10791 # We preserve .a as extension for shared libraries through AIX4.2
10792 # and later when we are not doing run time linking.
10793 library_names_spec
='${libname}${release}.a $libname.a'
10794 soname_spec
='${libname}${release}${shared_ext}$major'
10796 shlibpath_var
=LIBPATH
10803 # Since July 2007 AmigaOS4 officially supports .so libraries.
10804 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10805 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10808 library_names_spec
='$libname.ixlibrary $libname.a'
10809 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10810 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'
10816 library_names_spec
='${libname}${shared_ext}'
10817 dynamic_linker
="$host_os ld.so"
10818 shlibpath_var
=LIBRARY_PATH
10824 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10825 soname_spec
='${libname}${release}${shared_ext}$major'
10826 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10827 shlibpath_var
=LD_LIBRARY_PATH
10828 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10829 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10830 # the default ld.so.conf also contains /usr/contrib/lib and
10831 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10832 # libtool to hard-code these into programs
10835 cygwin
* | mingw
* | pw32
* | cegcc
*)
10836 version_type
=windows
10841 case $GCC,$host_os in
10842 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10843 library_names_spec
='$libname.dll.a'
10844 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10845 postinstall_cmds
='base_file=`basename \${file}`~
10846 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10847 dldir=$destdir/`dirname \$dlpath`~
10848 test -d \$dldir || mkdir -p \$dldir~
10849 $install_prog $dir/$dlname \$dldir/$dlname~
10850 chmod a+x \$dldir/$dlname~
10851 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10852 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10854 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10855 dlpath=$dir/\$dldll~
10857 shlibpath_overrides_runpath
=yes
10861 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10862 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10864 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10867 # MinGW DLLs use traditional 'lib' prefix
10868 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10871 # pw32 DLLs use 'pw' prefix rather than 'lib'
10872 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10878 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10881 dynamic_linker
='Win32 ld.exe'
10882 # FIXME: first we should search . and the directory the executable is in
10886 darwin
* | rhapsody
*)
10887 dynamic_linker
="$host_os dyld"
10888 version_type
=darwin
10891 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10892 soname_spec
='${libname}${release}${major}$shared_ext'
10893 shlibpath_overrides_runpath
=yes
10894 shlibpath_var
=DYLD_LIBRARY_PATH
10895 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10897 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10898 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10905 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10906 soname_spec
='${libname}${release}${shared_ext}$major'
10907 shlibpath_var
=LD_LIBRARY_PATH
10910 freebsd
* | dragonfly
*)
10911 # DragonFly does not have aout. When/if they implement a new
10912 # versioning mechanism, adjust this.
10913 if test -x /usr
/bin
/objformat
; then
10914 objformat
=`/usr/bin/objformat`
10917 freebsd
[23].
*) objformat
=aout
;;
10918 *) objformat
=elf
;;
10921 version_type
=freebsd-
$objformat
10922 case $version_type in
10924 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10929 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10933 shlibpath_var
=LD_LIBRARY_PATH
10936 shlibpath_overrides_runpath
=yes
10938 freebsd3.
[01]* | freebsdelf3.
[01]*)
10939 shlibpath_overrides_runpath
=yes
10940 hardcode_into_libs
=yes
10942 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10943 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10944 shlibpath_overrides_runpath
=no
10945 hardcode_into_libs
=yes
10947 *) # from 4.6 on, and DragonFly
10948 shlibpath_overrides_runpath
=yes
10949 hardcode_into_libs
=yes
10958 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10959 soname_spec
='${libname}${release}${shared_ext}$major'
10960 shlibpath_var
=LD_LIBRARY_PATH
10961 hardcode_into_libs
=yes
10968 dynamic_linker
="$host_os runtime_loader"
10969 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10970 soname_spec
='${libname}${release}${shared_ext}$major'
10971 shlibpath_var
=LIBRARY_PATH
10972 shlibpath_overrides_runpath
=yes
10973 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10974 hardcode_into_libs
=yes
10977 hpux9
* | hpux10
* | hpux11
*)
10978 # Give a soname corresponding to the major version so that dld.sl refuses to
10979 # link against other versions.
10986 hardcode_into_libs
=yes
10987 dynamic_linker
="$host_os dld.so"
10988 shlibpath_var
=LD_LIBRARY_PATH
10989 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10990 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10991 soname_spec
='${libname}${release}${shared_ext}$major'
10992 if test "X$HPUX_IA64_MODE" = X32
; then
10993 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10995 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10997 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11001 hardcode_into_libs
=yes
11002 dynamic_linker
="$host_os dld.sl"
11003 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
11004 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11005 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11006 soname_spec
='${libname}${release}${shared_ext}$major'
11007 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11008 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11012 dynamic_linker
="$host_os dld.sl"
11013 shlibpath_var
=SHLIB_PATH
11014 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
11015 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11016 soname_spec
='${libname}${release}${shared_ext}$major'
11019 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11020 postinstall_cmds
='chmod 555 $lib'
11021 # or fails outright, so override atomically:
11022 install_override_mode
=555
11029 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11030 soname_spec
='${libname}${release}${shared_ext}$major'
11031 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
11032 shlibpath_var
=LD_LIBRARY_PATH
11033 shlibpath_overrides_runpath
=no
11034 hardcode_into_libs
=yes
11037 irix5
* | irix6
* | nonstopux
*)
11039 nonstopux
*) version_type
=nonstopux
;;
11041 if test "$lt_cv_prog_gnu_ld" = yes; then
11049 soname_spec
='${libname}${release}${shared_ext}$major'
11050 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11052 irix5
* | nonstopux
*)
11053 libsuff
= shlibsuff
=
11056 case $LD in # libtool.m4 will add one of these switches to LD
11057 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
11058 libsuff
= shlibsuff
= libmagic
=32-bit;;
11059 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
11060 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
11061 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
11062 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
11063 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
11067 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
11068 shlibpath_overrides_runpath
=no
11069 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11070 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
11071 hardcode_into_libs
=yes
11074 # No shared lib support for Linux oldld, aout, or coff.
11075 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
11079 # This must be Linux ELF.
11081 # uclinux* changes (here and below) have been submitted to the libtool
11082 # project, but have not yet been accepted: they are GCC-local changes
11083 # for the time being. (See
11084 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11085 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
11089 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11090 soname_spec
='${libname}${release}${shared_ext}$major'
11091 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11092 shlibpath_var
=LD_LIBRARY_PATH
11093 shlibpath_overrides_runpath
=no
11095 # Some binutils ld are patched to set DT_RUNPATH
11096 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
11097 $as_echo_n "(cached) " >&6
11099 lt_cv_shlibpath_overrides_runpath
=no
11100 save_LDFLAGS
=$LDFLAGS
11101 save_libdir
=$libdir
11102 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11103 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11105 /* end confdefs.h. */
11115 if ac_fn_c_try_link
"$LINENO"; then :
11116 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
11117 lt_cv_shlibpath_overrides_runpath
=yes
11120 rm -f core conftest.err conftest.
$ac_objext \
11121 conftest
$ac_exeext conftest.
$ac_ext
11122 LDFLAGS
=$save_LDFLAGS
11123 libdir
=$save_libdir
11127 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
11129 # This implies no fast_install, which is unacceptable.
11130 # Some rework will be needed to allow for fast_install
11131 # before this can be enabled.
11132 hardcode_into_libs
=yes
11134 # Append ld.so.conf contents to the search path
11135 if test -f /etc
/ld.so.conf
; then
11136 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' ' '`
11137 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
11140 # We used to test for /lib/ld.so.1 and disable shared libraries on
11141 # powerpc, because MkLinux only supported shared libraries with the
11142 # GNU dynamic linker. Since this was broken with cross compilers,
11143 # most powerpc-linux boxes support dynamic linking these days and
11144 # people can always --disable-shared, the test was removed, and we
11145 # assume the GNU/Linux dynamic linker is in use.
11146 dynamic_linker
='GNU/Linux ld.so'
11153 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
11154 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11155 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11156 dynamic_linker
='NetBSD (a.out) ld.so'
11158 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11159 soname_spec
='${libname}${release}${shared_ext}$major'
11160 dynamic_linker
='NetBSD ld.elf_so'
11162 shlibpath_var
=LD_LIBRARY_PATH
11163 shlibpath_overrides_runpath
=yes
11164 hardcode_into_libs
=yes
11169 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11170 shlibpath_var
=LD_LIBRARY_PATH
11171 shlibpath_overrides_runpath
=yes
11178 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11179 soname_spec
='${libname}${release}${shared_ext}$major'
11180 shlibpath_var
=LD_LIBRARY_PATH
11181 shlibpath_overrides_runpath
=no
11182 hardcode_into_libs
=yes
11183 dynamic_linker
='ldqnx.so'
11188 sys_lib_dlsearch_path_spec
="/usr/lib"
11190 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11192 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
11193 *) need_version
=no
;;
11195 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11196 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11197 shlibpath_var
=LD_LIBRARY_PATH
11198 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11200 openbsd2.
[89] | openbsd2.
[89].
*)
11201 shlibpath_overrides_runpath
=no
11204 shlibpath_overrides_runpath
=yes
11208 shlibpath_overrides_runpath
=yes
11213 libname_spec
='$name'
11216 library_names_spec
='$libname${shared_ext} $libname.a'
11217 dynamic_linker
='OS/2 ld.exe'
11218 shlibpath_var
=LIBPATH
11221 osf3
* | osf4
* | osf5
*)
11225 soname_spec
='${libname}${release}${shared_ext}$major'
11226 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11227 shlibpath_var
=LD_LIBRARY_PATH
11228 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11229 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
11240 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11241 soname_spec
='${libname}${release}${shared_ext}$major'
11242 shlibpath_var
=LD_LIBRARY_PATH
11243 shlibpath_overrides_runpath
=yes
11244 hardcode_into_libs
=yes
11245 # ldd complains unless libraries are executable
11246 postinstall_cmds
='chmod +x $lib'
11251 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11252 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11253 shlibpath_var
=LD_LIBRARY_PATH
11254 shlibpath_overrides_runpath
=yes
11255 if test "$with_gnu_ld" = yes; then
11263 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11264 soname_spec
='${libname}${release}${shared_ext}$major'
11265 shlibpath_var
=LD_LIBRARY_PATH
11266 case $host_vendor in
11268 shlibpath_overrides_runpath
=no
11270 runpath_var
=LD_RUN_PATH
11278 shlibpath_overrides_runpath
=no
11279 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11285 if test -d /usr
/nec
;then
11287 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11288 soname_spec
='$libname${shared_ext}.$major'
11289 shlibpath_var
=LD_LIBRARY_PATH
11293 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11294 version_type
=freebsd-elf
11297 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11298 soname_spec
='${libname}${release}${shared_ext}$major'
11299 shlibpath_var
=LD_LIBRARY_PATH
11300 shlibpath_overrides_runpath
=yes
11301 hardcode_into_libs
=yes
11302 if test "$with_gnu_ld" = yes; then
11303 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11305 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11308 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11312 sys_lib_dlsearch_path_spec
='/usr/lib'
11316 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11320 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11321 shlibpath_var
=LD_LIBRARY_PATH
11322 shlibpath_overrides_runpath
=no
11323 hardcode_into_libs
=yes
11328 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11329 soname_spec
='${libname}${release}${shared_ext}$major'
11330 shlibpath_var
=LD_LIBRARY_PATH
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11338 $as_echo "$dynamic_linker" >&6; }
11339 test "$dynamic_linker" = no
&& can_build_shared
=no
11341 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11342 if test "$GCC" = yes; then
11343 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11346 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11347 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
11349 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11350 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11445 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11447 if test -n "$hardcode_libdir_flag_spec" ||
11448 test -n "$runpath_var" ||
11449 test "X$hardcode_automatic" = "Xyes" ; then
11451 # We can hardcode non-existent directories.
11452 if test "$hardcode_direct" != no
&&
11453 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11454 # have to relink, otherwise we might link with an installed library
11455 # when we should be linking with a yet-to-be-installed one
11456 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11457 test "$hardcode_minus_L" != no
; then
11458 # Linking always hardcodes the temporary library directory.
11459 hardcode_action
=relink
11461 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11462 hardcode_action
=immediate
11465 # We cannot hardcode anything, or else we can only hardcode existing
11467 hardcode_action
=unsupported
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11470 $as_echo "$hardcode_action" >&6; }
11472 if test "$hardcode_action" = relink ||
11473 test "$inherit_rpath" = yes; then
11474 # Fast installation is not supported
11475 enable_fast_install
=no
11476 elif test "$shlibpath_overrides_runpath" = yes ||
11477 test "$enable_shared" = no
; then
11478 # Fast installation is not necessary
11479 enable_fast_install
=needless
11487 if test "x$enable_dlopen" != xyes
; then
11488 enable_dlopen
=unknown
11489 enable_dlopen_self
=unknown
11490 enable_dlopen_self_static
=unknown
11497 lt_cv_dlopen
="load_add_on"
11499 lt_cv_dlopen_self
=yes
11502 mingw
* | pw32
* | cegcc
*)
11503 lt_cv_dlopen
="LoadLibrary"
11508 lt_cv_dlopen
="dlopen"
11513 # if libdl is installed we need to link against it
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11515 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11516 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11517 $as_echo_n "(cached) " >&6
11519 ac_check_lib_save_LIBS
=$LIBS
11521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11522 /* end confdefs.h. */
11524 /* Override any GCC internal prototype to avoid an error.
11525 Use char because int might match the return type of a GCC
11526 builtin and then its argument prototype would still apply. */
11539 if ac_fn_c_try_link
"$LINENO"; then :
11540 ac_cv_lib_dl_dlopen
=yes
11542 ac_cv_lib_dl_dlopen
=no
11544 rm -f core conftest.err conftest.
$ac_objext \
11545 conftest
$ac_exeext conftest.
$ac_ext
11546 LIBS
=$ac_check_lib_save_LIBS
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11549 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11550 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11551 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11554 lt_cv_dlopen
="dyld"
11556 lt_cv_dlopen_self
=yes
11563 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11564 if test "x$ac_cv_func_shl_load" = xyes
; then :
11565 lt_cv_dlopen
="shl_load"
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11568 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11569 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11570 $as_echo_n "(cached) " >&6
11572 ac_check_lib_save_LIBS
=$LIBS
11574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11575 /* end confdefs.h. */
11577 /* Override any GCC internal prototype to avoid an error.
11578 Use char because int might match the return type of a GCC
11579 builtin and then its argument prototype would still apply. */
11587 return shl_load ();
11592 if ac_fn_c_try_link
"$LINENO"; then :
11593 ac_cv_lib_dld_shl_load
=yes
11595 ac_cv_lib_dld_shl_load
=no
11597 rm -f core conftest.err conftest.
$ac_objext \
11598 conftest
$ac_exeext conftest.
$ac_ext
11599 LIBS
=$ac_check_lib_save_LIBS
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11602 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11603 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11604 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11606 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11607 if test "x$ac_cv_func_dlopen" = xyes
; then :
11608 lt_cv_dlopen
="dlopen"
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11611 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11612 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11613 $as_echo_n "(cached) " >&6
11615 ac_check_lib_save_LIBS
=$LIBS
11617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11618 /* end confdefs.h. */
11620 /* Override any GCC internal prototype to avoid an error.
11621 Use char because int might match the return type of a GCC
11622 builtin and then its argument prototype would still apply. */
11635 if ac_fn_c_try_link
"$LINENO"; then :
11636 ac_cv_lib_dl_dlopen
=yes
11638 ac_cv_lib_dl_dlopen
=no
11640 rm -f core conftest.err conftest.
$ac_objext \
11641 conftest
$ac_exeext conftest.
$ac_ext
11642 LIBS
=$ac_check_lib_save_LIBS
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11645 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11646 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11647 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11650 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11651 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11652 $as_echo_n "(cached) " >&6
11654 ac_check_lib_save_LIBS
=$LIBS
11655 LIBS
="-lsvld $LIBS"
11656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11657 /* end confdefs.h. */
11659 /* Override any GCC internal prototype to avoid an error.
11660 Use char because int might match the return type of a GCC
11661 builtin and then its argument prototype would still apply. */
11674 if ac_fn_c_try_link
"$LINENO"; then :
11675 ac_cv_lib_svld_dlopen
=yes
11677 ac_cv_lib_svld_dlopen
=no
11679 rm -f core conftest.err conftest.
$ac_objext \
11680 conftest
$ac_exeext conftest.
$ac_ext
11681 LIBS
=$ac_check_lib_save_LIBS
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11684 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11685 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11686 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11689 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11690 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11691 $as_echo_n "(cached) " >&6
11693 ac_check_lib_save_LIBS
=$LIBS
11695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11696 /* end confdefs.h. */
11698 /* Override any GCC internal prototype to avoid an error.
11699 Use char because int might match the return type of a GCC
11700 builtin and then its argument prototype would still apply. */
11708 return dld_link ();
11713 if ac_fn_c_try_link
"$LINENO"; then :
11714 ac_cv_lib_dld_dld_link
=yes
11716 ac_cv_lib_dld_dld_link
=no
11718 rm -f core conftest.err conftest.
$ac_objext \
11719 conftest
$ac_exeext conftest.
$ac_ext
11720 LIBS
=$ac_check_lib_save_LIBS
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11723 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11724 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11725 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11746 if test "x$lt_cv_dlopen" != xno
; then
11752 case $lt_cv_dlopen in
11754 save_CPPFLAGS
="$CPPFLAGS"
11755 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11757 save_LDFLAGS
="$LDFLAGS"
11758 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11761 LIBS
="$lt_cv_dlopen_libs $LIBS"
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11764 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11765 if ${lt_cv_dlopen_self+:} false
; then :
11766 $as_echo_n "(cached) " >&6
11768 if test "$cross_compiling" = yes; then :
11769 lt_cv_dlopen_self
=cross
11771 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11772 lt_status
=$lt_dlunknown
11773 cat > conftest.
$ac_ext <<_LT_EOF
11774 #line 11774 "configure"
11775 #include "confdefs.h"
11784 # define LT_DLGLOBAL RTLD_GLOBAL
11787 # define LT_DLGLOBAL DL_GLOBAL
11789 # define LT_DLGLOBAL 0
11793 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11794 find out it does not work in some platform. */
11795 #ifndef LT_DLLAZY_OR_NOW
11797 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11800 # define LT_DLLAZY_OR_NOW DL_LAZY
11803 # define LT_DLLAZY_OR_NOW RTLD_NOW
11806 # define LT_DLLAZY_OR_NOW DL_NOW
11808 # define LT_DLLAZY_OR_NOW 0
11815 /* When -fvisbility=hidden is used, assume the code has been annotated
11816 correspondingly for the symbols needed. */
11817 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11818 void fnord () __attribute__((visibility("default")));
11821 void fnord () { int i=42; }
11824 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11825 int status = $lt_dlunknown;
11829 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11832 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11833 else puts (dlerror ());
11835 /* dlclose (self); */
11843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11844 (eval $ac_link) 2>&5
11846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11847 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11848 (.
/conftest
; exit; ) >&5 2>/dev
/null
11850 case x
$lt_status in
11851 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11852 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11853 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11856 # compilation failed
11857 lt_cv_dlopen_self
=no
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11865 $as_echo "$lt_cv_dlopen_self" >&6; }
11867 if test "x$lt_cv_dlopen_self" = xyes
; then
11868 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11870 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11871 if ${lt_cv_dlopen_self_static+:} false
; then :
11872 $as_echo_n "(cached) " >&6
11874 if test "$cross_compiling" = yes; then :
11875 lt_cv_dlopen_self_static
=cross
11877 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11878 lt_status
=$lt_dlunknown
11879 cat > conftest.
$ac_ext <<_LT_EOF
11880 #line 11880 "configure"
11881 #include "confdefs.h"
11890 # define LT_DLGLOBAL RTLD_GLOBAL
11893 # define LT_DLGLOBAL DL_GLOBAL
11895 # define LT_DLGLOBAL 0
11899 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11900 find out it does not work in some platform. */
11901 #ifndef LT_DLLAZY_OR_NOW
11903 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11906 # define LT_DLLAZY_OR_NOW DL_LAZY
11909 # define LT_DLLAZY_OR_NOW RTLD_NOW
11912 # define LT_DLLAZY_OR_NOW DL_NOW
11914 # define LT_DLLAZY_OR_NOW 0
11921 /* When -fvisbility=hidden is used, assume the code has been annotated
11922 correspondingly for the symbols needed. */
11923 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11924 void fnord () __attribute__((visibility("default")));
11927 void fnord () { int i=42; }
11930 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11931 int status = $lt_dlunknown;
11935 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11938 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11939 else puts (dlerror ());
11941 /* dlclose (self); */
11949 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11950 (eval $ac_link) 2>&5
11952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11953 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11954 (.
/conftest
; exit; ) >&5 2>/dev
/null
11956 case x
$lt_status in
11957 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11958 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11959 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11962 # compilation failed
11963 lt_cv_dlopen_self_static
=no
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11971 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11974 CPPFLAGS
="$save_CPPFLAGS"
11975 LDFLAGS
="$save_LDFLAGS"
11980 case $lt_cv_dlopen_self in
11981 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11982 *) enable_dlopen_self
=unknown
;;
11985 case $lt_cv_dlopen_self_static in
11986 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11987 *) enable_dlopen_self_static
=unknown
;;
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12010 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12011 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
12012 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
12013 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12015 $as_echo "yes" >&6; }
12017 # FIXME - insert some real tests, host_os isn't really good enough
12020 if test -n "$STRIP" ; then
12021 striplib
="$STRIP -x"
12022 old_striplib
="$STRIP -S"
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12024 $as_echo "yes" >&6; }
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12027 $as_echo "no" >&6; }
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12032 $as_echo "no" >&6; }
12048 # Report which library types will actually be built
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12050 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12052 $as_echo "$can_build_shared" >&6; }
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12055 $as_echo_n "checking whether to build shared libraries... " >&6; }
12056 test "$can_build_shared" = "no" && enable_shared
=no
12058 # On AIX, shared libraries and static libraries use the same namespace, and
12059 # are all built from PIC.
12062 test "$enable_shared" = yes && enable_static
=no
12063 if test -n "$RANLIB"; then
12064 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
12065 postinstall_cmds
='$RANLIB $lib'
12070 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
12071 test "$enable_shared" = yes && enable_static
=no
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12076 $as_echo "$enable_shared" >&6; }
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12079 $as_echo_n "checking whether to build static libraries... " >&6; }
12080 # Make sure either enable_shared or enable_static is yes.
12081 test "$enable_shared" = yes || enable_static
=yes
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12083 $as_echo "$enable_static" >&6; }
12090 ac_cpp
='$CPP $CPPFLAGS'
12091 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12092 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12093 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12109 ac_config_commands
="$ac_config_commands libtool"
12114 # Only expand once:
12121 *-cygwin* |
*-mingw*)
12122 # 'host' will be top-level target in the case of a target lib,
12123 # we must compare to with_cross_host to decide if this is a native
12124 # or cross-compiler and select where to install dlls appropriately.
12125 if test -n "$with_cross_host" &&
12126 test x
"$with_cross_host" != x
"no"; then
12127 lt_host_flags
='-no-undefined -bindir "$(toolexeclibdir)"';
12129 lt_host_flags
='-no-undefined -bindir "$(bindir)"';
12140 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
12141 case $ac_cv_c_int64_t in #(
12145 cat >>confdefs.h
<<_ACEOF
12146 #define int64_t $ac_cv_c_int64_t
12151 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
12152 case $ac_cv_c_uint64_t in #(
12156 $as_echo "#define _UINT64_T 1" >>confdefs.h
12159 cat >>confdefs.h
<<_ACEOF
12160 #define uint64_t $ac_cv_c_uint64_t
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12166 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12167 if ${ac_cv_header_sys_wait_h+:} false
; then :
12168 $as_echo_n "(cached) " >&6
12170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12171 /* end confdefs.h. */
12172 #include <sys/types.h>
12173 #include <sys/wait.h>
12174 #ifndef WEXITSTATUS
12175 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12178 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12186 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12191 if ac_fn_c_try_compile
"$LINENO"; then :
12192 ac_cv_header_sys_wait_h
=yes
12194 ac_cv_header_sys_wait_h
=no
12196 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12199 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
12200 if test $ac_cv_header_sys_wait_h = yes; then
12202 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12206 ac_config_files
="$ac_config_files Makefile"
12208 ac_config_headers
="$ac_config_headers config.h"
12210 cat >confcache
<<\_ACEOF
12211 # This file is a shell script that caches the results of configure
12212 # tests run on this system so they can be shared between configure
12213 # scripts and configure runs, see configure's option --config-cache.
12214 # It is not useful on other systems. If it contains results you don't
12215 # want to keep, you may remove or edit it.
12217 # config.status only pays attention to the cache file if you give it
12218 # the --recheck option to rerun configure.
12220 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12221 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12222 # following values.
12226 # The following way of writing the cache mishandles newlines in values,
12227 # but we know of no workaround that is simple, portable, and efficient.
12228 # So, we kill variables containing newlines.
12229 # Ultrix sh set writes to stderr and can't be redirected directly,
12230 # and sets the high bit in the cache file unless we assign to the vars.
12232 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12233 eval ac_val
=\$
$ac_var
12237 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12238 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12241 _ | IFS | as_nl
) ;; #(
12242 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
12243 *) { eval $ac_var=; unset $ac_var;} ;;
12249 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12250 *${as_nl}ac_space
=\
*)
12251 # `set' does not quote correctly, so add quotes: double-quote
12252 # substitution turns \\\\ into \\, and sed turns \\ into \.
12255 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12258 # `set' quotes correctly as required by POSIX, so do not add quotes.
12259 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12268 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12270 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12272 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
12273 if test -w "$cache_file"; then
12274 if test "x$cache_file" != "x/dev/null"; then
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12276 $as_echo "$as_me: updating cache $cache_file" >&6;}
12277 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
12278 cat confcache
>"$cache_file"
12280 case $cache_file in #(
12282 mv -f confcache
"$cache_file"$$
&&
12283 mv -f "$cache_file"$$
"$cache_file" ;; #(
12285 mv -f confcache
"$cache_file" ;;
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12291 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12296 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12297 # Let make expand exec_prefix.
12298 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12300 DEFS
=-DHAVE_CONFIG_H
12305 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
12306 # 1. Remove the extension, and $U if already installed.
12307 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
12308 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
12309 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12310 # will be set to the directory where LIBOBJS objects are built.
12311 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12312 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
12314 LIBOBJS
=$ac_libobjs
12316 LTLIBOBJS
=$ac_ltlibobjs
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12320 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12321 if test -n "$am_sleep_pid"; then
12322 # Hide warnings about reused PIDs.
12323 wait $am_sleep_pid 2>/dev
/null
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12326 $as_echo "done" >&6; }
12327 if test -n "$EXEEXT"; then
12329 am__EXEEXT_FALSE
='#'
12331 am__EXEEXT_TRUE
='#'
12335 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12336 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
12337 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12339 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12340 as_fn_error $?
"conditional \"AMDEP\" was never defined.
12341 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12343 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12344 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
12345 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12347 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12348 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
12349 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12352 : "${CONFIG_STATUS=./config.status}"
12354 ac_clean_files_save
=$ac_clean_files
12355 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12357 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12359 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12361 # Generated by $as_me.
12362 # Run this file to recreate the current configuration.
12363 # Compiler output produced by configure, useful for debugging
12364 # configure, is in config.log if it exists.
12367 ac_cs_recheck=false
12370 SHELL=\${CONFIG_SHELL-$SHELL}
12373 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
12374 ## -------------------- ##
12375 ## M4sh Initialization. ##
12376 ## -------------------- ##
12378 # Be more Bourne compatible
12379 DUALCASE
=1; export DUALCASE
# for MKS sh
12380 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
12383 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12384 # is contrary to our usage. Disable this feature.
12385 alias -g '${1+"$@"}'='"$@"'
12386 setopt NO_GLOB_SUBST
12388 case `(set -o) 2>/dev/null` in #(
12400 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12401 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12402 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12403 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12404 # Prefer a ksh shell builtin over an external printf program on Solaris,
12405 # but without wasting forks for bash or zsh.
12406 if test -z "$BASH_VERSION$ZSH_VERSION" \
12407 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12408 as_echo='print
-r --'
12409 as_echo_n='print
-rn --'
12410 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12411 as_echo='printf %s
\n'
12412 as_echo_n='printf %s
'
12414 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12415 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
12416 as_echo_n='/usr
/ucb
/echo -n'
12418 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12419 as_echo_n_body='eval
12423 expr "X$arg" : "X\\(.*\\)$as_nl";
12424 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12426 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
12428 export as_echo_n_body
12429 as_echo_n='sh
-c $as_echo_n_body as_echo
'
12431 export as_echo_body
12432 as_echo='sh
-c $as_echo_body as_echo
'
12435 # The user is always right.
12436 if test "${PATH_SEPARATOR+set}" != set; then
12438 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12439 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12446 # We need space, tab and new line, in precisely that order. Quoting is
12447 # there to prevent editors from complaining about space-tab.
12448 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12449 # splitting by setting IFS to empty value.)
12452 # Find who we are. Look in the path if we contain no directory separator.
12455 *[\\/]* ) as_myself=$0 ;;
12456 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12457 for as_dir in $PATH
12460 test -z "$as_dir" && as_dir=.
12461 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12467 # We did not find ourselves, most probably we were run as `sh COMMAND'
12468 # in which case we are not to be found in the path.
12469 if test "x$as_myself" = x
; then
12472 if test ! -f "$as_myself"; then
12473 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12477 # Unset variables that we do not need and which cause bugs (e.g. in
12478 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12479 # suppresses any "Segmentation fault" message there. '((' could
12480 # trigger a bug in pdksh 5.2.14.
12481 for as_var
in BASH_ENV ENV MAIL MAILPATH
12482 do eval test x\
${$as_var+set} = xset \
12483 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
12496 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
12499 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12500 # ----------------------------------------
12501 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12502 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12503 # script with STATUS, using 1 if that was 0.
12506 as_status
=$1; test $as_status -eq 0 && as_status
=1
12508 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
12509 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12511 $as_echo "$as_me: error: $2" >&2
12512 as_fn_exit
$as_status
12516 # as_fn_set_status STATUS
12517 # -----------------------
12518 # Set $? to STATUS, without forking.
12519 as_fn_set_status
()
12522 } # as_fn_set_status
12524 # as_fn_exit STATUS
12525 # -----------------
12526 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12530 as_fn_set_status
$1
12536 # Portably unset VAR.
12539 { eval $1=; unset $1;}
12541 as_unset
=as_fn_unset
12542 # as_fn_append VAR VALUE
12543 # ----------------------
12544 # Append the text in VALUE to the end of the definition contained in VAR. Take
12545 # advantage of any shell optimizations that allow amortized linear growth over
12546 # repeated appends, instead of the typical quadratic growth present in naive
12548 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
12549 eval 'as_fn_append ()
12560 # as_fn_arith ARG...
12561 # ------------------
12562 # Perform arithmetic evaluation on the ARGs, and store the result in the
12563 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12564 # must be portable across $(()) and expr.
12565 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
12566 eval 'as_fn_arith ()
12573 as_val
=`expr "$@" || test $? -eq 1`
12578 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
12579 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
12585 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12586 as_basename
=basename
12591 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
12597 as_me
=`$as_basename -- "$0" ||
12598 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12599 X"$0" : 'X\(//\)$' \| \
12600 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12602 sed '/^.*\/\([^/][^/]*\)\/*$/{
12616 # Avoid depending upon Character Ranges.
12617 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
12618 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12619 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
12620 as_cr_digits
='0123456789'
12621 as_cr_alnum
=$as_cr_Letters$as_cr_digits
12623 ECHO_C
= ECHO_N
= ECHO_T
=
12624 case `echo -n x` in #(((((
12626 case `echo 'xy\c'` in
12627 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
12629 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
12636 rm -f conf$$ conf$$.exe conf$$.
file
12637 if test -d conf$$.dir
; then
12638 rm -f conf$$.dir
/conf$$.
file
12641 mkdir conf$$.dir
2>/dev
/null
12643 if (echo >conf$$.
file) 2>/dev
/null
; then
12644 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
12646 # ... but there are two gotchas:
12647 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12648 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12649 # In both cases, we have to default to `cp -pR'.
12650 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
12652 elif ln conf$$.
file conf$$
2>/dev
/null
; then
12660 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
12661 rmdir conf$$.dir
2>/dev
/null
12666 # Create "$as_dir" as a directory, including parents if necessary.
12671 -*) as_dir
=.
/$as_dir;;
12673 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
12677 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12678 *) as_qdir
=$as_dir;;
12680 as_dirs
="'$as_qdir' $as_dirs"
12681 as_dir
=`$as_dirname -- "$as_dir" ||
12682 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12683 X"$as_dir" : 'X\(//\)[^/]' \| \
12684 X"$as_dir" : 'X\(//\)$' \| \
12685 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12686 $as_echo X"$as_dir" |
12687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12691 /^X\(\/\/\)[^/].*/{
12704 test -d "$as_dir" && break
12706 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
12707 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
12711 if mkdir
-p .
2>/dev
/null
; then
12712 as_mkdir_p
='mkdir -p "$as_dir"'
12714 test -d .
/-p && rmdir .
/-p
12719 # as_fn_executable_p FILE
12720 # -----------------------
12721 # Test if FILE is an executable regular file.
12722 as_fn_executable_p
()
12724 test -f "$1" && test -x "$1"
12725 } # as_fn_executable_p
12726 as_test_x
='test -x'
12727 as_executable_p
=as_fn_executable_p
12729 # Sed expression to map a string onto a valid CPP name.
12730 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12732 # Sed expression to map a string onto a valid variable name.
12733 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12737 ## ----------------------------------- ##
12738 ## Main body of $CONFIG_STATUS script. ##
12739 ## ----------------------------------- ##
12741 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
12743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12744 # Save the log message, to keep $0 and so on meaningful, and to
12745 # report actual input values of CONFIG_FILES etc. instead of their
12746 # values after options handling.
12748 This file was extended by LTO plugin for ld $as_me 0.1, which was
12749 generated by GNU Autoconf 2.69. Invocation command line was
12751 CONFIG_FILES = $CONFIG_FILES
12752 CONFIG_HEADERS = $CONFIG_HEADERS
12753 CONFIG_LINKS = $CONFIG_LINKS
12754 CONFIG_COMMANDS = $CONFIG_COMMANDS
12757 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12762 case $ac_config_files in *"
12763 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
12766 case $ac_config_headers in *"
12767 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
12771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12772 # Files that config.status was made for.
12773 config_files="$ac_config_files"
12774 config_headers="$ac_config_headers"
12775 config_commands="$ac_config_commands"
12779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12781 \`$as_me' instantiates files and other configuration actions
12782 from templates according to the current configuration. Unless the files
12783 and actions are specified as TAGs, all are instantiated by default.
12785 Usage: $0 [OPTION]... [TAG]...
12787 -h, --help print this help, then exit
12788 -V, --version print version number and configuration settings, then exit
12789 --config print configuration, then exit
12790 -q, --quiet, --silent
12791 do not print progress messages
12792 -d, --debug don't remove temporary files
12793 --recheck update $as_me by reconfiguring in the same conditions
12794 --file=FILE[:TEMPLATE]
12795 instantiate the configuration file FILE
12796 --header=FILE[:TEMPLATE]
12797 instantiate the configuration header FILE
12799 Configuration files:
12802 Configuration headers:
12805 Configuration commands:
12808 Report bugs to the package provider."
12811 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12812 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12814 LTO plugin for ld config.status 0.1
12815 configured by $0, generated by GNU Autoconf 2.69,
12816 with options \\"\$ac_cs_config\\"
12818 Copyright (C) 2012 Free Software Foundation, Inc.
12819 This config.status script is free software; the Free Software Foundation
12820 gives unlimited permission to copy, distribute and modify it."
12827 test -n "\$AWK" || AWK=awk
12830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12831 # The default lists apply if the user does not specify any file.
12837 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
12838 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
12842 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
12854 # Handling of the options.
12855 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
12857 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
12858 $as_echo "$ac_cs_version"; exit ;;
12859 --config |
--confi |
--conf |
--con |
--co |
--c )
12860 $as_echo "$ac_cs_config"; exit ;;
12861 --debug |
--debu |
--deb |
--de |
--d |
-d )
12863 --file |
--fil |
--fi |
--f )
12866 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12867 '') as_fn_error $?
"missing file argument" ;;
12869 as_fn_append CONFIG_FILES
" '$ac_optarg'"
12870 ac_need_defaults
=false
;;
12871 --header |
--heade |
--head |
--hea )
12874 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12876 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
12877 ac_need_defaults
=false
;;
12879 # Conflict between --help and --header
12880 as_fn_error $?
"ambiguous option: \`$1'
12881 Try \`$0 --help' for more information.";;
12882 --help |
--hel |
-h )
12883 $as_echo "$ac_cs_usage"; exit ;;
12884 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
12885 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
12888 # This is an error.
12889 -*) as_fn_error $?
"unrecognized option: \`$1'
12890 Try \`$0 --help' for more information." ;;
12892 *) as_fn_append ac_config_targets
" $1"
12893 ac_need_defaults
=false
;;
12899 ac_configure_extra_args
=
12901 if $ac_cs_silent; then
12903 ac_configure_extra_args
="$ac_configure_extra_args --silent"
12907 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12908 if \$ac_cs_recheck; then
12909 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12911 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12912 CONFIG_SHELL='$SHELL'
12913 export CONFIG_SHELL
12918 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12922 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12923 ## Running $as_me. ##
12929 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12933 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12936 # The HP-UX ksh and POSIX shell print the target directory to stdout
12937 # if CDPATH is set.
12938 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12940 sed_quote_subst='$sed_quote_subst'
12941 double_quote_subst='$double_quote_subst'
12942 delay_variable_subst='$delay_variable_subst'
12943 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12944 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12945 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12946 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12947 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12948 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12949 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12950 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12951 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12952 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12953 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12954 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12955 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12956 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12957 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12958 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12959 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12960 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12961 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12962 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12963 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12964 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12965 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12966 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12967 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12968 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12969 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12970 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12971 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12972 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12973 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12974 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12975 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12976 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12977 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12978 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12979 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12980 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12981 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12982 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12983 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12984 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12985 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12986 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12987 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12988 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12989 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12990 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12991 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"`'
12992 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12993 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12994 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12995 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12996 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12997 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12998 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12999 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13000 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13001 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13002 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13003 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13004 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13005 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13006 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13007 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13008 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13009 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13010 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13011 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13012 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13013 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13014 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13015 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13016 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13017 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13018 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13019 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13020 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13021 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13022 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13023 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13024 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13025 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13026 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13027 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13028 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13029 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13030 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13031 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13032 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13033 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13034 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13035 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13036 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13037 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13038 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13039 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13040 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13041 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13042 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13043 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13044 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13045 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13046 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13047 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13048 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13049 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13050 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13051 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13052 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13053 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13054 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13055 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13056 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13057 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13058 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13059 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13060 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13061 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13062 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13065 LTCFLAGS='$LTCFLAGS'
13066 compiler='$compiler_DEFAULT'
13068 # A function that is used when there is no print builtin or printf.
13069 func_fallback_echo ()
13071 eval 'cat <<_LTECHO_EOF
13076 # Quote evaled strings.
13090 deplibs_check_method \
13099 lt_cv_sys_global_symbol_pipe \
13100 lt_cv_sys_global_symbol_to_cdecl \
13101 lt_cv_sys_global_symbol_to_c_name_address \
13102 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13103 lt_prog_compiler_no_builtin_flag \
13104 lt_prog_compiler_wl \
13105 lt_prog_compiler_pic \
13106 lt_prog_compiler_static \
13107 lt_cv_prog_compiler_c_o \
13115 export_dynamic_flag_spec \
13116 whole_archive_flag_spec \
13117 compiler_needs_object \
13119 allow_undefined_flag \
13120 no_undefined_flag \
13121 hardcode_libdir_flag_spec \
13122 hardcode_libdir_flag_spec_ld \
13123 hardcode_libdir_separator \
13128 variables_saved_for_relink \
13130 library_names_spec \
13132 install_override_mode \
13136 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13137 *[\\\\\\\`\\"\\\$]*)
13138 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13141 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13146 # Double-quote double-evaled strings.
13147 for var in reload_cmds \
13148 old_postinstall_cmds \
13149 old_postuninstall_cmds \
13151 extract_expsyms_cmds \
13152 old_archive_from_new_cmds \
13153 old_archive_from_expsyms_cmds \
13155 archive_expsym_cmds \
13157 module_expsym_cmds \
13158 export_symbols_cmds \
13161 postuninstall_cmds \
13163 sys_lib_search_path_spec \
13164 sys_lib_dlsearch_path_spec; do
13165 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13166 *[\\\\\\\`\\"\\\$]*)
13167 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13170 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13175 ac_aux_dir='$ac_aux_dir'
13176 xsi_shell='$xsi_shell'
13177 lt_shell_append='$lt_shell_append'
13179 # See if we are running on zsh, and set the options which allow our
13180 # commands through without removal of \ escapes INIT.
13181 if test -n "\${ZSH_VERSION+set}" ; then
13182 setopt NO_GLOB_SUBST
13188 TIMESTAMP='$TIMESTAMP'
13197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13199 # Handling of arguments.
13200 for ac_config_target
in $ac_config_targets
13202 case $ac_config_target in
13203 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
13204 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
13205 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
13206 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
13208 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13213 # If the user did not use the arguments to specify the items to instantiate,
13214 # then the envvar interface is used. Set only those that are not.
13215 # We use the long form for the default assignment because of an extremely
13216 # bizarre bug on SunOS 4.1.3.
13217 if $ac_need_defaults; then
13218 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
13219 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
13220 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
13223 # Have a temporary directory for convenience. Make it in the build tree
13224 # simply because there is no reason against having it here, and in addition,
13225 # creating and moving files from /tmp can sometimes cause problems.
13226 # Hook for its removal unless debugging.
13227 # Note that there is a small window in which the directory will not be cleaned:
13228 # after its creation but before its name has been assigned to `$tmp'.
13232 trap 'exit_status=$?
13233 : "${ac_tmp:=$tmp}"
13234 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13236 trap 'as_fn_exit 1' 1 2 13 15
13238 # Create a (secure) tmp directory for tmp files.
13241 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13245 tmp
=.
/conf$$
-$RANDOM
13246 (umask 077 && mkdir
"$tmp")
13247 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
13250 # Set up the scripts for CONFIG_FILES section.
13251 # No need to generate them if there are no CONFIG_FILES.
13252 # This happens for instance with `./config.status config.h'.
13253 if test -n "$CONFIG_FILES"; then
13256 ac_cr
=`echo X | tr X '\015'`
13257 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13258 # But we know of no other shell where ac_cr would be empty at this
13259 # point, so we can use a bashism as a fallback.
13260 if test "x$ac_cr" = x
; then
13261 eval ac_cr
=\$
\'\\r
\'
13263 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13264 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13267 ac_cs_awk_cr
=$ac_cr
13270 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13275 echo "cat >conf$$subs.awk <<_ACEOF" &&
13276 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13278 } >conf$$subs.sh ||
13279 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
13280 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13282 for ac_last_try in false false false false false :; do
13283 . ./conf$$subs.sh ||
13284 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
13286 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
13287 if test $ac_delim_n = $ac_delim_num; then
13289 elif $ac_last_try; then
13290 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
13292 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
13295 rm -f conf$$subs.sh
13297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13298 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
13302 s/^/S["/; s
/!.
*/"]=/
13312 s/\(.\{148\}\)..*/\1/
13314 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
13319 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
13326 s/\(.\{148\}\)..*/\1/
13328 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
13332 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
13337 ' <conf$$subs.awk | sed '
13342 ' >>$CONFIG_STATUS || ac_write_fail=1
13343 rm -f conf$$subs.awk
13344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13346 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
13347 for (key in S) S_is_set[key] = 1
13353 nfields = split(line, field, "@
")
13355 len = length(field[1])
13356 for (i = 2; i < nfields; i++) {
13358 keylen = length(key)
13359 if (S_is_set[key]) {
13361 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13362 len += length(value) + length(field[++i])
13373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13374 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13375 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
13378 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
13379 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
13382 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13383 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
13384 # trailing colons and then remove the whole line if VPATH becomes empty
13385 # (actually we leave an empty line to preserve line numbers).
13386 if test "x
$srcdir" = x.; then
13387 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13406 fi # test -n "$CONFIG_FILES"
13408 # Set up the scripts for CONFIG_HEADERS section.
13409 # No need to generate them if there are no CONFIG_HEADERS.
13410 # This happens for instance with `./config.status Makefile'.
13411 if test -n "$CONFIG_HEADERS"; then
13412 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
13416 # Transform confdefs.h into an awk script `defines.awk', embedded as
13417 # here-document in config.status, that substitutes the proper values into
13418 # config.h.in to produce config.h.
13420 # Create a delimiter string that does not exist in confdefs.h, to ease
13421 # handling of long lines.
13423 for ac_last_try in false false :; do
13424 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
13425 if test -z "$ac_tt"; then
13427 elif $ac_last_try; then
13428 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
13430 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
13434 # For the awk script, D is an array of macro values keyed by name,
13435 # likewise P contains macro parameters if any. Preserve backslash
13436 # newline sequences.
13438 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13440 s/.\{148\}/&'"$ac_delim"'/g
13443 s/^[ ]*#[ ]*define[ ][ ]*/ /
13450 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
13452 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
13456 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
13457 D["\
1"]=" \
3\\\\\\n
"\\/p
13459 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
13464 s/.\{148\}/&'"$ac_delim"'/g
13469 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
13472 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
13474 ' <confdefs.h | sed '
13475 s/'"$ac_delim"'/"\\\
13476 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13479 for (key in D) D_is_set[key] = 1
13482 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13484 split(line, arg, " ")
13485 if (arg[1] == "#") {
13489 defundef
= substr
(arg
[1], 2)
13492 split(mac1
, mac2
, "(") #)
13494 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
13495 if (D_is_set
[macro
]) {
13496 # Preserve the white space surrounding the "#".
13497 print prefix
"define", macro P
[macro
] D
[macro
]
13500 # Replace #undef with comments. This is necessary, for example,
13501 # in the case of _POSIX_SOURCE, which is predefined and required
13502 # on some systems where configure will not decide to define it.
13503 if (defundef
== "undef") {
13504 print
"/*", prefix defundef
, macro
, "*/"
13512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13513 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
13514 fi # test -n "$CONFIG_HEADERS"
13517 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13522 :[FHLC
]) ac_mode
=$ac_tag; continue;;
13524 case $ac_mode$ac_tag in
13526 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
13527 :[FH
]-) ac_tag
=-:-;;
13528 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
13545 -) ac_f
="$ac_tmp/stdin";;
13546 *) # Look for the file first in the build tree, then in the source tree
13547 # (if the path is not absolute). The absolute path cannot be DOS-style,
13548 # because $ac_f cannot contain `:'.
13552 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
13554 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13556 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13557 as_fn_append ac_file_inputs
" '$ac_f'"
13560 # Let's still pretend it is `configure' which instantiates (i.e., don't
13561 # use $as_me), people would be surprised to read:
13562 # /* config.h. Generated by config.status. */
13563 configure_input
='Generated from '`
13564 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13566 if test x
"$ac_file" != x-
; then
13567 configure_input
="$ac_file. $configure_input"
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13569 $as_echo "$as_me: creating $ac_file" >&6;}
13571 # Neutralize special characters interpreted by sed in replacement strings.
13572 case $configure_input in #(
13573 *\
&* |
*\|
* |
*\\* )
13574 ac_sed_conf_input
=`$as_echo "$configure_input" |
13575 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13576 *) ac_sed_conf_input
=$configure_input;;
13580 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
13581 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
13586 ac_dir
=`$as_dirname -- "$ac_file" ||
13587 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13588 X"$ac_file" : 'X\(//\)[^/]' \| \
13589 X"$ac_file" : 'X\(//\)$' \| \
13590 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13591 $as_echo X"$ac_file" |
13592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13596 /^X\(\/\/\)[^/].*/{
13609 as_dir
="$ac_dir"; as_fn_mkdir_p
13613 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
13615 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13616 # A ".." for each directory in $ac_dir_suffix.
13617 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13618 case $ac_top_builddir_sub in
13619 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
13620 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
13623 ac_abs_top_builddir
=$ac_pwd
13624 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
13625 # for backward compatibility:
13626 ac_top_builddir
=$ac_top_build_prefix
13629 .
) # We are building in place.
13631 ac_top_srcdir
=$ac_top_builddir_sub
13632 ac_abs_top_srcdir
=$ac_pwd ;;
13633 [\\/]* | ?
:[\\/]* ) # Absolute name.
13634 ac_srcdir
=$srcdir$ac_dir_suffix;
13635 ac_top_srcdir
=$srcdir
13636 ac_abs_top_srcdir
=$srcdir ;;
13637 *) # Relative name.
13638 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
13639 ac_top_srcdir
=$ac_top_build_prefix$srcdir
13640 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
13642 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
13652 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
13653 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
13655 ac_MKDIR_P
=$MKDIR_P
13657 [\\/$
]* | ?
:[\\/]* ) ;;
13658 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
13662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13663 # If the template does not know about datarootdir, expand it.
13664 # FIXME: This hack should be removed a few years after 2.60.
13665 ac_datarootdir_hack
=; ac_datarootdir_seen
=
13676 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13677 *datarootdir
*) ac_datarootdir_seen
=yes;;
13678 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13680 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13683 ac_datarootdir_hack='
13684 s&@datadir@&$datadir&g
13685 s&@docdir@&$docdir&g
13686 s&@infodir@&$infodir&g
13687 s&@localedir@&$localedir&g
13688 s&@mandir@&$mandir&g
13689 s&\\\${datarootdir}&$datarootdir&g' ;;
13693 # Neutralize VPATH when `$srcdir' = `.'.
13694 # Shell code in configure.ac might set extrasub.
13695 # FIXME: do we really want to maintain this feature?
13696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13697 ac_sed_extra="$ac_vpsub
13700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13702 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
13703 s|@configure_input@|
$ac_sed_conf_input|
;t t
13704 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
13705 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
13706 s
&@srcdir@
&$ac_srcdir&;t t
13707 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
13708 s
&@top_srcdir@
&$ac_top_srcdir&;t t
13709 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
13710 s
&@builddir@
&$ac_builddir&;t t
13711 s
&@abs_builddir@
&$ac_abs_builddir&;t t
13712 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
13713 s
&@INSTALL@
&$ac_INSTALL&;t t
13714 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
13715 $ac_datarootdir_hack
13717 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
13718 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
13720 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13721 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
13722 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13723 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
13725 which seems to be undefined. Please make sure it is defined" >&5
13726 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
13727 which seems to be undefined. Please make sure it is defined" >&2;}
13729 rm -f "$ac_tmp/stdin"
13731 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13732 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13734 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13740 if test x"$ac_file" != x-; then
13742 $as_echo "/* $configure_input */" \
13743 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13744 } >"$ac_tmp/config.h" \
13745 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13746 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13748 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13751 mv "$ac_tmp/config.h" "$ac_file" \
13752 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13755 $as_echo "/* $configure_input */" \
13756 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13757 || as_fn_error $? "could not create -" "$LINENO" 5
13759 # Compute "$ac_file"'s index
in $config_headers.
13762 for _am_header
in $config_headers :; do
13763 case $_am_header in
13764 $_am_arg |
$_am_arg:* )
13767 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
13770 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13771 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13772 X"$_am_arg" : 'X\(//\)[^/]' \| \
13773 X"$_am_arg" : 'X\(//\)$' \| \
13774 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13775 $as_echo X"$_am_arg" |
13776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13780 /^X\(\/\/\)[^/].*/{
13792 s/.*/./; q'`/stamp-h
$_am_stamp_count
13795 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13796 $as_echo "$as_me: executing $ac_file commands" >&6;}
13801 case $ac_file$ac_mode in
13802 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
13803 # Older Autoconf quotes --file arguments for eval, but not when files
13804 # are listed without --file. Let's play safe and only enable the eval
13805 # if we detect the quoting.
13806 case $CONFIG_FILES in
13807 *\'*) eval set x
"$CONFIG_FILES" ;;
13808 *) set x
$CONFIG_FILES ;;
13813 # Strip MF so we end up with the name of the file.
13814 mf
=`echo "$mf" | sed -e 's/:.*$//'`
13815 # Check whether this is an Automake generated Makefile or not.
13816 # We used to match only the files named 'Makefile.in', but
13817 # some people rename them; so instead we look at the file content.
13818 # Grep'ing the first line is not enough: some people post-process
13819 # each Makefile.in and add a new line on top of each file to say so.
13820 # Grep'ing the whole file is not good either: AIX grep has a line
13821 # limit of 2048, but all sed's we know have understand at least 4000.
13822 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
13823 dirpart
=`$as_dirname -- "$mf" ||
13824 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13825 X"$mf" : 'X\(//\)[^/]' \| \
13826 X"$mf" : 'X\(//\)$' \| \
13827 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13829 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13833 /^X\(\/\/\)[^/].*/{
13849 # Extract the definition of DEPDIR, am__include, and am__quote
13850 # from the Makefile without running 'make'.
13851 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
13852 test -z "$DEPDIR" && continue
13853 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
13854 test -z "$am__include" && continue
13855 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
13856 # Find all dependency output files, they are included files with
13857 # $(DEPDIR) in their names. We invoke sed twice because it is the
13858 # simplest approach to changing $(DEPDIR) to its actual value in the
13860 for file in `sed -n "
13861 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13862 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
13863 # Make sure the directory exists.
13864 test -f "$dirpart/$file" && continue
13865 fdir
=`$as_dirname -- "$file" ||
13866 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13867 X"$file" : 'X\(//\)[^/]' \| \
13868 X"$file" : 'X\(//\)$' \| \
13869 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13870 $as_echo X"$file" |
13871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13875 /^X\(\/\/\)[^/].*/{
13888 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
13889 # echo "creating $dirpart/$file"
13890 echo '# dummy' > "$dirpart/$file"
13897 # See if we are running on zsh, and set the options which allow our
13898 # commands through without removal of \ escapes.
13899 if test -n "${ZSH_VERSION+set}" ; then
13900 setopt NO_GLOB_SUBST
13903 cfgfile
="${ofile}T"
13904 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13907 cat <<_LT_EOF >> "$cfgfile"
13910 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13911 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13912 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13913 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13915 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13916 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
13917 # Written by Gordon Matzigkeit, 1996
13919 # This file is part of GNU Libtool.
13921 # GNU Libtool is free software; you can redistribute it and/or
13922 # modify it under the terms of the GNU General Public License as
13923 # published by the Free Software Foundation; either version 2 of
13924 # the License, or (at your option) any later version.
13926 # As a special exception to the GNU General Public License,
13927 # if you distribute this file as part of a program or library that
13928 # is built using GNU Libtool, you may include this file under the
13929 # same distribution terms that you use for the rest of that program.
13931 # GNU Libtool is distributed in the hope that it will be useful,
13932 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13933 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13934 # GNU General Public License for more details.
13936 # You should have received a copy of the GNU General Public License
13937 # along with GNU Libtool; see the file COPYING. If not, a copy
13938 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13939 # obtained by writing to the Free Software Foundation, Inc.,
13940 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13943 # The names of the tagged configurations supported by this script.
13946 # ### BEGIN LIBTOOL CONFIG
13948 # Which release of libtool.m4 was used?
13949 macro_version=$macro_version
13950 macro_revision=$macro_revision
13952 # Whether or not to build shared libraries.
13953 build_libtool_libs=$enable_shared
13955 # Whether or not to build static libraries.
13956 build_old_libs=$enable_static
13958 # What type of objects to build.
13961 # Whether or not to optimize for fast installation.
13962 fast_install=$enable_fast_install
13964 # Shell to use when invoking shell scripts.
13967 # An echo program that protects backslashes.
13971 host_alias=$host_alias
13975 # The build system.
13976 build_alias=$build_alias
13980 # A sed program that does not truncate output.
13983 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13984 Xsed="\$SED -e 1s/^X//"
13986 # A grep program that handles long lines.
13992 # A literal string matcher.
13995 # A BSD- or MS-compatible name lister.
13998 # Whether we need soft or hard links.
14001 # What is the maximum length of a command?
14002 max_cmd_len=$max_cmd_len
14004 # Object file suffix (normally "o").
14007 # Executable file suffix (normally "").
14010 # whether the shell understands "unset".
14013 # turn spaces into newlines.
14016 # turn newlines into spaces.
14019 # An object symbol dumper.
14020 OBJDUMP=$lt_OBJDUMP
14022 # Method to check whether dependent libraries are shared objects.
14023 deplibs_check_method=$lt_deplibs_check_method
14025 # Command to use when deplibs_check_method == "file_magic".
14026 file_magic_cmd=$lt_file_magic_cmd
14030 AR_FLAGS=$lt_AR_FLAGS
14032 # A symbol stripping program.
14035 # Commands used to install an old-style archive.
14037 old_postinstall_cmds=$lt_old_postinstall_cmds
14038 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14040 # Whether to use a lock for old archive extraction.
14041 lock_old_archive_extraction=$lock_old_archive_extraction
14046 # LTCC compiler flags.
14047 LTCFLAGS=$lt_CFLAGS
14049 # Take the output of nm and produce a listing of raw symbols and C names.
14050 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14052 # Transform the output of nm in a proper C declaration.
14053 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14055 # Transform the output of nm in a C name address pair.
14056 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14058 # Transform the output of nm in a C name address pair when lib prefix is needed.
14059 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14061 # The name of the directory that contains temporary libtool files.
14064 # Used to examine libraries when file_magic_cmd begins with "file".
14065 MAGIC_CMD=$MAGIC_CMD
14067 # Must we lock files when doing compilation?
14068 need_locks=$lt_need_locks
14070 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14071 DSYMUTIL=$lt_DSYMUTIL
14073 # Tool to change global to local symbols on Mac OS X.
14076 # Tool to manipulate fat objects and archives on Mac OS X.
14079 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14082 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14083 OTOOL64=$lt_OTOOL64
14085 # Old archive suffix (normally "a").
14088 # Shared library suffix (normally ".so").
14089 shrext_cmds=$lt_shrext_cmds
14091 # The commands to extract the exported symbol list from a shared archive.
14092 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14094 # Variables whose values should be saved in libtool wrapper scripts and
14095 # restored at link time.
14096 variables_saved_for_relink=$lt_variables_saved_for_relink
14098 # Do we need the "lib" prefix for modules?
14099 need_lib_prefix=$need_lib_prefix
14101 # Do we need a version for libraries?
14102 need_version=$need_version
14104 # Library versioning type.
14105 version_type=$version_type
14107 # Shared library runtime path variable.
14108 runpath_var=$runpath_var
14110 # Shared library path variable.
14111 shlibpath_var=$shlibpath_var
14113 # Is shlibpath searched before the hard-coded library search path?
14114 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14116 # Format of library name prefix.
14117 libname_spec=$lt_libname_spec
14119 # List of archive names. First name is the real one, the rest are links.
14120 # The last name is the one that the linker finds with -lNAME
14121 library_names_spec=$lt_library_names_spec
14123 # The coded name of the library, if different from the real name.
14124 soname_spec=$lt_soname_spec
14126 # Permission mode override for installation of shared libraries.
14127 install_override_mode=$lt_install_override_mode
14129 # Command to use after installation of a shared archive.
14130 postinstall_cmds=$lt_postinstall_cmds
14132 # Command to use after uninstallation of a shared archive.
14133 postuninstall_cmds=$lt_postuninstall_cmds
14135 # Commands used to finish a libtool library installation in a directory.
14136 finish_cmds=$lt_finish_cmds
14138 # As "finish_cmds", except a single script fragment to be evaled but
14140 finish_eval=$lt_finish_eval
14142 # Whether we should hardcode library paths into libraries.
14143 hardcode_into_libs=$hardcode_into_libs
14145 # Compile-time system search path for libraries.
14146 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14148 # Run-time system search path for libraries.
14149 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14151 # Whether dlopen is supported.
14152 dlopen_support=$enable_dlopen
14154 # Whether dlopen of programs is supported.
14155 dlopen_self=$enable_dlopen_self
14157 # Whether dlopen of statically linked programs is supported.
14158 dlopen_self_static=$enable_dlopen_self_static
14160 # Commands to strip libraries.
14161 old_striplib=$lt_old_striplib
14162 striplib=$lt_striplib
14165 # The linker used to build libraries.
14168 # How to create reloadable object files.
14169 reload_flag=$lt_reload_flag
14170 reload_cmds=$lt_reload_cmds
14172 # Commands used to build an old-style archive.
14173 old_archive_cmds=$lt_old_archive_cmds
14175 # A language specific compiler.
14178 # Is the compiler the GNU compiler?
14181 # Compiler flag to turn off builtin functions.
14182 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14184 # How to pass a linker flag through the compiler.
14185 wl=$lt_lt_prog_compiler_wl
14187 # Additional compiler flags for building library objects.
14188 pic_flag=$lt_lt_prog_compiler_pic
14190 # Compiler flag to prevent dynamic linking.
14191 link_static_flag=$lt_lt_prog_compiler_static
14193 # Does compiler simultaneously support -c and -o options?
14194 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14196 # Whether or not to add -lc for building shared libraries.
14197 build_libtool_need_lc=$archive_cmds_need_lc
14199 # Whether or not to disallow shared libs when runtime libs are static.
14200 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14202 # Compiler flag to allow reflexive dlopens.
14203 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14205 # Compiler flag to generate shared objects directly from archives.
14206 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14208 # Whether the compiler copes with passing no objects directly.
14209 compiler_needs_object=$lt_compiler_needs_object
14211 # Create an old-style archive from a shared archive.
14212 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14214 # Create a temporary old-style archive to link instead of a shared archive.
14215 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14217 # Commands used to build a shared archive.
14218 archive_cmds=$lt_archive_cmds
14219 archive_expsym_cmds=$lt_archive_expsym_cmds
14221 # Commands used to build a loadable module if different from building
14222 # a shared archive.
14223 module_cmds=$lt_module_cmds
14224 module_expsym_cmds=$lt_module_expsym_cmds
14226 # Whether we are building with GNU ld or not.
14227 with_gnu_ld=$lt_with_gnu_ld
14229 # Flag that allows shared libraries with undefined symbols to be built.
14230 allow_undefined_flag=$lt_allow_undefined_flag
14232 # Flag that enforces no undefined symbols.
14233 no_undefined_flag=$lt_no_undefined_flag
14235 # Flag to hardcode \$libdir into a binary during linking.
14236 # This must work even if \$libdir does not exist
14237 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14239 # If ld is used when linking, flag to hardcode \$libdir into a binary
14240 # during linking. This must work even if \$libdir does not exist.
14241 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14243 # Whether we need a single "-rpath" flag with a separated argument.
14244 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14246 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14247 # DIR into the resulting binary.
14248 hardcode_direct=$hardcode_direct
14250 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14251 # DIR into the resulting binary and the resulting library dependency is
14252 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14253 # library is relocated.
14254 hardcode_direct_absolute=$hardcode_direct_absolute
14256 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14257 # into the resulting binary.
14258 hardcode_minus_L=$hardcode_minus_L
14260 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14261 # into the resulting binary.
14262 hardcode_shlibpath_var=$hardcode_shlibpath_var
14264 # Set to "yes" if building a shared library automatically hardcodes DIR
14265 # into the library and all subsequent libraries and executables linked
14267 hardcode_automatic=$hardcode_automatic
14269 # Set to yes if linker adds runtime paths of dependent libraries
14270 # to runtime path list.
14271 inherit_rpath=$inherit_rpath
14273 # Whether libtool must link a program against all its dependency libraries.
14274 link_all_deplibs=$link_all_deplibs
14276 # Fix the shell variable \$srcfile for the compiler.
14277 fix_srcfile_path=$lt_fix_srcfile_path
14279 # Set to "yes" if exported symbols are required.
14280 always_export_symbols=$always_export_symbols
14282 # The commands to list exported symbols.
14283 export_symbols_cmds=$lt_export_symbols_cmds
14285 # Symbols that should not be listed in the preloaded symbols.
14286 exclude_expsyms=$lt_exclude_expsyms
14288 # Symbols that must always be exported.
14289 include_expsyms=$lt_include_expsyms
14291 # Commands necessary for linking programs (against libraries) with templates.
14292 prelink_cmds=$lt_prelink_cmds
14294 # Specify filename containing input files.
14295 file_list_spec=$lt_file_list_spec
14297 # How to hardcode a shared library path into an executable.
14298 hardcode_action=$hardcode_action
14300 # ### END LIBTOOL CONFIG
14306 cat <<\_LT_EOF
>> "$cfgfile"
14307 # AIX sometimes has problems with the GCC collect2 program. For some
14308 # reason, if we set the COLLECT_NAMES environment variable, the problems
14309 # vanish in a puff of smoke.
14310 if test "X${COLLECT_NAMES+set}" != Xset
; then
14312 export COLLECT_NAMES
14319 ltmain
="$ac_aux_dir/ltmain.sh"
14322 # We use sed instead of cat because bash on DJGPP gets confused if
14323 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14324 # text mode, it properly converts lines to CR/LF. This bash problem
14325 # is reportedly fixed, but why not run on old versions too?
14326 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14327 ||
(rm -f "$cfgfile"; exit 1)
14331 cat << \_LT_EOF
>> "$cfgfile"
14333 # func_dirname file append nondir_replacement
14334 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14335 # otherwise set result to NONDIR_REPLACEMENT.
14339 */*) func_dirname_result
="${1%/*}${2}" ;;
14340 * ) func_dirname_result
="${3}" ;;
14344 # func_basename file
14347 func_basename_result
="${1##*/}"
14350 # func_dirname_and_basename file append nondir_replacement
14351 # perform func_basename and func_dirname in a single function
14353 # dirname: Compute the dirname of FILE. If nonempty,
14354 # add APPEND to the result, otherwise set result
14355 # to NONDIR_REPLACEMENT.
14356 # value returned in "$func_dirname_result"
14357 # basename: Compute filename of FILE.
14358 # value retuned in "$func_basename_result"
14359 # Implementation must be kept synchronized with func_dirname
14360 # and func_basename. For efficiency, we do not delegate to
14361 # those functions but instead duplicate the functionality here.
14362 func_dirname_and_basename
()
14365 */*) func_dirname_result
="${1%/*}${2}" ;;
14366 * ) func_dirname_result
="${3}" ;;
14368 func_basename_result
="${1##*/}"
14371 # func_stripname prefix suffix name
14372 # strip PREFIX and SUFFIX off of NAME.
14373 # PREFIX and SUFFIX must not contain globbing or regex special
14374 # characters, hashes, percent signs, but SUFFIX may contain a leading
14375 # dot (in which case that matches only a dot).
14378 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14379 # positional parameters, so assign one to ordinary parameter first.
14380 func_stripname_result
=${3}
14381 func_stripname_result
=${func_stripname_result#"${1}"}
14382 func_stripname_result
=${func_stripname_result%"${2}"}
14388 func_opt_split_opt
=${1%%=*}
14389 func_opt_split_arg
=${1#*=}
14396 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
14397 *) func_lo2o_result
=${1} ;;
14401 # func_xform libobj-or-source
14404 func_xform_result
=${1%.*}.lo
14407 # func_arith arithmetic-term...
14410 func_arith_result
=$
(( $
* ))
14414 # STRING may not start with a hyphen.
14417 func_len_result
=${#1}
14422 *) # Bourne compatible functions.
14423 cat << \_LT_EOF
>> "$cfgfile"
14425 # func_dirname file append nondir_replacement
14426 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14427 # otherwise set result to NONDIR_REPLACEMENT.
14430 # Extract subdirectory from the argument.
14431 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
14432 if test "X$func_dirname_result" = "X${1}"; then
14433 func_dirname_result
="${3}"
14435 func_dirname_result
="$func_dirname_result${2}"
14439 # func_basename file
14442 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
14446 # func_stripname prefix suffix name
14447 # strip PREFIX and SUFFIX off of NAME.
14448 # PREFIX and SUFFIX must not contain globbing or regex special
14449 # characters, hashes, percent signs, but SUFFIX may contain a leading
14450 # dot (in which case that matches only a dot).
14451 # func_strip_suffix prefix name
14455 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14456 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14461 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
14462 my_sed_long_arg
='1s/^-[^=]*=//'
14467 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14468 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14474 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
14477 # func_xform libobj-or-source
14480 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14483 # func_arith arithmetic-term...
14486 func_arith_result
=`expr "$@"`
14490 # STRING may not start with a hyphen.
14493 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14499 case $lt_shell_append in
14501 cat << \_LT_EOF
>> "$cfgfile"
14503 # func_append var value
14504 # Append VALUE to the end of shell variable VAR.
14512 cat << \_LT_EOF
>> "$cfgfile"
14514 # func_append var value
14515 # Append VALUE to the end of shell variable VAR.
14526 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14527 ||
(rm -f "$cfgfile"; exit 1)
14529 mv -f "$cfgfile" "$ofile" ||
14530 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14541 ac_clean_files
=$ac_clean_files_save
14543 test $ac_write_fail = 0 ||
14544 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
14547 # configure is writing to config.log, and then calls config.status.
14548 # config.status does its own redirection, appending to config.log.
14549 # Unfortunately, on DOS this fails, as config.log is still kept open
14550 # by configure, so config.status won't be able to write to it; its
14551 # output is simply discarded. So we exec the FD to /dev/null,
14552 # effectively closing config.log, so it can be properly (re)opened and
14553 # appended to by config.status. When coming back to configure, we
14554 # need to make the FD available again.
14555 if test "$no_create" != yes; then
14557 ac_config_status_args
=
14558 test "$silent" = yes &&
14559 ac_config_status_args
="$ac_config_status_args --quiet"
14561 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
14563 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14564 # would make configure fail if this is the last instruction.
14565 $ac_cs_success || as_fn_exit
1
14567 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14569 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}