2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for package-unused version-unused.
5 # Report bugs to <libsanitizer>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 PATH=/empty FPATH=/empty; export PATH FPATH
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
183 if (eval "$as_required") 2>/dev
/null
; then :
188 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
191 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
193 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
196 test -z "$as_dir" && as_dir
=.
200 for as_base
in sh bash ksh sh5
; do
201 # Try only shells that exist, to save several forks.
202 as_shell
=$as_dir/$as_base
203 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
204 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
205 CONFIG_SHELL
=$as_shell as_have_required
=yes
206 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
214 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
215 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
216 CONFIG_SHELL
=$SHELL as_have_required
=yes
221 if test "x$CONFIG_SHELL" != x
; then :
222 # We cannot yet assume a decent shell, so we have to provide a
223 # neutralization value for shells without unset; and this also
224 # works around shells that cannot unset nonexistent variables.
227 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
229 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232 if test x
$as_have_required = xno
; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x
${ZSH_VERSION+set} = xset
; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
239 $as_echo "$0: Please tell bug-autoconf@gnu.org and libsanitizer about
240 $0: your system, including any error possibly output before
241 $0: this message. Then install a modern shell, or manually
242 $0: run the script under such a shell if you do have one."
248 SHELL
=${CONFIG_SHELL-/bin/sh}
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE
= GREP_OPTIONS
=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
259 # Portably unset VAR.
262 { eval $1=; unset $1;}
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
286 # Create "$as_dir" as a directory, including parents if necessary.
291 -*) as_dir
=.
/$as_dir;;
293 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
297 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300 as_dirs
="'$as_qdir' $as_dirs"
301 as_dir
=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
324 test -d "$as_dir" && break
326 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
327 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
338 eval 'as_fn_append ()
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
362 as_val
=`expr "$@" || test $? -eq 1`
367 # as_fn_error ERROR [LINENO LOG_FD]
368 # ---------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with status $?, using 1 if that was 0.
374 as_status
=$?
; test $as_status -eq 0 && as_status
=1
376 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
379 $as_echo "$as_me: error: $1" >&2
380 as_fn_exit
$as_status
383 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
390 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
396 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
402 as_me
=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
421 # Avoid depending upon Character Ranges.
422 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits
='0123456789'
426 as_cr_alnum
=$as_cr_Letters$as_cr_digits
429 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
430 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x
"$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
456 # Exit status is that of the last command.
460 ECHO_C
= ECHO_N
= ECHO_T
=
461 case `echo -n x` in #(((((
463 case `echo 'xy\c'` in
464 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
473 rm -f conf$$ conf$$.exe conf$$.
file
474 if test -d conf$$.dir
; then
475 rm -f conf$$.dir
/conf$$.
file
478 mkdir conf$$.dir
2>/dev
/null
480 if (echo >conf$$.
file) 2>/dev
/null
; then
481 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
489 elif ln conf$$.
file conf$$
2>/dev
/null
; then
497 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
498 rmdir conf$$.dir
2>/dev
/null
500 if mkdir
-p .
2>/dev
/null
; then
501 as_mkdir_p
='mkdir -p "$as_dir"'
503 test -d .
/-p && rmdir .
/-p
507 if test -x / >/dev
/null
2>&1; then
510 if ls -dL / >/dev
/null
2>&1; then
517 if test -d "$1"; then
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
528 as_executable_p
=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536 SHELL
=${CONFIG_SHELL-/bin/sh}
539 exec 7<&0 </dev
/null
6>&1
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
549 ac_default_prefix
=/usr
/local
551 ac_config_libobj_dir
=.
558 # Identity of this package.
559 PACKAGE_NAME
='package-unused'
560 PACKAGE_TARNAME
='package-unused'
561 PACKAGE_VERSION
='version-unused'
562 PACKAGE_STRING
='package-unused version-unused'
563 PACKAGE_BUGREPORT
='libsanitizer'
566 ac_unique_file
="include/sanitizer/common_interface_defs.h"
567 # Factoring default headers for most tests.
568 ac_includes_default
="\
570 #ifdef HAVE_SYS_TYPES_H
571 # include <sys/types.h>
573 #ifdef HAVE_SYS_STAT_H
574 # include <sys/stat.h>
580 # ifdef HAVE_STDLIB_H
585 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
590 #ifdef HAVE_STRINGS_H
591 # include <strings.h>
593 #ifdef HAVE_INTTYPES_H
594 # include <inttypes.h>
603 ac_subst_vars
='am__EXEEXT_FALSE
607 TSAN_TARGET_DEPENDENT_OBJECTS
608 LIBBACKTRACE_SUPPORTED_FALSE
609 LIBBACKTRACE_SUPPORTED_TRUE
611 BACKTRACE_SUPPORTS_THREADS
612 BACKTRACE_USES_MALLOC
617 SANITIZER_SUPPORTED_FALSE
618 SANITIZER_SUPPORTED_TRUE
619 USING_MAC_INTERPOSE_FALSE
620 USING_MAC_INTERPOSE_TRUE
648 am__fastdepCCAS_FALSE
662 MAINTAINER_MODE_FALSE
681 INSTALL_STRIP_PROGRAM
696 LIBSTDCXX_RAW_CXX_LDFLAGS
697 LIBSTDCXX_RAW_CXX_CXXFLAGS
749 program_transform_name
762 enable_option_checking
764 enable_version_specific_runtime_libs
765 enable_dependency_tracking
766 enable_maintainer_mode
774 ac_precious_vars
='build_alias
791 # Initialize some variables set by options.
793 ac_init_version
=false
794 ac_unrecognized_opts
=
796 # The variables have the same names as the options, with
797 # dashes changed to underlines.
805 program_transform_name
=s
,x
,x
,
813 # Installation directory options.
814 # These are left unexpanded so users can "make install exec_prefix=/foo"
815 # and all the variables that are supposed to be based on exec_prefix
816 # by default will actually change.
817 # Use braces instead of parens because sh, perl, etc. also accept them.
818 # (The list follows the same order as the GNU Coding Standards.)
819 bindir
='${exec_prefix}/bin'
820 sbindir
='${exec_prefix}/sbin'
821 libexecdir
='${exec_prefix}/libexec'
822 datarootdir
='${prefix}/share'
823 datadir
='${datarootdir}'
824 sysconfdir
='${prefix}/etc'
825 sharedstatedir
='${prefix}/com'
826 localstatedir
='${prefix}/var'
827 includedir
='${prefix}/include'
828 oldincludedir
='/usr/include'
829 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
830 infodir
='${datarootdir}/info'
835 libdir
='${exec_prefix}/lib'
836 localedir
='${datarootdir}/locale'
837 mandir
='${datarootdir}/man'
843 # If the previous option needs an argument, assign it.
844 if test -n "$ac_prev"; then
845 eval $ac_prev=\
$ac_option
851 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
855 # Accept the important Cygnus configure options, so we can diagnose typos.
857 case $ac_dashdash$ac_option in
861 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
863 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
866 -build |
--build |
--buil |
--bui |
--bu)
867 ac_prev
=build_alias
;;
868 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
869 build_alias
=$ac_optarg ;;
871 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
872 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
873 ac_prev
=cache_file
;;
874 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
875 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
876 cache_file
=$ac_optarg ;;
879 cache_file
=config.cache
;;
881 -datadir |
--datadir |
--datadi |
--datad)
883 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
884 datadir
=$ac_optarg ;;
886 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
887 |
--dataroo |
--dataro |
--datar)
888 ac_prev
=datarootdir
;;
889 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
890 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
891 datarootdir
=$ac_optarg ;;
893 -disable-* |
--disable-*)
894 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
895 # Reject names that are not valid shell variable names.
896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
897 as_fn_error
"invalid feature name: $ac_useropt"
898 ac_useropt_orig
=$ac_useropt
899 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900 case $ac_user_opts in
904 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
905 ac_unrecognized_sep
=', ';;
907 eval enable_
$ac_useropt=no
;;
909 -docdir |
--docdir |
--docdi |
--doc |
--do)
911 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
914 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
916 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
919 -enable-* |
--enable-*)
920 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
923 as_fn_error
"invalid feature name: $ac_useropt"
924 ac_useropt_orig
=$ac_useropt
925 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926 case $ac_user_opts in
930 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
931 ac_unrecognized_sep
=', ';;
933 eval enable_
$ac_useropt=\
$ac_optarg ;;
935 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
936 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
937 |
--exec |
--exe |
--ex)
938 ac_prev
=exec_prefix
;;
939 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
940 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
941 |
--exec=* |
--exe=* |
--ex=*)
942 exec_prefix
=$ac_optarg ;;
944 -gas |
--gas |
--ga |
--g)
945 # Obsolete; use --with-gas.
948 -help |
--help |
--hel |
--he |
-h)
950 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
951 ac_init_help
=recursive
;;
952 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
953 ac_init_help
=short
;;
955 -host |
--host |
--hos |
--ho)
956 ac_prev
=host_alias
;;
957 -host=* |
--host=* |
--hos=* |
--ho=*)
958 host_alias
=$ac_optarg ;;
960 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
962 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
964 htmldir
=$ac_optarg ;;
966 -includedir |
--includedir |
--includedi |
--included |
--include \
967 |
--includ |
--inclu |
--incl |
--inc)
968 ac_prev
=includedir
;;
969 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
970 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
971 includedir
=$ac_optarg ;;
973 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
975 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
976 infodir
=$ac_optarg ;;
978 -libdir |
--libdir |
--libdi |
--libd)
980 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
983 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
984 |
--libexe |
--libex |
--libe)
985 ac_prev
=libexecdir
;;
986 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
987 |
--libexe=* |
--libex=* |
--libe=*)
988 libexecdir
=$ac_optarg ;;
990 -localedir |
--localedir |
--localedi |
--localed |
--locale)
992 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
993 localedir
=$ac_optarg ;;
995 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
996 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
997 ac_prev
=localstatedir
;;
998 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
999 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1000 localstatedir
=$ac_optarg ;;
1002 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1004 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1005 mandir
=$ac_optarg ;;
1007 -nfp |
--nfp |
--nf)
1008 # Obsolete; use --without-fp.
1011 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1012 |
--no-cr |
--no-c |
-n)
1015 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1016 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1019 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1020 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1021 |
--oldin |
--oldi |
--old |
--ol |
--o)
1022 ac_prev
=oldincludedir
;;
1023 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1024 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1025 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1026 oldincludedir
=$ac_optarg ;;
1028 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1030 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1031 prefix
=$ac_optarg ;;
1033 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1034 |
--program-pre |
--program-pr |
--program-p)
1035 ac_prev
=program_prefix
;;
1036 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1037 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1038 program_prefix
=$ac_optarg ;;
1040 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1041 |
--program-suf |
--program-su |
--program-s)
1042 ac_prev
=program_suffix
;;
1043 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1044 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1045 program_suffix
=$ac_optarg ;;
1047 -program-transform-name |
--program-transform-name \
1048 |
--program-transform-nam |
--program-transform-na \
1049 |
--program-transform-n |
--program-transform- \
1050 |
--program-transform |
--program-transfor \
1051 |
--program-transfo |
--program-transf \
1052 |
--program-trans |
--program-tran \
1053 |
--progr-tra |
--program-tr |
--program-t)
1054 ac_prev
=program_transform_name
;;
1055 -program-transform-name=* |
--program-transform-name=* \
1056 |
--program-transform-nam=* |
--program-transform-na=* \
1057 |
--program-transform-n=* |
--program-transform-=* \
1058 |
--program-transform=* |
--program-transfor=* \
1059 |
--program-transfo=* |
--program-transf=* \
1060 |
--program-trans=* |
--program-tran=* \
1061 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1062 program_transform_name
=$ac_optarg ;;
1064 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1066 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1067 pdfdir
=$ac_optarg ;;
1069 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1071 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1074 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1075 |
-silent |
--silent |
--silen |
--sile |
--sil)
1078 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1080 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1082 sbindir
=$ac_optarg ;;
1084 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1085 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1086 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1088 ac_prev
=sharedstatedir
;;
1089 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1090 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1091 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1093 sharedstatedir
=$ac_optarg ;;
1095 -site |
--site |
--sit)
1097 -site=* |
--site=* |
--sit=*)
1100 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1102 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1103 srcdir
=$ac_optarg ;;
1105 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1106 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1107 ac_prev
=sysconfdir
;;
1108 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1109 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1110 sysconfdir
=$ac_optarg ;;
1112 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1113 ac_prev
=target_alias
;;
1114 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1115 target_alias
=$ac_optarg ;;
1117 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1120 -version |
--version |
--versio |
--versi |
--vers |
-V)
1121 ac_init_version
=: ;;
1124 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1125 # Reject names that are not valid shell variable names.
1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1127 as_fn_error
"invalid package name: $ac_useropt"
1128 ac_useropt_orig
=$ac_useropt
1129 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130 case $ac_user_opts in
1134 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1135 ac_unrecognized_sep
=', ';;
1137 eval with_
$ac_useropt=\
$ac_optarg ;;
1139 -without-* |
--without-*)
1140 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1143 as_fn_error
"invalid package name: $ac_useropt"
1144 ac_useropt_orig
=$ac_useropt
1145 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1150 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1151 ac_unrecognized_sep
=', ';;
1153 eval with_
$ac_useropt=no
;;
1156 # Obsolete; use --with-x.
1159 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1160 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1161 ac_prev
=x_includes
;;
1162 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1163 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1164 x_includes
=$ac_optarg ;;
1166 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1167 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1168 ac_prev
=x_libraries
;;
1169 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1170 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1171 x_libraries
=$ac_optarg ;;
1173 -*) as_fn_error
"unrecognized option: \`$ac_option'
1174 Try \`$0 --help' for more information."
1178 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1179 # Reject names that are not valid shell variable names.
1180 case $ac_envvar in #(
1181 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1182 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1184 eval $ac_envvar=\
$ac_optarg
1185 export $ac_envvar ;;
1188 # FIXME: should be removed in autoconf 3.0.
1189 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1191 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1198 if test -n "$ac_prev"; then
1199 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1200 as_fn_error
"missing argument to $ac_option"
1203 if test -n "$ac_unrecognized_opts"; then
1204 case $enable_option_checking in
1206 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1207 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1211 # Check all directory arguments for consistency.
1212 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1213 datadir sysconfdir sharedstatedir localstatedir includedir \
1214 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1215 libdir localedir mandir
1217 eval ac_val
=\$
$ac_var
1218 # Remove trailing slashes.
1221 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1222 eval $ac_var=\
$ac_val;;
1224 # Be sure to have absolute directory names.
1226 [\\/$
]* | ?
:[\\/]* ) continue;;
1227 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1229 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1232 # There might be people who depend on the old broken behavior: `$host'
1233 # used to hold the argument of --host etc.
1234 # FIXME: To remove some day.
1237 target
=$target_alias
1239 # FIXME: To remove some day.
1240 if test "x$host_alias" != x
; then
1241 if test "x$build_alias" = x
; then
1242 cross_compiling
=maybe
1243 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1244 If a cross compiler is detected then cross compile mode will be used." >&2
1245 elif test "x$build_alias" != "x$host_alias"; then
1251 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1253 test "$silent" = yes && exec 6>/dev
/null
1256 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1257 ac_ls_di
=`ls -di .` &&
1258 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1259 as_fn_error
"working directory cannot be determined"
1260 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261 as_fn_error
"pwd does not report name of working directory"
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266 ac_srcdir_defaulted
=yes
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir
=`$as_dirname -- "$as_myself" ||
1269 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$as_myself" : 'X\(//\)[^/]' \| \
1271 X"$as_myself" : 'X\(//\)$' \| \
1272 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1273 $as_echo X"$as_myself" |
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1296 ac_srcdir_defaulted
=no
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1300 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1302 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1304 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1306 # When building in place, set srcdir=.
1307 if test "$ac_abs_confdir" = "$ac_pwd"; then
1310 # Remove unnecessary trailing slashes from srcdir.
1311 # Double slashes in file names in object file debugging info
1312 # mess up M-x gdb in Emacs.
1314 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316 for ac_var
in $ac_precious_vars; do
1317 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1318 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1319 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1320 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1324 # Report the --help message.
1326 if test "$ac_init_help" = "long"; then
1327 # Omit some internal or obsolete options to make the list less imposing.
1328 # This message is too long to be a string in the A/UX 3.1 sh.
1330 \`configure' configures package-unused version-unused 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/package-unused]
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 package-unused version-unused:";;
1406 --disable-option-checking ignore unrecognized
--enable/--with options
1407 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1408 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1409 --enable-multilib build many library versions
(default
)
1410 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed
in a compiler-specific directory
1411 --disable-dependency-tracking speeds up one-time build
1412 --enable-dependency-tracking do not reject slow dependency extractors
1413 --enable-maintainer-mode enable make rules and dependencies not useful
1414 (and sometimes confusing
) to the casual installer
1415 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1416 --enable-static[=PKGS
] build static libraries
[default
=yes]
1417 --enable-fast-install[=PKGS
]
1418 optimize
for fast installation
[default
=yes]
1419 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1422 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1423 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1424 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1426 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1428 Some influential environment variables
:
1429 CC C compiler
command
1430 CFLAGS C compiler flags
1431 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1432 nonstandard directory
<lib dir
>
1433 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1434 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1435 you have headers
in a nonstandard directory
<include dir
>
1437 CXX C
++ compiler
command
1438 CXXFLAGS C
++ compiler flags
1439 CCAS assembler compiler
command (defaults to CC
)
1440 CCASFLAGS assembler compiler flags
(defaults to CFLAGS
)
1441 CXXCPP C
++ preprocessor
1443 Use these variables to override the choices made by
`configure' or to help
1444 it to find libraries and programs with nonstandard names/locations.
1446 Report bugs to <libsanitizer>.
1451 if test "$ac_init_help" = "recursive"; then
1452 # If there are subdirs, report their specific --help.
1453 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1454 test -d "$ac_dir" ||
1455 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1460 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1463 # A ".." for each directory in $ac_dir_suffix.
1464 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1465 case $ac_top_builddir_sub in
1466 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1470 ac_abs_top_builddir=$ac_pwd
1471 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1472 # for backward compatibility:
1473 ac_top_builddir=$ac_top_build_prefix
1476 .) # We are building in place.
1478 ac_top_srcdir=$ac_top_builddir_sub
1479 ac_abs_top_srcdir=$ac_pwd ;;
1480 [\\/]* | ?:[\\/]* ) # Absolute name.
1481 ac_srcdir=$srcdir$ac_dir_suffix;
1482 ac_top_srcdir=$srcdir
1483 ac_abs_top_srcdir=$srcdir ;;
1485 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1486 ac_top_srcdir=$ac_top_build_prefix$srcdir
1487 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1489 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1491 cd "$ac_dir" || { ac_status=$?; continue; }
1492 # Check for guested configure.
1493 if test -f "$ac_srcdir/configure.gnu"; then
1495 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1496 elif test -f "$ac_srcdir/configure"; then
1498 $SHELL "$ac_srcdir/configure" --help=recursive
1500 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1502 cd "$ac_pwd" || { ac_status=$?; break; }
1506 test -n "$ac_init_help" && exit $ac_status
1507 if $ac_init_version; then
1509 package-unused configure version-unused
1510 generated by GNU Autoconf 2.64
1512 Copyright (C) 2009 Free Software Foundation, Inc.
1513 This configure script is free software; the Free Software Foundation
1514 gives unlimited permission to copy, distribute and modify it.
1519 ## ------------------------ ##
1520 ## Autoconf initialization. ##
1521 ## ------------------------ ##
1523 # ac_fn_c_try_compile LINENO
1524 # --------------------------
1525 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1526 ac_fn_c_try_compile ()
1528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529 rm -f conftest.$ac_objext
1530 if { { ac_try="$ac_compile"
1532 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1533 *) ac_try_echo
=$ac_try;;
1535 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536 $as_echo "$ac_try_echo"; } >&5
1537 (eval "$ac_compile") 2>conftest.err
1539 if test -s conftest.err
; then
1540 grep -v '^ *+' conftest.err
>conftest.er1
1541 cat conftest.er1
>&5
1542 mv -f conftest.er1 conftest.err
1544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545 test $ac_status = 0; } && {
1546 test -z "$ac_c_werror_flag" ||
1547 test ! -s conftest.err
1548 } && test -s conftest.
$ac_objext; then :
1551 $as_echo "$as_me: failed program was:" >&5
1552 sed 's/^/| /' conftest.
$ac_ext >&5
1556 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1559 } # ac_fn_c_try_compile
1561 # ac_fn_c_try_cpp LINENO
1562 # ----------------------
1563 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1566 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1567 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1569 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1570 *) ac_try_echo=$ac_try;;
1572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573 $as_echo "$ac_try_echo"; } >&5
1574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1576 if test -s conftest.err; then
1577 grep -v '^ *+' conftest.err >conftest.er1
1578 cat conftest.er1 >&5
1579 mv -f conftest.er1 conftest.err
1581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582 test $ac_status = 0; } >/dev/null && {
1583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1584 test ! -s conftest.err
1588 $as_echo "$as_me: failed program was:" >&5
1589 sed 's/^/| /' conftest.$ac_ext >&5
1593 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1598 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1599 # -------------------------------------------------------
1600 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1601 # the include files in INCLUDES and setting the cache variable VAR
1603 ac_fn_c_check_header_mongrel ()
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1608 $as_echo_n "checking for $2... " >&6; }
1609 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1610 $as_echo_n "(cached) " >&6
1613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1614 $as_echo "$ac_res" >&6; }
1616 # Is the header compilable?
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1618 $as_echo_n "checking $2 usability... " >&6; }
1619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1620 /* end confdefs.h. */
1624 if ac_fn_c_try_compile "$LINENO"; then :
1625 ac_header_compiler=yes
1627 ac_header_compiler=no
1629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1631 $as_echo "$ac_header_compiler" >&6; }
1633 # Is the header present?
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1635 $as_echo_n "checking $2 presence... " >&6; }
1636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1637 /* end confdefs.h. */
1640 if ac_fn_c_try_cpp "$LINENO"; then :
1641 ac_header_preproc=yes
1643 ac_header_preproc=no
1645 rm -f conftest.err conftest.$ac_ext
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1647 $as_echo "$ac_header_preproc" >&6; }
1649 # So? What about this header?
1650 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1653 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1655 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1659 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1661 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1663 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1665 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1667 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1669 ## --------------------------- ##
1670 ## Report this to libsanitizer ##
1671 ## --------------------------- ##
1673 ) | sed "s/^/$as_me: WARNING: /" >&2
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1677 $as_echo_n "checking for $2... " >&6; }
1678 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1679 $as_echo_n "(cached) " >&6
1681 eval "$3=\$ac_header_compiler"
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1685 $as_echo "$ac_res" >&6; }
1687 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1689 } # ac_fn_c_check_header_mongrel
1691 # ac_fn_c_try_run LINENO
1692 # ----------------------
1693 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1694 # that executables *can* be run.
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 if { { ac_try="$ac_link"
1700 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1701 *) ac_try_echo
=$ac_try;;
1703 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_link") 2>&5
1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1709 { { case "(($ac_try" in
1710 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1711 *) ac_try_echo=$ac_try;;
1713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714 $as_echo "$ac_try_echo"; } >&5
1715 (eval "$ac_try") 2>&5
1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718 test $ac_status = 0; }; }; then :
1721 $as_echo "$as_me: program exited with status $ac_status" >&5
1722 $as_echo "$as_me: failed program was:" >&5
1723 sed 's/^/| /' conftest.$ac_ext >&5
1725 ac_retval=$ac_status
1727 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1728 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1733 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1734 # -------------------------------------------------------
1735 # Tests whether HEADER exists and can be compiled using the include files in
1736 # INCLUDES, setting the cache variable VAR accordingly.
1737 ac_fn_c_check_header_compile ()
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741 $as_echo_n "checking for $2... " >&6; }
1742 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1743 $as_echo_n "(cached) " >&6
1745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746 /* end confdefs.h. */
1750 if ac_fn_c_try_compile "$LINENO"; then :
1755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1759 $as_echo "$ac_res" >&6; }
1760 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1762 } # ac_fn_c_check_header_compile
1764 # ac_fn_cxx_try_compile LINENO
1765 # ----------------------------
1766 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1767 ac_fn_cxx_try_compile ()
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 rm -f conftest.$ac_objext
1771 if { { ac_try="$ac_compile"
1773 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1774 *) ac_try_echo
=$ac_try;;
1776 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_compile") 2>conftest.err
1780 if test -s conftest.err
; then
1781 grep -v '^ *+' conftest.err
>conftest.er1
1782 cat conftest.er1
>&5
1783 mv -f conftest.er1 conftest.err
1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786 test $ac_status = 0; } && {
1787 test -z "$ac_cxx_werror_flag" ||
1788 test ! -s conftest.err
1789 } && test -s conftest.
$ac_objext; then :
1792 $as_echo "$as_me: failed program was:" >&5
1793 sed 's/^/| /' conftest.
$ac_ext >&5
1797 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1800 } # ac_fn_cxx_try_compile
1802 # ac_fn_c_try_link LINENO
1803 # -----------------------
1804 # Try to link conftest.$ac_ext, and return whether this succeeded.
1807 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1808 rm -f conftest.
$ac_objext conftest
$ac_exeext
1809 if { { ac_try
="$ac_link"
1811 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_link") 2>conftest.err
1818 if test -s conftest.err; then
1819 grep -v '^ *+' conftest.err >conftest.er1
1820 cat conftest.er1 >&5
1821 mv -f conftest.er1 conftest.err
1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; } && {
1825 test -z "$ac_c_werror_flag" ||
1826 test ! -s conftest.err
1827 } && test -s conftest$ac_exeext && {
1828 test "$cross_compiling" = yes ||
1829 $as_test_x conftest$ac_exeext
1833 $as_echo "$as_me: failed program was:" >&5
1834 sed 's/^/| /' conftest.$ac_ext >&5
1838 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1839 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1840 # interfere with the next link command; also delete a directory that is
1841 # left behind by Apple's compiler. We do this before executing the actions.
1842 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1843 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1846 } # ac_fn_c_try_link
1848 # ac_fn_c_check_func LINENO FUNC VAR
1849 # ----------------------------------
1850 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1851 ac_fn_c_check_func ()
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1855 $as_echo_n "checking for $2... " >&6; }
1856 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1857 $as_echo_n "(cached) " >&6
1859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860 /* end confdefs.h. */
1861 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1862 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1863 #define $2 innocuous_$2
1865 /* System header to define __stub macros and hopefully few prototypes,
1866 which can conflict with char $2 (); below.
1867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1868 <limits.h> exists even on freestanding compilers. */
1871 # include <limits.h>
1873 # include <assert.h>
1878 /* Override any GCC internal prototype to avoid an error.
1879 Use char because int might match the return type of a GCC
1880 builtin and then its argument prototype would still apply. */
1885 /* The GNU C library defines this for functions which it implements
1886 to always fail with ENOSYS. Some functions are actually named
1887 something starting with __ and the normal name is an alias. */
1888 #if defined __stub_$2 || defined __stub___$2
1900 if ac_fn_c_try_link "$LINENO"; then :
1905 rm -f core conftest.err conftest.$ac_objext \
1906 conftest$ac_exeext conftest.$ac_ext
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1910 $as_echo "$ac_res" >&6; }
1911 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1913 } # ac_fn_c_check_func
1915 # ac_fn_cxx_try_cpp LINENO
1916 # ------------------------
1917 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1918 ac_fn_cxx_try_cpp ()
1920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1921 if { { ac_try="$ac_cpp conftest.$ac_ext"
1923 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1924 *) ac_try_echo
=$ac_try;;
1926 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1927 $as_echo "$ac_try_echo"; } >&5
1928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1930 if test -s conftest.err
; then
1931 grep -v '^ *+' conftest.err
>conftest.er1
1932 cat conftest.er1
>&5
1933 mv -f conftest.er1 conftest.err
1935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1936 test $ac_status = 0; } >/dev
/null
&& {
1937 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1938 test ! -s conftest.err
1942 $as_echo "$as_me: failed program was:" >&5
1943 sed 's/^/| /' conftest.
$ac_ext >&5
1947 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1950 } # ac_fn_cxx_try_cpp
1952 # ac_fn_cxx_try_link LINENO
1953 # -------------------------
1954 # Try to link conftest.$ac_ext, and return whether this succeeded.
1955 ac_fn_cxx_try_link
()
1957 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1958 rm -f conftest.
$ac_objext conftest
$ac_exeext
1959 if { { ac_try
="$ac_link"
1961 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1962 *) ac_try_echo=$ac_try;;
1964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1965 $as_echo "$ac_try_echo"; } >&5
1966 (eval "$ac_link") 2>conftest.err
1968 if test -s conftest.err; then
1969 grep -v '^ *+' conftest.err >conftest.er1
1970 cat conftest.er1 >&5
1971 mv -f conftest.er1 conftest.err
1973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1974 test $ac_status = 0; } && {
1975 test -z "$ac_cxx_werror_flag" ||
1976 test ! -s conftest.err
1977 } && test -s conftest$ac_exeext && {
1978 test "$cross_compiling" = yes ||
1979 $as_test_x conftest$ac_exeext
1983 $as_echo "$as_me: failed program was:" >&5
1984 sed 's/^/| /' conftest.$ac_ext >&5
1988 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1989 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1990 # interfere with the next link command; also delete a directory that is
1991 # left behind by Apple's compiler. We do this before executing the actions.
1992 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1993 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1996 } # ac_fn_cxx_try_link
1998 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1999 # --------------------------------------------
2000 # Tries to find the compile-time value of EXPR in a program that includes
2001 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2003 ac_fn_c_compute_int ()
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 if test "$cross_compiling" = yes; then
2007 # Depending upon the size, compute the lo and hi bounds.
2008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h. */
2014 static int test_array [1 - 2 * !(($2) >= 0)];
2021 if ac_fn_c_try_compile "$LINENO"; then :
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h. */
2030 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2037 if ac_fn_c_try_compile "$LINENO"; then :
2038 ac_hi=$ac_mid; break
2040 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2041 if test $ac_lo -le $ac_mid; then
2045 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h. */
2056 static int test_array [1 - 2 * !(($2) < 0)];
2063 if ac_fn_c_try_compile "$LINENO"; then :
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2072 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2079 if ac_fn_c_try_compile "$LINENO"; then :
2080 ac_lo=$ac_mid; break
2082 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2083 if test $ac_mid -le $ac_hi; then
2087 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097 # Binary search between lo and hi bounds.
2098 while test "x$ac_lo" != "x$ac_hi"; do
2099 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h. */
2106 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2113 if ac_fn_c_try_compile "$LINENO"; then :
2116 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2128 static long int longval () { return $2; }
2129 static unsigned long int ulongval () { return $2; }
2136 FILE *f = fopen ("conftest.val", "w");
2141 long int i = longval ();
2144 fprintf (f, "%ld", i);
2148 unsigned long int i = ulongval ();
2151 fprintf (f, "%lu", i);
2153 /* Do not output a trailing newline, as this causes \r\n confusion
2154 on some platforms. */
2155 return ferror (f) || fclose (f) != 0;
2161 if ac_fn_c_try_run "$LINENO"; then :
2162 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2167 conftest.$ac_objext conftest.beam conftest.$ac_ext
2171 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2174 } # ac_fn_c_compute_int
2176 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2177 # -------------------------------------------
2178 # Tests whether TYPE exists after having included INCLUDES, setting cache
2179 # variable VAR accordingly.
2180 ac_fn_c_check_type ()
2182 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2184 $as_echo_n "checking for $2... " >&6; }
2185 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2186 $as_echo_n "(cached) " >&6
2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190 /* end confdefs.h. */
2201 if ac_fn_c_try_compile "$LINENO"; then :
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2214 if ac_fn_c_try_compile "$LINENO"; then :
2219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2225 $as_echo "$ac_res" >&6; }
2226 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2228 } # ac_fn_c_check_type
2230 # ac_fn_c_check_decl LINENO SYMBOL VAR
2231 # ------------------------------------
2232 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2233 ac_fn_c_check_decl ()
2235 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2236 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2237 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2239 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2240 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2241 $as_echo_n "(cached) " >&6
2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h. */
2249 #ifndef $as_decl_name
2251 (void) $as_decl_use;
2253 (void) $as_decl_name;
2261 if ac_fn_c_try_compile "$LINENO"; then :
2266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2270 $as_echo "$ac_res" >&6; }
2271 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2273 } # ac_fn_c_check_decl
2274 cat >config.log <<_ACEOF
2275 This file contains any messages produced by compilers while
2276 running configure, to aid debugging if configure makes a mistake.
2278 It was created by package-unused $as_me version-unused, which was
2279 generated by GNU Autoconf 2.64. Invocation command line was
2291 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2292 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2293 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2294 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2295 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2297 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2298 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2300 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2301 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2302 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2303 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2304 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2305 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2306 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314 test -z "$as_dir" && as_dir=.
2315 $as_echo "PATH: $as_dir"
2331 # Keep a trace of the command line.
2332 # Strip out --no-create and --no-recursion so they do not pile up.
2333 # Strip out --silent because we don't want to record it for future runs.
2334 # Also quote any args containing shell meta-characters.
2335 # Make two passes to allow for proper duplicate-argument suppression.
2339 ac_must_keep_next=false
2345 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2346 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2347 | -silent | --silent | --silen | --sile | --sil)
2350 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2353 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2355 as_fn_append ac_configure_args1 " '$ac_arg'"
2356 if test $ac_must_keep_next = true; then
2357 ac_must_keep_next=false # Got value, back to normal.
2360 *=* | --config-cache | -C | -disable-* | --disable-* \
2361 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2362 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2363 | -with-* | --with-* | -without-* | --without-* | --x)
2364 case "$ac_configure_args0 " in
2365 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2368 -* ) ac_must_keep_next=true ;;
2371 as_fn_append ac_configure_args " '$ac_arg'"
2376 { ac_configure_args0=; unset ac_configure_args0;}
2377 { ac_configure_args1=; unset ac_configure_args1;}
2379 # When interrupted or exit'd, cleanup temporary files, and complete
2380 # config.log. We remove comments because anyway the quotes in there
2381 # would cause problems or look ugly.
2382 # WARNING: Use '\'' to represent an apostrophe within the trap.
2383 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2384 trap 'exit_status=$?
2385 # Save into config.log some information that might help in debugging.
2390 ## ---------------- ##
2391 ## Cache variables. ##
2392 ## ---------------- ##
2395 # The following way of writing the cache mishandles newlines in values,
2397 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2398 eval ac_val=\$$ac_var
2402 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2403 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2406 _ | IFS | as_nl) ;; #(
2407 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2408 *) { eval $ac_var=; unset $ac_var;} ;;
2413 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2414 *${as_nl}ac_space=\ *)
2416 "s/'\''/'\''\\\\'\'''\''/g;
2417 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2420 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2428 ## ----------------- ##
2429 ## Output variables. ##
2430 ## ----------------- ##
2433 for ac_var in $ac_subst_vars
2435 eval ac_val=\$$ac_var
2437 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2439 $as_echo "$ac_var='\''$ac_val'\''"
2443 if test -n "$ac_subst_files"; then
2445 ## ------------------- ##
2446 ## File substitutions. ##
2447 ## ------------------- ##
2450 for ac_var in $ac_subst_files
2452 eval ac_val=\$$ac_var
2454 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2456 $as_echo "$ac_var='\''$ac_val'\''"
2461 if test -s confdefs.h; then
2471 test "$ac_signal" != 0 &&
2472 $as_echo "$as_me: caught signal $ac_signal"
2473 $as_echo "$as_me: exit $exit_status"
2475 rm -f core *.core core.conftest.* &&
2476 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2479 for ac_signal in 1 2 13 15; do
2480 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2484 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2485 rm -f -r conftest* confdefs.h
2487 $as_echo "/* confdefs.h */" > confdefs.h
2489 # Predefined preprocessor variables.
2491 cat >>confdefs.h <<_ACEOF
2492 #define PACKAGE_NAME "$PACKAGE_NAME"
2495 cat >>confdefs.h <<_ACEOF
2496 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2499 cat >>confdefs.h <<_ACEOF
2500 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2503 cat >>confdefs.h <<_ACEOF
2504 #define PACKAGE_STRING "$PACKAGE_STRING"
2507 cat >>confdefs.h <<_ACEOF
2508 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2511 cat >>confdefs.h <<_ACEOF
2512 #define PACKAGE_URL "$PACKAGE_URL"
2516 # Let the site file select an alternate cache file if it wants to.
2517 # Prefer an explicitly selected file to automatically selected ones.
2520 if test -n "$CONFIG_SITE"; then
2521 ac_site_file1=$CONFIG_SITE
2522 elif test "x$prefix" != xNONE; then
2523 ac_site_file1=$prefix/share/config.site
2524 ac_site_file2=$prefix/etc/config.site
2526 ac_site_file1=$ac_default_prefix/share/config.site
2527 ac_site_file2=$ac_default_prefix/etc/config.site
2529 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2531 test "x$ac_site_file" = xNONE && continue
2532 if test -r "$ac_site_file"; then
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2534 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2535 sed 's/^/| /' "$ac_site_file" >&5
2540 if test -r "$cache_file"; then
2541 # Some versions of bash will fail to source /dev/null (special
2542 # files actually), so we avoid doing that.
2543 if test -f "$cache_file"; then
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2545 $as_echo "$as_me: loading cache $cache_file" >&6;}
2547 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2548 *) . "./$cache_file";;
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2553 $as_echo "$as_me: creating cache $cache_file" >&6;}
2557 # Check that the precious variables saved in the cache have kept the same
2559 ac_cache_corrupted=false
2560 for ac_var in $ac_precious_vars; do
2561 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2562 eval ac_new_set=\$ac_env_${ac_var}_set
2563 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2564 eval ac_new_val=\$ac_env_${ac_var}_value
2565 case $ac_old_set,$ac_new_set in
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2568 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2569 ac_cache_corrupted=: ;;
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2572 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2573 ac_cache_corrupted=: ;;
2576 if test "x$ac_old_val" != "x$ac_new_val"; then
2577 # differences in whitespace do not lead to failure.
2578 ac_old_val_w=`echo x
$ac_old_val`
2579 ac_new_val_w=`echo x
$ac_new_val`
2580 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2582 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2583 ac_cache_corrupted=:
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2586 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2587 eval $ac_var=\$ac_old_val
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2590 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2592 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2595 # Pass precious variables to config.status.
2596 if test "$ac_new_set" = set; then
2598 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2599 *) ac_arg=$ac_var=$ac_new_val ;;
2601 case " $ac_configure_args " in
2602 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2603 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2607 if $ac_cache_corrupted; then
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2611 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2612 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2614 ## -------------------- ##
2615 ## Main body of script. ##
2616 ## -------------------- ##
2619 ac_cpp='$CPP $CPPFLAGS'
2620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2630 # Default to --enable-multilib
2631 # Check whether --enable-multilib was given.
2632 if test "${enable_multilib+set}" = set; then :
2633 enableval=$enable_multilib; case "$enableval" in
2634 yes) multilib=yes ;;
2636 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2643 # We may get other options which we leave undocumented:
2644 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2645 # See config-ml.in if you want the gory details.
2647 if test "$srcdir" = "."; then
2648 if test "$with_target_subdir" != "."; then
2649 multi_basedir="$srcdir/$with_multisrctop../.."
2651 multi_basedir="$srcdir/$with_multisrctop.."
2654 multi_basedir="$srcdir/.."
2658 # Even if the default multilib is not a cross compilation,
2659 # it may be that some of the other multilibs are.
2660 if test $cross_compiling = no && test $multilib = yes \
2661 && test "x${with_multisubdir}" != x ; then
2662 cross_compiling=maybe
2665 ac_config_commands="$ac_config_commands default-1"
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2669 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2670 # Check whether --enable-version-specific-runtime-libs was given.
2671 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2672 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2673 yes) version_specific_libs=yes ;;
2674 no) version_specific_libs=no ;;
2675 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2678 version_specific_libs=no
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2682 $as_echo "$version_specific_libs" >&6; }
2685 ac_cpp='$CPP $CPPFLAGS'
2686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2689 if test -n "$ac_tool_prefix"; then
2690 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2691 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2693 $as_echo_n "checking for $ac_word... " >&6; }
2694 if test "${ac_cv_prog_CC+set}" = set; then :
2695 $as_echo_n "(cached) " >&6
2697 if test -n "$CC"; then
2698 ac_cv_prog_CC="$CC" # Let the user override the test.
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 test -z "$as_dir" && as_dir=.
2705 for ac_exec_ext in '' $ac_executable_extensions; do
2706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2707 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2718 if test -n "$CC"; then
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2720 $as_echo "$CC" >&6; }
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2723 $as_echo "no" >&6; }
2728 if test -z "$ac_cv_prog_CC"; then
2730 # Extract the first word of "gcc", so it can be a program name with args.
2731 set dummy gcc; ac_word=$2
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2733 $as_echo_n "checking for $ac_word... " >&6; }
2734 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2735 $as_echo_n "(cached) " >&6
2737 if test -n "$ac_ct_CC"; then
2738 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744 test -z "$as_dir" && as_dir=.
2745 for ac_exec_ext in '' $ac_executable_extensions; do
2746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2747 ac_cv_prog_ac_ct_CC="gcc"
2748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2757 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2758 if test -n "$ac_ct_CC"; then
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2760 $as_echo "$ac_ct_CC" >&6; }
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2763 $as_echo "no" >&6; }
2766 if test "x$ac_ct_CC" = x; then
2769 case $cross_compiling:$ac_tool_warned in
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2773 ac_tool_warned=yes ;;
2781 if test -z "$CC"; then
2782 if test -n "$ac_tool_prefix"; then
2783 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2784 set dummy ${ac_tool_prefix}cc; ac_word=$2
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2786 $as_echo_n "checking for $ac_word... " >&6; }
2787 if test "${ac_cv_prog_CC+set}" = set; then :
2788 $as_echo_n "(cached) " >&6
2790 if test -n "$CC"; then
2791 ac_cv_prog_CC="$CC" # Let the user override the test.
2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 test -z "$as_dir" && as_dir=.
2798 for ac_exec_ext in '' $ac_executable_extensions; do
2799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2800 ac_cv_prog_CC="${ac_tool_prefix}cc"
2801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2811 if test -n "$CC"; then
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2813 $as_echo "$CC" >&6; }
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2816 $as_echo "no" >&6; }
2822 if test -z "$CC"; then
2823 # Extract the first word of "cc", so it can be a program name with args.
2824 set dummy cc; ac_word=$2
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2826 $as_echo_n "checking for $ac_word... " >&6; }
2827 if test "${ac_cv_prog_CC+set}" = set; then :
2828 $as_echo_n "(cached) " >&6
2830 if test -n "$CC"; then
2831 ac_cv_prog_CC="$CC" # Let the user override the test.
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2841 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2842 ac_prog_rejected=yes
2846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2853 if test $ac_prog_rejected = yes; then
2854 # We found a bogon in the path, so make sure we never use it.
2855 set dummy $ac_cv_prog_CC
2857 if test $# != 0; then
2858 # We chose a different compiler from the bogus one.
2859 # However, it has the same basename, so the bogon will be chosen
2860 # first if we set CC to just the basename; use the full file name.
2862 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2868 if test -n "$CC"; then
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2870 $as_echo "$CC" >&6; }
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2873 $as_echo "no" >&6; }
2878 if test -z "$CC"; then
2879 if test -n "$ac_tool_prefix"; then
2880 for ac_prog in cl.exe
2882 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2883 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2885 $as_echo_n "checking for $ac_word... " >&6; }
2886 if test "${ac_cv_prog_CC+set}" = set; then :
2887 $as_echo_n "(cached) " >&6
2889 if test -n "$CC"; then
2890 ac_cv_prog_CC="$CC" # Let the user override the test.
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 test -z "$as_dir" && as_dir=.
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2899 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2910 if test -n "$CC"; then
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2912 $as_echo "$CC" >&6; }
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2915 $as_echo "no" >&6; }
2919 test -n "$CC" && break
2922 if test -z "$CC"; then
2924 for ac_prog in cl.exe
2926 # Extract the first word of "$ac_prog", so it can be a program name with args.
2927 set dummy $ac_prog; ac_word=$2
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2929 $as_echo_n "checking for $ac_word... " >&6; }
2930 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2931 $as_echo_n "(cached) " >&6
2933 if test -n "$ac_ct_CC"; then
2934 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940 test -z "$as_dir" && as_dir=.
2941 for ac_exec_ext in '' $ac_executable_extensions; do
2942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2943 ac_cv_prog_ac_ct_CC="$ac_prog"
2944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2953 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2954 if test -n "$ac_ct_CC"; then
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2956 $as_echo "$ac_ct_CC" >&6; }
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959 $as_echo "no" >&6; }
2963 test -n "$ac_ct_CC" && break
2966 if test "x$ac_ct_CC" = x; then
2969 case $cross_compiling:$ac_tool_warned in
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2973 ac_tool_warned=yes ;;
2982 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2984 as_fn_error "no acceptable C compiler found
in \
$PATH
2985 See \
`config.log' for more details." "$LINENO" 5; }
2987 # Provide some information about the compiler.
2988 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2991 for ac_option in --version -v -V -qversion; do
2992 { { ac_try="$ac_compiler $ac_option >&5"
2994 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2995 *) ac_try_echo
=$ac_try;;
2997 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2998 $as_echo "$ac_try_echo"; } >&5
2999 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3001 if test -s conftest.err
; then
3003 ... rest of stderr output deleted ...
3004 10q' conftest.err
>conftest.er1
3005 cat conftest.er1
>&5
3006 rm -f conftest.er1 conftest.err
3008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3009 test $ac_status = 0; }
3012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3013 /* end confdefs.h. */
3023 ac_clean_files_save
=$ac_clean_files
3024 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3025 # Try to create an executable without -o first, disregard a.out.
3026 # It will help us diagnose broken compilers, and finding out an intuition
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3029 $as_echo_n "checking for C compiler default output file name... " >&6; }
3030 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3032 # The possible output files:
3033 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3036 for ac_file
in $ac_files
3039 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3040 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3045 if { { ac_try
="$ac_link_default"
3047 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3051 $as_echo "$ac_try_echo"; } >&5
3052 (eval "$ac_link_default") 2>&5
3054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3055 test $ac_status = 0; }; then :
3056 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3057 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3058 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3059 # so that the user can short-circuit this test for compilers unknown to
3061 for ac_file in $ac_files ''
3063 test -f "$ac_file" || continue
3065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3068 # We found the default executable, but exeext='' is most
3072 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3074 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3076 # We set ac_cv_exeext here because the later test for it is not
3077 # safe: cross compilers may not add the suffix if given an `-o'
3078 # argument, so we may need to know it at that point already.
3079 # Even if this section looks crufty: it has the advantage of
3086 test "$ac_cv_exeext" = no && ac_cv_exeext=
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3092 $as_echo "$ac_file" >&6; }
3093 if test -z "$ac_file"; then :
3094 $as_echo "$as_me: failed program was:" >&5
3095 sed 's
/^
/|
/' conftest.$ac_ext >&5
3097 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3098 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3099 { as_fn_set_status 77
3100 as_fn_error "C compiler cannot create executables
3101 See \`config.log
' for more details." "$LINENO" 5; }; }
3103 ac_exeext=$ac_cv_exeext
3105 # Check that the compiler produces executables we can run. If not, either
3106 # the compiler is broken, or we cross compile.
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3108 $as_echo_n "checking whether the C compiler works... " >&6; }
3109 # If not cross compiling, check that we can run a simple program.
3110 if test "$cross_compiling" != yes; then
3111 if { ac_try='.
/$ac_file'
3112 { { case "(($ac_try" in
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3117 $as_echo "$ac_try_echo"; } >&5
3118 (eval "$ac_try") 2>&5
3120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3121 test $ac_status = 0; }; }; then
3124 if test "$cross_compiling" = maybe; then
3127 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3128 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3129 as_fn_error "cannot run C compiled programs.
3130 If you meant to cross compile, use \`--host'.
3131 See \`config.log' for more details.
" "$LINENO" 5; }
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
3136 $as_echo "yes" >&6; }
3138 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3139 ac_clean_files=$ac_clean_files_save
3140 # Check that the compiler produces executables we can run. If not, either
3141 # the compiler is broken, or we cross compile.
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5
3143 $as_echo_n "checking whether we are cross compiling...
" >&6; }
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $cross_compiling" >&5
3145 $as_echo "$cross_compiling" >&6; }
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of executables
" >&5
3148 $as_echo_n "checking
for suffix of executables...
" >&6; }
3149 if { { ac_try="$ac_link"
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3154 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3155 $as_echo "$ac_try_echo"; } >&5
3156 (eval "$ac_link") 2>&5
3158 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3159 test $ac_status = 0; }; then :
3160 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3161 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3162 # work properly (i.e., refer to `conftest.exe'), while it won't with
3164 for ac_file in conftest.exe conftest conftest.*; do
3165 test -f "$ac_file" || continue
3167 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3168 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3174 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3176 as_fn_error "cannot compute suffix of executables: cannot compile and link
3177 See \`config.log' for more details.
" "$LINENO" 5; }
3179 rm -f conftest$ac_cv_exeext
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_exeext" >&5
3181 $as_echo "$ac_cv_exeext" >&6; }
3183 rm -f conftest.$ac_ext
3184 EXEEXT=$ac_cv_exeext
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of object files
" >&5
3187 $as_echo_n "checking
for suffix of object files...
" >&6; }
3188 if test "${ac_cv_objext+set}" = set; then :
3189 $as_echo_n "(cached
) " >&6
3191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192 /* end confdefs.h. */
3202 rm -f conftest.o conftest.obj
3203 if { { ac_try="$ac_compile"
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3208 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3209 $as_echo "$ac_try_echo"; } >&5
3210 (eval "$ac_compile") 2>&5
3212 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3213 test $ac_status = 0; }; then :
3214 for ac_file in conftest.o conftest.obj conftest.*; do
3215 test -f "$ac_file" || continue;
3217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3218 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3223 $as_echo "$as_me: failed program was
:" >&5
3224 sed 's/^/| /' conftest.$ac_ext >&5
3226 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3228 as_fn_error "cannot compute suffix of object files: cannot compile
3229 See \`config.log' for more details.
" "$LINENO" 5; }
3231 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_objext" >&5
3234 $as_echo "$ac_cv_objext" >&6; }
3235 OBJEXT=$ac_cv_objext
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler
" >&5
3238 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3239 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3240 $as_echo_n "(cached
) " >&6
3242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3243 /* end confdefs.h. */
3256 if ac_fn_c_try_compile "$LINENO"; then :
3261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3262 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_compiler_gnu" >&5
3266 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3267 if test $ac_compiler_gnu = yes; then
3272 ac_test_CFLAGS=${CFLAGS+set}
3273 ac_save_CFLAGS=$CFLAGS
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC accepts
-g" >&5
3275 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3276 if test "${ac_cv_prog_cc_g+set}" = set; then :
3277 $as_echo_n "(cached
) " >&6
3279 ac_save_c_werror_flag=$ac_c_werror_flag
3280 ac_c_werror_flag=yes
3283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3284 /* end confdefs.h. */
3294 if ac_fn_c_try_compile "$LINENO"; then :
3298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3299 /* end confdefs.h. */
3309 if ac_fn_c_try_compile "$LINENO"; then :
3312 ac_c_werror_flag=$ac_save_c_werror_flag
3314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315 /* end confdefs.h. */
3325 if ac_fn_c_try_compile "$LINENO"; then :
3328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333 ac_c_werror_flag=$ac_save_c_werror_flag
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_g" >&5
3336 $as_echo "$ac_cv_prog_cc_g" >&6; }
3337 if test "$ac_test_CFLAGS" = set; then
3338 CFLAGS=$ac_save_CFLAGS
3339 elif test $ac_cv_prog_cc_g = yes; then
3340 if test "$GCC" = yes; then
3346 if test "$GCC" = yes; then
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $CC option to accept ISO C89
" >&5
3353 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3354 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3355 $as_echo_n "(cached
) " >&6
3357 ac_cv_prog_cc_c89=no
3359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3360 /* end confdefs.h. */
3363 #include <sys/types.h>
3364 #include <sys/stat.h>
3365 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3366 struct buf { int x; };
3367 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3368 static char *e (p, i)
3374 static char *f (char * (*g) (char **, int), char **p, ...)
3379 s = g (p, va_arg (v,int));
3384 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3385 function prototypes and stuff, but not '\xHH' hex character constants.
3386 These don't provoke an error unfortunately, instead are silently treated
3387 as 'x'. The following induces an error, until -std is added to get
3388 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3389 array size at least. It's necessary to write '\x00'==0 to get something
3390 that's true only with -std. */
3391 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3393 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3394 inside strings and character constants. */
3396 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3398 int test (int i, double x);
3399 struct s1 {int (*f) (int a);};
3400 struct s2 {int (*f) (double a);};
3401 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3407 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3412 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3413 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3415 CC="$ac_save_CC $ac_arg"
3416 if ac_fn_c_try_compile "$LINENO"; then :
3417 ac_cv_prog_cc_c89=$ac_arg
3419 rm -f core conftest.err conftest.$ac_objext
3420 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3422 rm -f conftest.$ac_ext
3427 case "x
$ac_cv_prog_cc_c89" in
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none needed
" >&5
3430 $as_echo "none needed
" >&6; } ;;
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: unsupported
" >&5
3433 $as_echo "unsupported
" >&6; } ;;
3435 CC="$CC $ac_cv_prog_cc_c89"
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_c89" >&5
3437 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3439 if test "x
$ac_cv_prog_cc_c89" != xno; then :
3444 ac_cpp='$CPP $CPPFLAGS'
3445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3451 ac_cpp='$CPP $CPPFLAGS'
3452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
3456 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3457 # On Suns, sometimes $CPP names a directory.
3458 if test -n "$CPP" && test -d "$CPP"; then
3461 if test -z "$CPP"; then
3462 if test "${ac_cv_prog_CPP+set}" = set; then :
3463 $as_echo_n "(cached
) " >&6
3465 # Double quotes because CPP needs to be expanded
3466 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3469 for ac_c_preproc_warn_flag in '' yes
3471 # Use a header file that comes with gcc, so configuring glibc
3472 # with a fresh cross-compiler works.
3473 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3474 # <limits.h> exists even on freestanding compilers.
3475 # On the NeXT, cc -E runs the code through the compiler's parser,
3476 # not just through cpp. "Syntax error
" is here to catch this case.
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 /* end confdefs.h. */
3480 # include <limits.h>
3482 # include <assert.h>
3486 if ac_fn_c_try_cpp "$LINENO"; then :
3489 # Broken: fails on valid input.
3492 rm -f conftest.err conftest.$ac_ext
3494 # OK, works on sane cases. Now check whether nonexistent headers
3495 # can be detected and how.
3496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3497 /* end confdefs.h. */
3498 #include <ac_nonexistent.h>
3500 if ac_fn_c_try_cpp "$LINENO"; then :
3501 # Broken: success on invalid input.
3504 # Passes both tests.
3508 rm -f conftest.err conftest.$ac_ext
3511 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3512 rm -f conftest.err conftest.$ac_ext
3513 if $ac_preproc_ok; then :
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
3526 $as_echo "$CPP" >&6; }
3528 for ac_c_preproc_warn_flag in '' yes
3530 # Use a header file that comes with gcc, so configuring glibc
3531 # with a fresh cross-compiler works.
3532 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3533 # <limits.h> exists even on freestanding compilers.
3534 # On the NeXT, cc -E runs the code through the compiler's parser,
3535 # not just through cpp. "Syntax error
" is here to catch this case.
3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h. */
3539 # include <limits.h>
3541 # include <assert.h>
3545 if ac_fn_c_try_cpp "$LINENO"; then :
3548 # Broken: fails on valid input.
3551 rm -f conftest.err conftest.$ac_ext
3553 # OK, works on sane cases. Now check whether nonexistent headers
3554 # can be detected and how.
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h. */
3557 #include <ac_nonexistent.h>
3559 if ac_fn_c_try_cpp "$LINENO"; then :
3560 # Broken: success on invalid input.
3563 # Passes both tests.
3567 rm -f conftest.err conftest.$ac_ext
3570 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3571 rm -f conftest.err conftest.$ac_ext
3572 if $ac_preproc_ok; then :
3575 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3577 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3578 See \`config.log' for more details.
" "$LINENO" 5; }
3582 ac_cpp='$CPP $CPPFLAGS'
3583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
3589 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
3590 if test "${ac_cv_path_GREP+set}" = set; then :
3591 $as_echo_n "(cached
) " >&6
3593 if test -z "$GREP"; then
3594 ac_path_GREP_found=false
3595 # Loop through the user's path and test for each of PROGNAME-LIST
3596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3600 test -z "$as_dir" && as_dir=.
3601 for ac_prog in grep ggrep; do
3602 for ac_exec_ext in '' $ac_executable_extensions; do
3603 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3604 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3605 # Check for GNU ac_path_GREP and select it if it is found.
3606 # Check for GNU $ac_path_GREP
3607 case `"$ac_path_GREP" --version 2>&1` in
3609 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3612 $as_echo_n 0123456789 >"conftest.
in"
3615 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3616 mv "conftest.tmp
" "conftest.
in"
3617 cp "conftest.
in" "conftest.
nl"
3618 $as_echo 'GREP' >> "conftest.
nl"
3619 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3620 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3621 as_fn_arith $ac_count + 1 && ac_count=$as_val
3622 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3623 # Best one so far, save it but keep looking for a better one
3624 ac_cv_path_GREP="$ac_path_GREP"
3625 ac_path_GREP_max=$ac_count
3627 # 10*(2^10) chars as input seems more than enough
3628 test $ac_count -gt 10 && break
3630 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3633 $ac_path_GREP_found && break 3
3638 if test -z "$ac_cv_path_GREP"; then
3639 as_fn_error "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3642 ac_cv_path_GREP=$GREP
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
3647 $as_echo "$ac_cv_path_GREP" >&6; }
3648 GREP="$ac_cv_path_GREP"
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
3652 $as_echo_n "checking
for egrep...
" >&6; }
3653 if test "${ac_cv_path_EGREP+set}" = set; then :
3654 $as_echo_n "(cached
) " >&6
3656 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3657 then ac_cv_path_EGREP="$GREP -E"
3659 if test -z "$EGREP"; then
3660 ac_path_EGREP_found=false
3661 # Loop through the user's path and test for each of PROGNAME-LIST
3662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3666 test -z "$as_dir" && as_dir=.
3667 for ac_prog in egrep; do
3668 for ac_exec_ext in '' $ac_executable_extensions; do
3669 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3670 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3671 # Check for GNU ac_path_EGREP and select it if it is found.
3672 # Check for GNU $ac_path_EGREP
3673 case `"$ac_path_EGREP" --version 2>&1` in
3675 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3678 $as_echo_n 0123456789 >"conftest.
in"
3681 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3682 mv "conftest.tmp
" "conftest.
in"
3683 cp "conftest.
in" "conftest.
nl"
3684 $as_echo 'EGREP' >> "conftest.
nl"
3685 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3686 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3687 as_fn_arith $ac_count + 1 && ac_count=$as_val
3688 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3689 # Best one so far, save it but keep looking for a better one
3690 ac_cv_path_EGREP="$ac_path_EGREP"
3691 ac_path_EGREP_max=$ac_count
3693 # 10*(2^10) chars as input seems more than enough
3694 test $ac_count -gt 10 && break
3696 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3699 $ac_path_EGREP_found && break 3
3704 if test -z "$ac_cv_path_EGREP"; then
3705 as_fn_error "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3708 ac_cv_path_EGREP=$EGREP
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
3714 $as_echo "$ac_cv_path_EGREP" >&6; }
3715 EGREP="$ac_cv_path_EGREP"
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
3719 $as_echo_n "checking
for ANSI C header files...
" >&6; }
3720 if test "${ac_cv_header_stdc+set}" = set; then :
3721 $as_echo_n "(cached
) " >&6
3723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724 /* end confdefs.h. */
3738 if ac_fn_c_try_compile "$LINENO"; then :
3739 ac_cv_header_stdc=yes
3741 ac_cv_header_stdc=no
3743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3745 if test $ac_cv_header_stdc = yes; then
3746 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748 /* end confdefs.h. */
3752 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3753 $EGREP "memchr
" >/dev/null 2>&1; then :
3756 ac_cv_header_stdc=no
3762 if test $ac_cv_header_stdc = yes; then
3763 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765 /* end confdefs.h. */
3769 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3770 $EGREP "free
" >/dev/null 2>&1; then :
3773 ac_cv_header_stdc=no
3779 if test $ac_cv_header_stdc = yes; then
3780 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3781 if test "$cross_compiling" = yes; then :
3784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3785 /* end confdefs.h. */
3788 #if ((' ' & 0x0FF) == 0x020)
3789 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3790 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3792 # define ISLOWER(c) \
3793 (('a' <= (c) && (c) <= 'i') \
3794 || ('j' <= (c) && (c) <= 'r') \
3795 || ('s' <= (c) && (c) <= 'z'))
3796 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3799 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3804 for (i = 0; i < 256; i++)
3805 if (XOR (islower (i), ISLOWER (i))
3806 || toupper (i) != TOUPPER (i))
3811 if ac_fn_c_try_run "$LINENO"; then :
3814 ac_cv_header_stdc=no
3816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3817 conftest.$ac_objext conftest.beam conftest.$ac_ext
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
3823 $as_echo "$ac_cv_header_stdc" >&6; }
3824 if test $ac_cv_header_stdc = yes; then
3826 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3830 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3831 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3832 inttypes.h stdint.h unistd.h
3834 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3835 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3837 eval as_val
=\$
$as_ac_Header
3838 if test "x$as_val" = x
""yes; then :
3839 cat >>confdefs.h
<<_ACEOF
3840 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3849 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3850 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
3857 if test "$MINIX" = yes; then
3859 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3862 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3865 $as_echo "#define _MINIX 1" >>confdefs.h
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3871 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3872 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3873 $as_echo_n "(cached) " >&6
3875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h. */
3878 # define __EXTENSIONS__ 1
3879 $ac_includes_default
3888 if ac_fn_c_try_compile
"$LINENO"; then :
3889 ac_cv_safe_to_define___extensions__
=yes
3891 ac_cv_safe_to_define___extensions__
=no
3893 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3896 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3897 test $ac_cv_safe_to_define___extensions__ = yes &&
3898 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3900 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3902 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3904 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3906 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3910 # Do not delete or change the following two lines. For why, see
3911 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
3913 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3914 for ac_t
in install-sh
install.sh shtool
; do
3915 if test -f "$ac_dir/$ac_t"; then
3917 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3922 if test -z "$ac_aux_dir"; then
3923 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3926 # These three variables are undocumented and unsupported,
3927 # and are intended to be withdrawn in a future Autoconf release.
3928 # They can cause serious problems if a builder's source tree is in a directory
3929 # whose full name contains unusual characters.
3930 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3931 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3932 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3935 # Make sure we can run config.sub.
3936 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3937 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3940 $as_echo_n "checking build system type... " >&6; }
3941 if test "${ac_cv_build+set}" = set; then :
3942 $as_echo_n "(cached) " >&6
3944 ac_build_alias
=$build_alias
3945 test "x$ac_build_alias" = x
&&
3946 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3947 test "x$ac_build_alias" = x
&&
3948 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3949 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3950 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3954 $as_echo "$ac_cv_build" >&6; }
3955 case $ac_cv_build in
3957 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3960 ac_save_IFS
=$IFS; IFS
='-'
3966 # Remember, the first character of IFS is used to create $*,
3967 # except with old shells:
3970 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3974 $as_echo_n "checking host system type... " >&6; }
3975 if test "${ac_cv_host+set}" = set; then :
3976 $as_echo_n "(cached) " >&6
3978 if test "x$host_alias" = x
; then
3979 ac_cv_host
=$ac_cv_build
3981 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3982 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3987 $as_echo "$ac_cv_host" >&6; }
3990 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3993 ac_save_IFS
=$IFS; IFS
='-'
3999 # Remember, the first character of IFS is used to create $*,
4000 # except with old shells:
4003 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4007 $as_echo_n "checking target system type... " >&6; }
4008 if test "${ac_cv_target+set}" = set; then :
4009 $as_echo_n "(cached) " >&6
4011 if test "x$target_alias" = x
; then
4012 ac_cv_target
=$ac_cv_host
4014 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4015 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4020 $as_echo "$ac_cv_target" >&6; }
4021 case $ac_cv_target in
4023 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4025 target
=$ac_cv_target
4026 ac_save_IFS
=$IFS; IFS
='-'
4032 # Remember, the first character of IFS is used to create $*,
4033 # except with old shells:
4036 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4039 # The aliases save the names the user supplied, while $host etc.
4040 # will get canonicalized.
4041 test -n "$target_alias" &&
4042 test "$program_prefix$program_suffix$program_transform_name" = \
4044 program_prefix
=${target_alias}-
4046 target_alias
=${target_alias-$host_alias}
4048 case ${build_alias} in
4049 "") build_noncanonical
=${build} ;;
4050 *) build_noncanonical
=${build_alias} ;;
4053 case ${host_alias} in
4054 "") host_noncanonical
=${build_noncanonical} ;;
4055 *) host_noncanonical
=${host_alias} ;;
4058 case ${target_alias} in
4059 "") target_noncanonical
=${host_noncanonical} ;;
4060 *) target_noncanonical
=${target_alias} ;;
4067 LIBSTDCXX_RAW_CXX_CXXFLAGS
="\
4068 -I\$(top_builddir)/../libstdc++-v3/include \
4069 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
4070 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
4071 LIBSTDCXX_RAW_CXX_LDFLAGS
="\
4072 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
4077 am__api_version
='1.11'
4079 # Find a good install program. We prefer a C program (faster),
4080 # so one script is as good as another. But avoid the broken or
4081 # incompatible versions:
4082 # SysV /etc/install, /usr/sbin/install
4083 # SunOS /usr/etc/install
4084 # IRIX /sbin/install
4086 # AmigaOS /C/install, which installs bootblocks on floppy discs
4087 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4088 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4089 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4090 # OS/2's system install, which has a completely different semantic
4091 # ./install, which can be erroneously created by make from ./install.sh.
4092 # Reject install programs that cannot install multiple files.
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4094 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4095 if test -z "$INSTALL"; then
4096 if test "${ac_cv_path_install+set}" = set; then :
4097 $as_echo_n "(cached) " >&6
4099 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4103 test -z "$as_dir" && as_dir
=.
4104 # Account for people who put trailing slashes in PATH elements.
4105 case $as_dir/ in #((
4106 .
/ | .
// |
/[cC
]/* | \
4107 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4108 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4111 # OSF1 and SCO ODT 3.0 have their own names for install.
4112 # Don't use installbsd from OSF since it installs stuff as root
4114 for ac_prog
in ginstall scoinst
install; do
4115 for ac_exec_ext
in '' $ac_executable_extensions; do
4116 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4117 if test $ac_prog = install &&
4118 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4119 # AIX install. It has an incompatible calling convention.
4121 elif test $ac_prog = install &&
4122 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4123 # program-specific install script used by HP pwplus--don't use.
4126 rm -rf conftest.one conftest.two conftest.dir
4127 echo one
> conftest.one
4128 echo two
> conftest.two
4130 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4131 test -s conftest.one
&& test -s conftest.two
&&
4132 test -s conftest.dir
/conftest.one
&&
4133 test -s conftest.dir
/conftest.two
4135 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4148 rm -rf conftest.one conftest.two conftest.dir
4151 if test "${ac_cv_path_install+set}" = set; then
4152 INSTALL
=$ac_cv_path_install
4154 # As a last resort, use the slow shell script. Don't cache a
4155 # value for INSTALL within a source directory, because that will
4156 # break other packages using the cache if that directory is
4157 # removed, or if the value is a relative name.
4158 INSTALL
=$ac_install_sh
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4162 $as_echo "$INSTALL" >&6; }
4164 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4165 # It thinks the first close brace ends the variable substitution.
4166 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4168 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4170 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4173 $as_echo_n "checking whether build environment is sane... " >&6; }
4176 echo timestamp
> conftest.
file
4177 # Reject unsafe characters in $srcdir or the absolute working directory
4178 # name. Accept space and tab only in the latter.
4182 *[\\\"\
#\$\&\'\`$am_lf]*)
4183 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
4186 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
4187 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4190 # Do `set' in a subshell so we don't clobber the current shell's
4191 # arguments. Must try -L first in case configure is actually a
4192 # symlink; some systems play weird games with the mod time of symlinks
4193 # (eg FreeBSD returns the mod time of the symlink's containing
4196 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4197 if test "$*" = "X"; then
4199 set X
`ls -t "$srcdir/configure" conftest.file`
4202 if test "$*" != "X $srcdir/configure conftest.file" \
4203 && test "$*" != "X conftest.file $srcdir/configure"; then
4205 # If neither matched, then we have a broken ls. This can happen
4206 # if, for instance, CONFIG_SHELL is bash and it inherits a
4207 # broken ls alias from the environment. This has actually
4208 # happened. Such a system could not be considered "sane".
4209 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
4210 alias in your environment" "$LINENO" 5
4213 test "$2" = conftest.
file
4219 as_fn_error
"newly created file is older than distributed files!
4220 Check your system clock" "$LINENO" 5
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4223 $as_echo "yes" >&6; }
4224 test "$program_prefix" != NONE
&&
4225 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4226 # Use a double $ so make ignores it.
4227 test "$program_suffix" != NONE
&&
4228 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4229 # Double any \ or $.
4230 # By default was `s,x,x', remove it if useless.
4231 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4232 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4234 # expand $ac_aux_dir to an absolute path
4235 am_aux_dir
=`cd $ac_aux_dir && pwd`
4237 if test x
"${MISSING+set}" != xset
; then
4240 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
4242 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
4245 # Use eval to expand $SHELL
4246 if eval "$MISSING --run true"; then
4247 am_missing_run
="$MISSING --run "
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4251 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4254 if test x
"${install_sh}" != xset
; then
4257 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
4259 install_sh
="\${SHELL} $am_aux_dir/install-sh"
4263 # Installed binaries are usually stripped using `strip' when the user
4264 # run `make install-strip'. However `strip' might not be the right
4265 # tool to use in cross-compilation environments, therefore Automake
4266 # will honor the `STRIP' environment variable to overrule this program.
4267 if test "$cross_compiling" != no
; then
4268 if test -n "$ac_tool_prefix"; then
4269 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4270 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4272 $as_echo_n "checking for $ac_word... " >&6; }
4273 if test "${ac_cv_prog_STRIP+set}" = set; then :
4274 $as_echo_n "(cached) " >&6
4276 if test -n "$STRIP"; then
4277 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4279 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4283 test -z "$as_dir" && as_dir
=.
4284 for ac_exec_ext
in '' $ac_executable_extensions; do
4285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4286 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4296 STRIP
=$ac_cv_prog_STRIP
4297 if test -n "$STRIP"; then
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4299 $as_echo "$STRIP" >&6; }
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4302 $as_echo "no" >&6; }
4307 if test -z "$ac_cv_prog_STRIP"; then
4309 # Extract the first word of "strip", so it can be a program name with args.
4310 set dummy strip
; ac_word
=$2
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4312 $as_echo_n "checking for $ac_word... " >&6; }
4313 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4314 $as_echo_n "(cached) " >&6
4316 if test -n "$ac_ct_STRIP"; then
4317 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
4319 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4323 test -z "$as_dir" && as_dir
=.
4324 for ac_exec_ext
in '' $ac_executable_extensions; do
4325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4326 ac_cv_prog_ac_ct_STRIP
="strip"
4327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4336 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
4337 if test -n "$ac_ct_STRIP"; then
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4339 $as_echo "$ac_ct_STRIP" >&6; }
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4342 $as_echo "no" >&6; }
4345 if test "x$ac_ct_STRIP" = x
; then
4348 case $cross_compiling:$ac_tool_warned in
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4352 ac_tool_warned
=yes ;;
4357 STRIP
="$ac_cv_prog_STRIP"
4361 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4364 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4365 if test -z "$MKDIR_P"; then
4366 if test "${ac_cv_path_mkdir+set}" = set; then :
4367 $as_echo_n "(cached) " >&6
4369 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4370 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
4373 test -z "$as_dir" && as_dir
=.
4374 for ac_prog
in mkdir gmkdir
; do
4375 for ac_exec_ext
in '' $ac_executable_extensions; do
4376 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
4377 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4378 'mkdir (GNU coreutils) '* | \
4379 'mkdir (coreutils) '* | \
4380 'mkdir (fileutils) '4.1*)
4381 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
4391 if test "${ac_cv_path_mkdir+set}" = set; then
4392 MKDIR_P
="$ac_cv_path_mkdir -p"
4394 # As a last resort, use the slow shell script. Don't cache a
4395 # value for MKDIR_P within a source directory, because that will
4396 # break other packages using the cache if that directory is
4397 # removed, or if the value is a relative name.
4398 test -d .
/--version && rmdir .
/--version
4399 MKDIR_P
="$ac_install_sh -d"
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4403 $as_echo "$MKDIR_P" >&6; }
4407 [\\/$
]* | ?
:[\\/]*) ;;
4408 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
4411 for ac_prog
in gawk mawk nawk
awk
4413 # Extract the first word of "$ac_prog", so it can be a program name with args.
4414 set dummy
$ac_prog; ac_word
=$2
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4416 $as_echo_n "checking for $ac_word... " >&6; }
4417 if test "${ac_cv_prog_AWK+set}" = set; then :
4418 $as_echo_n "(cached) " >&6
4420 if test -n "$AWK"; then
4421 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4423 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4427 test -z "$as_dir" && as_dir
=.
4428 for ac_exec_ext
in '' $ac_executable_extensions; do
4429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4430 ac_cv_prog_AWK
="$ac_prog"
4431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4441 if test -n "$AWK"; then
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4443 $as_echo "$AWK" >&6; }
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4446 $as_echo "no" >&6; }
4450 test -n "$AWK" && break
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4454 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4456 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4457 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4458 $as_echo_n "(cached) " >&6
4460 cat >conftest.
make <<\_ACEOF
4463 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4465 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4466 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4468 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4470 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4474 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4476 $as_echo "yes" >&6; }
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4480 $as_echo "no" >&6; }
4481 SET_MAKE
="MAKE=${MAKE-make}"
4484 rm -rf .tst
2>/dev
/null
4485 mkdir .tst
2>/dev
/null
4486 if test -d .tst
; then
4491 rmdir .tst
2>/dev
/null
4493 DEPDIR
="${am__leading_dot}deps"
4495 ac_config_commands
="$ac_config_commands depfiles"
4498 am_make
=${MAKE-make}
4499 cat > confinc
<< 'END'
4501 @
echo this is the am__doit target
4504 # If we don't find an include directive, just comment out the code.
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4506 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4510 # First try GNU make style include.
4511 echo "include confinc" > confmf
4512 # Ignore all kinds of additional output from `make'.
4513 case `$am_make -s -f confmf 2> /dev/null` in #(
4514 *the\ am__doit\ target
*)
4520 # Now try BSD make style include.
4521 if test "$am__include" = "#"; then
4522 echo '.include "confinc"' > confmf
4523 case `$am_make -s -f confmf 2> /dev/null` in #(
4524 *the\ am__doit\ target
*)
4525 am__include
=.include
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4534 $as_echo "$_am_result" >&6; }
4535 rm -f confinc confmf
4537 # Check whether --enable-dependency-tracking was given.
4538 if test "${enable_dependency_tracking+set}" = set; then :
4539 enableval
=$enable_dependency_tracking;
4542 if test "x$enable_dependency_tracking" != xno
; then
4543 am_depcomp
="$ac_aux_dir/depcomp"
4546 if test "x$enable_dependency_tracking" != xno; then
4555 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4556 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4557 # is not polluted with repeated "-I."
4558 am__isrc
=' -I$(srcdir)'
4559 # test to see if srcdir already configured
4560 if test -f $srcdir/config.status
; then
4561 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4565 # test whether we have cygpath
4566 if test -z "$CYGPATH_W"; then
4567 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
4568 CYGPATH_W
='cygpath -w'
4575 # Define the identity of the package.
4576 PACKAGE
='package-unused'
4577 VERSION
='version-unused'
4580 cat >>confdefs.h
<<_ACEOF
4581 #define PACKAGE "$PACKAGE"
4585 cat >>confdefs.h
<<_ACEOF
4586 #define VERSION "$VERSION"
4589 # Some tools Automake needs.
4591 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4594 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
4597 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4600 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
4603 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
4605 # We need awk for the "check" target. The system "awk" is bad on
4607 # Always define AMTAR for backward compatibility.
4609 AMTAR
=${AMTAR-"${am_missing_run}tar"}
4611 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
4616 depcc
="$CC" am_compiler_list
=
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4619 $as_echo_n "checking dependency style of $depcc... " >&6; }
4620 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4621 $as_echo_n "(cached) " >&6
4623 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4624 # We make a subdir and do the tests there. Otherwise we can end up
4625 # making bogus files that we don't know about and never remove. For
4626 # instance it was reported that on HP-UX the gcc test will end up
4627 # making a dummy file named `D' -- because `-MD' means `put the output
4630 # Copy depcomp to subdir because otherwise we won't find it if we're
4631 # using a relative directory.
4632 cp "$am_depcomp" conftest.dir
4634 # We will build objects and dependencies in a subdirectory because
4635 # it helps to detect inapplicable dependency modes. For instance
4636 # both Tru64's cc and ICC support -MD to output dependencies as a
4637 # side effect of compilation, but ICC will put the dependencies in
4638 # the current directory while Tru64 will put them in the object
4642 am_cv_CC_dependencies_compiler_type
=none
4643 if test "$am_compiler_list" = ""; then
4644 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4647 case " $depcc " in #(
4648 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4651 for depmode
in $am_compiler_list; do
4652 # Setup a source with many dependencies, because some compilers
4653 # like to wrap large dependency lists on column 80 (with \), and
4654 # we should not choose a depcomp mode which is confused by this.
4656 # We need to recreate these files for each test, as the compiler may
4657 # overwrite some of them when testing with obscure command lines.
4658 # This happens at least with the AIX C compiler.
4660 for i
in 1 2 3 4 5 6; do
4661 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4662 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4663 # Solaris 8's {/usr,}/bin/sh.
4664 touch sub
/conftst
$i.h
4666 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4668 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4669 # mode. It turns out that the SunPro C++ compiler does not properly
4670 # handle `-M -o', and we need to detect this. Also, some Intel
4671 # versions had trouble with output in subdirs
4672 am__obj
=sub
/conftest.
${OBJEXT-o}
4673 am__minus_obj
="-o $am__obj"
4676 # This depmode causes a compiler race in universal mode.
4677 test "$am__universal" = false ||
continue
4680 # after this tag, mechanisms are not by side-effect, so they'll
4681 # only be used when explicitly requested
4682 if test "x$enable_dependency_tracking" = xyes
; then
4688 msvisualcpp | msvcmsys
)
4689 # This compiler won't grok `-c -o', but also, the minuso test has
4690 # not run yet. These depmodes are late enough in the game, and
4691 # so weak that their functioning should not be impacted.
4692 am__obj
=conftest.
${OBJEXT-o}
4697 if depmode
=$depmode \
4698 source=sub
/conftest.c object
=$am__obj \
4699 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4700 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4701 >/dev
/null
2>conftest.err
&&
4702 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4703 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4704 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4705 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4706 # icc doesn't choke on unknown options, it will just issue warnings
4707 # or remarks (even with -Werror). So we grep stderr for any message
4708 # that says an option was ignored or not supported.
4709 # When given -MP, icc 7.0 and 7.1 complain thusly:
4710 # icc: Command line warning: ignoring option '-M'; no argument required
4711 # The diagnosis changed in icc 8.0:
4712 # icc: Command line remark: option '-MP' not supported
4713 if (grep 'ignoring option' conftest.err ||
4714 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4715 am_cv_CC_dependencies_compiler_type
=$depmode
4724 am_cv_CC_dependencies_compiler_type
=none
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4729 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4730 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4733 test "x$enable_dependency_tracking" != xno \
4734 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4736 am__fastdepCC_FALSE
='#'
4738 am__fastdepCC_TRUE
='#'
4739 am__fastdepCC_FALSE
=
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4746 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4747 # Check whether --enable-maintainer-mode was given.
4748 if test "${enable_maintainer_mode+set}" = set; then :
4749 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
4751 USE_MAINTAINER_MODE
=no
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4755 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4756 if test $USE_MAINTAINER_MODE = yes; then
4757 MAINTAINER_MODE_TRUE
=
4758 MAINTAINER_MODE_FALSE
='#'
4760 MAINTAINER_MODE_TRUE
='#'
4761 MAINTAINER_MODE_FALSE
=
4764 MAINT
=$MAINTAINER_MODE_TRUE
4768 # Calculate toolexeclibdir
4769 # Also toolexecdir, though it's only used in toolexeclibdir
4770 case ${version_specific_libs} in
4772 # Need the gcc compiler version to know where to install libraries
4773 # and header files if --enable-version-specific-runtime-libs option
4775 toolexecdir
='$(libdir)/gcc/$(target_alias)'
4776 toolexeclibdir
='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4779 if test -n "$with_cross_host" &&
4780 test x
"$with_cross_host" != x
"no"; then
4781 # Install a library built with a cross compiler in tooldir, not libdir.
4782 toolexecdir
='$(exec_prefix)/$(target_alias)'
4783 toolexeclibdir
='$(toolexecdir)/lib'
4785 toolexecdir
='$(libdir)/gcc-lib/$(target_alias)'
4786 toolexeclibdir
='$(libdir)'
4788 multi_os_directory
=`$CC -print-multi-os-directory`
4789 case $multi_os_directory in
4790 .
) ;; # Avoid trailing /.
4791 *) toolexeclibdir
=$toolexeclibdir/$multi_os_directory ;;
4798 # Checks for programs.
4800 ac_cpp
='$CPP $CPPFLAGS'
4801 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4802 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4803 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4804 if test -n "$ac_tool_prefix"; then
4805 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4806 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4808 $as_echo_n "checking for $ac_word... " >&6; }
4809 if test "${ac_cv_prog_CC+set}" = set; then :
4810 $as_echo_n "(cached) " >&6
4812 if test -n "$CC"; then
4813 ac_cv_prog_CC
="$CC" # Let the user override the test.
4815 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4819 test -z "$as_dir" && as_dir
=.
4820 for ac_exec_ext
in '' $ac_executable_extensions; do
4821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4822 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 if test -n "$CC"; then
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4835 $as_echo "$CC" >&6; }
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4838 $as_echo "no" >&6; }
4843 if test -z "$ac_cv_prog_CC"; then
4845 # Extract the first word of "gcc", so it can be a program name with args.
4846 set dummy gcc
; ac_word
=$2
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4848 $as_echo_n "checking for $ac_word... " >&6; }
4849 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4850 $as_echo_n "(cached) " >&6
4852 if test -n "$ac_ct_CC"; then
4853 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4855 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4859 test -z "$as_dir" && as_dir
=.
4860 for ac_exec_ext
in '' $ac_executable_extensions; do
4861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4862 ac_cv_prog_ac_ct_CC
="gcc"
4863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4872 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4873 if test -n "$ac_ct_CC"; then
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4875 $as_echo "$ac_ct_CC" >&6; }
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4878 $as_echo "no" >&6; }
4881 if test "x$ac_ct_CC" = x
; then
4884 case $cross_compiling:$ac_tool_warned in
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4888 ac_tool_warned
=yes ;;
4896 if test -z "$CC"; then
4897 if test -n "$ac_tool_prefix"; then
4898 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4899 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4901 $as_echo_n "checking for $ac_word... " >&6; }
4902 if test "${ac_cv_prog_CC+set}" = set; then :
4903 $as_echo_n "(cached) " >&6
4905 if test -n "$CC"; then
4906 ac_cv_prog_CC
="$CC" # Let the user override the test.
4908 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4912 test -z "$as_dir" && as_dir
=.
4913 for ac_exec_ext
in '' $ac_executable_extensions; do
4914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4915 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4926 if test -n "$CC"; then
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4928 $as_echo "$CC" >&6; }
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4931 $as_echo "no" >&6; }
4937 if test -z "$CC"; then
4938 # Extract the first word of "cc", so it can be a program name with args.
4939 set dummy cc
; ac_word
=$2
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4941 $as_echo_n "checking for $ac_word... " >&6; }
4942 if test "${ac_cv_prog_CC+set}" = set; then :
4943 $as_echo_n "(cached) " >&6
4945 if test -n "$CC"; then
4946 ac_cv_prog_CC
="$CC" # Let the user override the test.
4949 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4953 test -z "$as_dir" && as_dir
=.
4954 for ac_exec_ext
in '' $ac_executable_extensions; do
4955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4956 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4957 ac_prog_rejected
=yes
4961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4968 if test $ac_prog_rejected = yes; then
4969 # We found a bogon in the path, so make sure we never use it.
4970 set dummy
$ac_cv_prog_CC
4972 if test $# != 0; then
4973 # We chose a different compiler from the bogus one.
4974 # However, it has the same basename, so the bogon will be chosen
4975 # first if we set CC to just the basename; use the full file name.
4977 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4983 if test -n "$CC"; then
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4985 $as_echo "$CC" >&6; }
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4988 $as_echo "no" >&6; }
4993 if test -z "$CC"; then
4994 if test -n "$ac_tool_prefix"; then
4995 for ac_prog
in cl.exe
4997 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4998 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5000 $as_echo_n "checking for $ac_word... " >&6; }
5001 if test "${ac_cv_prog_CC+set}" = set; then :
5002 $as_echo_n "(cached) " >&6
5004 if test -n "$CC"; then
5005 ac_cv_prog_CC
="$CC" # Let the user override the test.
5007 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5011 test -z "$as_dir" && as_dir
=.
5012 for ac_exec_ext
in '' $ac_executable_extensions; do
5013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5014 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5025 if test -n "$CC"; then
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5027 $as_echo "$CC" >&6; }
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5030 $as_echo "no" >&6; }
5034 test -n "$CC" && break
5037 if test -z "$CC"; then
5039 for ac_prog
in cl.exe
5041 # Extract the first word of "$ac_prog", so it can be a program name with args.
5042 set dummy
$ac_prog; ac_word
=$2
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5044 $as_echo_n "checking for $ac_word... " >&6; }
5045 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5046 $as_echo_n "(cached) " >&6
5048 if test -n "$ac_ct_CC"; then
5049 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5051 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5055 test -z "$as_dir" && as_dir
=.
5056 for ac_exec_ext
in '' $ac_executable_extensions; do
5057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5058 ac_cv_prog_ac_ct_CC
="$ac_prog"
5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5068 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5069 if test -n "$ac_ct_CC"; then
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5071 $as_echo "$ac_ct_CC" >&6; }
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5074 $as_echo "no" >&6; }
5078 test -n "$ac_ct_CC" && break
5081 if test "x$ac_ct_CC" = x
; then
5084 case $cross_compiling:$ac_tool_warned in
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5088 ac_tool_warned
=yes ;;
5097 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5099 as_fn_error
"no acceptable C compiler found in \$PATH
5100 See \`config.log' for more details." "$LINENO" 5; }
5102 # Provide some information about the compiler.
5103 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5106 for ac_option
in --version -v -V -qversion; do
5107 { { ac_try
="$ac_compiler $ac_option >&5"
5109 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5110 *) ac_try_echo=$ac_try;;
5112 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5113 $as_echo "$ac_try_echo"; } >&5
5114 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5116 if test -s conftest.err; then
5118 ... rest of stderr output deleted ...
5119 10q' conftest.err >conftest.er1
5120 cat conftest.er1 >&5
5121 rm -f conftest.er1 conftest.err
5123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5124 test $ac_status = 0; }
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5128 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5129 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5130 $as_echo_n "(cached) " >&6
5132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5133 /* end confdefs.h. */
5146 if ac_fn_c_try_compile "$LINENO"; then :
5151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5152 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5156 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5157 if test $ac_compiler_gnu = yes; then
5162 ac_test_CFLAGS=${CFLAGS+set}
5163 ac_save_CFLAGS=$CFLAGS
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5165 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5166 if test "${ac_cv_prog_cc_g+set}" = set; then :
5167 $as_echo_n "(cached) " >&6
5169 ac_save_c_werror_flag=$ac_c_werror_flag
5170 ac_c_werror_flag=yes
5173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5174 /* end confdefs.h. */
5184 if ac_fn_c_try_compile "$LINENO"; then :
5188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5189 /* end confdefs.h. */
5199 if ac_fn_c_try_compile "$LINENO"; then :
5202 ac_c_werror_flag=$ac_save_c_werror_flag
5204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5205 /* end confdefs.h. */
5215 if ac_fn_c_try_compile "$LINENO"; then :
5218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5223 ac_c_werror_flag=$ac_save_c_werror_flag
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5226 $as_echo "$ac_cv_prog_cc_g" >&6; }
5227 if test "$ac_test_CFLAGS" = set; then
5228 CFLAGS=$ac_save_CFLAGS
5229 elif test $ac_cv_prog_cc_g = yes; then
5230 if test "$GCC" = yes; then
5236 if test "$GCC" = yes; then
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5243 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5244 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5245 $as_echo_n "(cached) " >&6
5247 ac_cv_prog_cc_c89=no
5249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5250 /* end confdefs.h. */
5253 #include <sys/types.h>
5254 #include <sys/stat.h>
5255 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5256 struct buf { int x; };
5257 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5258 static char *e (p, i)
5264 static char *f (char * (*g) (char **, int), char **p, ...)
5269 s = g (p, va_arg (v,int));
5274 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5275 function prototypes and stuff, but not '\xHH' hex character constants.
5276 These don't provoke an error unfortunately, instead are silently treated
5277 as 'x'. The following induces an error, until -std is added to get
5278 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5279 array size at least. It's necessary to write '\x00'==0 to get something
5280 that's true only with -std. */
5281 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5283 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5284 inside strings and character constants. */
5286 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5288 int test (int i, double x);
5289 struct s1 {int (*f) (int a);};
5290 struct s2 {int (*f) (double a);};
5291 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5297 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5302 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5303 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5305 CC="$ac_save_CC $ac_arg"
5306 if ac_fn_c_try_compile "$LINENO"; then :
5307 ac_cv_prog_cc_c89=$ac_arg
5309 rm -f core conftest.err conftest.$ac_objext
5310 test "x$ac_cv_prog_cc_c89" != "xno" && break
5312 rm -f conftest.$ac_ext
5317 case "x$ac_cv_prog_cc_c89" in
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5320 $as_echo "none needed" >&6; } ;;
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5323 $as_echo "unsupported" >&6; } ;;
5325 CC="$CC $ac_cv_prog_cc_c89"
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5327 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5329 if test "x$ac_cv_prog_cc_c89" != xno; then :
5334 ac_cpp='$CPP $CPPFLAGS'
5335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5340 ac_cpp='$CXXCPP $CPPFLAGS'
5341 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5342 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5343 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5344 if test -z "$CXX"; then
5345 if test -n "$CCC"; then
5348 if test -n "$ac_tool_prefix"; then
5349 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5351 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5352 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5354 $as_echo_n "checking for $ac_word... " >&6; }
5355 if test "${ac_cv_prog_CXX+set}" = set; then :
5356 $as_echo_n "(cached) " >&6
5358 if test -n "$CXX"; then
5359 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365 test -z "$as_dir" && as_dir=.
5366 for ac_exec_ext in '' $ac_executable_extensions; do
5367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5368 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5379 if test -n "$CXX"; then
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5381 $as_echo "$CXX" >&6; }
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5384 $as_echo "no" >&6; }
5388 test -n "$CXX" && break
5391 if test -z "$CXX"; then
5393 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5395 # Extract the first word of "$ac_prog", so it can be a program name with args.
5396 set dummy $ac_prog; ac_word=$2
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5398 $as_echo_n "checking for $ac_word... " >&6; }
5399 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5400 $as_echo_n "(cached) " >&6
5402 if test -n "$ac_ct_CXX"; then
5403 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5409 test -z "$as_dir" && as_dir=.
5410 for ac_exec_ext in '' $ac_executable_extensions; do
5411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5412 ac_cv_prog_ac_ct_CXX="$ac_prog"
5413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5422 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5423 if test -n "$ac_ct_CXX"; then
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5425 $as_echo "$ac_ct_CXX" >&6; }
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5428 $as_echo "no" >&6; }
5432 test -n "$ac_ct_CXX" && break
5435 if test "x$ac_ct_CXX" = x; then
5438 case $cross_compiling:$ac_tool_warned in
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5441 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5442 ac_tool_warned=yes ;;
5450 # Provide some information about the compiler.
5451 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5454 for ac_option in --version -v -V -qversion; do
5455 { { ac_try="$ac_compiler $ac_option >&5"
5457 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5458 *) ac_try_echo
=$ac_try;;
5460 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5461 $as_echo "$ac_try_echo"; } >&5
5462 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5464 if test -s conftest.err
; then
5466 ... rest of stderr output deleted ...
5467 10q' conftest.err
>conftest.er1
5468 cat conftest.er1
>&5
5469 rm -f conftest.er1 conftest.err
5471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5472 test $ac_status = 0; }
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5476 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5477 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5478 $as_echo_n "(cached) " >&6
5480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5481 /* end confdefs.h. */
5494 if ac_fn_cxx_try_compile
"$LINENO"; then :
5499 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5500 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5504 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5505 if test $ac_compiler_gnu = yes; then
5510 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5511 ac_save_CXXFLAGS
=$CXXFLAGS
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5513 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5514 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5515 $as_echo_n "(cached) " >&6
5517 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5518 ac_cxx_werror_flag
=yes
5521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5522 /* end confdefs.h. */
5532 if ac_fn_cxx_try_compile
"$LINENO"; then :
5533 ac_cv_prog_cxx_g
=yes
5536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5537 /* end confdefs.h. */
5547 if ac_fn_cxx_try_compile
"$LINENO"; then :
5550 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5553 /* end confdefs.h. */
5563 if ac_fn_cxx_try_compile
"$LINENO"; then :
5564 ac_cv_prog_cxx_g
=yes
5566 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5568 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5570 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5571 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5574 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5575 if test "$ac_test_CXXFLAGS" = set; then
5576 CXXFLAGS
=$ac_save_CXXFLAGS
5577 elif test $ac_cv_prog_cxx_g = yes; then
5578 if test "$GXX" = yes; then
5584 if test "$GXX" = yes; then
5591 ac_cpp
='$CPP $CPPFLAGS'
5592 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5593 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5594 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5596 depcc
="$CXX" am_compiler_list
=
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5599 $as_echo_n "checking dependency style of $depcc... " >&6; }
5600 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5601 $as_echo_n "(cached) " >&6
5603 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5604 # We make a subdir and do the tests there. Otherwise we can end up
5605 # making bogus files that we don't know about and never remove. For
5606 # instance it was reported that on HP-UX the gcc test will end up
5607 # making a dummy file named `D' -- because `-MD' means `put the output
5610 # Copy depcomp to subdir because otherwise we won't find it if we're
5611 # using a relative directory.
5612 cp "$am_depcomp" conftest.dir
5614 # We will build objects and dependencies in a subdirectory because
5615 # it helps to detect inapplicable dependency modes. For instance
5616 # both Tru64's cc and ICC support -MD to output dependencies as a
5617 # side effect of compilation, but ICC will put the dependencies in
5618 # the current directory while Tru64 will put them in the object
5622 am_cv_CXX_dependencies_compiler_type
=none
5623 if test "$am_compiler_list" = ""; then
5624 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5627 case " $depcc " in #(
5628 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5631 for depmode
in $am_compiler_list; do
5632 # Setup a source with many dependencies, because some compilers
5633 # like to wrap large dependency lists on column 80 (with \), and
5634 # we should not choose a depcomp mode which is confused by this.
5636 # We need to recreate these files for each test, as the compiler may
5637 # overwrite some of them when testing with obscure command lines.
5638 # This happens at least with the AIX C compiler.
5640 for i
in 1 2 3 4 5 6; do
5641 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5642 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5643 # Solaris 8's {/usr,}/bin/sh.
5644 touch sub
/conftst
$i.h
5646 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5648 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5649 # mode. It turns out that the SunPro C++ compiler does not properly
5650 # handle `-M -o', and we need to detect this. Also, some Intel
5651 # versions had trouble with output in subdirs
5652 am__obj
=sub
/conftest.
${OBJEXT-o}
5653 am__minus_obj
="-o $am__obj"
5656 # This depmode causes a compiler race in universal mode.
5657 test "$am__universal" = false ||
continue
5660 # after this tag, mechanisms are not by side-effect, so they'll
5661 # only be used when explicitly requested
5662 if test "x$enable_dependency_tracking" = xyes
; then
5668 msvisualcpp | msvcmsys
)
5669 # This compiler won't grok `-c -o', but also, the minuso test has
5670 # not run yet. These depmodes are late enough in the game, and
5671 # so weak that their functioning should not be impacted.
5672 am__obj
=conftest.
${OBJEXT-o}
5677 if depmode
=$depmode \
5678 source=sub
/conftest.c object
=$am__obj \
5679 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5680 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5681 >/dev
/null
2>conftest.err
&&
5682 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5683 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5684 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5685 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5686 # icc doesn't choke on unknown options, it will just issue warnings
5687 # or remarks (even with -Werror). So we grep stderr for any message
5688 # that says an option was ignored or not supported.
5689 # When given -MP, icc 7.0 and 7.1 complain thusly:
5690 # icc: Command line warning: ignoring option '-M'; no argument required
5691 # The diagnosis changed in icc 8.0:
5692 # icc: Command line remark: option '-MP' not supported
5693 if (grep 'ignoring option' conftest.err ||
5694 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5695 am_cv_CXX_dependencies_compiler_type
=$depmode
5704 am_cv_CXX_dependencies_compiler_type
=none
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5709 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5710 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
5713 test "x$enable_dependency_tracking" != xno \
5714 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
5715 am__fastdepCXX_TRUE
=
5716 am__fastdepCXX_FALSE
='#'
5718 am__fastdepCXX_TRUE
='#'
5719 am__fastdepCXX_FALSE
=
5723 # By default we simply use the C compiler to build assembly code.
5725 test "${CCAS+set}" = set || CCAS
=$CC
5726 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
5730 depcc
="$CCAS" am_compiler_list
=
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5733 $as_echo_n "checking dependency style of $depcc... " >&6; }
5734 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
5735 $as_echo_n "(cached) " >&6
5737 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5738 # We make a subdir and do the tests there. Otherwise we can end up
5739 # making bogus files that we don't know about and never remove. For
5740 # instance it was reported that on HP-UX the gcc test will end up
5741 # making a dummy file named `D' -- because `-MD' means `put the output
5744 # Copy depcomp to subdir because otherwise we won't find it if we're
5745 # using a relative directory.
5746 cp "$am_depcomp" conftest.dir
5748 # We will build objects and dependencies in a subdirectory because
5749 # it helps to detect inapplicable dependency modes. For instance
5750 # both Tru64's cc and ICC support -MD to output dependencies as a
5751 # side effect of compilation, but ICC will put the dependencies in
5752 # the current directory while Tru64 will put them in the object
5756 am_cv_CCAS_dependencies_compiler_type
=none
5757 if test "$am_compiler_list" = ""; then
5758 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5763 for depmode
in $am_compiler_list; do
5764 # Setup a source with many dependencies, because some compilers
5765 # like to wrap large dependency lists on column 80 (with \), and
5766 # we should not choose a depcomp mode which is confused by this.
5768 # We need to recreate these files for each test, as the compiler may
5769 # overwrite some of them when testing with obscure command lines.
5770 # This happens at least with the AIX C compiler.
5772 for i
in 1 2 3 4 5 6; do
5773 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5774 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5775 # Solaris 8's {/usr,}/bin/sh.
5776 touch sub
/conftst
$i.h
5778 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5780 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5781 # mode. It turns out that the SunPro C++ compiler does not properly
5782 # handle `-M -o', and we need to detect this. Also, some Intel
5783 # versions had trouble with output in subdirs
5784 am__obj
=sub
/conftest.
${OBJEXT-o}
5785 am__minus_obj
="-o $am__obj"
5788 # This depmode causes a compiler race in universal mode.
5789 test "$am__universal" = false ||
continue
5792 # after this tag, mechanisms are not by side-effect, so they'll
5793 # only be used when explicitly requested
5794 if test "x$enable_dependency_tracking" = xyes
; then
5800 msvisualcpp | msvcmsys
)
5801 # This compiler won't grok `-c -o', but also, the minuso test has
5802 # not run yet. These depmodes are late enough in the game, and
5803 # so weak that their functioning should not be impacted.
5804 am__obj
=conftest.
${OBJEXT-o}
5809 if depmode
=$depmode \
5810 source=sub
/conftest.c object
=$am__obj \
5811 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5812 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5813 >/dev
/null
2>conftest.err
&&
5814 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5815 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5816 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5817 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5818 # icc doesn't choke on unknown options, it will just issue warnings
5819 # or remarks (even with -Werror). So we grep stderr for any message
5820 # that says an option was ignored or not supported.
5821 # When given -MP, icc 7.0 and 7.1 complain thusly:
5822 # icc: Command line warning: ignoring option '-M'; no argument required
5823 # The diagnosis changed in icc 8.0:
5824 # icc: Command line remark: option '-MP' not supported
5825 if (grep 'ignoring option' conftest.err ||
5826 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5827 am_cv_CCAS_dependencies_compiler_type
=$depmode
5836 am_cv_CCAS_dependencies_compiler_type
=none
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5841 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5842 CCASDEPMODE
=depmode
=$am_cv_CCAS_dependencies_compiler_type
5845 test "x$enable_dependency_tracking" != xno \
5846 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3
; then
5847 am__fastdepCCAS_TRUE
=
5848 am__fastdepCCAS_FALSE
='#'
5850 am__fastdepCCAS_TRUE
='#'
5851 am__fastdepCCAS_FALSE
=
5855 if test -n "$ac_tool_prefix"; then
5856 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5857 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5859 $as_echo_n "checking for $ac_word... " >&6; }
5860 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5861 $as_echo_n "(cached) " >&6
5863 if test -n "$RANLIB"; then
5864 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5866 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5870 test -z "$as_dir" && as_dir
=.
5871 for ac_exec_ext
in '' $ac_executable_extensions; do
5872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5873 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5883 RANLIB
=$ac_cv_prog_RANLIB
5884 if test -n "$RANLIB"; then
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5886 $as_echo "$RANLIB" >&6; }
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5889 $as_echo "no" >&6; }
5894 if test -z "$ac_cv_prog_RANLIB"; then
5895 ac_ct_RANLIB
=$RANLIB
5896 # Extract the first word of "ranlib", so it can be a program name with args.
5897 set dummy ranlib
; ac_word
=$2
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5899 $as_echo_n "checking for $ac_word... " >&6; }
5900 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5901 $as_echo_n "(cached) " >&6
5903 if test -n "$ac_ct_RANLIB"; then
5904 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5906 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5910 test -z "$as_dir" && as_dir
=.
5911 for ac_exec_ext
in '' $ac_executable_extensions; do
5912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5913 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5923 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5924 if test -n "$ac_ct_RANLIB"; then
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5926 $as_echo "$ac_ct_RANLIB" >&6; }
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5929 $as_echo "no" >&6; }
5932 if test "x$ac_ct_RANLIB" = x
; then
5935 case $cross_compiling:$ac_tool_warned in
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5939 ac_tool_warned
=yes ;;
5941 RANLIB
=$ac_ct_RANLIB
5944 RANLIB
="$ac_cv_prog_RANLIB"
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5955 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5960 macro_version
='2.2.7a'
5961 macro_revision
='1.3134'
5975 ltmain
="$ac_aux_dir/ltmain.sh"
5977 # Backslashify metacharacters that are still active within
5978 # double-quoted strings.
5979 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
5981 # Same as above, but do not quote variable references.
5982 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
5984 # Sed substitution to delay expansion of an escaped shell variable in a
5985 # double_quote_subst'ed string.
5986 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
5988 # Sed substitution to delay expansion of an escaped single quote.
5989 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
5991 # Sed substitution to avoid accidental globbing in evaled expressions
5992 no_glob_subst
='s/\*/\\\*/g'
5994 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5995 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5996 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5999 $as_echo_n "checking how to print strings... " >&6; }
6000 # Test print first, because it will be a builtin if present.
6001 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6002 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6004 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6007 # Use this function as a fallback that always works.
6008 func_fallback_echo ()
6010 eval 'cat <<_LTECHO_EOF
6014 ECHO='func_fallback_echo
'
6017 # func_echo_all arg...
6018 # Invoke $ECHO with all args, space-separated.
6025 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6026 $as_echo "printf" >&6; } ;;
6027 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6028 $as_echo "print -r" >&6; } ;;
6029 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6030 $as_echo "cat" >&6; } ;;
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6047 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6048 if test "${ac_cv_path_SED+set}" = set; then :
6049 $as_echo_n "(cached) " >&6
6051 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6052 for ac_i in 1 2 3 4 5 6 7; do
6053 ac_script="$ac_script$as_nl$ac_script"
6055 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6056 { ac_script=; unset ac_script;}
6057 if test -z "$SED"; then
6058 ac_path_SED_found=false
6059 # Loop through the user's path and
test for each of PROGNAME-LIST
6060 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6064 test -z "$as_dir" && as_dir
=.
6065 for ac_prog
in sed gsed
; do
6066 for ac_exec_ext
in '' $ac_executable_extensions; do
6067 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
6068 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
6069 # Check for GNU ac_path_SED and select it if it is found.
6070 # Check for GNU $ac_path_SED
6071 case `"$ac_path_SED" --version 2>&1` in
6073 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
6076 $as_echo_n 0123456789 >"conftest.in"
6079 cat "conftest.in" "conftest.in" >"conftest.tmp"
6080 mv "conftest.tmp" "conftest.in"
6081 cp "conftest.in" "conftest.nl"
6082 $as_echo '' >> "conftest.nl"
6083 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6084 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6085 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6086 if test $ac_count -gt ${ac_path_SED_max-0}; then
6087 # Best one so far, save it but keep looking for a better one
6088 ac_cv_path_SED
="$ac_path_SED"
6089 ac_path_SED_max
=$ac_count
6091 # 10*(2^10) chars as input seems more than enough
6092 test $ac_count -gt 10 && break
6094 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6097 $ac_path_SED_found && break 3
6102 if test -z "$ac_cv_path_SED"; then
6103 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6111 $as_echo "$ac_cv_path_SED" >&6; }
6112 SED
="$ac_cv_path_SED"
6115 test -z "$SED" && SED
=sed
6116 Xsed
="$SED -e 1s/^X//"
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6129 $as_echo_n "checking for fgrep... " >&6; }
6130 if test "${ac_cv_path_FGREP+set}" = set; then :
6131 $as_echo_n "(cached) " >&6
6133 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
6134 then ac_cv_path_FGREP
="$GREP -F"
6136 if test -z "$FGREP"; then
6137 ac_path_FGREP_found
=false
6138 # Loop through the user's path and test for each of PROGNAME-LIST
6139 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6140 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6143 test -z "$as_dir" && as_dir
=.
6144 for ac_prog
in fgrep
; do
6145 for ac_exec_ext
in '' $ac_executable_extensions; do
6146 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
6147 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
6148 # Check for GNU ac_path_FGREP and select it if it is found.
6149 # Check for GNU $ac_path_FGREP
6150 case `"$ac_path_FGREP" --version 2>&1` in
6152 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
6155 $as_echo_n 0123456789 >"conftest.in"
6158 cat "conftest.in" "conftest.in" >"conftest.tmp"
6159 mv "conftest.tmp" "conftest.in"
6160 cp "conftest.in" "conftest.nl"
6161 $as_echo 'FGREP' >> "conftest.nl"
6162 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6163 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6164 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6165 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6166 # Best one so far, save it but keep looking for a better one
6167 ac_cv_path_FGREP
="$ac_path_FGREP"
6168 ac_path_FGREP_max
=$ac_count
6170 # 10*(2^10) chars as input seems more than enough
6171 test $ac_count -gt 10 && break
6173 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6176 $ac_path_FGREP_found && break 3
6181 if test -z "$ac_cv_path_FGREP"; then
6182 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6185 ac_cv_path_FGREP
=$FGREP
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6191 $as_echo "$ac_cv_path_FGREP" >&6; }
6192 FGREP
="$ac_cv_path_FGREP"
6195 test -z "$GREP" && GREP
=grep
6215 # Check whether --with-gnu-ld was given.
6216 if test "${with_gnu_ld+set}" = set; then :
6217 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
6223 if test "$GCC" = yes; then
6224 # Check if gcc -print-prog-name=ld gives a path.
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6226 $as_echo_n "checking for ld used by $CC... " >&6; }
6229 # gcc leaves a trailing carriage return which upsets mingw
6230 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6232 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6235 # Accept absolute paths.
6237 re_direlt
='/[^/][^/]*/\.\./'
6238 # Canonicalize the pathname of ld
6239 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6240 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
6241 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6243 test -z "$LD" && LD
="$ac_prog"
6246 # If it fails, then pretend we aren't using GCC.
6250 # If it is relative, then search for the first ld in PATH.
6254 elif test "$with_gnu_ld" = yes; then
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6256 $as_echo_n "checking for GNU ld... " >&6; }
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6259 $as_echo_n "checking for non-GNU ld... " >&6; }
6261 if test "${lt_cv_path_LD+set}" = set; then :
6262 $as_echo_n "(cached) " >&6
6264 if test -z "$LD"; then
6265 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6266 for ac_dir
in $PATH; do
6268 test -z "$ac_dir" && ac_dir
=.
6269 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6270 lt_cv_path_LD
="$ac_dir/$ac_prog"
6271 # Check to see if the program is GNU ld. I'd rather use --version,
6272 # but apparently some variants of GNU ld only accept -v.
6273 # Break only if it was the GNU/non-GNU ld that we prefer.
6274 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6275 *GNU
* |
*'with BFD'*)
6276 test "$with_gnu_ld" != no
&& break
6279 test "$with_gnu_ld" != yes && break
6286 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
6291 if test -n "$LD"; then
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6293 $as_echo "$LD" >&6; }
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6296 $as_echo "no" >&6; }
6298 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6300 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6301 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6302 $as_echo_n "(cached) " >&6
6304 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6305 case `$LD -v 2>&1 </dev/null` in
6306 *GNU
* |
*'with BFD'*)
6307 lt_cv_prog_gnu_ld
=yes
6310 lt_cv_prog_gnu_ld
=no
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6315 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6316 with_gnu_ld
=$lt_cv_prog_gnu_ld
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6327 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6328 if test "${lt_cv_path_NM+set}" = set; then :
6329 $as_echo_n "(cached) " >&6
6331 if test -n "$NM"; then
6332 # Let the user override the test.
6335 lt_nm_to_check
="${ac_tool_prefix}nm"
6336 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6337 lt_nm_to_check
="$lt_nm_to_check nm"
6339 for lt_tmp_nm
in $lt_nm_to_check; do
6340 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6341 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
6343 test -z "$ac_dir" && ac_dir
=.
6344 tmp_nm
="$ac_dir/$lt_tmp_nm"
6345 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
6346 # Check to see if the nm accepts a BSD-compat flag.
6347 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6348 # nm: unknown option "B" ignored
6349 # Tru64's nm complains that /dev/null is an invalid object file
6350 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6351 */dev
/null
* |
*'Invalid file or object type'*)
6352 lt_cv_path_NM
="$tmp_nm -B"
6356 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6358 lt_cv_path_NM
="$tmp_nm -p"
6362 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6363 continue # so that we can try to find one that supports BSD flags
6372 : ${lt_cv_path_NM=no}
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6376 $as_echo "$lt_cv_path_NM" >&6; }
6377 if test "$lt_cv_path_NM" != "no"; then
6380 # Didn't find any BSD compatible name lister, look for dumpbin.
6381 if test -n "$DUMPBIN"; then :
6382 # Let the user override the test.
6384 if test -n "$ac_tool_prefix"; then
6385 for ac_prog
in dumpbin
"link -dump"
6387 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6388 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6390 $as_echo_n "checking for $ac_word... " >&6; }
6391 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6392 $as_echo_n "(cached) " >&6
6394 if test -n "$DUMPBIN"; then
6395 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
6397 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6401 test -z "$as_dir" && as_dir
=.
6402 for ac_exec_ext
in '' $ac_executable_extensions; do
6403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6404 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
6405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6414 DUMPBIN
=$ac_cv_prog_DUMPBIN
6415 if test -n "$DUMPBIN"; then
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6417 $as_echo "$DUMPBIN" >&6; }
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6420 $as_echo "no" >&6; }
6424 test -n "$DUMPBIN" && break
6427 if test -z "$DUMPBIN"; then
6428 ac_ct_DUMPBIN
=$DUMPBIN
6429 for ac_prog
in dumpbin
"link -dump"
6431 # Extract the first word of "$ac_prog", so it can be a program name with args.
6432 set dummy
$ac_prog; ac_word
=$2
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434 $as_echo_n "checking for $ac_word... " >&6; }
6435 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6436 $as_echo_n "(cached) " >&6
6438 if test -n "$ac_ct_DUMPBIN"; then
6439 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
6441 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6445 test -z "$as_dir" && as_dir
=.
6446 for ac_exec_ext
in '' $ac_executable_extensions; do
6447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6448 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
6449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6458 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
6459 if test -n "$ac_ct_DUMPBIN"; then
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6461 $as_echo "$ac_ct_DUMPBIN" >&6; }
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464 $as_echo "no" >&6; }
6468 test -n "$ac_ct_DUMPBIN" && break
6471 if test "x$ac_ct_DUMPBIN" = x
; then
6474 case $cross_compiling:$ac_tool_warned in
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6478 ac_tool_warned
=yes ;;
6480 DUMPBIN
=$ac_ct_DUMPBIN
6484 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6486 DUMPBIN
="$DUMPBIN -symbols"
6494 if test "$DUMPBIN" != ":"; then
6498 test -z "$NM" && NM
=nm
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6506 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6507 if test "${lt_cv_nm_interface+set}" = set; then :
6508 $as_echo_n "(cached) " >&6
6510 lt_cv_nm_interface
="BSD nm"
6511 echo "int some_variable = 0;" > conftest.
$ac_ext
6512 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6513 (eval "$ac_compile" 2>conftest.err
)
6514 cat conftest.err
>&5
6515 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6516 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
6517 cat conftest.err
>&5
6518 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6519 cat conftest.out
>&5
6520 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
6521 lt_cv_nm_interface
="MS dumpbin"
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6526 $as_echo "$lt_cv_nm_interface" >&6; }
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6529 $as_echo_n "checking whether ln -s works... " >&6; }
6531 if test "$LN_S" = "ln -s"; then
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6533 $as_echo "yes" >&6; }
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6536 $as_echo "no, using $LN_S" >&6; }
6539 # find the maximum length of command line arguments
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6541 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6542 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6543 $as_echo_n "(cached) " >&6
6550 # On DJGPP, this test can blow up pretty badly due to problems in libc
6551 # (any single argument exceeding 2000 bytes causes a buffer overrun
6552 # during glob expansion). Even if it were fixed, the result of this
6553 # check would be larger than it should be.
6554 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
6558 # Under GNU Hurd, this test is not required because there is
6559 # no limit to the length of command line arguments.
6560 # Libtool will interpret -1 as no limit whatsoever
6561 lt_cv_sys_max_cmd_len
=-1;
6564 cygwin
* | mingw
* | cegcc
*)
6565 # On Win9x/ME, this test blows up -- it succeeds, but takes
6566 # about 5 minutes as the teststring grows exponentially.
6567 # Worse, since 9x/ME are not pre-emptively multitasking,
6568 # you end up with a "frozen" computer, even though with patience
6569 # the test eventually succeeds (with a max line length of 256k).
6570 # Instead, let's just punt: use the minimum linelength reported by
6571 # all of the supported platforms: 8192 (on NT/2K/XP).
6572 lt_cv_sys_max_cmd_len
=8192;
6576 # On MiNT this can take a long time and run out of memory.
6577 lt_cv_sys_max_cmd_len
=8192;
6581 # On AmigaOS with pdksh, this test takes hours, literally.
6582 # So we just punt and use a minimum line length of 8192.
6583 lt_cv_sys_max_cmd_len
=8192;
6586 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
6587 # This has been around since 386BSD, at least. Likely further.
6588 if test -x /sbin
/sysctl
; then
6589 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
6590 elif test -x /usr
/sbin
/sysctl
; then
6591 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
6593 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
6595 # And add a safety zone
6596 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6597 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6601 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6602 lt_cv_sys_max_cmd_len
=196608
6606 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6607 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6608 # nice to cause kernel panics so lets avoid the loop below.
6609 # First set a reasonable default.
6610 lt_cv_sys_max_cmd_len
=16384
6612 if test -x /sbin
/sysconfig
; then
6613 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6614 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6619 lt_cv_sys_max_cmd_len
=102400
6621 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6622 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6623 if test -n "$kargmax"; then
6624 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6626 lt_cv_sys_max_cmd_len
=32768
6630 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
6631 if test -n "$lt_cv_sys_max_cmd_len"; then
6632 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6633 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6635 # Make teststring a little bigger before we do anything with it.
6636 # a 1K string should be a reasonable start.
6637 for i
in 1 2 3 4 5 6 7 8 ; do
6638 teststring
=$teststring$teststring
6640 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6641 # If test is not a shell built-in, we'll probably end up computing a
6642 # maximum length that is only half of the actual maximum length, but
6644 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6645 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
6646 test $i != 17 # 1/2 MB should be enough
6649 teststring
=$teststring$teststring
6651 # Only check the string length outside the loop.
6652 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
6654 # Add a significant safety factor because C++ compilers can tack on
6655 # massive amounts of additional arguments before passing them to the
6656 # linker. It appears as though 1/2 is a usable value.
6657 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6664 if test -n $lt_cv_sys_max_cmd_len ; then
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6666 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6669 $as_echo "none" >&6; }
6671 max_cmd_len
=$lt_cv_sys_max_cmd_len
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6683 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6684 # Try some XSI features
6687 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6689 && eval 'test $(( 1 + 1 )) -eq 2 \
6690 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
6693 $as_echo "$xsi_shell" >&6; }
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
6697 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
6699 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
6701 && lt_shell_append=yes
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
6703 $as_echo "$lt_shell_append" >&6; }
6706 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6716 # test EBCDIC or ASCII
6717 case `echo X|tr X '\101'` in
6718 A) # ASCII based system
6719 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6720 lt_SP2NL='tr \040 \012'
6721 lt_NL2SP='tr \015\012 \040\040'
6723 *) # EBCDIC based system
6724 lt_SP2NL='tr \100 \n'
6725 lt_NL2SP='tr \r\n \100\100'
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
6738 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
6739 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6740 $as_echo_n "(cached
) " >&6
6742 lt_cv_ld_reload_flag='-r'
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
6745 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6746 reload_flag=$lt_cv_ld_reload_flag
6747 case $reload_flag in
6749 *) reload_flag=" $reload_flag" ;;
6751 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6754 if test "$GCC" = yes; then
6755 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6757 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6770 if test -n "$ac_tool_prefix"; then
6771 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
6772 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6774 $as_echo_n "checking
for $ac_word...
" >&6; }
6775 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6776 $as_echo_n "(cached
) " >&6
6778 if test -n "$OBJDUMP"; then
6779 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785 test -z "$as_dir" && as_dir=.
6786 for ac_exec_ext in '' $ac_executable_extensions; do
6787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6788 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
6789 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6798 OBJDUMP=$ac_cv_prog_OBJDUMP
6799 if test -n "$OBJDUMP"; then
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
6801 $as_echo "$OBJDUMP" >&6; }
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6804 $as_echo "no
" >&6; }
6809 if test -z "$ac_cv_prog_OBJDUMP"; then
6810 ac_ct_OBJDUMP=$OBJDUMP
6811 # Extract the first word of "objdump
", so it can be a program name with args.
6812 set dummy objdump; ac_word=$2
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6814 $as_echo_n "checking
for $ac_word...
" >&6; }
6815 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6816 $as_echo_n "(cached
) " >&6
6818 if test -n "$ac_ct_OBJDUMP"; then
6819 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 test -z "$as_dir" && as_dir=.
6826 for ac_exec_ext in '' $ac_executable_extensions; do
6827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6828 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
6829 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6838 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6839 if test -n "$ac_ct_OBJDUMP"; then
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
6841 $as_echo "$ac_ct_OBJDUMP" >&6; }
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6844 $as_echo "no
" >&6; }
6847 if test "x
$ac_ct_OBJDUMP" = x; then
6850 case $cross_compiling:$ac_tool_warned in
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6853 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6854 ac_tool_warned=yes ;;
6856 OBJDUMP=$ac_ct_OBJDUMP
6859 OBJDUMP="$ac_cv_prog_OBJDUMP"
6862 test -z "$OBJDUMP" && OBJDUMP=objdump
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
6873 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
6874 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6875 $as_echo_n "(cached
) " >&6
6877 lt_cv_file_magic_cmd='$MAGIC_CMD'
6878 lt_cv_file_magic_test_file=
6879 lt_cv_deplibs_check_method='unknown'
6880 # Need to set the preceding variable on all platforms that support
6881 # interlibrary dependencies.
6882 # 'none' -- dependencies not supported.
6883 # `unknown' -- same as none, but documents that we really don't know.
6884 # 'pass_all' -- all dependencies passed with no checks.
6885 # 'test_compile' -- check by making test program.
6886 # 'file_magic [[regex]]' -- check by looking for files in library path
6887 # which responds to the $file_magic_cmd with a given extended regex.
6888 # If you have `file' or equivalent on your system and you're not sure
6889 # whether `pass_all' will *always* work, you probably want this one.
6893 lt_cv_deplibs_check_method=pass_all
6897 lt_cv_deplibs_check_method=pass_all
6901 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6902 lt_cv_file_magic_cmd='/usr/bin/file -L'
6903 lt_cv_file_magic_test_file=/shlib/libc.so
6907 # func_win32_libid is a shell function defined in ltmain.sh
6908 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6909 lt_cv_file_magic_cmd='func_win32_libid'
6913 # Base MSYS/MinGW do not provide the 'file' command needed by
6914 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6915 # unless we find 'file', for example because we are cross-compiling.
6916 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6917 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
6918 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6919 lt_cv_file_magic_cmd='func_win32_libid'
6921 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6922 lt_cv_file_magic_cmd='$OBJDUMP -f'
6927 # use the weaker test based on 'objdump'. See mingw*.
6928 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6929 lt_cv_file_magic_cmd='$OBJDUMP -f'
6932 darwin* | rhapsody*)
6933 lt_cv_deplibs_check_method=pass_all
6936 freebsd* | dragonfly*)
6937 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6940 # Not sure whether the presence of OpenBSD here was a mistake.
6941 # Let's accept both of them until this is cleared up.
6942 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6943 lt_cv_file_magic_cmd=/usr/bin/file
6944 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6948 lt_cv_deplibs_check_method=pass_all
6953 lt_cv_deplibs_check_method=pass_all
6957 lt_cv_deplibs_check_method=pass_all
6960 hpux10.20* | hpux11*)
6961 lt_cv_file_magic_cmd=/usr/bin/file
6964 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6965 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6968 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]'
6969 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6972 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6973 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6979 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6980 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6983 irix5* | irix6* | nonstopux*)
6985 *-32|*"-32 ") libmagic=32-bit;;
6986 *-n32|*"-n32 ") libmagic=N32;;
6987 *-64|*"-64 ") libmagic=64-bit;;
6988 *) libmagic=never-match;;
6990 lt_cv_deplibs_check_method=pass_all
6993 # This must be Linux ELF.
6994 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6995 lt_cv_deplibs_check_method=pass_all
6999 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7000 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7002 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7007 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7008 lt_cv_file_magic_cmd=/usr/bin/file
7009 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7013 lt_cv_deplibs_check_method=pass_all
7017 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
7018 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7020 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7024 osf3* | osf4* | osf5*)
7025 lt_cv_deplibs_check_method=pass_all
7029 lt_cv_deplibs_check_method=pass_all
7033 lt_cv_deplibs_check_method=pass_all
7036 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7037 lt_cv_deplibs_check_method=pass_all
7041 case $host_vendor in
7043 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]'
7044 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7047 lt_cv_deplibs_check_method=pass_all
7050 lt_cv_file_magic_cmd='/bin/file'
7051 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7054 lt_cv_file_magic_cmd='/bin/file'
7055 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
7056 lt_cv_file_magic_test_file=/lib/libc.so
7059 lt_cv_deplibs_check_method=pass_all
7062 lt_cv_deplibs_check_method=pass_all
7068 lt_cv_deplibs_check_method=pass_all
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
7074 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7075 file_magic_cmd=$lt_cv_file_magic_cmd
7076 deplibs_check_method=$lt_cv_deplibs_check_method
7077 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7090 if test -n "$ac_tool_prefix"; then
7091 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7092 set dummy ${ac_tool_prefix}ar; ac_word=$2
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7094 $as_echo_n "checking
for $ac_word...
" >&6; }
7095 if test "${ac_cv_prog_AR+set}" = set; then :
7096 $as_echo_n "(cached
) " >&6
7098 if test -n "$AR"; then
7099 ac_cv_prog_AR="$AR" # Let the user override the test.
7101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105 test -z "$as_dir" && as_dir=.
7106 for ac_exec_ext in '' $ac_executable_extensions; do
7107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7108 ac_cv_prog_AR="${ac_tool_prefix}ar"
7109 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7119 if test -n "$AR"; then
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
7121 $as_echo "$AR" >&6; }
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7124 $as_echo "no
" >&6; }
7129 if test -z "$ac_cv_prog_AR"; then
7131 # Extract the first word of "ar", so it can be a program name with args.
7132 set dummy ar; ac_word=$2
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7134 $as_echo_n "checking
for $ac_word...
" >&6; }
7135 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7136 $as_echo_n "(cached
) " >&6
7138 if test -n "$ac_ct_AR"; then
7139 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 test -z "$as_dir" && as_dir=.
7146 for ac_exec_ext in '' $ac_executable_extensions; do
7147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7148 ac_cv_prog_ac_ct_AR="ar"
7149 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7158 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7159 if test -n "$ac_ct_AR"; then
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
7161 $as_echo "$ac_ct_AR" >&6; }
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7164 $as_echo "no
" >&6; }
7167 if test "x
$ac_ct_AR" = x; then
7170 case $cross_compiling:$ac_tool_warned in
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7173 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7174 ac_tool_warned=yes ;;
7182 test -z "$AR" && AR=ar
7183 test -z "$AR_FLAGS" && AR_FLAGS=cru
7195 if test -n "$ac_tool_prefix"; then
7196 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
7197 set dummy ${ac_tool_prefix}strip; ac_word=$2
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7199 $as_echo_n "checking
for $ac_word...
" >&6; }
7200 if test "${ac_cv_prog_STRIP+set}" = set; then :
7201 $as_echo_n "(cached
) " >&6
7203 if test -n "$STRIP"; then
7204 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210 test -z "$as_dir" && as_dir=.
7211 for ac_exec_ext in '' $ac_executable_extensions; do
7212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7213 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
7214 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7223 STRIP=$ac_cv_prog_STRIP
7224 if test -n "$STRIP"; then
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
7226 $as_echo "$STRIP" >&6; }
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7229 $as_echo "no
" >&6; }
7234 if test -z "$ac_cv_prog_STRIP"; then
7236 # Extract the first word of "strip
", so it can be a program name with args.
7237 set dummy strip; ac_word=$2
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7239 $as_echo_n "checking
for $ac_word...
" >&6; }
7240 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7241 $as_echo_n "(cached
) " >&6
7243 if test -n "$ac_ct_STRIP"; then
7244 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250 test -z "$as_dir" && as_dir=.
7251 for ac_exec_ext in '' $ac_executable_extensions; do
7252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7253 ac_cv_prog_ac_ct_STRIP="strip
"
7254 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7263 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7264 if test -n "$ac_ct_STRIP"; then
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
7266 $as_echo "$ac_ct_STRIP" >&6; }
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7269 $as_echo "no
" >&6; }
7272 if test "x
$ac_ct_STRIP" = x; then
7275 case $cross_compiling:$ac_tool_warned in
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7278 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7279 ac_tool_warned=yes ;;
7284 STRIP="$ac_cv_prog_STRIP"
7287 test -z "$STRIP" && STRIP=:
7294 if test -n "$ac_tool_prefix"; then
7295 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
7296 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7298 $as_echo_n "checking
for $ac_word...
" >&6; }
7299 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7300 $as_echo_n "(cached
) " >&6
7302 if test -n "$RANLIB"; then
7303 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309 test -z "$as_dir" && as_dir=.
7310 for ac_exec_ext in '' $ac_executable_extensions; do
7311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7312 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
7313 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7322 RANLIB=$ac_cv_prog_RANLIB
7323 if test -n "$RANLIB"; then
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
7325 $as_echo "$RANLIB" >&6; }
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7328 $as_echo "no
" >&6; }
7333 if test -z "$ac_cv_prog_RANLIB"; then
7334 ac_ct_RANLIB=$RANLIB
7335 # Extract the first word of "ranlib
", so it can be a program name with args.
7336 set dummy ranlib; ac_word=$2
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7338 $as_echo_n "checking
for $ac_word...
" >&6; }
7339 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7340 $as_echo_n "(cached
) " >&6
7342 if test -n "$ac_ct_RANLIB"; then
7343 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349 test -z "$as_dir" && as_dir=.
7350 for ac_exec_ext in '' $ac_executable_extensions; do
7351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7352 ac_cv_prog_ac_ct_RANLIB="ranlib
"
7353 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7362 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7363 if test -n "$ac_ct_RANLIB"; then
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
7365 $as_echo "$ac_ct_RANLIB" >&6; }
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7368 $as_echo "no
" >&6; }
7371 if test "x
$ac_ct_RANLIB" = x; then
7374 case $cross_compiling:$ac_tool_warned in
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7377 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7378 ac_tool_warned=yes ;;
7380 RANLIB=$ac_ct_RANLIB
7383 RANLIB="$ac_cv_prog_RANLIB"
7386 test -z "$RANLIB" && RANLIB=:
7393 # Determine commands to create old-style static archives.
7394 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7395 old_postinstall_cmds='chmod 644 $oldlib'
7396 old_postuninstall_cmds=
7398 if test -n "$RANLIB"; then
7401 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
7404 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
7407 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
7412 lock_old_archive_extraction=yes ;;
7414 lock_old_archive_extraction=no ;;
7455 # If no C compiler was specified, use CC.
7458 # If no C compiler flags were specified, use CFLAGS.
7459 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7461 # Allow CC to be a program name with arguments.
7465 # Check for command to grab the raw symbol name followed by C symbol from nm.
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
7467 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
7468 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7469 $as_echo_n "(cached
) " >&6
7472 # These are sane defaults that work on at least a few old systems.
7473 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7475 # Character class describing NM global symbol codes.
7476 symcode='[BCDEGRST]'
7478 # Regexp to match symbols that can be accessed directly from C.
7479 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7481 # Define system-specific variables.
7486 cygwin* | mingw* | pw32* | cegcc*)
7487 symcode='[ABCDGISTW]'
7490 if test "$host_cpu" = ia64; then
7491 symcode='[ABCDEGRST]'
7495 symcode='[BCDEGRST]'
7498 symcode='[BCDEGQRST]'
7509 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7517 # If we're using GNU nm, then use its standard symbol codes.
7518 case `$NM -V 2>&1` in
7519 *GNU* | *'with BFD'*)
7520 symcode='[ABCDGIRSTW]' ;;
7523 # Transform an extracted symbol line into a proper C declaration.
7524 # Some systems (esp. on ia64) link data and code symbols differently,
7525 # so use this general approach.
7526 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7528 # Transform an extracted symbol line into symbol name and symbol address
7529 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7530 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'"
7532 # Handle CRLF in mingw tool chain
7536 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7540 # Try without a prefix underscore, then with it.
7541 for ac_symprfx in "" "_
"; do
7543 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7544 symxfrm="\\1 $ac_symprfx\\2 \\2"
7546 # Write the raw and C identifiers.
7547 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
7548 # Fake it for dumpbin and say T for any non-static function
7549 # and D for any global variable.
7550 # Also find C++ and __fastcall symbols from MSVC++,
7551 # which start with @ or ?.
7552 lt_cv_sys_global_symbol_pipe="$AWK '"\
7553 " {last_section=section; section=\$ 3};"\
7554 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7555 " \$ 0!~/External *\|/{next};"\
7556 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7557 " {if(hide[section]) next};"\
7558 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7559 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7560 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7561 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7562 " ' prfx
=^
$ac_symprfx"
7564 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7567 # Check to see that the pipe works correctly.
7571 cat > conftest.$ac_ext <<_LT_EOF
7576 void nm_test_func(void);
7577 void nm_test_func(void){}
7581 int main(){nm_test_var='a';nm_test_func();return(0);}
7584 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7585 (eval $ac_compile) 2>&5
7587 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7588 test $ac_status = 0; }; then
7589 # Now try to grab the symbols.
7591 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
7592 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7594 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7595 test $ac_status = 0; } && test -s "$nlist"; then
7596 # Try sorting and uniquifying the output.
7597 if sort "$nlist" | uniq > "$nlist"T; then
7598 mv -f "$nlist"T "$nlist"
7603 # Make sure that we snagged all the symbols we need.
7604 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7605 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7606 cat <<_LT_EOF > conftest.$ac_ext
7612 # Now generate the symbol file.
7613 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7615 cat <<_LT_EOF >> conftest.$ac_ext
7617 /* The mapping between symbol names and symbols. */
7622 lt__PROGRAM__LTX_preloaded_symbols[] =
7624 { "@PROGRAM@
", (void *) 0 },
7626 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7627 cat <<\_LT_EOF >> conftest.$ac_ext
7631 /* This works around a problem in FreeBSD linker */
7632 #ifdef FREEBSD_WORKAROUND
7633 static const void *lt_preloaded_setup() {
7634 return lt__PROGRAM__LTX_preloaded_symbols;
7642 # Now try linking the two files.
7643 mv conftest.$ac_objext conftstm.$ac_objext
7644 lt_save_LIBS="$LIBS"
7645 lt_save_CFLAGS="$CFLAGS"
7646 LIBS="conftstm.
$ac_objext"
7647 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7648 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7649 (eval $ac_link) 2>&5
7651 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7652 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7655 LIBS="$lt_save_LIBS"
7656 CFLAGS="$lt_save_CFLAGS"
7658 echo "cannot
find nm_test_func
in $nlist" >&5
7661 echo "cannot
find nm_test_var
in $nlist" >&5
7664 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
7667 echo "$progname: failed program was
:" >&5
7668 cat conftest.$ac_ext >&5
7670 rm -rf conftest* conftst*
7672 # Do not use the global_symbol_pipe unless it works.
7673 if test "$pipe_works" = yes; then
7676 lt_cv_sys_global_symbol_pipe=
7682 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7683 lt_cv_sys_global_symbol_to_cdecl=
7685 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
7687 $as_echo "failed
" >&6; }
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
7690 $as_echo "ok
" >&6; }
7714 # Check whether --enable-libtool-lock was given.
7715 if test "${enable_libtool_lock+set}" = set; then :
7716 enableval=$enable_libtool_lock;
7719 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
7721 # Some flags need to be propagated to the compiler or linker for good
7725 # Find out which ABI we are using.
7726 echo 'int i;' > conftest.$ac_ext
7727 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7728 (eval $ac_compile) 2>&5
7730 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7731 test $ac_status = 0; }; then
7732 case `/usr/bin/file conftest.$ac_objext` in
7744 # Find out which ABI we are using.
7745 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
7746 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7747 (eval $ac_compile) 2>&5
7749 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7750 test $ac_status = 0; }; then
7751 if test "$lt_cv_prog_gnu_ld" = yes; then
7752 case `/usr/bin/file conftest.$ac_objext` in
7754 LD="${LD-ld} -melf32bsmip"
7757 LD="${LD-ld} -melf32bmipn32"
7760 LD="${LD-ld} -melf64bmip"
7764 case `/usr/bin/file conftest.$ac_objext` in
7780 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7781 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7782 # Find out which ABI we are using.
7783 echo 'int i;' > conftest.$ac_ext
7784 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7785 (eval $ac_compile) 2>&5
7787 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7788 test $ac_status = 0; }; then
7789 case `/usr/bin/file conftest.o` in
7792 x86_64-*kfreebsd*-gnu)
7793 LD="${LD-ld} -m elf_i386_fbsd
"
7796 case `/usr/bin/file conftest.o` in
7798 LD="${LD-ld} -m elf32_x86_64
"
7801 LD="${LD-ld} -m elf_i386
"
7805 powerpc64le-*linux*)
7806 LD="${LD-ld} -m elf32lppclinux
"
7809 LD="${LD-ld} -m elf32ppclinux
"
7812 LD="${LD-ld} -m elf_s390
"
7815 LD="${LD-ld} -m elf32_sparc
"
7821 x86_64-*kfreebsd*-gnu)
7822 LD="${LD-ld} -m elf_x86_64_fbsd
"
7825 LD="${LD-ld} -m elf_x86_64
"
7828 LD="${LD-ld} -m elf64lppc
"
7831 LD="${LD-ld} -m elf64ppc
"
7833 s390*-*linux*|s390*-*tpf*)
7834 LD="${LD-ld} -m elf64_s390
"
7837 LD="${LD-ld} -m elf64_sparc
"
7847 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7848 SAVE_CFLAGS="$CFLAGS"
7849 CFLAGS="$CFLAGS -belf"
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
7851 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
7852 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7853 $as_echo_n "(cached
) " >&6
7856 ac_cpp='$CPP $CPPFLAGS'
7857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7862 /* end confdefs.h. */
7872 if ac_fn_c_try_link "$LINENO"; then :
7873 lt_cv_cc_needs_belf=yes
7875 lt_cv_cc_needs_belf=no
7877 rm -f core conftest.err conftest.$ac_objext \
7878 conftest$ac_exeext conftest.$ac_ext
7880 ac_cpp='$CPP $CPPFLAGS'
7881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
7887 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7888 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7889 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7890 CFLAGS="$SAVE_CFLAGS"
7894 # Find out which ABI we are using.
7895 echo 'int i;' > conftest.$ac_ext
7896 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7897 (eval $ac_compile) 2>&5
7899 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7900 test $ac_status = 0; }; then
7901 case `/usr/bin/file conftest.o` in
7903 case $lt_cv_prog_gnu_ld in
7904 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
7906 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7918 need_locks="$enable_libtool_lock"
7922 rhapsody* | darwin*)
7923 if test -n "$ac_tool_prefix"; then
7924 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
7925 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7927 $as_echo_n "checking
for $ac_word...
" >&6; }
7928 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7929 $as_echo_n "(cached
) " >&6
7931 if test -n "$DSYMUTIL"; then
7932 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7938 test -z "$as_dir" && as_dir=.
7939 for ac_exec_ext in '' $ac_executable_extensions; do
7940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7941 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
7942 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7951 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7952 if test -n "$DSYMUTIL"; then
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
7954 $as_echo "$DSYMUTIL" >&6; }
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7957 $as_echo "no
" >&6; }
7962 if test -z "$ac_cv_prog_DSYMUTIL"; then
7963 ac_ct_DSYMUTIL=$DSYMUTIL
7964 # Extract the first word of "dsymutil
", so it can be a program name with args.
7965 set dummy dsymutil; ac_word=$2
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7967 $as_echo_n "checking
for $ac_word...
" >&6; }
7968 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7969 $as_echo_n "(cached
) " >&6
7971 if test -n "$ac_ct_DSYMUTIL"; then
7972 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7978 test -z "$as_dir" && as_dir=.
7979 for ac_exec_ext in '' $ac_executable_extensions; do
7980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7981 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
7982 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7991 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7992 if test -n "$ac_ct_DSYMUTIL"; then
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
7994 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7997 $as_echo "no
" >&6; }
8000 if test "x
$ac_ct_DSYMUTIL" = x; then
8003 case $cross_compiling:$ac_tool_warned in
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8006 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8007 ac_tool_warned=yes ;;
8009 DSYMUTIL=$ac_ct_DSYMUTIL
8012 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8015 if test -n "$ac_tool_prefix"; then
8016 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
8017 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8019 $as_echo_n "checking
for $ac_word...
" >&6; }
8020 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8021 $as_echo_n "(cached
) " >&6
8023 if test -n "$NMEDIT"; then
8024 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8030 test -z "$as_dir" && as_dir=.
8031 for ac_exec_ext in '' $ac_executable_extensions; do
8032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8033 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
8034 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8043 NMEDIT=$ac_cv_prog_NMEDIT
8044 if test -n "$NMEDIT"; then
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
8046 $as_echo "$NMEDIT" >&6; }
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8049 $as_echo "no
" >&6; }
8054 if test -z "$ac_cv_prog_NMEDIT"; then
8055 ac_ct_NMEDIT=$NMEDIT
8056 # Extract the first word of "nmedit
", so it can be a program name with args.
8057 set dummy nmedit; ac_word=$2
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8059 $as_echo_n "checking
for $ac_word...
" >&6; }
8060 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8061 $as_echo_n "(cached
) " >&6
8063 if test -n "$ac_ct_NMEDIT"; then
8064 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070 test -z "$as_dir" && as_dir=.
8071 for ac_exec_ext in '' $ac_executable_extensions; do
8072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8073 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
8074 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8083 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8084 if test -n "$ac_ct_NMEDIT"; then
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
8086 $as_echo "$ac_ct_NMEDIT" >&6; }
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8089 $as_echo "no
" >&6; }
8092 if test "x
$ac_ct_NMEDIT" = x; then
8095 case $cross_compiling:$ac_tool_warned in
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8098 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8099 ac_tool_warned=yes ;;
8101 NMEDIT=$ac_ct_NMEDIT
8104 NMEDIT="$ac_cv_prog_NMEDIT"
8107 if test -n "$ac_tool_prefix"; then
8108 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
8109 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8111 $as_echo_n "checking
for $ac_word...
" >&6; }
8112 if test "${ac_cv_prog_LIPO+set}" = set; then :
8113 $as_echo_n "(cached
) " >&6
8115 if test -n "$LIPO"; then
8116 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8122 test -z "$as_dir" && as_dir=.
8123 for ac_exec_ext in '' $ac_executable_extensions; do
8124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8125 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
8126 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8135 LIPO=$ac_cv_prog_LIPO
8136 if test -n "$LIPO"; then
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
8138 $as_echo "$LIPO" >&6; }
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8141 $as_echo "no
" >&6; }
8146 if test -z "$ac_cv_prog_LIPO"; then
8148 # Extract the first word of "lipo
", so it can be a program name with args.
8149 set dummy lipo; ac_word=$2
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8151 $as_echo_n "checking
for $ac_word...
" >&6; }
8152 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8153 $as_echo_n "(cached
) " >&6
8155 if test -n "$ac_ct_LIPO"; then
8156 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8162 test -z "$as_dir" && as_dir=.
8163 for ac_exec_ext in '' $ac_executable_extensions; do
8164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8165 ac_cv_prog_ac_ct_LIPO="lipo
"
8166 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8175 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8176 if test -n "$ac_ct_LIPO"; then
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
8178 $as_echo "$ac_ct_LIPO" >&6; }
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8181 $as_echo "no
" >&6; }
8184 if test "x
$ac_ct_LIPO" = x; then
8187 case $cross_compiling:$ac_tool_warned in
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8190 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8191 ac_tool_warned=yes ;;
8196 LIPO="$ac_cv_prog_LIPO"
8199 if test -n "$ac_tool_prefix"; then
8200 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
8201 set dummy ${ac_tool_prefix}otool; ac_word=$2
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8203 $as_echo_n "checking
for $ac_word...
" >&6; }
8204 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8205 $as_echo_n "(cached
) " >&6
8207 if test -n "$OTOOL"; then
8208 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8214 test -z "$as_dir" && as_dir=.
8215 for ac_exec_ext in '' $ac_executable_extensions; do
8216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8217 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
8218 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8227 OTOOL=$ac_cv_prog_OTOOL
8228 if test -n "$OTOOL"; then
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
8230 $as_echo "$OTOOL" >&6; }
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8233 $as_echo "no
" >&6; }
8238 if test -z "$ac_cv_prog_OTOOL"; then
8240 # Extract the first word of "otool
", so it can be a program name with args.
8241 set dummy otool; ac_word=$2
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8243 $as_echo_n "checking
for $ac_word...
" >&6; }
8244 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8245 $as_echo_n "(cached
) " >&6
8247 if test -n "$ac_ct_OTOOL"; then
8248 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8254 test -z "$as_dir" && as_dir=.
8255 for ac_exec_ext in '' $ac_executable_extensions; do
8256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8257 ac_cv_prog_ac_ct_OTOOL="otool
"
8258 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8267 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8268 if test -n "$ac_ct_OTOOL"; then
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
8270 $as_echo "$ac_ct_OTOOL" >&6; }
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8273 $as_echo "no
" >&6; }
8276 if test "x
$ac_ct_OTOOL" = x; then
8279 case $cross_compiling:$ac_tool_warned in
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8282 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8283 ac_tool_warned=yes ;;
8288 OTOOL="$ac_cv_prog_OTOOL"
8291 if test -n "$ac_tool_prefix"; then
8292 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
8293 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8295 $as_echo_n "checking
for $ac_word...
" >&6; }
8296 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8297 $as_echo_n "(cached
) " >&6
8299 if test -n "$OTOOL64"; then
8300 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8306 test -z "$as_dir" && as_dir=.
8307 for ac_exec_ext in '' $ac_executable_extensions; do
8308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8309 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
8310 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8319 OTOOL64=$ac_cv_prog_OTOOL64
8320 if test -n "$OTOOL64"; then
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
8322 $as_echo "$OTOOL64" >&6; }
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8325 $as_echo "no
" >&6; }
8330 if test -z "$ac_cv_prog_OTOOL64"; then
8331 ac_ct_OTOOL64=$OTOOL64
8332 # Extract the first word of "otool64
", so it can be a program name with args.
8333 set dummy otool64; ac_word=$2
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8335 $as_echo_n "checking
for $ac_word...
" >&6; }
8336 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8337 $as_echo_n "(cached
) " >&6
8339 if test -n "$ac_ct_OTOOL64"; then
8340 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8346 test -z "$as_dir" && as_dir=.
8347 for ac_exec_ext in '' $ac_executable_extensions; do
8348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8349 ac_cv_prog_ac_ct_OTOOL64="otool64
"
8350 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8359 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8360 if test -n "$ac_ct_OTOOL64"; then
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
8362 $as_echo "$ac_ct_OTOOL64" >&6; }
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8365 $as_echo "no
" >&6; }
8368 if test "x
$ac_ct_OTOOL64" = x; then
8371 case $cross_compiling:$ac_tool_warned in
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8374 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8375 ac_tool_warned=yes ;;
8377 OTOOL64=$ac_ct_OTOOL64
8380 OTOOL64="$ac_cv_prog_OTOOL64"
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
8410 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
8411 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8412 $as_echo_n "(cached
) " >&6
8414 lt_cv_apple_cc_single_mod=no
8415 if test -z "${LT_MULTI_MODULE}"; then
8416 # By default we will add the -single_module flag. You can override
8417 # by either setting the environment variable LT_MULTI_MODULE
8418 # non-empty at configure time, or by adding -multi_module to the
8420 rm -rf libconftest.dylib*
8421 echo "int foo
(void
){return 1;}" > conftest.c
8422 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8423 -dynamiclib -Wl,-single_module conftest.c
" >&5
8424 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8425 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8427 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8428 lt_cv_apple_cc_single_mod=yes
8430 cat conftest.err >&5
8432 rm -rf libconftest.dylib*
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
8437 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
8439 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
8440 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8441 $as_echo_n "(cached
) " >&6
8443 lt_cv_ld_exported_symbols_list=no
8444 save_LDFLAGS=$LDFLAGS
8445 echo "_main
" > conftest.sym
8446 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
8447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8448 /* end confdefs.h. */
8458 if ac_fn_c_try_link "$LINENO"; then :
8459 lt_cv_ld_exported_symbols_list=yes
8461 lt_cv_ld_exported_symbols_list=no
8463 rm -f core conftest.err conftest.$ac_objext \
8464 conftest$ac_exeext conftest.$ac_ext
8465 LDFLAGS="$save_LDFLAGS"
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
8469 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
8471 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
8472 if test "${lt_cv_ld_force_load+set}" = set; then :
8473 $as_echo_n "(cached
) " >&6
8475 lt_cv_ld_force_load=no
8476 cat > conftest.c << _LT_EOF
8477 int forced_loaded() { return 2;}
8479 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
8480 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8481 echo "$AR cru libconftest.a conftest.o
" >&5
8482 $AR cru libconftest.a conftest.o 2>&5
8483 cat > conftest.c << _LT_EOF
8484 int main() { return 0;}
8486 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
8487 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8489 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8490 lt_cv_ld_force_load=yes
8492 cat conftest.err >&5
8494 rm -f conftest.err libconftest.a conftest conftest.c
8495 rm -rf conftest.dSYM
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
8499 $as_echo "$lt_cv_ld_force_load" >&6; }
8501 rhapsody* | darwin1.[012])
8502 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8504 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8505 darwin*) # darwin 5.x on
8506 # if running on 10.5 or later, the deployment target defaults
8507 # to the OS version, if on x86, and 10.4, the deployment
8508 # target defaults to 10.4. Don't you love it?
8509 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8510 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8511 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8513 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8515 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8519 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8520 _lt_dar_single_mod='$single_module'
8522 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8523 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8525 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8527 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
8528 _lt_dsymutil='~$DSYMUTIL $lib || :'
8535 for ac_header in dlfcn.h
8537 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
" "$ac_includes_default
8539 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
8540 cat >>confdefs.h <<_ACEOF
8541 #define HAVE_DLFCN_H 1
8561 # Check whether --enable-shared was given.
8562 if test "${enable_shared+set}" = set; then :
8563 enableval=$enable_shared; p=${PACKAGE-default}
8565 yes) enable_shared=yes ;;
8566 no) enable_shared=no ;;
8569 # Look at the argument we got. We use all the common list separators.
8570 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8571 for pkg in $enableval; do
8573 if test "X
$pkg" = "X
$p"; then
8592 # Check whether --enable-static was given.
8593 if test "${enable_static+set}" = set; then :
8594 enableval=$enable_static; p=${PACKAGE-default}
8596 yes) enable_static=yes ;;
8597 no) enable_static=no ;;
8600 # Look at the argument we got. We use all the common list separators.
8601 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8602 for pkg in $enableval; do
8604 if test "X
$pkg" = "X
$p"; then
8624 # Check whether --with-pic was given.
8625 if test "${with_pic+set}" = set; then :
8626 withval=$with_pic; pic_mode="$withval"
8632 test -z "$pic_mode" && pic_mode=default
8640 # Check whether --enable-fast-install was given.
8641 if test "${enable_fast_install+set}" = set; then :
8642 enableval=$enable_fast_install; p=${PACKAGE-default}
8644 yes) enable_fast_install=yes ;;
8645 no) enable_fast_install=no ;;
8647 enable_fast_install=no
8648 # Look at the argument we got. We use all the common list separators.
8649 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8650 for pkg in $enableval; do
8652 if test "X
$pkg" = "X
$p"; then
8653 enable_fast_install=yes
8660 enable_fast_install=yes
8673 # This can be used to rebuild libtool when needed
8674 LIBTOOL_DEPS="$ltmain"
8676 # Always use our own libtool.
8677 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8704 test -z "$LN_S" && LN_S="ln -s"
8719 if test -n "${ZSH_VERSION+set}" ; then
8720 setopt NO_GLOB_SUBST
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
8724 $as_echo_n "checking
for objdir...
" >&6; }
8725 if test "${lt_cv_objdir+set}" = set; then :
8726 $as_echo_n "(cached
) " >&6
8728 rm -f .libs 2>/dev/null
8729 mkdir .libs 2>/dev/null
8730 if test -d .libs; then
8733 # MS-DOS does not allow filenames that begin with a dot.
8736 rmdir .libs 2>/dev/null
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
8739 $as_echo "$lt_cv_objdir" >&6; }
8740 objdir=$lt_cv_objdir
8746 cat >>confdefs.h <<_ACEOF
8747 #define LT_OBJDIR "$lt_cv_objdir/"
8755 # AIX sometimes has problems with the GCC collect2 program. For some
8756 # reason, if we set the COLLECT_NAMES environment variable, the problems
8757 # vanish in a puff of smoke.
8758 if test "X
${COLLECT_NAMES+set}" != Xset; then
8760 export COLLECT_NAMES
8767 can_build_shared=yes
8769 # All known linkers require a `.a' archive for static linking (except MSVC,
8770 # which needs '.lib').
8773 with_gnu_ld="$lt_cv_prog_gnu_ld"
8776 old_CFLAGS="$CFLAGS"
8778 # Set sane defaults for various variables
8779 test -z "$CC" && CC=cc
8780 test -z "$LTCC" && LTCC=$CC
8781 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8782 test -z "$LD" && LD=ld
8783 test -z "$ac_objext" && ac_objext=o
8785 for cc_temp in $compiler""; do
8787 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8788 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8793 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
8796 # Only perform the check for file, if the check method requires it
8797 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8798 case $deplibs_check_method in
8800 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
8802 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
8803 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8804 $as_echo_n "(cached
) " >&6
8808 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8811 lt_save_MAGIC_CMD="$MAGIC_CMD"
8812 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8813 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
8814 for ac_dir in $ac_dummy; do
8816 test -z "$ac_dir" && ac_dir=.
8817 if test -f $ac_dir/${ac_tool_prefix}file; then
8818 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8819 if test -n "$file_magic_test_file"; then
8820 case $deplibs_check_method in
8822 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
8823 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8824 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8825 $EGREP "$file_magic_regex" > /dev/null; then
8830 *** Warning: the command libtool uses to detect shared libraries,
8831 *** $file_magic_cmd, produces output that libtool cannot recognize.
8832 *** The result is that libtool may fail to recognize shared libraries
8833 *** as such. This will affect the creation of libtool libraries that
8834 *** depend on shared libraries, but programs linked with such libtool
8835 *** libraries will work regardless of this problem. Nevertheless, you
8836 *** may want to report the problem to your system manager and/or to
8837 *** bug-libtool@gnu.org
8847 MAGIC_CMD="$lt_save_MAGIC_CMD"
8852 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8853 if test -n "$MAGIC_CMD"; then
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
8855 $as_echo "$MAGIC_CMD" >&6; }
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8858 $as_echo "no
" >&6; }
8865 if test -z "$lt_cv_path_MAGIC_CMD"; then
8866 if test -n "$ac_tool_prefix"; then
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
8868 $as_echo_n "checking
for file...
" >&6; }
8869 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8870 $as_echo_n "(cached
) " >&6
8874 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8877 lt_save_MAGIC_CMD="$MAGIC_CMD"
8878 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8879 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
8880 for ac_dir in $ac_dummy; do
8882 test -z "$ac_dir" && ac_dir=.
8883 if test -f $ac_dir/file; then
8884 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8885 if test -n "$file_magic_test_file"; then
8886 case $deplibs_check_method in
8888 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
8889 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8890 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8891 $EGREP "$file_magic_regex" > /dev/null; then
8896 *** Warning: the command libtool uses to detect shared libraries,
8897 *** $file_magic_cmd, produces output that libtool cannot recognize.
8898 *** The result is that libtool may fail to recognize shared libraries
8899 *** as such. This will affect the creation of libtool libraries that
8900 *** depend on shared libraries, but programs linked with such libtool
8901 *** libraries will work regardless of this problem. Nevertheless, you
8902 *** may want to report the problem to your system manager and/or to
8903 *** bug-libtool@gnu.org
8913 MAGIC_CMD="$lt_save_MAGIC_CMD"
8918 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8919 if test -n "$MAGIC_CMD"; then
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
8921 $as_echo "$MAGIC_CMD" >&6; }
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8924 $as_echo "no
" >&6; }
8937 # Use C for the default configuration in the libtool script
8941 ac_cpp='$CPP $CPPFLAGS'
8942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8947 # Source file extension for C test sources.
8950 # Object file extension for compiled C test sources.
8954 # Code to be used in simple compile tests
8955 lt_simple_compile_test_code="int some_variable
= 0;"
8957 # Code to be used in simple link tests
8958 lt_simple_link_test_code='int main(){return(0);}'
8966 # If no C compiler was specified, use CC.
8969 # If no C compiler flags were specified, use CFLAGS.
8970 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8972 # Allow CC to be a program name with arguments.
8975 # Save the default compiler, since it gets overwritten when the other
8976 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8977 compiler_DEFAULT=$CC
8979 # save warnings/boilerplate of simple test code
8980 ac_outfile=conftest.$ac_objext
8981 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8982 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8983 _lt_compiler_boilerplate=`cat conftest.err`
8986 ac_outfile=conftest.$ac_objext
8987 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8988 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8989 _lt_linker_boilerplate=`cat conftest.err`
8994 ## There is no encapsulation within the following macros, do not change
8995 ## the running order or otherwise move them around unless you know exactly
8996 ## what you are doing...
8997 if test -n "$compiler"; then
8999 lt_prog_compiler_no_builtin_flag=
9001 if test "$GCC" = yes; then
9002 case $cc_basename in
9004 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9006 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
9010 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
9011 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9012 $as_echo_n "(cached
) " >&6
9014 lt_cv_prog_compiler_rtti_exceptions=no
9015 ac_outfile=conftest.$ac_objext
9016 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9017 lt_compiler_flag="-fno-rtti -fno-exceptions"
9018 # Insert the option either (1) after the last *FLAGS variable, or
9019 # (2) before a word containing "conftest.
", or (3) at the end.
9020 # Note that $ac_compile itself does not contain backslashes and begins
9021 # with a dollar sign (not a hyphen), so the echo should work correctly.
9022 # The option is referenced via a variable to avoid confusing sed.
9023 lt_compile=`echo "$ac_compile" | $SED \
9024 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9025 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9026 -e 's:$: $lt_compiler_flag:'`
9027 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9028 (eval "$lt_compile" 2>conftest.err)
9030 cat conftest.err >&5
9031 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9032 if (exit $ac_status) && test -s "$ac_outfile"; then
9033 # The compiler can only warn and ignore the option if not recognized
9034 # So say no if there are warnings other than the usual output.
9035 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9036 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9037 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9038 lt_cv_prog_compiler_rtti_exceptions=yes
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
9045 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9047 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9048 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9060 lt_prog_compiler_wl=
9061 lt_prog_compiler_pic=
9062 lt_prog_compiler_static=
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
9065 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
9067 if test "$GCC" = yes; then
9068 lt_prog_compiler_wl='-Wl,'
9069 lt_prog_compiler_static='-static'
9073 # All AIX code is PIC.
9074 if test "$host_cpu" = ia64; then
9075 # AIX 5 now supports IA64 processor
9076 lt_prog_compiler_static='-Bstatic'
9078 lt_prog_compiler_pic='-fPIC'
9084 # see comment about AmigaOS4 .so support
9085 lt_prog_compiler_pic='-fPIC'
9088 # FIXME: we need at least 68020 code to build shared libraries, but
9089 # adding the `-m68020' flag to GCC prevents building anything better,
9091 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9096 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9097 # PIC is the default for these OSes.
9100 mingw* | cygwin* | pw32* | os2* | cegcc*)
9101 # This hack is so that the source file can tell whether it is being
9102 # built for inclusion in a dll (and should export symbols for example).
9103 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9104 # (--disable-auto-import) libraries
9105 lt_prog_compiler_pic='-DDLL_EXPORT'
9108 darwin* | rhapsody*)
9109 # PIC is the default on this platform
9110 # Common symbols not allowed in MH_DYLIB files
9111 lt_prog_compiler_pic='-fno-common'
9115 # PIC is the default for Haiku.
9116 # The "-static" flag exists, but is broken.
9117 lt_prog_compiler_static=
9121 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9122 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9123 # sets the default TLS model and affects inlining.
9129 lt_prog_compiler_pic='-fPIC'
9135 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9136 # Instead, we relocate shared libraries at runtime.
9140 # Just because we use GCC doesn't mean we suddenly get shared libraries
9141 # on systems that don't support them.
9142 lt_prog_compiler_can_build_shared=no
9147 # QNX uses GNU C++, but need to define -shared option too, otherwise
9149 lt_prog_compiler_pic='-fPIC -shared'
9153 if test -d /usr/nec; then
9154 lt_prog_compiler_pic=-Kconform_pic
9159 lt_prog_compiler_pic='-fPIC'
9163 case $cc_basename in
9164 nvcc*) # Cuda Compiler Driver 2.2
9165 lt_prog_compiler_wl='-Xlinker '
9166 lt_prog_compiler_pic='-Xcompiler -fPIC'
9170 # PORTME Check for flag to pass linker flags through the system compiler.
9173 lt_prog_compiler_wl='-Wl,'
9174 if test "$host_cpu" = ia64; then
9175 # AIX 5 now supports IA64 processor
9176 lt_prog_compiler_static='-Bstatic'
9178 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9182 mingw* | cygwin* | pw32* | os2* | cegcc*)
9183 # This hack is so that the source file can tell whether it is being
9184 # built for inclusion in a dll (and should export symbols for example).
9185 lt_prog_compiler_pic='-DDLL_EXPORT'
9188 hpux9* | hpux10* | hpux11*)
9189 lt_prog_compiler_wl='-Wl,'
9190 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9197 lt_prog_compiler_pic='+Z'
9200 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9201 lt_prog_compiler_static='${wl}-a ${wl}archive'
9204 irix5* | irix6* | nonstopux*)
9205 lt_prog_compiler_wl='-Wl,'
9206 # PIC (with -KPIC) is the default.
9207 lt_prog_compiler_static='-non_shared'
9210 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9211 case $cc_basename in
9212 # old Intel for x86_64 which still supported -KPIC.
9214 lt_prog_compiler_wl='-Wl,'
9215 lt_prog_compiler_pic='-KPIC'
9216 lt_prog_compiler_static='-static'
9218 # icc used to be incompatible with GCC.
9219 # ICC 10 doesn't accept -KPIC any more.
9221 lt_prog_compiler_wl='-Wl,'
9222 lt_prog_compiler_pic='-fPIC'
9223 lt_prog_compiler_static='-static'
9225 # Lahey Fortran 8.1.
9227 lt_prog_compiler_wl='-Wl,'
9228 lt_prog_compiler_pic='--shared'
9229 lt_prog_compiler_static='--static'
9231 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9232 # Portland Group compilers (*not* the Pentium gcc compiler,
9233 # which looks to be a dead project)
9234 lt_prog_compiler_wl='-Wl,'
9235 lt_prog_compiler_pic='-fpic'
9236 lt_prog_compiler_static='-Bstatic'
9239 lt_prog_compiler_wl='-Wl,'
9240 # All Alpha code is PIC.
9241 lt_prog_compiler_static='-non_shared'
9243 xl* | bgxl* | bgf* | mpixl*)
9244 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9245 lt_prog_compiler_wl='-Wl,'
9246 lt_prog_compiler_pic='-qpic'
9247 lt_prog_compiler_static='-qstaticlink'
9250 case `$CC -V 2>&1 | sed 5q` in
9251 *Sun\ F* | *Sun*Fortran*)
9252 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9253 lt_prog_compiler_pic='-KPIC'
9254 lt_prog_compiler_static='-Bstatic'
9255 lt_prog_compiler_wl=''
9259 lt_prog_compiler_pic='-KPIC'
9260 lt_prog_compiler_static='-Bstatic'
9261 lt_prog_compiler_wl='-Wl,'
9269 lt_prog_compiler_pic='-KPIC'
9270 lt_prog_compiler_static='-Bstatic'
9274 # QNX uses GNU C++, but need to define -shared option too, otherwise
9276 lt_prog_compiler_pic='-fPIC -shared'
9279 osf3* | osf4* | osf5*)
9280 lt_prog_compiler_wl='-Wl,'
9281 # All OSF/1 code is PIC.
9282 lt_prog_compiler_static='-non_shared'
9286 lt_prog_compiler_static='-non_shared'
9290 lt_prog_compiler_pic='-KPIC'
9291 lt_prog_compiler_static='-Bstatic'
9292 case $cc_basename in
9294 lt_prog_compiler_wl='-Qoption ld ';;
9296 lt_prog_compiler_wl='-Wl,';;
9301 lt_prog_compiler_wl='-Qoption ld '
9302 lt_prog_compiler_pic='-PIC'
9303 lt_prog_compiler_static='-Bstatic'
9306 sysv4 | sysv4.2uw2* | sysv4.3*)
9307 lt_prog_compiler_wl='-Wl,'
9308 lt_prog_compiler_pic='-KPIC'
9309 lt_prog_compiler_static='-Bstatic'
9313 if test -d /usr/nec ;then
9314 lt_prog_compiler_pic='-Kconform_pic'
9315 lt_prog_compiler_static='-Bstatic'
9319 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9320 lt_prog_compiler_wl='-Wl,'
9321 lt_prog_compiler_pic='-KPIC'
9322 lt_prog_compiler_static='-Bstatic'
9326 lt_prog_compiler_wl='-Wl,'
9327 lt_prog_compiler_can_build_shared=no
9331 lt_prog_compiler_pic='-pic'
9332 lt_prog_compiler_static='-Bstatic'
9336 lt_prog_compiler_can_build_shared=no
9342 # For platforms which do not support PIC, -DPIC is meaningless:
9344 lt_prog_compiler_pic=
9347 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
9351 $as_echo "$lt_prog_compiler_pic" >&6; }
9359 # Check to make sure the PIC flag actually works.
9361 if test -n "$lt_prog_compiler_pic"; then
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
9363 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
9364 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9365 $as_echo_n "(cached
) " >&6
9367 lt_cv_prog_compiler_pic_works=no
9368 ac_outfile=conftest.$ac_objext
9369 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9370 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9371 # Insert the option either (1) after the last *FLAGS variable, or
9372 # (2) before a word containing "conftest.
", or (3) at the end.
9373 # Note that $ac_compile itself does not contain backslashes and begins
9374 # with a dollar sign (not a hyphen), so the echo should work correctly.
9375 # The option is referenced via a variable to avoid confusing sed.
9376 lt_compile=`echo "$ac_compile" | $SED \
9377 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9378 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9379 -e 's:$: $lt_compiler_flag:'`
9380 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9381 (eval "$lt_compile" 2>conftest.err)
9383 cat conftest.err >&5
9384 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9385 if (exit $ac_status) && test -s "$ac_outfile"; then
9386 # The compiler can only warn and ignore the option if not recognized
9387 # So say no if there are warnings other than the usual output.
9388 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9389 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9390 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9391 lt_cv_prog_compiler_pic_works=yes
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
9398 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9400 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9401 case $lt_prog_compiler_pic in
9403 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9406 lt_prog_compiler_pic=
9407 lt_prog_compiler_can_build_shared=no
9418 # Check to make sure the static flag actually works.
9420 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
9422 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
9423 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9424 $as_echo_n "(cached
) " >&6
9426 lt_cv_prog_compiler_static_works=no
9427 save_LDFLAGS="$LDFLAGS"
9428 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9429 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9430 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9431 # The linker can only warn and ignore the option if not recognized
9432 # So say no if there are warnings
9433 if test -s conftest.err; then
9434 # Append any errors to the config.log.
9435 cat conftest.err 1>&5
9436 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9437 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9438 if diff conftest.exp conftest.er2 >/dev/null; then
9439 lt_cv_prog_compiler_static_works=yes
9442 lt_cv_prog_compiler_static_works=yes
9446 LDFLAGS="$save_LDFLAGS"
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
9450 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9452 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9455 lt_prog_compiler_static=
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
9465 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
9466 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9467 $as_echo_n "(cached
) " >&6
9469 lt_cv_prog_compiler_c_o=no
9470 $RM -r conftest 2>/dev/null
9474 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9476 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
9477 # Insert the option either (1) after the last *FLAGS variable, or
9478 # (2) before a word containing "conftest.
", or (3) at the end.
9479 # Note that $ac_compile itself does not contain backslashes and begins
9480 # with a dollar sign (not a hyphen), so the echo should work correctly.
9481 lt_compile=`echo "$ac_compile" | $SED \
9482 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9483 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9484 -e 's:$: $lt_compiler_flag:'`
9485 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9486 (eval "$lt_compile" 2>out/conftest.err)
9488 cat out/conftest.err >&5
9489 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9490 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9492 # The compiler can only warn and ignore the option if not recognized
9493 # So say no if there are warnings
9494 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9495 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9496 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9497 lt_cv_prog_compiler_c_o=yes
9502 # SGI C++ compiler will create directory out/ii_files/ for
9503 # template instantiation
9504 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9505 $RM out/* && rmdir out
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
9512 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
9520 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
9521 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9522 $as_echo_n "(cached
) " >&6
9524 lt_cv_prog_compiler_c_o=no
9525 $RM -r conftest 2>/dev/null
9529 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9531 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
9532 # Insert the option either (1) after the last *FLAGS variable, or
9533 # (2) before a word containing "conftest.
", or (3) at the end.
9534 # Note that $ac_compile itself does not contain backslashes and begins
9535 # with a dollar sign (not a hyphen), so the echo should work correctly.
9536 lt_compile=`echo "$ac_compile" | $SED \
9537 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9538 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9539 -e 's:$: $lt_compiler_flag:'`
9540 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9541 (eval "$lt_compile" 2>out/conftest.err)
9543 cat out/conftest.err >&5
9544 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9545 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9547 # The compiler can only warn and ignore the option if not recognized
9548 # So say no if there are warnings
9549 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9550 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9551 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9552 lt_cv_prog_compiler_c_o=yes
9557 # SGI C++ compiler will create directory out/ii_files/ for
9558 # template instantiation
9559 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9560 $RM out/* && rmdir out
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
9567 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9572 hard_links="nottested
"
9573 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9574 # do not overwrite the value of need_locks provided by the user
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
9576 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
9579 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9581 ln conftest.a conftest.b 2>&5 || hard_links=no
9582 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
9584 $as_echo "$hard_links" >&6; }
9585 if test "$hard_links" = no; then
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
9587 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
9600 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
9603 allow_undefined_flag=
9604 always_export_symbols=no
9606 archive_expsym_cmds=
9607 compiler_needs_object=no
9608 enable_shared_with_static_runtimes=no
9609 export_dynamic_flag_spec=
9610 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9611 hardcode_automatic=no
9613 hardcode_direct_absolute=no
9614 hardcode_libdir_flag_spec=
9615 hardcode_libdir_flag_spec_ld=
9616 hardcode_libdir_separator=
9618 hardcode_shlibpath_var=unsupported
9620 link_all_deplibs=unknown
9623 old_archive_from_new_cmds=
9624 old_archive_from_expsyms_cmds=
9625 thread_safe_flag_spec=
9626 whole_archive_flag_spec=
9627 # include_expsyms should be a list of space-separated symbols to be *always*
9628 # included in the symbol list
9630 # exclude_expsyms can be an extended regexp of symbols to exclude
9631 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9632 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9633 # as well as any symbol that contains `d'.
9634 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9635 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9636 # platforms (ab)use it in PIC code, but their linkers get confused if
9637 # the symbol is explicitly referenced. Since portable code cannot
9638 # rely on this symbol name, it's probably fine to never include it in
9639 # preloaded symbol tables.
9640 # Exclude shared library initialization/finalization symbols.
9641 extract_expsyms_cmds=
9644 cygwin* | mingw* | pw32* | cegcc*)
9645 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9646 # When not using gcc, we currently assume that we are using
9647 # Microsoft Visual C++.
9648 if test "$GCC" != yes; then
9653 # we just hope/assume this is gcc and not c89 (= MSVC++)
9663 # On some targets, GNU ld is compatible enough with the native linker
9664 # that we're better off using the native interface for both.
9665 lt_use_gnu_ld_interface=no
9666 if test "$with_gnu_ld" = yes; then
9669 # The AIX port of GNU ld has always aspired to compatibility
9670 # with the native linker. However, as the warning in the GNU ld
9671 # block says, versions before 2.19.5* couldn't really create working
9672 # shared libraries, regardless of the interface used.
9673 case `$LD -v 2>&1` in
9674 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9675 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9676 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9678 lt_use_gnu_ld_interface=yes
9683 lt_use_gnu_ld_interface=yes
9688 if test "$lt_use_gnu_ld_interface" = yes; then
9689 # If archive_cmds runs LD, not CC, wlarc should be empty
9692 # Set some defaults for GNU ld with shared library support. These
9693 # are reset later if shared libraries are not supported. Putting them
9694 # here allows them to be overridden if necessary.
9695 runpath_var=LD_RUN_PATH
9696 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9697 export_dynamic_flag_spec='${wl}--export-dynamic'
9698 # ancient GNU ld didn't support --whole-archive et. al.
9699 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9700 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9702 whole_archive_flag_spec=
9704 supports_anon_versioning=no
9705 case `$LD -v 2>&1` in
9706 *GNU\ gold*) supports_anon_versioning=yes ;;
9707 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9708 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9709 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9710 *\ 2.11.*) ;; # other 2.11 versions
9711 *) supports_anon_versioning=yes ;;
9714 # See if GNU ld supports shared libraries.
9717 # On AIX/PPC, the GNU linker is very broken
9718 if test "$host_cpu" != ia64; then
9722 *** Warning: the GNU linker, at least up to release 2.19, is reported
9723 *** to be unable to reliably create shared libraries on AIX.
9724 *** Therefore, libtool is disabling shared libraries support. If you
9725 *** really care for shared libraries, you may want to install binutils
9726 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9727 *** You will then need to restart the configuration process.
9736 # see comment about AmigaOS4 .so support
9737 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9738 archive_expsym_cmds=''
9741 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)'
9742 hardcode_libdir_flag_spec
='-L$libdir'
9743 hardcode_minus_L
=yes
9749 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9750 allow_undefined_flag
=unsupported
9751 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9752 # support --undefined. This deserves some investigation. FIXME
9753 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9759 cygwin
* | mingw
* | pw32
* | cegcc
*)
9760 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9761 # as there is no search path for DLLs.
9762 hardcode_libdir_flag_spec
='-L$libdir'
9763 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9764 allow_undefined_flag
=unsupported
9765 always_export_symbols
=no
9766 enable_shared_with_static_runtimes
=yes
9767 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9769 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9770 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9771 # If the export-symbols file already is a .def file (1st line
9772 # is EXPORTS), use it as is; otherwise, prepend...
9773 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9774 cp $export_symbols $output_objdir/$soname.def;
9776 echo EXPORTS > $output_objdir/$soname.def;
9777 cat $export_symbols >> $output_objdir/$soname.def;
9779 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9786 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9787 link_all_deplibs
=yes
9792 hardcode_shlibpath_var
=no
9793 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9794 export_dynamic_flag_spec
='${wl}-E'
9795 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9796 # Instead, shared libraries are loaded at an image base (0x10000000 by
9797 # default) and relocated if they conflict, which is a slow very memory
9798 # consuming and fragmenting process. To avoid this, we pick a random,
9799 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9800 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9801 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9802 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'
9805 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9807 if test "$host_os" = linux-dietlibc
; then
9808 case $cc_basename in
9809 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9812 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9813 && test "$tmp_diet" = no
9815 tmp_addflag
=' $pic_flag'
9816 tmp_sharedflag
='-shared'
9817 case $cc_basename,$host_cpu in
9818 pgcc
*) # Portland Group C compiler
9819 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'
9820 tmp_addflag
=' $pic_flag'
9822 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9823 # Portland Group f77 and f90 compilers
9824 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'
9825 tmp_addflag
=' $pic_flag -Mnomain' ;;
9826 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9827 tmp_addflag
=' -i_dynamic' ;;
9828 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9829 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9830 ifc
* | ifort
*) # Intel Fortran compiler
9831 tmp_addflag
=' -nofor_main' ;;
9832 lf95
*) # Lahey Fortran 8.1
9833 whole_archive_flag_spec
=
9834 tmp_sharedflag
='--shared' ;;
9835 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9836 tmp_sharedflag
='-qmkshrobj'
9838 nvcc
*) # Cuda Compiler Driver 2.2
9839 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'
9840 compiler_needs_object
=yes
9843 case `$CC -V 2>&1 | sed 5q` in
9844 *Sun\ C
*) # Sun C 5.9
9845 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'
9846 compiler_needs_object
=yes
9847 tmp_sharedflag
='-G' ;;
9848 *Sun\ F
*) # Sun Fortran 8.3
9849 tmp_sharedflag
='-G' ;;
9851 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9853 if test "x$supports_anon_versioning" = xyes
; then
9854 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9855 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9856 echo "local: *; };" >> $output_objdir/$libname.ver~
9857 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9860 case $cc_basename in
9861 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9862 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9863 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9864 hardcode_libdir_flag_spec
=
9865 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9866 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9867 if test "x$supports_anon_versioning" = xyes
; then
9868 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9869 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9870 echo "local: *; };" >> $output_objdir/$libname.ver~
9871 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9881 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9882 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9885 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9886 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9891 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9895 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9896 *** create shared libraries on Solaris systems. Therefore, libtool
9897 *** is disabling shared libraries support. We urge you to upgrade GNU
9898 *** binutils to release 2.9.1 or newer. Another option is to modify
9899 *** your PATH or compiler configuration so that the native linker is
9900 *** used, and then restart.
9903 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9904 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9905 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9911 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9912 case `$LD -v 2>&1` in
9913 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9917 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9918 *** reliably create shared libraries on SCO systems. Therefore, libtool
9919 *** is disabling shared libraries support. We urge you to upgrade GNU
9920 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9921 *** your PATH or compiler configuration so that the native linker is
9922 *** used, and then restart.
9927 # For security reasons, it is highly recommended that you always
9928 # use absolute paths for naming shared libraries, and exclude the
9929 # DT_RUNPATH tag from executables and libraries. But doing so
9930 # requires that you compile everything twice, which is a pain.
9931 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9932 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9933 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9934 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9943 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9946 hardcode_shlibpath_var
=no
9950 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9951 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9952 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9959 if test "$ld_shlibs" = no
; then
9961 hardcode_libdir_flag_spec
=
9962 export_dynamic_flag_spec
=
9963 whole_archive_flag_spec
=
9966 # PORTME fill in a description of your system's linker (not GNU ld)
9969 allow_undefined_flag
=unsupported
9970 always_export_symbols
=yes
9971 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'
9972 # Note: this linker hardcodes the directories in LIBPATH if there
9973 # are no directories specified by -L.
9974 hardcode_minus_L
=yes
9975 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9976 # Neither direct hardcoding nor static linking is supported with a
9978 hardcode_direct
=unsupported
9983 if test "$host_cpu" = ia64
; then
9984 # On IA64, the linker does run time linking by default, so we don't
9985 # have to do anything special.
9986 aix_use_runtimelinking
=no
9987 exp_sym_flag
='-Bexport'
9990 # If we're using GNU nm, then we don't want the "-C" option.
9991 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9992 # Also, AIX nm treats weak defined symbols like other global
9993 # defined symbols, whereas GNU nm marks them as "W".
9994 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9995 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'
9997 export_symbols_cmds
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9999 aix_use_runtimelinking
=no
10001 # Test if we are trying to use run time linking or normal
10002 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10003 # need to do runtime linking.
10004 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
10005 for ld_flag
in $LDFLAGS; do
10006 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
10007 aix_use_runtimelinking
=yes
10014 exp_sym_flag
='-bexport'
10015 no_entry_flag
='-bnoentry'
10018 # When large executables or shared objects are built, AIX ld can
10019 # have problems creating the table of contents. If linking a library
10020 # or program results in "error TOC overflow" add -mminimal-toc to
10021 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10022 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10025 hardcode_direct
=yes
10026 hardcode_direct_absolute
=yes
10027 hardcode_libdir_separator
=':'
10028 link_all_deplibs
=yes
10029 file_list_spec
='${wl}-f,'
10031 if test "$GCC" = yes; then
10032 case $host_os in aix4.
[012]|aix4.
[012].
*)
10033 # We only want to do this on AIX 4.2 and lower, the check
10034 # below for broken collect2 doesn't work under 4.3+
10035 collect2name
=`${CC} -print-prog-name=collect2`
10036 if test -f "$collect2name" &&
10037 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
10039 # We have reworked collect2
10042 # We have old collect2
10043 hardcode_direct
=unsupported
10044 # It fails to find uninstalled libraries when the uninstalled
10045 # path is not listed in the libpath. Setting hardcode_minus_L
10046 # to unsupported forces relinking
10047 hardcode_minus_L
=yes
10048 hardcode_libdir_flag_spec
='-L$libdir'
10049 hardcode_libdir_separator
=
10053 shared_flag
='-shared'
10054 if test "$aix_use_runtimelinking" = yes; then
10055 shared_flag
="$shared_flag "'${wl}-G'
10059 if test "$host_cpu" = ia64
; then
10060 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10061 # chokes on -Wl,-G. The following line is correct:
10064 if test "$aix_use_runtimelinking" = yes; then
10065 shared_flag
='${wl}-G'
10067 shared_flag
='${wl}-bM:SRE'
10072 export_dynamic_flag_spec
='${wl}-bexpall'
10073 # It seems that -bexpall does not export symbols beginning with
10074 # underscore (_), so it is better to generate a list of symbols to export.
10075 always_export_symbols
=yes
10076 if test "$aix_use_runtimelinking" = yes; then
10077 # Warning - without using the other runtime loading flags (-brtl),
10078 # -berok will link without error, but may produce a broken library.
10079 allow_undefined_flag
='-berok'
10080 # Determine the default libpath from the value encoded in an
10081 # empty executable.
10082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10083 /* end confdefs.h. */
10093 if ac_fn_c_try_link
"$LINENO"; then :
10095 lt_aix_libpath_sed
='
10096 /Import File Strings/,/^$/ {
10102 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10103 # Check for a 64-bit object if we didn't find anything.
10104 if test -z "$aix_libpath"; then
10105 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10108 rm -f core conftest.err conftest.
$ac_objext \
10109 conftest
$ac_exeext conftest.
$ac_ext
10110 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
10112 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
10113 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"
10115 if test "$host_cpu" = ia64
; then
10116 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
10117 allow_undefined_flag
="-z nodefs"
10118 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"
10120 # Determine the default libpath from the value encoded in an
10121 # empty executable.
10122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10123 /* end confdefs.h. */
10133 if ac_fn_c_try_link
"$LINENO"; then :
10135 lt_aix_libpath_sed
='
10136 /Import File Strings/,/^$/ {
10142 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10143 # Check for a 64-bit object if we didn't find anything.
10144 if test -z "$aix_libpath"; then
10145 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10148 rm -f core conftest.err conftest.
$ac_objext \
10149 conftest
$ac_exeext conftest.
$ac_ext
10150 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
10152 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
10153 # Warning - without using the other run time loading flags,
10154 # -berok will link without error, but may produce a broken library.
10155 no_undefined_flag
=' ${wl}-bernotok'
10156 allow_undefined_flag
=' ${wl}-berok'
10157 if test "$with_gnu_ld" = yes; then
10158 # We only use this code for GNU lds that support --whole-archive.
10159 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10161 # Exported symbols can be pulled into shared objects from archives
10162 whole_archive_flag_spec
='$convenience'
10164 archive_cmds_need_lc
=yes
10165 # This is similar to how AIX traditionally builds its shared libraries.
10166 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'
10174 # see comment about AmigaOS4 .so support
10175 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10176 archive_expsym_cmds
=''
10179 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)'
10180 hardcode_libdir_flag_spec
='-L$libdir'
10181 hardcode_minus_L
=yes
10187 export_dynamic_flag_spec
=-rdynamic
10190 cygwin
* | mingw
* | pw32
* | cegcc
*)
10191 # When not using gcc, we currently assume that we are using
10192 # Microsoft Visual C++.
10193 # hardcode_libdir_flag_spec is actually meaningless, as there is
10194 # no search path for DLLs.
10195 hardcode_libdir_flag_spec
=' '
10196 allow_undefined_flag
=unsupported
10197 # Tell ltmain to make .lib files, not .a files.
10199 # Tell ltmain to make .dll files, not .so files.
10201 # FIXME: Setting linknames here is a bad hack.
10202 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10203 # The linker will automatically build a .lib file if we build a DLL.
10204 old_archive_from_new_cmds
='true'
10205 # FIXME: Should let the user specify the lib program.
10206 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
10207 fix_srcfile_path
='`cygpath -w "$srcfile"`'
10208 enable_shared_with_static_runtimes
=yes
10211 darwin
* | rhapsody
*)
10214 archive_cmds_need_lc
=no
10216 hardcode_automatic
=yes
10217 hardcode_shlibpath_var
=unsupported
10218 if test "$lt_cv_ld_force_load" = "yes"; then
10219 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\"`'
10221 whole_archive_flag_spec
=''
10223 link_all_deplibs
=yes
10224 allow_undefined_flag
="$_lt_dar_allow_undefined"
10225 case $cc_basename in
10226 ifort
*) _lt_dar_can_shared
=yes ;;
10227 *) _lt_dar_can_shared
=$GCC ;;
10229 if test "$_lt_dar_can_shared" = "yes"; then
10230 output_verbose_link_cmd
=func_echo_all
10231 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10232 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10233 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}"
10234 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}"
10243 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10244 hardcode_libdir_flag_spec
='-L$libdir'
10245 hardcode_shlibpath_var
=no
10248 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10249 # support. Future versions do this automatically, but an explicit c++rt0.o
10250 # does not break anything, and helps significantly (at the cost of a little
10253 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10254 hardcode_libdir_flag_spec
='-R$libdir'
10255 hardcode_direct
=yes
10256 hardcode_shlibpath_var
=no
10259 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10261 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10262 hardcode_direct
=yes
10263 hardcode_minus_L
=yes
10264 hardcode_shlibpath_var
=no
10267 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10268 freebsd
* | dragonfly
*)
10269 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10270 hardcode_libdir_flag_spec
='-R$libdir'
10271 hardcode_direct
=yes
10272 hardcode_shlibpath_var
=no
10276 if test "$GCC" = yes; then
10277 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'
10279 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'
10281 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10282 hardcode_libdir_separator
=:
10283 hardcode_direct
=yes
10285 # hardcode_minus_L: Not really in the search PATH,
10286 # but as the default location of the library.
10287 hardcode_minus_L
=yes
10288 export_dynamic_flag_spec
='${wl}-E'
10292 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
10293 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10295 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10297 if test "$with_gnu_ld" = no
; then
10298 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10299 hardcode_libdir_flag_spec_ld
='+b $libdir'
10300 hardcode_libdir_separator
=:
10301 hardcode_direct
=yes
10302 hardcode_direct_absolute
=yes
10303 export_dynamic_flag_spec
='${wl}-E'
10304 # hardcode_minus_L: Not really in the search PATH,
10305 # but as the default location of the library.
10306 hardcode_minus_L
=yes
10311 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
10314 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10317 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10320 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10326 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10329 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10333 # Older versions of the 11.00 compiler do not understand -b yet
10334 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10336 $as_echo_n "checking if $CC understands -b... " >&6; }
10337 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10338 $as_echo_n "(cached) " >&6
10340 lt_cv_prog_compiler__b
=no
10341 save_LDFLAGS
="$LDFLAGS"
10342 LDFLAGS
="$LDFLAGS -b"
10343 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
10344 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
10345 # The linker can only warn and ignore the option if not recognized
10346 # So say no if there are warnings
10347 if test -s conftest.err
; then
10348 # Append any errors to the config.log.
10349 cat conftest.err
1>&5
10350 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
10351 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
10352 if diff conftest.exp conftest.er2
>/dev
/null
; then
10353 lt_cv_prog_compiler__b
=yes
10356 lt_cv_prog_compiler__b
=yes
10360 LDFLAGS
="$save_LDFLAGS"
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10364 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10366 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
10367 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10369 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10375 if test "$with_gnu_ld" = no
; then
10376 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10377 hardcode_libdir_separator
=:
10382 hardcode_shlibpath_var
=no
10385 hardcode_direct
=yes
10386 hardcode_direct_absolute
=yes
10387 export_dynamic_flag_spec
='${wl}-E'
10389 # hardcode_minus_L: Not really in the search PATH,
10390 # but as the default location of the library.
10391 hardcode_minus_L
=yes
10397 irix5
* | irix6
* | nonstopux
*)
10398 if test "$GCC" = yes; then
10399 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'
10400 # Try to use the -exported_symbol ld option, if it does not
10401 # work, assume that -exports_file does not work either and
10402 # implicitly export all symbols.
10403 save_LDFLAGS
="$LDFLAGS"
10404 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10406 /* end confdefs.h. */
10409 if ac_fn_c_try_link
"$LINENO"; then :
10410 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'
10413 rm -f core conftest.err conftest.
$ac_objext \
10414 conftest
$ac_exeext conftest.
$ac_ext
10415 LDFLAGS
="$save_LDFLAGS"
10417 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'
10418 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'
10420 archive_cmds_need_lc
='no'
10421 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10422 hardcode_libdir_separator
=:
10424 link_all_deplibs
=yes
10428 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10429 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10431 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10433 hardcode_libdir_flag_spec
='-R$libdir'
10434 hardcode_direct
=yes
10435 hardcode_shlibpath_var
=no
10439 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10440 hardcode_direct
=yes
10441 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10442 hardcode_libdir_separator
=:
10443 hardcode_shlibpath_var
=no
10450 if test -f /usr
/libexec
/ld.so
; then
10451 hardcode_direct
=yes
10452 hardcode_shlibpath_var
=no
10453 hardcode_direct_absolute
=yes
10454 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10455 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10456 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10457 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10458 export_dynamic_flag_spec
='${wl}-E'
10461 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
10462 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10463 hardcode_libdir_flag_spec
='-R$libdir'
10466 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10467 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10477 hardcode_libdir_flag_spec
='-L$libdir'
10478 hardcode_minus_L
=yes
10479 allow_undefined_flag
=unsupported
10480 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'
10481 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10485 if test "$GCC" = yes; then
10486 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10487 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'
10489 allow_undefined_flag
=' -expect_unresolved \*'
10490 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'
10492 archive_cmds_need_lc
='no'
10493 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10494 hardcode_libdir_separator
=:
10497 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
10498 if test "$GCC" = yes; then
10499 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10500 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'
10501 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10503 allow_undefined_flag
=' -expect_unresolved \*'
10504 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'
10505 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~
10506 $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'
10508 # Both c and cxx compiler support -rpath directly
10509 hardcode_libdir_flag_spec
='-rpath $libdir'
10511 archive_cmds_need_lc
='no'
10512 hardcode_libdir_separator
=:
10516 no_undefined_flag
=' -z defs'
10517 if test "$GCC" = yes; then
10519 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10520 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10521 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10523 case `$CC -V 2>&1` in
10526 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10527 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10528 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10532 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10533 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10534 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10538 hardcode_libdir_flag_spec
='-R$libdir'
10539 hardcode_shlibpath_var
=no
10541 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10543 # The compiler driver will combine and reorder linker options,
10544 # but understands `-z linker_flag'. GCC discards it without `$wl',
10545 # but is careful enough not to reorder.
10546 # Supported since Solaris 2.6 (maybe 2.5.1?)
10547 if test "$GCC" = yes; then
10548 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10550 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10554 link_all_deplibs
=yes
10558 if test "x$host_vendor" = xsequent
; then
10559 # Use $CC to link under sequent, because it throws in some extra .o
10560 # files that make .init and .fini sections work.
10561 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10563 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10565 hardcode_libdir_flag_spec
='-L$libdir'
10566 hardcode_direct
=yes
10567 hardcode_minus_L
=yes
10568 hardcode_shlibpath_var
=no
10572 case $host_vendor in
10574 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10575 hardcode_direct
=yes # is this really true???
10578 ## LD is ld it makes a PLAMLIB
10579 ## CC just makes a GrossModule.
10580 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10581 reload_cmds
='$CC -r -o $output$reload_objs'
10585 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10586 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10589 runpath_var
='LD_RUN_PATH'
10590 hardcode_shlibpath_var
=no
10594 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10595 hardcode_shlibpath_var
=no
10596 export_dynamic_flag_spec
='-Bexport'
10600 if test -d /usr
/nec
; then
10601 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10602 hardcode_shlibpath_var
=no
10603 runpath_var
=LD_RUN_PATH
10604 hardcode_runpath_var
=yes
10609 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10610 no_undefined_flag
='${wl}-z,text'
10611 archive_cmds_need_lc
=no
10612 hardcode_shlibpath_var
=no
10613 runpath_var
='LD_RUN_PATH'
10615 if test "$GCC" = yes; then
10616 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10617 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10619 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10620 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10624 sysv5
* | sco3.2v5
* | sco5v6
*)
10625 # Note: We can NOT use -z defs as we might desire, because we do not
10626 # link with -lc, and that would cause any symbols used from libc to
10627 # always be unresolved, which means just about no library would
10628 # ever link correctly. If we're not using GNU ld we use -z text
10629 # though, which does catch some bad symbols but isn't as heavy-handed
10631 no_undefined_flag
='${wl}-z,text'
10632 allow_undefined_flag
='${wl}-z,nodefs'
10633 archive_cmds_need_lc
=no
10634 hardcode_shlibpath_var
=no
10635 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10636 hardcode_libdir_separator
=':'
10637 link_all_deplibs
=yes
10638 export_dynamic_flag_spec
='${wl}-Bexport'
10639 runpath_var
='LD_RUN_PATH'
10641 if test "$GCC" = yes; then
10642 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10643 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10645 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10646 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10651 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10652 hardcode_libdir_flag_spec
='-L$libdir'
10653 hardcode_shlibpath_var
=no
10661 if test x
$host_vendor = xsni
; then
10663 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10664 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10671 $as_echo "$ld_shlibs" >&6; }
10672 test "$ld_shlibs" = no
&& can_build_shared
=no
10674 with_gnu_ld
=$with_gnu_ld
10691 # Do we need to explicitly link libc?
10693 case "x$archive_cmds_need_lc" in
10695 # Assume -lc should be added
10696 archive_cmds_need_lc
=yes
10698 if test "$enable_shared" = yes && test "$GCC" = yes; then
10699 case $archive_cmds in
10701 # FIXME: we may have to deal with multi-command sequences.
10704 # Test whether the compiler implicitly links with -lc since on some
10705 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10706 # to ld, don't add -lc before -lgcc.
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10708 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10709 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10710 $as_echo_n "(cached) " >&6
10713 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10715 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10716 (eval $ac_compile) 2>&5
10718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10719 test $ac_status = 0; } 2>conftest.err
; then
10722 libobjs
=conftest.
$ac_objext
10724 wl
=$lt_prog_compiler_wl
10725 pic_flag
=$lt_prog_compiler_pic
10731 lt_save_allow_undefined_flag
=$allow_undefined_flag
10732 allow_undefined_flag
=
10733 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10734 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10737 test $ac_status = 0; }
10739 lt_cv_archive_cmds_need_lc
=no
10741 lt_cv_archive_cmds_need_lc
=yes
10743 allow_undefined_flag
=$lt_save_allow_undefined_flag
10745 cat conftest.err
1>&5
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10751 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10752 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10916 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10918 if test "$GCC" = yes; then
10920 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10921 *) lt_awk_arg
="/^libraries:/" ;;
10924 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10925 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10927 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10928 case $lt_search_path_spec in
10930 # if the path contains ";" then we assume it to be the separator
10931 # otherwise default to the standard path separator (i.e. ":") - it is
10932 # assumed that no part of a normal pathname contains ";" but that should
10933 # okay in the real world where ";" in dirpaths is itself problematic.
10934 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10937 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10940 # Ok, now we have the path, separated by spaces, we can step through it
10941 # and add multilib dir if necessary.
10942 lt_tmp_lt_search_path_spec
=
10943 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10944 for lt_sys_path
in $lt_search_path_spec; do
10945 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10946 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10948 test -d "$lt_sys_path" && \
10949 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10952 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10953 BEGIN {RS=" "; FS="/|\n";} {
10956 for (lt_i = NF; lt_i > 0; lt_i--) {
10957 if ($lt_i != "" && $lt_i != ".") {
10958 if ($lt_i == "..") {
10961 if (lt_count == 0) {
10962 lt_foo="/" $lt_i lt_foo;
10969 if (lt_foo != "") { lt_freq[lt_foo]++; }
10970 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10972 # AWK program above erroneously prepends '/' to C:/dos/paths
10975 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10976 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10978 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10980 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10982 library_names_spec
=
10983 libname_spec
='lib$name'
10987 postuninstall_cmds
=
10991 shlibpath_overrides_runpath
=unknown
10993 dynamic_linker
="$host_os ld.so"
10994 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10995 need_lib_prefix
=unknown
10996 hardcode_into_libs
=no
10998 # when you set need_version to no, make sure it does not cause -set_version
10999 # flags to be left without arguments
11000 need_version
=unknown
11005 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
11006 shlibpath_var
=LIBPATH
11008 # AIX 3 has no versioning support, so we append a major version to the name.
11009 soname_spec
='${libname}${release}${shared_ext}$major'
11016 hardcode_into_libs
=yes
11017 if test "$host_cpu" = ia64
; then
11018 # AIX 5 supports IA64
11019 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11020 shlibpath_var
=LD_LIBRARY_PATH
11022 # With GCC up to 2.95.x, collect2 would create an import file
11023 # for dependence libraries. The import file would start with
11024 # the line `#! .'. This would cause the generated library to
11025 # depend on `.', always an invalid library. This was fixed in
11026 # development snapshots of GCC prior to 3.0.
11028 aix4 | aix4.
[01] | aix4.
[01].
*)
11029 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11031 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
11034 can_build_shared
=no
11038 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11039 # soname into executable. Probably we can add versioning support to
11040 # collect2, so additional links can be useful in future.
11041 if test "$aix_use_runtimelinking" = yes; then
11042 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11043 # instead of lib<name>.a to let people know that these are not
11044 # typical AIX shared libraries.
11045 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11047 # We preserve .a as extension for shared libraries through AIX4.2
11048 # and later when we are not doing run time linking.
11049 library_names_spec
='${libname}${release}.a $libname.a'
11050 soname_spec
='${libname}${release}${shared_ext}$major'
11052 shlibpath_var
=LIBPATH
11059 # Since July 2007 AmigaOS4 officially supports .so libraries.
11060 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11061 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11064 library_names_spec
='$libname.ixlibrary $libname.a'
11065 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11066 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'
11072 library_names_spec
='${libname}${shared_ext}'
11073 dynamic_linker
="$host_os ld.so"
11074 shlibpath_var
=LIBRARY_PATH
11080 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11081 soname_spec
='${libname}${release}${shared_ext}$major'
11082 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
11083 shlibpath_var
=LD_LIBRARY_PATH
11084 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11085 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
11086 # the default ld.so.conf also contains /usr/contrib/lib and
11087 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11088 # libtool to hard-code these into programs
11091 cygwin
* | mingw
* | pw32
* | cegcc
*)
11092 version_type
=windows
11097 case $GCC,$host_os in
11098 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
11099 library_names_spec
='$libname.dll.a'
11100 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11101 postinstall_cmds
='base_file=`basename \${file}`~
11102 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11103 dldir=$destdir/`dirname \$dlpath`~
11104 test -d \$dldir || mkdir -p \$dldir~
11105 $install_prog $dir/$dlname \$dldir/$dlname~
11106 chmod a+x \$dldir/$dlname~
11107 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11108 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11110 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11111 dlpath=$dir/\$dldll~
11113 shlibpath_overrides_runpath
=yes
11117 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11118 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11120 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
11123 # MinGW DLLs use traditional 'lib' prefix
11124 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11127 # pw32 DLLs use 'pw' prefix rather than 'lib'
11128 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11134 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11137 dynamic_linker
='Win32 ld.exe'
11138 # FIXME: first we should search . and the directory the executable is in
11142 darwin
* | rhapsody
*)
11143 dynamic_linker
="$host_os dyld"
11144 version_type
=darwin
11147 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11148 soname_spec
='${libname}${release}${major}$shared_ext'
11149 shlibpath_overrides_runpath
=yes
11150 shlibpath_var
=DYLD_LIBRARY_PATH
11151 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
11153 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
11154 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
11161 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11162 soname_spec
='${libname}${release}${shared_ext}$major'
11163 shlibpath_var
=LD_LIBRARY_PATH
11166 freebsd
* | dragonfly
*)
11167 # DragonFly does not have aout. When/if they implement a new
11168 # versioning mechanism, adjust this.
11169 if test -x /usr
/bin
/objformat
; then
11170 objformat
=`/usr/bin/objformat`
11173 freebsd
[23].
*) objformat
=aout
;;
11174 *) objformat
=elf
;;
11177 version_type
=freebsd-
$objformat
11178 case $version_type in
11180 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11185 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11189 shlibpath_var
=LD_LIBRARY_PATH
11192 shlibpath_overrides_runpath
=yes
11194 freebsd3.
[01]* | freebsdelf3.
[01]*)
11195 shlibpath_overrides_runpath
=yes
11196 hardcode_into_libs
=yes
11198 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
11199 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
11200 shlibpath_overrides_runpath
=no
11201 hardcode_into_libs
=yes
11203 *) # from 4.6 on, and DragonFly
11204 shlibpath_overrides_runpath
=yes
11205 hardcode_into_libs
=yes
11214 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11215 soname_spec
='${libname}${release}${shared_ext}$major'
11216 shlibpath_var
=LD_LIBRARY_PATH
11217 hardcode_into_libs
=yes
11224 dynamic_linker
="$host_os runtime_loader"
11225 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11226 soname_spec
='${libname}${release}${shared_ext}$major'
11227 shlibpath_var
=LIBRARY_PATH
11228 shlibpath_overrides_runpath
=yes
11229 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11230 hardcode_into_libs
=yes
11233 hpux9
* | hpux10
* | hpux11
*)
11234 # Give a soname corresponding to the major version so that dld.sl refuses to
11235 # link against other versions.
11242 hardcode_into_libs
=yes
11243 dynamic_linker
="$host_os dld.so"
11244 shlibpath_var
=LD_LIBRARY_PATH
11245 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11246 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11247 soname_spec
='${libname}${release}${shared_ext}$major'
11248 if test "X$HPUX_IA64_MODE" = X32
; then
11249 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11251 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
11253 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11257 hardcode_into_libs
=yes
11258 dynamic_linker
="$host_os dld.sl"
11259 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
11260 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11261 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11262 soname_spec
='${libname}${release}${shared_ext}$major'
11263 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11264 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11268 dynamic_linker
="$host_os dld.sl"
11269 shlibpath_var
=SHLIB_PATH
11270 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
11271 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11272 soname_spec
='${libname}${release}${shared_ext}$major'
11275 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11276 postinstall_cmds
='chmod 555 $lib'
11277 # or fails outright, so override atomically:
11278 install_override_mode
=555
11285 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11286 soname_spec
='${libname}${release}${shared_ext}$major'
11287 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
11288 shlibpath_var
=LD_LIBRARY_PATH
11289 shlibpath_overrides_runpath
=no
11290 hardcode_into_libs
=yes
11293 irix5
* | irix6
* | nonstopux
*)
11295 nonstopux
*) version_type
=nonstopux
;;
11297 if test "$lt_cv_prog_gnu_ld" = yes; then
11305 soname_spec
='${libname}${release}${shared_ext}$major'
11306 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11308 irix5
* | nonstopux
*)
11309 libsuff
= shlibsuff
=
11312 case $LD in # libtool.m4 will add one of these switches to LD
11313 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
11314 libsuff
= shlibsuff
= libmagic
=32-bit;;
11315 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
11316 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
11317 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
11318 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
11319 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
11323 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
11324 shlibpath_overrides_runpath
=no
11325 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11326 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
11327 hardcode_into_libs
=yes
11330 # No shared lib support for Linux oldld, aout, or coff.
11331 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
11335 # This must be Linux ELF.
11336 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
11340 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11341 soname_spec
='${libname}${release}${shared_ext}$major'
11342 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11343 shlibpath_var
=LD_LIBRARY_PATH
11344 shlibpath_overrides_runpath
=no
11346 # Some binutils ld are patched to set DT_RUNPATH
11347 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11348 $as_echo_n "(cached) " >&6
11350 lt_cv_shlibpath_overrides_runpath
=no
11351 save_LDFLAGS
=$LDFLAGS
11352 save_libdir
=$libdir
11353 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11354 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11356 /* end confdefs.h. */
11366 if ac_fn_c_try_link
"$LINENO"; then :
11367 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
11368 lt_cv_shlibpath_overrides_runpath
=yes
11371 rm -f core conftest.err conftest.
$ac_objext \
11372 conftest
$ac_exeext conftest.
$ac_ext
11373 LDFLAGS
=$save_LDFLAGS
11374 libdir
=$save_libdir
11378 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
11380 # This implies no fast_install, which is unacceptable.
11381 # Some rework will be needed to allow for fast_install
11382 # before this can be enabled.
11383 hardcode_into_libs
=yes
11385 # Append ld.so.conf contents to the search path
11386 if test -f /etc
/ld.so.conf
; then
11387 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' ' '`
11388 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
11391 # We used to test for /lib/ld.so.1 and disable shared libraries on
11392 # powerpc, because MkLinux only supported shared libraries with the
11393 # GNU dynamic linker. Since this was broken with cross compilers,
11394 # most powerpc-linux boxes support dynamic linking these days and
11395 # people can always --disable-shared, the test was removed, and we
11396 # assume the GNU/Linux dynamic linker is in use.
11397 dynamic_linker
='GNU/Linux ld.so'
11404 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
11405 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11406 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11407 dynamic_linker
='NetBSD (a.out) ld.so'
11409 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11410 soname_spec
='${libname}${release}${shared_ext}$major'
11411 dynamic_linker
='NetBSD ld.elf_so'
11413 shlibpath_var
=LD_LIBRARY_PATH
11414 shlibpath_overrides_runpath
=yes
11415 hardcode_into_libs
=yes
11420 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11421 shlibpath_var
=LD_LIBRARY_PATH
11422 shlibpath_overrides_runpath
=yes
11429 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11430 soname_spec
='${libname}${release}${shared_ext}$major'
11431 shlibpath_var
=LD_LIBRARY_PATH
11432 shlibpath_overrides_runpath
=no
11433 hardcode_into_libs
=yes
11434 dynamic_linker
='ldqnx.so'
11439 sys_lib_dlsearch_path_spec
="/usr/lib"
11441 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11443 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
11444 *) need_version
=no
;;
11446 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11447 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11448 shlibpath_var
=LD_LIBRARY_PATH
11449 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11451 openbsd2.
[89] | openbsd2.
[89].
*)
11452 shlibpath_overrides_runpath
=no
11455 shlibpath_overrides_runpath
=yes
11459 shlibpath_overrides_runpath
=yes
11464 libname_spec
='$name'
11467 library_names_spec
='$libname${shared_ext} $libname.a'
11468 dynamic_linker
='OS/2 ld.exe'
11469 shlibpath_var
=LIBPATH
11472 osf3
* | osf4
* | osf5
*)
11476 soname_spec
='${libname}${release}${shared_ext}$major'
11477 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11478 shlibpath_var
=LD_LIBRARY_PATH
11479 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11480 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
11491 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11492 soname_spec
='${libname}${release}${shared_ext}$major'
11493 shlibpath_var
=LD_LIBRARY_PATH
11494 shlibpath_overrides_runpath
=yes
11495 hardcode_into_libs
=yes
11496 # ldd complains unless libraries are executable
11497 postinstall_cmds
='chmod +x $lib'
11502 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11503 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11504 shlibpath_var
=LD_LIBRARY_PATH
11505 shlibpath_overrides_runpath
=yes
11506 if test "$with_gnu_ld" = yes; then
11514 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11515 soname_spec
='${libname}${release}${shared_ext}$major'
11516 shlibpath_var
=LD_LIBRARY_PATH
11517 case $host_vendor in
11519 shlibpath_overrides_runpath
=no
11521 runpath_var
=LD_RUN_PATH
11529 shlibpath_overrides_runpath
=no
11530 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11536 if test -d /usr
/nec
;then
11538 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11539 soname_spec
='$libname${shared_ext}.$major'
11540 shlibpath_var
=LD_LIBRARY_PATH
11544 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11545 version_type
=freebsd-elf
11548 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11549 soname_spec
='${libname}${release}${shared_ext}$major'
11550 shlibpath_var
=LD_LIBRARY_PATH
11551 shlibpath_overrides_runpath
=yes
11552 hardcode_into_libs
=yes
11553 if test "$with_gnu_ld" = yes; then
11554 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11556 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11559 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11563 sys_lib_dlsearch_path_spec
='/usr/lib'
11567 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11571 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11572 shlibpath_var
=LD_LIBRARY_PATH
11573 shlibpath_overrides_runpath
=no
11574 hardcode_into_libs
=yes
11579 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11580 soname_spec
='${libname}${release}${shared_ext}$major'
11581 shlibpath_var
=LD_LIBRARY_PATH
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11589 $as_echo "$dynamic_linker" >&6; }
11590 test "$dynamic_linker" = no
&& can_build_shared
=no
11592 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11593 if test "$GCC" = yes; then
11594 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11597 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11598 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
11600 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11601 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11696 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11698 if test -n "$hardcode_libdir_flag_spec" ||
11699 test -n "$runpath_var" ||
11700 test "X$hardcode_automatic" = "Xyes" ; then
11702 # We can hardcode non-existent directories.
11703 if test "$hardcode_direct" != no
&&
11704 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11705 # have to relink, otherwise we might link with an installed library
11706 # when we should be linking with a yet-to-be-installed one
11707 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11708 test "$hardcode_minus_L" != no
; then
11709 # Linking always hardcodes the temporary library directory.
11710 hardcode_action
=relink
11712 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11713 hardcode_action
=immediate
11716 # We cannot hardcode anything, or else we can only hardcode existing
11718 hardcode_action
=unsupported
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11721 $as_echo "$hardcode_action" >&6; }
11723 if test "$hardcode_action" = relink ||
11724 test "$inherit_rpath" = yes; then
11725 # Fast installation is not supported
11726 enable_fast_install
=no
11727 elif test "$shlibpath_overrides_runpath" = yes ||
11728 test "$enable_shared" = no
; then
11729 # Fast installation is not necessary
11730 enable_fast_install
=needless
11738 if test "x$enable_dlopen" != xyes
; then
11739 enable_dlopen
=unknown
11740 enable_dlopen_self
=unknown
11741 enable_dlopen_self_static
=unknown
11748 lt_cv_dlopen
="load_add_on"
11750 lt_cv_dlopen_self
=yes
11753 mingw
* | pw32
* | cegcc
*)
11754 lt_cv_dlopen
="LoadLibrary"
11759 lt_cv_dlopen
="dlopen"
11764 # if libdl is installed we need to link against it
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11766 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11767 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11768 $as_echo_n "(cached) " >&6
11770 ac_check_lib_save_LIBS
=$LIBS
11772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11773 /* end confdefs.h. */
11775 /* Override any GCC internal prototype to avoid an error.
11776 Use char because int might match the return type of a GCC
11777 builtin and then its argument prototype would still apply. */
11790 if ac_fn_c_try_link
"$LINENO"; then :
11791 ac_cv_lib_dl_dlopen
=yes
11793 ac_cv_lib_dl_dlopen
=no
11795 rm -f core conftest.err conftest.
$ac_objext \
11796 conftest
$ac_exeext conftest.
$ac_ext
11797 LIBS
=$ac_check_lib_save_LIBS
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11800 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11801 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
11802 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11805 lt_cv_dlopen
="dyld"
11807 lt_cv_dlopen_self
=yes
11814 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11815 if test "x$ac_cv_func_shl_load" = x
""yes; then :
11816 lt_cv_dlopen
="shl_load"
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11819 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11820 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11821 $as_echo_n "(cached) " >&6
11823 ac_check_lib_save_LIBS
=$LIBS
11825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11826 /* end confdefs.h. */
11828 /* Override any GCC internal prototype to avoid an error.
11829 Use char because int might match the return type of a GCC
11830 builtin and then its argument prototype would still apply. */
11838 return shl_load ();
11843 if ac_fn_c_try_link
"$LINENO"; then :
11844 ac_cv_lib_dld_shl_load
=yes
11846 ac_cv_lib_dld_shl_load
=no
11848 rm -f core conftest.err conftest.
$ac_objext \
11849 conftest
$ac_exeext conftest.
$ac_ext
11850 LIBS
=$ac_check_lib_save_LIBS
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11853 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11854 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
11855 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11857 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11858 if test "x$ac_cv_func_dlopen" = x
""yes; then :
11859 lt_cv_dlopen
="dlopen"
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11862 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11863 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11864 $as_echo_n "(cached) " >&6
11866 ac_check_lib_save_LIBS
=$LIBS
11868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11869 /* end confdefs.h. */
11871 /* Override any GCC internal prototype to avoid an error.
11872 Use char because int might match the return type of a GCC
11873 builtin and then its argument prototype would still apply. */
11886 if ac_fn_c_try_link
"$LINENO"; then :
11887 ac_cv_lib_dl_dlopen
=yes
11889 ac_cv_lib_dl_dlopen
=no
11891 rm -f core conftest.err conftest.
$ac_objext \
11892 conftest
$ac_exeext conftest.
$ac_ext
11893 LIBS
=$ac_check_lib_save_LIBS
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11896 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11897 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
11898 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11901 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11902 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11903 $as_echo_n "(cached) " >&6
11905 ac_check_lib_save_LIBS
=$LIBS
11906 LIBS
="-lsvld $LIBS"
11907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11908 /* end confdefs.h. */
11910 /* Override any GCC internal prototype to avoid an error.
11911 Use char because int might match the return type of a GCC
11912 builtin and then its argument prototype would still apply. */
11925 if ac_fn_c_try_link
"$LINENO"; then :
11926 ac_cv_lib_svld_dlopen
=yes
11928 ac_cv_lib_svld_dlopen
=no
11930 rm -f core conftest.err conftest.
$ac_objext \
11931 conftest
$ac_exeext conftest.
$ac_ext
11932 LIBS
=$ac_check_lib_save_LIBS
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11935 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11936 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
11937 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11940 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11941 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11942 $as_echo_n "(cached) " >&6
11944 ac_check_lib_save_LIBS
=$LIBS
11946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11947 /* end confdefs.h. */
11949 /* Override any GCC internal prototype to avoid an error.
11950 Use char because int might match the return type of a GCC
11951 builtin and then its argument prototype would still apply. */
11959 return dld_link ();
11964 if ac_fn_c_try_link
"$LINENO"; then :
11965 ac_cv_lib_dld_dld_link
=yes
11967 ac_cv_lib_dld_dld_link
=no
11969 rm -f core conftest.err conftest.
$ac_objext \
11970 conftest
$ac_exeext conftest.
$ac_ext
11971 LIBS
=$ac_check_lib_save_LIBS
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11974 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11975 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
11976 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11997 if test "x$lt_cv_dlopen" != xno
; then
12003 case $lt_cv_dlopen in
12005 save_CPPFLAGS
="$CPPFLAGS"
12006 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
12008 save_LDFLAGS
="$LDFLAGS"
12009 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
12012 LIBS
="$lt_cv_dlopen_libs $LIBS"
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12015 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12016 if test "${lt_cv_dlopen_self+set}" = set; then :
12017 $as_echo_n "(cached) " >&6
12019 if test "$cross_compiling" = yes; then :
12020 lt_cv_dlopen_self
=cross
12022 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12023 lt_status
=$lt_dlunknown
12024 cat > conftest.
$ac_ext <<_LT_EOF
12025 #line 12025 "configure"
12026 #include "confdefs.h"
12035 # define LT_DLGLOBAL RTLD_GLOBAL
12038 # define LT_DLGLOBAL DL_GLOBAL
12040 # define LT_DLGLOBAL 0
12044 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12045 find out it does not work in some platform. */
12046 #ifndef LT_DLLAZY_OR_NOW
12048 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12051 # define LT_DLLAZY_OR_NOW DL_LAZY
12054 # define LT_DLLAZY_OR_NOW RTLD_NOW
12057 # define LT_DLLAZY_OR_NOW DL_NOW
12059 # define LT_DLLAZY_OR_NOW 0
12066 /* When -fvisbility=hidden is used, assume the code has been annotated
12067 correspondingly for the symbols needed. */
12068 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12069 void fnord () __attribute__((visibility("default")));
12072 void fnord () { int i=42; }
12075 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12076 int status = $lt_dlunknown;
12080 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12083 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12084 else puts (dlerror ());
12086 /* dlclose (self); */
12094 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12095 (eval $ac_link) 2>&5
12097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12098 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
12099 (.
/conftest
; exit; ) >&5 2>/dev
/null
12101 case x
$lt_status in
12102 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
12103 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
12104 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
12107 # compilation failed
12108 lt_cv_dlopen_self
=no
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12116 $as_echo "$lt_cv_dlopen_self" >&6; }
12118 if test "x$lt_cv_dlopen_self" = xyes
; then
12119 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12121 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12122 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12123 $as_echo_n "(cached) " >&6
12125 if test "$cross_compiling" = yes; then :
12126 lt_cv_dlopen_self_static
=cross
12128 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12129 lt_status
=$lt_dlunknown
12130 cat > conftest.
$ac_ext <<_LT_EOF
12131 #line 12131 "configure"
12132 #include "confdefs.h"
12141 # define LT_DLGLOBAL RTLD_GLOBAL
12144 # define LT_DLGLOBAL DL_GLOBAL
12146 # define LT_DLGLOBAL 0
12150 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12151 find out it does not work in some platform. */
12152 #ifndef LT_DLLAZY_OR_NOW
12154 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12157 # define LT_DLLAZY_OR_NOW DL_LAZY
12160 # define LT_DLLAZY_OR_NOW RTLD_NOW
12163 # define LT_DLLAZY_OR_NOW DL_NOW
12165 # define LT_DLLAZY_OR_NOW 0
12172 /* When -fvisbility=hidden is used, assume the code has been annotated
12173 correspondingly for the symbols needed. */
12174 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12175 void fnord () __attribute__((visibility("default")));
12178 void fnord () { int i=42; }
12181 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12182 int status = $lt_dlunknown;
12186 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12189 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12190 else puts (dlerror ());
12192 /* dlclose (self); */
12200 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12201 (eval $ac_link) 2>&5
12203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12204 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
12205 (.
/conftest
; exit; ) >&5 2>/dev
/null
12207 case x
$lt_status in
12208 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
12209 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
12210 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
12213 # compilation failed
12214 lt_cv_dlopen_self_static
=no
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12222 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12225 CPPFLAGS
="$save_CPPFLAGS"
12226 LDFLAGS
="$save_LDFLAGS"
12231 case $lt_cv_dlopen_self in
12232 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
12233 *) enable_dlopen_self
=unknown
;;
12236 case $lt_cv_dlopen_self_static in
12237 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
12238 *) enable_dlopen_self_static
=unknown
;;
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12261 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12262 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
12263 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
12264 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12266 $as_echo "yes" >&6; }
12268 # FIXME - insert some real tests, host_os isn't really good enough
12271 if test -n "$STRIP" ; then
12272 striplib
="$STRIP -x"
12273 old_striplib
="$STRIP -S"
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12275 $as_echo "yes" >&6; }
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12278 $as_echo "no" >&6; }
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12283 $as_echo "no" >&6; }
12299 # Report which library types will actually be built
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12301 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12303 $as_echo "$can_build_shared" >&6; }
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12306 $as_echo_n "checking whether to build shared libraries... " >&6; }
12307 test "$can_build_shared" = "no" && enable_shared
=no
12309 # On AIX, shared libraries and static libraries use the same namespace, and
12310 # are all built from PIC.
12313 test "$enable_shared" = yes && enable_static
=no
12314 if test -n "$RANLIB"; then
12315 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
12316 postinstall_cmds
='$RANLIB $lib'
12321 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
12322 test "$enable_shared" = yes && enable_static
=no
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12327 $as_echo "$enable_shared" >&6; }
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12330 $as_echo_n "checking whether to build static libraries... " >&6; }
12331 # Make sure either enable_shared or enable_static is yes.
12332 test "$enable_shared" = yes || enable_static
=yes
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12334 $as_echo "$enable_static" >&6; }
12341 ac_cpp
='$CPP $CPPFLAGS'
12342 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12343 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12344 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12348 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12349 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12350 (test "X$CXX" != "Xg++"))) ; then
12352 ac_cpp
='$CXXCPP $CPPFLAGS'
12353 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12354 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12355 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12357 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12358 if test -z "$CXXCPP"; then
12359 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12360 $as_echo_n "(cached) " >&6
12362 # Double quotes because CXXCPP needs to be expanded
12363 for CXXCPP
in "$CXX -E" "/lib/cpp"
12365 ac_preproc_ok
=false
12366 for ac_cxx_preproc_warn_flag
in '' yes
12368 # Use a header file that comes with gcc, so configuring glibc
12369 # with a fresh cross-compiler works.
12370 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12371 # <limits.h> exists even on freestanding compilers.
12372 # On the NeXT, cc -E runs the code through the compiler's parser,
12373 # not just through cpp. "Syntax error" is here to catch this case.
12374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12375 /* end confdefs.h. */
12377 # include <limits.h>
12379 # include <assert.h>
12383 if ac_fn_cxx_try_cpp
"$LINENO"; then :
12386 # Broken: fails on valid input.
12389 rm -f conftest.err conftest.
$ac_ext
12391 # OK, works on sane cases. Now check whether nonexistent headers
12392 # can be detected and how.
12393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12394 /* end confdefs.h. */
12395 #include <ac_nonexistent.h>
12397 if ac_fn_cxx_try_cpp
"$LINENO"; then :
12398 # Broken: success on invalid input.
12401 # Passes both tests.
12405 rm -f conftest.err conftest.
$ac_ext
12408 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12409 rm -f conftest.err conftest.
$ac_ext
12410 if $ac_preproc_ok; then :
12415 ac_cv_prog_CXXCPP
=$CXXCPP
12418 CXXCPP
=$ac_cv_prog_CXXCPP
12420 ac_cv_prog_CXXCPP
=$CXXCPP
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12423 $as_echo "$CXXCPP" >&6; }
12424 ac_preproc_ok
=false
12425 for ac_cxx_preproc_warn_flag
in '' yes
12427 # Use a header file that comes with gcc, so configuring glibc
12428 # with a fresh cross-compiler works.
12429 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12430 # <limits.h> exists even on freestanding compilers.
12431 # On the NeXT, cc -E runs the code through the compiler's parser,
12432 # not just through cpp. "Syntax error" is here to catch this case.
12433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12434 /* end confdefs.h. */
12436 # include <limits.h>
12438 # include <assert.h>
12442 if ac_fn_cxx_try_cpp
"$LINENO"; then :
12445 # Broken: fails on valid input.
12448 rm -f conftest.err conftest.
$ac_ext
12450 # OK, works on sane cases. Now check whether nonexistent headers
12451 # can be detected and how.
12452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12453 /* end confdefs.h. */
12454 #include <ac_nonexistent.h>
12456 if ac_fn_cxx_try_cpp
"$LINENO"; then :
12457 # Broken: success on invalid input.
12460 # Passes both tests.
12464 rm -f conftest.err conftest.
$ac_ext
12467 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12468 rm -f conftest.err conftest.
$ac_ext
12469 if $ac_preproc_ok; then :
12472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12474 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
12475 See \`config.log' for more details." "$LINENO" 5; }
12479 ac_cpp
='$CPP $CPPFLAGS'
12480 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12481 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12482 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12485 _lt_caught_CXX_error
=yes
12489 ac_cpp
='$CXXCPP $CPPFLAGS'
12490 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12491 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12492 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12494 archive_cmds_need_lc_CXX
=no
12495 allow_undefined_flag_CXX
=
12496 always_export_symbols_CXX
=no
12497 archive_expsym_cmds_CXX
=
12498 compiler_needs_object_CXX
=no
12499 export_dynamic_flag_spec_CXX
=
12500 hardcode_direct_CXX
=no
12501 hardcode_direct_absolute_CXX
=no
12502 hardcode_libdir_flag_spec_CXX
=
12503 hardcode_libdir_flag_spec_ld_CXX
=
12504 hardcode_libdir_separator_CXX
=
12505 hardcode_minus_L_CXX
=no
12506 hardcode_shlibpath_var_CXX
=unsupported
12507 hardcode_automatic_CXX
=no
12508 inherit_rpath_CXX
=no
12510 module_expsym_cmds_CXX
=
12511 link_all_deplibs_CXX
=unknown
12512 old_archive_cmds_CXX
=$old_archive_cmds
12513 reload_flag_CXX
=$reload_flag
12514 reload_cmds_CXX
=$reload_cmds
12515 no_undefined_flag_CXX
=
12516 whole_archive_flag_spec_CXX
=
12517 enable_shared_with_static_runtimes_CXX
=no
12519 # Source file extension for C++ test sources.
12522 # Object file extension for compiled C++ test sources.
12526 # No sense in running all these tests if we already determined that
12527 # the CXX compiler isn't working. Some variables (like enable_shared)
12528 # are currently assumed to apply to all compilers on this platform,
12529 # and will be corrupted by setting them based on a non-working compiler.
12530 if test "$_lt_caught_CXX_error" != yes; then
12531 # Code to be used in simple compile tests
12532 lt_simple_compile_test_code
="int some_variable = 0;"
12534 # Code to be used in simple link tests
12535 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
12537 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12544 # If no C compiler was specified, use CC.
12547 # If no C compiler flags were specified, use CFLAGS.
12548 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
12550 # Allow CC to be a program name with arguments.
12554 # save warnings/boilerplate of simple test code
12555 ac_outfile
=conftest.
$ac_objext
12556 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
12557 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12558 _lt_compiler_boilerplate
=`cat conftest.err`
12561 ac_outfile
=conftest.
$ac_objext
12562 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
12563 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12564 _lt_linker_boilerplate
=`cat conftest.err`
12568 # Allow CC to be a program name with arguments.
12573 lt_save_with_gnu_ld
=$with_gnu_ld
12574 lt_save_path_LD
=$lt_cv_path_LD
12575 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12576 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
12578 $as_unset lt_cv_prog_gnu_ld
12580 if test -n "${lt_cv_path_LDCXX+set}"; then
12581 lt_cv_path_LD
=$lt_cv_path_LDCXX
12583 $as_unset lt_cv_path_LD
12585 test -z "${LDCXX+set}" || LD
=$LDCXX
12589 for cc_temp
in $compiler""; do
12591 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
12592 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
12597 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12600 if test -n "$compiler"; then
12601 # We don't want -fno-exception when compiling C++ code, so set the
12602 # no_builtin_flag separately
12603 if test "$GXX" = yes; then
12604 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
12606 lt_prog_compiler_no_builtin_flag_CXX
=
12609 if test "$GXX" = yes; then
12610 # Set up default GNU C++ configuration
12614 # Check whether --with-gnu-ld was given.
12615 if test "${with_gnu_ld+set}" = set; then :
12616 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12622 if test "$GCC" = yes; then
12623 # Check if gcc -print-prog-name=ld gives a path.
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12625 $as_echo_n "checking for ld used by $CC... " >&6; }
12628 # gcc leaves a trailing carriage return which upsets mingw
12629 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12631 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12634 # Accept absolute paths.
12636 re_direlt
='/[^/][^/]*/\.\./'
12637 # Canonicalize the pathname of ld
12638 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12639 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12640 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12642 test -z "$LD" && LD
="$ac_prog"
12645 # If it fails, then pretend we aren't using GCC.
12649 # If it is relative, then search for the first ld in PATH.
12650 with_gnu_ld
=unknown
12653 elif test "$with_gnu_ld" = yes; then
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12655 $as_echo_n "checking for GNU ld... " >&6; }
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12658 $as_echo_n "checking for non-GNU ld... " >&6; }
12660 if test "${lt_cv_path_LD+set}" = set; then :
12661 $as_echo_n "(cached) " >&6
12663 if test -z "$LD"; then
12664 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12665 for ac_dir
in $PATH; do
12667 test -z "$ac_dir" && ac_dir
=.
12668 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12669 lt_cv_path_LD
="$ac_dir/$ac_prog"
12670 # Check to see if the program is GNU ld. I'd rather use --version,
12671 # but apparently some variants of GNU ld only accept -v.
12672 # Break only if it was the GNU/non-GNU ld that we prefer.
12673 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12674 *GNU
* |
*'with BFD'*)
12675 test "$with_gnu_ld" != no
&& break
12678 test "$with_gnu_ld" != yes && break
12685 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12689 LD
="$lt_cv_path_LD"
12690 if test -n "$LD"; then
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12692 $as_echo "$LD" >&6; }
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12695 $as_echo "no" >&6; }
12697 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12699 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12700 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12701 $as_echo_n "(cached) " >&6
12703 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12704 case `$LD -v 2>&1 </dev/null` in
12705 *GNU
* |
*'with BFD'*)
12706 lt_cv_prog_gnu_ld
=yes
12709 lt_cv_prog_gnu_ld
=no
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12714 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12715 with_gnu_ld
=$lt_cv_prog_gnu_ld
12723 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12724 # archiving commands below assume that GNU ld is being used.
12725 if test "$with_gnu_ld" = yes; then
12726 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12727 archive_expsym_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12729 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12730 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12732 # If archive_cmds runs LD, not CC, wlarc should be empty
12733 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12734 # investigate it a little bit more. (MM)
12737 # ancient GNU ld didn't support --whole-archive et. al.
12738 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12739 $GREP 'no-whole-archive' > /dev
/null
; then
12740 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12742 whole_archive_flag_spec_CXX
=
12748 # A generic and very simple default shared library creation
12749 # command for GNU C++ for the case where it uses the native
12750 # linker, instead of GNU ld. If possible, this setting should
12751 # overridden to take advantage of the native linker features on
12752 # the platform it is being used on.
12753 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12756 # Commands to make compiler produce verbose output that lists
12757 # what "hidden" libraries, object files and flags are used when
12758 # linking a shared library.
12759 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12767 # PORTME: fill in a description of your system's C++ link characteristics
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12769 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12773 # FIXME: insert proper C++ library support
12777 if test "$host_cpu" = ia64
; then
12778 # On IA64, the linker does run time linking by default, so we don't
12779 # have to do anything special.
12780 aix_use_runtimelinking
=no
12781 exp_sym_flag
='-Bexport'
12784 aix_use_runtimelinking
=no
12786 # Test if we are trying to use run time linking or normal
12787 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12788 # need to do runtime linking.
12789 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
12790 for ld_flag
in $LDFLAGS; do
12793 aix_use_runtimelinking
=yes
12801 exp_sym_flag
='-bexport'
12802 no_entry_flag
='-bnoentry'
12805 # When large executables or shared objects are built, AIX ld can
12806 # have problems creating the table of contents. If linking a library
12807 # or program results in "error TOC overflow" add -mminimal-toc to
12808 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12809 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12811 archive_cmds_CXX
=''
12812 hardcode_direct_CXX
=yes
12813 hardcode_direct_absolute_CXX
=yes
12814 hardcode_libdir_separator_CXX
=':'
12815 link_all_deplibs_CXX
=yes
12816 file_list_spec_CXX
='${wl}-f,'
12818 if test "$GXX" = yes; then
12819 case $host_os in aix4.
[012]|aix4.
[012].
*)
12820 # We only want to do this on AIX 4.2 and lower, the check
12821 # below for broken collect2 doesn't work under 4.3+
12822 collect2name
=`${CC} -print-prog-name=collect2`
12823 if test -f "$collect2name" &&
12824 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
12826 # We have reworked collect2
12829 # We have old collect2
12830 hardcode_direct_CXX
=unsupported
12831 # It fails to find uninstalled libraries when the uninstalled
12832 # path is not listed in the libpath. Setting hardcode_minus_L
12833 # to unsupported forces relinking
12834 hardcode_minus_L_CXX
=yes
12835 hardcode_libdir_flag_spec_CXX
='-L$libdir'
12836 hardcode_libdir_separator_CXX
=
12839 shared_flag
='-shared'
12840 if test "$aix_use_runtimelinking" = yes; then
12841 shared_flag
="$shared_flag "'${wl}-G'
12845 if test "$host_cpu" = ia64
; then
12846 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12847 # chokes on -Wl,-G. The following line is correct:
12850 if test "$aix_use_runtimelinking" = yes; then
12851 shared_flag
='${wl}-G'
12853 shared_flag
='${wl}-bM:SRE'
12858 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
12859 # It seems that -bexpall does not export symbols beginning with
12860 # underscore (_), so it is better to generate a list of symbols to
12862 always_export_symbols_CXX
=yes
12863 if test "$aix_use_runtimelinking" = yes; then
12864 # Warning - without using the other runtime loading flags (-brtl),
12865 # -berok will link without error, but may produce a broken library.
12866 allow_undefined_flag_CXX
='-berok'
12867 # Determine the default libpath from the value encoded in an empty
12869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12870 /* end confdefs.h. */
12880 if ac_fn_cxx_try_link
"$LINENO"; then :
12882 lt_aix_libpath_sed
='
12883 /Import File Strings/,/^$/ {
12889 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12890 # Check for a 64-bit object if we didn't find anything.
12891 if test -z "$aix_libpath"; then
12892 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12895 rm -f core conftest.err conftest.
$ac_objext \
12896 conftest
$ac_exeext conftest.
$ac_ext
12897 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
12899 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
12901 archive_expsym_cmds_CXX
='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12903 if test "$host_cpu" = ia64
; then
12904 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
12905 allow_undefined_flag_CXX
="-z nodefs"
12906 archive_expsym_cmds_CXX
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12908 # Determine the default libpath from the value encoded in an
12909 # empty executable.
12910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12911 /* end confdefs.h. */
12921 if ac_fn_cxx_try_link
"$LINENO"; then :
12923 lt_aix_libpath_sed
='
12924 /Import File Strings/,/^$/ {
12930 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12931 # Check for a 64-bit object if we didn't find anything.
12932 if test -z "$aix_libpath"; then
12933 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12936 rm -f core conftest.err conftest.
$ac_objext \
12937 conftest
$ac_exeext conftest.
$ac_ext
12938 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
12940 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
12941 # Warning - without using the other run time loading flags,
12942 # -berok will link without error, but may produce a broken library.
12943 no_undefined_flag_CXX
=' ${wl}-bernotok'
12944 allow_undefined_flag_CXX
=' ${wl}-berok'
12945 if test "$with_gnu_ld" = yes; then
12946 # We only use this code for GNU lds that support --whole-archive.
12947 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12949 # Exported symbols can be pulled into shared objects from archives
12950 whole_archive_flag_spec_CXX
='$convenience'
12952 archive_cmds_need_lc_CXX
=yes
12953 # This is similar to how AIX traditionally builds its shared
12955 archive_expsym_cmds_CXX
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12961 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12962 allow_undefined_flag_CXX
=unsupported
12963 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12964 # support --undefined. This deserves some investigation. FIXME
12965 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12972 case $cc_basename in
12974 # FIXME: insert proper C++ library support
12980 cygwin
* | mingw
* | pw32
* | cegcc
*)
12981 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12982 # as there is no search path for DLLs.
12983 hardcode_libdir_flag_spec_CXX
='-L$libdir'
12984 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
12985 allow_undefined_flag_CXX
=unsupported
12986 always_export_symbols_CXX
=no
12987 enable_shared_with_static_runtimes_CXX
=yes
12989 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
12990 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12991 # If the export-symbols file already is a .def file (1st line
12992 # is EXPORTS), use it as is; otherwise, prepend...
12993 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12994 cp $export_symbols $output_objdir/$soname.def;
12996 echo EXPORTS > $output_objdir/$soname.def;
12997 cat $export_symbols >> $output_objdir/$soname.def;
12999 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13004 darwin
* | rhapsody
*)
13007 archive_cmds_need_lc_CXX
=no
13008 hardcode_direct_CXX
=no
13009 hardcode_automatic_CXX
=yes
13010 hardcode_shlibpath_var_CXX
=unsupported
13011 if test "$lt_cv_ld_force_load" = "yes"; then
13012 whole_archive_flag_spec_CXX
='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13014 whole_archive_flag_spec_CXX
=''
13016 link_all_deplibs_CXX
=yes
13017 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
13018 case $cc_basename in
13019 ifort
*) _lt_dar_can_shared
=yes ;;
13020 *) _lt_dar_can_shared
=$GCC ;;
13022 if test "$_lt_dar_can_shared" = "yes"; then
13023 output_verbose_link_cmd
=func_echo_all
13024 archive_cmds_CXX
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13025 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13026 archive_expsym_cmds_CXX
="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13027 module_expsym_cmds_CXX
="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13028 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13029 archive_cmds_CXX
="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13030 archive_expsym_cmds_CXX
="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13040 case $cc_basename in
13042 # FIXME: insert proper C++ library support
13046 # Green Hills C++ Compiler
13047 # FIXME: insert proper C++ library support
13051 # FIXME: insert proper C++ library support
13058 # C++ shared libraries reported to be fairly broken before
13064 archive_cmds_need_lc_CXX
=no
13067 freebsd
* | dragonfly
*)
13068 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13077 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13078 link_all_deplibs_CXX
=yes
13082 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
13083 hardcode_libdir_separator_CXX
=:
13084 export_dynamic_flag_spec_CXX
='${wl}-E'
13085 hardcode_direct_CXX
=yes
13086 hardcode_minus_L_CXX
=yes # Not in the search PATH,
13087 # but as the default
13088 # location of the library.
13090 case $cc_basename in
13092 # FIXME: insert proper C++ library support
13096 archive_cmds_CXX
='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13097 # Commands to make compiler produce verbose output that lists
13098 # what "hidden" libraries, object files and flags are used when
13099 # linking a shared library.
13101 # There doesn't appear to be a way to prevent this compiler from
13102 # explicitly linking system object files so we need to strip them
13103 # from the output so that they don't get included in the library
13105 output_verbose_link_cmd
='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13108 if test "$GXX" = yes; then
13109 archive_cmds_CXX
='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13111 # FIXME: insert proper C++ library support
13119 if test $with_gnu_ld = no
; then
13120 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
13121 hardcode_libdir_separator_CXX
=:
13127 export_dynamic_flag_spec_CXX
='${wl}-E'
13133 hardcode_direct_CXX
=no
13134 hardcode_shlibpath_var_CXX
=no
13137 hardcode_direct_CXX
=yes
13138 hardcode_direct_absolute_CXX
=yes
13139 hardcode_minus_L_CXX
=yes # Not in the search PATH,
13140 # but as the default
13141 # location of the library.
13145 case $cc_basename in
13147 # FIXME: insert proper C++ library support
13153 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13156 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13159 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13162 # Commands to make compiler produce verbose output that lists
13163 # what "hidden" libraries, object files and flags are used when
13164 # linking a shared library.
13166 # There doesn't appear to be a way to prevent this compiler from
13167 # explicitly linking system object files so we need to strip them
13168 # from the output so that they don't get included in the library
13170 output_verbose_link_cmd
='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13173 if test "$GXX" = yes; then
13174 if test $with_gnu_ld = no
; then
13177 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13180 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13183 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13188 # FIXME: insert proper C++ library support
13196 hardcode_direct_CXX
=no
13197 hardcode_shlibpath_var_CXX
=no
13198 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
13199 export_dynamic_flag_spec_CXX
='${wl}-E'
13200 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13201 # Instead, shared libraries are loaded at an image base (0x10000000 by
13202 # default) and relocated if they conflict, which is a slow very memory
13203 # consuming and fragmenting process. To avoid this, we pick a random,
13204 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13205 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13206 archive_cmds_CXX
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13207 archive_expsym_cmds_CXX
='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13210 case $cc_basename in
13213 archive_cmds_CXX
='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13215 # Archives containing C++ object files must be created using
13216 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13217 # necessary to make sure instantiated templates are included
13219 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
13222 if test "$GXX" = yes; then
13223 if test "$with_gnu_ld" = no
; then
13224 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13226 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13229 link_all_deplibs_CXX
=yes
13232 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
13233 hardcode_libdir_separator_CXX
=:
13234 inherit_rpath_CXX
=yes
13237 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
13238 case $cc_basename in
13240 # Kuck and Associates, Inc. (KAI) C++ Compiler
13242 # KCC will only create a shared library if the output file
13243 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13244 # to its proper name (with version) after linking.
13245 archive_cmds_CXX
='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13246 archive_expsym_cmds_CXX
='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13247 # Commands to make compiler produce verbose output that lists
13248 # what "hidden" libraries, object files and flags are used when
13249 # linking a shared library.
13251 # There doesn't appear to be a way to prevent this compiler from
13252 # explicitly linking system object files so we need to strip them
13253 # from the output so that they don't get included in the library
13255 output_verbose_link_cmd
='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13257 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
13258 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
13260 # Archives containing C++ object files must be created using
13261 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13262 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
13267 # version 8.0 and above of icpc choke on multiply defined symbols
13268 # if we add $predep_objects and $postdep_objects, however 7.1 and
13269 # earlier do not add the objects themselves.
13270 case `$CC -V 2>&1` in
13272 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13273 archive_expsym_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13275 *) # Version 8.0 or newer
13278 ia64
*) tmp_idyn
=' -i_dynamic';;
13280 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13281 archive_expsym_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13284 archive_cmds_need_lc_CXX
=no
13285 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
13286 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
13287 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13290 # Portland Group C++ compiler
13292 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
13293 prelink_cmds_CXX
='tpldir=Template.dir~
13295 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13296 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13297 old_archive_cmds_CXX
='tpldir=Template.dir~
13299 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13300 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13302 archive_cmds_CXX
='tpldir=Template.dir~
13304 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13305 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13306 archive_expsym_cmds_CXX
='tpldir=Template.dir~
13308 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13309 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13311 *) # Version 6 and above use weak symbols
13312 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13313 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13317 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
13318 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
13319 whole_archive_flag_spec_CXX
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13323 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13324 archive_expsym_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13326 runpath_var
=LD_RUN_PATH
13327 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
13328 hardcode_libdir_separator_CXX
=:
13330 # Commands to make compiler produce verbose output that lists
13331 # what "hidden" libraries, object files and flags are used when
13332 # linking a shared library.
13334 # There doesn't appear to be a way to prevent this compiler from
13335 # explicitly linking system object files so we need to strip them
13336 # from the output so that they don't get included in the library
13338 output_verbose_link_cmd
='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13340 xl
* | mpixl
* | bgxl
*)
13341 # IBM XL 8.0 on PPC, with GNU ld
13342 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
13343 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
13344 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13345 if test "x$supports_anon_versioning" = xyes
; then
13346 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
13347 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13348 echo "local: *; };" >> $output_objdir/$libname.ver~
13349 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13353 case `$CC -V 2>&1 | sed 5q` in
13356 no_undefined_flag_CXX
=' -zdefs'
13357 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13358 archive_expsym_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13359 hardcode_libdir_flag_spec_CXX
='-R$libdir'
13360 whole_archive_flag_spec_CXX
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13361 compiler_needs_object_CXX
=yes
13363 # Not sure whether something based on
13364 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13366 output_verbose_link_cmd
='func_echo_all'
13368 # Archives containing C++ object files must be created using
13369 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13370 # necessary to make sure instantiated templates are included
13372 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
13380 # FIXME: insert proper C++ library support
13385 # FIXME: insert proper C++ library support
13390 case $cc_basename in
13392 # FIXME: insert proper C++ library support
13396 # FIXME: insert proper C++ library support
13403 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13404 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13406 hardcode_libdir_flag_spec_CXX
='-R$libdir'
13407 hardcode_direct_CXX
=yes
13408 hardcode_shlibpath_var_CXX
=no
13410 # Workaround some broken pre-1.5 toolchains
13411 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13419 # C++ shared libraries are fairly broken
13424 if test -f /usr
/libexec
/ld.so
; then
13425 hardcode_direct_CXX
=yes
13426 hardcode_shlibpath_var_CXX
=no
13427 hardcode_direct_absolute_CXX
=yes
13428 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13429 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
13430 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13431 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13432 export_dynamic_flag_spec_CXX
='${wl}-E'
13433 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13435 output_verbose_link_cmd
=func_echo_all
13441 osf3
* | osf4
* | osf5
*)
13442 case $cc_basename in
13444 # Kuck and Associates, Inc. (KAI) C++ Compiler
13446 # KCC will only create a shared library if the output file
13447 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13448 # to its proper name (with version) after linking.
13449 archive_cmds_CXX
='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13451 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
13452 hardcode_libdir_separator_CXX
=:
13454 # Archives containing C++ object files must be created using
13455 # the KAI C++ compiler.
13457 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
13458 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
13462 # Rational C++ 2.4.1
13463 # FIXME: insert proper C++ library support
13469 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
13470 archive_cmds_CXX
='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13471 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
13474 allow_undefined_flag_CXX
=' -expect_unresolved \*'
13475 archive_cmds_CXX
='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13476 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13477 echo "-hidden">> $lib.exp~
13478 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13480 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
13484 hardcode_libdir_separator_CXX
=:
13486 # Commands to make compiler produce verbose output that lists
13487 # what "hidden" libraries, object files and flags are used when
13488 # linking a shared library.
13490 # There doesn't appear to be a way to prevent this compiler from
13491 # explicitly linking system object files so we need to strip them
13492 # from the output so that they don't get included in the library
13494 output_verbose_link_cmd
='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13497 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
13498 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
13501 archive_cmds_CXX
='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13504 archive_cmds_CXX
='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13508 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
13509 hardcode_libdir_separator_CXX
=:
13511 # Commands to make compiler produce verbose output that lists
13512 # what "hidden" libraries, object files and flags are used when
13513 # linking a shared library.
13514 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13517 # FIXME: insert proper C++ library support
13525 # FIXME: insert proper C++ library support
13530 case $cc_basename in
13533 # FIXME: insert proper C++ library support
13538 # FIXME: insert proper C++ library support
13542 # FIXME: insert proper C++ library support
13549 case $cc_basename in
13551 # Sun C++ 4.2, 5.x and Centerline C++
13552 archive_cmds_need_lc_CXX
=yes
13553 no_undefined_flag_CXX
=' -zdefs'
13554 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13555 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13556 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13558 hardcode_libdir_flag_spec_CXX
='-R$libdir'
13559 hardcode_shlibpath_var_CXX
=no
13561 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13563 # The compiler driver will combine and reorder linker options,
13564 # but understands `-z linker_flag'.
13565 # Supported since Solaris 2.6 (maybe 2.5.1?)
13566 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
13569 link_all_deplibs_CXX
=yes
13571 output_verbose_link_cmd
='func_echo_all'
13573 # Archives containing C++ object files must be created using
13574 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13575 # necessary to make sure instantiated templates are included
13577 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
13580 # Green Hills C++ Compiler
13581 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13583 # The C++ compiler must be used to create the archive.
13584 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13587 # GNU C++ compiler with Solaris linker
13588 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
13589 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
13590 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
13591 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13592 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13593 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13595 # Commands to make compiler produce verbose output that lists
13596 # what "hidden" libraries, object files and flags are used when
13597 # linking a shared library.
13598 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13600 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13602 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13603 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13604 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13606 # Commands to make compiler produce verbose output that lists
13607 # what "hidden" libraries, object files and flags are used when
13608 # linking a shared library.
13609 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13612 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
13614 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13616 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13624 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13625 no_undefined_flag_CXX
='${wl}-z,text'
13626 archive_cmds_need_lc_CXX
=no
13627 hardcode_shlibpath_var_CXX
=no
13628 runpath_var
='LD_RUN_PATH'
13630 case $cc_basename in
13632 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13633 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13636 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13637 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13642 sysv5
* | sco3.2v5
* | sco5v6
*)
13643 # Note: We can NOT use -z defs as we might desire, because we do not
13644 # link with -lc, and that would cause any symbols used from libc to
13645 # always be unresolved, which means just about no library would
13646 # ever link correctly. If we're not using GNU ld we use -z text
13647 # though, which does catch some bad symbols but isn't as heavy-handed
13649 no_undefined_flag_CXX
='${wl}-z,text'
13650 allow_undefined_flag_CXX
='${wl}-z,nodefs'
13651 archive_cmds_need_lc_CXX
=no
13652 hardcode_shlibpath_var_CXX
=no
13653 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
13654 hardcode_libdir_separator_CXX
=':'
13655 link_all_deplibs_CXX
=yes
13656 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
13657 runpath_var
='LD_RUN_PATH'
13659 case $cc_basename in
13661 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13662 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13663 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
13664 '"$old_archive_cmds_CXX"
13665 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
13666 '"$reload_cmds_CXX"
13669 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13670 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13676 case $cc_basename in
13678 # NonStop-UX NCC 3.20
13679 # FIXME: insert proper C++ library support
13683 # FIXME: insert proper C++ library support
13690 # FIXME: insert proper C++ library support
13695 # FIXME: insert proper C++ library support
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13701 $as_echo "$ld_shlibs_CXX" >&6; }
13702 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
13708 ## There is no encapsulation within the following macros, do not change
13709 ## the running order or otherwise move them around unless you know exactly
13710 ## what you are doing...
13711 # Dependencies to place before and after the object being linked:
13712 predep_objects_CXX
=
13713 postdep_objects_CXX
=
13716 compiler_lib_search_path_CXX
=
13718 cat > conftest.
$ac_ext <<_LT_EOF
13722 Foo (void) { a = 0; }
13728 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13729 (eval $ac_compile) 2>&5
13731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13732 test $ac_status = 0; }; then
13733 # Parse the compiler output and extract the necessary
13734 # objects, libraries and library flags.
13736 # Sentinel used to keep track of whether or not we are before
13737 # the conftest object file.
13738 pre_test_object_deps_done
=no
13740 for p
in `eval "$output_verbose_link_cmd"`; do
13744 # Some compilers place space between "-{L,R}" and the path.
13745 # Remove the space.
13746 if test $p = "-L" ||
13747 test $p = "-R"; then
13754 if test "$pre_test_object_deps_done" = no
; then
13757 # Internal compiler library paths should come after those
13758 # provided the user. The postdeps already come after the
13759 # user supplied libs so there is no need to process them.
13760 if test -z "$compiler_lib_search_path_CXX"; then
13761 compiler_lib_search_path_CXX
="${prev}${p}"
13763 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
13766 # The "-l" case would never come before the object being
13767 # linked, so don't bother handling this case.
13770 if test -z "$postdeps_CXX"; then
13771 postdeps_CXX
="${prev}${p}"
13773 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
13779 # This assumes that the test object file only shows up
13780 # once in the compiler output.
13781 if test "$p" = "conftest.$objext"; then
13782 pre_test_object_deps_done
=yes
13786 if test "$pre_test_object_deps_done" = no
; then
13787 if test -z "$predep_objects_CXX"; then
13788 predep_objects_CXX
="$p"
13790 predep_objects_CXX
="$predep_objects_CXX $p"
13793 if test -z "$postdep_objects_CXX"; then
13794 postdep_objects_CXX
="$p"
13796 postdep_objects_CXX
="$postdep_objects_CXX $p"
13801 *) ;; # Ignore the rest.
13809 echo "libtool.m4: error: problem compiling CXX test program"
13812 $RM -f confest.
$objext
13814 # PORTME: override above test on systems where it is broken
13817 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13818 # hack all around it, let's just trust "g++" to DTRT.
13819 predep_objects_CXX
=
13820 postdep_objects_CXX
=
13825 case `$CC -V 2>&1 | sed 5q` in
13829 # The more standards-conforming stlport4 library is
13830 # incompatible with the Cstd library. Avoid specifying
13831 # it if it's in CXXFLAGS. Ignore libCrun as
13832 # -library=stlport4 depends on it.
13833 case " $CXX $CXXFLAGS " in
13834 *" -library=stlport4 "*)
13835 solaris_use_stlport4
=yes
13839 if test "$solaris_use_stlport4" != yes; then
13840 postdeps_CXX
='-library=Cstd -library=Crun'
13847 case $cc_basename in
13849 # The more standards-conforming stlport4 library is
13850 # incompatible with the Cstd library. Avoid specifying
13851 # it if it's in CXXFLAGS. Ignore libCrun as
13852 # -library=stlport4 depends on it.
13853 case " $CXX $CXXFLAGS " in
13854 *" -library=stlport4 "*)
13855 solaris_use_stlport4
=yes
13859 # Adding this requires a known-good setup of shared libraries for
13860 # Sun compiler versions before 5.6, else PIC objects from an old
13861 # archive will be linked into the output, leading to subtle bugs.
13862 if test "$solaris_use_stlport4" != yes; then
13863 postdeps_CXX
='-library=Cstd -library=Crun'
13871 case " $postdeps_CXX " in
13872 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
13874 compiler_lib_search_dirs_CXX
=
13875 if test -n "${compiler_lib_search_path_CXX}"; then
13876 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13909 lt_prog_compiler_wl_CXX
=
13910 lt_prog_compiler_pic_CXX
=
13911 lt_prog_compiler_static_CXX
=
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13914 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13916 # C++ specific cases for pic, static, wl, etc.
13917 if test "$GXX" = yes; then
13918 lt_prog_compiler_wl_CXX
='-Wl,'
13919 lt_prog_compiler_static_CXX
='-static'
13923 # All AIX code is PIC.
13924 if test "$host_cpu" = ia64
; then
13925 # AIX 5 now supports IA64 processor
13926 lt_prog_compiler_static_CXX
='-Bstatic'
13928 lt_prog_compiler_pic_CXX
='-fPIC'
13934 # see comment about AmigaOS4 .so support
13935 lt_prog_compiler_pic_CXX
='-fPIC'
13938 # FIXME: we need at least 68020 code to build shared libraries, but
13939 # adding the `-m68020' flag to GCC prevents building anything better,
13941 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
13946 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
13947 # PIC is the default for these OSes.
13949 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
13950 # This hack is so that the source file can tell whether it is being
13951 # built for inclusion in a dll (and should export symbols for example).
13952 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13953 # (--disable-auto-import) libraries
13954 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
13956 darwin
* | rhapsody
*)
13957 # PIC is the default on this platform
13958 # Common symbols not allowed in MH_DYLIB files
13959 lt_prog_compiler_pic_CXX
='-fno-common'
13962 # DJGPP does not support shared libraries at all
13963 lt_prog_compiler_pic_CXX
=
13966 # PIC is the default for Haiku.
13967 # The "-static" flag exists, but is broken.
13968 lt_prog_compiler_static_CXX
=
13971 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13972 # Instead, we relocate shared libraries at runtime.
13975 if test -d /usr
/nec
; then
13976 lt_prog_compiler_pic_CXX
=-Kconform_pic
13980 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13981 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13982 # sets the default TLS model and affects inlining.
13987 lt_prog_compiler_pic_CXX
='-fPIC'
13992 # QNX uses GNU C++, but need to define -shared option too, otherwise
13993 # it will coredump.
13994 lt_prog_compiler_pic_CXX
='-fPIC -shared'
13997 lt_prog_compiler_pic_CXX
='-fPIC'
14003 # All AIX code is PIC.
14004 if test "$host_cpu" = ia64
; then
14005 # AIX 5 now supports IA64 processor
14006 lt_prog_compiler_static_CXX
='-Bstatic'
14008 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
14012 case $cc_basename in
14014 # Green Hills C++ Compiler
14015 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14020 case $cc_basename in
14022 lt_prog_compiler_pic_CXX
='-KPIC'
14025 # Green Hills C++ Compiler
14026 lt_prog_compiler_pic_CXX
='-pic'
14032 freebsd
* | dragonfly
*)
14033 # FreeBSD uses GNU C++
14035 hpux9
* | hpux10
* | hpux11
*)
14036 case $cc_basename in
14038 lt_prog_compiler_wl_CXX
='-Wl,'
14039 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
14040 if test "$host_cpu" != ia64
; then
14041 lt_prog_compiler_pic_CXX
='+Z'
14045 lt_prog_compiler_wl_CXX
='-Wl,'
14046 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
14052 lt_prog_compiler_pic_CXX
='+Z'
14061 # This is c89, which is MS Visual C++ (no shared libs)
14062 # Anyone wants to do a port?
14064 irix5
* | irix6
* | nonstopux
*)
14065 case $cc_basename in
14067 lt_prog_compiler_wl_CXX
='-Wl,'
14068 lt_prog_compiler_static_CXX
='-non_shared'
14069 # CC pic flag -KPIC is the default.
14075 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
14076 case $cc_basename in
14079 lt_prog_compiler_wl_CXX
='--backend -Wl,'
14080 lt_prog_compiler_pic_CXX
='-fPIC'
14083 # old Intel C++ for x86_64 which still supported -KPIC.
14084 lt_prog_compiler_wl_CXX
='-Wl,'
14085 lt_prog_compiler_pic_CXX
='-KPIC'
14086 lt_prog_compiler_static_CXX
='-static'
14089 # Intel C++, used to be incompatible with GCC.
14090 # ICC 10 doesn't accept -KPIC any more.
14091 lt_prog_compiler_wl_CXX
='-Wl,'
14092 lt_prog_compiler_pic_CXX
='-fPIC'
14093 lt_prog_compiler_static_CXX
='-static'
14096 # Portland Group C++ compiler
14097 lt_prog_compiler_wl_CXX
='-Wl,'
14098 lt_prog_compiler_pic_CXX
='-fpic'
14099 lt_prog_compiler_static_CXX
='-Bstatic'
14103 # Make sure the PIC flag is empty. It appears that all Alpha
14104 # Linux and Compaq Tru64 Unix objects are PIC.
14105 lt_prog_compiler_pic_CXX
=
14106 lt_prog_compiler_static_CXX
='-non_shared'
14108 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
14109 # IBM XL 8.0, 9.0 on PPC and BlueGene
14110 lt_prog_compiler_wl_CXX
='-Wl,'
14111 lt_prog_compiler_pic_CXX
='-qpic'
14112 lt_prog_compiler_static_CXX
='-qstaticlink'
14115 case `$CC -V 2>&1 | sed 5q` in
14118 lt_prog_compiler_pic_CXX
='-KPIC'
14119 lt_prog_compiler_static_CXX
='-Bstatic'
14120 lt_prog_compiler_wl_CXX
='-Qoption ld '
14131 case $cc_basename in
14133 lt_prog_compiler_pic_CXX
='-W c,exportall'
14142 # QNX uses GNU C++, but need to define -shared option too, otherwise
14143 # it will coredump.
14144 lt_prog_compiler_pic_CXX
='-fPIC -shared'
14146 osf3
* | osf4
* | osf5
*)
14147 case $cc_basename in
14149 lt_prog_compiler_wl_CXX
='--backend -Wl,'
14152 # Rational C++ 2.4.1
14153 lt_prog_compiler_pic_CXX
='-pic'
14156 # Digital/Compaq C++
14157 lt_prog_compiler_wl_CXX
='-Wl,'
14158 # Make sure the PIC flag is empty. It appears that all Alpha
14159 # Linux and Compaq Tru64 Unix objects are PIC.
14160 lt_prog_compiler_pic_CXX
=
14161 lt_prog_compiler_static_CXX
='-non_shared'
14170 case $cc_basename in
14172 # Sun C++ 4.2, 5.x and Centerline C++
14173 lt_prog_compiler_pic_CXX
='-KPIC'
14174 lt_prog_compiler_static_CXX
='-Bstatic'
14175 lt_prog_compiler_wl_CXX
='-Qoption ld '
14178 # Green Hills C++ Compiler
14179 lt_prog_compiler_pic_CXX
='-PIC'
14186 case $cc_basename in
14189 lt_prog_compiler_pic_CXX
='-pic'
14190 lt_prog_compiler_static_CXX
='-Bstatic'
14194 lt_prog_compiler_pic_CXX
='-pic'
14200 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
14201 case $cc_basename in
14203 lt_prog_compiler_wl_CXX
='-Wl,'
14204 lt_prog_compiler_pic_CXX
='-KPIC'
14205 lt_prog_compiler_static_CXX
='-Bstatic'
14210 case $cc_basename in
14212 # NonStop-UX NCC 3.20
14213 lt_prog_compiler_pic_CXX
='-KPIC'
14222 lt_prog_compiler_can_build_shared_CXX
=no
14228 # For platforms which do not support PIC, -DPIC is meaningless:
14230 lt_prog_compiler_pic_CXX
=
14233 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14237 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14242 # Check to make sure the PIC flag actually works.
14244 if test -n "$lt_prog_compiler_pic_CXX"; then
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14246 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14247 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14248 $as_echo_n "(cached) " >&6
14250 lt_cv_prog_compiler_pic_works_CXX
=no
14251 ac_outfile
=conftest.
$ac_objext
14252 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14253 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
14254 # Insert the option either (1) after the last *FLAGS variable, or
14255 # (2) before a word containing "conftest.", or (3) at the end.
14256 # Note that $ac_compile itself does not contain backslashes and begins
14257 # with a dollar sign (not a hyphen), so the echo should work correctly.
14258 # The option is referenced via a variable to avoid confusing sed.
14259 lt_compile
=`echo "$ac_compile" | $SED \
14260 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14261 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14262 -e 's:$: $lt_compiler_flag:'`
14263 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14264 (eval "$lt_compile" 2>conftest.err
)
14266 cat conftest.err
>&5
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 if (exit $ac_status) && test -s "$ac_outfile"; then
14269 # The compiler can only warn and ignore the option if not recognized
14270 # So say no if there are warnings other than the usual output.
14271 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
14272 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14273 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
14274 lt_cv_prog_compiler_pic_works_CXX
=yes
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14281 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14283 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
14284 case $lt_prog_compiler_pic_CXX in
14286 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
14289 lt_prog_compiler_pic_CXX
=
14290 lt_prog_compiler_can_build_shared_CXX
=no
14298 # Check to make sure the static flag actually works.
14300 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14302 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14303 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14304 $as_echo_n "(cached) " >&6
14306 lt_cv_prog_compiler_static_works_CXX
=no
14307 save_LDFLAGS
="$LDFLAGS"
14308 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
14309 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
14310 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
14311 # The linker can only warn and ignore the option if not recognized
14312 # So say no if there are warnings
14313 if test -s conftest.err
; then
14314 # Append any errors to the config.log.
14315 cat conftest.err
1>&5
14316 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
14317 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14318 if diff conftest.exp conftest.er2
>/dev
/null
; then
14319 lt_cv_prog_compiler_static_works_CXX
=yes
14322 lt_cv_prog_compiler_static_works_CXX
=yes
14326 LDFLAGS
="$save_LDFLAGS"
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14330 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14332 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
14335 lt_prog_compiler_static_CXX
=
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14342 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14343 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14344 $as_echo_n "(cached) " >&6
14346 lt_cv_prog_compiler_c_o_CXX
=no
14347 $RM -r conftest
2>/dev
/null
14351 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14353 lt_compiler_flag
="-o out/conftest2.$ac_objext"
14354 # Insert the option either (1) after the last *FLAGS variable, or
14355 # (2) before a word containing "conftest.", or (3) at the end.
14356 # Note that $ac_compile itself does not contain backslashes and begins
14357 # with a dollar sign (not a hyphen), so the echo should work correctly.
14358 lt_compile
=`echo "$ac_compile" | $SED \
14359 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14360 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14361 -e 's:$: $lt_compiler_flag:'`
14362 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14363 (eval "$lt_compile" 2>out
/conftest.err
)
14365 cat out
/conftest.err
>&5
14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
14369 # The compiler can only warn and ignore the option if not recognized
14370 # So say no if there are warnings
14371 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
14372 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
14373 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
14374 lt_cv_prog_compiler_c_o_CXX
=yes
14379 # SGI C++ compiler will create directory out/ii_files/ for
14380 # template instantiation
14381 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
14382 $RM out
/* && rmdir out
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14389 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14394 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14395 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14396 $as_echo_n "(cached) " >&6
14398 lt_cv_prog_compiler_c_o_CXX
=no
14399 $RM -r conftest
2>/dev
/null
14403 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14405 lt_compiler_flag
="-o out/conftest2.$ac_objext"
14406 # Insert the option either (1) after the last *FLAGS variable, or
14407 # (2) before a word containing "conftest.", or (3) at the end.
14408 # Note that $ac_compile itself does not contain backslashes and begins
14409 # with a dollar sign (not a hyphen), so the echo should work correctly.
14410 lt_compile
=`echo "$ac_compile" | $SED \
14411 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14412 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14413 -e 's:$: $lt_compiler_flag:'`
14414 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14415 (eval "$lt_compile" 2>out
/conftest.err
)
14417 cat out
/conftest.err
>&5
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
14421 # The compiler can only warn and ignore the option if not recognized
14422 # So say no if there are warnings
14423 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
14424 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
14425 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
14426 lt_cv_prog_compiler_c_o_CXX
=yes
14431 # SGI C++ compiler will create directory out/ii_files/ for
14432 # template instantiation
14433 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
14434 $RM out
/* && rmdir out
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14441 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14446 hard_links
="nottested"
14447 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
14448 # do not overwrite the value of need_locks provided by the user
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14450 $as_echo_n "checking if we can lock with hard links... " >&6; }
14453 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14455 ln conftest.a conftest.b
2>&5 || hard_links
=no
14456 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14458 $as_echo "$hard_links" >&6; }
14459 if test "$hard_links" = no
; then
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14461 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14471 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14473 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14476 # If we're using GNU nm, then we don't want the "-C" option.
14477 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14478 # Also, AIX nm treats weak defined symbols like other global defined
14479 # symbols, whereas GNU nm marks them as "W".
14480 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
14481 export_symbols_cmds_CXX
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14483 export_symbols_cmds_CXX
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14487 export_symbols_cmds_CXX
="$ltdll_cmds"
14489 cygwin
* | mingw
* | cegcc
*)
14490 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14493 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14496 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14499 $as_echo "$ld_shlibs_CXX" >&6; }
14500 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
14502 with_gnu_ld_CXX
=$with_gnu_ld
14510 # Do we need to explicitly link libc?
14512 case "x$archive_cmds_need_lc_CXX" in
14514 # Assume -lc should be added
14515 archive_cmds_need_lc_CXX
=yes
14517 if test "$enable_shared" = yes && test "$GCC" = yes; then
14518 case $archive_cmds_CXX in
14520 # FIXME: we may have to deal with multi-command sequences.
14523 # Test whether the compiler implicitly links with -lc since on some
14524 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14525 # to ld, don't add -lc before -lgcc.
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14527 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14528 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14529 $as_echo_n "(cached) " >&6
14532 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14535 (eval $ac_compile) 2>&5
14537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14538 test $ac_status = 0; } 2>conftest.err
; then
14541 libobjs
=conftest.
$ac_objext
14543 wl
=$lt_prog_compiler_wl_CXX
14544 pic_flag
=$lt_prog_compiler_pic_CXX
14550 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
14551 allow_undefined_flag_CXX
=
14552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14553 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
14555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14556 test $ac_status = 0; }
14558 lt_cv_archive_cmds_need_lc_CXX
=no
14560 lt_cv_archive_cmds_need_lc_CXX
=yes
14562 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
14564 cat conftest.err
1>&5
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14570 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14571 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14642 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14644 library_names_spec
=
14645 libname_spec
='lib$name'
14649 postuninstall_cmds
=
14653 shlibpath_overrides_runpath
=unknown
14655 dynamic_linker
="$host_os ld.so"
14656 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
14657 need_lib_prefix
=unknown
14658 hardcode_into_libs
=no
14660 # when you set need_version to no, make sure it does not cause -set_version
14661 # flags to be left without arguments
14662 need_version
=unknown
14667 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
14668 shlibpath_var
=LIBPATH
14670 # AIX 3 has no versioning support, so we append a major version to the name.
14671 soname_spec
='${libname}${release}${shared_ext}$major'
14678 hardcode_into_libs
=yes
14679 if test "$host_cpu" = ia64
; then
14680 # AIX 5 supports IA64
14681 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14682 shlibpath_var
=LD_LIBRARY_PATH
14684 # With GCC up to 2.95.x, collect2 would create an import file
14685 # for dependence libraries. The import file would start with
14686 # the line `#! .'. This would cause the generated library to
14687 # depend on `.', always an invalid library. This was fixed in
14688 # development snapshots of GCC prior to 3.0.
14690 aix4 | aix4.
[01] | aix4.
[01].
*)
14691 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14693 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
14696 can_build_shared
=no
14700 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14701 # soname into executable. Probably we can add versioning support to
14702 # collect2, so additional links can be useful in future.
14703 if test "$aix_use_runtimelinking" = yes; then
14704 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14705 # instead of lib<name>.a to let people know that these are not
14706 # typical AIX shared libraries.
14707 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14709 # We preserve .a as extension for shared libraries through AIX4.2
14710 # and later when we are not doing run time linking.
14711 library_names_spec
='${libname}${release}.a $libname.a'
14712 soname_spec
='${libname}${release}${shared_ext}$major'
14714 shlibpath_var
=LIBPATH
14721 # Since July 2007 AmigaOS4 officially supports .so libraries.
14722 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14723 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14726 library_names_spec
='$libname.ixlibrary $libname.a'
14727 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14728 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'
14734 library_names_spec
='${libname}${shared_ext}'
14735 dynamic_linker
="$host_os ld.so"
14736 shlibpath_var
=LIBRARY_PATH
14742 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14743 soname_spec
='${libname}${release}${shared_ext}$major'
14744 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
14745 shlibpath_var
=LD_LIBRARY_PATH
14746 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14747 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
14748 # the default ld.so.conf also contains /usr/contrib/lib and
14749 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14750 # libtool to hard-code these into programs
14753 cygwin
* | mingw
* | pw32
* | cegcc
*)
14754 version_type
=windows
14759 case $GCC,$host_os in
14760 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
14761 library_names_spec
='$libname.dll.a'
14762 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14763 postinstall_cmds
='base_file=`basename \${file}`~
14764 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14765 dldir=$destdir/`dirname \$dlpath`~
14766 test -d \$dldir || mkdir -p \$dldir~
14767 $install_prog $dir/$dlname \$dldir/$dlname~
14768 chmod a+x \$dldir/$dlname~
14769 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14770 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14772 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14773 dlpath=$dir/\$dldll~
14775 shlibpath_overrides_runpath
=yes
14779 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14780 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14784 # MinGW DLLs use traditional 'lib' prefix
14785 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14788 # pw32 DLLs use 'pw' prefix rather than 'lib'
14789 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14795 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14798 dynamic_linker
='Win32 ld.exe'
14799 # FIXME: first we should search . and the directory the executable is in
14803 darwin
* | rhapsody
*)
14804 dynamic_linker
="$host_os dyld"
14805 version_type
=darwin
14808 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14809 soname_spec
='${libname}${release}${major}$shared_ext'
14810 shlibpath_overrides_runpath
=yes
14811 shlibpath_var
=DYLD_LIBRARY_PATH
14812 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
14814 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
14821 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14822 soname_spec
='${libname}${release}${shared_ext}$major'
14823 shlibpath_var
=LD_LIBRARY_PATH
14826 freebsd
* | dragonfly
*)
14827 # DragonFly does not have aout. When/if they implement a new
14828 # versioning mechanism, adjust this.
14829 if test -x /usr
/bin
/objformat
; then
14830 objformat
=`/usr/bin/objformat`
14833 freebsd
[23].
*) objformat
=aout
;;
14834 *) objformat
=elf
;;
14837 version_type
=freebsd-
$objformat
14838 case $version_type in
14840 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14845 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14849 shlibpath_var
=LD_LIBRARY_PATH
14852 shlibpath_overrides_runpath
=yes
14854 freebsd3.
[01]* | freebsdelf3.
[01]*)
14855 shlibpath_overrides_runpath
=yes
14856 hardcode_into_libs
=yes
14858 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
14859 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
14860 shlibpath_overrides_runpath
=no
14861 hardcode_into_libs
=yes
14863 *) # from 4.6 on, and DragonFly
14864 shlibpath_overrides_runpath
=yes
14865 hardcode_into_libs
=yes
14874 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14875 soname_spec
='${libname}${release}${shared_ext}$major'
14876 shlibpath_var
=LD_LIBRARY_PATH
14877 hardcode_into_libs
=yes
14884 dynamic_linker
="$host_os runtime_loader"
14885 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14886 soname_spec
='${libname}${release}${shared_ext}$major'
14887 shlibpath_var
=LIBRARY_PATH
14888 shlibpath_overrides_runpath
=yes
14889 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14890 hardcode_into_libs
=yes
14893 hpux9
* | hpux10
* | hpux11
*)
14894 # Give a soname corresponding to the major version so that dld.sl refuses to
14895 # link against other versions.
14902 hardcode_into_libs
=yes
14903 dynamic_linker
="$host_os dld.so"
14904 shlibpath_var
=LD_LIBRARY_PATH
14905 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14906 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14907 soname_spec
='${libname}${release}${shared_ext}$major'
14908 if test "X$HPUX_IA64_MODE" = X32
; then
14909 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14911 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
14913 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14917 hardcode_into_libs
=yes
14918 dynamic_linker
="$host_os dld.sl"
14919 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
14920 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14921 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14922 soname_spec
='${libname}${release}${shared_ext}$major'
14923 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14924 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14928 dynamic_linker
="$host_os dld.sl"
14929 shlibpath_var
=SHLIB_PATH
14930 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
14931 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14932 soname_spec
='${libname}${release}${shared_ext}$major'
14935 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14936 postinstall_cmds
='chmod 555 $lib'
14937 # or fails outright, so override atomically:
14938 install_override_mode
=555
14945 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14946 soname_spec
='${libname}${release}${shared_ext}$major'
14947 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
14948 shlibpath_var
=LD_LIBRARY_PATH
14949 shlibpath_overrides_runpath
=no
14950 hardcode_into_libs
=yes
14953 irix5
* | irix6
* | nonstopux
*)
14955 nonstopux
*) version_type
=nonstopux
;;
14957 if test "$lt_cv_prog_gnu_ld" = yes; then
14965 soname_spec
='${libname}${release}${shared_ext}$major'
14966 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14968 irix5
* | nonstopux
*)
14969 libsuff
= shlibsuff
=
14972 case $LD in # libtool.m4 will add one of these switches to LD
14973 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
14974 libsuff
= shlibsuff
= libmagic
=32-bit;;
14975 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
14976 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
14977 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
14978 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
14979 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
14983 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
14984 shlibpath_overrides_runpath
=no
14985 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14986 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
14987 hardcode_into_libs
=yes
14990 # No shared lib support for Linux oldld, aout, or coff.
14991 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
14995 # This must be Linux ELF.
14996 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15000 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15001 soname_spec
='${libname}${release}${shared_ext}$major'
15002 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15003 shlibpath_var
=LD_LIBRARY_PATH
15004 shlibpath_overrides_runpath
=no
15006 # Some binutils ld are patched to set DT_RUNPATH
15007 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15008 $as_echo_n "(cached) " >&6
15010 lt_cv_shlibpath_overrides_runpath
=no
15011 save_LDFLAGS
=$LDFLAGS
15012 save_libdir
=$libdir
15013 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15014 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15016 /* end confdefs.h. */
15026 if ac_fn_cxx_try_link
"$LINENO"; then :
15027 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
15028 lt_cv_shlibpath_overrides_runpath
=yes
15031 rm -f core conftest.err conftest.
$ac_objext \
15032 conftest
$ac_exeext conftest.
$ac_ext
15033 LDFLAGS
=$save_LDFLAGS
15034 libdir
=$save_libdir
15038 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
15040 # This implies no fast_install, which is unacceptable.
15041 # Some rework will be needed to allow for fast_install
15042 # before this can be enabled.
15043 hardcode_into_libs
=yes
15045 # Append ld.so.conf contents to the search path
15046 if test -f /etc
/ld.so.conf
; then
15047 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' ' '`
15048 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
15051 # We used to test for /lib/ld.so.1 and disable shared libraries on
15052 # powerpc, because MkLinux only supported shared libraries with the
15053 # GNU dynamic linker. Since this was broken with cross compilers,
15054 # most powerpc-linux boxes support dynamic linking these days and
15055 # people can always --disable-shared, the test was removed, and we
15056 # assume the GNU/Linux dynamic linker is in use.
15057 dynamic_linker
='GNU/Linux ld.so'
15064 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15065 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15066 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15067 dynamic_linker
='NetBSD (a.out) ld.so'
15069 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15070 soname_spec
='${libname}${release}${shared_ext}$major'
15071 dynamic_linker
='NetBSD ld.elf_so'
15073 shlibpath_var
=LD_LIBRARY_PATH
15074 shlibpath_overrides_runpath
=yes
15075 hardcode_into_libs
=yes
15080 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15081 shlibpath_var
=LD_LIBRARY_PATH
15082 shlibpath_overrides_runpath
=yes
15089 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15090 soname_spec
='${libname}${release}${shared_ext}$major'
15091 shlibpath_var
=LD_LIBRARY_PATH
15092 shlibpath_overrides_runpath
=no
15093 hardcode_into_libs
=yes
15094 dynamic_linker
='ldqnx.so'
15099 sys_lib_dlsearch_path_spec
="/usr/lib"
15101 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15103 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
15104 *) need_version
=no
;;
15106 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15107 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15108 shlibpath_var
=LD_LIBRARY_PATH
15109 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15111 openbsd2.
[89] | openbsd2.
[89].
*)
15112 shlibpath_overrides_runpath
=no
15115 shlibpath_overrides_runpath
=yes
15119 shlibpath_overrides_runpath
=yes
15124 libname_spec
='$name'
15127 library_names_spec
='$libname${shared_ext} $libname.a'
15128 dynamic_linker
='OS/2 ld.exe'
15129 shlibpath_var
=LIBPATH
15132 osf3
* | osf4
* | osf5
*)
15136 soname_spec
='${libname}${release}${shared_ext}$major'
15137 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15138 shlibpath_var
=LD_LIBRARY_PATH
15139 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15140 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
15151 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15152 soname_spec
='${libname}${release}${shared_ext}$major'
15153 shlibpath_var
=LD_LIBRARY_PATH
15154 shlibpath_overrides_runpath
=yes
15155 hardcode_into_libs
=yes
15156 # ldd complains unless libraries are executable
15157 postinstall_cmds
='chmod +x $lib'
15162 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15163 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15164 shlibpath_var
=LD_LIBRARY_PATH
15165 shlibpath_overrides_runpath
=yes
15166 if test "$with_gnu_ld" = yes; then
15174 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15175 soname_spec
='${libname}${release}${shared_ext}$major'
15176 shlibpath_var
=LD_LIBRARY_PATH
15177 case $host_vendor in
15179 shlibpath_overrides_runpath
=no
15181 runpath_var
=LD_RUN_PATH
15189 shlibpath_overrides_runpath
=no
15190 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
15196 if test -d /usr
/nec
;then
15198 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15199 soname_spec
='$libname${shared_ext}.$major'
15200 shlibpath_var
=LD_LIBRARY_PATH
15204 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
15205 version_type
=freebsd-elf
15208 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15209 soname_spec
='${libname}${release}${shared_ext}$major'
15210 shlibpath_var
=LD_LIBRARY_PATH
15211 shlibpath_overrides_runpath
=yes
15212 hardcode_into_libs
=yes
15213 if test "$with_gnu_ld" = yes; then
15214 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15216 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
15219 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
15223 sys_lib_dlsearch_path_spec
='/usr/lib'
15227 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15231 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15232 shlibpath_var
=LD_LIBRARY_PATH
15233 shlibpath_overrides_runpath
=no
15234 hardcode_into_libs
=yes
15239 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15240 soname_spec
='${libname}${release}${shared_ext}$major'
15241 shlibpath_var
=LD_LIBRARY_PATH
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15249 $as_echo "$dynamic_linker" >&6; }
15250 test "$dynamic_linker" = no
&& can_build_shared
=no
15252 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
15253 if test "$GCC" = yes; then
15254 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15257 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15258 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
15260 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15261 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15302 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15303 hardcode_action_CXX
=
15304 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15305 test -n "$runpath_var_CXX" ||
15306 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15308 # We can hardcode non-existent directories.
15309 if test "$hardcode_direct_CXX" != no
&&
15310 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15311 # have to relink, otherwise we might link with an installed library
15312 # when we should be linking with a yet-to-be-installed one
15313 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15314 test "$hardcode_minus_L_CXX" != no
; then
15315 # Linking always hardcodes the temporary library directory.
15316 hardcode_action_CXX
=relink
15318 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15319 hardcode_action_CXX
=immediate
15322 # We cannot hardcode anything, or else we can only hardcode existing
15324 hardcode_action_CXX
=unsupported
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15327 $as_echo "$hardcode_action_CXX" >&6; }
15329 if test "$hardcode_action_CXX" = relink ||
15330 test "$inherit_rpath_CXX" = yes; then
15331 # Fast installation is not supported
15332 enable_fast_install
=no
15333 elif test "$shlibpath_overrides_runpath" = yes ||
15334 test "$enable_shared" = no
; then
15335 # Fast installation is not necessary
15336 enable_fast_install
=needless
15345 fi # test -n "$compiler"
15351 with_gnu_ld
=$lt_save_with_gnu_ld
15352 lt_cv_path_LDCXX
=$lt_cv_path_LD
15353 lt_cv_path_LD
=$lt_save_path_LD
15354 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
15355 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
15356 fi # test "$_lt_caught_CXX_error" != yes
15359 ac_cpp
='$CPP $CPPFLAGS'
15360 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15361 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15362 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15376 ac_config_commands
="$ac_config_commands libtool"
15381 # Only expand once:
15385 for ac_prog
in gawk mawk nawk
awk
15387 # Extract the first word of "$ac_prog", so it can be a program name with args.
15388 set dummy
$ac_prog; ac_word
=$2
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15390 $as_echo_n "checking for $ac_word... " >&6; }
15391 if test "${ac_cv_prog_AWK+set}" = set; then :
15392 $as_echo_n "(cached) " >&6
15394 if test -n "$AWK"; then
15395 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
15397 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15398 for as_dir
in $PATH
15401 test -z "$as_dir" && as_dir
=.
15402 for ac_exec_ext
in '' $ac_executable_extensions; do
15403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15404 ac_cv_prog_AWK
="$ac_prog"
15405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15414 AWK
=$ac_cv_prog_AWK
15415 if test -n "$AWK"; then
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
15417 $as_echo "$AWK" >&6; }
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15420 $as_echo "no" >&6; }
15424 test -n "$AWK" && break
15428 "") as_fn_error
"can't build without awk" "$LINENO" 5 ;;
15434 # The cast to long int works around a bug in the HP C Compiler
15435 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15436 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15437 # This bug is HP SR number 8606223364.
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15439 $as_echo_n "checking size of void *... " >&6; }
15440 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15441 $as_echo_n "(cached) " >&6
15443 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15446 if test "$ac_cv_type_void_p" = yes; then
15447 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15449 { as_fn_set_status
77
15450 as_fn_error
"cannot compute sizeof (void *)
15451 See \`config.log' for more details." "$LINENO" 5; }; }
15453 ac_cv_sizeof_void_p
=0
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15459 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15463 cat >>confdefs.h
<<_ACEOF
15464 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15469 if test "${multilib}" = "yes"; then
15470 multilib_arg
="--enable-multilib"
15475 # Get target configury.
15476 unset TSAN_SUPPORTED
15477 unset LSAN_SUPPORTED
15478 .
${srcdir}/configure.tgt
15479 if test "x$TSAN_SUPPORTED" = "xyes"; then
15480 TSAN_SUPPORTED_TRUE
=
15481 TSAN_SUPPORTED_FALSE
='#'
15483 TSAN_SUPPORTED_TRUE
='#'
15484 TSAN_SUPPORTED_FALSE
=
15487 if test "x$LSAN_SUPPORTED" = "xyes"; then
15488 LSAN_SUPPORTED_TRUE
=
15489 LSAN_SUPPORTED_FALSE
='#'
15491 LSAN_SUPPORTED_TRUE
='#'
15492 LSAN_SUPPORTED_FALSE
=
15496 # Check for functions needed.
15497 for ac_func
in clock_getres clock_gettime clock_settime
15499 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15500 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15501 eval as_val
=\$
$as_ac_var
15502 if test "x$as_val" = x
""yes; then :
15503 cat >>confdefs.h
<<_ACEOF
15504 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15511 # Common libraries that we need to link against for all sanitizer libs.
15512 link_sanitizer_common
='-lpthread -ldl -lm'
15514 # Set up the set of additional libraries that we need to link against for libasan.
15515 link_libasan
=$link_sanitizer_common
15518 # Set up the set of additional libraries that we need to link against for libtsan.
15519 link_libtsan
=$link_sanitizer_common
15522 # Set up the set of additional libraries that we need to link against for libubsan.
15523 link_libubsan
=$link_sanitizer_common
15526 # Set up the set of additional libraries that we need to link against for liblsan.
15527 link_liblsan
=$link_sanitizer_common
15530 # At least for glibc, clock_gettime is in librt. But don't pull that
15531 # in if it still doesn't give us the function we want. This
15532 # test is copied from libgomp.
15533 if test $ac_cv_func_clock_gettime = no
; then
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15535 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15536 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
15537 $as_echo_n "(cached) " >&6
15539 ac_check_lib_save_LIBS
=$LIBS
15541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15542 /* end confdefs.h. */
15544 /* Override any GCC internal prototype to avoid an error.
15545 Use char because int might match the return type of a GCC
15546 builtin and then its argument prototype would still apply. */
15550 char clock_gettime ();
15554 return clock_gettime ();
15559 if ac_fn_c_try_link
"$LINENO"; then :
15560 ac_cv_lib_rt_clock_gettime
=yes
15562 ac_cv_lib_rt_clock_gettime
=no
15564 rm -f core conftest.err conftest.
$ac_objext \
15565 conftest
$ac_exeext conftest.
$ac_ext
15566 LIBS
=$ac_check_lib_save_LIBS
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15569 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15570 if test "x$ac_cv_lib_rt_clock_gettime" = x
""yes; then :
15571 link_libasan
="-lrt $link_libasan"
15572 link_libtsan
="-lrt $link_libtsan"
15573 # Other sanitizers do not override clock_* API
15580 *-*-darwin*) MAC_INTERPOSE
=true
; enable_static
=no
;;
15581 *) MAC_INTERPOSE
=false
;;
15583 if $MAC_INTERPOSE; then
15584 USING_MAC_INTERPOSE_TRUE
=
15585 USING_MAC_INTERPOSE_FALSE
='#'
15587 USING_MAC_INTERPOSE_TRUE
='#'
15588 USING_MAC_INTERPOSE_FALSE
=
15592 backtrace_supported
=yes
15594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary platform features" >&5
15595 $as_echo_n "checking for necessary platform features... " >&6; }
15598 # Some old Linux distributions miss required syscalls.
15599 sanitizer_supported
=no
15600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15601 /* end confdefs.h. */
15602 #include <sys/syscall.h>
15607 syscall (__NR_gettid);
15608 syscall (__NR_futex);
15609 syscall (__NR_exit_group);
15615 if ac_fn_c_try_compile
"$LINENO"; then :
15616 sanitizer_supported
=yes
15618 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15621 sanitizer_supported
=yes
15624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sanitizer_supported" >&5
15625 $as_echo "$sanitizer_supported" >&6; }
15626 if test "$sanitizer_supported" = yes; then
15627 SANITIZER_SUPPORTED_TRUE
=
15628 SANITIZER_SUPPORTED_FALSE
='#'
15630 SANITIZER_SUPPORTED_TRUE
='#'
15631 SANITIZER_SUPPORTED_FALSE
=
15635 # Test for __sync support.
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
15637 $as_echo_n "checking __sync extensions... " >&6; }
15638 if test "${libsanitizer_cv_sys_sync+set}" = set; then :
15639 $as_echo_n "(cached) " >&6
15641 if test -n "${with_target_subdir}"; then
15642 libsanitizer_cv_sys_sync
=yes
15644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15645 /* end confdefs.h. */
15650 __sync_bool_compare_and_swap (&i, i, i);
15651 __sync_lock_test_and_set (&i, 1);
15652 __sync_lock_release (&i);
15657 if ac_fn_c_try_link
"$LINENO"; then :
15658 libsanitizer_cv_sys_sync
=yes
15660 libsanitizer_cv_sys_sync
=no
15662 rm -f core conftest.err conftest.
$ac_objext \
15663 conftest
$ac_exeext conftest.
$ac_ext
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_sync" >&5
15667 $as_echo "$libsanitizer_cv_sys_sync" >&6; }
15668 if test "$libsanitizer_cv_sys_sync" = "yes"; then
15670 $as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
15674 # Test for __atomic support.
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
15676 $as_echo_n "checking __atomic extensions... " >&6; }
15677 if test "${libsanitizer_cv_sys_atomic+set}" = set; then :
15678 $as_echo_n "(cached) " >&6
15680 if test -n "${with_target_subdir}"; then
15681 libsanitizer_cv_sys_atomic
=yes
15683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15684 /* end confdefs.h. */
15689 __atomic_load_n (&i, __ATOMIC_ACQUIRE);
15690 __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
15695 if ac_fn_c_try_link
"$LINENO"; then :
15696 libsanitizer_cv_sys_atomic
=yes
15698 libsanitizer_cv_sys_atomic
=no
15700 rm -f core conftest.err conftest.
$ac_objext \
15701 conftest
$ac_exeext conftest.
$ac_ext
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_atomic" >&5
15705 $as_echo "$libsanitizer_cv_sys_atomic" >&6; }
15706 if test "$libsanitizer_cv_sys_atomic" = "yes"; then
15708 $as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
15712 # The library needs to be able to read the executable itself. Compile
15713 # a file to determine the executable format. The awk script
15714 # filetype.awk prints out the file type.
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
15716 $as_echo_n "checking output filetype... " >&6; }
15717 if test "${libsanitizer_cv_sys_filetype+set}" = set; then :
15718 $as_echo_n "(cached) " >&6
15721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15722 /* end confdefs.h. */
15732 if ac_fn_c_try_compile
"$LINENO"; then :
15733 filetype
=`${AWK} -f $srcdir/../libbacktrace/filetype.awk conftest.$ac_objext`
15735 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15737 as_fn_error
"compiler failed
15738 See \`config.log' for more details." "$LINENO" 5; }
15740 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15741 libsanitizer_cv_sys_filetype
=$filetype
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_filetype" >&5
15744 $as_echo "$libsanitizer_cv_sys_filetype" >&6; }
15746 # Match the file type to decide what files to compile.
15748 case "$libsanitizer_cv_sys_filetype" in
15749 elf
*) FORMAT_FILE
="elf.lo" ;;
15750 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
15751 $as_echo "$as_me: WARNING: could not determine output file type" >&2;}
15752 FORMAT_FILE
="unknown.lo"
15753 backtrace_supported
=no
15760 case "$libsanitizer_cv_sys_filetype" in
15761 elf32
) elfsize
=32 ;;
15762 elf64
) elfsize
=64 ;;
15765 cat >>confdefs.h
<<_ACEOF
15766 #define BACKTRACE_ELF_SIZE $elfsize
15770 BACKTRACE_SUPPORTED
=0
15771 if test "$backtrace_supported" = "yes"; then
15772 BACKTRACE_SUPPORTED
=1
15778 inttype_headers
=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
15780 acx_cv_header_stdint
=stddef.h
15781 acx_cv_header_stdint_kind
="(already complete)"
15782 for i
in stdint.h
$inttype_headers; do
15783 unset ac_cv_type_uintptr_t
15784 unset ac_cv_type_uintmax_t
15785 unset ac_cv_type_int_least32_t
15786 unset ac_cv_type_int_fast32_t
15787 unset ac_cv_type_uint64_t
15788 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
15789 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
15792 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
15793 acx_cv_header_stdint
=$i
15798 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15801 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
15804 acx_cv_header_stdint_kind
="(mostly complete)"
15807 ac_fn_c_check_type
"$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
15810 if test "x$ac_cv_type_int_least32_t" = x
""yes; then :
15813 acx_cv_header_stdint_kind
="(mostly complete)"
15816 ac_fn_c_check_type
"$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
15819 if test "x$ac_cv_type_int_fast32_t" = x
""yes; then :
15822 acx_cv_header_stdint_kind
="(mostly complete)"
15825 ac_fn_c_check_type
"$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15828 if test "x$ac_cv_type_uint64_t" = x
""yes; then :
15831 acx_cv_header_stdint_kind
="(lacks uint64_t)"
15836 if test "$acx_cv_header_stdint" = stddef.h
; then
15837 acx_cv_header_stdint_kind
="(lacks uintmax_t)"
15838 for i
in stdint.h
$inttype_headers; do
15839 unset ac_cv_type_uintptr_t
15840 unset ac_cv_type_uint32_t
15841 unset ac_cv_type_uint64_t
15842 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
15843 ac_fn_c_check_type
"$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
15846 if test "x$ac_cv_type_uint32_t" = x
""yes; then :
15847 acx_cv_header_stdint
=$i
15852 ac_fn_c_check_type
"$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15855 if test "x$ac_cv_type_uint64_t" = x
""yes; then :
15859 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15862 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
15869 if test "$acx_cv_header_stdint" = stddef.h
; then
15870 acx_cv_header_stdint_kind
="(u_intXX_t style)"
15871 for i
in sys
/types.h
$inttype_headers; do
15872 unset ac_cv_type_u_int32_t
15873 unset ac_cv_type_u_int64_t
15874 $as_echo_n "looking for u_intXX_t types in $i, " >&6
15875 ac_fn_c_check_type
"$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
15878 if test "x$ac_cv_type_u_int32_t" = x
""yes; then :
15879 acx_cv_header_stdint
=$i
15884 ac_fn_c_check_type
"$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
15887 if test "x$ac_cv_type_u_int64_t" = x
""yes; then :
15894 if test "$acx_cv_header_stdint" = stddef.h
; then
15895 acx_cv_header_stdint_kind
="(using manual detection)"
15898 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t
=no
15899 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t
=no
15900 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t
=no
15901 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t
=no
15902 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t
=no
15904 # ----------------- Summarize what we found so far
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
15907 $as_echo_n "checking what to include in gstdint.h... " >&6; }
15909 case `$as_basename -- gstdint.h ||
15910 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
15911 Xgstdint.h : 'X\(//\)$' \| \
15912 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
15913 $as_echo X/gstdint.h |
15914 sed '/^.*\/\([^/][^/]*\)\/*$/{
15927 stdint.h
) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15928 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15929 inttypes.h
) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15930 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
15935 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
15937 # ----------------- done included file, check C basic types --------
15939 # Lacking an uintptr_t? Test size of void *
15940 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
15941 stddef.h
:* |
*:no
) # The cast to long int works around a bug in the HP C Compiler
15942 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15943 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15944 # This bug is HP SR number 8606223364.
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15946 $as_echo_n "checking size of void *... " >&6; }
15947 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15948 $as_echo_n "(cached) " >&6
15950 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15953 if test "$ac_cv_type_void_p" = yes; then
15954 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15955 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15956 { as_fn_set_status
77
15957 as_fn_error
"cannot compute sizeof (void *)
15958 See \`config.log' for more details." "$LINENO" 5; }; }
15960 ac_cv_sizeof_void_p
=0
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15966 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15970 cat >>confdefs.h
<<_ACEOF
15971 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15977 # Lacking an uint64_t? Test size of long
15978 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15979 stddef.h
:*:* |
*:no
:no
) # The cast to long int works around a bug in the HP C Compiler
15980 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15981 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15982 # This bug is HP SR number 8606223364.
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15984 $as_echo_n "checking size of long... " >&6; }
15985 if test "${ac_cv_sizeof_long+set}" = set; then :
15986 $as_echo_n "(cached) " >&6
15988 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
15991 if test "$ac_cv_type_long" = yes; then
15992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15994 { as_fn_set_status
77
15995 as_fn_error
"cannot compute sizeof (long)
15996 See \`config.log' for more details." "$LINENO" 5; }; }
15998 ac_cv_sizeof_long
=0
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16004 $as_echo "$ac_cv_sizeof_long" >&6; }
16008 cat >>confdefs.h
<<_ACEOF
16009 #define SIZEOF_LONG $ac_cv_sizeof_long
16015 if test $acx_cv_header_stdint = stddef.h
; then
16016 # Lacking a good header? Test size of everything and deduce all types.
16017 # The cast to long int works around a bug in the HP C Compiler
16018 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16019 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16020 # This bug is HP SR number 8606223364.
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16022 $as_echo_n "checking size of int... " >&6; }
16023 if test "${ac_cv_sizeof_int+set}" = set; then :
16024 $as_echo_n "(cached) " >&6
16026 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16029 if test "$ac_cv_type_int" = yes; then
16030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16032 { as_fn_set_status
77
16033 as_fn_error
"cannot compute sizeof (int)
16034 See \`config.log' for more details." "$LINENO" 5; }; }
16041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16042 $as_echo "$ac_cv_sizeof_int" >&6; }
16046 cat >>confdefs.h
<<_ACEOF
16047 #define SIZEOF_INT $ac_cv_sizeof_int
16051 # The cast to long int works around a bug in the HP C Compiler
16052 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16053 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16054 # This bug is HP SR number 8606223364.
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16056 $as_echo_n "checking size of short... " >&6; }
16057 if test "${ac_cv_sizeof_short+set}" = set; then :
16058 $as_echo_n "(cached) " >&6
16060 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16063 if test "$ac_cv_type_short" = yes; then
16064 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16066 { as_fn_set_status
77
16067 as_fn_error
"cannot compute sizeof (short)
16068 See \`config.log' for more details." "$LINENO" 5; }; }
16070 ac_cv_sizeof_short
=0
16075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16076 $as_echo "$ac_cv_sizeof_short" >&6; }
16080 cat >>confdefs.h
<<_ACEOF
16081 #define SIZEOF_SHORT $ac_cv_sizeof_short
16085 # The cast to long int works around a bug in the HP C Compiler
16086 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16087 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16088 # This bug is HP SR number 8606223364.
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16090 $as_echo_n "checking size of char... " >&6; }
16091 if test "${ac_cv_sizeof_char+set}" = set; then :
16092 $as_echo_n "(cached) " >&6
16094 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16097 if test "$ac_cv_type_char" = yes; then
16098 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16100 { as_fn_set_status
77
16101 as_fn_error
"cannot compute sizeof (char)
16102 See \`config.log' for more details." "$LINENO" 5; }; }
16104 ac_cv_sizeof_char
=0
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16110 $as_echo "$ac_cv_sizeof_char" >&6; }
16114 cat >>confdefs.h
<<_ACEOF
16115 #define SIZEOF_CHAR $ac_cv_sizeof_char
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16121 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
16122 case "$ac_cv_sizeof_char" in
16123 1) acx_cv_type_int8_t
=char
;;
16124 *) as_fn_error
"no 8-bit type, please report a bug" "$LINENO" 5
16126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16127 $as_echo "$acx_cv_type_int8_t" >&6; }
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16130 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
16131 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16132 2:*) acx_cv_type_int16_t
=int
;;
16133 *:2) acx_cv_type_int16_t
=short
;;
16134 *) as_fn_error
"no 16-bit type, please report a bug" "$LINENO" 5
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16137 $as_echo "$acx_cv_type_int16_t" >&6; }
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16140 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16141 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16142 4:*) acx_cv_type_int32_t
=int
;;
16143 *:4) acx_cv_type_int32_t
=long
;;
16144 *) as_fn_error
"no 32-bit type, please report a bug" "$LINENO" 5
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16147 $as_echo "$acx_cv_type_int32_t" >&6; }
16150 # These tests are here to make the output prettier
16152 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16153 case "$ac_cv_sizeof_long" in
16154 8) acx_cv_type_int64_t
=long
;;
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16157 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16159 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16162 # Now we can use the above types
16164 if test "$ac_cv_type_uintptr_t" != yes; then
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16166 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16167 case $ac_cv_sizeof_void_p in
16168 2) acx_cv_type_intptr_t
=int16_t
;;
16169 4) acx_cv_type_intptr_t
=int32_t
;;
16170 8) acx_cv_type_intptr_t
=int64_t
;;
16171 *) as_fn_error
"no equivalent for intptr_t, please report a bug" "$LINENO" 5
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16174 $as_echo "$acx_cv_type_intptr_t" >&6; }
16177 # ----------------- done all checks, emit header -------------
16178 ac_config_commands
="$ac_config_commands gstdint.h"
16183 for ac_header
in sys
/mman.h alloca.h
16185 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16186 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16187 eval as_val
=\$
$as_ac_Header
16188 if test "x$as_val" = x
""yes; then :
16189 cat >>confdefs.h
<<_ACEOF
16190 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16197 if test "$ac_cv_header_sys_mman_h" = "no"; then
16200 if test -n "${with_target_subdir}"; then
16201 # When built as a GCC target library, we can't do a link test. We
16202 # simply assume that if we have mman.h, we have mmap.
16205 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
16206 if test "x$ac_cv_func_mmap" = x
""yes; then :
16214 if test "$have_mmap" = "no"; then
16216 ALLOC_FILE
=alloc.lo
16218 VIEW_FILE
=mmapio.lo
16219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16220 /* end confdefs.h. */
16222 #include <sys/mman.h>
16223 #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
16224 #error no MAP_ANONYMOUS
16228 if ac_fn_c_try_cpp
"$LINENO"; then :
16231 ALLOC_FILE
=alloc.lo
16233 rm -f conftest.err conftest.
$ac_ext
16238 BACKTRACE_USES_MALLOC
=0
16239 if test "$ALLOC_FILE" = "alloc.lo"; then
16240 BACKTRACE_USES_MALLOC
=1
16244 # Don't care about thread support
16245 BACKTRACE_SUPPORTS_THREADS
=0
16248 # Check for dl_iterate_phdr.
16249 for ac_header
in link.h
16251 ac_fn_c_check_header_mongrel
"$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
16252 if test "x$ac_cv_header_link_h" = x
""yes; then :
16253 cat >>confdefs.h
<<_ACEOF
16254 #define HAVE_LINK_H 1
16261 if test "$ac_cv_header_link_h" = "no"; then
16262 have_dl_iterate_phdr
=no
16264 # When built as a GCC target library, we can't do a link test.
16265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16266 /* end confdefs.h. */
16270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16271 $EGREP "dl_iterate_phdr" >/dev
/null
2>&1; then :
16272 have_dl_iterate_phdr
=yes
16274 have_dl_iterate_phdr
=no
16280 # Avoid dl_iterate_phdr on Solaris 10, where it is in the
16281 # header file but is only in -ldl.
16282 have_dl_iterate_phdr
=no
;;
16285 if test "$have_dl_iterate_phdr" = "yes"; then
16287 $as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
16291 # Check for the fcntl function.
16292 if test -n "${with_target_subdir}"; then
16294 *-*-mingw*) have_fcntl
=no
;;
16295 *) have_fcntl
=yes ;;
16298 ac_fn_c_check_func
"$LINENO" "fcntl" "ac_cv_func_fcntl"
16299 if test "x$ac_cv_func_fcntl" = x
""yes; then :
16306 if test "$have_fcntl" = "yes"; then
16308 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
16312 ac_fn_c_check_decl
"$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
16313 if test "x$ac_cv_have_decl_strnlen" = x
""yes; then :
16319 cat >>confdefs.h
<<_ACEOF
16320 #define HAVE_DECL_STRNLEN $ac_have_decl
16324 # Check for getexecname function.
16325 if test -n "${with_target_subdir}"; then
16327 *-*-solaris2*) have_getexecname
=yes ;;
16328 *) have_getexecname
=no
;;
16331 ac_fn_c_check_func
"$LINENO" "getexecname" "ac_cv_func_getexecname"
16332 if test "x$ac_cv_func_getexecname" = x
""yes; then :
16333 have_getexecname
=yes
16335 have_getexecname
=no
16339 if test "$have_getexecname" = "yes"; then
16341 $as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
16345 # Check for rpc/xdr.h
16346 for ac_header
in rpc
/xdr.h
16348 ac_fn_c_check_header_mongrel
"$LINENO" "rpc/xdr.h" "ac_cv_header_rpc_xdr_h" "$ac_includes_default"
16349 if test "x$ac_cv_header_rpc_xdr_h" = x
""yes; then :
16350 cat >>confdefs.h
<<_ACEOF
16351 #define HAVE_RPC_XDR_H 1
16358 if test x
"$ac_cv_header_rpc_xdr_h" = xyes
; then
16359 rpc_defs
="$rpc_defs -DHAVE_RPC_XDR_H=1"
16361 rpc_defs
="$rpc_defs -DHAVE_RPC_XDR_H=0"
16364 # Check for tirpc/rpc/xdr.h
16365 for ac_header
in tirpc
/rpc
/xdr.h
16367 ac_fn_c_check_header_mongrel
"$LINENO" "tirpc/rpc/xdr.h" "ac_cv_header_tirpc_rpc_xdr_h" "$ac_includes_default"
16368 if test "x$ac_cv_header_tirpc_rpc_xdr_h" = x
""yes; then :
16369 cat >>confdefs.h
<<_ACEOF
16370 #define HAVE_TIRPC_RPC_XDR_H 1
16377 if test x
"$ac_cv_header_tirpc_rpc_xdr_h" = xyes
; then
16378 rpc_defs
="$rpc_defs -DHAVE_TIRPC_RPC_XDR_H=1"
16380 rpc_defs
="$rpc_defs -DHAVE_TIRPC_RPC_XDR_H=0"
16386 if test "x${BACKTRACE_SUPPORTED}x${BACKTRACE_USES_MALLOC}" = "x1x0"; then
16387 LIBBACKTRACE_SUPPORTED_TRUE
=
16388 LIBBACKTRACE_SUPPORTED_FALSE
='#'
16390 LIBBACKTRACE_SUPPORTED_TRUE
='#'
16391 LIBBACKTRACE_SUPPORTED_FALSE
=
16396 ac_config_files
="$ac_config_files Makefile libsanitizer.spec libbacktrace/backtrace-supported.h"
16398 ac_config_headers
="$ac_config_headers config.h"
16401 ac_config_files
="$ac_config_files interception/Makefile sanitizer_common/Makefile libbacktrace/Makefile lsan/Makefile asan/Makefile ubsan/Makefile"
16404 if test "x$TSAN_SUPPORTED" = "xyes"; then
16405 ac_config_files
="$ac_config_files tsan/Makefile"
16411 cat >confcache
<<\_ACEOF
16412 # This file is a shell script that caches the results of configure
16413 # tests run on this system so they can be shared between configure
16414 # scripts and configure runs, see configure's option --config-cache.
16415 # It is not useful on other systems. If it contains results you don't
16416 # want to keep, you may remove or edit it.
16418 # config.status only pays attention to the cache file if you give it
16419 # the --recheck option to rerun configure.
16421 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16422 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16423 # following values.
16427 # The following way of writing the cache mishandles newlines in values,
16428 # but we know of no workaround that is simple, portable, and efficient.
16429 # So, we kill variables containing newlines.
16430 # Ultrix sh set writes to stderr and can't be redirected directly,
16431 # and sets the high bit in the cache file unless we assign to the vars.
16433 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16434 eval ac_val
=\$
$ac_var
16438 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16439 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16442 _ | IFS | as_nl
) ;; #(
16443 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16444 *) { eval $ac_var=; unset $ac_var;} ;;
16450 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16451 *${as_nl}ac_space
=\
*)
16452 # `set' does not quote correctly, so add quotes: double-quote
16453 # substitution turns \\\\ into \\, and sed turns \\ into \.
16456 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16459 # `set' quotes correctly as required by POSIX, so do not add quotes.
16460 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16469 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16471 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16473 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16474 if test -w "$cache_file"; then
16475 test "x$cache_file" != "x/dev/null" &&
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16477 $as_echo "$as_me: updating cache $cache_file" >&6;}
16478 cat confcache
>$cache_file
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16481 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16486 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16487 # Let make expand exec_prefix.
16488 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16490 DEFS
=-DHAVE_CONFIG_H
16494 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16495 # 1. Remove the extension, and $U if already installed.
16496 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16497 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16498 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16499 # will be set to the directory where LIBOBJS objects are built.
16500 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16501 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16503 LIBOBJS
=$ac_libobjs
16505 LTLIBOBJS
=$ac_ltlibobjs
16508 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16509 as_fn_error
"conditional \"AMDEP\" was never defined.
16510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16512 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16513 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
16514 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16516 if test -n "$EXEEXT"; then
16518 am__EXEEXT_FALSE
='#'
16520 am__EXEEXT_TRUE
='#'
16524 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16525 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
16526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16528 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16529 as_fn_error
"conditional \"am__fastdepCXX\" was never defined.
16530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16532 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
16533 as_fn_error
"conditional \"am__fastdepCCAS\" was never defined.
16534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16536 if test -z "${TSAN_SUPPORTED_TRUE}" && test -z "${TSAN_SUPPORTED_FALSE}"; then
16537 as_fn_error
"conditional \"TSAN_SUPPORTED\" was never defined.
16538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16540 if test -z "${LSAN_SUPPORTED_TRUE}" && test -z "${LSAN_SUPPORTED_FALSE}"; then
16541 as_fn_error
"conditional \"LSAN_SUPPORTED\" was never defined.
16542 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16544 if test -z "${USING_MAC_INTERPOSE_TRUE}" && test -z "${USING_MAC_INTERPOSE_FALSE}"; then
16545 as_fn_error
"conditional \"USING_MAC_INTERPOSE\" was never defined.
16546 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16548 if test -z "${SANITIZER_SUPPORTED_TRUE}" && test -z "${SANITIZER_SUPPORTED_FALSE}"; then
16549 as_fn_error
"conditional \"SANITIZER_SUPPORTED\" was never defined.
16550 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16552 if test -z "${LIBBACKTRACE_SUPPORTED_TRUE}" && test -z "${LIBBACKTRACE_SUPPORTED_FALSE}"; then
16553 as_fn_error
"conditional \"LIBBACKTRACE_SUPPORTED\" was never defined.
16554 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16557 : ${CONFIG_STATUS=./config.status}
16559 ac_clean_files_save
=$ac_clean_files
16560 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16562 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16564 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16566 # Generated by $as_me.
16567 # Run this file to recreate the current configuration.
16568 # Compiler output produced by configure, useful for debugging
16569 # configure, is in config.log if it exists.
16572 ac_cs_recheck=false
16575 SHELL=\${CONFIG_SHELL-$SHELL}
16578 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
16579 ## -------------------- ##
16580 ## M4sh Initialization. ##
16581 ## -------------------- ##
16583 # Be more Bourne compatible
16584 DUALCASE
=1; export DUALCASE
# for MKS sh
16585 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
16588 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16589 # is contrary to our usage. Disable this feature.
16590 alias -g '${1+"$@"}'='"$@"'
16591 setopt NO_GLOB_SUBST
16593 case `(set -o) 2>/dev/null` in #(
16605 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16606 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16607 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16608 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16609 # Prefer a ksh shell builtin over an external printf program on Solaris,
16610 # but without wasting forks for bash or zsh.
16611 if test -z "$BASH_VERSION$ZSH_VERSION" \
16612 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16613 as_echo='print
-r --'
16614 as_echo_n='print
-rn --'
16615 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16616 as_echo='printf %s
\n'
16617 as_echo_n='printf %s
'
16619 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16620 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
16621 as_echo_n='/usr
/ucb
/echo -n'
16623 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16624 as_echo_n_body='eval
16628 expr "X$arg" : "X\\(.*\\)$as_nl";
16629 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16631 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
16633 export as_echo_n_body
16634 as_echo_n='sh
-c $as_echo_n_body as_echo
'
16636 export as_echo_body
16637 as_echo='sh
-c $as_echo_body as_echo
'
16640 # The user is always right.
16641 if test "${PATH_SEPARATOR+set}" != set; then
16643 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16644 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16651 # We need space, tab and new line, in precisely that order. Quoting is
16652 # there to prevent editors from complaining about space-tab.
16653 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16654 # splitting by setting IFS to empty value.)
16657 # Find who we are. Look in the path if we contain no directory separator.
16659 *[\\/]* ) as_myself=$0 ;;
16660 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16661 for as_dir in $PATH
16664 test -z "$as_dir" && as_dir=.
16665 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16671 # We did not find ourselves, most probably we were run as `sh COMMAND'
16672 # in which case we are not to be found in the path.
16673 if test "x$as_myself" = x
; then
16676 if test ! -f "$as_myself"; then
16677 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16681 # Unset variables that we do not need and which cause bugs (e.g. in
16682 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16683 # suppresses any "Segmentation fault" message there. '((' could
16684 # trigger a bug in pdksh 5.2.14.
16685 for as_var
in BASH_ENV ENV MAIL MAILPATH
16686 do eval test x\
${$as_var+set} = xset \
16687 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
16700 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
16703 # as_fn_error ERROR [LINENO LOG_FD]
16704 # ---------------------------------
16705 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16706 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16707 # script with status $?, using 1 if that was 0.
16710 as_status
=$?
; test $as_status -eq 0 && as_status
=1
16712 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
16713 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16715 $as_echo "$as_me: error: $1" >&2
16716 as_fn_exit
$as_status
16720 # as_fn_set_status STATUS
16721 # -----------------------
16722 # Set $? to STATUS, without forking.
16723 as_fn_set_status
()
16726 } # as_fn_set_status
16728 # as_fn_exit STATUS
16729 # -----------------
16730 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16734 as_fn_set_status
$1
16740 # Portably unset VAR.
16743 { eval $1=; unset $1;}
16745 as_unset
=as_fn_unset
16746 # as_fn_append VAR VALUE
16747 # ----------------------
16748 # Append the text in VALUE to the end of the definition contained in VAR. Take
16749 # advantage of any shell optimizations that allow amortized linear growth over
16750 # repeated appends, instead of the typical quadratic growth present in naive
16752 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
16753 eval 'as_fn_append ()
16764 # as_fn_arith ARG...
16765 # ------------------
16766 # Perform arithmetic evaluation on the ARGs, and store the result in the
16767 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16768 # must be portable across $(()) and expr.
16769 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
16770 eval 'as_fn_arith ()
16777 as_val
=`expr "$@" || test $? -eq 1`
16782 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16783 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16789 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16790 as_basename
=basename
16795 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16801 as_me
=`$as_basename -- "$0" ||
16802 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16803 X"$0" : 'X\(//\)$' \| \
16804 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16806 sed '/^.*\/\([^/][^/]*\)\/*$/{
16820 # Avoid depending upon Character Ranges.
16821 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16822 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16823 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16824 as_cr_digits
='0123456789'
16825 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16827 ECHO_C
= ECHO_N
= ECHO_T
=
16828 case `echo -n x` in #(((((
16830 case `echo 'xy\c'` in
16831 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16833 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
16840 rm -f conf$$ conf$$.exe conf$$.
file
16841 if test -d conf$$.dir
; then
16842 rm -f conf$$.dir
/conf$$.
file
16845 mkdir conf$$.dir
2>/dev
/null
16847 if (echo >conf$$.
file) 2>/dev
/null
; then
16848 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16850 # ... but there are two gotchas:
16851 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16852 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16853 # In both cases, we have to default to `cp -p'.
16854 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16856 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16864 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16865 rmdir conf$$.dir
2>/dev
/null
16870 # Create "$as_dir" as a directory, including parents if necessary.
16875 -*) as_dir
=.
/$as_dir;;
16877 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
16881 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16882 *) as_qdir
=$as_dir;;
16884 as_dirs
="'$as_qdir' $as_dirs"
16885 as_dir
=`$as_dirname -- "$as_dir" ||
16886 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16887 X"$as_dir" : 'X\(//\)[^/]' \| \
16888 X"$as_dir" : 'X\(//\)$' \| \
16889 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16890 $as_echo X"$as_dir" |
16891 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16895 /^X\(\/\/\)[^/].*/{
16908 test -d "$as_dir" && break
16910 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16911 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
16915 if mkdir
-p .
2>/dev
/null
; then
16916 as_mkdir_p
='mkdir -p "$as_dir"'
16918 test -d .
/-p && rmdir .
/-p
16922 if test -x / >/dev
/null
2>&1; then
16923 as_test_x
='test -x'
16925 if ls -dL / >/dev
/null
2>&1; then
16932 if test -d "$1"; then
16938 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16939 ???[sx]*):;;*)false;;esac;fi
16943 as_executable_p
=$as_test_x
16945 # Sed expression to map a string onto a valid CPP name.
16946 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16948 # Sed expression to map a string onto a valid variable name.
16949 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16953 ## ----------------------------------- ##
16954 ## Main body of $CONFIG_STATUS script. ##
16955 ## ----------------------------------- ##
16957 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
16959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16960 # Save the log message, to keep $0 and so on meaningful, and to
16961 # report actual input values of CONFIG_FILES etc. instead of their
16962 # values after options handling.
16964 This file was extended by package-unused $as_me version-unused, which was
16965 generated by GNU Autoconf 2.64. Invocation command line was
16967 CONFIG_FILES = $CONFIG_FILES
16968 CONFIG_HEADERS = $CONFIG_HEADERS
16969 CONFIG_LINKS = $CONFIG_LINKS
16970 CONFIG_COMMANDS = $CONFIG_COMMANDS
16973 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16978 case $ac_config_files in *"
16979 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16982 case $ac_config_headers in *"
16983 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16988 # Files that config.status was made for.
16989 config_files="$ac_config_files"
16990 config_headers="$ac_config_headers"
16991 config_commands="$ac_config_commands"
16995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16997 \`$as_me' instantiates files and other configuration actions
16998 from templates according to the current configuration. Unless the files
16999 and actions are specified as TAGs, all are instantiated by default.
17001 Usage: $0 [OPTION]... [TAG]...
17003 -h, --help print this help, then exit
17004 -V, --version print version number and configuration settings, then exit
17005 -q, --quiet, --silent
17006 do not print progress messages
17007 -d, --debug don't remove temporary files
17008 --recheck update $as_me by reconfiguring in the same conditions
17009 --file=FILE[:TEMPLATE]
17010 instantiate the configuration file FILE
17011 --header=FILE[:TEMPLATE]
17012 instantiate the configuration header FILE
17014 Configuration files:
17017 Configuration headers:
17020 Configuration commands:
17023 Report bugs to <libsanitizer>."
17026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17028 package-unused config.status version-unused
17029 configured by $0, generated by GNU Autoconf 2.64,
17030 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17032 Copyright (C) 2009 Free Software Foundation, Inc.
17033 This config.status script is free software; the Free Software Foundation
17034 gives unlimited permission to copy, distribute and modify it."
17041 test -n "\$AWK" || AWK=awk
17044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17045 # The default lists apply if the user does not specify any file.
17051 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17052 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
17063 # Handling of the options.
17064 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17066 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
17067 $as_echo "$ac_cs_version"; exit ;;
17068 --debug |
--debu |
--deb |
--de |
--d |
-d )
17070 --file |
--fil |
--fi |
--f )
17073 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17075 as_fn_append CONFIG_FILES
" '$ac_optarg'"
17076 ac_need_defaults
=false
;;
17077 --header |
--heade |
--head |
--hea )
17080 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17082 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
17083 ac_need_defaults
=false
;;
17085 # Conflict between --help and --header
17086 as_fn_error
"ambiguous option: \`$1'
17087 Try \`$0 --help' for more information.";;
17088 --help |
--hel |
-h )
17089 $as_echo "$ac_cs_usage"; exit ;;
17090 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17091 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17094 # This is an error.
17095 -*) as_fn_error
"unrecognized option: \`$1'
17096 Try \`$0 --help' for more information." ;;
17098 *) as_fn_append ac_config_targets
" $1"
17099 ac_need_defaults
=false
;;
17105 ac_configure_extra_args
=
17107 if $ac_cs_silent; then
17109 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17114 if \$ac_cs_recheck; then
17115 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17117 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17118 CONFIG_SHELL='$SHELL'
17119 export CONFIG_SHELL
17124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17128 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17129 ## Running $as_me. ##
17135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17143 with_multisubdir="$with_multisubdir"
17144 with_multisrctop="$with_multisrctop"
17145 with_target_subdir="$with_target_subdir"
17146 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17147 multi_basedir="$multi_basedir"
17148 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17151 GFORTRAN="$GFORTRAN"
17153 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17156 # The HP-UX ksh and POSIX shell print the target directory to stdout
17157 # if CDPATH is set.
17158 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17160 sed_quote_subst='$sed_quote_subst'
17161 double_quote_subst='$double_quote_subst'
17162 delay_variable_subst='$delay_variable_subst'
17163 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17164 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17165 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17166 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17167 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17168 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17169 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17170 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17171 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17172 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17173 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17174 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17175 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17176 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17177 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17178 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17179 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17180 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17181 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17182 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17183 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17184 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17185 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17186 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17187 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17188 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17189 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17190 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17191 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17192 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17193 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17194 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17195 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17196 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17197 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17198 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17199 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17200 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17201 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17202 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17203 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17204 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17205 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17206 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17207 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17208 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17209 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17210 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17211 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"`'
17212 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17213 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17214 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17215 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17216 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17217 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17218 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17219 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17220 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17221 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17222 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17223 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17224 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17225 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17226 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17227 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17228 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17229 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17230 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17231 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17232 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17233 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17234 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17235 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17236 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17237 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17238 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17239 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17240 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17241 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17242 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17243 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17244 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17245 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17246 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17247 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17248 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17249 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17250 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17251 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17252 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17253 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17254 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17255 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17256 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17257 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17258 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17259 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17260 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17261 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17262 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17263 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17264 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17265 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17266 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17267 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17268 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17269 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17270 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17271 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17272 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17273 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17274 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17275 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17276 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17277 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17278 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17279 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17280 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17281 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17282 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17283 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17284 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17285 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17286 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17287 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17288 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17289 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17290 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17291 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17292 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17293 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17294 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17295 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17296 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17297 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17298 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17299 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17300 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17301 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17302 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17303 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17304 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17305 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17306 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17307 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17308 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17309 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17310 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17311 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17312 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17313 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17314 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17315 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17316 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17317 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17318 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17319 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17320 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17321 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17322 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17323 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17324 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17325 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17326 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17327 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17328 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17329 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17330 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17331 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17332 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17333 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17334 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17335 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17336 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17337 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17340 LTCFLAGS='$LTCFLAGS'
17341 compiler='$compiler_DEFAULT'
17343 # A function that is used when there is no print builtin or printf.
17344 func_fallback_echo ()
17346 eval 'cat <<_LTECHO_EOF
17351 # Quote evaled strings.
17365 deplibs_check_method \
17374 lt_cv_sys_global_symbol_pipe \
17375 lt_cv_sys_global_symbol_to_cdecl \
17376 lt_cv_sys_global_symbol_to_c_name_address \
17377 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17378 lt_prog_compiler_no_builtin_flag \
17379 lt_prog_compiler_wl \
17380 lt_prog_compiler_pic \
17381 lt_prog_compiler_static \
17382 lt_cv_prog_compiler_c_o \
17390 export_dynamic_flag_spec \
17391 whole_archive_flag_spec \
17392 compiler_needs_object \
17394 allow_undefined_flag \
17395 no_undefined_flag \
17396 hardcode_libdir_flag_spec \
17397 hardcode_libdir_flag_spec_ld \
17398 hardcode_libdir_separator \
17403 variables_saved_for_relink \
17405 library_names_spec \
17407 install_override_mode \
17411 compiler_lib_search_dirs \
17416 compiler_lib_search_path \
17420 lt_prog_compiler_no_builtin_flag_CXX \
17421 lt_prog_compiler_wl_CXX \
17422 lt_prog_compiler_pic_CXX \
17423 lt_prog_compiler_static_CXX \
17424 lt_cv_prog_compiler_c_o_CXX \
17425 export_dynamic_flag_spec_CXX \
17426 whole_archive_flag_spec_CXX \
17427 compiler_needs_object_CXX \
17429 allow_undefined_flag_CXX \
17430 no_undefined_flag_CXX \
17431 hardcode_libdir_flag_spec_CXX \
17432 hardcode_libdir_flag_spec_ld_CXX \
17433 hardcode_libdir_separator_CXX \
17434 fix_srcfile_path_CXX \
17435 exclude_expsyms_CXX \
17436 include_expsyms_CXX \
17437 file_list_spec_CXX \
17438 compiler_lib_search_dirs_CXX \
17439 predep_objects_CXX \
17440 postdep_objects_CXX \
17443 compiler_lib_search_path_CXX; do
17444 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17445 *[\\\\\\\`\\"\\\$]*)
17446 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17449 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17454 # Double-quote double-evaled strings.
17455 for var in reload_cmds \
17456 old_postinstall_cmds \
17457 old_postuninstall_cmds \
17459 extract_expsyms_cmds \
17460 old_archive_from_new_cmds \
17461 old_archive_from_expsyms_cmds \
17463 archive_expsym_cmds \
17465 module_expsym_cmds \
17466 export_symbols_cmds \
17469 postuninstall_cmds \
17471 sys_lib_search_path_spec \
17472 sys_lib_dlsearch_path_spec \
17474 old_archive_cmds_CXX \
17475 old_archive_from_new_cmds_CXX \
17476 old_archive_from_expsyms_cmds_CXX \
17478 archive_expsym_cmds_CXX \
17480 module_expsym_cmds_CXX \
17481 export_symbols_cmds_CXX \
17482 prelink_cmds_CXX; do
17483 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17484 *[\\\\\\\`\\"\\\$]*)
17485 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17488 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17493 ac_aux_dir='$ac_aux_dir'
17494 xsi_shell='$xsi_shell'
17495 lt_shell_append='$lt_shell_append'
17497 # See if we are running on zsh, and set the options which allow our
17498 # commands through without removal of \ escapes INIT.
17499 if test -n "\${ZSH_VERSION+set}" ; then
17500 setopt NO_GLOB_SUBST
17506 TIMESTAMP='$TIMESTAMP'
17517 acx_cv_header_stdint="$acx_cv_header_stdint"
17518 acx_cv_type_int8_t="$acx_cv_type_int8_t"
17519 acx_cv_type_int16_t="$acx_cv_type_int16_t"
17520 acx_cv_type_int32_t="$acx_cv_type_int32_t"
17521 acx_cv_type_int64_t="$acx_cv_type_int64_t"
17522 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
17523 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
17524 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
17525 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17526 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17527 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
17528 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17529 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17530 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
17535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17537 # Handling of arguments.
17538 for ac_config_target
in $ac_config_targets
17540 case $ac_config_target in
17541 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
17542 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
17543 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
17544 "gstdint.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS gstdint.h" ;;
17545 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
17546 "libsanitizer.spec") CONFIG_FILES
="$CONFIG_FILES libsanitizer.spec" ;;
17547 "libbacktrace/backtrace-supported.h") CONFIG_FILES
="$CONFIG_FILES libbacktrace/backtrace-supported.h" ;;
17548 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
17549 "interception/Makefile") CONFIG_FILES
="$CONFIG_FILES interception/Makefile" ;;
17550 "sanitizer_common/Makefile") CONFIG_FILES
="$CONFIG_FILES sanitizer_common/Makefile" ;;
17551 "libbacktrace/Makefile") CONFIG_FILES
="$CONFIG_FILES libbacktrace/Makefile" ;;
17552 "lsan/Makefile") CONFIG_FILES
="$CONFIG_FILES lsan/Makefile" ;;
17553 "asan/Makefile") CONFIG_FILES
="$CONFIG_FILES asan/Makefile" ;;
17554 "ubsan/Makefile") CONFIG_FILES
="$CONFIG_FILES ubsan/Makefile" ;;
17555 "tsan/Makefile") CONFIG_FILES
="$CONFIG_FILES tsan/Makefile" ;;
17557 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17562 # If the user did not use the arguments to specify the items to instantiate,
17563 # then the envvar interface is used. Set only those that are not.
17564 # We use the long form for the default assignment because of an extremely
17565 # bizarre bug on SunOS 4.1.3.
17566 if $ac_need_defaults; then
17567 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17568 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17569 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17572 # Have a temporary directory for convenience. Make it in the build tree
17573 # simply because there is no reason against having it here, and in addition,
17574 # creating and moving files from /tmp can sometimes cause problems.
17575 # Hook for its removal unless debugging.
17576 # Note that there is a small window in which the directory will not be cleaned:
17577 # after its creation but before its name has been assigned to `$tmp'.
17581 trap 'exit_status=$?
17582 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17584 trap 'as_fn_exit 1' 1 2 13 15
17586 # Create a (secure) tmp directory for tmp files.
17589 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17590 test -n "$tmp" && test -d "$tmp"
17593 tmp
=.
/conf$$
-$RANDOM
17594 (umask 077 && mkdir
"$tmp")
17595 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
17597 # Set up the scripts for CONFIG_FILES section.
17598 # No need to generate them if there are no CONFIG_FILES.
17599 # This happens for instance with `./config.status config.h'.
17600 if test -n "$CONFIG_FILES"; then
17603 ac_cr
=`echo X | tr X '\015'`
17604 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17605 # But we know of no other shell where ac_cr would be empty at this
17606 # point, so we can use a bashism as a fallback.
17607 if test "x$ac_cr" = x
; then
17608 eval ac_cr
=\$
\'\\r
\'
17610 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17611 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17614 ac_cs_awk_cr
=$ac_cr
17617 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17622 echo "cat >conf$$subs.awk <<_ACEOF" &&
17623 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17625 } >conf$$subs.sh ||
17626 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17627 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17629 for ac_last_try in false false false false false :; do
17630 . ./conf$$subs.sh ||
17631 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17633 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
17634 if test $ac_delim_n = $ac_delim_num; then
17636 elif $ac_last_try; then
17637 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17639 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17642 rm -f conf$$subs.sh
17644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17645 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
17649 s/^/S["/; s
/!.
*/"]=/
17659 s/\(.\{148\}\).*/\1/
17661 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
17666 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17673 s/\(.\{148\}\).*/\1/
17675 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
17679 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17684 ' <conf$$subs.awk | sed '
17689 ' >>$CONFIG_STATUS || ac_write_fail=1
17690 rm -f conf$$subs.awk
17691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17693 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
17694 for (key in S) S_is_set[key] = 1
17700 nfields = split(line, field, "@
")
17702 len = length(field[1])
17703 for (i = 2; i < nfields; i++) {
17705 keylen = length(key)
17706 if (S_is_set[key]) {
17708 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17709 len += length(value) + length(field[++i])
17720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17721 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17722 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
17725 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
17726 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
17729 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17730 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
17731 # trailing colons and then remove the whole line if VPATH becomes empty
17732 # (actually we leave an empty line to preserve line numbers).
17733 if test "x
$srcdir" = x.; then
17734 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17735 s/:*\$(srcdir):*/:/
17736 s/:*\${srcdir}:*/:/
17738 s/^\([^=]*=[ ]*\):*/\1/
17744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17745 fi # test -n "$CONFIG_FILES"
17747 # Set up the scripts for CONFIG_HEADERS section.
17748 # No need to generate them if there are no CONFIG_HEADERS.
17749 # This happens for instance with `./config.status Makefile'.
17750 if test -n "$CONFIG_HEADERS"; then
17751 cat >"$tmp/defines.
awk" <<\_ACAWK ||
17755 # Transform confdefs.h into an awk script `defines.awk', embedded as
17756 # here-document in config.status, that substitutes the proper values into
17757 # config.h.in to produce config.h.
17759 # Create a delimiter string that does not exist in confdefs.h, to ease
17760 # handling of long lines.
17762 for ac_last_try in false false :; do
17763 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
17764 if test -z "$ac_t"; then
17766 elif $ac_last_try; then
17767 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
17769 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17773 # For the awk script, D is an array of macro values keyed by name,
17774 # likewise P contains macro parameters if any. Preserve backslash
17775 # newline sequences.
17777 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17779 s/.\{148\}/&'"$ac_delim"'/g
17782 s/^[ ]*#[ ]*define[ ][ ]*/ /
17789 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
17791 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
17795 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
17796 D["\
1"]=" \
3\\\\\\n
"\\/p
17798 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
17803 s/.\{148\}/&'"$ac_delim"'/g
17808 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
17811 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
17813 ' <confdefs.h | sed '
17814 s/'"$ac_delim"'/"\\\
17815 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17818 for (key in D) D_is_set[key] = 1
17821 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17823 split(line, arg, " ")
17824 if (arg[1] == "#") {
17828 defundef
= substr
(arg
[1], 2)
17831 split(mac1
, mac2
, "(") #)
17833 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
17834 if (D_is_set
[macro
]) {
17835 # Preserve the white space surrounding the "#".
17836 print prefix
"define", macro P
[macro
] D
[macro
]
17839 # Replace #undef with comments. This is necessary, for example,
17840 # in the case of _POSIX_SOURCE, which is predefined and required
17841 # on some systems where configure will not decide to define it.
17842 if (defundef
== "undef") {
17843 print
"/*", prefix defundef
, macro
, "*/"
17851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17852 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
17853 fi # test -n "$CONFIG_HEADERS"
17856 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17861 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17863 case $ac_mode$ac_tag in
17865 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
17866 :[FH
]-) ac_tag
=-:-;;
17867 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17884 -) ac_f
="$tmp/stdin";;
17885 *) # Look for the file first in the build tree, then in the source tree
17886 # (if the path is not absolute). The absolute path cannot be DOS-style,
17887 # because $ac_f cannot contain `:'.
17891 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17893 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
17895 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17896 as_fn_append ac_file_inputs
" '$ac_f'"
17899 # Let's still pretend it is `configure' which instantiates (i.e., don't
17900 # use $as_me), people would be surprised to read:
17901 # /* config.h. Generated by config.status. */
17902 configure_input
='Generated from '`
17903 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17905 if test x
"$ac_file" != x-
; then
17906 configure_input
="$ac_file. $configure_input"
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17908 $as_echo "$as_me: creating $ac_file" >&6;}
17910 # Neutralize special characters interpreted by sed in replacement strings.
17911 case $configure_input in #(
17912 *\
&* |
*\|
* |
*\\* )
17913 ac_sed_conf_input
=`$as_echo "$configure_input" |
17914 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17915 *) ac_sed_conf_input
=$configure_input;;
17919 *:-:* |
*:-) cat >"$tmp/stdin" \
17920 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
17925 ac_dir
=`$as_dirname -- "$ac_file" ||
17926 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17927 X"$ac_file" : 'X\(//\)[^/]' \| \
17928 X"$ac_file" : 'X\(//\)$' \| \
17929 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17930 $as_echo X"$ac_file" |
17931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17935 /^X\(\/\/\)[^/].*/{
17948 as_dir
="$ac_dir"; as_fn_mkdir_p
17952 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17954 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17955 # A ".." for each directory in $ac_dir_suffix.
17956 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17957 case $ac_top_builddir_sub in
17958 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17959 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17962 ac_abs_top_builddir
=$ac_pwd
17963 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17964 # for backward compatibility:
17965 ac_top_builddir
=$ac_top_build_prefix
17968 .
) # We are building in place.
17970 ac_top_srcdir
=$ac_top_builddir_sub
17971 ac_abs_top_srcdir
=$ac_pwd ;;
17972 [\\/]* | ?
:[\\/]* ) # Absolute name.
17973 ac_srcdir
=$srcdir$ac_dir_suffix;
17974 ac_top_srcdir
=$srcdir
17975 ac_abs_top_srcdir
=$srcdir ;;
17976 *) # Relative name.
17977 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17978 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17979 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17981 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17991 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17992 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
17994 ac_MKDIR_P
=$MKDIR_P
17996 [\\/$
]* | ?
:[\\/]* ) ;;
17997 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
18001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18002 # If the template does not know about datarootdir, expand it.
18003 # FIXME: This hack should be removed a few years after 2.60.
18004 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18015 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18016 *datarootdir
*) ac_datarootdir_seen
=yes;;
18017 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
18018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18019 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18021 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18022 ac_datarootdir_hack='
18023 s&@datadir@&$datadir&g
18024 s&@docdir@&$docdir&g
18025 s&@infodir@&$infodir&g
18026 s&@localedir@&$localedir&g
18027 s&@mandir@&$mandir&g
18028 s&\\\${datarootdir}&$datarootdir&g' ;;
18032 # Neutralize VPATH when `$srcdir' = `.'.
18033 # Shell code in configure.ac might set extrasub.
18034 # FIXME: do we really want to maintain this feature?
18035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18036 ac_sed_extra="$ac_vpsub
18039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18041 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18042 s|@configure_input@|
$ac_sed_conf_input|
;t t
18043 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
18044 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
18045 s
&@srcdir@
&$ac_srcdir&;t t
18046 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
18047 s
&@top_srcdir@
&$ac_top_srcdir&;t t
18048 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
18049 s
&@builddir@
&$ac_builddir&;t t
18050 s
&@abs_builddir@
&$ac_abs_builddir&;t t
18051 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
18052 s
&@INSTALL@
&$ac_INSTALL&;t t
18053 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
18054 $ac_datarootdir_hack
18056 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
18057 || as_fn_error "could not create
$ac_file" "$LINENO" 5
18059 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18060 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
18061 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
18062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
18063 which seems to be undefined. Please make sure it is defined." >&5
18064 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
18065 which seems to be undefined. Please make sure it is defined." >&2;}
18069 -) cat "$tmp/out" && rm -f "$tmp/out";;
18070 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18072 || as_fn_error "could not create $ac_file" "$LINENO" 5
18078 if test x"$ac_file" != x-; then
18080 $as_echo "/* $configure_input */" \
18081 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18082 } >"$tmp/config.h" \
18083 || as_fn_error "could not create $ac_file" "$LINENO" 5
18084 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18085 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18086 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18089 mv "$tmp/config.h" "$ac_file" \
18090 || as_fn_error "could not create $ac_file" "$LINENO" 5
18093 $as_echo "/* $configure_input */" \
18094 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18095 || as_fn_error "could not create -" "$LINENO" 5
18097 # Compute "$ac_file"'s index
in $config_headers.
18100 for _am_header
in $config_headers :; do
18101 case $_am_header in
18102 $_am_arg |
$_am_arg:* )
18105 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
18108 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18109 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18110 X"$_am_arg" : 'X\(//\)[^/]' \| \
18111 X"$_am_arg" : 'X\(//\)$' \| \
18112 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18113 $as_echo X"$_am_arg" |
18114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18118 /^X\(\/\/\)[^/].*/{
18130 s/.*/./; q'`/stamp-h
$_am_stamp_count
18133 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18134 $as_echo "$as_me: executing $ac_file commands" >&6;}
18139 case $ac_file$ac_mode in
18141 # Only add multilib support code if we just rebuilt the top-level
18143 case " $CONFIG_FILES " in
18145 ac_file
=Makefile .
${multi_basedir}/config-ml.
in
18148 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
18149 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18150 # are listed without --file. Let's play safe and only enable the eval
18151 # if we detect the quoting.
18152 case $CONFIG_FILES in
18153 *\'*) eval set x
"$CONFIG_FILES" ;;
18154 *) set x
$CONFIG_FILES ;;
18159 # Strip MF so we end up with the name of the file.
18160 mf
=`echo "$mf" | sed -e 's/:.*$//'`
18161 # Check whether this is an Automake generated Makefile or not.
18162 # We used to match only the files named `Makefile.in', but
18163 # some people rename them; so instead we look at the file content.
18164 # Grep'ing the first line is not enough: some people post-process
18165 # each Makefile.in and add a new line on top of each file to say so.
18166 # Grep'ing the whole file is not good either: AIX grep has a line
18167 # limit of 2048, but all sed's we know have understand at least 4000.
18168 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
18169 dirpart
=`$as_dirname -- "$mf" ||
18170 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18171 X"$mf" : 'X\(//\)[^/]' \| \
18172 X"$mf" : 'X\(//\)$' \| \
18173 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18179 /^X\(\/\/\)[^/].*/{
18195 # Extract the definition of DEPDIR, am__include, and am__quote
18196 # from the Makefile without running `make'.
18197 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
18198 test -z "$DEPDIR" && continue
18199 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
18200 test -z "am__include" && continue
18201 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
18202 # When using ansi2knr, U may be empty or an underscore; expand it
18203 U
=`sed -n 's/^U = //p' < "$mf"`
18204 # Find all dependency output files, they are included files with
18205 # $(DEPDIR) in their names. We invoke sed twice because it is the
18206 # simplest approach to changing $(DEPDIR) to its actual value in the
18208 for file in `sed -n "
18209 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18210 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18211 # Make sure the directory exists.
18212 test -f "$dirpart/$file" && continue
18213 fdir
=`$as_dirname -- "$file" ||
18214 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18215 X"$file" : 'X\(//\)[^/]' \| \
18216 X"$file" : 'X\(//\)$' \| \
18217 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18218 $as_echo X"$file" |
18219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18223 /^X\(\/\/\)[^/].*/{
18236 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
18237 # echo "creating $dirpart/$file"
18238 echo '# dummy' > "$dirpart/$file"
18245 # See if we are running on zsh, and set the options which allow our
18246 # commands through without removal of \ escapes.
18247 if test -n "${ZSH_VERSION+set}" ; then
18248 setopt NO_GLOB_SUBST
18251 cfgfile
="${ofile}T"
18252 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18255 cat <<_LT_EOF >> "$cfgfile"
18258 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18259 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18260 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18261 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18263 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18264 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18265 # Written by Gordon Matzigkeit, 1996
18267 # This file is part of GNU Libtool.
18269 # GNU Libtool is free software; you can redistribute it and/or
18270 # modify it under the terms of the GNU General Public License as
18271 # published by the Free Software Foundation; either version 2 of
18272 # the License, or (at your option) any later version.
18274 # As a special exception to the GNU General Public License,
18275 # if you distribute this file as part of a program or library that
18276 # is built using GNU Libtool, you may include this file under the
18277 # same distribution terms that you use for the rest of that program.
18279 # GNU Libtool is distributed in the hope that it will be useful,
18280 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18281 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18282 # GNU General Public License for more details.
18284 # You should have received a copy of the GNU General Public License
18285 # along with GNU Libtool; see the file COPYING. If not, a copy
18286 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18287 # obtained by writing to the Free Software Foundation, Inc.,
18288 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18291 # The names of the tagged configurations supported by this script.
18292 available_tags="CXX "
18294 # ### BEGIN LIBTOOL CONFIG
18296 # Which release of libtool.m4 was used?
18297 macro_version=$macro_version
18298 macro_revision=$macro_revision
18300 # Whether or not to build shared libraries.
18301 build_libtool_libs=$enable_shared
18303 # Whether or not to build static libraries.
18304 build_old_libs=$enable_static
18306 # What type of objects to build.
18309 # Whether or not to optimize for fast installation.
18310 fast_install=$enable_fast_install
18312 # Shell to use when invoking shell scripts.
18315 # An echo program that protects backslashes.
18319 host_alias=$host_alias
18323 # The build system.
18324 build_alias=$build_alias
18328 # A sed program that does not truncate output.
18331 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18332 Xsed="\$SED -e 1s/^X//"
18334 # A grep program that handles long lines.
18340 # A literal string matcher.
18343 # A BSD- or MS-compatible name lister.
18346 # Whether we need soft or hard links.
18349 # What is the maximum length of a command?
18350 max_cmd_len=$max_cmd_len
18352 # Object file suffix (normally "o").
18355 # Executable file suffix (normally "").
18358 # whether the shell understands "unset".
18361 # turn spaces into newlines.
18364 # turn newlines into spaces.
18367 # An object symbol dumper.
18368 OBJDUMP=$lt_OBJDUMP
18370 # Method to check whether dependent libraries are shared objects.
18371 deplibs_check_method=$lt_deplibs_check_method
18373 # Command to use when deplibs_check_method == "file_magic".
18374 file_magic_cmd=$lt_file_magic_cmd
18378 AR_FLAGS=$lt_AR_FLAGS
18380 # A symbol stripping program.
18383 # Commands used to install an old-style archive.
18385 old_postinstall_cmds=$lt_old_postinstall_cmds
18386 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18388 # Whether to use a lock for old archive extraction.
18389 lock_old_archive_extraction=$lock_old_archive_extraction
18394 # LTCC compiler flags.
18395 LTCFLAGS=$lt_CFLAGS
18397 # Take the output of nm and produce a listing of raw symbols and C names.
18398 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18400 # Transform the output of nm in a proper C declaration.
18401 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18403 # Transform the output of nm in a C name address pair.
18404 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18406 # Transform the output of nm in a C name address pair when lib prefix is needed.
18407 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18409 # The name of the directory that contains temporary libtool files.
18412 # Used to examine libraries when file_magic_cmd begins with "file".
18413 MAGIC_CMD=$MAGIC_CMD
18415 # Must we lock files when doing compilation?
18416 need_locks=$lt_need_locks
18418 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18419 DSYMUTIL=$lt_DSYMUTIL
18421 # Tool to change global to local symbols on Mac OS X.
18424 # Tool to manipulate fat objects and archives on Mac OS X.
18427 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18430 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18431 OTOOL64=$lt_OTOOL64
18433 # Old archive suffix (normally "a").
18436 # Shared library suffix (normally ".so").
18437 shrext_cmds=$lt_shrext_cmds
18439 # The commands to extract the exported symbol list from a shared archive.
18440 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18442 # Variables whose values should be saved in libtool wrapper scripts and
18443 # restored at link time.
18444 variables_saved_for_relink=$lt_variables_saved_for_relink
18446 # Do we need the "lib" prefix for modules?
18447 need_lib_prefix=$need_lib_prefix
18449 # Do we need a version for libraries?
18450 need_version=$need_version
18452 # Library versioning type.
18453 version_type=$version_type
18455 # Shared library runtime path variable.
18456 runpath_var=$runpath_var
18458 # Shared library path variable.
18459 shlibpath_var=$shlibpath_var
18461 # Is shlibpath searched before the hard-coded library search path?
18462 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18464 # Format of library name prefix.
18465 libname_spec=$lt_libname_spec
18467 # List of archive names. First name is the real one, the rest are links.
18468 # The last name is the one that the linker finds with -lNAME
18469 library_names_spec=$lt_library_names_spec
18471 # The coded name of the library, if different from the real name.
18472 soname_spec=$lt_soname_spec
18474 # Permission mode override for installation of shared libraries.
18475 install_override_mode=$lt_install_override_mode
18477 # Command to use after installation of a shared archive.
18478 postinstall_cmds=$lt_postinstall_cmds
18480 # Command to use after uninstallation of a shared archive.
18481 postuninstall_cmds=$lt_postuninstall_cmds
18483 # Commands used to finish a libtool library installation in a directory.
18484 finish_cmds=$lt_finish_cmds
18486 # As "finish_cmds", except a single script fragment to be evaled but
18488 finish_eval=$lt_finish_eval
18490 # Whether we should hardcode library paths into libraries.
18491 hardcode_into_libs=$hardcode_into_libs
18493 # Compile-time system search path for libraries.
18494 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18496 # Run-time system search path for libraries.
18497 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18499 # Whether dlopen is supported.
18500 dlopen_support=$enable_dlopen
18502 # Whether dlopen of programs is supported.
18503 dlopen_self=$enable_dlopen_self
18505 # Whether dlopen of statically linked programs is supported.
18506 dlopen_self_static=$enable_dlopen_self_static
18508 # Commands to strip libraries.
18509 old_striplib=$lt_old_striplib
18510 striplib=$lt_striplib
18513 # The linker used to build libraries.
18516 # How to create reloadable object files.
18517 reload_flag=$lt_reload_flag
18518 reload_cmds=$lt_reload_cmds
18520 # Commands used to build an old-style archive.
18521 old_archive_cmds=$lt_old_archive_cmds
18523 # A language specific compiler.
18526 # Is the compiler the GNU compiler?
18529 # Compiler flag to turn off builtin functions.
18530 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18532 # How to pass a linker flag through the compiler.
18533 wl=$lt_lt_prog_compiler_wl
18535 # Additional compiler flags for building library objects.
18536 pic_flag=$lt_lt_prog_compiler_pic
18538 # Compiler flag to prevent dynamic linking.
18539 link_static_flag=$lt_lt_prog_compiler_static
18541 # Does compiler simultaneously support -c and -o options?
18542 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18544 # Whether or not to add -lc for building shared libraries.
18545 build_libtool_need_lc=$archive_cmds_need_lc
18547 # Whether or not to disallow shared libs when runtime libs are static.
18548 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18550 # Compiler flag to allow reflexive dlopens.
18551 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18553 # Compiler flag to generate shared objects directly from archives.
18554 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18556 # Whether the compiler copes with passing no objects directly.
18557 compiler_needs_object=$lt_compiler_needs_object
18559 # Create an old-style archive from a shared archive.
18560 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18562 # Create a temporary old-style archive to link instead of a shared archive.
18563 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18565 # Commands used to build a shared archive.
18566 archive_cmds=$lt_archive_cmds
18567 archive_expsym_cmds=$lt_archive_expsym_cmds
18569 # Commands used to build a loadable module if different from building
18570 # a shared archive.
18571 module_cmds=$lt_module_cmds
18572 module_expsym_cmds=$lt_module_expsym_cmds
18574 # Whether we are building with GNU ld or not.
18575 with_gnu_ld=$lt_with_gnu_ld
18577 # Flag that allows shared libraries with undefined symbols to be built.
18578 allow_undefined_flag=$lt_allow_undefined_flag
18580 # Flag that enforces no undefined symbols.
18581 no_undefined_flag=$lt_no_undefined_flag
18583 # Flag to hardcode \$libdir into a binary during linking.
18584 # This must work even if \$libdir does not exist
18585 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18587 # If ld is used when linking, flag to hardcode \$libdir into a binary
18588 # during linking. This must work even if \$libdir does not exist.
18589 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18591 # Whether we need a single "-rpath" flag with a separated argument.
18592 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18594 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18595 # DIR into the resulting binary.
18596 hardcode_direct=$hardcode_direct
18598 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18599 # DIR into the resulting binary and the resulting library dependency is
18600 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18601 # library is relocated.
18602 hardcode_direct_absolute=$hardcode_direct_absolute
18604 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18605 # into the resulting binary.
18606 hardcode_minus_L=$hardcode_minus_L
18608 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18609 # into the resulting binary.
18610 hardcode_shlibpath_var=$hardcode_shlibpath_var
18612 # Set to "yes" if building a shared library automatically hardcodes DIR
18613 # into the library and all subsequent libraries and executables linked
18615 hardcode_automatic=$hardcode_automatic
18617 # Set to yes if linker adds runtime paths of dependent libraries
18618 # to runtime path list.
18619 inherit_rpath=$inherit_rpath
18621 # Whether libtool must link a program against all its dependency libraries.
18622 link_all_deplibs=$link_all_deplibs
18624 # Fix the shell variable \$srcfile for the compiler.
18625 fix_srcfile_path=$lt_fix_srcfile_path
18627 # Set to "yes" if exported symbols are required.
18628 always_export_symbols=$always_export_symbols
18630 # The commands to list exported symbols.
18631 export_symbols_cmds=$lt_export_symbols_cmds
18633 # Symbols that should not be listed in the preloaded symbols.
18634 exclude_expsyms=$lt_exclude_expsyms
18636 # Symbols that must always be exported.
18637 include_expsyms=$lt_include_expsyms
18639 # Commands necessary for linking programs (against libraries) with templates.
18640 prelink_cmds=$lt_prelink_cmds
18642 # Specify filename containing input files.
18643 file_list_spec=$lt_file_list_spec
18645 # How to hardcode a shared library path into an executable.
18646 hardcode_action=$hardcode_action
18648 # The directories searched by this compiler when creating a shared library.
18649 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18651 # Dependencies to place before and after the objects being linked to
18652 # create a shared library.
18653 predep_objects=$lt_predep_objects
18654 postdep_objects=$lt_postdep_objects
18655 predeps=$lt_predeps
18656 postdeps=$lt_postdeps
18658 # The library search path used internally by the compiler when linking
18659 # a shared library.
18660 compiler_lib_search_path=$lt_compiler_lib_search_path
18662 # ### END LIBTOOL CONFIG
18668 cat <<\_LT_EOF
>> "$cfgfile"
18669 # AIX sometimes has problems with the GCC collect2 program. For some
18670 # reason, if we set the COLLECT_NAMES environment variable, the problems
18671 # vanish in a puff of smoke.
18672 if test "X${COLLECT_NAMES+set}" != Xset
; then
18674 export COLLECT_NAMES
18681 ltmain
="$ac_aux_dir/ltmain.sh"
18684 # We use sed instead of cat because bash on DJGPP gets confused if
18685 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18686 # text mode, it properly converts lines to CR/LF. This bash problem
18687 # is reportedly fixed, but why not run on old versions too?
18688 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18689 ||
(rm -f "$cfgfile"; exit 1)
18693 cat << \_LT_EOF
>> "$cfgfile"
18695 # func_dirname file append nondir_replacement
18696 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18697 # otherwise set result to NONDIR_REPLACEMENT.
18701 */*) func_dirname_result
="${1%/*}${2}" ;;
18702 * ) func_dirname_result
="${3}" ;;
18706 # func_basename file
18709 func_basename_result
="${1##*/}"
18712 # func_dirname_and_basename file append nondir_replacement
18713 # perform func_basename and func_dirname in a single function
18715 # dirname: Compute the dirname of FILE. If nonempty,
18716 # add APPEND to the result, otherwise set result
18717 # to NONDIR_REPLACEMENT.
18718 # value returned in "$func_dirname_result"
18719 # basename: Compute filename of FILE.
18720 # value retuned in "$func_basename_result"
18721 # Implementation must be kept synchronized with func_dirname
18722 # and func_basename. For efficiency, we do not delegate to
18723 # those functions but instead duplicate the functionality here.
18724 func_dirname_and_basename
()
18727 */*) func_dirname_result
="${1%/*}${2}" ;;
18728 * ) func_dirname_result
="${3}" ;;
18730 func_basename_result
="${1##*/}"
18733 # func_stripname prefix suffix name
18734 # strip PREFIX and SUFFIX off of NAME.
18735 # PREFIX and SUFFIX must not contain globbing or regex special
18736 # characters, hashes, percent signs, but SUFFIX may contain a leading
18737 # dot (in which case that matches only a dot).
18740 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18741 # positional parameters, so assign one to ordinary parameter first.
18742 func_stripname_result
=${3}
18743 func_stripname_result
=${func_stripname_result#"${1}"}
18744 func_stripname_result
=${func_stripname_result%"${2}"}
18750 func_opt_split_opt
=${1%%=*}
18751 func_opt_split_arg
=${1#*=}
18758 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
18759 *) func_lo2o_result
=${1} ;;
18763 # func_xform libobj-or-source
18766 func_xform_result
=${1%.*}.lo
18769 # func_arith arithmetic-term...
18772 func_arith_result
=$
(( $
* ))
18776 # STRING may not start with a hyphen.
18779 func_len_result
=${#1}
18784 *) # Bourne compatible functions.
18785 cat << \_LT_EOF
>> "$cfgfile"
18787 # func_dirname file append nondir_replacement
18788 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18789 # otherwise set result to NONDIR_REPLACEMENT.
18792 # Extract subdirectory from the argument.
18793 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
18794 if test "X$func_dirname_result" = "X${1}"; then
18795 func_dirname_result
="${3}"
18797 func_dirname_result
="$func_dirname_result${2}"
18801 # func_basename file
18804 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
18808 # func_stripname prefix suffix name
18809 # strip PREFIX and SUFFIX off of NAME.
18810 # PREFIX and SUFFIX must not contain globbing or regex special
18811 # characters, hashes, percent signs, but SUFFIX may contain a leading
18812 # dot (in which case that matches only a dot).
18813 # func_strip_suffix prefix name
18817 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18818 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18823 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
18824 my_sed_long_arg
='1s/^-[^=]*=//'
18829 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18830 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18836 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
18839 # func_xform libobj-or-source
18842 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18845 # func_arith arithmetic-term...
18848 func_arith_result
=`expr "$@"`
18852 # STRING may not start with a hyphen.
18855 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18861 case $lt_shell_append in
18863 cat << \_LT_EOF
>> "$cfgfile"
18865 # func_append var value
18866 # Append VALUE to the end of shell variable VAR.
18874 cat << \_LT_EOF
>> "$cfgfile"
18876 # func_append var value
18877 # Append VALUE to the end of shell variable VAR.
18888 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18889 ||
(rm -f "$cfgfile"; exit 1)
18891 mv -f "$cfgfile" "$ofile" ||
18892 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18896 cat <<_LT_EOF >> "$ofile"
18898 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18900 # The linker used to build libraries.
18903 # How to create reloadable object files.
18904 reload_flag=$lt_reload_flag_CXX
18905 reload_cmds=$lt_reload_cmds_CXX
18907 # Commands used to build an old-style archive.
18908 old_archive_cmds=$lt_old_archive_cmds_CXX
18910 # A language specific compiler.
18911 CC=$lt_compiler_CXX
18913 # Is the compiler the GNU compiler?
18916 # Compiler flag to turn off builtin functions.
18917 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18919 # How to pass a linker flag through the compiler.
18920 wl=$lt_lt_prog_compiler_wl_CXX
18922 # Additional compiler flags for building library objects.
18923 pic_flag=$lt_lt_prog_compiler_pic_CXX
18925 # Compiler flag to prevent dynamic linking.
18926 link_static_flag=$lt_lt_prog_compiler_static_CXX
18928 # Does compiler simultaneously support -c and -o options?
18929 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18931 # Whether or not to add -lc for building shared libraries.
18932 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18934 # Whether or not to disallow shared libs when runtime libs are static.
18935 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18937 # Compiler flag to allow reflexive dlopens.
18938 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18940 # Compiler flag to generate shared objects directly from archives.
18941 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18943 # Whether the compiler copes with passing no objects directly.
18944 compiler_needs_object=$lt_compiler_needs_object_CXX
18946 # Create an old-style archive from a shared archive.
18947 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18949 # Create a temporary old-style archive to link instead of a shared archive.
18950 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18952 # Commands used to build a shared archive.
18953 archive_cmds=$lt_archive_cmds_CXX
18954 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18956 # Commands used to build a loadable module if different from building
18957 # a shared archive.
18958 module_cmds=$lt_module_cmds_CXX
18959 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18961 # Whether we are building with GNU ld or not.
18962 with_gnu_ld=$lt_with_gnu_ld_CXX
18964 # Flag that allows shared libraries with undefined symbols to be built.
18965 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18967 # Flag that enforces no undefined symbols.
18968 no_undefined_flag=$lt_no_undefined_flag_CXX
18970 # Flag to hardcode \$libdir into a binary during linking.
18971 # This must work even if \$libdir does not exist
18972 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18974 # If ld is used when linking, flag to hardcode \$libdir into a binary
18975 # during linking. This must work even if \$libdir does not exist.
18976 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18978 # Whether we need a single "-rpath" flag with a separated argument.
18979 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18981 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18982 # DIR into the resulting binary.
18983 hardcode_direct=$hardcode_direct_CXX
18985 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18986 # DIR into the resulting binary and the resulting library dependency is
18987 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18988 # library is relocated.
18989 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18991 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18992 # into the resulting binary.
18993 hardcode_minus_L=$hardcode_minus_L_CXX
18995 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18996 # into the resulting binary.
18997 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18999 # Set to "yes" if building a shared library automatically hardcodes DIR
19000 # into the library and all subsequent libraries and executables linked
19002 hardcode_automatic=$hardcode_automatic_CXX
19004 # Set to yes if linker adds runtime paths of dependent libraries
19005 # to runtime path list.
19006 inherit_rpath=$inherit_rpath_CXX
19008 # Whether libtool must link a program against all its dependency libraries.
19009 link_all_deplibs=$link_all_deplibs_CXX
19011 # Fix the shell variable \$srcfile for the compiler.
19012 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19014 # Set to "yes" if exported symbols are required.
19015 always_export_symbols=$always_export_symbols_CXX
19017 # The commands to list exported symbols.
19018 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19020 # Symbols that should not be listed in the preloaded symbols.
19021 exclude_expsyms=$lt_exclude_expsyms_CXX
19023 # Symbols that must always be exported.
19024 include_expsyms=$lt_include_expsyms_CXX
19026 # Commands necessary for linking programs (against libraries) with templates.
19027 prelink_cmds=$lt_prelink_cmds_CXX
19029 # Specify filename containing input files.
19030 file_list_spec=$lt_file_list_spec_CXX
19032 # How to hardcode a shared library path into an executable.
19033 hardcode_action=$hardcode_action_CXX
19035 # The directories searched by this compiler when creating a shared library.
19036 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19038 # Dependencies to place before and after the objects being linked to
19039 # create a shared library.
19040 predep_objects=$lt_predep_objects_CXX
19041 postdep_objects=$lt_postdep_objects_CXX
19042 predeps=$lt_predeps_CXX
19043 postdeps=$lt_postdeps_CXX
19045 # The library search path used internally by the compiler when linking
19046 # a shared library.
19047 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19049 # ### END LIBTOOL TAG CONFIG: CXX
19054 if test "$GCC" = yes; then
19055 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
19057 echo "/* generated for $CC */" > tmp-stdint.h
19060 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19062 #ifndef GCC_GENERATED_STDINT_H
19063 #define GCC_GENERATED_STDINT_H 1
19065 #include <sys/types.h>
19068 if test "$acx_cv_header_stdint" != stdint.h
; then
19069 echo "#include <stddef.h>" >> tmp-stdint.h
19071 if test "$acx_cv_header_stdint" != stddef.h
; then
19072 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
19075 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19076 /* glibc uses these symbols as guards to prevent redefinitions. */
19077 #ifdef __int8_t_defined
19082 #ifdef __uint32_t_defined
19088 # ----------------- done header, emit basic int types -------------
19089 if test "$acx_cv_header_stdint" = stddef.h
; then
19090 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19094 #ifndef __uint8_t_defined
19095 #define __uint8_t_defined
19097 typedef unsigned $acx_cv_type_int8_t uint8_t;
19104 #ifndef __uint16_t_defined
19105 #define __uint16_t_defined
19107 typedef unsigned $acx_cv_type_int16_t uint16_t;
19114 #ifndef __uint32_t_defined
19115 #define __uint32_t_defined
19117 typedef unsigned $acx_cv_type_int32_t uint32_t;
19124 #ifndef __int8_t_defined
19125 #define __int8_t_defined
19127 typedef $acx_cv_type_int8_t int8_t;
19134 #ifndef __int16_t_defined
19135 #define __int16_t_defined
19137 typedef $acx_cv_type_int16_t int16_t;
19144 #ifndef __int32_t_defined
19145 #define __int32_t_defined
19147 typedef $acx_cv_type_int32_t int32_t;
19152 elif test "$ac_cv_type_u_int32_t" = yes; then
19153 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19155 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
19168 #ifndef __uint8_t_defined
19169 #define __uint8_t_defined
19171 typedef u_int8_t uint8_t;
19178 #ifndef __uint16_t_defined
19179 #define __uint16_t_defined
19181 typedef u_int16_t uint16_t;
19188 #ifndef __uint32_t_defined
19189 #define __uint32_t_defined
19191 typedef u_int32_t uint32_t;
19197 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19199 /* Some systems have guard macros to prevent redefinitions, define them. */
19221 # ------------- done basic int types, emit int64_t types ------------
19222 if test "$ac_cv_type_uint64_t" = yes; then
19223 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19225 /* system headers have good uint64_t and int64_t */
19233 elif test "$ac_cv_type_u_int64_t" = yes; then
19234 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19236 /* system headers have an u_int64_t (and int64_t) */
19242 #ifndef __uint64_t_defined
19243 #define __uint64_t_defined
19245 typedef u_int64_t uint64_t;
19250 elif test -n "$acx_cv_type_int64_t"; then
19251 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19253 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19257 typedef $acx_cv_type_int64_t int64_t;
19262 #ifndef __uint64_t_defined
19263 #define __uint64_t_defined
19265 typedef unsigned $acx_cv_type_int64_t uint64_t;
19271 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19273 /* some common heuristics for int64_t, using compiler-specific tests */
19274 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19277 #ifndef __int64_t_defined
19279 typedef long long int64_t;
19286 typedef unsigned long long uint64_t;
19290 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19291 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19292 does not implement __extension__. But that compiler doesn't define
19294 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19295 # define __extension__
19301 __extension__ typedef long long int64_t;
19307 __extension__ typedef unsigned long long uint64_t;
19311 #elif !defined __STRICT_ANSI__
19312 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19317 typedef __int64 int64_t;
19323 typedef unsigned __int64 uint64_t;
19326 # endif /* compiler */
19328 #endif /* ANSI version */
19332 # ------------- done int64_t types, emit intptr types ------------
19333 if test "$ac_cv_type_uintptr_t" != yes; then
19334 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19336 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
19337 #ifndef __uintptr_t_defined
19339 typedef u$acx_cv_type_intptr_t uintptr_t;
19342 #ifndef __intptr_t_defined
19344 typedef $acx_cv_type_intptr_t intptr_t;
19350 # ------------- done intptr types, emit int_least types ------------
19351 if test "$ac_cv_type_int_least32_t" != yes; then
19352 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19354 /* Define int_least types */
19355 typedef int8_t int_least8_t;
19356 typedef int16_t int_least16_t;
19357 typedef int32_t int_least32_t;
19359 typedef int64_t int_least64_t;
19362 typedef uint8_t uint_least8_t;
19363 typedef uint16_t uint_least16_t;
19364 typedef uint32_t uint_least32_t;
19366 typedef uint64_t uint_least64_t;
19371 # ------------- done intptr types, emit int_fast types ------------
19372 if test "$ac_cv_type_int_fast32_t" != yes; then
19373 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19375 /* Define int_fast types. short is often slow */
19376 typedef int8_t int_fast8_t;
19377 typedef int int_fast16_t;
19378 typedef int32_t int_fast32_t;
19380 typedef int64_t int_fast64_t;
19383 typedef uint8_t uint_fast8_t;
19384 typedef unsigned int uint_fast16_t;
19385 typedef uint32_t uint_fast32_t;
19387 typedef uint64_t uint_fast64_t;
19392 if test "$ac_cv_type_uintmax_t" != yes; then
19393 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19395 /* Define intmax based on what we found */
19398 typedef int64_t intmax_t;
19400 typedef long intmax_t;
19405 typedef uint64_t uintmax_t;
19407 typedef unsigned long uintmax_t;
19413 sed 's/^ *//' >> tmp-stdint.h
<<EOF
19415 #endif /* GCC_GENERATED_STDINT_H */
19418 if test -r gstdint.h
&& cmp -s tmp-stdint.h gstdint.h
; then
19421 mv -f tmp-stdint.h gstdint.h
19425 "interception/Makefile":F
) cat > vpsed$$
<< \_EOF
19426 s
!`test -f '$<' || echo '$(srcdir)/'`!!
19428 sed -f vpsed$$
$ac_file > tmp$$
19431 echo 'MULTISUBDIR =' >> $ac_file
19433 .
${multi_basedir}/config-ml.
in
19434 { ml_norecursion
=; unset ml_norecursion
;}
19436 "sanitizer_common/Makefile":F
) cat > vpsed$$
<< \_EOF
19437 s
!`test -f '$<' || echo '$(srcdir)/'`!!
19439 sed -f vpsed$$
$ac_file > tmp$$
19442 echo 'MULTISUBDIR =' >> $ac_file
19444 .
${multi_basedir}/config-ml.
in
19445 { ml_norecursion
=; unset ml_norecursion
;}
19447 "libbacktrace/Makefile":F
) cat > vpsed$$
<< \_EOF
19448 s
!`test -f '$<' || echo '$(srcdir)/'`!!
19450 sed -f vpsed$$
$ac_file > tmp$$
19453 echo 'MULTISUBDIR =' >> $ac_file
19455 .
${multi_basedir}/config-ml.
in
19456 { ml_norecursion
=; unset ml_norecursion
;}
19458 "lsan/Makefile":F
) cat > vpsed$$
<< \_EOF
19459 s
!`test -f '$<' || echo '$(srcdir)/'`!!
19461 sed -f vpsed$$
$ac_file > tmp$$
19464 echo 'MULTISUBDIR =' >> $ac_file
19466 .
${multi_basedir}/config-ml.
in
19467 { ml_norecursion
=; unset ml_norecursion
;}
19469 "asan/Makefile":F
) cat > vpsed$$
<< \_EOF
19470 s
!`test -f '$<' || echo '$(srcdir)/'`!!
19472 sed -f vpsed$$
$ac_file > tmp$$
19475 echo 'MULTISUBDIR =' >> $ac_file
19477 .
${multi_basedir}/config-ml.
in
19478 { ml_norecursion
=; unset ml_norecursion
;}
19480 "ubsan/Makefile":F
) cat > vpsed$$
<< \_EOF
19481 s
!`test -f '$<' || echo '$(srcdir)/'`!!
19483 sed -f vpsed$$
$ac_file > tmp$$
19486 echo 'MULTISUBDIR =' >> $ac_file
19488 .
${multi_basedir}/config-ml.
in
19489 { ml_norecursion
=; unset ml_norecursion
;}
19491 "tsan/Makefile":F
) cat > vpsed$$
<< \_EOF
19492 s
!`test -f '$<' || echo '$(srcdir)/'`!!
19494 sed -f vpsed$$
$ac_file > tmp$$
19497 echo 'MULTISUBDIR =' >> $ac_file
19499 .
${multi_basedir}/config-ml.
in
19500 { ml_norecursion
=; unset ml_norecursion
;}
19509 ac_clean_files
=$ac_clean_files_save
19511 test $ac_write_fail = 0 ||
19512 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
19515 # configure is writing to config.log, and then calls config.status.
19516 # config.status does its own redirection, appending to config.log.
19517 # Unfortunately, on DOS this fails, as config.log is still kept open
19518 # by configure, so config.status won't be able to write to it; its
19519 # output is simply discarded. So we exec the FD to /dev/null,
19520 # effectively closing config.log, so it can be properly (re)opened and
19521 # appended to by config.status. When coming back to configure, we
19522 # need to make the FD available again.
19523 if test "$no_create" != yes; then
19525 ac_config_status_args
=
19526 test "$silent" = yes &&
19527 ac_config_status_args
="$ac_config_status_args --quiet"
19529 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19531 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19532 # would make configure fail if this is the last instruction.
19533 $ac_cs_success || as_fn_exit $?
19535 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19537 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}