2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libcc1 version-unused.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev
/null
; then :
213 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
218 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir
=.
225 for as_base
in sh bash ksh sh5
; do
226 # Try only shells that exist, to save several forks.
227 as_shell
=$as_dir/$as_base
228 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
230 CONFIG_SHELL
=$as_shell as_have_required
=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
239 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
241 CONFIG_SHELL
=$SHELL as_have_required
=yes
246 if test "x$CONFIG_SHELL" != x
; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
256 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x
$as_have_required = xno
; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x
${ZSH_VERSION+set} = xset
; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL
=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE
= GREP_OPTIONS
=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir
=.
/$as_dir;;
329 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
333 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs
="'$as_qdir' $as_dirs"
337 as_dir
=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
363 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p
()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
406 as_val
=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status
=$1; test $as_status -eq 0 && as_status
=1
420 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit
$as_status
427 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
434 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
446 as_me
=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits
='0123456789'
470 as_cr_alnum
=$as_cr_Letters$as_cr_digits
473 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
474 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x
"$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec
=no
; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C
= ECHO_N
= ECHO_T
=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
521 rm -f conf$$ conf$$.exe conf$$.
file
522 if test -d conf$$.dir
; then
523 rm -f conf$$.dir
/conf$$.
file
526 mkdir conf$$.dir
2>/dev
/null
528 if (echo >conf$$.
file) 2>/dev
/null
; then
529 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
537 elif ln conf$$.
file conf$$
2>/dev
/null
; then
545 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
546 rmdir conf$$.dir
2>/dev
/null
548 if mkdir
-p .
2>/dev
/null
; then
549 as_mkdir_p
='mkdir -p "$as_dir"'
551 test -d .
/-p && rmdir .
/-p
556 as_executable_p
=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL
=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix
=/usr
/local
580 ac_config_libobj_dir
=.
587 # Identity of this package.
588 PACKAGE_NAME
='libcc1'
589 PACKAGE_TARNAME
='libcc1'
590 PACKAGE_VERSION
='version-unused'
591 PACKAGE_STRING
='libcc1 version-unused'
595 ac_unique_file
="libcc1.cc"
596 # Factoring default headers for most tests.
597 ac_includes_default
="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
632 ac_subst_vars
='am__EXEEXT_FALSE
642 CONFIG_STATUS_DEPENDENCIES
670 MAINTAINER_MODE_FALSE
694 INSTALL_STRIP_PROGRAM
763 program_transform_name
776 enable_option_checking
778 enable_dependency_tracking
780 enable_maintainer_mode
787 with_gcc_major_version_only
791 ac_precious_vars
='build_alias
807 # Initialize some variables set by options.
809 ac_init_version
=false
810 ac_unrecognized_opts
=
812 # The variables have the same names as the options, with
813 # dashes changed to underlines.
821 program_transform_name
=s
,x
,x
,
829 # Installation directory options.
830 # These are left unexpanded so users can "make install exec_prefix=/foo"
831 # and all the variables that are supposed to be based on exec_prefix
832 # by default will actually change.
833 # Use braces instead of parens because sh, perl, etc. also accept them.
834 # (The list follows the same order as the GNU Coding Standards.)
835 bindir
='${exec_prefix}/bin'
836 sbindir
='${exec_prefix}/sbin'
837 libexecdir
='${exec_prefix}/libexec'
838 datarootdir
='${prefix}/share'
839 datadir
='${datarootdir}'
840 sysconfdir
='${prefix}/etc'
841 sharedstatedir
='${prefix}/com'
842 localstatedir
='${prefix}/var'
843 includedir
='${prefix}/include'
844 oldincludedir
='/usr/include'
845 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
846 infodir
='${datarootdir}/info'
851 libdir
='${exec_prefix}/lib'
852 localedir
='${datarootdir}/locale'
853 mandir
='${datarootdir}/man'
859 # If the previous option needs an argument, assign it.
860 if test -n "$ac_prev"; then
861 eval $ac_prev=\
$ac_option
867 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
872 # Accept the important Cygnus configure options, so we can diagnose typos.
874 case $ac_dashdash$ac_option in
878 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
880 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
883 -build |
--build |
--buil |
--bui |
--bu)
884 ac_prev
=build_alias
;;
885 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
886 build_alias
=$ac_optarg ;;
888 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
889 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
890 ac_prev
=cache_file
;;
891 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
892 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
893 cache_file
=$ac_optarg ;;
896 cache_file
=config.cache
;;
898 -datadir |
--datadir |
--datadi |
--datad)
900 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
901 datadir
=$ac_optarg ;;
903 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
904 |
--dataroo |
--dataro |
--datar)
905 ac_prev
=datarootdir
;;
906 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
907 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
908 datarootdir
=$ac_optarg ;;
910 -disable-* |
--disable-*)
911 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
912 # Reject names that are not valid shell variable names.
913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
914 as_fn_error $?
"invalid feature name: $ac_useropt"
915 ac_useropt_orig
=$ac_useropt
916 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917 case $ac_user_opts in
921 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
922 ac_unrecognized_sep
=', ';;
924 eval enable_
$ac_useropt=no
;;
926 -docdir |
--docdir |
--docdi |
--doc |
--do)
928 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
931 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
933 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
936 -enable-* |
--enable-*)
937 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
940 as_fn_error $?
"invalid feature name: $ac_useropt"
941 ac_useropt_orig
=$ac_useropt
942 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943 case $ac_user_opts in
947 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
948 ac_unrecognized_sep
=', ';;
950 eval enable_
$ac_useropt=\
$ac_optarg ;;
952 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
953 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
954 |
--exec |
--exe |
--ex)
955 ac_prev
=exec_prefix
;;
956 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
957 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
958 |
--exec=* |
--exe=* |
--ex=*)
959 exec_prefix
=$ac_optarg ;;
961 -gas |
--gas |
--ga |
--g)
962 # Obsolete; use --with-gas.
965 -help |
--help |
--hel |
--he |
-h)
967 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
968 ac_init_help
=recursive
;;
969 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
970 ac_init_help
=short
;;
972 -host |
--host |
--hos |
--ho)
973 ac_prev
=host_alias
;;
974 -host=* |
--host=* |
--hos=* |
--ho=*)
975 host_alias
=$ac_optarg ;;
977 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
979 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
981 htmldir
=$ac_optarg ;;
983 -includedir |
--includedir |
--includedi |
--included |
--include \
984 |
--includ |
--inclu |
--incl |
--inc)
985 ac_prev
=includedir
;;
986 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
987 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
988 includedir
=$ac_optarg ;;
990 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
992 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
993 infodir
=$ac_optarg ;;
995 -libdir |
--libdir |
--libdi |
--libd)
997 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1000 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1001 |
--libexe |
--libex |
--libe)
1002 ac_prev
=libexecdir
;;
1003 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1004 |
--libexe=* |
--libex=* |
--libe=*)
1005 libexecdir
=$ac_optarg ;;
1007 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1008 ac_prev
=localedir
;;
1009 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1010 localedir
=$ac_optarg ;;
1012 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1013 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1014 ac_prev
=localstatedir
;;
1015 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1016 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1017 localstatedir
=$ac_optarg ;;
1019 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1021 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1022 mandir
=$ac_optarg ;;
1024 -nfp |
--nfp |
--nf)
1025 # Obsolete; use --without-fp.
1028 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1029 |
--no-cr |
--no-c |
-n)
1032 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1033 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1036 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1037 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1038 |
--oldin |
--oldi |
--old |
--ol |
--o)
1039 ac_prev
=oldincludedir
;;
1040 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1041 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1042 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1043 oldincludedir
=$ac_optarg ;;
1045 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1047 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1048 prefix
=$ac_optarg ;;
1050 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1051 |
--program-pre |
--program-pr |
--program-p)
1052 ac_prev
=program_prefix
;;
1053 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1054 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1055 program_prefix
=$ac_optarg ;;
1057 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1058 |
--program-suf |
--program-su |
--program-s)
1059 ac_prev
=program_suffix
;;
1060 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1061 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1062 program_suffix
=$ac_optarg ;;
1064 -program-transform-name |
--program-transform-name \
1065 |
--program-transform-nam |
--program-transform-na \
1066 |
--program-transform-n |
--program-transform- \
1067 |
--program-transform |
--program-transfor \
1068 |
--program-transfo |
--program-transf \
1069 |
--program-trans |
--program-tran \
1070 |
--progr-tra |
--program-tr |
--program-t)
1071 ac_prev
=program_transform_name
;;
1072 -program-transform-name=* |
--program-transform-name=* \
1073 |
--program-transform-nam=* |
--program-transform-na=* \
1074 |
--program-transform-n=* |
--program-transform-=* \
1075 |
--program-transform=* |
--program-transfor=* \
1076 |
--program-transfo=* |
--program-transf=* \
1077 |
--program-trans=* |
--program-tran=* \
1078 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1079 program_transform_name
=$ac_optarg ;;
1081 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1083 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1084 pdfdir
=$ac_optarg ;;
1086 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1088 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1091 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1092 |
-silent |
--silent |
--silen |
--sile |
--sil)
1095 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1097 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1099 sbindir
=$ac_optarg ;;
1101 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1102 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1103 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1105 ac_prev
=sharedstatedir
;;
1106 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1107 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1108 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1110 sharedstatedir
=$ac_optarg ;;
1112 -site |
--site |
--sit)
1114 -site=* |
--site=* |
--sit=*)
1117 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1119 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1120 srcdir
=$ac_optarg ;;
1122 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1123 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1124 ac_prev
=sysconfdir
;;
1125 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1126 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1127 sysconfdir
=$ac_optarg ;;
1129 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1130 ac_prev
=target_alias
;;
1131 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1132 target_alias
=$ac_optarg ;;
1134 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1137 -version |
--version |
--versio |
--versi |
--vers |
-V)
1138 ac_init_version
=: ;;
1141 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1144 as_fn_error $?
"invalid package name: $ac_useropt"
1145 ac_useropt_orig
=$ac_useropt
1146 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in
1151 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1152 ac_unrecognized_sep
=', ';;
1154 eval with_
$ac_useropt=\
$ac_optarg ;;
1156 -without-* |
--without-*)
1157 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1160 as_fn_error $?
"invalid package name: $ac_useropt"
1161 ac_useropt_orig
=$ac_useropt
1162 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163 case $ac_user_opts in
1167 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1168 ac_unrecognized_sep
=', ';;
1170 eval with_
$ac_useropt=no
;;
1173 # Obsolete; use --with-x.
1176 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1177 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1178 ac_prev
=x_includes
;;
1179 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1180 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1181 x_includes
=$ac_optarg ;;
1183 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1184 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1185 ac_prev
=x_libraries
;;
1186 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1187 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1188 x_libraries
=$ac_optarg ;;
1190 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1191 Try \`$0 --help' for more information"
1195 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1196 # Reject names that are not valid shell variable names.
1197 case $ac_envvar in #(
1198 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1199 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1201 eval $ac_envvar=\
$ac_optarg
1202 export $ac_envvar ;;
1205 # FIXME: should be removed in autoconf 3.0.
1206 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1207 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1208 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1209 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1215 if test -n "$ac_prev"; then
1216 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1217 as_fn_error $?
"missing argument to $ac_option"
1220 if test -n "$ac_unrecognized_opts"; then
1221 case $enable_option_checking in
1223 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1224 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1228 # Check all directory arguments for consistency.
1229 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1230 datadir sysconfdir sharedstatedir localstatedir includedir \
1231 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1232 libdir localedir mandir
1234 eval ac_val
=\$
$ac_var
1235 # Remove trailing slashes.
1238 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1239 eval $ac_var=\
$ac_val;;
1241 # Be sure to have absolute directory names.
1243 [\\/$
]* | ?
:[\\/]* ) continue;;
1244 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1246 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1249 # There might be people who depend on the old broken behavior: `$host'
1250 # used to hold the argument of --host etc.
1251 # FIXME: To remove some day.
1254 target
=$target_alias
1256 # FIXME: To remove some day.
1257 if test "x$host_alias" != x
; then
1258 if test "x$build_alias" = x
; then
1259 cross_compiling
=maybe
1260 elif test "x$build_alias" != "x$host_alias"; then
1266 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1268 test "$silent" = yes && exec 6>/dev
/null
1271 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1272 ac_ls_di
=`ls -di .` &&
1273 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1274 as_fn_error $?
"working directory cannot be determined"
1275 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1276 as_fn_error $?
"pwd does not report name of working directory"
1279 # Find the source files, if location was not specified.
1280 if test -z "$srcdir"; then
1281 ac_srcdir_defaulted
=yes
1282 # Try the directory containing this script, then the parent directory.
1283 ac_confdir
=`$as_dirname -- "$as_myself" ||
1284 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1285 X"$as_myself" : 'X\(//\)[^/]' \| \
1286 X"$as_myself" : 'X\(//\)$' \| \
1287 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1288 $as_echo X"$as_myself" |
1289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1307 if test ! -r "$srcdir/$ac_unique_file"; then
1311 ac_srcdir_defaulted
=no
1313 if test ! -r "$srcdir/$ac_unique_file"; then
1314 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1315 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1317 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1319 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1321 # When building in place, set srcdir=.
1322 if test "$ac_abs_confdir" = "$ac_pwd"; then
1325 # Remove unnecessary trailing slashes from srcdir.
1326 # Double slashes in file names in object file debugging info
1327 # mess up M-x gdb in Emacs.
1329 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1331 for ac_var
in $ac_precious_vars; do
1332 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1333 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1334 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1335 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1339 # Report the --help message.
1341 if test "$ac_init_help" = "long"; then
1342 # Omit some internal or obsolete options to make the list less imposing.
1343 # This message is too long to be a string in the A/UX 3.1 sh.
1345 \`configure' configures libcc1 version-unused to adapt to many kinds of systems.
1347 Usage: $0 [OPTION]... [VAR=VALUE]...
1349 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1350 VAR=VALUE. See below for descriptions of some of the useful variables.
1352 Defaults for the options are specified in brackets.
1355 -h, --help display this help and exit
1356 --help=short display options specific to this package
1357 --help=recursive display the short help of all the included packages
1358 -V, --version display version information and exit
1359 -q, --quiet, --silent do not print \`checking ...' messages
1360 --cache-file=FILE cache test results in FILE [disabled]
1361 -C, --config-cache alias for \`--cache-file=config.cache'
1362 -n, --no-create do not create output files
1363 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1365 Installation directories:
1366 --prefix=PREFIX install architecture-independent files in PREFIX
1367 [$ac_default_prefix]
1368 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1371 By default, \`make install' will install all the files in
1372 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1373 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1374 for instance \`--prefix=\$HOME'.
1376 For better control, use the options below.
1378 Fine tuning of the installation directories:
1379 --bindir=DIR user executables [EPREFIX/bin]
1380 --sbindir=DIR system admin executables [EPREFIX/sbin]
1381 --libexecdir=DIR program executables [EPREFIX/libexec]
1382 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1383 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1384 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1385 --libdir=DIR object code libraries [EPREFIX/lib]
1386 --includedir=DIR C header files [PREFIX/include]
1387 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1388 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1389 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1390 --infodir=DIR info documentation [DATAROOTDIR/info]
1391 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1392 --mandir=DIR man documentation [DATAROOTDIR/man]
1393 --docdir=DIR documentation root [DATAROOTDIR/doc/libcc1]
1394 --htmldir=DIR html documentation [DOCDIR]
1395 --dvidir=DIR dvi documentation [DOCDIR]
1396 --pdfdir=DIR pdf documentation [DOCDIR]
1397 --psdir=DIR ps documentation [DOCDIR]
1403 --program-prefix=PREFIX prepend PREFIX to installed program names
1404 --program-suffix=SUFFIX append SUFFIX to installed program names
1405 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1408 --build=BUILD configure
for building on BUILD
[guessed
]
1409 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1410 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1414 if test -n "$ac_init_help"; then
1415 case $ac_init_help in
1416 short | recursive
) echo "Configuration of libcc1 version-unused:";;
1421 --disable-option-checking ignore unrecognized
--enable/--with options
1422 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1423 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1424 --enable-dependency-tracking
1425 do not reject slow dependency extractors
1426 --disable-dependency-tracking
1427 speeds up one-time build
1428 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1429 --disable-silent-rules verbose build output
(undo
: "make V=0")
1430 --enable-maintainer-mode
1431 enable make rules and dependencies not useful
(and
1432 sometimes confusing
) to the casual installer
1433 --enable-static[=PKGS
] build static libraries
[default
=no
]
1434 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1435 --enable-fast-install[=PKGS
]
1436 optimize
for fast installation
[default
=yes]
1437 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1438 --enable-werror-always enable -Werror despite compiler version
1439 --enable-plugin enable plugin support
1442 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1443 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1444 --with-build-libsubdir=DIR Directory where to
find libraries
for build system
1445 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1447 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1448 --with-gcc-major-version-only
1449 use only GCC major number
in filesystem paths
1451 Some influential environment variables
:
1452 CC C compiler
command
1453 CFLAGS C compiler flags
1454 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1455 nonstandard directory
<lib dir
>
1456 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1457 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1458 you have headers
in a nonstandard directory
<include dir
>
1460 CXX C
++ compiler
command
1461 CXXFLAGS C
++ compiler flags
1462 CXXCPP C
++ preprocessor
1463 GMPINC How to
find GMP include files
1465 Use these variables to override the choices made by
`configure' or to help
1466 it to find libraries and programs with nonstandard names/locations.
1468 Report bugs to the package provider.
1473 if test "$ac_init_help" = "recursive"; then
1474 # If there are subdirs, report their specific --help.
1475 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1476 test -d "$ac_dir" ||
1477 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1482 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1485 # A ".." for each directory in $ac_dir_suffix.
1486 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1487 case $ac_top_builddir_sub in
1488 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1492 ac_abs_top_builddir=$ac_pwd
1493 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1494 # for backward compatibility:
1495 ac_top_builddir=$ac_top_build_prefix
1498 .) # We are building in place.
1500 ac_top_srcdir=$ac_top_builddir_sub
1501 ac_abs_top_srcdir=$ac_pwd ;;
1502 [\\/]* | ?:[\\/]* ) # Absolute name.
1503 ac_srcdir=$srcdir$ac_dir_suffix;
1504 ac_top_srcdir=$srcdir
1505 ac_abs_top_srcdir=$srcdir ;;
1507 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1508 ac_top_srcdir=$ac_top_build_prefix$srcdir
1509 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1511 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1513 cd "$ac_dir" || { ac_status=$?; continue; }
1514 # Check for guested configure.
1515 if test -f "$ac_srcdir/configure.gnu"; then
1517 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1518 elif test -f "$ac_srcdir/configure"; then
1520 $SHELL "$ac_srcdir/configure" --help=recursive
1522 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1524 cd "$ac_pwd" || { ac_status=$?; break; }
1528 test -n "$ac_init_help" && exit $ac_status
1529 if $ac_init_version; then
1531 libcc1 configure version-unused
1532 generated by GNU Autoconf 2.69
1534 Copyright (C) 2012 Free Software Foundation, Inc.
1535 This configure script is free software; the Free Software Foundation
1536 gives unlimited permission to copy, distribute and modify it.
1541 ## ------------------------ ##
1542 ## Autoconf initialization. ##
1543 ## ------------------------ ##
1545 # ac_fn_c_try_compile LINENO
1546 # --------------------------
1547 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1548 ac_fn_c_try_compile ()
1550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551 rm -f conftest.$ac_objext
1552 if { { ac_try="$ac_compile"
1554 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1555 *) ac_try_echo
=$ac_try;;
1557 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1558 $as_echo "$ac_try_echo"; } >&5
1559 (eval "$ac_compile") 2>conftest.err
1561 if test -s conftest.err
; then
1562 grep -v '^ *+' conftest.err
>conftest.er1
1563 cat conftest.er1
>&5
1564 mv -f conftest.er1 conftest.err
1566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1567 test $ac_status = 0; } && {
1568 test -z "$ac_c_werror_flag" ||
1569 test ! -s conftest.err
1570 } && test -s conftest.
$ac_objext; then :
1573 $as_echo "$as_me: failed program was:" >&5
1574 sed 's/^/| /' conftest.
$ac_ext >&5
1578 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1579 as_fn_set_status
$ac_retval
1581 } # ac_fn_c_try_compile
1583 # ac_fn_c_try_cpp LINENO
1584 # ----------------------
1585 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1588 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1589 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1591 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1592 *) ac_try_echo=$ac_try;;
1594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595 $as_echo "$ac_try_echo"; } >&5
1596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1598 if test -s conftest.err; then
1599 grep -v '^ *+' conftest.err >conftest.er1
1600 cat conftest.er1 >&5
1601 mv -f conftest.er1 conftest.err
1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604 test $ac_status = 0; } > conftest.i && {
1605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1606 test ! -s conftest.err
1610 $as_echo "$as_me: failed program was:" >&5
1611 sed 's/^/| /' conftest.$ac_ext >&5
1615 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1616 as_fn_set_status $ac_retval
1620 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1621 # -------------------------------------------------------
1622 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1623 # the include files in INCLUDES and setting the cache variable VAR
1625 ac_fn_c_check_header_mongrel ()
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 if eval \${$3+:} false; then :
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1630 $as_echo_n "checking for $2... " >&6; }
1631 if eval \${$3+:} false; then :
1632 $as_echo_n "(cached) " >&6
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1636 $as_echo "$ac_res" >&6; }
1638 # Is the header compilable?
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1640 $as_echo_n "checking $2 usability... " >&6; }
1641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1642 /* end confdefs.h. */
1646 if ac_fn_c_try_compile "$LINENO"; then :
1647 ac_header_compiler=yes
1649 ac_header_compiler=no
1651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1653 $as_echo "$ac_header_compiler" >&6; }
1655 # Is the header present?
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1657 $as_echo_n "checking $2 presence... " >&6; }
1658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1659 /* end confdefs.h. */
1662 if ac_fn_c_try_cpp "$LINENO"; then :
1663 ac_header_preproc=yes
1665 ac_header_preproc=no
1667 rm -f conftest.err conftest.i conftest.$ac_ext
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1669 $as_echo "$ac_header_preproc" >&6; }
1671 # So? What about this header?
1672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1675 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1677 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1681 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1683 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1685 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1687 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1689 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1693 $as_echo_n "checking for $2... " >&6; }
1694 if eval \${$3+:} false; then :
1695 $as_echo_n "(cached) " >&6
1697 eval "$3=\$ac_header_compiler"
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1701 $as_echo "$ac_res" >&6; }
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705 } # ac_fn_c_check_header_mongrel
1707 # ac_fn_c_try_run LINENO
1708 # ----------------------
1709 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1710 # that executables *can* be run.
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 if { { ac_try="$ac_link"
1716 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1717 *) ac_try_echo
=$ac_try;;
1719 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_link") 2>&5
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1725 { { case "(($ac_try" in
1726 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 $as_echo "$ac_try_echo"; } >&5
1731 (eval "$ac_try") 2>&5
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; }; }; then :
1737 $as_echo "$as_me: program exited with status $ac_status" >&5
1738 $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1741 ac_retval=$ac_status
1743 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745 as_fn_set_status $ac_retval
1749 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1750 # -------------------------------------------------------
1751 # Tests whether HEADER exists and can be compiled using the include files in
1752 # INCLUDES, setting the cache variable VAR accordingly.
1753 ac_fn_c_check_header_compile ()
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757 $as_echo_n "checking for $2... " >&6; }
1758 if eval \${$3+:} false; then :
1759 $as_echo_n "(cached) " >&6
1761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h. */
1766 if ac_fn_c_try_compile "$LINENO"; then :
1771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775 $as_echo "$ac_res" >&6; }
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778 } # ac_fn_c_check_header_compile
1780 # ac_fn_c_try_link LINENO
1781 # -----------------------
1782 # Try to link conftest.$ac_ext, and return whether this succeeded.
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 rm -f conftest.$ac_objext conftest$ac_exeext
1787 if { { ac_try="$ac_link"
1789 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1790 *) ac_try_echo
=$ac_try;;
1792 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 $as_echo "$ac_try_echo"; } >&5
1794 (eval "$ac_link") 2>conftest.err
1796 if test -s conftest.err
; then
1797 grep -v '^ *+' conftest.err
>conftest.er1
1798 cat conftest.er1
>&5
1799 mv -f conftest.er1 conftest.err
1801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802 test $ac_status = 0; } && {
1803 test -z "$ac_c_werror_flag" ||
1804 test ! -s conftest.err
1805 } && test -s conftest
$ac_exeext && {
1806 test "$cross_compiling" = yes ||
1807 test -x conftest
$ac_exeext
1811 $as_echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.
$ac_ext >&5
1816 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1817 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1818 # interfere with the next link command; also delete a directory that is
1819 # left behind by Apple's compiler. We do this before executing the actions.
1820 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822 as_fn_set_status
$ac_retval
1824 } # ac_fn_c_try_link
1826 # ac_fn_c_check_func LINENO FUNC VAR
1827 # ----------------------------------
1828 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1829 ac_fn_c_check_func
()
1831 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833 $as_echo_n "checking for $2... " >&6; }
1834 if eval \
${$3+:} false
; then :
1835 $as_echo_n "(cached) " >&6
1837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h. */
1839 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1841 #define $2 innocuous_$2
1843 /* System header to define __stub macros and hopefully few prototypes,
1844 which can conflict with char $2 (); below.
1845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1846 <limits.h> exists even on freestanding compilers. */
1849 # include <limits.h>
1851 # include <assert.h>
1856 /* Override any GCC internal prototype to avoid an error.
1857 Use char because int might match the return type of a GCC
1858 builtin and then its argument prototype would still apply. */
1863 /* The GNU C library defines this for functions which it implements
1864 to always fail with ENOSYS. Some functions are actually named
1865 something starting with __ and the normal name is an alias. */
1866 #if defined __stub_$2 || defined __stub___$2
1878 if ac_fn_c_try_link
"$LINENO"; then :
1883 rm -f core conftest.err conftest.
$ac_objext \
1884 conftest
$ac_exeext conftest.
$ac_ext
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888 $as_echo "$ac_res" >&6; }
1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891 } # ac_fn_c_check_func
1893 # ac_fn_cxx_try_compile LINENO
1894 # ----------------------------
1895 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1896 ac_fn_cxx_try_compile
()
1898 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1899 rm -f conftest.
$ac_objext
1900 if { { ac_try
="$ac_compile"
1902 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1903 *) ac_try_echo=$ac_try;;
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_compile") 2>conftest.err
1909 if test -s conftest.err; then
1910 grep -v '^ *+' conftest.err >conftest.er1
1911 cat conftest.er1 >&5
1912 mv -f conftest.er1 conftest.err
1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915 test $ac_status = 0; } && {
1916 test -z "$ac_cxx_werror_flag" ||
1917 test ! -s conftest.err
1918 } && test -s conftest.$ac_objext; then :
1921 $as_echo "$as_me: failed program was:" >&5
1922 sed 's/^/| /' conftest.$ac_ext >&5
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 as_fn_set_status $ac_retval
1929 } # ac_fn_cxx_try_compile
1931 # ac_fn_cxx_try_cpp LINENO
1932 # ------------------------
1933 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1934 ac_fn_cxx_try_cpp ()
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 if { { ac_try="$ac_cpp conftest.$ac_ext"
1939 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1940 *) ac_try_echo
=$ac_try;;
1942 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943 $as_echo "$ac_try_echo"; } >&5
1944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1946 if test -s conftest.err
; then
1947 grep -v '^ *+' conftest.err
>conftest.er1
1948 cat conftest.er1
>&5
1949 mv -f conftest.er1 conftest.err
1951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1952 test $ac_status = 0; } > conftest.i
&& {
1953 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1954 test ! -s conftest.err
1958 $as_echo "$as_me: failed program was:" >&5
1959 sed 's/^/| /' conftest.
$ac_ext >&5
1963 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1964 as_fn_set_status
$ac_retval
1966 } # ac_fn_cxx_try_cpp
1968 # ac_fn_cxx_try_link LINENO
1969 # -------------------------
1970 # Try to link conftest.$ac_ext, and return whether this succeeded.
1971 ac_fn_cxx_try_link
()
1973 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1974 rm -f conftest.
$ac_objext conftest
$ac_exeext
1975 if { { ac_try
="$ac_link"
1977 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1978 *) ac_try_echo=$ac_try;;
1980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1981 $as_echo "$ac_try_echo"; } >&5
1982 (eval "$ac_link") 2>conftest.err
1984 if test -s conftest.err; then
1985 grep -v '^ *+' conftest.err >conftest.er1
1986 cat conftest.er1 >&5
1987 mv -f conftest.er1 conftest.err
1989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1990 test $ac_status = 0; } && {
1991 test -z "$ac_cxx_werror_flag" ||
1992 test ! -s conftest.err
1993 } && test -s conftest$ac_exeext && {
1994 test "$cross_compiling" = yes ||
1995 test -x conftest$ac_exeext
1999 $as_echo "$as_me: failed program was:" >&5
2000 sed 's/^/| /' conftest.$ac_ext >&5
2004 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2005 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2006 # interfere with the next link command; also delete a directory that is
2007 # left behind by Apple's compiler. We do this before executing the actions.
2008 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2009 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010 as_fn_set_status $ac_retval
2012 } # ac_fn_cxx_try_link
2014 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2015 # ---------------------------------------------
2016 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2018 ac_fn_c_check_decl ()
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2022 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2024 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2025 if eval \${$3+:} false; then :
2026 $as_echo_n "(cached) " >&6
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2034 #ifndef $as_decl_name
2036 (void) $as_decl_use;
2038 (void) $as_decl_name;
2046 if ac_fn_c_try_compile "$LINENO"; then :
2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2055 $as_echo "$ac_res" >&6; }
2056 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2058 } # ac_fn_c_check_decl
2059 cat >config.log <<_ACEOF
2060 This file contains any messages produced by compilers while
2061 running configure, to aid debugging if configure makes a mistake.
2063 It was created by libcc1 $as_me version-unused, which was
2064 generated by GNU Autoconf 2.69. Invocation command line was
2076 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2077 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2078 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2079 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2080 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2082 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2083 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2085 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2086 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2087 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2088 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2089 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2090 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2091 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099 test -z "$as_dir" && as_dir=.
2100 $as_echo "PATH: $as_dir"
2116 # Keep a trace of the command line.
2117 # Strip out --no-create and --no-recursion so they do not pile up.
2118 # Strip out --silent because we don't want to record it for future runs.
2119 # Also quote any args containing shell meta-characters.
2120 # Make two passes to allow for proper duplicate-argument suppression.
2124 ac_must_keep_next=false
2130 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2132 | -silent | --silent | --silen | --sile | --sil)
2135 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2138 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2140 as_fn_append ac_configure_args1 " '$ac_arg'"
2141 if test $ac_must_keep_next = true; then
2142 ac_must_keep_next=false # Got value, back to normal.
2145 *=* | --config-cache | -C | -disable-* | --disable-* \
2146 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2147 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2148 | -with-* | --with-* | -without-* | --without-* | --x)
2149 case "$ac_configure_args0 " in
2150 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2153 -* ) ac_must_keep_next=true ;;
2156 as_fn_append ac_configure_args " '$ac_arg'"
2161 { ac_configure_args0=; unset ac_configure_args0;}
2162 { ac_configure_args1=; unset ac_configure_args1;}
2164 # When interrupted or exit'd, cleanup temporary files, and complete
2165 # config.log. We remove comments because anyway the quotes in there
2166 # would cause problems or look ugly.
2167 # WARNING: Use '\'' to represent an apostrophe within the trap.
2168 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2169 trap 'exit_status=$?
2170 # Save into config.log some information that might help in debugging.
2174 $as_echo "## ---------------- ##
2175 ## Cache variables. ##
2176 ## ---------------- ##"
2178 # The following way of writing the cache mishandles newlines in values,
2180 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2181 eval ac_val=\$$ac_var
2185 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2186 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2189 _ | IFS | as_nl) ;; #(
2190 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2191 *) { eval $ac_var=; unset $ac_var;} ;;
2196 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2197 *${as_nl}ac_space=\ *)
2199 "s/'\''/'\''\\\\'\'''\''/g;
2200 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2203 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2210 $as_echo "## ----------------- ##
2211 ## Output variables. ##
2212 ## ----------------- ##"
2214 for ac_var in $ac_subst_vars
2216 eval ac_val=\$$ac_var
2218 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2220 $as_echo "$ac_var='\''$ac_val'\''"
2224 if test -n "$ac_subst_files"; then
2225 $as_echo "## ------------------- ##
2226 ## File substitutions. ##
2227 ## ------------------- ##"
2229 for ac_var in $ac_subst_files
2231 eval ac_val=\$$ac_var
2233 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2235 $as_echo "$ac_var='\''$ac_val'\''"
2240 if test -s confdefs.h; then
2241 $as_echo "## ----------- ##
2248 test "$ac_signal" != 0 &&
2249 $as_echo "$as_me: caught signal $ac_signal"
2250 $as_echo "$as_me: exit $exit_status"
2252 rm -f core *.core core.conftest.* &&
2253 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2256 for ac_signal in 1 2 13 15; do
2257 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2261 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2262 rm -f -r conftest* confdefs.h
2264 $as_echo "/* confdefs.h */" > confdefs.h
2266 # Predefined preprocessor variables.
2268 cat >>confdefs.h <<_ACEOF
2269 #define PACKAGE_NAME "$PACKAGE_NAME"
2272 cat >>confdefs.h <<_ACEOF
2273 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2276 cat >>confdefs.h <<_ACEOF
2277 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2280 cat >>confdefs.h <<_ACEOF
2281 #define PACKAGE_STRING "$PACKAGE_STRING"
2284 cat >>confdefs.h <<_ACEOF
2285 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2288 cat >>confdefs.h <<_ACEOF
2289 #define PACKAGE_URL "$PACKAGE_URL"
2293 # Let the site file select an alternate cache file if it wants to.
2294 # Prefer an explicitly selected file to automatically selected ones.
2297 if test -n "$CONFIG_SITE"; then
2298 # We do not want a PATH search for config.site.
2299 case $CONFIG_SITE in #((
2300 -*) ac_site_file1=./$CONFIG_SITE;;
2301 */*) ac_site_file1=$CONFIG_SITE;;
2302 *) ac_site_file1=./$CONFIG_SITE;;
2304 elif test "x$prefix" != xNONE; then
2305 ac_site_file1=$prefix/share/config.site
2306 ac_site_file2=$prefix/etc/config.site
2308 ac_site_file1=$ac_default_prefix/share/config.site
2309 ac_site_file2=$ac_default_prefix/etc/config.site
2311 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2313 test "x$ac_site_file" = xNONE && continue
2314 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2316 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2317 sed 's/^/| /' "$ac_site_file" >&5
2319 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2321 as_fn_error $? "failed to load site
script $ac_site_file
2322 See \
`config.log' for more details" "$LINENO" 5; }
2326 if test -r "$cache_file"; then
2327 # Some versions of bash will fail to source /dev/null (special files
2328 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2329 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2331 $as_echo "$as_me: loading cache $cache_file" >&6;}
2333 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2334 *) . "./$cache_file";;
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2339 $as_echo "$as_me: creating cache $cache_file" >&6;}
2343 # Check that the precious variables saved in the cache have kept the same
2345 ac_cache_corrupted=false
2346 for ac_var in $ac_precious_vars; do
2347 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2348 eval ac_new_set=\$ac_env_${ac_var}_set
2349 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2350 eval ac_new_val=\$ac_env_${ac_var}_value
2351 case $ac_old_set,$ac_new_set in
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2354 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2355 ac_cache_corrupted=: ;;
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2358 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2359 ac_cache_corrupted=: ;;
2362 if test "x$ac_old_val" != "x$ac_new_val"; then
2363 # differences in whitespace do not lead to failure.
2364 ac_old_val_w=`echo x
$ac_old_val`
2365 ac_new_val_w=`echo x
$ac_new_val`
2366 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2368 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2369 ac_cache_corrupted=:
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2372 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2373 eval $ac_var=\$ac_old_val
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2376 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2378 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2381 # Pass precious variables to config.status.
2382 if test "$ac_new_set" = set; then
2384 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2385 *) ac_arg=$ac_var=$ac_new_val ;;
2387 case " $ac_configure_args " in
2388 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2389 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2393 if $ac_cache_corrupted; then
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2397 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2398 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2400 ## -------------------- ##
2401 ## Main body of script. ##
2402 ## -------------------- ##
2405 ac_cpp='$CPP $CPPFLAGS'
2406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2415 ac_config_headers="$ac_config_headers cc1plugin-config.h"
2419 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2420 if test -f "$ac_dir/install-sh"; then
2422 ac_install_sh="$ac_aux_dir/install-sh -c"
2424 elif test -f "$ac_dir/install.sh"; then
2426 ac_install_sh="$ac_aux_dir/install.sh -c"
2428 elif test -f "$ac_dir/shtool"; then
2430 ac_install_sh="$ac_aux_dir/shtool install -c"
2434 if test -z "$ac_aux_dir"; then
2435 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2438 # These three variables are undocumented and unsupported,
2439 # and are intended to be withdrawn in a future Autoconf release.
2440 # They can cause serious problems if a builder's source tree is in a directory
2441 # whose full name contains unusual characters.
2442 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2443 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2444 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2447 # Make sure we can run config.sub.
2448 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2449 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2452 $as_echo_n "checking build system type... " >&6; }
2453 if ${ac_cv_build+:} false; then :
2454 $as_echo_n "(cached) " >&6
2456 ac_build_alias=$build_alias
2457 test "x$ac_build_alias" = x &&
2458 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2459 test "x$ac_build_alias" = x &&
2460 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2461 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2462 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2466 $as_echo "$ac_cv_build" >&6; }
2467 case $ac_cv_build in
2469 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2472 ac_save_IFS=$IFS; IFS='-'
2478 # Remember, the first character of IFS is used to create $*,
2479 # except with old shells:
2482 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2486 $as_echo_n "checking host system type... " >&6; }
2487 if ${ac_cv_host+:} false; then :
2488 $as_echo_n "(cached) " >&6
2490 if test "x$host_alias" = x; then
2491 ac_cv_host=$ac_cv_build
2493 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2494 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2499 $as_echo "$ac_cv_host" >&6; }
2502 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2505 ac_save_IFS=$IFS; IFS='-'
2511 # Remember, the first character of IFS is used to create $*,
2512 # except with old shells:
2515 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2519 $as_echo_n "checking target system type... " >&6; }
2520 if ${ac_cv_target+:} false; then :
2521 $as_echo_n "(cached) " >&6
2523 if test "x$target_alias" = x; then
2524 ac_cv_target=$ac_cv_host
2526 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2527 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2532 $as_echo "$ac_cv_target" >&6; }
2533 case $ac_cv_target in
2535 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2537 target=$ac_cv_target
2538 ac_save_IFS=$IFS; IFS='-'
2544 # Remember, the first character of IFS is used to create $*,
2545 # except with old shells:
2548 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2551 # The aliases save the names the user supplied, while $host etc.
2552 # will get canonicalized.
2553 test -n "$target_alias" &&
2554 test "$program_prefix$program_suffix$program_transform_name" = \
2556 program_prefix=${target_alias}-
2558 # Expand $ac_aux_dir to an absolute path.
2559 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2562 ac_cpp='$CPP $CPPFLAGS'
2563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2566 if test -n "$ac_tool_prefix"; then
2567 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2568 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2570 $as_echo_n "checking for $ac_word... " >&6; }
2571 if ${ac_cv_prog_CC+:} false; then :
2572 $as_echo_n "(cached) " >&6
2574 if test -n "$CC"; then
2575 ac_cv_prog_CC="$CC" # Let the user override the test.
2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581 test -z "$as_dir" && as_dir=.
2582 for ac_exec_ext in '' $ac_executable_extensions; do
2583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2584 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2595 if test -n "$CC"; then
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2597 $as_echo "$CC" >&6; }
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2600 $as_echo "no" >&6; }
2605 if test -z "$ac_cv_prog_CC"; then
2607 # Extract the first word of "gcc", so it can be a program name with args.
2608 set dummy gcc; ac_word=$2
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2610 $as_echo_n "checking for $ac_word... " >&6; }
2611 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2612 $as_echo_n "(cached) " >&6
2614 if test -n "$ac_ct_CC"; then
2615 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 test -z "$as_dir" && as_dir=.
2622 for ac_exec_ext in '' $ac_executable_extensions; do
2623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2624 ac_cv_prog_ac_ct_CC="gcc"
2625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2634 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2635 if test -n "$ac_ct_CC"; then
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2637 $as_echo "$ac_ct_CC" >&6; }
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2640 $as_echo "no" >&6; }
2643 if test "x$ac_ct_CC" = x; then
2646 case $cross_compiling:$ac_tool_warned in
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2650 ac_tool_warned=yes ;;
2658 if test -z "$CC"; then
2659 if test -n "$ac_tool_prefix"; then
2660 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2661 set dummy ${ac_tool_prefix}cc; ac_word=$2
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2663 $as_echo_n "checking for $ac_word... " >&6; }
2664 if ${ac_cv_prog_CC+:} false; then :
2665 $as_echo_n "(cached) " >&6
2667 if test -n "$CC"; then
2668 ac_cv_prog_CC="$CC" # Let the user override the test.
2670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 test -z "$as_dir" && as_dir=.
2675 for ac_exec_ext in '' $ac_executable_extensions; do
2676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2677 ac_cv_prog_CC="${ac_tool_prefix}cc"
2678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2688 if test -n "$CC"; then
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2690 $as_echo "$CC" >&6; }
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2693 $as_echo "no" >&6; }
2699 if test -z "$CC"; then
2700 # Extract the first word of "cc", so it can be a program name with args.
2701 set dummy cc; ac_word=$2
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2703 $as_echo_n "checking for $ac_word... " >&6; }
2704 if ${ac_cv_prog_CC+:} false; then :
2705 $as_echo_n "(cached) " >&6
2707 if test -n "$CC"; then
2708 ac_cv_prog_CC="$CC" # Let the user override the test.
2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715 test -z "$as_dir" && as_dir=.
2716 for ac_exec_ext in '' $ac_executable_extensions; do
2717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2718 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2719 ac_prog_rejected=yes
2723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2730 if test $ac_prog_rejected = yes; then
2731 # We found a bogon in the path, so make sure we never use it.
2732 set dummy $ac_cv_prog_CC
2734 if test $# != 0; then
2735 # We chose a different compiler from the bogus one.
2736 # However, it has the same basename, so the bogon will be chosen
2737 # first if we set CC to just the basename; use the full file name.
2739 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2745 if test -n "$CC"; then
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2747 $as_echo "$CC" >&6; }
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750 $as_echo "no" >&6; }
2755 if test -z "$CC"; then
2756 if test -n "$ac_tool_prefix"; then
2757 for ac_prog in cl.exe
2759 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2760 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2762 $as_echo_n "checking for $ac_word... " >&6; }
2763 if ${ac_cv_prog_CC+:} false; then :
2764 $as_echo_n "(cached) " >&6
2766 if test -n "$CC"; then
2767 ac_cv_prog_CC="$CC" # Let the user override the test.
2769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773 test -z "$as_dir" && as_dir=.
2774 for ac_exec_ext in '' $ac_executable_extensions; do
2775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2776 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2787 if test -n "$CC"; then
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2789 $as_echo "$CC" >&6; }
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2792 $as_echo "no" >&6; }
2796 test -n "$CC" && break
2799 if test -z "$CC"; then
2801 for ac_prog in cl.exe
2803 # Extract the first word of "$ac_prog", so it can be a program name with args.
2804 set dummy $ac_prog; ac_word=$2
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2806 $as_echo_n "checking for $ac_word... " >&6; }
2807 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2808 $as_echo_n "(cached) " >&6
2810 if test -n "$ac_ct_CC"; then
2811 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 test -z "$as_dir" && as_dir=.
2818 for ac_exec_ext in '' $ac_executable_extensions; do
2819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2820 ac_cv_prog_ac_ct_CC="$ac_prog"
2821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2830 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2831 if test -n "$ac_ct_CC"; then
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2833 $as_echo "$ac_ct_CC" >&6; }
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2836 $as_echo "no" >&6; }
2840 test -n "$ac_ct_CC" && break
2843 if test "x$ac_ct_CC" = x; then
2846 case $cross_compiling:$ac_tool_warned in
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2850 ac_tool_warned=yes ;;
2859 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2861 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2862 See \
`config.log' for more details" "$LINENO" 5; }
2864 # Provide some information about the compiler.
2865 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2868 for ac_option in --version -v -V -qversion; do
2869 { { ac_try="$ac_compiler $ac_option >&5"
2871 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2872 *) ac_try_echo
=$ac_try;;
2874 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2875 $as_echo "$ac_try_echo"; } >&5
2876 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2878 if test -s conftest.err
; then
2880 ... rest of stderr output deleted ...
2881 10q' conftest.err
>conftest.er1
2882 cat conftest.er1
>&5
2884 rm -f conftest.er1 conftest.err
2885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2886 test $ac_status = 0; }
2889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2890 /* end confdefs.h. */
2900 ac_clean_files_save
=$ac_clean_files
2901 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2902 # Try to create an executable without -o first, disregard a.out.
2903 # It will help us diagnose broken compilers, and finding out an intuition
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2906 $as_echo_n "checking whether the C compiler works... " >&6; }
2907 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2909 # The possible output files:
2910 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2913 for ac_file
in $ac_files
2916 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2917 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2922 if { { ac_try
="$ac_link_default"
2924 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2925 *) ac_try_echo=$ac_try;;
2927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2928 $as_echo "$ac_try_echo"; } >&5
2929 (eval "$ac_link_default") 2>&5
2931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2932 test $ac_status = 0; }; then :
2933 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2934 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2935 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2936 # so that the user can short-circuit this test for compilers unknown to
2938 for ac_file in $ac_files ''
2940 test -f "$ac_file" || continue
2942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2945 # We found the default executable, but exeext='' is most
2949 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2951 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2953 # We set ac_cv_exeext here because the later test for it is not
2954 # safe: cross compilers may not add the suffix if given an `-o'
2955 # argument, so we may need to know it at that point already.
2956 # Even if this section looks crufty: it has the advantage of
2963 test "$ac_cv_exeext" = no && ac_cv_exeext=
2968 if test -z "$ac_file"; then :
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 $as_echo "no" >&6; }
2971 $as_echo "$as_me: failed program was:" >&5
2972 sed 's
/^
/|
/' conftest.$ac_ext >&5
2974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2975 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2976 as_fn_error 77 "C compiler cannot create executables
2977 See \`config.log
' for more details" "$LINENO" 5; }
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2980 $as_echo "yes" >&6; }
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2983 $as_echo_n "checking for C compiler default output file name... " >&6; }
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2985 $as_echo "$ac_file" >&6; }
2986 ac_exeext=$ac_cv_exeext
2988 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2989 ac_clean_files=$ac_clean_files_save
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2991 $as_echo_n "checking for suffix of executables... " >&6; }
2992 if { { ac_try="$ac_link"
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_link") 2>&5
3001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3002 test $ac_status = 0; }; then :
3003 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3004 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3005 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3007 for ac_file
in conftest.exe conftest conftest.
*; do
3008 test -f "$ac_file" ||
continue
3010 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3011 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3017 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3019 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3020 See \`config.log' for more details" "$LINENO" 5; }
3022 rm -f conftest conftest
$ac_cv_exeext
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3024 $as_echo "$ac_cv_exeext" >&6; }
3026 rm -f conftest.
$ac_ext
3027 EXEEXT
=$ac_cv_exeext
3029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3030 /* end confdefs.h. */
3035 FILE *f = fopen ("conftest.out", "w");
3036 return ferror (f) || fclose (f) != 0;
3042 ac_clean_files
="$ac_clean_files conftest.out"
3043 # Check that the compiler produces executables we can run. If not, either
3044 # the compiler is broken, or we cross compile.
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3046 $as_echo_n "checking whether we are cross compiling... " >&6; }
3047 if test "$cross_compiling" != yes; then
3048 { { ac_try
="$ac_link"
3050 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3054 $as_echo "$ac_try_echo"; } >&5
3055 (eval "$ac_link") 2>&5
3057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3058 test $ac_status = 0; }
3059 if { ac_try='./conftest$ac_cv_exeext'
3060 { { case "(($ac_try" in
3061 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3062 *) ac_try_echo
=$ac_try;;
3064 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3065 $as_echo "$ac_try_echo"; } >&5
3066 (eval "$ac_try") 2>&5
3068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3069 test $ac_status = 0; }; }; then
3072 if test "$cross_compiling" = maybe
; then
3075 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3077 as_fn_error $?
"cannot run C compiled programs.
3078 If you meant to cross compile, use \`--host'.
3079 See \`config.log' for more details" "$LINENO" 5; }
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3084 $as_echo "$cross_compiling" >&6; }
3086 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3087 ac_clean_files
=$ac_clean_files_save
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3089 $as_echo_n "checking for suffix of object files... " >&6; }
3090 if ${ac_cv_objext+:} false
; then :
3091 $as_echo_n "(cached) " >&6
3093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3094 /* end confdefs.h. */
3104 rm -f conftest.o conftest.obj
3105 if { { ac_try
="$ac_compile"
3107 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3111 $as_echo "$ac_try_echo"; } >&5
3112 (eval "$ac_compile") 2>&5
3114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3115 test $ac_status = 0; }; then :
3116 for ac_file in conftest.o conftest.obj conftest.*; do
3117 test -f "$ac_file" || continue;
3119 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3120 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3125 $as_echo "$as_me: failed program was:" >&5
3126 sed 's/^/| /' conftest.$ac_ext >&5
3128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3130 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3131 See \
`config.log' for more details" "$LINENO" 5; }
3133 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3136 $as_echo "$ac_cv_objext" >&6; }
3137 OBJEXT=$ac_cv_objext
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3140 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3141 if ${ac_cv_c_compiler_gnu+:} false; then :
3142 $as_echo_n "(cached) " >&6
3144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3145 /* end confdefs.h. */
3158 if ac_fn_c_try_compile "$LINENO"; then :
3163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3164 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3168 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3169 if test $ac_compiler_gnu = yes; then
3174 ac_test_CFLAGS=${CFLAGS+set}
3175 ac_save_CFLAGS=$CFLAGS
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3177 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3178 if ${ac_cv_prog_cc_g+:} false; then :
3179 $as_echo_n "(cached) " >&6
3181 ac_save_c_werror_flag=$ac_c_werror_flag
3182 ac_c_werror_flag=yes
3185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3186 /* end confdefs.h. */
3196 if ac_fn_c_try_compile "$LINENO"; then :
3200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3201 /* end confdefs.h. */
3211 if ac_fn_c_try_compile "$LINENO"; then :
3214 ac_c_werror_flag=$ac_save_c_werror_flag
3216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3217 /* end confdefs.h. */
3227 if ac_fn_c_try_compile "$LINENO"; then :
3230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235 ac_c_werror_flag=$ac_save_c_werror_flag
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3238 $as_echo "$ac_cv_prog_cc_g" >&6; }
3239 if test "$ac_test_CFLAGS" = set; then
3240 CFLAGS=$ac_save_CFLAGS
3241 elif test $ac_cv_prog_cc_g = yes; then
3242 if test "$GCC" = yes; then
3248 if test "$GCC" = yes; then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3255 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3256 if ${ac_cv_prog_cc_c89+:} false; then :
3257 $as_echo_n "(cached) " >&6
3259 ac_cv_prog_cc_c89=no
3261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262 /* end confdefs.h. */
3266 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3267 struct buf { int x; };
3268 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3269 static char *e (p, i)
3275 static char *f (char * (*g) (char **, int), char **p, ...)
3280 s = g (p, va_arg (v,int));
3285 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3286 function prototypes and stuff, but not '\xHH' hex character constants.
3287 These don't provoke an error unfortunately, instead are silently treated
3288 as 'x'. The following induces an error, until -std is added to get
3289 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3290 array size at least. It's necessary to write '\x00'==0 to get something
3291 that's true only with -std. */
3292 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3294 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3295 inside strings and character constants. */
3297 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3299 int test (int i, double x);
3300 struct s1 {int (*f) (int a);};
3301 struct s2 {int (*f) (double a);};
3302 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3308 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3313 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3314 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3316 CC="$ac_save_CC $ac_arg"
3317 if ac_fn_c_try_compile "$LINENO"; then :
3318 ac_cv_prog_cc_c89=$ac_arg
3320 rm -f core conftest.err conftest.$ac_objext
3321 test "x$ac_cv_prog_cc_c89" != "xno" && break
3323 rm -f conftest.$ac_ext
3328 case "x$ac_cv_prog_cc_c89" in
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3331 $as_echo "none needed" >&6; } ;;
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3334 $as_echo "unsupported" >&6; } ;;
3336 CC="$CC $ac_cv_prog_cc_c89"
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3338 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3340 if test "x$ac_cv_prog_cc_c89" != xno; then :
3345 ac_cpp='$CPP $CPPFLAGS'
3346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3351 ac_cpp='$CPP $CPPFLAGS'
3352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3356 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3357 if ${am_cv_prog_cc_c_o+:} false; then :
3358 $as_echo_n "(cached) " >&6
3360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3361 /* end confdefs.h. */
3371 # Make sure it works both with $CC and with simple cc.
3372 # Following AC_PROG_CC_C_O, we do the test twice because some
3373 # compilers refuse to overwrite an existing .o file with -o,
3374 # though they will create one.
3375 am_cv_prog_cc_c_o=yes
3377 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3378 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); } \
3382 && test -f conftest2.$ac_objext; then
3385 am_cv_prog_cc_c_o=no
3389 rm -f core conftest*
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3393 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3394 if test "$am_cv_prog_cc_c_o" != yes; then
3395 # Losing compiler, so override with the script.
3396 # FIXME: It is wrong to rewrite CC.
3397 # But if we don't then we get into trouble of one sort or another.
3398 # A longer-term fix would be to have automake use am__CC in this case,
3399 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3400 CC="$am_aux_dir/compile $CC"
3403 ac_cpp='$CPP $CPPFLAGS'
3404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3411 ac_cpp='$CPP $CPPFLAGS'
3412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3416 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3417 # On Suns, sometimes $CPP names a directory.
3418 if test -n "$CPP" && test -d "$CPP"; then
3421 if test -z "$CPP"; then
3422 if ${ac_cv_prog_CPP+:} false; then :
3423 $as_echo_n "(cached) " >&6
3425 # Double quotes because CPP needs to be expanded
3426 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3429 for ac_c_preproc_warn_flag in '' yes
3431 # Use a header file that comes with gcc, so configuring glibc
3432 # with a fresh cross-compiler works.
3433 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3434 # <limits.h> exists even on freestanding compilers.
3435 # On the NeXT, cc -E runs the code through the compiler's parser,
3436 # not just through cpp. "Syntax error" is here to catch this case.
3437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3438 /* end confdefs.h. */
3440 # include <limits.h>
3442 # include <assert.h>
3446 if ac_fn_c_try_cpp "$LINENO"; then :
3449 # Broken: fails on valid input.
3452 rm -f conftest.err conftest.i conftest.$ac_ext
3454 # OK, works on sane cases. Now check whether nonexistent headers
3455 # can be detected and how.
3456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457 /* end confdefs.h. */
3458 #include <ac_nonexistent.h>
3460 if ac_fn_c_try_cpp "$LINENO"; then :
3461 # Broken: success on invalid input.
3464 # Passes both tests.
3468 rm -f conftest.err conftest.i conftest.$ac_ext
3471 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3472 rm -f conftest.i conftest.err conftest.
$ac_ext
3473 if $ac_preproc_ok; then :
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3486 $as_echo "$CPP" >&6; }
3488 for ac_c_preproc_warn_flag
in '' yes
3490 # Use a header file that comes with gcc, so configuring glibc
3491 # with a fresh cross-compiler works.
3492 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3493 # <limits.h> exists even on freestanding compilers.
3494 # On the NeXT, cc -E runs the code through the compiler's parser,
3495 # not just through cpp. "Syntax error" is here to catch this case.
3496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3497 /* end confdefs.h. */
3499 # include <limits.h>
3501 # include <assert.h>
3505 if ac_fn_c_try_cpp
"$LINENO"; then :
3508 # Broken: fails on valid input.
3511 rm -f conftest.err conftest.i conftest.
$ac_ext
3513 # OK, works on sane cases. Now check whether nonexistent headers
3514 # can be detected and how.
3515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3516 /* end confdefs.h. */
3517 #include <ac_nonexistent.h>
3519 if ac_fn_c_try_cpp
"$LINENO"; then :
3520 # Broken: success on invalid input.
3523 # Passes both tests.
3527 rm -f conftest.err conftest.i conftest.
$ac_ext
3530 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3531 rm -f conftest.i conftest.err conftest.
$ac_ext
3532 if $ac_preproc_ok; then :
3535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3537 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3538 See \`config.log' for more details" "$LINENO" 5; }
3542 ac_cpp
='$CPP $CPPFLAGS'
3543 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3544 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3545 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3549 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3550 if ${ac_cv_path_GREP+:} false
; then :
3551 $as_echo_n "(cached) " >&6
3553 if test -z "$GREP"; then
3554 ac_path_GREP_found
=false
3555 # Loop through the user's path and test for each of PROGNAME-LIST
3556 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3557 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3560 test -z "$as_dir" && as_dir
=.
3561 for ac_prog
in grep ggrep
; do
3562 for ac_exec_ext
in '' $ac_executable_extensions; do
3563 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3564 as_fn_executable_p
"$ac_path_GREP" ||
continue
3565 # Check for GNU ac_path_GREP and select it if it is found.
3566 # Check for GNU $ac_path_GREP
3567 case `"$ac_path_GREP" --version 2>&1` in
3569 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3572 $as_echo_n 0123456789 >"conftest.in"
3575 cat "conftest.in" "conftest.in" >"conftest.tmp"
3576 mv "conftest.tmp" "conftest.in"
3577 cp "conftest.in" "conftest.nl"
3578 $as_echo 'GREP' >> "conftest.nl"
3579 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3580 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3581 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3582 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3583 # Best one so far, save it but keep looking for a better one
3584 ac_cv_path_GREP
="$ac_path_GREP"
3585 ac_path_GREP_max
=$ac_count
3587 # 10*(2^10) chars as input seems more than enough
3588 test $ac_count -gt 10 && break
3590 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3593 $ac_path_GREP_found && break 3
3598 if test -z "$ac_cv_path_GREP"; then
3599 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3602 ac_cv_path_GREP
=$GREP
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3607 $as_echo "$ac_cv_path_GREP" >&6; }
3608 GREP
="$ac_cv_path_GREP"
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3612 $as_echo_n "checking for egrep... " >&6; }
3613 if ${ac_cv_path_EGREP+:} false
; then :
3614 $as_echo_n "(cached) " >&6
3616 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3617 then ac_cv_path_EGREP
="$GREP -E"
3619 if test -z "$EGREP"; then
3620 ac_path_EGREP_found
=false
3621 # Loop through the user's path and test for each of PROGNAME-LIST
3622 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3623 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3626 test -z "$as_dir" && as_dir
=.
3627 for ac_prog
in egrep; do
3628 for ac_exec_ext
in '' $ac_executable_extensions; do
3629 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3630 as_fn_executable_p
"$ac_path_EGREP" ||
continue
3631 # Check for GNU ac_path_EGREP and select it if it is found.
3632 # Check for GNU $ac_path_EGREP
3633 case `"$ac_path_EGREP" --version 2>&1` in
3635 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3638 $as_echo_n 0123456789 >"conftest.in"
3641 cat "conftest.in" "conftest.in" >"conftest.tmp"
3642 mv "conftest.tmp" "conftest.in"
3643 cp "conftest.in" "conftest.nl"
3644 $as_echo 'EGREP' >> "conftest.nl"
3645 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3646 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3647 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3648 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3649 # Best one so far, save it but keep looking for a better one
3650 ac_cv_path_EGREP
="$ac_path_EGREP"
3651 ac_path_EGREP_max
=$ac_count
3653 # 10*(2^10) chars as input seems more than enough
3654 test $ac_count -gt 10 && break
3656 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3659 $ac_path_EGREP_found && break 3
3664 if test -z "$ac_cv_path_EGREP"; then
3665 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3668 ac_cv_path_EGREP
=$EGREP
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3674 $as_echo "$ac_cv_path_EGREP" >&6; }
3675 EGREP
="$ac_cv_path_EGREP"
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3679 $as_echo_n "checking for ANSI C header files... " >&6; }
3680 if ${ac_cv_header_stdc+:} false
; then :
3681 $as_echo_n "(cached) " >&6
3683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3684 /* end confdefs.h. */
3698 if ac_fn_c_try_compile
"$LINENO"; then :
3699 ac_cv_header_stdc
=yes
3701 ac_cv_header_stdc
=no
3703 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3705 if test $ac_cv_header_stdc = yes; then
3706 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h. */
3712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3713 $EGREP "memchr" >/dev
/null
2>&1; then :
3716 ac_cv_header_stdc
=no
3722 if test $ac_cv_header_stdc = yes; then
3723 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h. */
3729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3730 $EGREP "free" >/dev
/null
2>&1; then :
3733 ac_cv_header_stdc
=no
3739 if test $ac_cv_header_stdc = yes; then
3740 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3741 if test "$cross_compiling" = yes; then :
3744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3745 /* end confdefs.h. */
3748 #if ((' ' & 0x0FF) == 0x020)
3749 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3750 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3752 # define ISLOWER(c) \
3753 (('a' <= (c) && (c) <= 'i') \
3754 || ('j' <= (c) && (c) <= 'r') \
3755 || ('s' <= (c) && (c) <= 'z'))
3756 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3759 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3764 for (i = 0; i < 256; i++)
3765 if (XOR (islower (i), ISLOWER (i))
3766 || toupper (i) != TOUPPER (i))
3771 if ac_fn_c_try_run
"$LINENO"; then :
3774 ac_cv_header_stdc
=no
3776 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3777 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3783 $as_echo "$ac_cv_header_stdc" >&6; }
3784 if test $ac_cv_header_stdc = yes; then
3786 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3790 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3791 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3792 inttypes.h stdint.h unistd.h
3794 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3795 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3797 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
3798 cat >>confdefs.h
<<_ACEOF
3799 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3808 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3809 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
3816 if test "$MINIX" = yes; then
3818 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3821 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3824 $as_echo "#define _MINIX 1" >>confdefs.h
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3830 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3831 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
3832 $as_echo_n "(cached) " >&6
3834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h. */
3837 # define __EXTENSIONS__ 1
3838 $ac_includes_default
3847 if ac_fn_c_try_compile
"$LINENO"; then :
3848 ac_cv_safe_to_define___extensions__
=yes
3850 ac_cv_safe_to_define___extensions__
=no
3852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3855 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3856 test $ac_cv_safe_to_define___extensions__ = yes &&
3857 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3859 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3861 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3863 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3865 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3868 # Determine the noncanonical target name, for directory use.
3869 case ${build_alias} in
3870 "") build_noncanonical
=${build} ;;
3871 *) build_noncanonical
=${build_alias} ;;
3874 case ${host_alias} in
3875 "") host_noncanonical
=${build_noncanonical} ;;
3876 *) host_noncanonical
=${host_alias} ;;
3879 case ${target_alias} in
3880 "") target_noncanonical
=${host_noncanonical} ;;
3881 *) target_noncanonical
=${target_alias} ;;
3887 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3888 # have matching libraries, they should use host libraries: Makefile.tpl
3889 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3890 # However, they still use the build modules, because the corresponding
3891 # host modules (e.g. bison) are only built for the host when bootstrap
3893 # - build_subdir is where we find build modules, and never changes.
3894 # - build_libsubdir is where we find build libraries, and can be overridden.
3896 # Prefix 'build-' so this never conflicts with target_subdir.
3897 build_subdir
="build-${build_noncanonical}"
3899 # Check whether --with-build-libsubdir was given.
3900 if test "${with_build_libsubdir+set}" = set; then :
3901 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
3903 build_libsubdir
="$build_subdir"
3906 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3907 if ( test $srcdir = .
&& test -d gcc
) \
3908 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
3909 host_subdir
="host-${host_noncanonical}"
3914 target_subdir
=${target_noncanonical}
3917 # 1.11.1: Require that version of automake.
3918 # foreign: Don't require README, INSTALL, NEWS, etc.
3919 # no-define: Don't define PACKAGE and VERSION.
3920 # -Wall: Issue all automake warnings.
3921 # -Wno-portability: Don't warn about constructs supported by GNU make.
3922 # (because GCC requires GNU make anyhow).
3923 am__api_version
='1.15'
3925 # Find a good install program. We prefer a C program (faster),
3926 # so one script is as good as another. But avoid the broken or
3927 # incompatible versions:
3928 # SysV /etc/install, /usr/sbin/install
3929 # SunOS /usr/etc/install
3930 # IRIX /sbin/install
3932 # AmigaOS /C/install, which installs bootblocks on floppy discs
3933 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3934 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3935 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3936 # OS/2's system install, which has a completely different semantic
3937 # ./install, which can be erroneously created by make from ./install.sh.
3938 # Reject install programs that cannot install multiple files.
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3940 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3941 if test -z "$INSTALL"; then
3942 if ${ac_cv_path_install+:} false
; then :
3943 $as_echo_n "(cached) " >&6
3945 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3949 test -z "$as_dir" && as_dir
=.
3950 # Account for people who put trailing slashes in PATH elements.
3951 case $as_dir/ in #((
3952 .
/ | .
// |
/[cC
]/* | \
3953 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3954 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3957 # OSF1 and SCO ODT 3.0 have their own names for install.
3958 # Don't use installbsd from OSF since it installs stuff as root
3960 for ac_prog
in ginstall scoinst
install; do
3961 for ac_exec_ext
in '' $ac_executable_extensions; do
3962 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
3963 if test $ac_prog = install &&
3964 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3965 # AIX install. It has an incompatible calling convention.
3967 elif test $ac_prog = install &&
3968 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3969 # program-specific install script used by HP pwplus--don't use.
3972 rm -rf conftest.one conftest.two conftest.dir
3973 echo one
> conftest.one
3974 echo two
> conftest.two
3976 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3977 test -s conftest.one
&& test -s conftest.two
&&
3978 test -s conftest.dir
/conftest.one
&&
3979 test -s conftest.dir
/conftest.two
3981 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3994 rm -rf conftest.one conftest.two conftest.dir
3997 if test "${ac_cv_path_install+set}" = set; then
3998 INSTALL
=$ac_cv_path_install
4000 # As a last resort, use the slow shell script. Don't cache a
4001 # value for INSTALL within a source directory, because that will
4002 # break other packages using the cache if that directory is
4003 # removed, or if the value is a relative name.
4004 INSTALL
=$ac_install_sh
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4008 $as_echo "$INSTALL" >&6; }
4010 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4011 # It thinks the first close brace ends the variable substitution.
4012 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4014 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4016 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4019 $as_echo_n "checking whether build environment is sane... " >&6; }
4020 # Reject unsafe characters in $srcdir or the absolute working directory
4021 # name. Accept space and tab only in the latter.
4025 *[\\\"\
#\$\&\'\`$am_lf]*)
4026 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
4029 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
4030 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4033 # Do 'set' in a subshell so we don't clobber the current shell's
4034 # arguments. Must try -L first in case configure is actually a
4035 # symlink; some systems play weird games with the mod time of symlinks
4036 # (eg FreeBSD returns the mod time of the symlink's containing
4040 for am_try
in 1 2; do
4041 echo "timestamp, slept: $am_has_slept" > conftest.
file
4042 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4043 if test "$*" = "X"; then
4045 set X
`ls -t "$srcdir/configure" conftest.file`
4047 if test "$*" != "X $srcdir/configure conftest.file" \
4048 && test "$*" != "X conftest.file $srcdir/configure"; then
4050 # If neither matched, then we have a broken ls. This can happen
4051 # if, for instance, CONFIG_SHELL is bash and it inherits a
4052 # broken ls alias from the environment. This has actually
4053 # happened. Such a system could not be considered "sane".
4054 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
4055 alias in your environment" "$LINENO" 5
4057 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
4064 test "$2" = conftest.
file
4070 as_fn_error $?
"newly created file is older than distributed files!
4071 Check your system clock" "$LINENO" 5
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4074 $as_echo "yes" >&6; }
4075 # If we didn't sleep, we still need to ensure time stamps of config.status and
4076 # generated files are strictly newer.
4078 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
4085 test "$program_prefix" != NONE
&&
4086 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4087 # Use a double $ so make ignores it.
4088 test "$program_suffix" != NONE
&&
4089 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4090 # Double any \ or $.
4091 # By default was `s,x,x', remove it if useless.
4092 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4093 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4095 if test x
"${MISSING+set}" != xset
; then
4098 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
4100 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
4103 # Use eval to expand $SHELL
4104 if eval "$MISSING --is-lightweight"; then
4105 am_missing_run
="$MISSING "
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4109 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4112 if test x
"${install_sh+set}" != xset
; then
4115 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
4117 install_sh
="\${SHELL} $am_aux_dir/install-sh"
4121 # Installed binaries are usually stripped using 'strip' when the user
4122 # run "make install-strip". However 'strip' might not be the right
4123 # tool to use in cross-compilation environments, therefore Automake
4124 # will honor the 'STRIP' environment variable to overrule this program.
4125 if test "$cross_compiling" != no
; then
4126 if test -n "$ac_tool_prefix"; then
4127 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4128 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4130 $as_echo_n "checking for $ac_word... " >&6; }
4131 if ${ac_cv_prog_STRIP+:} false
; then :
4132 $as_echo_n "(cached) " >&6
4134 if test -n "$STRIP"; then
4135 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4137 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4141 test -z "$as_dir" && as_dir
=.
4142 for ac_exec_ext
in '' $ac_executable_extensions; do
4143 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4144 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4154 STRIP
=$ac_cv_prog_STRIP
4155 if test -n "$STRIP"; then
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4157 $as_echo "$STRIP" >&6; }
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4160 $as_echo "no" >&6; }
4165 if test -z "$ac_cv_prog_STRIP"; then
4167 # Extract the first word of "strip", so it can be a program name with args.
4168 set dummy strip
; ac_word
=$2
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4170 $as_echo_n "checking for $ac_word... " >&6; }
4171 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
4172 $as_echo_n "(cached) " >&6
4174 if test -n "$ac_ct_STRIP"; then
4175 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
4177 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4181 test -z "$as_dir" && as_dir
=.
4182 for ac_exec_ext
in '' $ac_executable_extensions; do
4183 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4184 ac_cv_prog_ac_ct_STRIP
="strip"
4185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4194 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
4195 if test -n "$ac_ct_STRIP"; then
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4197 $as_echo "$ac_ct_STRIP" >&6; }
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4200 $as_echo "no" >&6; }
4203 if test "x$ac_ct_STRIP" = x
; then
4206 case $cross_compiling:$ac_tool_warned in
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4210 ac_tool_warned
=yes ;;
4215 STRIP
="$ac_cv_prog_STRIP"
4219 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4222 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4223 if test -z "$MKDIR_P"; then
4224 if ${ac_cv_path_mkdir+:} false
; then :
4225 $as_echo_n "(cached) " >&6
4227 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4228 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
4231 test -z "$as_dir" && as_dir
=.
4232 for ac_prog
in mkdir gmkdir
; do
4233 for ac_exec_ext
in '' $ac_executable_extensions; do
4234 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
4235 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4236 'mkdir (GNU coreutils) '* | \
4237 'mkdir (coreutils) '* | \
4238 'mkdir (fileutils) '4.1*)
4239 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
4249 test -d .
/--version && rmdir .
/--version
4250 if test "${ac_cv_path_mkdir+set}" = set; then
4251 MKDIR_P
="$ac_cv_path_mkdir -p"
4253 # As a last resort, use the slow shell script. Don't cache a
4254 # value for MKDIR_P within a source directory, because that will
4255 # break other packages using the cache if that directory is
4256 # removed, or if the value is a relative name.
4257 MKDIR_P
="$ac_install_sh -d"
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4261 $as_echo "$MKDIR_P" >&6; }
4263 for ac_prog
in gawk mawk nawk
awk
4265 # Extract the first word of "$ac_prog", so it can be a program name with args.
4266 set dummy
$ac_prog; ac_word
=$2
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4268 $as_echo_n "checking for $ac_word... " >&6; }
4269 if ${ac_cv_prog_AWK+:} false
; then :
4270 $as_echo_n "(cached) " >&6
4272 if test -n "$AWK"; then
4273 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4275 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4279 test -z "$as_dir" && as_dir
=.
4280 for ac_exec_ext
in '' $ac_executable_extensions; do
4281 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4282 ac_cv_prog_AWK
="$ac_prog"
4283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4293 if test -n "$AWK"; then
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4295 $as_echo "$AWK" >&6; }
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298 $as_echo "no" >&6; }
4302 test -n "$AWK" && break
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4306 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4308 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4309 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
4310 $as_echo_n "(cached) " >&6
4312 cat >conftest.
make <<\_ACEOF
4315 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4317 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4318 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4320 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4322 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4326 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4328 $as_echo "yes" >&6; }
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4332 $as_echo "no" >&6; }
4333 SET_MAKE
="MAKE=${MAKE-make}"
4336 rm -rf .tst
2>/dev
/null
4337 mkdir .tst
2>/dev
/null
4338 if test -d .tst
; then
4343 rmdir .tst
2>/dev
/null
4345 DEPDIR
="${am__leading_dot}deps"
4347 ac_config_commands
="$ac_config_commands depfiles"
4350 am_make
=${MAKE-make}
4351 cat > confinc
<< 'END'
4353 @
echo this is the am__doit target
4356 # If we don't find an include directive, just comment out the code.
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4358 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4362 # First try GNU make style include.
4363 echo "include confinc" > confmf
4364 # Ignore all kinds of additional output from 'make'.
4365 case `$am_make -s -f confmf 2> /dev/null` in #(
4366 *the\ am__doit\ target
*)
4372 # Now try BSD make style include.
4373 if test "$am__include" = "#"; then
4374 echo '.include "confinc"' > confmf
4375 case `$am_make -s -f confmf 2> /dev/null` in #(
4376 *the\ am__doit\ target
*)
4377 am__include
=.include
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4386 $as_echo "$_am_result" >&6; }
4387 rm -f confinc confmf
4389 # Check whether --enable-dependency-tracking was given.
4390 if test "${enable_dependency_tracking+set}" = set; then :
4391 enableval
=$enable_dependency_tracking;
4394 if test "x$enable_dependency_tracking" != xno
; then
4395 am_depcomp
="$ac_aux_dir/depcomp"
4399 if test "x$enable_dependency_tracking" != xno; then
4408 # Check whether --enable-silent-rules was given.
4409 if test "${enable_silent_rules+set}" = set; then :
4410 enableval
=$enable_silent_rules;
4413 case $enable_silent_rules in # (((
4414 yes) AM_DEFAULT_VERBOSITY
=0;;
4415 no
) AM_DEFAULT_VERBOSITY
=1;;
4416 *) AM_DEFAULT_VERBOSITY
=1;;
4418 am_make
=${MAKE-make}
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4420 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4421 if ${am_cv_make_support_nested_variables+:} false
; then :
4422 $as_echo_n "(cached) " >&6
4424 if $as_echo 'TRUE=$(BAR$(V))
4430 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
4431 am_cv_make_support_nested_variables
=yes
4433 am_cv_make_support_nested_variables
=no
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4437 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4438 if test $am_cv_make_support_nested_variables = yes; then
4440 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
4442 AM_V
=$AM_DEFAULT_VERBOSITY
4443 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
4447 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4448 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4449 # is not polluted with repeated "-I."
4450 am__isrc
=' -I$(srcdir)'
4451 # test to see if srcdir already configured
4452 if test -f $srcdir/config.status
; then
4453 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4457 # test whether we have cygpath
4458 if test -z "$CYGPATH_W"; then
4459 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
4460 CYGPATH_W
='cygpath -w'
4467 # Define the identity of the package.
4469 VERSION
='version-unused'
4472 # Some tools Automake needs.
4474 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4477 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
4480 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4483 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
4486 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
4488 # For better backward compatibility. To be removed once Automake 1.9.x
4489 # dies out for good. For more background, see:
4490 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4491 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4492 mkdir_p
='$(MKDIR_P)'
4494 # We need awk for the "check" target (and possibly the TAP driver). The
4495 # system "awk" is bad on some platforms.
4496 # Always define AMTAR for backward compatibility. Yes, it's still used
4497 # in the wild :-( We should find a proper way to deprecate it ...
4501 # We'll loop over all known methods to create a tar archive until one works.
4502 _am_tools
='gnutar pax cpio none'
4504 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
4510 depcc
="$CC" am_compiler_list
=
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4513 $as_echo_n "checking dependency style of $depcc... " >&6; }
4514 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
4515 $as_echo_n "(cached) " >&6
4517 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4518 # We make a subdir and do the tests there. Otherwise we can end up
4519 # making bogus files that we don't know about and never remove. For
4520 # instance it was reported that on HP-UX the gcc test will end up
4521 # making a dummy file named 'D' -- because '-MD' means "put the output
4525 # Copy depcomp to subdir because otherwise we won't find it if we're
4526 # using a relative directory.
4527 cp "$am_depcomp" conftest.dir
4529 # We will build objects and dependencies in a subdirectory because
4530 # it helps to detect inapplicable dependency modes. For instance
4531 # both Tru64's cc and ICC support -MD to output dependencies as a
4532 # side effect of compilation, but ICC will put the dependencies in
4533 # the current directory while Tru64 will put them in the object
4537 am_cv_CC_dependencies_compiler_type
=none
4538 if test "$am_compiler_list" = ""; then
4539 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4542 case " $depcc " in #(
4543 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4546 for depmode
in $am_compiler_list; do
4547 # Setup a source with many dependencies, because some compilers
4548 # like to wrap large dependency lists on column 80 (with \), and
4549 # we should not choose a depcomp mode which is confused by this.
4551 # We need to recreate these files for each test, as the compiler may
4552 # overwrite some of them when testing with obscure command lines.
4553 # This happens at least with the AIX C compiler.
4555 for i
in 1 2 3 4 5 6; do
4556 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4557 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4558 # Solaris 10 /bin/sh.
4559 echo '/* dummy */' > sub
/conftst
$i.h
4561 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4563 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4564 # mode. It turns out that the SunPro C++ compiler does not properly
4565 # handle '-M -o', and we need to detect this. Also, some Intel
4566 # versions had trouble with output in subdirs.
4567 am__obj
=sub
/conftest.
${OBJEXT-o}
4568 am__minus_obj
="-o $am__obj"
4571 # This depmode causes a compiler race in universal mode.
4572 test "$am__universal" = false ||
continue
4575 # After this tag, mechanisms are not by side-effect, so they'll
4576 # only be used when explicitly requested.
4577 if test "x$enable_dependency_tracking" = xyes
; then
4583 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
4584 # This compiler won't grok '-c -o', but also, the minuso test has
4585 # not run yet. These depmodes are late enough in the game, and
4586 # so weak that their functioning should not be impacted.
4587 am__obj
=conftest.
${OBJEXT-o}
4592 if depmode
=$depmode \
4593 source=sub
/conftest.c object
=$am__obj \
4594 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4595 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4596 >/dev
/null
2>conftest.err
&&
4597 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4598 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4599 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4600 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4601 # icc doesn't choke on unknown options, it will just issue warnings
4602 # or remarks (even with -Werror). So we grep stderr for any message
4603 # that says an option was ignored or not supported.
4604 # When given -MP, icc 7.0 and 7.1 complain thusly:
4605 # icc: Command line warning: ignoring option '-M'; no argument required
4606 # The diagnosis changed in icc 8.0:
4607 # icc: Command line remark: option '-MP' not supported
4608 if (grep 'ignoring option' conftest.err ||
4609 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4610 am_cv_CC_dependencies_compiler_type
=$depmode
4619 am_cv_CC_dependencies_compiler_type
=none
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4624 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4625 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4628 test "x$enable_dependency_tracking" != xno \
4629 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4631 am__fastdepCC_FALSE
='#'
4633 am__fastdepCC_TRUE
='#'
4634 am__fastdepCC_FALSE
=
4639 # POSIX will say in a future version that running "rm -f" with no argument
4640 # is OK; and we want to be able to make that assumption in our Makefile
4641 # recipes. So use an aggressive probe to check that the usage we want is
4642 # actually supported "in the wild" to an acceptable degree.
4643 # See automake bug#10828.
4644 # To make any issue more visible, cause the running configure to be aborted
4645 # by default if the 'rm' program in use doesn't match our expectations; the
4646 # user can still override this though.
4647 if rm -f && rm -fr && rm -rf; then : OK
; else
4651 Your 'rm' program seems unable to run without file operands specified
4652 on the command line, even when the '-f' option is present. This is contrary
4653 to the behaviour of most rm programs out there, and not conforming with
4654 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4656 Please tell bug-automake@gnu.org about your system, including the value
4657 of your $PATH and any error possibly output before this message. This
4658 can help us improve future automake versions.
4661 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
4662 echo 'Configuration will proceed anyway, since you have set the' >&2
4663 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4667 Aborting the configuration process, to ensure you take notice of the issue.
4669 You can download and install GNU coreutils to get an 'rm' implementation
4670 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4672 If you want to complete the configuration process using your problematic
4673 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4674 to "yes", and re-run configure.
4677 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4683 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4684 # Check whether --enable-maintainer-mode was given.
4685 if test "${enable_maintainer_mode+set}" = set; then :
4686 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
4688 USE_MAINTAINER_MODE
=no
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4692 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4693 if test $USE_MAINTAINER_MODE = yes; then
4694 MAINTAINER_MODE_TRUE
=
4695 MAINTAINER_MODE_FALSE
='#'
4697 MAINTAINER_MODE_TRUE
='#'
4698 MAINTAINER_MODE_FALSE
=
4701 MAINT
=$MAINTAINER_MODE_TRUE
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4708 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4713 macro_version
='2.2.7a'
4714 macro_revision
='1.3134'
4728 ltmain
="$ac_aux_dir/ltmain.sh"
4730 # Backslashify metacharacters that are still active within
4731 # double-quoted strings.
4732 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
4734 # Same as above, but do not quote variable references.
4735 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
4737 # Sed substitution to delay expansion of an escaped shell variable in a
4738 # double_quote_subst'ed string.
4739 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
4741 # Sed substitution to delay expansion of an escaped single quote.
4742 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
4744 # Sed substitution to avoid accidental globbing in evaled expressions
4745 no_glob_subst
='s/\*/\\\*/g'
4747 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4748 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4749 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4752 $as_echo_n "checking how to print strings... " >&6; }
4753 # Test print first, because it will be a builtin if present.
4754 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4755 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4757 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4760 # Use this function as a fallback that always works.
4761 func_fallback_echo ()
4763 eval 'cat <<_LTECHO_EOF
4767 ECHO='func_fallback_echo
'
4770 # func_echo_all arg...
4771 # Invoke $ECHO with all args, space-separated.
4778 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4779 $as_echo "printf" >&6; } ;;
4780 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4781 $as_echo "print -r" >&6; } ;;
4782 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4783 $as_echo "cat" >&6; } ;;
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4800 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4801 if ${ac_cv_path_SED+:} false; then :
4802 $as_echo_n "(cached) " >&6
4804 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4805 for ac_i in 1 2 3 4 5 6 7; do
4806 ac_script="$ac_script$as_nl$ac_script"
4808 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4809 { ac_script=; unset ac_script;}
4810 if test -z "$SED"; then
4811 ac_path_SED_found=false
4812 # Loop through the user's path and
test for each of PROGNAME-LIST
4813 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4817 test -z "$as_dir" && as_dir
=.
4818 for ac_prog
in sed gsed
; do
4819 for ac_exec_ext
in '' $ac_executable_extensions; do
4820 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
4821 as_fn_executable_p
"$ac_path_SED" ||
continue
4822 # Check for GNU ac_path_SED and select it if it is found.
4823 # Check for GNU $ac_path_SED
4824 case `"$ac_path_SED" --version 2>&1` in
4826 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4829 $as_echo_n 0123456789 >"conftest.in"
4832 cat "conftest.in" "conftest.in" >"conftest.tmp"
4833 mv "conftest.tmp" "conftest.in"
4834 cp "conftest.in" "conftest.nl"
4835 $as_echo '' >> "conftest.nl"
4836 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4837 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4838 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4839 if test $ac_count -gt ${ac_path_SED_max-0}; then
4840 # Best one so far, save it but keep looking for a better one
4841 ac_cv_path_SED
="$ac_path_SED"
4842 ac_path_SED_max
=$ac_count
4844 # 10*(2^10) chars as input seems more than enough
4845 test $ac_count -gt 10 && break
4847 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4850 $ac_path_SED_found && break 3
4855 if test -z "$ac_cv_path_SED"; then
4856 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4864 $as_echo "$ac_cv_path_SED" >&6; }
4865 SED
="$ac_cv_path_SED"
4868 test -z "$SED" && SED
=sed
4869 Xsed
="$SED -e 1s/^X//"
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4882 $as_echo_n "checking for fgrep... " >&6; }
4883 if ${ac_cv_path_FGREP+:} false
; then :
4884 $as_echo_n "(cached) " >&6
4886 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
4887 then ac_cv_path_FGREP
="$GREP -F"
4889 if test -z "$FGREP"; then
4890 ac_path_FGREP_found
=false
4891 # Loop through the user's path and test for each of PROGNAME-LIST
4892 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4893 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4896 test -z "$as_dir" && as_dir
=.
4897 for ac_prog
in fgrep
; do
4898 for ac_exec_ext
in '' $ac_executable_extensions; do
4899 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
4900 as_fn_executable_p
"$ac_path_FGREP" ||
continue
4901 # Check for GNU ac_path_FGREP and select it if it is found.
4902 # Check for GNU $ac_path_FGREP
4903 case `"$ac_path_FGREP" --version 2>&1` in
4905 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
4908 $as_echo_n 0123456789 >"conftest.in"
4911 cat "conftest.in" "conftest.in" >"conftest.tmp"
4912 mv "conftest.tmp" "conftest.in"
4913 cp "conftest.in" "conftest.nl"
4914 $as_echo 'FGREP' >> "conftest.nl"
4915 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4916 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4917 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4918 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4919 # Best one so far, save it but keep looking for a better one
4920 ac_cv_path_FGREP
="$ac_path_FGREP"
4921 ac_path_FGREP_max
=$ac_count
4923 # 10*(2^10) chars as input seems more than enough
4924 test $ac_count -gt 10 && break
4926 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4929 $ac_path_FGREP_found && break 3
4934 if test -z "$ac_cv_path_FGREP"; then
4935 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4938 ac_cv_path_FGREP
=$FGREP
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4944 $as_echo "$ac_cv_path_FGREP" >&6; }
4945 FGREP
="$ac_cv_path_FGREP"
4948 test -z "$GREP" && GREP
=grep
4968 # Check whether --with-gnu-ld was given.
4969 if test "${with_gnu_ld+set}" = set; then :
4970 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
4976 if test "$GCC" = yes; then
4977 # Check if gcc -print-prog-name=ld gives a path.
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4979 $as_echo_n "checking for ld used by $CC... " >&6; }
4982 # gcc leaves a trailing carriage return which upsets mingw
4983 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4985 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
4988 # Accept absolute paths.
4990 re_direlt
='/[^/][^/]*/\.\./'
4991 # Canonicalize the pathname of ld
4992 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4993 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
4994 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4996 test -z "$LD" && LD
="$ac_prog"
4999 # If it fails, then pretend we aren't using GCC.
5003 # If it is relative, then search for the first ld in PATH.
5007 elif test "$with_gnu_ld" = yes; then
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5009 $as_echo_n "checking for GNU ld... " >&6; }
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5012 $as_echo_n "checking for non-GNU ld... " >&6; }
5014 if ${lt_cv_path_LD+:} false
; then :
5015 $as_echo_n "(cached) " >&6
5017 if test -z "$LD"; then
5018 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5019 for ac_dir
in $PATH; do
5021 test -z "$ac_dir" && ac_dir
=.
5022 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5023 lt_cv_path_LD
="$ac_dir/$ac_prog"
5024 # Check to see if the program is GNU ld. I'd rather use --version,
5025 # but apparently some variants of GNU ld only accept -v.
5026 # Break only if it was the GNU/non-GNU ld that we prefer.
5027 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5028 *GNU
* |
*'with BFD'*)
5029 test "$with_gnu_ld" != no
&& break
5032 test "$with_gnu_ld" != yes && break
5039 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
5044 if test -n "$LD"; then
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5046 $as_echo "$LD" >&6; }
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5049 $as_echo "no" >&6; }
5051 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5053 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5054 if ${lt_cv_prog_gnu_ld+:} false
; then :
5055 $as_echo_n "(cached) " >&6
5057 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5058 case `$LD -v 2>&1 </dev/null` in
5059 *GNU
* |
*'with BFD'*)
5060 lt_cv_prog_gnu_ld
=yes
5063 lt_cv_prog_gnu_ld
=no
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5068 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5069 with_gnu_ld
=$lt_cv_prog_gnu_ld
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5080 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5081 if ${lt_cv_path_NM+:} false
; then :
5082 $as_echo_n "(cached) " >&6
5084 if test -n "$NM"; then
5085 # Let the user override the test.
5088 lt_nm_to_check
="${ac_tool_prefix}nm"
5089 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5090 lt_nm_to_check
="$lt_nm_to_check nm"
5092 for lt_tmp_nm
in $lt_nm_to_check; do
5093 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5094 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
5096 test -z "$ac_dir" && ac_dir
=.
5097 tmp_nm
="$ac_dir/$lt_tmp_nm"
5098 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
5099 # Check to see if the nm accepts a BSD-compat flag.
5100 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5101 # nm: unknown option "B" ignored
5102 # Tru64's nm complains that /dev/null is an invalid object file
5103 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5104 */dev
/null
* |
*'Invalid file or object type'*)
5105 lt_cv_path_NM
="$tmp_nm -B"
5109 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5111 lt_cv_path_NM
="$tmp_nm -p"
5115 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5116 continue # so that we can try to find one that supports BSD flags
5125 : ${lt_cv_path_NM=no}
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5129 $as_echo "$lt_cv_path_NM" >&6; }
5130 if test "$lt_cv_path_NM" != "no"; then
5133 # Didn't find any BSD compatible name lister, look for dumpbin.
5134 if test -n "$DUMPBIN"; then :
5135 # Let the user override the test.
5137 if test -n "$ac_tool_prefix"; then
5138 for ac_prog
in dumpbin
"link -dump"
5140 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5141 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5143 $as_echo_n "checking for $ac_word... " >&6; }
5144 if ${ac_cv_prog_DUMPBIN+:} false
; then :
5145 $as_echo_n "(cached) " >&6
5147 if test -n "$DUMPBIN"; then
5148 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
5150 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5154 test -z "$as_dir" && as_dir
=.
5155 for ac_exec_ext
in '' $ac_executable_extensions; do
5156 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5157 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
5158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5167 DUMPBIN
=$ac_cv_prog_DUMPBIN
5168 if test -n "$DUMPBIN"; then
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5170 $as_echo "$DUMPBIN" >&6; }
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5173 $as_echo "no" >&6; }
5177 test -n "$DUMPBIN" && break
5180 if test -z "$DUMPBIN"; then
5181 ac_ct_DUMPBIN
=$DUMPBIN
5182 for ac_prog
in dumpbin
"link -dump"
5184 # Extract the first word of "$ac_prog", so it can be a program name with args.
5185 set dummy
$ac_prog; ac_word
=$2
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5187 $as_echo_n "checking for $ac_word... " >&6; }
5188 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
5189 $as_echo_n "(cached) " >&6
5191 if test -n "$ac_ct_DUMPBIN"; then
5192 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
5194 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5198 test -z "$as_dir" && as_dir
=.
5199 for ac_exec_ext
in '' $ac_executable_extensions; do
5200 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5201 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
5202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5211 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
5212 if test -n "$ac_ct_DUMPBIN"; then
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5214 $as_echo "$ac_ct_DUMPBIN" >&6; }
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217 $as_echo "no" >&6; }
5221 test -n "$ac_ct_DUMPBIN" && break
5224 if test "x$ac_ct_DUMPBIN" = x
; then
5227 case $cross_compiling:$ac_tool_warned in
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5231 ac_tool_warned
=yes ;;
5233 DUMPBIN
=$ac_ct_DUMPBIN
5237 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5239 DUMPBIN
="$DUMPBIN -symbols"
5247 if test "$DUMPBIN" != ":"; then
5251 test -z "$NM" && NM
=nm
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5259 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5260 if ${lt_cv_nm_interface+:} false
; then :
5261 $as_echo_n "(cached) " >&6
5263 lt_cv_nm_interface
="BSD nm"
5264 echo "int some_variable = 0;" > conftest.
$ac_ext
5265 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5266 (eval "$ac_compile" 2>conftest.err
)
5267 cat conftest.err
>&5
5268 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5269 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
5270 cat conftest.err
>&5
5271 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5272 cat conftest.out
>&5
5273 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
5274 lt_cv_nm_interface
="MS dumpbin"
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5279 $as_echo "$lt_cv_nm_interface" >&6; }
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5282 $as_echo_n "checking whether ln -s works... " >&6; }
5284 if test "$LN_S" = "ln -s"; then
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5286 $as_echo "yes" >&6; }
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5289 $as_echo "no, using $LN_S" >&6; }
5292 # find the maximum length of command line arguments
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5294 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5295 if ${lt_cv_sys_max_cmd_len+:} false
; then :
5296 $as_echo_n "(cached) " >&6
5303 # On DJGPP, this test can blow up pretty badly due to problems in libc
5304 # (any single argument exceeding 2000 bytes causes a buffer overrun
5305 # during glob expansion). Even if it were fixed, the result of this
5306 # check would be larger than it should be.
5307 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
5311 # Under GNU Hurd, this test is not required because there is
5312 # no limit to the length of command line arguments.
5313 # Libtool will interpret -1 as no limit whatsoever
5314 lt_cv_sys_max_cmd_len
=-1;
5317 cygwin
* | mingw
* | cegcc
*)
5318 # On Win9x/ME, this test blows up -- it succeeds, but takes
5319 # about 5 minutes as the teststring grows exponentially.
5320 # Worse, since 9x/ME are not pre-emptively multitasking,
5321 # you end up with a "frozen" computer, even though with patience
5322 # the test eventually succeeds (with a max line length of 256k).
5323 # Instead, let's just punt: use the minimum linelength reported by
5324 # all of the supported platforms: 8192 (on NT/2K/XP).
5325 lt_cv_sys_max_cmd_len
=8192;
5329 # On MiNT this can take a long time and run out of memory.
5330 lt_cv_sys_max_cmd_len
=8192;
5334 # On AmigaOS with pdksh, this test takes hours, literally.
5335 # So we just punt and use a minimum line length of 8192.
5336 lt_cv_sys_max_cmd_len
=8192;
5339 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
5340 # This has been around since 386BSD, at least. Likely further.
5341 if test -x /sbin
/sysctl
; then
5342 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
5343 elif test -x /usr
/sbin
/sysctl
; then
5344 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
5346 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
5348 # And add a safety zone
5349 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5350 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5354 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5355 lt_cv_sys_max_cmd_len
=196608
5359 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5360 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5361 # nice to cause kernel panics so lets avoid the loop below.
5362 # First set a reasonable default.
5363 lt_cv_sys_max_cmd_len
=16384
5365 if test -x /sbin
/sysconfig
; then
5366 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5367 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
5372 lt_cv_sys_max_cmd_len
=102400
5374 sysv5
* | sco5v6
* | sysv4.2uw2
*)
5375 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5376 if test -n "$kargmax"; then
5377 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
5379 lt_cv_sys_max_cmd_len
=32768
5383 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
5384 if test -n "$lt_cv_sys_max_cmd_len"; then
5385 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5386 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5388 # Make teststring a little bigger before we do anything with it.
5389 # a 1K string should be a reasonable start.
5390 for i
in 1 2 3 4 5 6 7 8 ; do
5391 teststring
=$teststring$teststring
5393 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
5394 # If test is not a shell built-in, we'll probably end up computing a
5395 # maximum length that is only half of the actual maximum length, but
5397 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5398 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
5399 test $i != 17 # 1/2 MB should be enough
5402 teststring
=$teststring$teststring
5404 # Only check the string length outside the loop.
5405 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
5407 # Add a significant safety factor because C++ compilers can tack on
5408 # massive amounts of additional arguments before passing them to the
5409 # linker. It appears as though 1/2 is a usable value.
5410 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
5417 if test -n $lt_cv_sys_max_cmd_len ; then
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5419 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5422 $as_echo "none" >&6; }
5424 max_cmd_len
=$lt_cv_sys_max_cmd_len
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5436 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5437 # Try some XSI features
5440 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5442 && eval 'test $(( 1 + 1 )) -eq 2 \
5443 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
5446 $as_echo "$xsi_shell" >&6; }
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
5450 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
5452 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
5454 && lt_shell_append=yes
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
5456 $as_echo "$lt_shell_append" >&6; }
5459 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5469 # test EBCDIC or ASCII
5470 case `echo X|tr X '\101'` in
5471 A) # ASCII based system
5472 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5473 lt_SP2NL='tr \040 \012'
5474 lt_NL2SP='tr \015\012 \040\040'
5476 *) # EBCDIC based system
5477 lt_SP2NL='tr \100 \n'
5478 lt_NL2SP='tr \r\n \100\100'
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
5491 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
5492 if ${lt_cv_ld_reload_flag+:} false; then :
5493 $as_echo_n "(cached
) " >&6
5495 lt_cv_ld_reload_flag='-r'
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
5498 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5499 reload_flag=$lt_cv_ld_reload_flag
5500 case $reload_flag in
5502 *) reload_flag=" $reload_flag" ;;
5504 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5507 if test "$GCC" = yes; then
5508 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5510 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5523 if test -n "$ac_tool_prefix"; then
5524 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5525 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5527 $as_echo_n "checking
for $ac_word...
" >&6; }
5528 if ${ac_cv_prog_OBJDUMP+:} false; then :
5529 $as_echo_n "(cached
) " >&6
5531 if test -n "$OBJDUMP"; then
5532 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538 test -z "$as_dir" && as_dir=.
5539 for ac_exec_ext in '' $ac_executable_extensions; do
5540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5541 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5542 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5551 OBJDUMP=$ac_cv_prog_OBJDUMP
5552 if test -n "$OBJDUMP"; then
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
5554 $as_echo "$OBJDUMP" >&6; }
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5557 $as_echo "no
" >&6; }
5562 if test -z "$ac_cv_prog_OBJDUMP"; then
5563 ac_ct_OBJDUMP=$OBJDUMP
5564 # Extract the first word of "objdump
", so it can be a program name with args.
5565 set dummy objdump; ac_word=$2
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5567 $as_echo_n "checking
for $ac_word...
" >&6; }
5568 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5569 $as_echo_n "(cached
) " >&6
5571 if test -n "$ac_ct_OBJDUMP"; then
5572 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 test -z "$as_dir" && as_dir=.
5579 for ac_exec_ext in '' $ac_executable_extensions; do
5580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5581 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
5582 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5591 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5592 if test -n "$ac_ct_OBJDUMP"; then
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
5594 $as_echo "$ac_ct_OBJDUMP" >&6; }
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5597 $as_echo "no
" >&6; }
5600 if test "x
$ac_ct_OBJDUMP" = x; then
5603 case $cross_compiling:$ac_tool_warned in
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5606 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5607 ac_tool_warned=yes ;;
5609 OBJDUMP=$ac_ct_OBJDUMP
5612 OBJDUMP="$ac_cv_prog_OBJDUMP"
5615 test -z "$OBJDUMP" && OBJDUMP=objdump
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
5626 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
5627 if ${lt_cv_deplibs_check_method+:} false; then :
5628 $as_echo_n "(cached
) " >&6
5630 lt_cv_file_magic_cmd='$MAGIC_CMD'
5631 lt_cv_file_magic_test_file=
5632 lt_cv_deplibs_check_method='unknown'
5633 # Need to set the preceding variable on all platforms that support
5634 # interlibrary dependencies.
5635 # 'none' -- dependencies not supported.
5636 # `unknown' -- same as none, but documents that we really don't know.
5637 # 'pass_all' -- all dependencies passed with no checks.
5638 # 'test_compile' -- check by making test program.
5639 # 'file_magic [[regex]]' -- check by looking for files in library path
5640 # which responds to the $file_magic_cmd with a given extended regex.
5641 # If you have `file' or equivalent on your system and you're not sure
5642 # whether `pass_all' will *always* work, you probably want this one.
5646 lt_cv_deplibs_check_method=pass_all
5650 lt_cv_deplibs_check_method=pass_all
5654 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5655 lt_cv_file_magic_cmd='/usr/bin/file -L'
5656 lt_cv_file_magic_test_file=/shlib/libc.so
5660 # func_win32_libid is a shell function defined in ltmain.sh
5661 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5662 lt_cv_file_magic_cmd='func_win32_libid'
5666 # Base MSYS/MinGW do not provide the 'file' command needed by
5667 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5668 # unless we find 'file', for example because we are cross-compiling.
5669 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5670 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
5671 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5672 lt_cv_file_magic_cmd='func_win32_libid'
5674 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5675 lt_cv_file_magic_cmd='$OBJDUMP -f'
5680 # use the weaker test based on 'objdump'. See mingw*.
5681 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5682 lt_cv_file_magic_cmd='$OBJDUMP -f'
5685 darwin* | rhapsody*)
5686 lt_cv_deplibs_check_method=pass_all
5689 freebsd* | dragonfly*)
5690 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5693 # Not sure whether the presence of OpenBSD here was a mistake.
5694 # Let's accept both of them until this is cleared up.
5695 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5696 lt_cv_file_magic_cmd=/usr/bin/file
5697 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5701 lt_cv_deplibs_check_method=pass_all
5706 lt_cv_deplibs_check_method=pass_all
5710 lt_cv_deplibs_check_method=pass_all
5713 hpux10.20* | hpux11*)
5714 lt_cv_file_magic_cmd=/usr/bin/file
5717 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5718 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5721 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]'
5722 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5725 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5726 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5732 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5733 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5736 irix5* | irix6* | nonstopux*)
5738 *-32|*"-32 ") libmagic=32-bit;;
5739 *-n32|*"-n32 ") libmagic=N32;;
5740 *-64|*"-64 ") libmagic=64-bit;;
5741 *) libmagic=never-match;;
5743 lt_cv_deplibs_check_method=pass_all
5746 # This must be Linux ELF.
5747 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5748 lt_cv_deplibs_check_method=pass_all
5752 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5753 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5755 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5760 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5761 lt_cv_file_magic_cmd=/usr/bin/file
5762 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5766 lt_cv_deplibs_check_method=pass_all
5770 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
5771 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5773 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5777 osf3* | osf4* | osf5*)
5778 lt_cv_deplibs_check_method=pass_all
5782 lt_cv_deplibs_check_method=pass_all
5786 lt_cv_deplibs_check_method=pass_all
5789 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5790 lt_cv_deplibs_check_method=pass_all
5794 case $host_vendor in
5796 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]'
5797 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5800 lt_cv_deplibs_check_method=pass_all
5803 lt_cv_file_magic_cmd='/bin/file'
5804 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5807 lt_cv_file_magic_cmd='/bin/file'
5808 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
5809 lt_cv_file_magic_test_file=/lib/libc.so
5812 lt_cv_deplibs_check_method=pass_all
5815 lt_cv_deplibs_check_method=pass_all
5821 lt_cv_deplibs_check_method=pass_all
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
5827 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5828 file_magic_cmd=$lt_cv_file_magic_cmd
5829 deplibs_check_method=$lt_cv_deplibs_check_method
5830 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5843 if test -n "$ac_tool_prefix"; then
5844 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5845 set dummy ${ac_tool_prefix}ar; ac_word=$2
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5847 $as_echo_n "checking
for $ac_word...
" >&6; }
5848 if ${ac_cv_prog_AR+:} false; then :
5849 $as_echo_n "(cached
) " >&6
5851 if test -n "$AR"; then
5852 ac_cv_prog_AR="$AR" # Let the user override the test.
5854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 test -z "$as_dir" && as_dir=.
5859 for ac_exec_ext in '' $ac_executable_extensions; do
5860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5861 ac_cv_prog_AR="${ac_tool_prefix}ar"
5862 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5872 if test -n "$AR"; then
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
5874 $as_echo "$AR" >&6; }
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5877 $as_echo "no
" >&6; }
5882 if test -z "$ac_cv_prog_AR"; then
5884 # Extract the first word of "ar", so it can be a program name with args.
5885 set dummy ar; ac_word=$2
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5887 $as_echo_n "checking
for $ac_word...
" >&6; }
5888 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5889 $as_echo_n "(cached
) " >&6
5891 if test -n "$ac_ct_AR"; then
5892 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 test -z "$as_dir" && as_dir=.
5899 for ac_exec_ext in '' $ac_executable_extensions; do
5900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5901 ac_cv_prog_ac_ct_AR="ar"
5902 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5911 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5912 if test -n "$ac_ct_AR"; then
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
5914 $as_echo "$ac_ct_AR" >&6; }
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5917 $as_echo "no
" >&6; }
5920 if test "x
$ac_ct_AR" = x; then
5923 case $cross_compiling:$ac_tool_warned in
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5926 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5927 ac_tool_warned=yes ;;
5935 test -z "$AR" && AR=ar
5936 test -z "$AR_FLAGS" && AR_FLAGS=cru
5948 if test -n "$ac_tool_prefix"; then
5949 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
5950 set dummy ${ac_tool_prefix}strip; ac_word=$2
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5952 $as_echo_n "checking
for $ac_word...
" >&6; }
5953 if ${ac_cv_prog_STRIP+:} false; then :
5954 $as_echo_n "(cached
) " >&6
5956 if test -n "$STRIP"; then
5957 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963 test -z "$as_dir" && as_dir=.
5964 for ac_exec_ext in '' $ac_executable_extensions; do
5965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5966 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
5967 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5976 STRIP=$ac_cv_prog_STRIP
5977 if test -n "$STRIP"; then
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
5979 $as_echo "$STRIP" >&6; }
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5982 $as_echo "no
" >&6; }
5987 if test -z "$ac_cv_prog_STRIP"; then
5989 # Extract the first word of "strip
", so it can be a program name with args.
5990 set dummy strip; ac_word=$2
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5992 $as_echo_n "checking
for $ac_word...
" >&6; }
5993 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5994 $as_echo_n "(cached
) " >&6
5996 if test -n "$ac_ct_STRIP"; then
5997 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6003 test -z "$as_dir" && as_dir=.
6004 for ac_exec_ext in '' $ac_executable_extensions; do
6005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6006 ac_cv_prog_ac_ct_STRIP="strip
"
6007 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6016 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6017 if test -n "$ac_ct_STRIP"; then
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
6019 $as_echo "$ac_ct_STRIP" >&6; }
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6022 $as_echo "no
" >&6; }
6025 if test "x
$ac_ct_STRIP" = x; then
6028 case $cross_compiling:$ac_tool_warned in
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6031 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6032 ac_tool_warned=yes ;;
6037 STRIP="$ac_cv_prog_STRIP"
6040 test -z "$STRIP" && STRIP=:
6047 if test -n "$ac_tool_prefix"; then
6048 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
6049 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6051 $as_echo_n "checking
for $ac_word...
" >&6; }
6052 if ${ac_cv_prog_RANLIB+:} false; then :
6053 $as_echo_n "(cached
) " >&6
6055 if test -n "$RANLIB"; then
6056 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 test -z "$as_dir" && as_dir=.
6063 for ac_exec_ext in '' $ac_executable_extensions; do
6064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6065 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
6066 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6075 RANLIB=$ac_cv_prog_RANLIB
6076 if test -n "$RANLIB"; then
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
6078 $as_echo "$RANLIB" >&6; }
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6081 $as_echo "no
" >&6; }
6086 if test -z "$ac_cv_prog_RANLIB"; then
6087 ac_ct_RANLIB=$RANLIB
6088 # Extract the first word of "ranlib
", so it can be a program name with args.
6089 set dummy ranlib; ac_word=$2
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6091 $as_echo_n "checking
for $ac_word...
" >&6; }
6092 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6093 $as_echo_n "(cached
) " >&6
6095 if test -n "$ac_ct_RANLIB"; then
6096 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 test -z "$as_dir" && as_dir=.
6103 for ac_exec_ext in '' $ac_executable_extensions; do
6104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6105 ac_cv_prog_ac_ct_RANLIB="ranlib
"
6106 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6115 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6116 if test -n "$ac_ct_RANLIB"; then
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
6118 $as_echo "$ac_ct_RANLIB" >&6; }
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6121 $as_echo "no
" >&6; }
6124 if test "x
$ac_ct_RANLIB" = x; then
6127 case $cross_compiling:$ac_tool_warned in
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6130 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6131 ac_tool_warned=yes ;;
6133 RANLIB=$ac_ct_RANLIB
6136 RANLIB="$ac_cv_prog_RANLIB"
6139 test -z "$RANLIB" && RANLIB=:
6146 # Determine commands to create old-style static archives.
6147 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6148 old_postinstall_cmds='chmod 644 $oldlib'
6149 old_postuninstall_cmds=
6151 if test -n "$RANLIB"; then
6154 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
6157 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
6160 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
6165 lock_old_archive_extraction=yes ;;
6167 lock_old_archive_extraction=no ;;
6208 # If no C compiler was specified, use CC.
6211 # If no C compiler flags were specified, use CFLAGS.
6212 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6214 # Allow CC to be a program name with arguments.
6218 # Check for command to grab the raw symbol name followed by C symbol from nm.
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
6220 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
6221 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6222 $as_echo_n "(cached
) " >&6
6225 # These are sane defaults that work on at least a few old systems.
6226 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6228 # Character class describing NM global symbol codes.
6229 symcode='[BCDEGRST]'
6231 # Regexp to match symbols that can be accessed directly from C.
6232 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6234 # Define system-specific variables.
6239 cygwin* | mingw* | pw32* | cegcc*)
6240 symcode='[ABCDGISTW]'
6243 if test "$host_cpu" = ia64; then
6244 symcode='[ABCDEGRST]'
6248 symcode='[BCDEGRST]'
6251 symcode='[BCDEGQRST]'
6262 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6270 # If we're using GNU nm, then use its standard symbol codes.
6271 case `$NM -V 2>&1` in
6272 *GNU* | *'with BFD'*)
6273 symcode='[ABCDGIRSTW]' ;;
6276 # Transform an extracted symbol line into a proper C declaration.
6277 # Some systems (esp. on ia64) link data and code symbols differently,
6278 # so use this general approach.
6279 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6281 # Transform an extracted symbol line into symbol name and symbol address
6282 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6283 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'"
6285 # Handle CRLF in mingw tool chain
6289 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6293 # Try without a prefix underscore, then with it.
6294 for ac_symprfx in "" "_
"; do
6296 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6297 symxfrm="\\1 $ac_symprfx\\2 \\2"
6299 # Write the raw and C identifiers.
6300 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6301 # Fake it for dumpbin and say T for any non-static function
6302 # and D for any global variable.
6303 # Also find C++ and __fastcall symbols from MSVC++,
6304 # which start with @ or ?.
6305 lt_cv_sys_global_symbol_pipe="$AWK '"\
6306 " {last_section=section; section=\$ 3};"\
6307 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6308 " \$ 0!~/External *\|/{next};"\
6309 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6310 " {if(hide[section]) next};"\
6311 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6312 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6313 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6314 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6315 " ' prfx
=^
$ac_symprfx"
6317 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6320 # Check to see that the pipe works correctly.
6324 cat > conftest.$ac_ext <<_LT_EOF
6329 void nm_test_func(void);
6330 void nm_test_func(void){}
6334 int main(){nm_test_var='a';nm_test_func();return(0);}
6337 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6338 (eval $ac_compile) 2>&5
6340 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6341 test $ac_status = 0; }; then
6342 # Now try to grab the symbols.
6344 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
6345 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6347 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6348 test $ac_status = 0; } && test -s "$nlist"; then
6349 # Try sorting and uniquifying the output.
6350 if sort "$nlist" | uniq > "$nlist"T; then
6351 mv -f "$nlist"T "$nlist"
6356 # Make sure that we snagged all the symbols we need.
6357 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6358 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6359 cat <<_LT_EOF > conftest.$ac_ext
6365 # Now generate the symbol file.
6366 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6368 cat <<_LT_EOF >> conftest.$ac_ext
6370 /* The mapping between symbol names and symbols. */
6375 lt__PROGRAM__LTX_preloaded_symbols[] =
6377 { "@PROGRAM@
", (void *) 0 },
6379 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6380 cat <<\_LT_EOF >> conftest.$ac_ext
6384 /* This works around a problem in FreeBSD linker */
6385 #ifdef FREEBSD_WORKAROUND
6386 static const void *lt_preloaded_setup() {
6387 return lt__PROGRAM__LTX_preloaded_symbols;
6395 # Now try linking the two files.
6396 mv conftest.$ac_objext conftstm.$ac_objext
6397 lt_save_LIBS="$LIBS"
6398 lt_save_CFLAGS="$CFLAGS"
6399 LIBS="conftstm.
$ac_objext"
6400 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6401 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6402 (eval $ac_link) 2>&5
6404 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6405 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6408 LIBS="$lt_save_LIBS"
6409 CFLAGS="$lt_save_CFLAGS"
6411 echo "cannot
find nm_test_func
in $nlist" >&5
6414 echo "cannot
find nm_test_var
in $nlist" >&5
6417 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
6420 echo "$progname: failed program was
:" >&5
6421 cat conftest.$ac_ext >&5
6423 rm -rf conftest* conftst*
6425 # Do not use the global_symbol_pipe unless it works.
6426 if test "$pipe_works" = yes; then
6429 lt_cv_sys_global_symbol_pipe=
6435 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6436 lt_cv_sys_global_symbol_to_cdecl=
6438 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
6440 $as_echo "failed
" >&6; }
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
6443 $as_echo "ok
" >&6; }
6467 # Check whether --enable-libtool-lock was given.
6468 if test "${enable_libtool_lock+set}" = set; then :
6469 enableval=$enable_libtool_lock;
6472 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
6474 # Some flags need to be propagated to the compiler or linker for good
6478 # Find out which ABI we are using.
6479 echo 'int i;' > conftest.$ac_ext
6480 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6481 (eval $ac_compile) 2>&5
6483 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6484 test $ac_status = 0; }; then
6485 case `/usr/bin/file conftest.$ac_objext` in
6497 # Find out which ABI we are using.
6498 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
6499 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6500 (eval $ac_compile) 2>&5
6502 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6503 test $ac_status = 0; }; then
6504 if test "$lt_cv_prog_gnu_ld" = yes; then
6505 case `/usr/bin/file conftest.$ac_objext` in
6507 LD="${LD-ld} -melf32bsmip"
6510 LD="${LD-ld} -melf32bmipn32"
6513 LD="${LD-ld} -melf64bmip"
6517 case `/usr/bin/file conftest.$ac_objext` in
6533 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6534 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6535 # Find out which ABI we are using.
6536 echo 'int i;' > conftest.$ac_ext
6537 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6538 (eval $ac_compile) 2>&5
6540 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6541 test $ac_status = 0; }; then
6542 case `/usr/bin/file conftest.o` in
6545 x86_64-*kfreebsd*-gnu)
6546 LD="${LD-ld} -m elf_i386_fbsd
"
6549 case `/usr/bin/file conftest.o` in
6551 LD="${LD-ld} -m elf32_x86_64
"
6554 LD="${LD-ld} -m elf_i386
"
6558 powerpc64le-*linux*)
6559 LD="${LD-ld} -m elf32lppclinux
"
6562 LD="${LD-ld} -m elf32ppclinux
"
6565 LD="${LD-ld} -m elf_s390
"
6568 LD="${LD-ld} -m elf32_sparc
"
6574 x86_64-*kfreebsd*-gnu)
6575 LD="${LD-ld} -m elf_x86_64_fbsd
"
6578 LD="${LD-ld} -m elf_x86_64
"
6581 LD="${LD-ld} -m elf64lppc
"
6584 LD="${LD-ld} -m elf64ppc
"
6586 s390*-*linux*|s390*-*tpf*)
6587 LD="${LD-ld} -m elf64_s390
"
6590 LD="${LD-ld} -m elf64_sparc
"
6600 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6601 SAVE_CFLAGS="$CFLAGS"
6602 CFLAGS="$CFLAGS -belf"
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
6604 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
6605 if ${lt_cv_cc_needs_belf+:} false; then :
6606 $as_echo_n "(cached
) " >&6
6609 ac_cpp='$CPP $CPPFLAGS'
6610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6615 /* end confdefs.h. */
6625 if ac_fn_c_try_link "$LINENO"; then :
6626 lt_cv_cc_needs_belf=yes
6628 lt_cv_cc_needs_belf=no
6630 rm -f core conftest.err conftest.$ac_objext \
6631 conftest$ac_exeext conftest.$ac_ext
6633 ac_cpp='$CPP $CPPFLAGS'
6634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
6640 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6641 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6642 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6643 CFLAGS="$SAVE_CFLAGS"
6647 # Find out which ABI we are using.
6648 echo 'int i;' > conftest.$ac_ext
6649 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6650 (eval $ac_compile) 2>&5
6652 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6653 test $ac_status = 0; }; then
6654 case `/usr/bin/file conftest.o` in
6656 case $lt_cv_prog_gnu_ld in
6657 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
6659 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6671 need_locks="$enable_libtool_lock"
6675 rhapsody* | darwin*)
6676 if test -n "$ac_tool_prefix"; then
6677 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
6678 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6680 $as_echo_n "checking
for $ac_word...
" >&6; }
6681 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6682 $as_echo_n "(cached
) " >&6
6684 if test -n "$DSYMUTIL"; then
6685 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691 test -z "$as_dir" && as_dir=.
6692 for ac_exec_ext in '' $ac_executable_extensions; do
6693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6694 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
6695 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6704 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6705 if test -n "$DSYMUTIL"; then
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
6707 $as_echo "$DSYMUTIL" >&6; }
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6710 $as_echo "no
" >&6; }
6715 if test -z "$ac_cv_prog_DSYMUTIL"; then
6716 ac_ct_DSYMUTIL=$DSYMUTIL
6717 # Extract the first word of "dsymutil
", so it can be a program name with args.
6718 set dummy dsymutil; ac_word=$2
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6720 $as_echo_n "checking
for $ac_word...
" >&6; }
6721 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6722 $as_echo_n "(cached
) " >&6
6724 if test -n "$ac_ct_DSYMUTIL"; then
6725 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731 test -z "$as_dir" && as_dir=.
6732 for ac_exec_ext in '' $ac_executable_extensions; do
6733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6734 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
6735 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6744 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6745 if test -n "$ac_ct_DSYMUTIL"; then
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
6747 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6750 $as_echo "no
" >&6; }
6753 if test "x
$ac_ct_DSYMUTIL" = x; then
6756 case $cross_compiling:$ac_tool_warned in
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6759 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6760 ac_tool_warned=yes ;;
6762 DSYMUTIL=$ac_ct_DSYMUTIL
6765 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6768 if test -n "$ac_tool_prefix"; then
6769 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
6770 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6772 $as_echo_n "checking
for $ac_word...
" >&6; }
6773 if ${ac_cv_prog_NMEDIT+:} false; then :
6774 $as_echo_n "(cached
) " >&6
6776 if test -n "$NMEDIT"; then
6777 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 test -z "$as_dir" && as_dir=.
6784 for ac_exec_ext in '' $ac_executable_extensions; do
6785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6786 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
6787 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6796 NMEDIT=$ac_cv_prog_NMEDIT
6797 if test -n "$NMEDIT"; then
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
6799 $as_echo "$NMEDIT" >&6; }
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6802 $as_echo "no
" >&6; }
6807 if test -z "$ac_cv_prog_NMEDIT"; then
6808 ac_ct_NMEDIT=$NMEDIT
6809 # Extract the first word of "nmedit
", so it can be a program name with args.
6810 set dummy nmedit; ac_word=$2
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6812 $as_echo_n "checking
for $ac_word...
" >&6; }
6813 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6814 $as_echo_n "(cached
) " >&6
6816 if test -n "$ac_ct_NMEDIT"; then
6817 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6826 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
6827 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6836 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6837 if test -n "$ac_ct_NMEDIT"; then
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
6839 $as_echo "$ac_ct_NMEDIT" >&6; }
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6842 $as_echo "no
" >&6; }
6845 if test "x
$ac_ct_NMEDIT" = x; then
6848 case $cross_compiling:$ac_tool_warned in
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6851 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6852 ac_tool_warned=yes ;;
6854 NMEDIT=$ac_ct_NMEDIT
6857 NMEDIT="$ac_cv_prog_NMEDIT"
6860 if test -n "$ac_tool_prefix"; then
6861 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
6862 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6864 $as_echo_n "checking
for $ac_word...
" >&6; }
6865 if ${ac_cv_prog_LIPO+:} false; then :
6866 $as_echo_n "(cached
) " >&6
6868 if test -n "$LIPO"; then
6869 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875 test -z "$as_dir" && as_dir=.
6876 for ac_exec_ext in '' $ac_executable_extensions; do
6877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6878 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
6879 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6888 LIPO=$ac_cv_prog_LIPO
6889 if test -n "$LIPO"; then
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
6891 $as_echo "$LIPO" >&6; }
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6894 $as_echo "no
" >&6; }
6899 if test -z "$ac_cv_prog_LIPO"; then
6901 # Extract the first word of "lipo
", so it can be a program name with args.
6902 set dummy lipo; ac_word=$2
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6904 $as_echo_n "checking
for $ac_word...
" >&6; }
6905 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6906 $as_echo_n "(cached
) " >&6
6908 if test -n "$ac_ct_LIPO"; then
6909 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915 test -z "$as_dir" && as_dir=.
6916 for ac_exec_ext in '' $ac_executable_extensions; do
6917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6918 ac_cv_prog_ac_ct_LIPO="lipo
"
6919 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6928 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6929 if test -n "$ac_ct_LIPO"; then
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
6931 $as_echo "$ac_ct_LIPO" >&6; }
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6934 $as_echo "no
" >&6; }
6937 if test "x
$ac_ct_LIPO" = x; then
6940 case $cross_compiling:$ac_tool_warned in
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6943 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6944 ac_tool_warned=yes ;;
6949 LIPO="$ac_cv_prog_LIPO"
6952 if test -n "$ac_tool_prefix"; then
6953 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
6954 set dummy ${ac_tool_prefix}otool; ac_word=$2
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6956 $as_echo_n "checking
for $ac_word...
" >&6; }
6957 if ${ac_cv_prog_OTOOL+:} false; then :
6958 $as_echo_n "(cached
) " >&6
6960 if test -n "$OTOOL"; then
6961 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967 test -z "$as_dir" && as_dir=.
6968 for ac_exec_ext in '' $ac_executable_extensions; do
6969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6970 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
6971 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6980 OTOOL=$ac_cv_prog_OTOOL
6981 if test -n "$OTOOL"; then
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
6983 $as_echo "$OTOOL" >&6; }
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6986 $as_echo "no
" >&6; }
6991 if test -z "$ac_cv_prog_OTOOL"; then
6993 # Extract the first word of "otool
", so it can be a program name with args.
6994 set dummy otool; ac_word=$2
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6996 $as_echo_n "checking
for $ac_word...
" >&6; }
6997 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6998 $as_echo_n "(cached
) " >&6
7000 if test -n "$ac_ct_OTOOL"; then
7001 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007 test -z "$as_dir" && as_dir=.
7008 for ac_exec_ext in '' $ac_executable_extensions; do
7009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7010 ac_cv_prog_ac_ct_OTOOL="otool
"
7011 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7020 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7021 if test -n "$ac_ct_OTOOL"; then
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
7023 $as_echo "$ac_ct_OTOOL" >&6; }
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7026 $as_echo "no
" >&6; }
7029 if test "x
$ac_ct_OTOOL" = x; then
7032 case $cross_compiling:$ac_tool_warned in
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7035 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7036 ac_tool_warned=yes ;;
7041 OTOOL="$ac_cv_prog_OTOOL"
7044 if test -n "$ac_tool_prefix"; then
7045 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
7046 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7048 $as_echo_n "checking
for $ac_word...
" >&6; }
7049 if ${ac_cv_prog_OTOOL64+:} false; then :
7050 $as_echo_n "(cached
) " >&6
7052 if test -n "$OTOOL64"; then
7053 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059 test -z "$as_dir" && as_dir=.
7060 for ac_exec_ext in '' $ac_executable_extensions; do
7061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7062 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
7063 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7072 OTOOL64=$ac_cv_prog_OTOOL64
7073 if test -n "$OTOOL64"; then
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
7075 $as_echo "$OTOOL64" >&6; }
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7078 $as_echo "no
" >&6; }
7083 if test -z "$ac_cv_prog_OTOOL64"; then
7084 ac_ct_OTOOL64=$OTOOL64
7085 # Extract the first word of "otool64
", so it can be a program name with args.
7086 set dummy otool64; ac_word=$2
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7088 $as_echo_n "checking
for $ac_word...
" >&6; }
7089 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7090 $as_echo_n "(cached
) " >&6
7092 if test -n "$ac_ct_OTOOL64"; then
7093 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099 test -z "$as_dir" && as_dir=.
7100 for ac_exec_ext in '' $ac_executable_extensions; do
7101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7102 ac_cv_prog_ac_ct_OTOOL64="otool64
"
7103 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7112 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7113 if test -n "$ac_ct_OTOOL64"; then
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
7115 $as_echo "$ac_ct_OTOOL64" >&6; }
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7118 $as_echo "no
" >&6; }
7121 if test "x
$ac_ct_OTOOL64" = x; then
7124 case $cross_compiling:$ac_tool_warned in
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7127 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7128 ac_tool_warned=yes ;;
7130 OTOOL64=$ac_ct_OTOOL64
7133 OTOOL64="$ac_cv_prog_OTOOL64"
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
7163 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
7164 if ${lt_cv_apple_cc_single_mod+:} false; then :
7165 $as_echo_n "(cached
) " >&6
7167 lt_cv_apple_cc_single_mod=no
7168 if test -z "${LT_MULTI_MODULE}"; then
7169 # By default we will add the -single_module flag. You can override
7170 # by either setting the environment variable LT_MULTI_MODULE
7171 # non-empty at configure time, or by adding -multi_module to the
7173 rm -rf libconftest.dylib*
7174 echo "int foo
(void
){return 1;}" > conftest.c
7175 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7176 -dynamiclib -Wl,-single_module conftest.c
" >&5
7177 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7178 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7180 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7181 lt_cv_apple_cc_single_mod=yes
7183 cat conftest.err >&5
7185 rm -rf libconftest.dylib*
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
7190 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
7192 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
7193 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7194 $as_echo_n "(cached
) " >&6
7196 lt_cv_ld_exported_symbols_list=no
7197 save_LDFLAGS=$LDFLAGS
7198 echo "_main
" > conftest.sym
7199 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
7200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7201 /* end confdefs.h. */
7211 if ac_fn_c_try_link "$LINENO"; then :
7212 lt_cv_ld_exported_symbols_list=yes
7214 lt_cv_ld_exported_symbols_list=no
7216 rm -f core conftest.err conftest.$ac_objext \
7217 conftest$ac_exeext conftest.$ac_ext
7218 LDFLAGS="$save_LDFLAGS"
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
7222 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
7224 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
7225 if ${lt_cv_ld_force_load+:} false; then :
7226 $as_echo_n "(cached
) " >&6
7228 lt_cv_ld_force_load=no
7229 cat > conftest.c << _LT_EOF
7230 int forced_loaded() { return 2;}
7232 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
7233 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7234 echo "$AR cru libconftest.a conftest.o
" >&5
7235 $AR cru libconftest.a conftest.o 2>&5
7236 cat > conftest.c << _LT_EOF
7237 int main() { return 0;}
7239 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
7240 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7242 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7243 lt_cv_ld_force_load=yes
7245 cat conftest.err >&5
7247 rm -f conftest.err libconftest.a conftest conftest.c
7248 rm -rf conftest.dSYM
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
7252 $as_echo "$lt_cv_ld_force_load" >&6; }
7254 rhapsody* | darwin1.[012])
7255 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7257 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7258 darwin*) # darwin 5.x on
7259 # if running on 10.5 or later, the deployment target defaults
7260 # to the OS version, if on x86, and 10.4, the deployment
7261 # target defaults to 10.4. Don't you love it?
7262 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7263 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7264 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7266 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7268 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7272 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7273 _lt_dar_single_mod='$single_module'
7275 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7276 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7278 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7280 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
7281 _lt_dsymutil='~$DSYMUTIL $lib || :'
7288 for ac_header in dlfcn.h
7290 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
" "$ac_includes_default
7292 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
7293 cat >>confdefs.h <<_ACEOF
7294 #define HAVE_DLFCN_H 1
7306 # Check whether --enable-static was given.
7307 if test "${enable_static+set}" = set; then :
7308 enableval=$enable_static; p=${PACKAGE-default}
7310 yes) enable_static=yes ;;
7311 no) enable_static=no ;;
7314 # Look at the argument we got. We use all the common list separators.
7315 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7316 for pkg in $enableval; do
7318 if test "X
$pkg" = "X
$p"; then
7344 # Check whether --enable-shared was given.
7345 if test "${enable_shared+set}" = set; then :
7346 enableval=$enable_shared; p=${PACKAGE-default}
7348 yes) enable_shared=yes ;;
7349 no) enable_shared=no ;;
7352 # Look at the argument we got. We use all the common list separators.
7353 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7354 for pkg in $enableval; do
7356 if test "X
$pkg" = "X
$p"; then
7377 # Check whether --with-pic was given.
7378 if test "${with_pic+set}" = set; then :
7379 withval=$with_pic; pic_mode="$withval"
7385 test -z "$pic_mode" && pic_mode=default
7393 # Check whether --enable-fast-install was given.
7394 if test "${enable_fast_install+set}" = set; then :
7395 enableval=$enable_fast_install; p=${PACKAGE-default}
7397 yes) enable_fast_install=yes ;;
7398 no) enable_fast_install=no ;;
7400 enable_fast_install=no
7401 # Look at the argument we got. We use all the common list separators.
7402 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7403 for pkg in $enableval; do
7405 if test "X
$pkg" = "X
$p"; then
7406 enable_fast_install=yes
7413 enable_fast_install=yes
7426 # This can be used to rebuild libtool when needed
7427 LIBTOOL_DEPS="$ltmain"
7429 # Always use our own libtool.
7430 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7457 test -z "$LN_S" && LN_S="ln -s"
7472 if test -n "${ZSH_VERSION+set}" ; then
7473 setopt NO_GLOB_SUBST
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
7477 $as_echo_n "checking
for objdir...
" >&6; }
7478 if ${lt_cv_objdir+:} false; then :
7479 $as_echo_n "(cached
) " >&6
7481 rm -f .libs 2>/dev/null
7482 mkdir .libs 2>/dev/null
7483 if test -d .libs; then
7486 # MS-DOS does not allow filenames that begin with a dot.
7489 rmdir .libs 2>/dev/null
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
7492 $as_echo "$lt_cv_objdir" >&6; }
7493 objdir=$lt_cv_objdir
7499 cat >>confdefs.h <<_ACEOF
7500 #define LT_OBJDIR "$lt_cv_objdir/"
7508 # AIX sometimes has problems with the GCC collect2 program. For some
7509 # reason, if we set the COLLECT_NAMES environment variable, the problems
7510 # vanish in a puff of smoke.
7511 if test "X
${COLLECT_NAMES+set}" != Xset; then
7513 export COLLECT_NAMES
7520 can_build_shared=yes
7522 # All known linkers require a `.a' archive for static linking (except MSVC,
7523 # which needs '.lib').
7526 with_gnu_ld="$lt_cv_prog_gnu_ld"
7529 old_CFLAGS="$CFLAGS"
7531 # Set sane defaults for various variables
7532 test -z "$CC" && CC=cc
7533 test -z "$LTCC" && LTCC=$CC
7534 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7535 test -z "$LD" && LD=ld
7536 test -z "$ac_objext" && ac_objext=o
7538 for cc_temp in $compiler""; do
7540 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7541 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7546 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
7549 # Only perform the check for file, if the check method requires it
7550 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7551 case $deplibs_check_method in
7553 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
7555 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
7556 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7557 $as_echo_n "(cached
) " >&6
7561 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7564 lt_save_MAGIC_CMD="$MAGIC_CMD"
7565 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7566 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
7567 for ac_dir in $ac_dummy; do
7569 test -z "$ac_dir" && ac_dir=.
7570 if test -f $ac_dir/${ac_tool_prefix}file; then
7571 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7572 if test -n "$file_magic_test_file"; then
7573 case $deplibs_check_method in
7575 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
7576 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7577 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7578 $EGREP "$file_magic_regex" > /dev/null; then
7583 *** Warning: the command libtool uses to detect shared libraries,
7584 *** $file_magic_cmd, produces output that libtool cannot recognize.
7585 *** The result is that libtool may fail to recognize shared libraries
7586 *** as such. This will affect the creation of libtool libraries that
7587 *** depend on shared libraries, but programs linked with such libtool
7588 *** libraries will work regardless of this problem. Nevertheless, you
7589 *** may want to report the problem to your system manager and/or to
7590 *** bug-libtool@gnu.org
7600 MAGIC_CMD="$lt_save_MAGIC_CMD"
7605 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7606 if test -n "$MAGIC_CMD"; then
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
7608 $as_echo "$MAGIC_CMD" >&6; }
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7611 $as_echo "no
" >&6; }
7618 if test -z "$lt_cv_path_MAGIC_CMD"; then
7619 if test -n "$ac_tool_prefix"; then
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
7621 $as_echo_n "checking
for file...
" >&6; }
7622 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7623 $as_echo_n "(cached
) " >&6
7627 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7630 lt_save_MAGIC_CMD="$MAGIC_CMD"
7631 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7632 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
7633 for ac_dir in $ac_dummy; do
7635 test -z "$ac_dir" && ac_dir=.
7636 if test -f $ac_dir/file; then
7637 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7638 if test -n "$file_magic_test_file"; then
7639 case $deplibs_check_method in
7641 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
7642 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7643 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7644 $EGREP "$file_magic_regex" > /dev/null; then
7649 *** Warning: the command libtool uses to detect shared libraries,
7650 *** $file_magic_cmd, produces output that libtool cannot recognize.
7651 *** The result is that libtool may fail to recognize shared libraries
7652 *** as such. This will affect the creation of libtool libraries that
7653 *** depend on shared libraries, but programs linked with such libtool
7654 *** libraries will work regardless of this problem. Nevertheless, you
7655 *** may want to report the problem to your system manager and/or to
7656 *** bug-libtool@gnu.org
7666 MAGIC_CMD="$lt_save_MAGIC_CMD"
7671 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7672 if test -n "$MAGIC_CMD"; then
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
7674 $as_echo "$MAGIC_CMD" >&6; }
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7677 $as_echo "no
" >&6; }
7690 # Use C for the default configuration in the libtool script
7694 ac_cpp='$CPP $CPPFLAGS'
7695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7700 # Source file extension for C test sources.
7703 # Object file extension for compiled C test sources.
7707 # Code to be used in simple compile tests
7708 lt_simple_compile_test_code="int some_variable
= 0;"
7710 # Code to be used in simple link tests
7711 lt_simple_link_test_code='int main(){return(0);}'
7719 # If no C compiler was specified, use CC.
7722 # If no C compiler flags were specified, use CFLAGS.
7723 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7725 # Allow CC to be a program name with arguments.
7728 # Save the default compiler, since it gets overwritten when the other
7729 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7730 compiler_DEFAULT=$CC
7732 # save warnings/boilerplate of simple test code
7733 ac_outfile=conftest.$ac_objext
7734 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7735 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7736 _lt_compiler_boilerplate=`cat conftest.err`
7739 ac_outfile=conftest.$ac_objext
7740 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7741 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7742 _lt_linker_boilerplate=`cat conftest.err`
7747 ## There is no encapsulation within the following macros, do not change
7748 ## the running order or otherwise move them around unless you know exactly
7749 ## what you are doing...
7750 if test -n "$compiler"; then
7752 lt_prog_compiler_no_builtin_flag=
7754 if test "$GCC" = yes; then
7755 case $cc_basename in
7757 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7759 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
7763 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
7764 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7765 $as_echo_n "(cached
) " >&6
7767 lt_cv_prog_compiler_rtti_exceptions=no
7768 ac_outfile=conftest.$ac_objext
7769 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7770 lt_compiler_flag="-fno-rtti -fno-exceptions"
7771 # Insert the option either (1) after the last *FLAGS variable, or
7772 # (2) before a word containing "conftest.
", or (3) at the end.
7773 # Note that $ac_compile itself does not contain backslashes and begins
7774 # with a dollar sign (not a hyphen), so the echo should work correctly.
7775 # The option is referenced via a variable to avoid confusing sed.
7776 lt_compile=`echo "$ac_compile" | $SED \
7777 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7778 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7779 -e 's:$: $lt_compiler_flag:'`
7780 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
7781 (eval "$lt_compile" 2>conftest.err)
7783 cat conftest.err >&5
7784 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7785 if (exit $ac_status) && test -s "$ac_outfile"; then
7786 # The compiler can only warn and ignore the option if not recognized
7787 # So say no if there are warnings other than the usual output.
7788 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7789 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7790 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7791 lt_cv_prog_compiler_rtti_exceptions=yes
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
7798 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7800 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7801 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7813 lt_prog_compiler_wl=
7814 lt_prog_compiler_pic=
7815 lt_prog_compiler_static=
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
7818 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
7820 if test "$GCC" = yes; then
7821 lt_prog_compiler_wl='-Wl,'
7822 lt_prog_compiler_static='-static'
7826 # All AIX code is PIC.
7827 if test "$host_cpu" = ia64; then
7828 # AIX 5 now supports IA64 processor
7829 lt_prog_compiler_static='-Bstatic'
7831 lt_prog_compiler_pic='-fPIC'
7837 # see comment about AmigaOS4 .so support
7838 lt_prog_compiler_pic='-fPIC'
7841 # FIXME: we need at least 68020 code to build shared libraries, but
7842 # adding the `-m68020' flag to GCC prevents building anything better,
7844 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7849 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7850 # PIC is the default for these OSes.
7853 mingw* | cygwin* | pw32* | os2* | cegcc*)
7854 # This hack is so that the source file can tell whether it is being
7855 # built for inclusion in a dll (and should export symbols for example).
7856 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7857 # (--disable-auto-import) libraries
7858 lt_prog_compiler_pic='-DDLL_EXPORT'
7861 darwin* | rhapsody*)
7862 # PIC is the default on this platform
7863 # Common symbols not allowed in MH_DYLIB files
7864 lt_prog_compiler_pic='-fno-common'
7868 # PIC is the default for Haiku.
7869 # The "-static" flag exists, but is broken.
7870 lt_prog_compiler_static=
7874 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7875 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7876 # sets the default TLS model and affects inlining.
7882 lt_prog_compiler_pic='-fPIC'
7888 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7889 # Instead, we relocate shared libraries at runtime.
7893 # Just because we use GCC doesn't mean we suddenly get shared libraries
7894 # on systems that don't support them.
7895 lt_prog_compiler_can_build_shared=no
7900 # QNX uses GNU C++, but need to define -shared option too, otherwise
7902 lt_prog_compiler_pic='-fPIC -shared'
7906 if test -d /usr/nec; then
7907 lt_prog_compiler_pic=-Kconform_pic
7912 lt_prog_compiler_pic='-fPIC'
7916 case $cc_basename in
7917 nvcc*) # Cuda Compiler Driver 2.2
7918 lt_prog_compiler_wl='-Xlinker '
7919 lt_prog_compiler_pic='-Xcompiler -fPIC'
7923 # PORTME Check for flag to pass linker flags through the system compiler.
7926 lt_prog_compiler_wl='-Wl,'
7927 if test "$host_cpu" = ia64; then
7928 # AIX 5 now supports IA64 processor
7929 lt_prog_compiler_static='-Bstatic'
7931 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7935 mingw* | cygwin* | pw32* | os2* | cegcc*)
7936 # This hack is so that the source file can tell whether it is being
7937 # built for inclusion in a dll (and should export symbols for example).
7938 lt_prog_compiler_pic='-DDLL_EXPORT'
7941 hpux9* | hpux10* | hpux11*)
7942 lt_prog_compiler_wl='-Wl,'
7943 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7950 lt_prog_compiler_pic='+Z'
7953 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7954 lt_prog_compiler_static='${wl}-a ${wl}archive'
7957 irix5* | irix6* | nonstopux*)
7958 lt_prog_compiler_wl='-Wl,'
7959 # PIC (with -KPIC) is the default.
7960 lt_prog_compiler_static='-non_shared'
7963 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7964 case $cc_basename in
7965 # old Intel for x86_64 which still supported -KPIC.
7967 lt_prog_compiler_wl='-Wl,'
7968 lt_prog_compiler_pic='-KPIC'
7969 lt_prog_compiler_static='-static'
7971 # icc used to be incompatible with GCC.
7972 # ICC 10 doesn't accept -KPIC any more.
7974 lt_prog_compiler_wl='-Wl,'
7975 lt_prog_compiler_pic='-fPIC'
7976 lt_prog_compiler_static='-static'
7978 # Lahey Fortran 8.1.
7980 lt_prog_compiler_wl='-Wl,'
7981 lt_prog_compiler_pic='--shared'
7982 lt_prog_compiler_static='--static'
7984 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7985 # Portland Group compilers (*not* the Pentium gcc compiler,
7986 # which looks to be a dead project)
7987 lt_prog_compiler_wl='-Wl,'
7988 lt_prog_compiler_pic='-fpic'
7989 lt_prog_compiler_static='-Bstatic'
7992 lt_prog_compiler_wl='-Wl,'
7993 # All Alpha code is PIC.
7994 lt_prog_compiler_static='-non_shared'
7996 xl* | bgxl* | bgf* | mpixl*)
7997 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7998 lt_prog_compiler_wl='-Wl,'
7999 lt_prog_compiler_pic='-qpic'
8000 lt_prog_compiler_static='-qstaticlink'
8003 case `$CC -V 2>&1 | sed 5q` in
8004 *Sun\ F* | *Sun*Fortran*)
8005 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8006 lt_prog_compiler_pic='-KPIC'
8007 lt_prog_compiler_static='-Bstatic'
8008 lt_prog_compiler_wl=''
8012 lt_prog_compiler_pic='-KPIC'
8013 lt_prog_compiler_static='-Bstatic'
8014 lt_prog_compiler_wl='-Wl,'
8022 lt_prog_compiler_pic='-KPIC'
8023 lt_prog_compiler_static='-Bstatic'
8027 # QNX uses GNU C++, but need to define -shared option too, otherwise
8029 lt_prog_compiler_pic='-fPIC -shared'
8032 osf3* | osf4* | osf5*)
8033 lt_prog_compiler_wl='-Wl,'
8034 # All OSF/1 code is PIC.
8035 lt_prog_compiler_static='-non_shared'
8039 lt_prog_compiler_static='-non_shared'
8043 lt_prog_compiler_pic='-KPIC'
8044 lt_prog_compiler_static='-Bstatic'
8045 case $cc_basename in
8047 lt_prog_compiler_wl='-Qoption ld ';;
8049 lt_prog_compiler_wl='-Wl,';;
8054 lt_prog_compiler_wl='-Qoption ld '
8055 lt_prog_compiler_pic='-PIC'
8056 lt_prog_compiler_static='-Bstatic'
8059 sysv4 | sysv4.2uw2* | sysv4.3*)
8060 lt_prog_compiler_wl='-Wl,'
8061 lt_prog_compiler_pic='-KPIC'
8062 lt_prog_compiler_static='-Bstatic'
8066 if test -d /usr/nec ;then
8067 lt_prog_compiler_pic='-Kconform_pic'
8068 lt_prog_compiler_static='-Bstatic'
8072 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8073 lt_prog_compiler_wl='-Wl,'
8074 lt_prog_compiler_pic='-KPIC'
8075 lt_prog_compiler_static='-Bstatic'
8079 lt_prog_compiler_wl='-Wl,'
8080 lt_prog_compiler_can_build_shared=no
8084 lt_prog_compiler_pic='-pic'
8085 lt_prog_compiler_static='-Bstatic'
8089 lt_prog_compiler_can_build_shared=no
8095 # For platforms which do not support PIC, -DPIC is meaningless:
8097 lt_prog_compiler_pic=
8100 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
8104 $as_echo "$lt_prog_compiler_pic" >&6; }
8112 # Check to make sure the PIC flag actually works.
8114 if test -n "$lt_prog_compiler_pic"; then
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
8116 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
8117 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8118 $as_echo_n "(cached
) " >&6
8120 lt_cv_prog_compiler_pic_works=no
8121 ac_outfile=conftest.$ac_objext
8122 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8123 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8124 # Insert the option either (1) after the last *FLAGS variable, or
8125 # (2) before a word containing "conftest.
", or (3) at the end.
8126 # Note that $ac_compile itself does not contain backslashes and begins
8127 # with a dollar sign (not a hyphen), so the echo should work correctly.
8128 # The option is referenced via a variable to avoid confusing sed.
8129 lt_compile=`echo "$ac_compile" | $SED \
8130 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8131 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8132 -e 's:$: $lt_compiler_flag:'`
8133 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
8134 (eval "$lt_compile" 2>conftest.err)
8136 cat conftest.err >&5
8137 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8138 if (exit $ac_status) && test -s "$ac_outfile"; then
8139 # The compiler can only warn and ignore the option if not recognized
8140 # So say no if there are warnings other than the usual output.
8141 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8142 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8143 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8144 lt_cv_prog_compiler_pic_works=yes
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
8151 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8153 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8154 case $lt_prog_compiler_pic in
8156 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8159 lt_prog_compiler_pic=
8160 lt_prog_compiler_can_build_shared=no
8171 # Check to make sure the static flag actually works.
8173 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
8175 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
8176 if ${lt_cv_prog_compiler_static_works+:} false; then :
8177 $as_echo_n "(cached
) " >&6
8179 lt_cv_prog_compiler_static_works=no
8180 save_LDFLAGS="$LDFLAGS"
8181 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8182 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8183 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8184 # The linker can only warn and ignore the option if not recognized
8185 # So say no if there are warnings
8186 if test -s conftest.err; then
8187 # Append any errors to the config.log.
8188 cat conftest.err 1>&5
8189 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8190 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8191 if diff conftest.exp conftest.er2 >/dev/null; then
8192 lt_cv_prog_compiler_static_works=yes
8195 lt_cv_prog_compiler_static_works=yes
8199 LDFLAGS="$save_LDFLAGS"
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
8203 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8205 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8208 lt_prog_compiler_static=
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
8218 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
8219 if ${lt_cv_prog_compiler_c_o+:} false; then :
8220 $as_echo_n "(cached
) " >&6
8222 lt_cv_prog_compiler_c_o=no
8223 $RM -r conftest 2>/dev/null
8227 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8229 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
8230 # Insert the option either (1) after the last *FLAGS variable, or
8231 # (2) before a word containing "conftest.
", or (3) at the end.
8232 # Note that $ac_compile itself does not contain backslashes and begins
8233 # with a dollar sign (not a hyphen), so the echo should work correctly.
8234 lt_compile=`echo "$ac_compile" | $SED \
8235 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8236 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8237 -e 's:$: $lt_compiler_flag:'`
8238 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
8239 (eval "$lt_compile" 2>out/conftest.err)
8241 cat out/conftest.err >&5
8242 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8243 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8245 # The compiler can only warn and ignore the option if not recognized
8246 # So say no if there are warnings
8247 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8248 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8249 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8250 lt_cv_prog_compiler_c_o=yes
8255 # SGI C++ compiler will create directory out/ii_files/ for
8256 # template instantiation
8257 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8258 $RM out/* && rmdir out
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
8265 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
8273 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
8274 if ${lt_cv_prog_compiler_c_o+:} false; then :
8275 $as_echo_n "(cached
) " >&6
8277 lt_cv_prog_compiler_c_o=no
8278 $RM -r conftest 2>/dev/null
8282 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8284 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
8285 # Insert the option either (1) after the last *FLAGS variable, or
8286 # (2) before a word containing "conftest.
", or (3) at the end.
8287 # Note that $ac_compile itself does not contain backslashes and begins
8288 # with a dollar sign (not a hyphen), so the echo should work correctly.
8289 lt_compile=`echo "$ac_compile" | $SED \
8290 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8291 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8292 -e 's:$: $lt_compiler_flag:'`
8293 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
8294 (eval "$lt_compile" 2>out/conftest.err)
8296 cat out/conftest.err >&5
8297 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8298 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8300 # The compiler can only warn and ignore the option if not recognized
8301 # So say no if there are warnings
8302 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8303 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8304 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8305 lt_cv_prog_compiler_c_o=yes
8310 # SGI C++ compiler will create directory out/ii_files/ for
8311 # template instantiation
8312 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8313 $RM out/* && rmdir out
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
8320 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8325 hard_links="nottested
"
8326 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8327 # do not overwrite the value of need_locks provided by the user
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
8329 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
8332 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8334 ln conftest.a conftest.b 2>&5 || hard_links=no
8335 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
8337 $as_echo "$hard_links" >&6; }
8338 if test "$hard_links" = no; then
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
8340 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
8353 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
8356 allow_undefined_flag=
8357 always_export_symbols=no
8359 archive_expsym_cmds=
8360 compiler_needs_object=no
8361 enable_shared_with_static_runtimes=no
8362 export_dynamic_flag_spec=
8363 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8364 hardcode_automatic=no
8366 hardcode_direct_absolute=no
8367 hardcode_libdir_flag_spec=
8368 hardcode_libdir_flag_spec_ld=
8369 hardcode_libdir_separator=
8371 hardcode_shlibpath_var=unsupported
8373 link_all_deplibs=unknown
8376 old_archive_from_new_cmds=
8377 old_archive_from_expsyms_cmds=
8378 thread_safe_flag_spec=
8379 whole_archive_flag_spec=
8380 # include_expsyms should be a list of space-separated symbols to be *always*
8381 # included in the symbol list
8383 # exclude_expsyms can be an extended regexp of symbols to exclude
8384 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8385 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8386 # as well as any symbol that contains `d'.
8387 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8388 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8389 # platforms (ab)use it in PIC code, but their linkers get confused if
8390 # the symbol is explicitly referenced. Since portable code cannot
8391 # rely on this symbol name, it's probably fine to never include it in
8392 # preloaded symbol tables.
8393 # Exclude shared library initialization/finalization symbols.
8394 extract_expsyms_cmds=
8397 cygwin* | mingw* | pw32* | cegcc*)
8398 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8399 # When not using gcc, we currently assume that we are using
8400 # Microsoft Visual C++.
8401 if test "$GCC" != yes; then
8406 # we just hope/assume this is gcc and not c89 (= MSVC++)
8416 # On some targets, GNU ld is compatible enough with the native linker
8417 # that we're better off using the native interface for both.
8418 lt_use_gnu_ld_interface=no
8419 if test "$with_gnu_ld" = yes; then
8422 # The AIX port of GNU ld has always aspired to compatibility
8423 # with the native linker. However, as the warning in the GNU ld
8424 # block says, versions before 2.19.5* couldn't really create working
8425 # shared libraries, regardless of the interface used.
8426 case `$LD -v 2>&1` in
8427 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8428 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8429 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8431 lt_use_gnu_ld_interface=yes
8436 lt_use_gnu_ld_interface=yes
8441 if test "$lt_use_gnu_ld_interface" = yes; then
8442 # If archive_cmds runs LD, not CC, wlarc should be empty
8445 # Set some defaults for GNU ld with shared library support. These
8446 # are reset later if shared libraries are not supported. Putting them
8447 # here allows them to be overridden if necessary.
8448 runpath_var=LD_RUN_PATH
8449 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8450 export_dynamic_flag_spec='${wl}--export-dynamic'
8451 # ancient GNU ld didn't support --whole-archive et. al.
8452 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8453 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8455 whole_archive_flag_spec=
8457 supports_anon_versioning=no
8458 case `$LD -v 2>&1` in
8459 *GNU\ gold*) supports_anon_versioning=yes ;;
8460 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8461 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8462 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8463 *\ 2.11.*) ;; # other 2.11 versions
8464 *) supports_anon_versioning=yes ;;
8467 # See if GNU ld supports shared libraries.
8470 # On AIX/PPC, the GNU linker is very broken
8471 if test "$host_cpu" != ia64; then
8475 *** Warning: the GNU linker, at least up to release 2.19, is reported
8476 *** to be unable to reliably create shared libraries on AIX.
8477 *** Therefore, libtool is disabling shared libraries support. If you
8478 *** really care for shared libraries, you may want to install binutils
8479 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8480 *** You will then need to restart the configuration process.
8489 # see comment about AmigaOS4 .so support
8490 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8491 archive_expsym_cmds=''
8494 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)'
8495 hardcode_libdir_flag_spec
='-L$libdir'
8496 hardcode_minus_L
=yes
8502 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8503 allow_undefined_flag
=unsupported
8504 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8505 # support --undefined. This deserves some investigation. FIXME
8506 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8512 cygwin
* | mingw
* | pw32
* | cegcc
*)
8513 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8514 # as there is no search path for DLLs.
8515 hardcode_libdir_flag_spec
='-L$libdir'
8516 export_dynamic_flag_spec
='${wl}--export-all-symbols'
8517 allow_undefined_flag
=unsupported
8518 always_export_symbols
=no
8519 enable_shared_with_static_runtimes
=yes
8520 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8522 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
8523 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8524 # If the export-symbols file already is a .def file (1st line
8525 # is EXPORTS), use it as is; otherwise, prepend...
8526 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8527 cp $export_symbols $output_objdir/$soname.def;
8529 echo EXPORTS > $output_objdir/$soname.def;
8530 cat $export_symbols >> $output_objdir/$soname.def;
8532 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8539 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8540 link_all_deplibs
=yes
8545 hardcode_shlibpath_var
=no
8546 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8547 export_dynamic_flag_spec
='${wl}-E'
8548 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8549 # Instead, shared libraries are loaded at an image base (0x10000000 by
8550 # default) and relocated if they conflict, which is a slow very memory
8551 # consuming and fragmenting process. To avoid this, we pick a random,
8552 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8553 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8554 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8555 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'
8558 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8560 if test "$host_os" = linux-dietlibc
; then
8561 case $cc_basename in
8562 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
8565 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
8566 && test "$tmp_diet" = no
8568 tmp_addflag
=' $pic_flag'
8569 tmp_sharedflag
='-shared'
8570 case $cc_basename,$host_cpu in
8571 pgcc
*) # Portland Group C compiler
8572 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'
8573 tmp_addflag
=' $pic_flag'
8575 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8576 # Portland Group f77 and f90 compilers
8577 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'
8578 tmp_addflag
=' $pic_flag -Mnomain' ;;
8579 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
8580 tmp_addflag
=' -i_dynamic' ;;
8581 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
8582 tmp_addflag
=' -i_dynamic -nofor_main' ;;
8583 ifc
* | ifort
*) # Intel Fortran compiler
8584 tmp_addflag
=' -nofor_main' ;;
8585 lf95
*) # Lahey Fortran 8.1
8586 whole_archive_flag_spec
=
8587 tmp_sharedflag
='--shared' ;;
8588 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8589 tmp_sharedflag
='-qmkshrobj'
8591 nvcc
*) # Cuda Compiler Driver 2.2
8592 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'
8593 compiler_needs_object
=yes
8596 case `$CC -V 2>&1 | sed 5q` in
8597 *Sun\ C
*) # Sun C 5.9
8598 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'
8599 compiler_needs_object
=yes
8600 tmp_sharedflag
='-G' ;;
8601 *Sun\ F
*) # Sun Fortran 8.3
8602 tmp_sharedflag
='-G' ;;
8604 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8606 if test "x$supports_anon_versioning" = xyes
; then
8607 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8608 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8609 echo "local: *; };" >> $output_objdir/$libname.ver~
8610 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8613 case $cc_basename in
8614 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
8615 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8616 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
8617 hardcode_libdir_flag_spec
=
8618 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8619 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8620 if test "x$supports_anon_versioning" = xyes
; then
8621 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8622 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8623 echo "local: *; };" >> $output_objdir/$libname.ver~
8624 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8634 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
8635 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8638 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8639 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8644 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
8648 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8649 *** create shared libraries on Solaris systems. Therefore, libtool
8650 *** is disabling shared libraries support. We urge you to upgrade GNU
8651 *** binutils to release 2.9.1 or newer. Another option is to modify
8652 *** your PATH or compiler configuration so that the native linker is
8653 *** used, and then restart.
8656 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8657 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8658 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8664 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
8665 case `$LD -v 2>&1` in
8666 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
8670 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8671 *** reliably create shared libraries on SCO systems. Therefore, libtool
8672 *** is disabling shared libraries support. We urge you to upgrade GNU
8673 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8674 *** your PATH or compiler configuration so that the native linker is
8675 *** used, and then restart.
8680 # For security reasons, it is highly recommended that you always
8681 # use absolute paths for naming shared libraries, and exclude the
8682 # DT_RUNPATH tag from executables and libraries. But doing so
8683 # requires that you compile everything twice, which is a pain.
8684 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8685 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8686 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8687 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8696 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8699 hardcode_shlibpath_var
=no
8703 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8704 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8705 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8712 if test "$ld_shlibs" = no
; then
8714 hardcode_libdir_flag_spec
=
8715 export_dynamic_flag_spec
=
8716 whole_archive_flag_spec
=
8719 # PORTME fill in a description of your system's linker (not GNU ld)
8722 allow_undefined_flag
=unsupported
8723 always_export_symbols
=yes
8724 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'
8725 # Note: this linker hardcodes the directories in LIBPATH if there
8726 # are no directories specified by -L.
8727 hardcode_minus_L
=yes
8728 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8729 # Neither direct hardcoding nor static linking is supported with a
8731 hardcode_direct
=unsupported
8736 if test "$host_cpu" = ia64
; then
8737 # On IA64, the linker does run time linking by default, so we don't
8738 # have to do anything special.
8739 aix_use_runtimelinking
=no
8740 exp_sym_flag
='-Bexport'
8743 # If we're using GNU nm, then we don't want the "-C" option.
8744 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8745 # Also, AIX nm treats weak defined symbols like other global
8746 # defined symbols, whereas GNU nm marks them as "W".
8747 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
8748 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'
8750 export_symbols_cmds
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8752 aix_use_runtimelinking
=no
8754 # Test if we are trying to use run time linking or normal
8755 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8756 # need to do runtime linking.
8757 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
8758 for ld_flag
in $LDFLAGS; do
8759 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
8760 aix_use_runtimelinking
=yes
8767 exp_sym_flag
='-bexport'
8768 no_entry_flag
='-bnoentry'
8771 # When large executables or shared objects are built, AIX ld can
8772 # have problems creating the table of contents. If linking a library
8773 # or program results in "error TOC overflow" add -mminimal-toc to
8774 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8775 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8779 hardcode_direct_absolute
=yes
8780 hardcode_libdir_separator
=':'
8781 link_all_deplibs
=yes
8782 file_list_spec
='${wl}-f,'
8784 if test "$GCC" = yes; then
8785 case $host_os in aix4.
[012]|aix4.
[012].
*)
8786 # We only want to do this on AIX 4.2 and lower, the check
8787 # below for broken collect2 doesn't work under 4.3+
8788 collect2name
=`${CC} -print-prog-name=collect2`
8789 if test -f "$collect2name" &&
8790 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
8792 # We have reworked collect2
8795 # We have old collect2
8796 hardcode_direct
=unsupported
8797 # It fails to find uninstalled libraries when the uninstalled
8798 # path is not listed in the libpath. Setting hardcode_minus_L
8799 # to unsupported forces relinking
8800 hardcode_minus_L
=yes
8801 hardcode_libdir_flag_spec
='-L$libdir'
8802 hardcode_libdir_separator
=
8806 shared_flag
='-shared'
8807 if test "$aix_use_runtimelinking" = yes; then
8808 shared_flag
="$shared_flag "'${wl}-G'
8812 if test "$host_cpu" = ia64
; then
8813 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8814 # chokes on -Wl,-G. The following line is correct:
8817 if test "$aix_use_runtimelinking" = yes; then
8818 shared_flag
='${wl}-G'
8820 shared_flag
='${wl}-bM:SRE'
8825 export_dynamic_flag_spec
='${wl}-bexpall'
8826 # It seems that -bexpall does not export symbols beginning with
8827 # underscore (_), so it is better to generate a list of symbols to export.
8828 always_export_symbols
=yes
8829 if test "$aix_use_runtimelinking" = yes; then
8830 # Warning - without using the other runtime loading flags (-brtl),
8831 # -berok will link without error, but may produce a broken library.
8832 allow_undefined_flag
='-berok'
8833 # Determine the default libpath from the value encoded in an
8835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8836 /* end confdefs.h. */
8846 if ac_fn_c_try_link
"$LINENO"; then :
8848 lt_aix_libpath_sed
='
8849 /Import File Strings/,/^$/ {
8855 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8856 # Check for a 64-bit object if we didn't find anything.
8857 if test -z "$aix_libpath"; then
8858 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8861 rm -f core conftest.err conftest.
$ac_objext \
8862 conftest
$ac_exeext conftest.
$ac_ext
8863 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
8865 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
8866 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"
8868 if test "$host_cpu" = ia64
; then
8869 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
8870 allow_undefined_flag
="-z nodefs"
8871 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"
8873 # Determine the default libpath from the value encoded in an
8875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8876 /* end confdefs.h. */
8886 if ac_fn_c_try_link
"$LINENO"; then :
8888 lt_aix_libpath_sed
='
8889 /Import File Strings/,/^$/ {
8895 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8896 # Check for a 64-bit object if we didn't find anything.
8897 if test -z "$aix_libpath"; then
8898 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8901 rm -f core conftest.err conftest.
$ac_objext \
8902 conftest
$ac_exeext conftest.
$ac_ext
8903 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
8905 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
8906 # Warning - without using the other run time loading flags,
8907 # -berok will link without error, but may produce a broken library.
8908 no_undefined_flag
=' ${wl}-bernotok'
8909 allow_undefined_flag
=' ${wl}-berok'
8910 if test "$with_gnu_ld" = yes; then
8911 # We only use this code for GNU lds that support --whole-archive.
8912 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8914 # Exported symbols can be pulled into shared objects from archives
8915 whole_archive_flag_spec
='$convenience'
8917 archive_cmds_need_lc
=yes
8918 # This is similar to how AIX traditionally builds its shared libraries.
8919 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'
8927 # see comment about AmigaOS4 .so support
8928 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8929 archive_expsym_cmds
=''
8932 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)'
8933 hardcode_libdir_flag_spec
='-L$libdir'
8934 hardcode_minus_L
=yes
8940 export_dynamic_flag_spec
=-rdynamic
8943 cygwin
* | mingw
* | pw32
* | cegcc
*)
8944 # When not using gcc, we currently assume that we are using
8945 # Microsoft Visual C++.
8946 # hardcode_libdir_flag_spec is actually meaningless, as there is
8947 # no search path for DLLs.
8948 hardcode_libdir_flag_spec
=' '
8949 allow_undefined_flag
=unsupported
8950 # Tell ltmain to make .lib files, not .a files.
8952 # Tell ltmain to make .dll files, not .so files.
8954 # FIXME: Setting linknames here is a bad hack.
8955 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8956 # The linker will automatically build a .lib file if we build a DLL.
8957 old_archive_from_new_cmds
='true'
8958 # FIXME: Should let the user specify the lib program.
8959 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
8960 fix_srcfile_path
='`cygpath -w "$srcfile"`'
8961 enable_shared_with_static_runtimes
=yes
8964 darwin
* | rhapsody
*)
8967 archive_cmds_need_lc
=no
8969 hardcode_automatic
=yes
8970 hardcode_shlibpath_var
=unsupported
8971 if test "$lt_cv_ld_force_load" = "yes"; then
8972 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\"`'
8974 whole_archive_flag_spec
=''
8976 link_all_deplibs
=yes
8977 allow_undefined_flag
="$_lt_dar_allow_undefined"
8978 case $cc_basename in
8979 ifort
*) _lt_dar_can_shared
=yes ;;
8980 *) _lt_dar_can_shared
=$GCC ;;
8982 if test "$_lt_dar_can_shared" = "yes"; then
8983 output_verbose_link_cmd
=func_echo_all
8984 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8985 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8986 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}"
8987 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}"
8996 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8997 hardcode_libdir_flag_spec
='-L$libdir'
8998 hardcode_shlibpath_var
=no
9001 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9002 # support. Future versions do this automatically, but an explicit c++rt0.o
9003 # does not break anything, and helps significantly (at the cost of a little
9006 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9007 hardcode_libdir_flag_spec
='-R$libdir'
9009 hardcode_shlibpath_var
=no
9012 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9014 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9016 hardcode_minus_L
=yes
9017 hardcode_shlibpath_var
=no
9020 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9021 freebsd
* | dragonfly
*)
9022 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9023 hardcode_libdir_flag_spec
='-R$libdir'
9025 hardcode_shlibpath_var
=no
9029 if test "$GCC" = yes; then
9030 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'
9032 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'
9034 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9035 hardcode_libdir_separator
=:
9038 # hardcode_minus_L: Not really in the search PATH,
9039 # but as the default location of the library.
9040 hardcode_minus_L
=yes
9041 export_dynamic_flag_spec
='${wl}-E'
9045 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9046 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9048 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9050 if test "$with_gnu_ld" = no
; then
9051 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9052 hardcode_libdir_flag_spec_ld
='+b $libdir'
9053 hardcode_libdir_separator
=:
9055 hardcode_direct_absolute
=yes
9056 export_dynamic_flag_spec
='${wl}-E'
9057 # hardcode_minus_L: Not really in the search PATH,
9058 # but as the default location of the library.
9059 hardcode_minus_L
=yes
9064 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9067 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9070 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9073 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9079 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9082 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9086 # Older versions of the 11.00 compiler do not understand -b yet
9087 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9089 $as_echo_n "checking if $CC understands -b... " >&6; }
9090 if ${lt_cv_prog_compiler__b+:} false
; then :
9091 $as_echo_n "(cached) " >&6
9093 lt_cv_prog_compiler__b
=no
9094 save_LDFLAGS
="$LDFLAGS"
9095 LDFLAGS
="$LDFLAGS -b"
9096 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9097 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9098 # The linker can only warn and ignore the option if not recognized
9099 # So say no if there are warnings
9100 if test -s conftest.err
; then
9101 # Append any errors to the config.log.
9102 cat conftest.err
1>&5
9103 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9104 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9105 if diff conftest.exp conftest.er2
>/dev
/null
; then
9106 lt_cv_prog_compiler__b
=yes
9109 lt_cv_prog_compiler__b
=yes
9113 LDFLAGS
="$save_LDFLAGS"
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9117 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9119 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9120 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9122 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9128 if test "$with_gnu_ld" = no
; then
9129 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9130 hardcode_libdir_separator
=:
9135 hardcode_shlibpath_var
=no
9139 hardcode_direct_absolute
=yes
9140 export_dynamic_flag_spec
='${wl}-E'
9142 # hardcode_minus_L: Not really in the search PATH,
9143 # but as the default location of the library.
9144 hardcode_minus_L
=yes
9150 irix5
* | irix6
* | nonstopux
*)
9151 if test "$GCC" = yes; then
9152 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'
9153 # Try to use the -exported_symbol ld option, if it does not
9154 # work, assume that -exports_file does not work either and
9155 # implicitly export all symbols.
9156 save_LDFLAGS
="$LDFLAGS"
9157 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9159 /* end confdefs.h. */
9162 if ac_fn_c_try_link
"$LINENO"; then :
9163 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'
9166 rm -f core conftest.err conftest.
$ac_objext \
9167 conftest
$ac_exeext conftest.
$ac_ext
9168 LDFLAGS
="$save_LDFLAGS"
9170 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'
9171 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'
9173 archive_cmds_need_lc
='no'
9174 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9175 hardcode_libdir_separator
=:
9177 link_all_deplibs
=yes
9181 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9182 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9184 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9186 hardcode_libdir_flag_spec
='-R$libdir'
9188 hardcode_shlibpath_var
=no
9192 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9194 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9195 hardcode_libdir_separator
=:
9196 hardcode_shlibpath_var
=no
9203 if test -f /usr
/libexec
/ld.so
; then
9205 hardcode_shlibpath_var
=no
9206 hardcode_direct_absolute
=yes
9207 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9208 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9209 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9210 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9211 export_dynamic_flag_spec
='${wl}-E'
9214 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9215 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9216 hardcode_libdir_flag_spec
='-R$libdir'
9219 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9220 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9230 hardcode_libdir_flag_spec
='-L$libdir'
9231 hardcode_minus_L
=yes
9232 allow_undefined_flag
=unsupported
9233 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'
9234 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9238 if test "$GCC" = yes; then
9239 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9240 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'
9242 allow_undefined_flag
=' -expect_unresolved \*'
9243 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'
9245 archive_cmds_need_lc
='no'
9246 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9247 hardcode_libdir_separator
=:
9250 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9251 if test "$GCC" = yes; then
9252 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9253 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'
9254 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9256 allow_undefined_flag
=' -expect_unresolved \*'
9257 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'
9258 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~
9259 $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'
9261 # Both c and cxx compiler support -rpath directly
9262 hardcode_libdir_flag_spec
='-rpath $libdir'
9264 archive_cmds_need_lc
='no'
9265 hardcode_libdir_separator
=:
9269 no_undefined_flag
=' -z defs'
9270 if test "$GCC" = yes; then
9272 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9273 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9274 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9276 case `$CC -V 2>&1` in
9279 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9280 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9281 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9285 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9286 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9287 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9291 hardcode_libdir_flag_spec
='-R$libdir'
9292 hardcode_shlibpath_var
=no
9294 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
9296 # The compiler driver will combine and reorder linker options,
9297 # but understands `-z linker_flag'. GCC discards it without `$wl',
9298 # but is careful enough not to reorder.
9299 # Supported since Solaris 2.6 (maybe 2.5.1?)
9300 if test "$GCC" = yes; then
9301 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9303 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9307 link_all_deplibs
=yes
9311 if test "x$host_vendor" = xsequent
; then
9312 # Use $CC to link under sequent, because it throws in some extra .o
9313 # files that make .init and .fini sections work.
9314 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9316 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9318 hardcode_libdir_flag_spec
='-L$libdir'
9320 hardcode_minus_L
=yes
9321 hardcode_shlibpath_var
=no
9325 case $host_vendor in
9327 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9328 hardcode_direct
=yes # is this really true???
9331 ## LD is ld it makes a PLAMLIB
9332 ## CC just makes a GrossModule.
9333 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9334 reload_cmds
='$CC -r -o $output$reload_objs'
9338 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9339 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9342 runpath_var
='LD_RUN_PATH'
9343 hardcode_shlibpath_var
=no
9347 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9348 hardcode_shlibpath_var
=no
9349 export_dynamic_flag_spec
='-Bexport'
9353 if test -d /usr
/nec
; then
9354 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9355 hardcode_shlibpath_var
=no
9356 runpath_var
=LD_RUN_PATH
9357 hardcode_runpath_var
=yes
9362 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9363 no_undefined_flag
='${wl}-z,text'
9364 archive_cmds_need_lc
=no
9365 hardcode_shlibpath_var
=no
9366 runpath_var
='LD_RUN_PATH'
9368 if test "$GCC" = yes; then
9369 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9370 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9372 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9373 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9377 sysv5
* | sco3.2v5
* | sco5v6
*)
9378 # Note: We can NOT use -z defs as we might desire, because we do not
9379 # link with -lc, and that would cause any symbols used from libc to
9380 # always be unresolved, which means just about no library would
9381 # ever link correctly. If we're not using GNU ld we use -z text
9382 # though, which does catch some bad symbols but isn't as heavy-handed
9384 no_undefined_flag
='${wl}-z,text'
9385 allow_undefined_flag
='${wl}-z,nodefs'
9386 archive_cmds_need_lc
=no
9387 hardcode_shlibpath_var
=no
9388 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
9389 hardcode_libdir_separator
=':'
9390 link_all_deplibs
=yes
9391 export_dynamic_flag_spec
='${wl}-Bexport'
9392 runpath_var
='LD_RUN_PATH'
9394 if test "$GCC" = yes; then
9395 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9396 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9398 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9399 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9404 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9405 hardcode_libdir_flag_spec
='-L$libdir'
9406 hardcode_shlibpath_var
=no
9414 if test x
$host_vendor = xsni
; then
9416 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
9417 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9424 $as_echo "$ld_shlibs" >&6; }
9425 test "$ld_shlibs" = no
&& can_build_shared
=no
9427 with_gnu_ld
=$with_gnu_ld
9444 # Do we need to explicitly link libc?
9446 case "x$archive_cmds_need_lc" in
9448 # Assume -lc should be added
9449 archive_cmds_need_lc
=yes
9451 if test "$enable_shared" = yes && test "$GCC" = yes; then
9452 case $archive_cmds in
9454 # FIXME: we may have to deal with multi-command sequences.
9457 # Test whether the compiler implicitly links with -lc since on some
9458 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9459 # to ld, don't add -lc before -lgcc.
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9461 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9462 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
9463 $as_echo_n "(cached) " >&6
9466 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9468 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9469 (eval $ac_compile) 2>&5
9471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9472 test $ac_status = 0; } 2>conftest.err
; then
9475 libobjs
=conftest.
$ac_objext
9477 wl
=$lt_prog_compiler_wl
9478 pic_flag
=$lt_prog_compiler_pic
9484 lt_save_allow_undefined_flag
=$allow_undefined_flag
9485 allow_undefined_flag
=
9486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9487 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
9489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9490 test $ac_status = 0; }
9492 lt_cv_archive_cmds_need_lc
=no
9494 lt_cv_archive_cmds_need_lc
=yes
9496 allow_undefined_flag
=$lt_save_allow_undefined_flag
9498 cat conftest.err
1>&5
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9504 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9505 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9669 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9671 if test "$GCC" = yes; then
9673 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
9674 *) lt_awk_arg
="/^libraries:/" ;;
9677 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
9678 *) lt_sed_strip_eq
="s,=/,/,g" ;;
9680 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9681 case $lt_search_path_spec in
9683 # if the path contains ";" then we assume it to be the separator
9684 # otherwise default to the standard path separator (i.e. ":") - it is
9685 # assumed that no part of a normal pathname contains ";" but that should
9686 # okay in the real world where ";" in dirpaths is itself problematic.
9687 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9690 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9693 # Ok, now we have the path, separated by spaces, we can step through it
9694 # and add multilib dir if necessary.
9695 lt_tmp_lt_search_path_spec
=
9696 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9697 for lt_sys_path
in $lt_search_path_spec; do
9698 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9699 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9701 test -d "$lt_sys_path" && \
9702 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
9705 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9706 BEGIN {RS=" "; FS="/|\n";} {
9709 for (lt_i = NF; lt_i > 0; lt_i--) {
9710 if ($lt_i != "" && $lt_i != ".") {
9711 if ($lt_i == "..") {
9714 if (lt_count == 0) {
9715 lt_foo="/" $lt_i lt_foo;
9722 if (lt_foo != "") { lt_freq[lt_foo]++; }
9723 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9725 # AWK program above erroneously prepends '/' to C:/dos/paths
9728 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
9729 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9731 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9733 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
9736 libname_spec
='lib$name'
9744 shlibpath_overrides_runpath
=unknown
9746 dynamic_linker
="$host_os ld.so"
9747 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
9748 need_lib_prefix
=unknown
9749 hardcode_into_libs
=no
9751 # when you set need_version to no, make sure it does not cause -set_version
9752 # flags to be left without arguments
9753 need_version
=unknown
9758 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
9759 shlibpath_var
=LIBPATH
9761 # AIX 3 has no versioning support, so we append a major version to the name.
9762 soname_spec
='${libname}${release}${shared_ext}$major'
9769 hardcode_into_libs
=yes
9770 if test "$host_cpu" = ia64
; then
9771 # AIX 5 supports IA64
9772 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9773 shlibpath_var
=LD_LIBRARY_PATH
9775 # With GCC up to 2.95.x, collect2 would create an import file
9776 # for dependence libraries. The import file would start with
9777 # the line `#! .'. This would cause the generated library to
9778 # depend on `.', always an invalid library. This was fixed in
9779 # development snapshots of GCC prior to 3.0.
9781 aix4 | aix4.
[01] | aix4.
[01].
*)
9782 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9784 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
9791 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9792 # soname into executable. Probably we can add versioning support to
9793 # collect2, so additional links can be useful in future.
9794 if test "$aix_use_runtimelinking" = yes; then
9795 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9796 # instead of lib<name>.a to let people know that these are not
9797 # typical AIX shared libraries.
9798 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9800 # We preserve .a as extension for shared libraries through AIX4.2
9801 # and later when we are not doing run time linking.
9802 library_names_spec
='${libname}${release}.a $libname.a'
9803 soname_spec
='${libname}${release}${shared_ext}$major'
9805 shlibpath_var
=LIBPATH
9812 # Since July 2007 AmigaOS4 officially supports .so libraries.
9813 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9814 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9817 library_names_spec
='$libname.ixlibrary $libname.a'
9818 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9819 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'
9825 library_names_spec
='${libname}${shared_ext}'
9826 dynamic_linker
="$host_os ld.so"
9827 shlibpath_var
=LIBRARY_PATH
9833 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9834 soname_spec
='${libname}${release}${shared_ext}$major'
9835 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
9836 shlibpath_var
=LD_LIBRARY_PATH
9837 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9838 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
9839 # the default ld.so.conf also contains /usr/contrib/lib and
9840 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9841 # libtool to hard-code these into programs
9844 cygwin
* | mingw
* | pw32
* | cegcc
*)
9845 version_type
=windows
9850 case $GCC,$host_os in
9851 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
9852 library_names_spec
='$libname.dll.a'
9853 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9854 postinstall_cmds
='base_file=`basename \${file}`~
9855 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9856 dldir=$destdir/`dirname \$dlpath`~
9857 test -d \$dldir || mkdir -p \$dldir~
9858 $install_prog $dir/$dlname \$dldir/$dlname~
9859 chmod a+x \$dldir/$dlname~
9860 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9861 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9863 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9864 dlpath=$dir/\$dldll~
9866 shlibpath_overrides_runpath
=yes
9870 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9871 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9873 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
9876 # MinGW DLLs use traditional 'lib' prefix
9877 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9880 # pw32 DLLs use 'pw' prefix rather than 'lib'
9881 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9887 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9890 dynamic_linker
='Win32 ld.exe'
9891 # FIXME: first we should search . and the directory the executable is in
9895 darwin
* | rhapsody
*)
9896 dynamic_linker
="$host_os dyld"
9900 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9901 soname_spec
='${libname}${release}${major}$shared_ext'
9902 shlibpath_overrides_runpath
=yes
9903 shlibpath_var
=DYLD_LIBRARY_PATH
9904 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
9906 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
9907 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
9914 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9915 soname_spec
='${libname}${release}${shared_ext}$major'
9916 shlibpath_var
=LD_LIBRARY_PATH
9919 freebsd
* | dragonfly
*)
9920 # DragonFly does not have aout. When/if they implement a new
9921 # versioning mechanism, adjust this.
9922 if test -x /usr
/bin
/objformat
; then
9923 objformat
=`/usr/bin/objformat`
9926 freebsd
[23].
*) objformat
=aout
;;
9930 version_type
=freebsd-
$objformat
9931 case $version_type in
9933 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9938 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9942 shlibpath_var
=LD_LIBRARY_PATH
9945 shlibpath_overrides_runpath
=yes
9947 freebsd3.
[01]* | freebsdelf3.
[01]*)
9948 shlibpath_overrides_runpath
=yes
9949 hardcode_into_libs
=yes
9951 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
9952 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
9953 shlibpath_overrides_runpath
=no
9954 hardcode_into_libs
=yes
9956 *) # from 4.6 on, and DragonFly
9957 shlibpath_overrides_runpath
=yes
9958 hardcode_into_libs
=yes
9967 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9968 soname_spec
='${libname}${release}${shared_ext}$major'
9969 shlibpath_var
=LD_LIBRARY_PATH
9970 hardcode_into_libs
=yes
9977 dynamic_linker
="$host_os runtime_loader"
9978 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9979 soname_spec
='${libname}${release}${shared_ext}$major'
9980 shlibpath_var
=LIBRARY_PATH
9981 shlibpath_overrides_runpath
=yes
9982 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9983 hardcode_into_libs
=yes
9986 hpux9
* | hpux10
* | hpux11
*)
9987 # Give a soname corresponding to the major version so that dld.sl refuses to
9988 # link against other versions.
9995 hardcode_into_libs
=yes
9996 dynamic_linker
="$host_os dld.so"
9997 shlibpath_var
=LD_LIBRARY_PATH
9998 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
9999 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10000 soname_spec
='${libname}${release}${shared_ext}$major'
10001 if test "X$HPUX_IA64_MODE" = X32
; then
10002 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10004 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10006 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10010 hardcode_into_libs
=yes
10011 dynamic_linker
="$host_os dld.sl"
10012 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10013 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10014 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10015 soname_spec
='${libname}${release}${shared_ext}$major'
10016 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10017 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10021 dynamic_linker
="$host_os dld.sl"
10022 shlibpath_var
=SHLIB_PATH
10023 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10024 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10025 soname_spec
='${libname}${release}${shared_ext}$major'
10028 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10029 postinstall_cmds
='chmod 555 $lib'
10030 # or fails outright, so override atomically:
10031 install_override_mode
=555
10038 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10039 soname_spec
='${libname}${release}${shared_ext}$major'
10040 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10041 shlibpath_var
=LD_LIBRARY_PATH
10042 shlibpath_overrides_runpath
=no
10043 hardcode_into_libs
=yes
10046 irix5
* | irix6
* | nonstopux
*)
10048 nonstopux
*) version_type
=nonstopux
;;
10050 if test "$lt_cv_prog_gnu_ld" = yes; then
10058 soname_spec
='${libname}${release}${shared_ext}$major'
10059 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10061 irix5
* | nonstopux
*)
10062 libsuff
= shlibsuff
=
10065 case $LD in # libtool.m4 will add one of these switches to LD
10066 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10067 libsuff
= shlibsuff
= libmagic
=32-bit;;
10068 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10069 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10070 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10071 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10072 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10076 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10077 shlibpath_overrides_runpath
=no
10078 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10079 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10080 hardcode_into_libs
=yes
10083 # No shared lib support for Linux oldld, aout, or coff.
10084 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10088 # This must be Linux ELF.
10089 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
10093 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10094 soname_spec
='${libname}${release}${shared_ext}$major'
10095 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10096 shlibpath_var
=LD_LIBRARY_PATH
10097 shlibpath_overrides_runpath
=no
10099 # Some binutils ld are patched to set DT_RUNPATH
10100 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
10101 $as_echo_n "(cached) " >&6
10103 lt_cv_shlibpath_overrides_runpath
=no
10104 save_LDFLAGS
=$LDFLAGS
10105 save_libdir
=$libdir
10106 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10107 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10109 /* end confdefs.h. */
10119 if ac_fn_c_try_link
"$LINENO"; then :
10120 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10121 lt_cv_shlibpath_overrides_runpath
=yes
10124 rm -f core conftest.err conftest.
$ac_objext \
10125 conftest
$ac_exeext conftest.
$ac_ext
10126 LDFLAGS
=$save_LDFLAGS
10127 libdir
=$save_libdir
10131 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10133 # This implies no fast_install, which is unacceptable.
10134 # Some rework will be needed to allow for fast_install
10135 # before this can be enabled.
10136 hardcode_into_libs
=yes
10138 # Append ld.so.conf contents to the search path
10139 if test -f /etc
/ld.so.conf
; then
10140 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' ' '`
10141 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10144 # We used to test for /lib/ld.so.1 and disable shared libraries on
10145 # powerpc, because MkLinux only supported shared libraries with the
10146 # GNU dynamic linker. Since this was broken with cross compilers,
10147 # most powerpc-linux boxes support dynamic linking these days and
10148 # people can always --disable-shared, the test was removed, and we
10149 # assume the GNU/Linux dynamic linker is in use.
10150 dynamic_linker
='GNU/Linux ld.so'
10157 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10158 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10159 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10160 dynamic_linker
='NetBSD (a.out) ld.so'
10162 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10163 soname_spec
='${libname}${release}${shared_ext}$major'
10164 dynamic_linker
='NetBSD ld.elf_so'
10166 shlibpath_var
=LD_LIBRARY_PATH
10167 shlibpath_overrides_runpath
=yes
10168 hardcode_into_libs
=yes
10173 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10174 shlibpath_var
=LD_LIBRARY_PATH
10175 shlibpath_overrides_runpath
=yes
10182 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10183 soname_spec
='${libname}${release}${shared_ext}$major'
10184 shlibpath_var
=LD_LIBRARY_PATH
10185 shlibpath_overrides_runpath
=no
10186 hardcode_into_libs
=yes
10187 dynamic_linker
='ldqnx.so'
10192 sys_lib_dlsearch_path_spec
="/usr/lib"
10194 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10196 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10197 *) need_version
=no
;;
10199 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10200 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10201 shlibpath_var
=LD_LIBRARY_PATH
10202 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10204 openbsd2.
[89] | openbsd2.
[89].
*)
10205 shlibpath_overrides_runpath
=no
10208 shlibpath_overrides_runpath
=yes
10212 shlibpath_overrides_runpath
=yes
10217 libname_spec
='$name'
10220 library_names_spec
='$libname${shared_ext} $libname.a'
10221 dynamic_linker
='OS/2 ld.exe'
10222 shlibpath_var
=LIBPATH
10225 osf3
* | osf4
* | osf5
*)
10229 soname_spec
='${libname}${release}${shared_ext}$major'
10230 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10231 shlibpath_var
=LD_LIBRARY_PATH
10232 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10233 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10244 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10245 soname_spec
='${libname}${release}${shared_ext}$major'
10246 shlibpath_var
=LD_LIBRARY_PATH
10247 shlibpath_overrides_runpath
=yes
10248 hardcode_into_libs
=yes
10249 # ldd complains unless libraries are executable
10250 postinstall_cmds
='chmod +x $lib'
10255 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10256 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10257 shlibpath_var
=LD_LIBRARY_PATH
10258 shlibpath_overrides_runpath
=yes
10259 if test "$with_gnu_ld" = yes; then
10267 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10268 soname_spec
='${libname}${release}${shared_ext}$major'
10269 shlibpath_var
=LD_LIBRARY_PATH
10270 case $host_vendor in
10272 shlibpath_overrides_runpath
=no
10274 runpath_var
=LD_RUN_PATH
10282 shlibpath_overrides_runpath
=no
10283 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10289 if test -d /usr
/nec
;then
10291 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10292 soname_spec
='$libname${shared_ext}.$major'
10293 shlibpath_var
=LD_LIBRARY_PATH
10297 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10298 version_type
=freebsd-elf
10301 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10302 soname_spec
='${libname}${release}${shared_ext}$major'
10303 shlibpath_var
=LD_LIBRARY_PATH
10304 shlibpath_overrides_runpath
=yes
10305 hardcode_into_libs
=yes
10306 if test "$with_gnu_ld" = yes; then
10307 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10309 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
10312 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
10316 sys_lib_dlsearch_path_spec
='/usr/lib'
10320 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10324 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10325 shlibpath_var
=LD_LIBRARY_PATH
10326 shlibpath_overrides_runpath
=no
10327 hardcode_into_libs
=yes
10332 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10333 soname_spec
='${libname}${release}${shared_ext}$major'
10334 shlibpath_var
=LD_LIBRARY_PATH
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10342 $as_echo "$dynamic_linker" >&6; }
10343 test "$dynamic_linker" = no
&& can_build_shared
=no
10345 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
10346 if test "$GCC" = yes; then
10347 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10350 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10351 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
10353 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10354 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10449 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10451 if test -n "$hardcode_libdir_flag_spec" ||
10452 test -n "$runpath_var" ||
10453 test "X$hardcode_automatic" = "Xyes" ; then
10455 # We can hardcode non-existent directories.
10456 if test "$hardcode_direct" != no
&&
10457 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10458 # have to relink, otherwise we might link with an installed library
10459 # when we should be linking with a yet-to-be-installed one
10460 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10461 test "$hardcode_minus_L" != no
; then
10462 # Linking always hardcodes the temporary library directory.
10463 hardcode_action
=relink
10465 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10466 hardcode_action
=immediate
10469 # We cannot hardcode anything, or else we can only hardcode existing
10471 hardcode_action
=unsupported
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10474 $as_echo "$hardcode_action" >&6; }
10476 if test "$hardcode_action" = relink ||
10477 test "$inherit_rpath" = yes; then
10478 # Fast installation is not supported
10479 enable_fast_install
=no
10480 elif test "$shlibpath_overrides_runpath" = yes ||
10481 test "$enable_shared" = no
; then
10482 # Fast installation is not necessary
10483 enable_fast_install
=needless
10491 if test "x$enable_dlopen" != xyes
; then
10492 enable_dlopen
=unknown
10493 enable_dlopen_self
=unknown
10494 enable_dlopen_self_static
=unknown
10501 lt_cv_dlopen
="load_add_on"
10503 lt_cv_dlopen_self
=yes
10506 mingw
* | pw32
* | cegcc
*)
10507 lt_cv_dlopen
="LoadLibrary"
10512 lt_cv_dlopen
="dlopen"
10517 # if libdl is installed we need to link against it
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10519 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10520 if ${ac_cv_lib_dl_dlopen+:} false
; then :
10521 $as_echo_n "(cached) " >&6
10523 ac_check_lib_save_LIBS
=$LIBS
10525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10526 /* end confdefs.h. */
10528 /* Override any GCC internal prototype to avoid an error.
10529 Use char because int might match the return type of a GCC
10530 builtin and then its argument prototype would still apply. */
10543 if ac_fn_c_try_link
"$LINENO"; then :
10544 ac_cv_lib_dl_dlopen
=yes
10546 ac_cv_lib_dl_dlopen
=no
10548 rm -f core conftest.err conftest.
$ac_objext \
10549 conftest
$ac_exeext conftest.
$ac_ext
10550 LIBS
=$ac_check_lib_save_LIBS
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10553 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10554 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
10555 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10558 lt_cv_dlopen
="dyld"
10560 lt_cv_dlopen_self
=yes
10567 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
10568 if test "x$ac_cv_func_shl_load" = xyes
; then :
10569 lt_cv_dlopen
="shl_load"
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10572 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10573 if ${ac_cv_lib_dld_shl_load+:} false
; then :
10574 $as_echo_n "(cached) " >&6
10576 ac_check_lib_save_LIBS
=$LIBS
10578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10579 /* end confdefs.h. */
10581 /* Override any GCC internal prototype to avoid an error.
10582 Use char because int might match the return type of a GCC
10583 builtin and then its argument prototype would still apply. */
10591 return shl_load ();
10596 if ac_fn_c_try_link
"$LINENO"; then :
10597 ac_cv_lib_dld_shl_load
=yes
10599 ac_cv_lib_dld_shl_load
=no
10601 rm -f core conftest.err conftest.
$ac_objext \
10602 conftest
$ac_exeext conftest.
$ac_ext
10603 LIBS
=$ac_check_lib_save_LIBS
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10606 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10607 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
10608 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
10610 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
10611 if test "x$ac_cv_func_dlopen" = xyes
; then :
10612 lt_cv_dlopen
="dlopen"
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10615 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10616 if ${ac_cv_lib_dl_dlopen+:} false
; then :
10617 $as_echo_n "(cached) " >&6
10619 ac_check_lib_save_LIBS
=$LIBS
10621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10622 /* end confdefs.h. */
10624 /* Override any GCC internal prototype to avoid an error.
10625 Use char because int might match the return type of a GCC
10626 builtin and then its argument prototype would still apply. */
10639 if ac_fn_c_try_link
"$LINENO"; then :
10640 ac_cv_lib_dl_dlopen
=yes
10642 ac_cv_lib_dl_dlopen
=no
10644 rm -f core conftest.err conftest.
$ac_objext \
10645 conftest
$ac_exeext conftest.
$ac_ext
10646 LIBS
=$ac_check_lib_save_LIBS
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10649 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10650 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
10651 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10654 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10655 if ${ac_cv_lib_svld_dlopen+:} false
; then :
10656 $as_echo_n "(cached) " >&6
10658 ac_check_lib_save_LIBS
=$LIBS
10659 LIBS
="-lsvld $LIBS"
10660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10661 /* end confdefs.h. */
10663 /* Override any GCC internal prototype to avoid an error.
10664 Use char because int might match the return type of a GCC
10665 builtin and then its argument prototype would still apply. */
10678 if ac_fn_c_try_link
"$LINENO"; then :
10679 ac_cv_lib_svld_dlopen
=yes
10681 ac_cv_lib_svld_dlopen
=no
10683 rm -f core conftest.err conftest.
$ac_objext \
10684 conftest
$ac_exeext conftest.
$ac_ext
10685 LIBS
=$ac_check_lib_save_LIBS
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10688 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10689 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
10690 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10693 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10694 if ${ac_cv_lib_dld_dld_link+:} false
; then :
10695 $as_echo_n "(cached) " >&6
10697 ac_check_lib_save_LIBS
=$LIBS
10699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10700 /* end confdefs.h. */
10702 /* Override any GCC internal prototype to avoid an error.
10703 Use char because int might match the return type of a GCC
10704 builtin and then its argument prototype would still apply. */
10712 return dld_link ();
10717 if ac_fn_c_try_link
"$LINENO"; then :
10718 ac_cv_lib_dld_dld_link
=yes
10720 ac_cv_lib_dld_dld_link
=no
10722 rm -f core conftest.err conftest.
$ac_objext \
10723 conftest
$ac_exeext conftest.
$ac_ext
10724 LIBS
=$ac_check_lib_save_LIBS
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10727 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10728 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
10729 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
10750 if test "x$lt_cv_dlopen" != xno
; then
10756 case $lt_cv_dlopen in
10758 save_CPPFLAGS
="$CPPFLAGS"
10759 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
10761 save_LDFLAGS
="$LDFLAGS"
10762 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
10765 LIBS
="$lt_cv_dlopen_libs $LIBS"
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10768 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10769 if ${lt_cv_dlopen_self+:} false
; then :
10770 $as_echo_n "(cached) " >&6
10772 if test "$cross_compiling" = yes; then :
10773 lt_cv_dlopen_self
=cross
10775 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
10776 lt_status
=$lt_dlunknown
10777 cat > conftest.
$ac_ext <<_LT_EOF
10778 #line 10778 "configure"
10779 #include "confdefs.h"
10788 # define LT_DLGLOBAL RTLD_GLOBAL
10791 # define LT_DLGLOBAL DL_GLOBAL
10793 # define LT_DLGLOBAL 0
10797 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10798 find out it does not work in some platform. */
10799 #ifndef LT_DLLAZY_OR_NOW
10801 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10804 # define LT_DLLAZY_OR_NOW DL_LAZY
10807 # define LT_DLLAZY_OR_NOW RTLD_NOW
10810 # define LT_DLLAZY_OR_NOW DL_NOW
10812 # define LT_DLLAZY_OR_NOW 0
10819 /* When -fvisbility=hidden is used, assume the code has been annotated
10820 correspondingly for the symbols needed. */
10821 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10822 void fnord () __attribute__((visibility("default")));
10825 void fnord () { int i=42; }
10828 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10829 int status = $lt_dlunknown;
10833 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10836 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10837 else puts (dlerror ());
10839 /* dlclose (self); */
10847 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10848 (eval $ac_link) 2>&5
10850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10851 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
10852 (.
/conftest
; exit; ) >&5 2>/dev
/null
10854 case x
$lt_status in
10855 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
10856 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
10857 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
10860 # compilation failed
10861 lt_cv_dlopen_self
=no
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10869 $as_echo "$lt_cv_dlopen_self" >&6; }
10871 if test "x$lt_cv_dlopen_self" = xyes
; then
10872 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10874 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10875 if ${lt_cv_dlopen_self_static+:} false
; then :
10876 $as_echo_n "(cached) " >&6
10878 if test "$cross_compiling" = yes; then :
10879 lt_cv_dlopen_self_static
=cross
10881 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
10882 lt_status
=$lt_dlunknown
10883 cat > conftest.
$ac_ext <<_LT_EOF
10884 #line 10884 "configure"
10885 #include "confdefs.h"
10894 # define LT_DLGLOBAL RTLD_GLOBAL
10897 # define LT_DLGLOBAL DL_GLOBAL
10899 # define LT_DLGLOBAL 0
10903 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10904 find out it does not work in some platform. */
10905 #ifndef LT_DLLAZY_OR_NOW
10907 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10910 # define LT_DLLAZY_OR_NOW DL_LAZY
10913 # define LT_DLLAZY_OR_NOW RTLD_NOW
10916 # define LT_DLLAZY_OR_NOW DL_NOW
10918 # define LT_DLLAZY_OR_NOW 0
10925 /* When -fvisbility=hidden is used, assume the code has been annotated
10926 correspondingly for the symbols needed. */
10927 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10928 void fnord () __attribute__((visibility("default")));
10931 void fnord () { int i=42; }
10934 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10935 int status = $lt_dlunknown;
10939 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10942 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10943 else puts (dlerror ());
10945 /* dlclose (self); */
10953 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10954 (eval $ac_link) 2>&5
10956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10957 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
10958 (.
/conftest
; exit; ) >&5 2>/dev
/null
10960 case x
$lt_status in
10961 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
10962 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
10963 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
10966 # compilation failed
10967 lt_cv_dlopen_self_static
=no
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10975 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10978 CPPFLAGS
="$save_CPPFLAGS"
10979 LDFLAGS
="$save_LDFLAGS"
10984 case $lt_cv_dlopen_self in
10985 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
10986 *) enable_dlopen_self
=unknown
;;
10989 case $lt_cv_dlopen_self_static in
10990 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
10991 *) enable_dlopen_self_static
=unknown
;;
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11014 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11015 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11016 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11017 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11019 $as_echo "yes" >&6; }
11021 # FIXME - insert some real tests, host_os isn't really good enough
11024 if test -n "$STRIP" ; then
11025 striplib
="$STRIP -x"
11026 old_striplib
="$STRIP -S"
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11028 $as_echo "yes" >&6; }
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11031 $as_echo "no" >&6; }
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11036 $as_echo "no" >&6; }
11052 # Report which library types will actually be built
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11054 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11056 $as_echo "$can_build_shared" >&6; }
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11059 $as_echo_n "checking whether to build shared libraries... " >&6; }
11060 test "$can_build_shared" = "no" && enable_shared
=no
11062 # On AIX, shared libraries and static libraries use the same namespace, and
11063 # are all built from PIC.
11066 test "$enable_shared" = yes && enable_static
=no
11067 if test -n "$RANLIB"; then
11068 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11069 postinstall_cmds
='$RANLIB $lib'
11074 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11075 test "$enable_shared" = yes && enable_static
=no
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11080 $as_echo "$enable_shared" >&6; }
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11083 $as_echo_n "checking whether to build static libraries... " >&6; }
11084 # Make sure either enable_shared or enable_static is yes.
11085 test "$enable_shared" = yes || enable_static
=yes
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11087 $as_echo "$enable_static" >&6; }
11094 ac_cpp
='$CPP $CPPFLAGS'
11095 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11096 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11097 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11113 ac_config_commands
="$ac_config_commands libtool"
11118 # Only expand once:
11123 ac_cpp
='$CXXCPP $CPPFLAGS'
11124 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11125 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11126 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
11127 if test -z "$CXX"; then
11128 if test -n "$CCC"; then
11131 if test -n "$ac_tool_prefix"; then
11132 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
11134 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11135 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11137 $as_echo_n "checking for $ac_word... " >&6; }
11138 if ${ac_cv_prog_CXX+:} false
; then :
11139 $as_echo_n "(cached) " >&6
11141 if test -n "$CXX"; then
11142 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
11144 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11145 for as_dir
in $PATH
11148 test -z "$as_dir" && as_dir
=.
11149 for ac_exec_ext
in '' $ac_executable_extensions; do
11150 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11151 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
11152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11161 CXX
=$ac_cv_prog_CXX
11162 if test -n "$CXX"; then
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11164 $as_echo "$CXX" >&6; }
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11167 $as_echo "no" >&6; }
11171 test -n "$CXX" && break
11174 if test -z "$CXX"; then
11176 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
11178 # Extract the first word of "$ac_prog", so it can be a program name with args.
11179 set dummy
$ac_prog; ac_word
=$2
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11181 $as_echo_n "checking for $ac_word... " >&6; }
11182 if ${ac_cv_prog_ac_ct_CXX+:} false
; then :
11183 $as_echo_n "(cached) " >&6
11185 if test -n "$ac_ct_CXX"; then
11186 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
11188 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11189 for as_dir
in $PATH
11192 test -z "$as_dir" && as_dir
=.
11193 for ac_exec_ext
in '' $ac_executable_extensions; do
11194 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11195 ac_cv_prog_ac_ct_CXX
="$ac_prog"
11196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11205 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
11206 if test -n "$ac_ct_CXX"; then
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11208 $as_echo "$ac_ct_CXX" >&6; }
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11211 $as_echo "no" >&6; }
11215 test -n "$ac_ct_CXX" && break
11218 if test "x$ac_ct_CXX" = x
; then
11221 case $cross_compiling:$ac_tool_warned in
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11225 ac_tool_warned
=yes ;;
11233 # Provide some information about the compiler.
11234 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11237 for ac_option
in --version -v -V -qversion; do
11238 { { ac_try
="$ac_compiler $ac_option >&5"
11239 case "(($ac_try" in
11240 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11241 *) ac_try_echo=$ac_try;;
11243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11244 $as_echo "$ac_try_echo"; } >&5
11245 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11247 if test -s conftest.err; then
11249 ... rest of stderr output deleted ...
11250 10q' conftest.err >conftest.er1
11251 cat conftest.er1 >&5
11253 rm -f conftest.er1 conftest.err
11254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11255 test $ac_status = 0; }
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11259 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11260 if ${ac_cv_cxx_compiler_gnu+:} false; then :
11261 $as_echo_n "(cached) " >&6
11263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11264 /* end confdefs.h. */
11277 if ac_fn_cxx_try_compile "$LINENO"; then :
11278 ac_compiler_gnu=yes
11282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11283 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11287 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11288 if test $ac_compiler_gnu = yes; then
11293 ac_test_CXXFLAGS=${CXXFLAGS+set}
11294 ac_save_CXXFLAGS=$CXXFLAGS
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11296 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11297 if ${ac_cv_prog_cxx_g+:} false; then :
11298 $as_echo_n "(cached) " >&6
11300 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11301 ac_cxx_werror_flag=yes
11302 ac_cv_prog_cxx_g=no
11304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11305 /* end confdefs.h. */
11315 if ac_fn_cxx_try_compile "$LINENO"; then :
11316 ac_cv_prog_cxx_g=yes
11319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11320 /* end confdefs.h. */
11330 if ac_fn_cxx_try_compile "$LINENO"; then :
11333 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11336 /* end confdefs.h. */
11346 if ac_fn_cxx_try_compile "$LINENO"; then :
11347 ac_cv_prog_cxx_g=yes
11349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11354 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11357 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11358 if test "$ac_test_CXXFLAGS" = set; then
11359 CXXFLAGS=$ac_save_CXXFLAGS
11360 elif test $ac_cv_prog_cxx_g = yes; then
11361 if test "$GXX" = yes; then
11367 if test "$GXX" = yes; then
11374 ac_cpp='$CPP $CPPFLAGS'
11375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11379 depcc="$CXX" am_compiler_list=
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11382 $as_echo_n "checking dependency style of $depcc... " >&6; }
11383 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
11384 $as_echo_n "(cached) " >&6
11386 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11387 # We make a subdir and do the tests there. Otherwise we can end up
11388 # making bogus files that we don't know about and never remove. For
11389 # instance it was reported that on HP-UX the gcc test will end up
11390 # making a dummy file named 'D' -- because '-MD' means "put the output
11392 rm -rf conftest.dir
11394 # Copy depcomp to subdir because otherwise we won't find it if we're
11395 # using a relative directory.
11396 cp "$am_depcomp" conftest.dir
11398 # We will build objects and dependencies in a subdirectory because
11399 # it helps to detect inapplicable dependency modes. For instance
11400 # both Tru64's cc and ICC support -MD to output dependencies as a
11401 # side effect of compilation, but ICC will put the dependencies in
11402 # the current directory while Tru64 will put them in the object
11406 am_cv_CXX_dependencies_compiler_type=none
11407 if test "$am_compiler_list" = ""; then
11408 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
11410 am__universal=false
11411 case " $depcc " in #(
11412 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11415 for depmode in $am_compiler_list; do
11416 # Setup a source with many dependencies, because some compilers
11417 # like to wrap large dependency lists on column 80 (with \), and
11418 # we should not choose a depcomp mode which is confused by this.
11420 # We need to recreate these files for each test, as the compiler may
11421 # overwrite some of them when testing with obscure command lines.
11422 # This happens at least with the AIX C compiler.
11424 for i in 1 2 3 4 5 6; do
11425 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11426 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
11427 # Solaris 10 /bin/sh.
11428 echo '/* dummy */' > sub/conftst$i.h
11430 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11432 # We check with '-c' and '-o' for the sake of the "dashmstdout"
11433 # mode. It turns out that the SunPro C++ compiler does not properly
11434 # handle '-M -o', and we need to detect this. Also, some Intel
11435 # versions had trouble with output in subdirs.
11436 am__obj=sub/conftest.${OBJEXT-o}
11437 am__minus_obj="-o $am__obj"
11440 # This depmode causes a compiler race in universal mode.
11441 test "$am__universal" = false || continue
11444 # After this tag, mechanisms are not by side-effect, so they'll
11445 # only be used when explicitly requested.
11446 if test "x$enable_dependency_tracking" = xyes; then
11452 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11453 # This compiler won't grok '-c -o', but also, the minuso test has
11454 # not run yet. These depmodes are late enough in the game, and
11455 # so weak that their functioning should not be impacted.
11456 am__obj=conftest.${OBJEXT-o}
11461 if depmode=$depmode \
11462 source=sub/conftest.c object=$am__obj \
11463 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11464 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11465 >/dev/null 2>conftest.err &&
11466 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11467 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11468 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11469 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11470 # icc doesn't choke on unknown options, it will just issue warnings
11471 # or remarks (even with -Werror). So we grep stderr for any message
11472 # that says an option was ignored or not supported.
11473 # When given -MP, icc 7.0 and 7.1 complain thusly:
11474 # icc: Command line warning: ignoring option '-M'; no argument required
11475 # The diagnosis changed in icc 8.0:
11476 # icc: Command line remark: option '-MP' not supported
11477 if (grep 'ignoring option' conftest.err ||
11478 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11479 am_cv_CXX_dependencies_compiler_type=$depmode
11486 rm -rf conftest.dir
11488 am_cv_CXX_dependencies_compiler_type=none
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11493 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11494 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11497 test "x$enable_dependency_tracking" != xno \
11498 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11499 am__fastdepCXX_TRUE=
11500 am__fastdepCXX_FALSE='#'
11502 am__fastdepCXX_TRUE='#'
11503 am__fastdepCXX_FALSE=
11507 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11508 ( (test "X$CXX" = "Xg++" && `g
++ -v >/dev
/null
2>&1` ) ||
11509 (test "X$CXX" != "Xg++"))) ; then
11511 ac_cpp='$CXXCPP $CPPFLAGS'
11512 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11513 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11514 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11516 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11517 if test -z "$CXXCPP"; then
11518 if ${ac_cv_prog_CXXCPP+:} false; then :
11519 $as_echo_n "(cached) " >&6
11521 # Double quotes because CXXCPP needs to be expanded
11522 for CXXCPP in "$CXX -E" "/lib/cpp"
11524 ac_preproc_ok=false
11525 for ac_cxx_preproc_warn_flag in '' yes
11527 # Use a header file that comes with gcc, so configuring glibc
11528 # with a fresh cross-compiler works.
11529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11530 # <limits.h> exists even on freestanding compilers.
11531 # On the NeXT, cc -E runs the code through the compiler's parser,
11532 # not just through cpp. "Syntax error" is here to catch this case.
11533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11534 /* end confdefs.h. */
11536 # include <limits.h>
11538 # include <assert.h>
11542 if ac_fn_cxx_try_cpp "$LINENO"; then :
11545 # Broken: fails on valid input.
11548 rm -f conftest.err conftest.i conftest.$ac_ext
11550 # OK, works on sane cases. Now check whether nonexistent headers
11551 # can be detected and how.
11552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11553 /* end confdefs.h. */
11554 #include <ac_nonexistent.h>
11556 if ac_fn_cxx_try_cpp "$LINENO"; then :
11557 # Broken: success on invalid input.
11560 # Passes both tests.
11564 rm -f conftest.err conftest.i conftest.$ac_ext
11567 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11568 rm -f conftest.i conftest.err conftest.
$ac_ext
11569 if $ac_preproc_ok; then :
11574 ac_cv_prog_CXXCPP
=$CXXCPP
11577 CXXCPP
=$ac_cv_prog_CXXCPP
11579 ac_cv_prog_CXXCPP
=$CXXCPP
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11582 $as_echo "$CXXCPP" >&6; }
11583 ac_preproc_ok
=false
11584 for ac_cxx_preproc_warn_flag
in '' yes
11586 # Use a header file that comes with gcc, so configuring glibc
11587 # with a fresh cross-compiler works.
11588 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11589 # <limits.h> exists even on freestanding compilers.
11590 # On the NeXT, cc -E runs the code through the compiler's parser,
11591 # not just through cpp. "Syntax error" is here to catch this case.
11592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11593 /* end confdefs.h. */
11595 # include <limits.h>
11597 # include <assert.h>
11601 if ac_fn_cxx_try_cpp
"$LINENO"; then :
11604 # Broken: fails on valid input.
11607 rm -f conftest.err conftest.i conftest.
$ac_ext
11609 # OK, works on sane cases. Now check whether nonexistent headers
11610 # can be detected and how.
11611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11612 /* end confdefs.h. */
11613 #include <ac_nonexistent.h>
11615 if ac_fn_cxx_try_cpp
"$LINENO"; then :
11616 # Broken: success on invalid input.
11619 # Passes both tests.
11623 rm -f conftest.err conftest.i conftest.
$ac_ext
11626 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11627 rm -f conftest.i conftest.err conftest.
$ac_ext
11628 if $ac_preproc_ok; then :
11631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11633 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
11634 See \`config.log' for more details" "$LINENO" 5; }
11638 ac_cpp
='$CPP $CPPFLAGS'
11639 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11640 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11641 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11644 _lt_caught_CXX_error
=yes
11648 ac_cpp
='$CXXCPP $CPPFLAGS'
11649 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11650 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11651 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
11653 archive_cmds_need_lc_CXX
=no
11654 allow_undefined_flag_CXX
=
11655 always_export_symbols_CXX
=no
11656 archive_expsym_cmds_CXX
=
11657 compiler_needs_object_CXX
=no
11658 export_dynamic_flag_spec_CXX
=
11659 hardcode_direct_CXX
=no
11660 hardcode_direct_absolute_CXX
=no
11661 hardcode_libdir_flag_spec_CXX
=
11662 hardcode_libdir_flag_spec_ld_CXX
=
11663 hardcode_libdir_separator_CXX
=
11664 hardcode_minus_L_CXX
=no
11665 hardcode_shlibpath_var_CXX
=unsupported
11666 hardcode_automatic_CXX
=no
11667 inherit_rpath_CXX
=no
11669 module_expsym_cmds_CXX
=
11670 link_all_deplibs_CXX
=unknown
11671 old_archive_cmds_CXX
=$old_archive_cmds
11672 reload_flag_CXX
=$reload_flag
11673 reload_cmds_CXX
=$reload_cmds
11674 no_undefined_flag_CXX
=
11675 whole_archive_flag_spec_CXX
=
11676 enable_shared_with_static_runtimes_CXX
=no
11678 # Source file extension for C++ test sources.
11681 # Object file extension for compiled C++ test sources.
11685 # No sense in running all these tests if we already determined that
11686 # the CXX compiler isn't working. Some variables (like enable_shared)
11687 # are currently assumed to apply to all compilers on this platform,
11688 # and will be corrupted by setting them based on a non-working compiler.
11689 if test "$_lt_caught_CXX_error" != yes; then
11690 # Code to be used in simple compile tests
11691 lt_simple_compile_test_code
="int some_variable = 0;"
11693 # Code to be used in simple link tests
11694 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
11696 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11703 # If no C compiler was specified, use CC.
11706 # If no C compiler flags were specified, use CFLAGS.
11707 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
11709 # Allow CC to be a program name with arguments.
11713 # save warnings/boilerplate of simple test code
11714 ac_outfile
=conftest.
$ac_objext
11715 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
11716 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
11717 _lt_compiler_boilerplate
=`cat conftest.err`
11720 ac_outfile
=conftest.
$ac_objext
11721 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
11722 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
11723 _lt_linker_boilerplate
=`cat conftest.err`
11727 # Allow CC to be a program name with arguments.
11732 lt_save_with_gnu_ld
=$with_gnu_ld
11733 lt_save_path_LD
=$lt_cv_path_LD
11734 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11735 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
11737 $as_unset lt_cv_prog_gnu_ld
11739 if test -n "${lt_cv_path_LDCXX+set}"; then
11740 lt_cv_path_LD
=$lt_cv_path_LDCXX
11742 $as_unset lt_cv_path_LD
11744 test -z "${LDCXX+set}" || LD
=$LDCXX
11748 for cc_temp
in $compiler""; do
11750 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
11751 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
11756 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11759 if test -n "$compiler"; then
11760 # We don't want -fno-exception when compiling C++ code, so set the
11761 # no_builtin_flag separately
11762 if test "$GXX" = yes; then
11763 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
11765 lt_prog_compiler_no_builtin_flag_CXX
=
11768 if test "$GXX" = yes; then
11769 # Set up default GNU C++ configuration
11773 # Check whether --with-gnu-ld was given.
11774 if test "${with_gnu_ld+set}" = set; then :
11775 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
11781 if test "$GCC" = yes; then
11782 # Check if gcc -print-prog-name=ld gives a path.
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11784 $as_echo_n "checking for ld used by $CC... " >&6; }
11787 # gcc leaves a trailing carriage return which upsets mingw
11788 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11790 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
11793 # Accept absolute paths.
11795 re_direlt
='/[^/][^/]*/\.\./'
11796 # Canonicalize the pathname of ld
11797 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11798 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
11799 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11801 test -z "$LD" && LD
="$ac_prog"
11804 # If it fails, then pretend we aren't using GCC.
11808 # If it is relative, then search for the first ld in PATH.
11809 with_gnu_ld
=unknown
11812 elif test "$with_gnu_ld" = yes; then
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11814 $as_echo_n "checking for GNU ld... " >&6; }
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11817 $as_echo_n "checking for non-GNU ld... " >&6; }
11819 if ${lt_cv_path_LD+:} false
; then :
11820 $as_echo_n "(cached) " >&6
11822 if test -z "$LD"; then
11823 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
11824 for ac_dir
in $PATH; do
11826 test -z "$ac_dir" && ac_dir
=.
11827 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
11828 lt_cv_path_LD
="$ac_dir/$ac_prog"
11829 # Check to see if the program is GNU ld. I'd rather use --version,
11830 # but apparently some variants of GNU ld only accept -v.
11831 # Break only if it was the GNU/non-GNU ld that we prefer.
11832 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11833 *GNU
* |
*'with BFD'*)
11834 test "$with_gnu_ld" != no
&& break
11837 test "$with_gnu_ld" != yes && break
11844 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
11848 LD
="$lt_cv_path_LD"
11849 if test -n "$LD"; then
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11851 $as_echo "$LD" >&6; }
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11854 $as_echo "no" >&6; }
11856 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11858 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11859 if ${lt_cv_prog_gnu_ld+:} false
; then :
11860 $as_echo_n "(cached) " >&6
11862 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11863 case `$LD -v 2>&1 </dev/null` in
11864 *GNU
* |
*'with BFD'*)
11865 lt_cv_prog_gnu_ld
=yes
11868 lt_cv_prog_gnu_ld
=no
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11873 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11874 with_gnu_ld
=$lt_cv_prog_gnu_ld
11882 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11883 # archiving commands below assume that GNU ld is being used.
11884 if test "$with_gnu_ld" = yes; then
11885 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11886 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'
11888 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11889 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11891 # If archive_cmds runs LD, not CC, wlarc should be empty
11892 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11893 # investigate it a little bit more. (MM)
11896 # ancient GNU ld didn't support --whole-archive et. al.
11897 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11898 $GREP 'no-whole-archive' > /dev
/null
; then
11899 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11901 whole_archive_flag_spec_CXX
=
11907 # A generic and very simple default shared library creation
11908 # command for GNU C++ for the case where it uses the native
11909 # linker, instead of GNU ld. If possible, this setting should
11910 # overridden to take advantage of the native linker features on
11911 # the platform it is being used on.
11912 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11915 # Commands to make compiler produce verbose output that lists
11916 # what "hidden" libraries, object files and flags are used when
11917 # linking a shared library.
11918 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11926 # PORTME: fill in a description of your system's C++ link characteristics
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11928 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11932 # FIXME: insert proper C++ library support
11936 if test "$host_cpu" = ia64
; then
11937 # On IA64, the linker does run time linking by default, so we don't
11938 # have to do anything special.
11939 aix_use_runtimelinking
=no
11940 exp_sym_flag
='-Bexport'
11943 aix_use_runtimelinking
=no
11945 # Test if we are trying to use run time linking or normal
11946 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11947 # need to do runtime linking.
11948 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
11949 for ld_flag
in $LDFLAGS; do
11952 aix_use_runtimelinking
=yes
11960 exp_sym_flag
='-bexport'
11961 no_entry_flag
='-bnoentry'
11964 # When large executables or shared objects are built, AIX ld can
11965 # have problems creating the table of contents. If linking a library
11966 # or program results in "error TOC overflow" add -mminimal-toc to
11967 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11968 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11970 archive_cmds_CXX
=''
11971 hardcode_direct_CXX
=yes
11972 hardcode_direct_absolute_CXX
=yes
11973 hardcode_libdir_separator_CXX
=':'
11974 link_all_deplibs_CXX
=yes
11975 file_list_spec_CXX
='${wl}-f,'
11977 if test "$GXX" = yes; then
11978 case $host_os in aix4.
[012]|aix4.
[012].
*)
11979 # We only want to do this on AIX 4.2 and lower, the check
11980 # below for broken collect2 doesn't work under 4.3+
11981 collect2name
=`${CC} -print-prog-name=collect2`
11982 if test -f "$collect2name" &&
11983 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
11985 # We have reworked collect2
11988 # We have old collect2
11989 hardcode_direct_CXX
=unsupported
11990 # It fails to find uninstalled libraries when the uninstalled
11991 # path is not listed in the libpath. Setting hardcode_minus_L
11992 # to unsupported forces relinking
11993 hardcode_minus_L_CXX
=yes
11994 hardcode_libdir_flag_spec_CXX
='-L$libdir'
11995 hardcode_libdir_separator_CXX
=
11998 shared_flag
='-shared'
11999 if test "$aix_use_runtimelinking" = yes; then
12000 shared_flag
="$shared_flag "'${wl}-G'
12004 if test "$host_cpu" = ia64
; then
12005 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12006 # chokes on -Wl,-G. The following line is correct:
12009 if test "$aix_use_runtimelinking" = yes; then
12010 shared_flag
='${wl}-G'
12012 shared_flag
='${wl}-bM:SRE'
12017 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
12018 # It seems that -bexpall does not export symbols beginning with
12019 # underscore (_), so it is better to generate a list of symbols to
12021 always_export_symbols_CXX
=yes
12022 if test "$aix_use_runtimelinking" = yes; then
12023 # Warning - without using the other runtime loading flags (-brtl),
12024 # -berok will link without error, but may produce a broken library.
12025 allow_undefined_flag_CXX
='-berok'
12026 # Determine the default libpath from the value encoded in an empty
12028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12029 /* end confdefs.h. */
12039 if ac_fn_cxx_try_link
"$LINENO"; then :
12041 lt_aix_libpath_sed
='
12042 /Import File Strings/,/^$/ {
12048 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12049 # Check for a 64-bit object if we didn't find anything.
12050 if test -z "$aix_libpath"; then
12051 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12054 rm -f core conftest.err conftest.
$ac_objext \
12055 conftest
$ac_exeext conftest.
$ac_ext
12056 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
12058 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
12060 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"
12062 if test "$host_cpu" = ia64
; then
12063 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
12064 allow_undefined_flag_CXX
="-z nodefs"
12065 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"
12067 # Determine the default libpath from the value encoded in an
12068 # empty executable.
12069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12070 /* end confdefs.h. */
12080 if ac_fn_cxx_try_link
"$LINENO"; then :
12082 lt_aix_libpath_sed
='
12083 /Import File Strings/,/^$/ {
12089 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12090 # Check for a 64-bit object if we didn't find anything.
12091 if test -z "$aix_libpath"; then
12092 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12095 rm -f core conftest.err conftest.
$ac_objext \
12096 conftest
$ac_exeext conftest.
$ac_ext
12097 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
12099 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
12100 # Warning - without using the other run time loading flags,
12101 # -berok will link without error, but may produce a broken library.
12102 no_undefined_flag_CXX
=' ${wl}-bernotok'
12103 allow_undefined_flag_CXX
=' ${wl}-berok'
12104 if test "$with_gnu_ld" = yes; then
12105 # We only use this code for GNU lds that support --whole-archive.
12106 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12108 # Exported symbols can be pulled into shared objects from archives
12109 whole_archive_flag_spec_CXX
='$convenience'
12111 archive_cmds_need_lc_CXX
=yes
12112 # This is similar to how AIX traditionally builds its shared
12114 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'
12120 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12121 allow_undefined_flag_CXX
=unsupported
12122 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12123 # support --undefined. This deserves some investigation. FIXME
12124 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12131 case $cc_basename in
12133 # FIXME: insert proper C++ library support
12139 cygwin
* | mingw
* | pw32
* | cegcc
*)
12140 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12141 # as there is no search path for DLLs.
12142 hardcode_libdir_flag_spec_CXX
='-L$libdir'
12143 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
12144 allow_undefined_flag_CXX
=unsupported
12145 always_export_symbols_CXX
=no
12146 enable_shared_with_static_runtimes_CXX
=yes
12148 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
12149 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'
12150 # If the export-symbols file already is a .def file (1st line
12151 # is EXPORTS), use it as is; otherwise, prepend...
12152 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12153 cp $export_symbols $output_objdir/$soname.def;
12155 echo EXPORTS > $output_objdir/$soname.def;
12156 cat $export_symbols >> $output_objdir/$soname.def;
12158 $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'
12163 darwin
* | rhapsody
*)
12166 archive_cmds_need_lc_CXX
=no
12167 hardcode_direct_CXX
=no
12168 hardcode_automatic_CXX
=yes
12169 hardcode_shlibpath_var_CXX
=unsupported
12170 if test "$lt_cv_ld_force_load" = "yes"; then
12171 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\"`'
12173 whole_archive_flag_spec_CXX
=''
12175 link_all_deplibs_CXX
=yes
12176 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
12177 case $cc_basename in
12178 ifort
*) _lt_dar_can_shared
=yes ;;
12179 *) _lt_dar_can_shared
=$GCC ;;
12181 if test "$_lt_dar_can_shared" = "yes"; then
12182 output_verbose_link_cmd
=func_echo_all
12183 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}"
12184 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12185 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}"
12186 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}"
12187 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12188 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}"
12189 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}"
12199 case $cc_basename in
12201 # FIXME: insert proper C++ library support
12205 # Green Hills C++ Compiler
12206 # FIXME: insert proper C++ library support
12210 # FIXME: insert proper C++ library support
12217 # C++ shared libraries reported to be fairly broken before
12223 archive_cmds_need_lc_CXX
=no
12226 freebsd
* | dragonfly
*)
12227 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12236 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12237 link_all_deplibs_CXX
=yes
12241 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
12242 hardcode_libdir_separator_CXX
=:
12243 export_dynamic_flag_spec_CXX
='${wl}-E'
12244 hardcode_direct_CXX
=yes
12245 hardcode_minus_L_CXX
=yes # Not in the search PATH,
12246 # but as the default
12247 # location of the library.
12249 case $cc_basename in
12251 # FIXME: insert proper C++ library support
12255 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'
12256 # Commands to make compiler produce verbose output that lists
12257 # what "hidden" libraries, object files and flags are used when
12258 # linking a shared library.
12260 # There doesn't appear to be a way to prevent this compiler from
12261 # explicitly linking system object files so we need to strip them
12262 # from the output so that they don't get included in the library
12264 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"'
12267 if test "$GXX" = yes; then
12268 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'
12270 # FIXME: insert proper C++ library support
12278 if test $with_gnu_ld = no
; then
12279 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
12280 hardcode_libdir_separator_CXX
=:
12286 export_dynamic_flag_spec_CXX
='${wl}-E'
12292 hardcode_direct_CXX
=no
12293 hardcode_shlibpath_var_CXX
=no
12296 hardcode_direct_CXX
=yes
12297 hardcode_direct_absolute_CXX
=yes
12298 hardcode_minus_L_CXX
=yes # Not in the search PATH,
12299 # but as the default
12300 # location of the library.
12304 case $cc_basename in
12306 # FIXME: insert proper C++ library support
12312 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12315 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12318 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12321 # Commands to make compiler produce verbose output that lists
12322 # what "hidden" libraries, object files and flags are used when
12323 # linking a shared library.
12325 # There doesn't appear to be a way to prevent this compiler from
12326 # explicitly linking system object files so we need to strip them
12327 # from the output so that they don't get included in the library
12329 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"'
12332 if test "$GXX" = yes; then
12333 if test $with_gnu_ld = no
; then
12336 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12339 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12342 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'
12347 # FIXME: insert proper C++ library support
12355 hardcode_direct_CXX
=no
12356 hardcode_shlibpath_var_CXX
=no
12357 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12358 export_dynamic_flag_spec_CXX
='${wl}-E'
12359 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12360 # Instead, shared libraries are loaded at an image base (0x10000000 by
12361 # default) and relocated if they conflict, which is a slow very memory
12362 # consuming and fragmenting process. To avoid this, we pick a random,
12363 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12364 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12365 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'
12366 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'
12369 case $cc_basename in
12372 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'
12374 # Archives containing C++ object files must be created using
12375 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12376 # necessary to make sure instantiated templates are included
12378 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
12381 if test "$GXX" = yes; then
12382 if test "$with_gnu_ld" = no
; then
12383 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'
12385 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'
12388 link_all_deplibs_CXX
=yes
12391 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12392 hardcode_libdir_separator_CXX
=:
12393 inherit_rpath_CXX
=yes
12396 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12397 case $cc_basename in
12399 # Kuck and Associates, Inc. (KAI) C++ Compiler
12401 # KCC will only create a shared library if the output file
12402 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12403 # to its proper name (with version) after linking.
12404 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'
12405 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'
12406 # Commands to make compiler produce verbose output that lists
12407 # what "hidden" libraries, object files and flags are used when
12408 # linking a shared library.
12410 # There doesn't appear to be a way to prevent this compiler from
12411 # explicitly linking system object files so we need to strip them
12412 # from the output so that they don't get included in the library
12414 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"'
12416 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12417 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12419 # Archives containing C++ object files must be created using
12420 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12421 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
12426 # version 8.0 and above of icpc choke on multiply defined symbols
12427 # if we add $predep_objects and $postdep_objects, however 7.1 and
12428 # earlier do not add the objects themselves.
12429 case `$CC -V 2>&1` in
12431 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12432 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'
12434 *) # Version 8.0 or newer
12437 ia64
*) tmp_idyn
=' -i_dynamic';;
12439 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12440 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'
12443 archive_cmds_need_lc_CXX
=no
12444 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12445 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12446 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12449 # Portland Group C++ compiler
12451 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
12452 prelink_cmds_CXX
='tpldir=Template.dir~
12454 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12455 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12456 old_archive_cmds_CXX
='tpldir=Template.dir~
12458 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12459 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12461 archive_cmds_CXX
='tpldir=Template.dir~
12463 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12464 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12465 archive_expsym_cmds_CXX
='tpldir=Template.dir~
12467 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12468 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12470 *) # Version 6 and above use weak symbols
12471 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12472 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'
12476 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
12477 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12478 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'
12482 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12483 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'
12485 runpath_var
=LD_RUN_PATH
12486 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
12487 hardcode_libdir_separator_CXX
=:
12489 # Commands to make compiler produce verbose output that lists
12490 # what "hidden" libraries, object files and flags are used when
12491 # linking a shared library.
12493 # There doesn't appear to be a way to prevent this compiler from
12494 # explicitly linking system object files so we need to strip them
12495 # from the output so that they don't get included in the library
12497 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'
12499 xl
* | mpixl
* | bgxl
*)
12500 # IBM XL 8.0 on PPC, with GNU ld
12501 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12502 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12503 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12504 if test "x$supports_anon_versioning" = xyes
; then
12505 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
12506 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12507 echo "local: *; };" >> $output_objdir/$libname.ver~
12508 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12512 case `$CC -V 2>&1 | sed 5q` in
12515 no_undefined_flag_CXX
=' -zdefs'
12516 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12517 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'
12518 hardcode_libdir_flag_spec_CXX
='-R$libdir'
12519 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'
12520 compiler_needs_object_CXX
=yes
12522 # Not sure whether something based on
12523 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12525 output_verbose_link_cmd
='func_echo_all'
12527 # Archives containing C++ object files must be created using
12528 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12529 # necessary to make sure instantiated templates are included
12531 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
12539 # FIXME: insert proper C++ library support
12544 # FIXME: insert proper C++ library support
12549 case $cc_basename in
12551 # FIXME: insert proper C++ library support
12555 # FIXME: insert proper C++ library support
12562 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
12563 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12565 hardcode_libdir_flag_spec_CXX
='-R$libdir'
12566 hardcode_direct_CXX
=yes
12567 hardcode_shlibpath_var_CXX
=no
12569 # Workaround some broken pre-1.5 toolchains
12570 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12578 # C++ shared libraries are fairly broken
12583 if test -f /usr
/libexec
/ld.so
; then
12584 hardcode_direct_CXX
=yes
12585 hardcode_shlibpath_var_CXX
=no
12586 hardcode_direct_absolute_CXX
=yes
12587 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12588 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12589 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12590 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12591 export_dynamic_flag_spec_CXX
='${wl}-E'
12592 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12594 output_verbose_link_cmd
=func_echo_all
12600 osf3
* | osf4
* | osf5
*)
12601 case $cc_basename in
12603 # Kuck and Associates, Inc. (KAI) C++ Compiler
12605 # KCC will only create a shared library if the output file
12606 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12607 # to its proper name (with version) after linking.
12608 archive_cmds_CXX
='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12610 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12611 hardcode_libdir_separator_CXX
=:
12613 # Archives containing C++ object files must be created using
12614 # the KAI C++ compiler.
12616 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
12617 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
12621 # Rational C++ 2.4.1
12622 # FIXME: insert proper C++ library support
12628 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
12629 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'
12630 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12633 allow_undefined_flag_CXX
=' -expect_unresolved \*'
12634 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'
12635 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12636 echo "-hidden">> $lib.exp~
12637 $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~
12639 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
12643 hardcode_libdir_separator_CXX
=:
12645 # Commands to make compiler produce verbose output that lists
12646 # what "hidden" libraries, object files and flags are used when
12647 # linking a shared library.
12649 # There doesn't appear to be a way to prevent this compiler from
12650 # explicitly linking system object files so we need to strip them
12651 # from the output so that they don't get included in the library
12653 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"'
12656 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
12657 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
12660 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'
12663 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'
12667 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12668 hardcode_libdir_separator_CXX
=:
12670 # Commands to make compiler produce verbose output that lists
12671 # what "hidden" libraries, object files and flags are used when
12672 # linking a shared library.
12673 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12676 # FIXME: insert proper C++ library support
12684 # FIXME: insert proper C++ library support
12689 case $cc_basename in
12692 # FIXME: insert proper C++ library support
12697 # FIXME: insert proper C++ library support
12701 # FIXME: insert proper C++ library support
12708 case $cc_basename in
12710 # Sun C++ 4.2, 5.x and Centerline C++
12711 archive_cmds_need_lc_CXX
=yes
12712 no_undefined_flag_CXX
=' -zdefs'
12713 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12714 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12715 $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'
12717 hardcode_libdir_flag_spec_CXX
='-R$libdir'
12718 hardcode_shlibpath_var_CXX
=no
12720 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
12722 # The compiler driver will combine and reorder linker options,
12723 # but understands `-z linker_flag'.
12724 # Supported since Solaris 2.6 (maybe 2.5.1?)
12725 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
12728 link_all_deplibs_CXX
=yes
12730 output_verbose_link_cmd
='func_echo_all'
12732 # Archives containing C++ object files must be created using
12733 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12734 # necessary to make sure instantiated templates are included
12736 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
12739 # Green Hills C++ Compiler
12740 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12742 # The C++ compiler must be used to create the archive.
12743 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12746 # GNU C++ compiler with Solaris linker
12747 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
12748 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
12749 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
12750 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12751 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12752 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12754 # Commands to make compiler produce verbose output that lists
12755 # what "hidden" libraries, object files and flags are used when
12756 # linking a shared library.
12757 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12759 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12761 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12762 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12763 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12765 # Commands to make compiler produce verbose output that lists
12766 # what "hidden" libraries, object files and flags are used when
12767 # linking a shared library.
12768 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12771 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
12773 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
12775 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12783 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
12784 no_undefined_flag_CXX
='${wl}-z,text'
12785 archive_cmds_need_lc_CXX
=no
12786 hardcode_shlibpath_var_CXX
=no
12787 runpath_var
='LD_RUN_PATH'
12789 case $cc_basename in
12791 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12792 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12795 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12796 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12801 sysv5
* | sco3.2v5
* | sco5v6
*)
12802 # Note: We can NOT use -z defs as we might desire, because we do not
12803 # link with -lc, and that would cause any symbols used from libc to
12804 # always be unresolved, which means just about no library would
12805 # ever link correctly. If we're not using GNU ld we use -z text
12806 # though, which does catch some bad symbols but isn't as heavy-handed
12808 no_undefined_flag_CXX
='${wl}-z,text'
12809 allow_undefined_flag_CXX
='${wl}-z,nodefs'
12810 archive_cmds_need_lc_CXX
=no
12811 hardcode_shlibpath_var_CXX
=no
12812 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
12813 hardcode_libdir_separator_CXX
=':'
12814 link_all_deplibs_CXX
=yes
12815 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
12816 runpath_var
='LD_RUN_PATH'
12818 case $cc_basename in
12820 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12821 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12822 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
12823 '"$old_archive_cmds_CXX"
12824 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
12825 '"$reload_cmds_CXX"
12828 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12829 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12835 case $cc_basename in
12837 # NonStop-UX NCC 3.20
12838 # FIXME: insert proper C++ library support
12842 # FIXME: insert proper C++ library support
12849 # FIXME: insert proper C++ library support
12854 # FIXME: insert proper C++ library support
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12860 $as_echo "$ld_shlibs_CXX" >&6; }
12861 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
12867 ## There is no encapsulation within the following macros, do not change
12868 ## the running order or otherwise move them around unless you know exactly
12869 ## what you are doing...
12870 # Dependencies to place before and after the object being linked:
12871 predep_objects_CXX
=
12872 postdep_objects_CXX
=
12875 compiler_lib_search_path_CXX
=
12877 cat > conftest.
$ac_ext <<_LT_EOF
12881 Foo (void) { a = 0; }
12887 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12888 (eval $ac_compile) 2>&5
12890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12891 test $ac_status = 0; }; then
12892 # Parse the compiler output and extract the necessary
12893 # objects, libraries and library flags.
12895 # Sentinel used to keep track of whether or not we are before
12896 # the conftest object file.
12897 pre_test_object_deps_done
=no
12899 for p
in `eval "$output_verbose_link_cmd"`; do
12903 # Some compilers place space between "-{L,R}" and the path.
12904 # Remove the space.
12905 if test $p = "-L" ||
12906 test $p = "-R"; then
12913 if test "$pre_test_object_deps_done" = no
; then
12916 # Internal compiler library paths should come after those
12917 # provided the user. The postdeps already come after the
12918 # user supplied libs so there is no need to process them.
12919 if test -z "$compiler_lib_search_path_CXX"; then
12920 compiler_lib_search_path_CXX
="${prev}${p}"
12922 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
12925 # The "-l" case would never come before the object being
12926 # linked, so don't bother handling this case.
12929 if test -z "$postdeps_CXX"; then
12930 postdeps_CXX
="${prev}${p}"
12932 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
12938 # This assumes that the test object file only shows up
12939 # once in the compiler output.
12940 if test "$p" = "conftest.$objext"; then
12941 pre_test_object_deps_done
=yes
12945 if test "$pre_test_object_deps_done" = no
; then
12946 if test -z "$predep_objects_CXX"; then
12947 predep_objects_CXX
="$p"
12949 predep_objects_CXX
="$predep_objects_CXX $p"
12952 if test -z "$postdep_objects_CXX"; then
12953 postdep_objects_CXX
="$p"
12955 postdep_objects_CXX
="$postdep_objects_CXX $p"
12960 *) ;; # Ignore the rest.
12968 echo "libtool.m4: error: problem compiling CXX test program"
12971 $RM -f confest.
$objext
12973 # PORTME: override above test on systems where it is broken
12976 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12977 # hack all around it, let's just trust "g++" to DTRT.
12978 predep_objects_CXX
=
12979 postdep_objects_CXX
=
12984 case `$CC -V 2>&1 | sed 5q` in
12988 # The more standards-conforming stlport4 library is
12989 # incompatible with the Cstd library. Avoid specifying
12990 # it if it's in CXXFLAGS. Ignore libCrun as
12991 # -library=stlport4 depends on it.
12992 case " $CXX $CXXFLAGS " in
12993 *" -library=stlport4 "*)
12994 solaris_use_stlport4
=yes
12998 if test "$solaris_use_stlport4" != yes; then
12999 postdeps_CXX
='-library=Cstd -library=Crun'
13006 case $cc_basename in
13008 # The more standards-conforming stlport4 library is
13009 # incompatible with the Cstd library. Avoid specifying
13010 # it if it's in CXXFLAGS. Ignore libCrun as
13011 # -library=stlport4 depends on it.
13012 case " $CXX $CXXFLAGS " in
13013 *" -library=stlport4 "*)
13014 solaris_use_stlport4
=yes
13018 # Adding this requires a known-good setup of shared libraries for
13019 # Sun compiler versions before 5.6, else PIC objects from an old
13020 # archive will be linked into the output, leading to subtle bugs.
13021 if test "$solaris_use_stlport4" != yes; then
13022 postdeps_CXX
='-library=Cstd -library=Crun'
13030 case " $postdeps_CXX " in
13031 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
13033 compiler_lib_search_dirs_CXX
=
13034 if test -n "${compiler_lib_search_path_CXX}"; then
13035 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13068 lt_prog_compiler_wl_CXX
=
13069 lt_prog_compiler_pic_CXX
=
13070 lt_prog_compiler_static_CXX
=
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13073 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13075 # C++ specific cases for pic, static, wl, etc.
13076 if test "$GXX" = yes; then
13077 lt_prog_compiler_wl_CXX
='-Wl,'
13078 lt_prog_compiler_static_CXX
='-static'
13082 # All AIX code is PIC.
13083 if test "$host_cpu" = ia64
; then
13084 # AIX 5 now supports IA64 processor
13085 lt_prog_compiler_static_CXX
='-Bstatic'
13087 lt_prog_compiler_pic_CXX
='-fPIC'
13093 # see comment about AmigaOS4 .so support
13094 lt_prog_compiler_pic_CXX
='-fPIC'
13097 # FIXME: we need at least 68020 code to build shared libraries, but
13098 # adding the `-m68020' flag to GCC prevents building anything better,
13100 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
13105 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
13106 # PIC is the default for these OSes.
13108 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
13109 # This hack is so that the source file can tell whether it is being
13110 # built for inclusion in a dll (and should export symbols for example).
13111 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13112 # (--disable-auto-import) libraries
13113 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
13115 darwin
* | rhapsody
*)
13116 # PIC is the default on this platform
13117 # Common symbols not allowed in MH_DYLIB files
13118 lt_prog_compiler_pic_CXX
='-fno-common'
13121 # DJGPP does not support shared libraries at all
13122 lt_prog_compiler_pic_CXX
=
13125 # PIC is the default for Haiku.
13126 # The "-static" flag exists, but is broken.
13127 lt_prog_compiler_static_CXX
=
13130 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13131 # Instead, we relocate shared libraries at runtime.
13134 if test -d /usr
/nec
; then
13135 lt_prog_compiler_pic_CXX
=-Kconform_pic
13139 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13140 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13141 # sets the default TLS model and affects inlining.
13146 lt_prog_compiler_pic_CXX
='-fPIC'
13151 # QNX uses GNU C++, but need to define -shared option too, otherwise
13152 # it will coredump.
13153 lt_prog_compiler_pic_CXX
='-fPIC -shared'
13156 lt_prog_compiler_pic_CXX
='-fPIC'
13162 # All AIX code is PIC.
13163 if test "$host_cpu" = ia64
; then
13164 # AIX 5 now supports IA64 processor
13165 lt_prog_compiler_static_CXX
='-Bstatic'
13167 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
13171 case $cc_basename in
13173 # Green Hills C++ Compiler
13174 # _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"
13179 case $cc_basename in
13181 lt_prog_compiler_pic_CXX
='-KPIC'
13184 # Green Hills C++ Compiler
13185 lt_prog_compiler_pic_CXX
='-pic'
13191 freebsd
* | dragonfly
*)
13192 # FreeBSD uses GNU C++
13194 hpux9
* | hpux10
* | hpux11
*)
13195 case $cc_basename in
13197 lt_prog_compiler_wl_CXX
='-Wl,'
13198 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
13199 if test "$host_cpu" != ia64
; then
13200 lt_prog_compiler_pic_CXX
='+Z'
13204 lt_prog_compiler_wl_CXX
='-Wl,'
13205 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
13211 lt_prog_compiler_pic_CXX
='+Z'
13220 # This is c89, which is MS Visual C++ (no shared libs)
13221 # Anyone wants to do a port?
13223 irix5
* | irix6
* | nonstopux
*)
13224 case $cc_basename in
13226 lt_prog_compiler_wl_CXX
='-Wl,'
13227 lt_prog_compiler_static_CXX
='-non_shared'
13228 # CC pic flag -KPIC is the default.
13234 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
13235 case $cc_basename in
13238 lt_prog_compiler_wl_CXX
='--backend -Wl,'
13239 lt_prog_compiler_pic_CXX
='-fPIC'
13242 # old Intel C++ for x86_64 which still supported -KPIC.
13243 lt_prog_compiler_wl_CXX
='-Wl,'
13244 lt_prog_compiler_pic_CXX
='-KPIC'
13245 lt_prog_compiler_static_CXX
='-static'
13248 # Intel C++, used to be incompatible with GCC.
13249 # ICC 10 doesn't accept -KPIC any more.
13250 lt_prog_compiler_wl_CXX
='-Wl,'
13251 lt_prog_compiler_pic_CXX
='-fPIC'
13252 lt_prog_compiler_static_CXX
='-static'
13255 # Portland Group C++ compiler
13256 lt_prog_compiler_wl_CXX
='-Wl,'
13257 lt_prog_compiler_pic_CXX
='-fpic'
13258 lt_prog_compiler_static_CXX
='-Bstatic'
13262 # Make sure the PIC flag is empty. It appears that all Alpha
13263 # Linux and Compaq Tru64 Unix objects are PIC.
13264 lt_prog_compiler_pic_CXX
=
13265 lt_prog_compiler_static_CXX
='-non_shared'
13267 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
13268 # IBM XL 8.0, 9.0 on PPC and BlueGene
13269 lt_prog_compiler_wl_CXX
='-Wl,'
13270 lt_prog_compiler_pic_CXX
='-qpic'
13271 lt_prog_compiler_static_CXX
='-qstaticlink'
13274 case `$CC -V 2>&1 | sed 5q` in
13277 lt_prog_compiler_pic_CXX
='-KPIC'
13278 lt_prog_compiler_static_CXX
='-Bstatic'
13279 lt_prog_compiler_wl_CXX
='-Qoption ld '
13290 case $cc_basename in
13292 lt_prog_compiler_pic_CXX
='-W c,exportall'
13301 # QNX uses GNU C++, but need to define -shared option too, otherwise
13302 # it will coredump.
13303 lt_prog_compiler_pic_CXX
='-fPIC -shared'
13305 osf3
* | osf4
* | osf5
*)
13306 case $cc_basename in
13308 lt_prog_compiler_wl_CXX
='--backend -Wl,'
13311 # Rational C++ 2.4.1
13312 lt_prog_compiler_pic_CXX
='-pic'
13315 # Digital/Compaq C++
13316 lt_prog_compiler_wl_CXX
='-Wl,'
13317 # Make sure the PIC flag is empty. It appears that all Alpha
13318 # Linux and Compaq Tru64 Unix objects are PIC.
13319 lt_prog_compiler_pic_CXX
=
13320 lt_prog_compiler_static_CXX
='-non_shared'
13329 case $cc_basename in
13331 # Sun C++ 4.2, 5.x and Centerline C++
13332 lt_prog_compiler_pic_CXX
='-KPIC'
13333 lt_prog_compiler_static_CXX
='-Bstatic'
13334 lt_prog_compiler_wl_CXX
='-Qoption ld '
13337 # Green Hills C++ Compiler
13338 lt_prog_compiler_pic_CXX
='-PIC'
13345 case $cc_basename in
13348 lt_prog_compiler_pic_CXX
='-pic'
13349 lt_prog_compiler_static_CXX
='-Bstatic'
13353 lt_prog_compiler_pic_CXX
='-pic'
13359 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
13360 case $cc_basename in
13362 lt_prog_compiler_wl_CXX
='-Wl,'
13363 lt_prog_compiler_pic_CXX
='-KPIC'
13364 lt_prog_compiler_static_CXX
='-Bstatic'
13369 case $cc_basename in
13371 # NonStop-UX NCC 3.20
13372 lt_prog_compiler_pic_CXX
='-KPIC'
13381 lt_prog_compiler_can_build_shared_CXX
=no
13387 # For platforms which do not support PIC, -DPIC is meaningless:
13389 lt_prog_compiler_pic_CXX
=
13392 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13396 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13401 # Check to make sure the PIC flag actually works.
13403 if test -n "$lt_prog_compiler_pic_CXX"; then
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13405 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13406 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
13407 $as_echo_n "(cached) " >&6
13409 lt_cv_prog_compiler_pic_works_CXX
=no
13410 ac_outfile
=conftest.
$ac_objext
13411 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13412 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
13413 # Insert the option either (1) after the last *FLAGS variable, or
13414 # (2) before a word containing "conftest.", or (3) at the end.
13415 # Note that $ac_compile itself does not contain backslashes and begins
13416 # with a dollar sign (not a hyphen), so the echo should work correctly.
13417 # The option is referenced via a variable to avoid confusing sed.
13418 lt_compile
=`echo "$ac_compile" | $SED \
13419 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13420 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13421 -e 's:$: $lt_compiler_flag:'`
13422 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13423 (eval "$lt_compile" 2>conftest.err
)
13425 cat conftest.err
>&5
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 if (exit $ac_status) && test -s "$ac_outfile"; then
13428 # The compiler can only warn and ignore the option if not recognized
13429 # So say no if there are warnings other than the usual output.
13430 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
13431 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
13432 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
13433 lt_cv_prog_compiler_pic_works_CXX
=yes
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13440 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13442 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
13443 case $lt_prog_compiler_pic_CXX in
13445 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
13448 lt_prog_compiler_pic_CXX
=
13449 lt_prog_compiler_can_build_shared_CXX
=no
13457 # Check to make sure the static flag actually works.
13459 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13461 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13462 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
13463 $as_echo_n "(cached) " >&6
13465 lt_cv_prog_compiler_static_works_CXX
=no
13466 save_LDFLAGS
="$LDFLAGS"
13467 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
13468 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
13469 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
13470 # The linker can only warn and ignore the option if not recognized
13471 # So say no if there are warnings
13472 if test -s conftest.err
; then
13473 # Append any errors to the config.log.
13474 cat conftest.err
1>&5
13475 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
13476 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
13477 if diff conftest.exp conftest.er2
>/dev
/null
; then
13478 lt_cv_prog_compiler_static_works_CXX
=yes
13481 lt_cv_prog_compiler_static_works_CXX
=yes
13485 LDFLAGS
="$save_LDFLAGS"
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13489 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13491 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
13494 lt_prog_compiler_static_CXX
=
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13501 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13502 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
13503 $as_echo_n "(cached) " >&6
13505 lt_cv_prog_compiler_c_o_CXX
=no
13506 $RM -r conftest
2>/dev
/null
13510 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13512 lt_compiler_flag
="-o out/conftest2.$ac_objext"
13513 # Insert the option either (1) after the last *FLAGS variable, or
13514 # (2) before a word containing "conftest.", or (3) at the end.
13515 # Note that $ac_compile itself does not contain backslashes and begins
13516 # with a dollar sign (not a hyphen), so the echo should work correctly.
13517 lt_compile
=`echo "$ac_compile" | $SED \
13518 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13519 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13520 -e 's:$: $lt_compiler_flag:'`
13521 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13522 (eval "$lt_compile" 2>out
/conftest.err
)
13524 cat out
/conftest.err
>&5
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
13528 # The compiler can only warn and ignore the option if not recognized
13529 # So say no if there are warnings
13530 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
13531 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
13532 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
13533 lt_cv_prog_compiler_c_o_CXX
=yes
13538 # SGI C++ compiler will create directory out/ii_files/ for
13539 # template instantiation
13540 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
13541 $RM out
/* && rmdir out
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13548 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13553 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13554 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
13555 $as_echo_n "(cached) " >&6
13557 lt_cv_prog_compiler_c_o_CXX
=no
13558 $RM -r conftest
2>/dev
/null
13562 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13564 lt_compiler_flag
="-o out/conftest2.$ac_objext"
13565 # Insert the option either (1) after the last *FLAGS variable, or
13566 # (2) before a word containing "conftest.", or (3) at the end.
13567 # Note that $ac_compile itself does not contain backslashes and begins
13568 # with a dollar sign (not a hyphen), so the echo should work correctly.
13569 lt_compile
=`echo "$ac_compile" | $SED \
13570 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13571 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13572 -e 's:$: $lt_compiler_flag:'`
13573 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13574 (eval "$lt_compile" 2>out
/conftest.err
)
13576 cat out
/conftest.err
>&5
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
13580 # The compiler can only warn and ignore the option if not recognized
13581 # So say no if there are warnings
13582 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
13583 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
13584 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
13585 lt_cv_prog_compiler_c_o_CXX
=yes
13590 # SGI C++ compiler will create directory out/ii_files/ for
13591 # template instantiation
13592 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
13593 $RM out
/* && rmdir out
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13600 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13605 hard_links
="nottested"
13606 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
13607 # do not overwrite the value of need_locks provided by the user
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13609 $as_echo_n "checking if we can lock with hard links... " >&6; }
13612 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13614 ln conftest.a conftest.b
2>&5 || hard_links
=no
13615 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13617 $as_echo "$hard_links" >&6; }
13618 if test "$hard_links" = no
; then
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13620 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13630 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13632 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13635 # If we're using GNU nm, then we don't want the "-C" option.
13636 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13637 # Also, AIX nm treats weak defined symbols like other global defined
13638 # symbols, whereas GNU nm marks them as "W".
13639 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
13640 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'
13642 export_symbols_cmds_CXX
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13646 export_symbols_cmds_CXX
="$ltdll_cmds"
13648 cygwin
* | mingw
* | cegcc
*)
13649 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'
13652 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13655 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13658 $as_echo "$ld_shlibs_CXX" >&6; }
13659 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
13661 with_gnu_ld_CXX
=$with_gnu_ld
13669 # Do we need to explicitly link libc?
13671 case "x$archive_cmds_need_lc_CXX" in
13673 # Assume -lc should be added
13674 archive_cmds_need_lc_CXX
=yes
13676 if test "$enable_shared" = yes && test "$GCC" = yes; then
13677 case $archive_cmds_CXX in
13679 # FIXME: we may have to deal with multi-command sequences.
13682 # Test whether the compiler implicitly links with -lc since on some
13683 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13684 # to ld, don't add -lc before -lgcc.
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13686 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13687 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
13688 $as_echo_n "(cached) " >&6
13691 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13694 (eval $ac_compile) 2>&5
13696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13697 test $ac_status = 0; } 2>conftest.err
; then
13700 libobjs
=conftest.
$ac_objext
13702 wl
=$lt_prog_compiler_wl_CXX
13703 pic_flag
=$lt_prog_compiler_pic_CXX
13709 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
13710 allow_undefined_flag_CXX
=
13711 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13712 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
13714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13715 test $ac_status = 0; }
13717 lt_cv_archive_cmds_need_lc_CXX
=no
13719 lt_cv_archive_cmds_need_lc_CXX
=yes
13721 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
13723 cat conftest.err
1>&5
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13729 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13730 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13801 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13803 library_names_spec
=
13804 libname_spec
='lib$name'
13808 postuninstall_cmds
=
13812 shlibpath_overrides_runpath
=unknown
13814 dynamic_linker
="$host_os ld.so"
13815 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
13816 need_lib_prefix
=unknown
13817 hardcode_into_libs
=no
13819 # when you set need_version to no, make sure it does not cause -set_version
13820 # flags to be left without arguments
13821 need_version
=unknown
13826 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
13827 shlibpath_var
=LIBPATH
13829 # AIX 3 has no versioning support, so we append a major version to the name.
13830 soname_spec
='${libname}${release}${shared_ext}$major'
13837 hardcode_into_libs
=yes
13838 if test "$host_cpu" = ia64
; then
13839 # AIX 5 supports IA64
13840 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13841 shlibpath_var
=LD_LIBRARY_PATH
13843 # With GCC up to 2.95.x, collect2 would create an import file
13844 # for dependence libraries. The import file would start with
13845 # the line `#! .'. This would cause the generated library to
13846 # depend on `.', always an invalid library. This was fixed in
13847 # development snapshots of GCC prior to 3.0.
13849 aix4 | aix4.
[01] | aix4.
[01].
*)
13850 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13852 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
13855 can_build_shared
=no
13859 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13860 # soname into executable. Probably we can add versioning support to
13861 # collect2, so additional links can be useful in future.
13862 if test "$aix_use_runtimelinking" = yes; then
13863 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13864 # instead of lib<name>.a to let people know that these are not
13865 # typical AIX shared libraries.
13866 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13868 # We preserve .a as extension for shared libraries through AIX4.2
13869 # and later when we are not doing run time linking.
13870 library_names_spec
='${libname}${release}.a $libname.a'
13871 soname_spec
='${libname}${release}${shared_ext}$major'
13873 shlibpath_var
=LIBPATH
13880 # Since July 2007 AmigaOS4 officially supports .so libraries.
13881 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13882 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13885 library_names_spec
='$libname.ixlibrary $libname.a'
13886 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13887 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'
13893 library_names_spec
='${libname}${shared_ext}'
13894 dynamic_linker
="$host_os ld.so"
13895 shlibpath_var
=LIBRARY_PATH
13901 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13902 soname_spec
='${libname}${release}${shared_ext}$major'
13903 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
13904 shlibpath_var
=LD_LIBRARY_PATH
13905 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13906 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
13907 # the default ld.so.conf also contains /usr/contrib/lib and
13908 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13909 # libtool to hard-code these into programs
13912 cygwin
* | mingw
* | pw32
* | cegcc
*)
13913 version_type
=windows
13918 case $GCC,$host_os in
13919 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
13920 library_names_spec
='$libname.dll.a'
13921 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13922 postinstall_cmds
='base_file=`basename \${file}`~
13923 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13924 dldir=$destdir/`dirname \$dlpath`~
13925 test -d \$dldir || mkdir -p \$dldir~
13926 $install_prog $dir/$dlname \$dldir/$dlname~
13927 chmod a+x \$dldir/$dlname~
13928 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13929 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13931 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13932 dlpath=$dir/\$dldll~
13934 shlibpath_overrides_runpath
=yes
13938 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13939 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13943 # MinGW DLLs use traditional 'lib' prefix
13944 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13947 # pw32 DLLs use 'pw' prefix rather than 'lib'
13948 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13954 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13957 dynamic_linker
='Win32 ld.exe'
13958 # FIXME: first we should search . and the directory the executable is in
13962 darwin
* | rhapsody
*)
13963 dynamic_linker
="$host_os dyld"
13964 version_type
=darwin
13967 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13968 soname_spec
='${libname}${release}${major}$shared_ext'
13969 shlibpath_overrides_runpath
=yes
13970 shlibpath_var
=DYLD_LIBRARY_PATH
13971 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
13973 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
13980 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13981 soname_spec
='${libname}${release}${shared_ext}$major'
13982 shlibpath_var
=LD_LIBRARY_PATH
13985 freebsd
* | dragonfly
*)
13986 # DragonFly does not have aout. When/if they implement a new
13987 # versioning mechanism, adjust this.
13988 if test -x /usr
/bin
/objformat
; then
13989 objformat
=`/usr/bin/objformat`
13992 freebsd
[23].
*) objformat
=aout
;;
13993 *) objformat
=elf
;;
13996 version_type
=freebsd-
$objformat
13997 case $version_type in
13999 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14004 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14008 shlibpath_var
=LD_LIBRARY_PATH
14011 shlibpath_overrides_runpath
=yes
14013 freebsd3.
[01]* | freebsdelf3.
[01]*)
14014 shlibpath_overrides_runpath
=yes
14015 hardcode_into_libs
=yes
14017 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
14018 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
14019 shlibpath_overrides_runpath
=no
14020 hardcode_into_libs
=yes
14022 *) # from 4.6 on, and DragonFly
14023 shlibpath_overrides_runpath
=yes
14024 hardcode_into_libs
=yes
14033 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14034 soname_spec
='${libname}${release}${shared_ext}$major'
14035 shlibpath_var
=LD_LIBRARY_PATH
14036 hardcode_into_libs
=yes
14043 dynamic_linker
="$host_os runtime_loader"
14044 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14045 soname_spec
='${libname}${release}${shared_ext}$major'
14046 shlibpath_var
=LIBRARY_PATH
14047 shlibpath_overrides_runpath
=yes
14048 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14049 hardcode_into_libs
=yes
14052 hpux9
* | hpux10
* | hpux11
*)
14053 # Give a soname corresponding to the major version so that dld.sl refuses to
14054 # link against other versions.
14061 hardcode_into_libs
=yes
14062 dynamic_linker
="$host_os dld.so"
14063 shlibpath_var
=LD_LIBRARY_PATH
14064 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14065 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14066 soname_spec
='${libname}${release}${shared_ext}$major'
14067 if test "X$HPUX_IA64_MODE" = X32
; then
14068 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14070 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
14072 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14076 hardcode_into_libs
=yes
14077 dynamic_linker
="$host_os dld.sl"
14078 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
14079 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14080 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14081 soname_spec
='${libname}${release}${shared_ext}$major'
14082 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14083 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14087 dynamic_linker
="$host_os dld.sl"
14088 shlibpath_var
=SHLIB_PATH
14089 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
14090 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14091 soname_spec
='${libname}${release}${shared_ext}$major'
14094 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14095 postinstall_cmds
='chmod 555 $lib'
14096 # or fails outright, so override atomically:
14097 install_override_mode
=555
14104 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14105 soname_spec
='${libname}${release}${shared_ext}$major'
14106 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
14107 shlibpath_var
=LD_LIBRARY_PATH
14108 shlibpath_overrides_runpath
=no
14109 hardcode_into_libs
=yes
14112 irix5
* | irix6
* | nonstopux
*)
14114 nonstopux
*) version_type
=nonstopux
;;
14116 if test "$lt_cv_prog_gnu_ld" = yes; then
14124 soname_spec
='${libname}${release}${shared_ext}$major'
14125 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14127 irix5
* | nonstopux
*)
14128 libsuff
= shlibsuff
=
14131 case $LD in # libtool.m4 will add one of these switches to LD
14132 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
14133 libsuff
= shlibsuff
= libmagic
=32-bit;;
14134 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
14135 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
14136 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
14137 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
14138 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
14142 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
14143 shlibpath_overrides_runpath
=no
14144 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14145 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
14146 hardcode_into_libs
=yes
14149 # No shared lib support for Linux oldld, aout, or coff.
14150 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
14154 # This must be Linux ELF.
14155 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
14159 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14160 soname_spec
='${libname}${release}${shared_ext}$major'
14161 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14162 shlibpath_var
=LD_LIBRARY_PATH
14163 shlibpath_overrides_runpath
=no
14165 # Some binutils ld are patched to set DT_RUNPATH
14166 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
14167 $as_echo_n "(cached) " >&6
14169 lt_cv_shlibpath_overrides_runpath
=no
14170 save_LDFLAGS
=$LDFLAGS
14171 save_libdir
=$libdir
14172 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14173 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14175 /* end confdefs.h. */
14185 if ac_fn_cxx_try_link
"$LINENO"; then :
14186 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
14187 lt_cv_shlibpath_overrides_runpath
=yes
14190 rm -f core conftest.err conftest.
$ac_objext \
14191 conftest
$ac_exeext conftest.
$ac_ext
14192 LDFLAGS
=$save_LDFLAGS
14193 libdir
=$save_libdir
14197 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
14199 # This implies no fast_install, which is unacceptable.
14200 # Some rework will be needed to allow for fast_install
14201 # before this can be enabled.
14202 hardcode_into_libs
=yes
14204 # Append ld.so.conf contents to the search path
14205 if test -f /etc
/ld.so.conf
; then
14206 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' ' '`
14207 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
14210 # We used to test for /lib/ld.so.1 and disable shared libraries on
14211 # powerpc, because MkLinux only supported shared libraries with the
14212 # GNU dynamic linker. Since this was broken with cross compilers,
14213 # most powerpc-linux boxes support dynamic linking these days and
14214 # people can always --disable-shared, the test was removed, and we
14215 # assume the GNU/Linux dynamic linker is in use.
14216 dynamic_linker
='GNU/Linux ld.so'
14223 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
14224 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14225 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14226 dynamic_linker
='NetBSD (a.out) ld.so'
14228 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14229 soname_spec
='${libname}${release}${shared_ext}$major'
14230 dynamic_linker
='NetBSD ld.elf_so'
14232 shlibpath_var
=LD_LIBRARY_PATH
14233 shlibpath_overrides_runpath
=yes
14234 hardcode_into_libs
=yes
14239 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14240 shlibpath_var
=LD_LIBRARY_PATH
14241 shlibpath_overrides_runpath
=yes
14248 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14249 soname_spec
='${libname}${release}${shared_ext}$major'
14250 shlibpath_var
=LD_LIBRARY_PATH
14251 shlibpath_overrides_runpath
=no
14252 hardcode_into_libs
=yes
14253 dynamic_linker
='ldqnx.so'
14258 sys_lib_dlsearch_path_spec
="/usr/lib"
14260 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14262 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
14263 *) need_version
=no
;;
14265 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14266 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14267 shlibpath_var
=LD_LIBRARY_PATH
14268 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14270 openbsd2.
[89] | openbsd2.
[89].
*)
14271 shlibpath_overrides_runpath
=no
14274 shlibpath_overrides_runpath
=yes
14278 shlibpath_overrides_runpath
=yes
14283 libname_spec
='$name'
14286 library_names_spec
='$libname${shared_ext} $libname.a'
14287 dynamic_linker
='OS/2 ld.exe'
14288 shlibpath_var
=LIBPATH
14291 osf3
* | osf4
* | osf5
*)
14295 soname_spec
='${libname}${release}${shared_ext}$major'
14296 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14297 shlibpath_var
=LD_LIBRARY_PATH
14298 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14299 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
14310 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14311 soname_spec
='${libname}${release}${shared_ext}$major'
14312 shlibpath_var
=LD_LIBRARY_PATH
14313 shlibpath_overrides_runpath
=yes
14314 hardcode_into_libs
=yes
14315 # ldd complains unless libraries are executable
14316 postinstall_cmds
='chmod +x $lib'
14321 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14322 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14323 shlibpath_var
=LD_LIBRARY_PATH
14324 shlibpath_overrides_runpath
=yes
14325 if test "$with_gnu_ld" = yes; then
14333 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14334 soname_spec
='${libname}${release}${shared_ext}$major'
14335 shlibpath_var
=LD_LIBRARY_PATH
14336 case $host_vendor in
14338 shlibpath_overrides_runpath
=no
14340 runpath_var
=LD_RUN_PATH
14348 shlibpath_overrides_runpath
=no
14349 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
14355 if test -d /usr
/nec
;then
14357 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14358 soname_spec
='$libname${shared_ext}.$major'
14359 shlibpath_var
=LD_LIBRARY_PATH
14363 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
14364 version_type
=freebsd-elf
14367 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14368 soname_spec
='${libname}${release}${shared_ext}$major'
14369 shlibpath_var
=LD_LIBRARY_PATH
14370 shlibpath_overrides_runpath
=yes
14371 hardcode_into_libs
=yes
14372 if test "$with_gnu_ld" = yes; then
14373 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14375 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
14378 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
14382 sys_lib_dlsearch_path_spec
='/usr/lib'
14386 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14390 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14391 shlibpath_var
=LD_LIBRARY_PATH
14392 shlibpath_overrides_runpath
=no
14393 hardcode_into_libs
=yes
14398 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14399 soname_spec
='${libname}${release}${shared_ext}$major'
14400 shlibpath_var
=LD_LIBRARY_PATH
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14408 $as_echo "$dynamic_linker" >&6; }
14409 test "$dynamic_linker" = no
&& can_build_shared
=no
14411 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
14412 if test "$GCC" = yes; then
14413 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14416 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14417 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
14419 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14420 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14461 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14462 hardcode_action_CXX
=
14463 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14464 test -n "$runpath_var_CXX" ||
14465 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14467 # We can hardcode non-existent directories.
14468 if test "$hardcode_direct_CXX" != no
&&
14469 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14470 # have to relink, otherwise we might link with an installed library
14471 # when we should be linking with a yet-to-be-installed one
14472 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14473 test "$hardcode_minus_L_CXX" != no
; then
14474 # Linking always hardcodes the temporary library directory.
14475 hardcode_action_CXX
=relink
14477 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14478 hardcode_action_CXX
=immediate
14481 # We cannot hardcode anything, or else we can only hardcode existing
14483 hardcode_action_CXX
=unsupported
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14486 $as_echo "$hardcode_action_CXX" >&6; }
14488 if test "$hardcode_action_CXX" = relink ||
14489 test "$inherit_rpath_CXX" = yes; then
14490 # Fast installation is not supported
14491 enable_fast_install
=no
14492 elif test "$shlibpath_overrides_runpath" = yes ||
14493 test "$enable_shared" = no
; then
14494 # Fast installation is not necessary
14495 enable_fast_install
=needless
14504 fi # test -n "$compiler"
14510 with_gnu_ld
=$lt_save_with_gnu_ld
14511 lt_cv_path_LDCXX
=$lt_cv_path_LD
14512 lt_cv_path_LD
=$lt_save_path_LD
14513 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
14514 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
14515 fi # test "$_lt_caught_CXX_error" != yes
14518 ac_cpp
='$CPP $CPPFLAGS'
14519 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14520 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14521 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14526 if test "$GXX" = yes; then
14527 visibility
=-fvisibility=hidden
14531 ac_fn_c_check_decl
"$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
14532 if test "x$ac_cv_have_decl_basename" = xyes
; then :
14538 cat >>confdefs.h
<<_ACEOF
14539 #define HAVE_DECL_BASENAME $ac_have_decl
14544 get_gcc_base_ver
="cat"
14546 # Check whether --with-gcc-major-version-only was given.
14547 if test "${with_gcc_major_version_only+set}" = set; then :
14548 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
14549 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
14557 if test x
$with_gcc_major_version_only = xyes
; then
14558 gcc_version
=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/../gcc/BASE-VER`
14560 gcc_version
=`cat $srcdir/../gcc/BASE-VER`
14563 CONFIG_STATUS_DEPENDENCIES
='$(top_srcdir)/../gcc/BASE-VER'
14567 ac_cpp
='$CPP $CPPFLAGS'
14568 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14569 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14570 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14573 save_CFLAGS
="$CFLAGS"
14574 for real_option
in -W -Wall; do
14575 # Do the check with the no- prefix removed since gcc silently
14576 # accepts any -Wno-* option on purpose
14577 case $real_option in
14578 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
14579 *) option
=$real_option ;;
14581 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
14584 $as_echo_n "checking whether $CC supports $option... " >&6; }
14585 if eval \
${$as_acx_Woption+:} false
; then :
14586 $as_echo_n "(cached) " >&6
14589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14590 /* end confdefs.h. */
14600 if ac_fn_c_try_compile
"$LINENO"; then :
14601 eval "$as_acx_Woption=yes"
14603 eval "$as_acx_Woption=no"
14605 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14608 eval ac_res
=\$
$as_acx_Woption
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14610 $as_echo "$ac_res" >&6; }
14611 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
14612 WARN_FLAGS
="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
14615 CFLAGS
="$save_CFLAGS"
14617 ac_cpp
='$CPP $CPPFLAGS'
14618 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14619 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14620 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14625 ac_cpp
='$CPP $CPPFLAGS'
14626 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14627 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14628 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14631 # Check whether --enable-werror-always was given.
14632 if test "${enable_werror_always+set}" = set; then :
14633 enableval
=$enable_werror_always;
14635 enable_werror_always
=no
14638 if test $enable_werror_always = yes; then :
14639 WERROR
="$WERROR${WERROR:+ }-Werror"
14643 ac_cpp
='$CPP $CPPFLAGS'
14644 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14645 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14646 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14653 if test "$GXX" = yes; then
14654 libsuffix
=`$CXX -print-multi-os-directory`
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14659 $as_echo_n "checking for socket libraries... " >&6; }
14660 if ${libcc1_cv_lib_sockets+:} false
; then :
14661 $as_echo_n "(cached) " >&6
14663 libcc1_cv_lib_sockets
=
14664 libcc1_check_both
=no
14665 ac_fn_c_check_func
"$LINENO" "connect" "ac_cv_func_connect"
14666 if test "x$ac_cv_func_connect" = xyes
; then :
14667 libcc1_check_socket
=no
14669 libcc1_check_socket
=yes
14672 if test "$libcc1_check_socket" = "yes"; then
14673 unset ac_cv_func_connect
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14675 $as_echo_n "checking for main in -lsocket... " >&6; }
14676 if ${ac_cv_lib_socket_main+:} false
; then :
14677 $as_echo_n "(cached) " >&6
14679 ac_check_lib_save_LIBS
=$LIBS
14680 LIBS
="-lsocket $LIBS"
14681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14682 /* end confdefs.h. */
14693 if ac_fn_c_try_link
"$LINENO"; then :
14694 ac_cv_lib_socket_main
=yes
14696 ac_cv_lib_socket_main
=no
14698 rm -f core conftest.err conftest.
$ac_objext \
14699 conftest
$ac_exeext conftest.
$ac_ext
14700 LIBS
=$ac_check_lib_save_LIBS
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14703 $as_echo "$ac_cv_lib_socket_main" >&6; }
14704 if test "x$ac_cv_lib_socket_main" = xyes
; then :
14705 libcc1_cv_lib_sockets
="-lsocket"
14707 libcc1_check_both
=yes
14711 if test "$libcc1_check_both" = "yes"; then
14712 libcc1_old_libs
=$LIBS
14713 LIBS
="$LIBS -lsocket -lnsl"
14714 unset ac_cv_func_accept
14715 ac_fn_c_check_func
"$LINENO" "accept" "ac_cv_func_accept"
14716 if test "x$ac_cv_func_accept" = xyes
; then :
14717 libcc1_check_nsl
=no
14718 libcc1_cv_lib_sockets
="-lsocket -lnsl"
14721 unset ac_cv_func_accept
14722 LIBS
=$libcc1_old_libs
14724 unset ac_cv_func_gethostbyname
14725 libcc1_old_libs
="$LIBS"
14726 ac_fn_c_check_func
"$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14727 if test "x$ac_cv_func_gethostbyname" = xyes
; then :
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14731 $as_echo_n "checking for main in -lnsl... " >&6; }
14732 if ${ac_cv_lib_nsl_main+:} false
; then :
14733 $as_echo_n "(cached) " >&6
14735 ac_check_lib_save_LIBS
=$LIBS
14737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14738 /* end confdefs.h. */
14749 if ac_fn_c_try_link
"$LINENO"; then :
14750 ac_cv_lib_nsl_main
=yes
14752 ac_cv_lib_nsl_main
=no
14754 rm -f core conftest.err conftest.
$ac_objext \
14755 conftest
$ac_exeext conftest.
$ac_ext
14756 LIBS
=$ac_check_lib_save_LIBS
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14759 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14760 if test "x$ac_cv_lib_nsl_main" = xyes
; then :
14761 libcc1_cv_lib_sockets
="$libcc1_cv_lib_sockets -lnsl"
14766 unset ac_cv_func_gethostbyname
14767 LIBS
=$libcc1_old_libs
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcc1_cv_lib_sockets" >&5
14771 $as_echo "$libcc1_cv_lib_sockets" >&6; }
14772 LIBS
="$LIBS $libcc1_cv_lib_sockets"
14774 # If any of these functions are missing, simply don't bother building
14776 # Check for plugin support
14777 # Check whether --enable-plugin was given.
14778 if test "${enable_plugin+set}" = set; then :
14779 enableval
=$enable_plugin; enable_plugin
=$enableval
14781 enable_plugin
=yes; default_plugin
=yes
14790 # Since plugin support under MinGW is not as straightforward as on
14791 # other platforms (e.g., we have to link import library, etc), we
14792 # only enable it if explicitly requested.
14793 if test x
"$default_plugin" = x
"yes"; then
14795 elif test x
"$enable_plugin" = x
"yes"; then
14796 # Use make's target variable to derive import library name.
14797 pluginlibs
='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
14802 if test x
$build = x
$host; then
14803 export_sym_check
="nm${exeext} -g"
14804 elif test x
$host = x
$target; then
14805 export_sym_check
="$gcc_cv_nm -g"
14811 if test x
$build = x
$host; then
14812 export_sym_check
="objdump${exeext} -T"
14813 elif test x
$host = x
$target; then
14814 export_sym_check
="$gcc_cv_objdump -T"
14821 if test x
"$enable_plugin" = x
"yes" -a x
"$plugin_check" = x
"yes"; then
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
14824 $as_echo_n "checking for exported symbols... " >&6; }
14825 if test "x$export_sym_check" != x
; then
14826 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
14827 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
14828 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
14829 : # No need to use a flag
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14831 $as_echo "yes" >&6; }
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14834 $as_echo "yes" >&6; }
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
14836 $as_echo_n "checking for -rdynamic... " >&6; }
14837 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
14838 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
14839 plugin_rdynamic
=yes
14840 pluginlibs
="-rdynamic"
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
14846 $as_echo "$plugin_rdynamic" >&6; }
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
14850 $as_echo "unable to check" >&6; }
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
14856 $as_echo_n "checking for library containing dlopen... " >&6; }
14857 if ${ac_cv_search_dlopen+:} false
; then :
14858 $as_echo_n "(cached) " >&6
14860 ac_func_search_save_LIBS
=$LIBS
14861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14862 /* end confdefs.h. */
14864 /* Override any GCC internal prototype to avoid an error.
14865 Use char because int might match the return type of a GCC
14866 builtin and then its argument prototype would still apply. */
14879 for ac_lib
in '' dl
; do
14880 if test -z "$ac_lib"; then
14881 ac_res
="none required"
14884 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14886 if ac_fn_c_try_link
"$LINENO"; then :
14887 ac_cv_search_dlopen
=$ac_res
14889 rm -f core conftest.err conftest.
$ac_objext \
14891 if ${ac_cv_search_dlopen+:} false
; then :
14895 if ${ac_cv_search_dlopen+:} false
; then :
14898 ac_cv_search_dlopen
=no
14900 rm conftest.
$ac_ext
14901 LIBS
=$ac_func_search_save_LIBS
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
14904 $as_echo "$ac_cv_search_dlopen" >&6; }
14905 ac_res
=$ac_cv_search_dlopen
14906 if test "$ac_res" != no
; then :
14907 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14911 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
14912 pluginlibs
="$pluginlibs -ldl"
14916 # Check that we can build shared objects with -fPIC -shared
14917 saved_LDFLAGS
="$LDFLAGS"
14918 saved_CFLAGS
="$CFLAGS"
14921 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
14922 CFLAGS
="$CFLAGS -fPIC"
14923 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
14926 CFLAGS
="$CFLAGS -fPIC"
14927 LDFLAGS
="$LDFLAGS -fPIC -shared"
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
14931 $as_echo_n "checking for -fPIC -shared... " >&6; }
14932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14933 /* end confdefs.h. */
14943 if ac_fn_c_try_link
"$LINENO"; then :
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14945 $as_echo "yes" >&6; }; have_pic_shared
=yes
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14948 $as_echo "no" >&6; }; have_pic_shared
=no
14950 rm -f core conftest.err conftest.
$ac_objext \
14951 conftest
$ac_exeext conftest.
$ac_ext
14952 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
14956 LDFLAGS
="$saved_LDFLAGS"
14957 CFLAGS
="$saved_CFLAGS"
14959 # If plugin support had been requested but not available, fail.
14960 if test x
"$enable_plugin" = x
"no" ; then
14961 if test x
"$default_plugin" != x
"yes"; then
14963 Building GCC with plugin support requires a host that supports
14964 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
14969 ac_fn_c_check_func
"$LINENO" "socketpair" "ac_cv_func_socketpair"
14970 if test "x$ac_cv_func_socketpair" = xyes
; then :
14976 ac_fn_c_check_func
"$LINENO" "select" "ac_cv_func_select"
14977 if test "x$ac_cv_func_select" = xyes
; then :
14983 ac_fn_c_check_func
"$LINENO" "fork" "ac_cv_func_fork"
14984 if test "x$ac_cv_func_fork" = xyes
; then :
14990 if test $enable_plugin = yes; then
14991 ENABLE_PLUGIN_TRUE
=
14992 ENABLE_PLUGIN_FALSE
='#'
14994 ENABLE_PLUGIN_TRUE
='#'
14995 ENABLE_PLUGIN_FALSE
=
14999 ac_config_files
="$ac_config_files Makefile"
15001 cat >confcache
<<\_ACEOF
15002 # This file is a shell script that caches the results of configure
15003 # tests run on this system so they can be shared between configure
15004 # scripts and configure runs, see configure's option --config-cache.
15005 # It is not useful on other systems. If it contains results you don't
15006 # want to keep, you may remove or edit it.
15008 # config.status only pays attention to the cache file if you give it
15009 # the --recheck option to rerun configure.
15011 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15012 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15013 # following values.
15017 # The following way of writing the cache mishandles newlines in values,
15018 # but we know of no workaround that is simple, portable, and efficient.
15019 # So, we kill variables containing newlines.
15020 # Ultrix sh set writes to stderr and can't be redirected directly,
15021 # and sets the high bit in the cache file unless we assign to the vars.
15023 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15024 eval ac_val
=\$
$ac_var
15028 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15029 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15032 _ | IFS | as_nl
) ;; #(
15033 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15034 *) { eval $ac_var=; unset $ac_var;} ;;
15040 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15041 *${as_nl}ac_space
=\
*)
15042 # `set' does not quote correctly, so add quotes: double-quote
15043 # substitution turns \\\\ into \\, and sed turns \\ into \.
15046 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15049 # `set' quotes correctly as required by POSIX, so do not add quotes.
15050 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15059 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15061 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15063 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15064 if test -w "$cache_file"; then
15065 if test "x$cache_file" != "x/dev/null"; then
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15067 $as_echo "$as_me: updating cache $cache_file" >&6;}
15068 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
15069 cat confcache
>"$cache_file"
15071 case $cache_file in #(
15073 mv -f confcache
"$cache_file"$$
&&
15074 mv -f "$cache_file"$$
"$cache_file" ;; #(
15076 mv -f confcache
"$cache_file" ;;
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15082 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15087 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15088 # Let make expand exec_prefix.
15089 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15091 DEFS
=-DHAVE_CONFIG_H
15096 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15097 # 1. Remove the extension, and $U if already installed.
15098 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15099 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15100 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15101 # will be set to the directory where LIBOBJS objects are built.
15102 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15103 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15105 LIBOBJS
=$ac_libobjs
15107 LTLIBOBJS
=$ac_ltlibobjs
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15111 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15112 if test -n "$am_sleep_pid"; then
15113 # Hide warnings about reused PIDs.
15114 wait $am_sleep_pid 2>/dev
/null
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15117 $as_echo "done" >&6; }
15118 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15119 as_fn_error $?
"conditional \"AMDEP\" was never defined.
15120 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15122 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15123 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
15124 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15126 if test -n "$EXEEXT"; then
15128 am__EXEEXT_FALSE
='#'
15130 am__EXEEXT_TRUE
='#'
15134 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15135 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
15136 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15138 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15139 as_fn_error $?
"conditional \"am__fastdepCXX\" was never defined.
15140 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15142 if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then
15143 as_fn_error $?
"conditional \"ENABLE_PLUGIN\" was never defined.
15144 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15147 : "${CONFIG_STATUS=./config.status}"
15149 ac_clean_files_save
=$ac_clean_files
15150 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15152 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15154 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15156 # Generated by $as_me.
15157 # Run this file to recreate the current configuration.
15158 # Compiler output produced by configure, useful for debugging
15159 # configure, is in config.log if it exists.
15162 ac_cs_recheck=false
15165 SHELL=\${CONFIG_SHELL-$SHELL}
15168 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15169 ## -------------------- ##
15170 ## M4sh Initialization. ##
15171 ## -------------------- ##
15173 # Be more Bourne compatible
15174 DUALCASE
=1; export DUALCASE
# for MKS sh
15175 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15178 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15179 # is contrary to our usage. Disable this feature.
15180 alias -g '${1+"$@"}'='"$@"'
15181 setopt NO_GLOB_SUBST
15183 case `(set -o) 2>/dev/null` in #(
15195 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15196 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15197 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15198 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15199 # Prefer a ksh shell builtin over an external printf program on Solaris,
15200 # but without wasting forks for bash or zsh.
15201 if test -z "$BASH_VERSION$ZSH_VERSION" \
15202 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15203 as_echo='print
-r --'
15204 as_echo_n='print
-rn --'
15205 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15206 as_echo='printf %s
\n'
15207 as_echo_n='printf %s
'
15209 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15210 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15211 as_echo_n='/usr
/ucb
/echo -n'
15213 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15214 as_echo_n_body='eval
15218 expr "X$arg" : "X\\(.*\\)$as_nl";
15219 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15221 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15223 export as_echo_n_body
15224 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15226 export as_echo_body
15227 as_echo='sh
-c $as_echo_body as_echo
'
15230 # The user is always right.
15231 if test "${PATH_SEPARATOR+set}" != set; then
15233 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15234 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15241 # We need space, tab and new line, in precisely that order. Quoting is
15242 # there to prevent editors from complaining about space-tab.
15243 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15244 # splitting by setting IFS to empty value.)
15247 # Find who we are. Look in the path if we contain no directory separator.
15250 *[\\/]* ) as_myself=$0 ;;
15251 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15252 for as_dir in $PATH
15255 test -z "$as_dir" && as_dir=.
15256 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15262 # We did not find ourselves, most probably we were run as `sh COMMAND'
15263 # in which case we are not to be found in the path.
15264 if test "x$as_myself" = x
; then
15267 if test ! -f "$as_myself"; then
15268 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15272 # Unset variables that we do not need and which cause bugs (e.g. in
15273 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15274 # suppresses any "Segmentation fault" message there. '((' could
15275 # trigger a bug in pdksh 5.2.14.
15276 for as_var
in BASH_ENV ENV MAIL MAILPATH
15277 do eval test x\
${$as_var+set} = xset \
15278 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15291 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15294 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15295 # ----------------------------------------
15296 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15297 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15298 # script with STATUS, using 1 if that was 0.
15301 as_status
=$1; test $as_status -eq 0 && as_status
=1
15303 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15304 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15306 $as_echo "$as_me: error: $2" >&2
15307 as_fn_exit
$as_status
15311 # as_fn_set_status STATUS
15312 # -----------------------
15313 # Set $? to STATUS, without forking.
15314 as_fn_set_status
()
15317 } # as_fn_set_status
15319 # as_fn_exit STATUS
15320 # -----------------
15321 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15325 as_fn_set_status
$1
15331 # Portably unset VAR.
15334 { eval $1=; unset $1;}
15336 as_unset
=as_fn_unset
15337 # as_fn_append VAR VALUE
15338 # ----------------------
15339 # Append the text in VALUE to the end of the definition contained in VAR. Take
15340 # advantage of any shell optimizations that allow amortized linear growth over
15341 # repeated appends, instead of the typical quadratic growth present in naive
15343 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15344 eval 'as_fn_append ()
15355 # as_fn_arith ARG...
15356 # ------------------
15357 # Perform arithmetic evaluation on the ARGs, and store the result in the
15358 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15359 # must be portable across $(()) and expr.
15360 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15361 eval 'as_fn_arith ()
15368 as_val
=`expr "$@" || test $? -eq 1`
15373 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15374 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15380 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15381 as_basename
=basename
15386 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15392 as_me
=`$as_basename -- "$0" ||
15393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15394 X"$0" : 'X\(//\)$' \| \
15395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15397 sed '/^.*\/\([^/][^/]*\)\/*$/{
15411 # Avoid depending upon Character Ranges.
15412 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15413 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15414 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15415 as_cr_digits
='0123456789'
15416 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15418 ECHO_C
= ECHO_N
= ECHO_T
=
15419 case `echo -n x` in #(((((
15421 case `echo 'xy\c'` in
15422 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15424 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15431 rm -f conf$$ conf$$.exe conf$$.
file
15432 if test -d conf$$.dir
; then
15433 rm -f conf$$.dir
/conf$$.
file
15436 mkdir conf$$.dir
2>/dev
/null
15438 if (echo >conf$$.
file) 2>/dev
/null
; then
15439 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15441 # ... but there are two gotchas:
15442 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15443 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15444 # In both cases, we have to default to `cp -pR'.
15445 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15447 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15455 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15456 rmdir conf$$.dir
2>/dev
/null
15461 # Create "$as_dir" as a directory, including parents if necessary.
15466 -*) as_dir
=.
/$as_dir;;
15468 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15472 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15473 *) as_qdir
=$as_dir;;
15475 as_dirs
="'$as_qdir' $as_dirs"
15476 as_dir
=`$as_dirname -- "$as_dir" ||
15477 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15478 X"$as_dir" : 'X\(//\)[^/]' \| \
15479 X"$as_dir" : 'X\(//\)$' \| \
15480 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15481 $as_echo X"$as_dir" |
15482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15486 /^X\(\/\/\)[^/].*/{
15499 test -d "$as_dir" && break
15501 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15502 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
15506 if mkdir
-p .
2>/dev
/null
; then
15507 as_mkdir_p
='mkdir -p "$as_dir"'
15509 test -d .
/-p && rmdir .
/-p
15514 # as_fn_executable_p FILE
15515 # -----------------------
15516 # Test if FILE is an executable regular file.
15517 as_fn_executable_p
()
15519 test -f "$1" && test -x "$1"
15520 } # as_fn_executable_p
15521 as_test_x
='test -x'
15522 as_executable_p
=as_fn_executable_p
15524 # Sed expression to map a string onto a valid CPP name.
15525 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15527 # Sed expression to map a string onto a valid variable name.
15528 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15532 ## ----------------------------------- ##
15533 ## Main body of $CONFIG_STATUS script. ##
15534 ## ----------------------------------- ##
15536 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15539 # Save the log message, to keep $0 and so on meaningful, and to
15540 # report actual input values of CONFIG_FILES etc. instead of their
15541 # values after options handling.
15543 This file was extended by libcc1 $as_me version-unused, which was
15544 generated by GNU Autoconf 2.69. Invocation command line was
15546 CONFIG_FILES = $CONFIG_FILES
15547 CONFIG_HEADERS = $CONFIG_HEADERS
15548 CONFIG_LINKS = $CONFIG_LINKS
15549 CONFIG_COMMANDS = $CONFIG_COMMANDS
15552 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15557 case $ac_config_files in *"
15558 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15561 case $ac_config_headers in *"
15562 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
15566 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15567 # Files that config.status was made for.
15568 config_files="$ac_config_files"
15569 config_headers="$ac_config_headers"
15570 config_commands="$ac_config_commands"
15574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15576 \`$as_me' instantiates files and other configuration actions
15577 from templates according to the current configuration. Unless the files
15578 and actions are specified as TAGs, all are instantiated by default.
15580 Usage: $0 [OPTION]... [TAG]...
15582 -h, --help print this help, then exit
15583 -V, --version print version number and configuration settings, then exit
15584 --config print configuration, then exit
15585 -q, --quiet, --silent
15586 do not print progress messages
15587 -d, --debug don't remove temporary files
15588 --recheck update $as_me by reconfiguring in the same conditions
15589 --file=FILE[:TEMPLATE]
15590 instantiate the configuration file FILE
15591 --header=FILE[:TEMPLATE]
15592 instantiate the configuration header FILE
15594 Configuration files:
15597 Configuration headers:
15600 Configuration commands:
15603 Report bugs to the package provider."
15606 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15607 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15609 libcc1 config.status version-unused
15610 configured by $0, generated by GNU Autoconf 2.69,
15611 with options \\"\$ac_cs_config\\"
15613 Copyright (C) 2012 Free Software Foundation, Inc.
15614 This config.status script is free software; the Free Software Foundation
15615 gives unlimited permission to copy, distribute and modify it."
15622 test -n "\$AWK" || AWK=awk
15625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15626 # The default lists apply if the user does not specify any file.
15632 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15633 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15637 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15649 # Handling of the options.
15650 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15652 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15653 $as_echo "$ac_cs_version"; exit ;;
15654 --config |
--confi |
--conf |
--con |
--co |
--c )
15655 $as_echo "$ac_cs_config"; exit ;;
15656 --debug |
--debu |
--deb |
--de |
--d |
-d )
15658 --file |
--fil |
--fi |
--f )
15661 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15662 '') as_fn_error $?
"missing file argument" ;;
15664 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15665 ac_need_defaults
=false
;;
15666 --header |
--heade |
--head |
--hea )
15669 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15671 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
15672 ac_need_defaults
=false
;;
15674 # Conflict between --help and --header
15675 as_fn_error $?
"ambiguous option: \`$1'
15676 Try \`$0 --help' for more information.";;
15677 --help |
--hel |
-h )
15678 $as_echo "$ac_cs_usage"; exit ;;
15679 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15680 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15683 # This is an error.
15684 -*) as_fn_error $?
"unrecognized option: \`$1'
15685 Try \`$0 --help' for more information." ;;
15687 *) as_fn_append ac_config_targets
" $1"
15688 ac_need_defaults
=false
;;
15694 ac_configure_extra_args
=
15696 if $ac_cs_silent; then
15698 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15702 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15703 if \$ac_cs_recheck; then
15704 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15706 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15707 CONFIG_SHELL='$SHELL'
15708 export CONFIG_SHELL
15713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15717 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15718 ## Running $as_me. ##
15724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15728 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15731 # The HP-UX ksh and POSIX shell print the target directory to stdout
15732 # if CDPATH is set.
15733 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15735 sed_quote_subst='$sed_quote_subst'
15736 double_quote_subst='$double_quote_subst'
15737 delay_variable_subst='$delay_variable_subst'
15738 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15739 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15740 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15741 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15742 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15743 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15744 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15745 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15746 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15747 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15748 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15749 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15750 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15751 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15752 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15753 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15754 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15755 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15756 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15757 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15758 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15759 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15760 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15761 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15762 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15763 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15764 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15765 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15766 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15767 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15768 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15769 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15770 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15771 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15772 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15773 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15774 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15775 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15776 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15777 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15778 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15779 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15780 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15781 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15782 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15783 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15784 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15785 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15786 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"`'
15787 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15788 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15789 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15790 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15791 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15792 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15793 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15794 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15795 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15796 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15797 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15798 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15799 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15800 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15801 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15802 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15803 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15804 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15805 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15806 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15807 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15808 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15809 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15810 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15811 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15812 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15813 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15814 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15815 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15816 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15817 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15818 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15819 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15820 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15821 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15822 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15823 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15824 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15825 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15826 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15827 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15828 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15829 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15830 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15831 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15832 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15833 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15834 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15835 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15836 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15837 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15838 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15839 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15840 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15841 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15842 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15843 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15844 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15845 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15846 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15847 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15848 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15849 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15850 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15851 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15852 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15853 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15854 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15855 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15856 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15857 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15858 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15859 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15860 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15861 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15862 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15863 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15864 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15865 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15866 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15867 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15868 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15869 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15870 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15871 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15872 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15873 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15874 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15875 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15876 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15877 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15878 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15879 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15880 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15881 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15882 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15883 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15884 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15885 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15886 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15887 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15888 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15889 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15890 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15891 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15892 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15893 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15894 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15895 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15896 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15897 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15898 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15899 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15900 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15901 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15902 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15903 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15904 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15905 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15906 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15907 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15908 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15909 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15910 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15911 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15912 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15915 LTCFLAGS='$LTCFLAGS'
15916 compiler='$compiler_DEFAULT'
15918 # A function that is used when there is no print builtin or printf.
15919 func_fallback_echo ()
15921 eval 'cat <<_LTECHO_EOF
15926 # Quote evaled strings.
15940 deplibs_check_method \
15949 lt_cv_sys_global_symbol_pipe \
15950 lt_cv_sys_global_symbol_to_cdecl \
15951 lt_cv_sys_global_symbol_to_c_name_address \
15952 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15953 lt_prog_compiler_no_builtin_flag \
15954 lt_prog_compiler_wl \
15955 lt_prog_compiler_pic \
15956 lt_prog_compiler_static \
15957 lt_cv_prog_compiler_c_o \
15965 export_dynamic_flag_spec \
15966 whole_archive_flag_spec \
15967 compiler_needs_object \
15969 allow_undefined_flag \
15970 no_undefined_flag \
15971 hardcode_libdir_flag_spec \
15972 hardcode_libdir_flag_spec_ld \
15973 hardcode_libdir_separator \
15978 variables_saved_for_relink \
15980 library_names_spec \
15982 install_override_mode \
15986 compiler_lib_search_dirs \
15991 compiler_lib_search_path \
15995 lt_prog_compiler_no_builtin_flag_CXX \
15996 lt_prog_compiler_wl_CXX \
15997 lt_prog_compiler_pic_CXX \
15998 lt_prog_compiler_static_CXX \
15999 lt_cv_prog_compiler_c_o_CXX \
16000 export_dynamic_flag_spec_CXX \
16001 whole_archive_flag_spec_CXX \
16002 compiler_needs_object_CXX \
16004 allow_undefined_flag_CXX \
16005 no_undefined_flag_CXX \
16006 hardcode_libdir_flag_spec_CXX \
16007 hardcode_libdir_flag_spec_ld_CXX \
16008 hardcode_libdir_separator_CXX \
16009 fix_srcfile_path_CXX \
16010 exclude_expsyms_CXX \
16011 include_expsyms_CXX \
16012 file_list_spec_CXX \
16013 compiler_lib_search_dirs_CXX \
16014 predep_objects_CXX \
16015 postdep_objects_CXX \
16018 compiler_lib_search_path_CXX; do
16019 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16020 *[\\\\\\\`\\"\\\$]*)
16021 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16024 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16029 # Double-quote double-evaled strings.
16030 for var in reload_cmds \
16031 old_postinstall_cmds \
16032 old_postuninstall_cmds \
16034 extract_expsyms_cmds \
16035 old_archive_from_new_cmds \
16036 old_archive_from_expsyms_cmds \
16038 archive_expsym_cmds \
16040 module_expsym_cmds \
16041 export_symbols_cmds \
16044 postuninstall_cmds \
16046 sys_lib_search_path_spec \
16047 sys_lib_dlsearch_path_spec \
16049 old_archive_cmds_CXX \
16050 old_archive_from_new_cmds_CXX \
16051 old_archive_from_expsyms_cmds_CXX \
16053 archive_expsym_cmds_CXX \
16055 module_expsym_cmds_CXX \
16056 export_symbols_cmds_CXX \
16057 prelink_cmds_CXX; do
16058 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16059 *[\\\\\\\`\\"\\\$]*)
16060 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16063 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16068 ac_aux_dir='$ac_aux_dir'
16069 xsi_shell='$xsi_shell'
16070 lt_shell_append='$lt_shell_append'
16072 # See if we are running on zsh, and set the options which allow our
16073 # commands through without removal of \ escapes INIT.
16074 if test -n "\${ZSH_VERSION+set}" ; then
16075 setopt NO_GLOB_SUBST
16081 TIMESTAMP='$TIMESTAMP'
16092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16094 # Handling of arguments.
16095 for ac_config_target
in $ac_config_targets
16097 case $ac_config_target in
16098 "cc1plugin-config.h") CONFIG_HEADERS
="$CONFIG_HEADERS cc1plugin-config.h" ;;
16099 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
16100 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
16101 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16103 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16108 # If the user did not use the arguments to specify the items to instantiate,
16109 # then the envvar interface is used. Set only those that are not.
16110 # We use the long form for the default assignment because of an extremely
16111 # bizarre bug on SunOS 4.1.3.
16112 if $ac_need_defaults; then
16113 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16114 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16115 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16118 # Have a temporary directory for convenience. Make it in the build tree
16119 # simply because there is no reason against having it here, and in addition,
16120 # creating and moving files from /tmp can sometimes cause problems.
16121 # Hook for its removal unless debugging.
16122 # Note that there is a small window in which the directory will not be cleaned:
16123 # after its creation but before its name has been assigned to `$tmp'.
16127 trap 'exit_status=$?
16128 : "${ac_tmp:=$tmp}"
16129 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16131 trap 'as_fn_exit 1' 1 2 13 15
16133 # Create a (secure) tmp directory for tmp files.
16136 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16140 tmp
=.
/conf$$
-$RANDOM
16141 (umask 077 && mkdir
"$tmp")
16142 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
16145 # Set up the scripts for CONFIG_FILES section.
16146 # No need to generate them if there are no CONFIG_FILES.
16147 # This happens for instance with `./config.status config.h'.
16148 if test -n "$CONFIG_FILES"; then
16151 ac_cr
=`echo X | tr X '\015'`
16152 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16153 # But we know of no other shell where ac_cr would be empty at this
16154 # point, so we can use a bashism as a fallback.
16155 if test "x$ac_cr" = x
; then
16156 eval ac_cr
=\$
\'\\r
\'
16158 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16159 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16162 ac_cs_awk_cr
=$ac_cr
16165 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16170 echo "cat >conf$$subs.awk <<_ACEOF" &&
16171 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16173 } >conf$$subs.sh ||
16174 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16175 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16177 for ac_last_try in false false false false false :; do
16178 . ./conf$$subs.sh ||
16179 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16181 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16182 if test $ac_delim_n = $ac_delim_num; then
16184 elif $ac_last_try; then
16185 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16187 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16190 rm -f conf$$subs.sh
16192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16193 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
16197 s/^/S["/; s
/!.
*/"]=/
16207 s/\(.\{148\}\)..*/\1/
16209 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16214 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16221 s/\(.\{148\}\)..*/\1/
16223 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16227 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16232 ' <conf$$subs.awk | sed '
16237 ' >>$CONFIG_STATUS || ac_write_fail=1
16238 rm -f conf$$subs.awk
16239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16241 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
16242 for (key in S) S_is_set[key] = 1
16248 nfields = split(line, field, "@
")
16250 len = length(field[1])
16251 for (i = 2; i < nfields; i++) {
16253 keylen = length(key)
16254 if (S_is_set[key]) {
16256 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16257 len += length(value) + length(field[++i])
16268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16269 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16270 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16273 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
16274 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
16277 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16278 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
16279 # trailing colons and then remove the whole line if VPATH becomes empty
16280 # (actually we leave an empty line to preserve line numbers).
16281 if test "x
$srcdir" = x.; then
16282 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16301 fi # test -n "$CONFIG_FILES"
16303 # Set up the scripts for CONFIG_HEADERS section.
16304 # No need to generate them if there are no CONFIG_HEADERS.
16305 # This happens for instance with `./config.status Makefile'.
16306 if test -n "$CONFIG_HEADERS"; then
16307 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
16311 # Transform confdefs.h into an awk script `defines.awk', embedded as
16312 # here-document in config.status, that substitutes the proper values into
16313 # config.h.in to produce config.h.
16315 # Create a delimiter string that does not exist in confdefs.h, to ease
16316 # handling of long lines.
16318 for ac_last_try in false false :; do
16319 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
16320 if test -z "$ac_tt"; then
16322 elif $ac_last_try; then
16323 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
16325 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16329 # For the awk script, D is an array of macro values keyed by name,
16330 # likewise P contains macro parameters if any. Preserve backslash
16331 # newline sequences.
16333 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16335 s/.\{148\}/&'"$ac_delim"'/g
16338 s/^[ ]*#[ ]*define[ ][ ]*/ /
16345 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16347 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16351 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16352 D["\
1"]=" \
3\\\\\\n
"\\/p
16354 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16359 s/.\{148\}/&'"$ac_delim"'/g
16364 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16367 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16369 ' <confdefs.h | sed '
16370 s/'"$ac_delim"'/"\\\
16371 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16373 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16374 for (key in D) D_is_set[key] = 1
16377 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16379 split(line, arg, " ")
16380 if (arg[1] == "#") {
16384 defundef
= substr
(arg
[1], 2)
16387 split(mac1
, mac2
, "(") #)
16389 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16390 if (D_is_set
[macro
]) {
16391 # Preserve the white space surrounding the "#".
16392 print prefix
"define", macro P
[macro
] D
[macro
]
16395 # Replace #undef with comments. This is necessary, for example,
16396 # in the case of _POSIX_SOURCE, which is predefined and required
16397 # on some systems where configure will not decide to define it.
16398 if (defundef
== "undef") {
16399 print
"/*", prefix defundef
, macro
, "*/"
16407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16408 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
16409 fi # test -n "$CONFIG_HEADERS"
16412 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16417 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16419 case $ac_mode$ac_tag in
16421 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16422 :[FH
]-) ac_tag
=-:-;;
16423 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16440 -) ac_f
="$ac_tmp/stdin";;
16441 *) # Look for the file first in the build tree, then in the source tree
16442 # (if the path is not absolute). The absolute path cannot be DOS-style,
16443 # because $ac_f cannot contain `:'.
16447 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16449 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16451 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16452 as_fn_append ac_file_inputs
" '$ac_f'"
16455 # Let's still pretend it is `configure' which instantiates (i.e., don't
16456 # use $as_me), people would be surprised to read:
16457 # /* config.h. Generated by config.status. */
16458 configure_input
='Generated from '`
16459 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16461 if test x
"$ac_file" != x-
; then
16462 configure_input
="$ac_file. $configure_input"
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16464 $as_echo "$as_me: creating $ac_file" >&6;}
16466 # Neutralize special characters interpreted by sed in replacement strings.
16467 case $configure_input in #(
16468 *\
&* |
*\|
* |
*\\* )
16469 ac_sed_conf_input
=`$as_echo "$configure_input" |
16470 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16471 *) ac_sed_conf_input
=$configure_input;;
16475 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
16476 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
16481 ac_dir
=`$as_dirname -- "$ac_file" ||
16482 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16483 X"$ac_file" : 'X\(//\)[^/]' \| \
16484 X"$ac_file" : 'X\(//\)$' \| \
16485 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16486 $as_echo X"$ac_file" |
16487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16491 /^X\(\/\/\)[^/].*/{
16504 as_dir
="$ac_dir"; as_fn_mkdir_p
16508 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16510 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16511 # A ".." for each directory in $ac_dir_suffix.
16512 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16513 case $ac_top_builddir_sub in
16514 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16515 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16518 ac_abs_top_builddir
=$ac_pwd
16519 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16520 # for backward compatibility:
16521 ac_top_builddir
=$ac_top_build_prefix
16524 .
) # We are building in place.
16526 ac_top_srcdir
=$ac_top_builddir_sub
16527 ac_abs_top_srcdir
=$ac_pwd ;;
16528 [\\/]* | ?
:[\\/]* ) # Absolute name.
16529 ac_srcdir
=$srcdir$ac_dir_suffix;
16530 ac_top_srcdir
=$srcdir
16531 ac_abs_top_srcdir
=$srcdir ;;
16532 *) # Relative name.
16533 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16534 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16535 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16537 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16547 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
16548 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
16550 ac_MKDIR_P
=$MKDIR_P
16552 [\\/$
]* | ?
:[\\/]* ) ;;
16553 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
16557 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16558 # If the template does not know about datarootdir, expand it.
16559 # FIXME: This hack should be removed a few years after 2.60.
16560 ac_datarootdir_hack
=; ac_datarootdir_seen
=
16571 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16572 *datarootdir
*) ac_datarootdir_seen
=yes;;
16573 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16575 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16577 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16578 ac_datarootdir_hack='
16579 s&@datadir@&$datadir&g
16580 s&@docdir@&$docdir&g
16581 s&@infodir@&$infodir&g
16582 s&@localedir@&$localedir&g
16583 s&@mandir@&$mandir&g
16584 s&\\\${datarootdir}&$datarootdir&g' ;;
16588 # Neutralize VPATH when `$srcdir' = `.'.
16589 # Shell code in configure.ac might set extrasub.
16590 # FIXME: do we really want to maintain this feature?
16591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16592 ac_sed_extra="$ac_vpsub
16595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16597 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16598 s|@configure_input@|
$ac_sed_conf_input|
;t t
16599 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16600 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16601 s
&@srcdir@
&$ac_srcdir&;t t
16602 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16603 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16604 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16605 s
&@builddir@
&$ac_builddir&;t t
16606 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16607 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16608 s
&@INSTALL@
&$ac_INSTALL&;t t
16609 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
16610 $ac_datarootdir_hack
16612 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
16613 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
16615 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16616 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
16617 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16618 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
16619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16620 which seems to be undefined. Please make sure it is defined" >&5
16621 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16622 which seems to be undefined. Please make sure it is defined" >&2;}
16624 rm -f "$ac_tmp/stdin"
16626 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16627 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16629 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16635 if test x"$ac_file" != x-; then
16637 $as_echo "/* $configure_input */" \
16638 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16639 } >"$ac_tmp/config.h" \
16640 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16641 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16642 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16643 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16646 mv "$ac_tmp/config.h" "$ac_file" \
16647 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16650 $as_echo "/* $configure_input */" \
16651 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16652 || as_fn_error $? "could not create -" "$LINENO" 5
16654 # Compute "$ac_file"'s index
in $config_headers.
16657 for _am_header
in $config_headers :; do
16658 case $_am_header in
16659 $_am_arg |
$_am_arg:* )
16662 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
16665 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16666 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16667 X"$_am_arg" : 'X\(//\)[^/]' \| \
16668 X"$_am_arg" : 'X\(//\)$' \| \
16669 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16670 $as_echo X"$_am_arg" |
16671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16675 /^X\(\/\/\)[^/].*/{
16687 s/.*/./; q'`/stamp-h
$_am_stamp_count
16690 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16691 $as_echo "$as_me: executing $ac_file commands" >&6;}
16696 case $ac_file$ac_mode in
16697 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
16698 # Older Autoconf quotes --file arguments for eval, but not when files
16699 # are listed without --file. Let's play safe and only enable the eval
16700 # if we detect the quoting.
16701 case $CONFIG_FILES in
16702 *\'*) eval set x
"$CONFIG_FILES" ;;
16703 *) set x
$CONFIG_FILES ;;
16708 # Strip MF so we end up with the name of the file.
16709 mf
=`echo "$mf" | sed -e 's/:.*$//'`
16710 # Check whether this is an Automake generated Makefile or not.
16711 # We used to match only the files named 'Makefile.in', but
16712 # some people rename them; so instead we look at the file content.
16713 # Grep'ing the first line is not enough: some people post-process
16714 # each Makefile.in and add a new line on top of each file to say so.
16715 # Grep'ing the whole file is not good either: AIX grep has a line
16716 # limit of 2048, but all sed's we know have understand at least 4000.
16717 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
16718 dirpart
=`$as_dirname -- "$mf" ||
16719 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16720 X"$mf" : 'X\(//\)[^/]' \| \
16721 X"$mf" : 'X\(//\)$' \| \
16722 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16724 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16728 /^X\(\/\/\)[^/].*/{
16744 # Extract the definition of DEPDIR, am__include, and am__quote
16745 # from the Makefile without running 'make'.
16746 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
16747 test -z "$DEPDIR" && continue
16748 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
16749 test -z "$am__include" && continue
16750 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
16751 # Find all dependency output files, they are included files with
16752 # $(DEPDIR) in their names. We invoke sed twice because it is the
16753 # simplest approach to changing $(DEPDIR) to its actual value in the
16755 for file in `sed -n "
16756 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16757 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16758 # Make sure the directory exists.
16759 test -f "$dirpart/$file" && continue
16760 fdir
=`$as_dirname -- "$file" ||
16761 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16762 X"$file" : 'X\(//\)[^/]' \| \
16763 X"$file" : 'X\(//\)$' \| \
16764 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16765 $as_echo X"$file" |
16766 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16770 /^X\(\/\/\)[^/].*/{
16783 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
16784 # echo "creating $dirpart/$file"
16785 echo '# dummy' > "$dirpart/$file"
16792 # See if we are running on zsh, and set the options which allow our
16793 # commands through without removal of \ escapes.
16794 if test -n "${ZSH_VERSION+set}" ; then
16795 setopt NO_GLOB_SUBST
16798 cfgfile
="${ofile}T"
16799 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16802 cat <<_LT_EOF >> "$cfgfile"
16805 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16806 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16807 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16808 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16810 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16811 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16812 # Written by Gordon Matzigkeit, 1996
16814 # This file is part of GNU Libtool.
16816 # GNU Libtool is free software; you can redistribute it and/or
16817 # modify it under the terms of the GNU General Public License as
16818 # published by the Free Software Foundation; either version 2 of
16819 # the License, or (at your option) any later version.
16821 # As a special exception to the GNU General Public License,
16822 # if you distribute this file as part of a program or library that
16823 # is built using GNU Libtool, you may include this file under the
16824 # same distribution terms that you use for the rest of that program.
16826 # GNU Libtool is distributed in the hope that it will be useful,
16827 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16828 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16829 # GNU General Public License for more details.
16831 # You should have received a copy of the GNU General Public License
16832 # along with GNU Libtool; see the file COPYING. If not, a copy
16833 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16834 # obtained by writing to the Free Software Foundation, Inc.,
16835 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16838 # The names of the tagged configurations supported by this script.
16839 available_tags="CXX "
16841 # ### BEGIN LIBTOOL CONFIG
16843 # Which release of libtool.m4 was used?
16844 macro_version=$macro_version
16845 macro_revision=$macro_revision
16847 # Whether or not to build static libraries.
16848 build_old_libs=$enable_static
16850 # Whether or not to build shared libraries.
16851 build_libtool_libs=$enable_shared
16853 # What type of objects to build.
16856 # Whether or not to optimize for fast installation.
16857 fast_install=$enable_fast_install
16859 # Shell to use when invoking shell scripts.
16862 # An echo program that protects backslashes.
16866 host_alias=$host_alias
16870 # The build system.
16871 build_alias=$build_alias
16875 # A sed program that does not truncate output.
16878 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16879 Xsed="\$SED -e 1s/^X//"
16881 # A grep program that handles long lines.
16887 # A literal string matcher.
16890 # A BSD- or MS-compatible name lister.
16893 # Whether we need soft or hard links.
16896 # What is the maximum length of a command?
16897 max_cmd_len=$max_cmd_len
16899 # Object file suffix (normally "o").
16902 # Executable file suffix (normally "").
16905 # whether the shell understands "unset".
16908 # turn spaces into newlines.
16911 # turn newlines into spaces.
16914 # An object symbol dumper.
16915 OBJDUMP=$lt_OBJDUMP
16917 # Method to check whether dependent libraries are shared objects.
16918 deplibs_check_method=$lt_deplibs_check_method
16920 # Command to use when deplibs_check_method == "file_magic".
16921 file_magic_cmd=$lt_file_magic_cmd
16925 AR_FLAGS=$lt_AR_FLAGS
16927 # A symbol stripping program.
16930 # Commands used to install an old-style archive.
16932 old_postinstall_cmds=$lt_old_postinstall_cmds
16933 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16935 # Whether to use a lock for old archive extraction.
16936 lock_old_archive_extraction=$lock_old_archive_extraction
16941 # LTCC compiler flags.
16942 LTCFLAGS=$lt_CFLAGS
16944 # Take the output of nm and produce a listing of raw symbols and C names.
16945 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16947 # Transform the output of nm in a proper C declaration.
16948 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16950 # Transform the output of nm in a C name address pair.
16951 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16953 # Transform the output of nm in a C name address pair when lib prefix is needed.
16954 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16956 # The name of the directory that contains temporary libtool files.
16959 # Used to examine libraries when file_magic_cmd begins with "file".
16960 MAGIC_CMD=$MAGIC_CMD
16962 # Must we lock files when doing compilation?
16963 need_locks=$lt_need_locks
16965 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16966 DSYMUTIL=$lt_DSYMUTIL
16968 # Tool to change global to local symbols on Mac OS X.
16971 # Tool to manipulate fat objects and archives on Mac OS X.
16974 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16977 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16978 OTOOL64=$lt_OTOOL64
16980 # Old archive suffix (normally "a").
16983 # Shared library suffix (normally ".so").
16984 shrext_cmds=$lt_shrext_cmds
16986 # The commands to extract the exported symbol list from a shared archive.
16987 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16989 # Variables whose values should be saved in libtool wrapper scripts and
16990 # restored at link time.
16991 variables_saved_for_relink=$lt_variables_saved_for_relink
16993 # Do we need the "lib" prefix for modules?
16994 need_lib_prefix=$need_lib_prefix
16996 # Do we need a version for libraries?
16997 need_version=$need_version
16999 # Library versioning type.
17000 version_type=$version_type
17002 # Shared library runtime path variable.
17003 runpath_var=$runpath_var
17005 # Shared library path variable.
17006 shlibpath_var=$shlibpath_var
17008 # Is shlibpath searched before the hard-coded library search path?
17009 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17011 # Format of library name prefix.
17012 libname_spec=$lt_libname_spec
17014 # List of archive names. First name is the real one, the rest are links.
17015 # The last name is the one that the linker finds with -lNAME
17016 library_names_spec=$lt_library_names_spec
17018 # The coded name of the library, if different from the real name.
17019 soname_spec=$lt_soname_spec
17021 # Permission mode override for installation of shared libraries.
17022 install_override_mode=$lt_install_override_mode
17024 # Command to use after installation of a shared archive.
17025 postinstall_cmds=$lt_postinstall_cmds
17027 # Command to use after uninstallation of a shared archive.
17028 postuninstall_cmds=$lt_postuninstall_cmds
17030 # Commands used to finish a libtool library installation in a directory.
17031 finish_cmds=$lt_finish_cmds
17033 # As "finish_cmds", except a single script fragment to be evaled but
17035 finish_eval=$lt_finish_eval
17037 # Whether we should hardcode library paths into libraries.
17038 hardcode_into_libs=$hardcode_into_libs
17040 # Compile-time system search path for libraries.
17041 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17043 # Run-time system search path for libraries.
17044 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17046 # Whether dlopen is supported.
17047 dlopen_support=$enable_dlopen
17049 # Whether dlopen of programs is supported.
17050 dlopen_self=$enable_dlopen_self
17052 # Whether dlopen of statically linked programs is supported.
17053 dlopen_self_static=$enable_dlopen_self_static
17055 # Commands to strip libraries.
17056 old_striplib=$lt_old_striplib
17057 striplib=$lt_striplib
17060 # The linker used to build libraries.
17063 # How to create reloadable object files.
17064 reload_flag=$lt_reload_flag
17065 reload_cmds=$lt_reload_cmds
17067 # Commands used to build an old-style archive.
17068 old_archive_cmds=$lt_old_archive_cmds
17070 # A language specific compiler.
17073 # Is the compiler the GNU compiler?
17076 # Compiler flag to turn off builtin functions.
17077 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17079 # How to pass a linker flag through the compiler.
17080 wl=$lt_lt_prog_compiler_wl
17082 # Additional compiler flags for building library objects.
17083 pic_flag=$lt_lt_prog_compiler_pic
17085 # Compiler flag to prevent dynamic linking.
17086 link_static_flag=$lt_lt_prog_compiler_static
17088 # Does compiler simultaneously support -c and -o options?
17089 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17091 # Whether or not to add -lc for building shared libraries.
17092 build_libtool_need_lc=$archive_cmds_need_lc
17094 # Whether or not to disallow shared libs when runtime libs are static.
17095 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17097 # Compiler flag to allow reflexive dlopens.
17098 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17100 # Compiler flag to generate shared objects directly from archives.
17101 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17103 # Whether the compiler copes with passing no objects directly.
17104 compiler_needs_object=$lt_compiler_needs_object
17106 # Create an old-style archive from a shared archive.
17107 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17109 # Create a temporary old-style archive to link instead of a shared archive.
17110 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17112 # Commands used to build a shared archive.
17113 archive_cmds=$lt_archive_cmds
17114 archive_expsym_cmds=$lt_archive_expsym_cmds
17116 # Commands used to build a loadable module if different from building
17117 # a shared archive.
17118 module_cmds=$lt_module_cmds
17119 module_expsym_cmds=$lt_module_expsym_cmds
17121 # Whether we are building with GNU ld or not.
17122 with_gnu_ld=$lt_with_gnu_ld
17124 # Flag that allows shared libraries with undefined symbols to be built.
17125 allow_undefined_flag=$lt_allow_undefined_flag
17127 # Flag that enforces no undefined symbols.
17128 no_undefined_flag=$lt_no_undefined_flag
17130 # Flag to hardcode \$libdir into a binary during linking.
17131 # This must work even if \$libdir does not exist
17132 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17134 # If ld is used when linking, flag to hardcode \$libdir into a binary
17135 # during linking. This must work even if \$libdir does not exist.
17136 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17138 # Whether we need a single "-rpath" flag with a separated argument.
17139 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17141 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17142 # DIR into the resulting binary.
17143 hardcode_direct=$hardcode_direct
17145 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17146 # DIR into the resulting binary and the resulting library dependency is
17147 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17148 # library is relocated.
17149 hardcode_direct_absolute=$hardcode_direct_absolute
17151 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17152 # into the resulting binary.
17153 hardcode_minus_L=$hardcode_minus_L
17155 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17156 # into the resulting binary.
17157 hardcode_shlibpath_var=$hardcode_shlibpath_var
17159 # Set to "yes" if building a shared library automatically hardcodes DIR
17160 # into the library and all subsequent libraries and executables linked
17162 hardcode_automatic=$hardcode_automatic
17164 # Set to yes if linker adds runtime paths of dependent libraries
17165 # to runtime path list.
17166 inherit_rpath=$inherit_rpath
17168 # Whether libtool must link a program against all its dependency libraries.
17169 link_all_deplibs=$link_all_deplibs
17171 # Fix the shell variable \$srcfile for the compiler.
17172 fix_srcfile_path=$lt_fix_srcfile_path
17174 # Set to "yes" if exported symbols are required.
17175 always_export_symbols=$always_export_symbols
17177 # The commands to list exported symbols.
17178 export_symbols_cmds=$lt_export_symbols_cmds
17180 # Symbols that should not be listed in the preloaded symbols.
17181 exclude_expsyms=$lt_exclude_expsyms
17183 # Symbols that must always be exported.
17184 include_expsyms=$lt_include_expsyms
17186 # Commands necessary for linking programs (against libraries) with templates.
17187 prelink_cmds=$lt_prelink_cmds
17189 # Specify filename containing input files.
17190 file_list_spec=$lt_file_list_spec
17192 # How to hardcode a shared library path into an executable.
17193 hardcode_action=$hardcode_action
17195 # The directories searched by this compiler when creating a shared library.
17196 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17198 # Dependencies to place before and after the objects being linked to
17199 # create a shared library.
17200 predep_objects=$lt_predep_objects
17201 postdep_objects=$lt_postdep_objects
17202 predeps=$lt_predeps
17203 postdeps=$lt_postdeps
17205 # The library search path used internally by the compiler when linking
17206 # a shared library.
17207 compiler_lib_search_path=$lt_compiler_lib_search_path
17209 # ### END LIBTOOL CONFIG
17215 cat <<\_LT_EOF
>> "$cfgfile"
17216 # AIX sometimes has problems with the GCC collect2 program. For some
17217 # reason, if we set the COLLECT_NAMES environment variable, the problems
17218 # vanish in a puff of smoke.
17219 if test "X${COLLECT_NAMES+set}" != Xset
; then
17221 export COLLECT_NAMES
17228 ltmain
="$ac_aux_dir/ltmain.sh"
17231 # We use sed instead of cat because bash on DJGPP gets confused if
17232 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17233 # text mode, it properly converts lines to CR/LF. This bash problem
17234 # is reportedly fixed, but why not run on old versions too?
17235 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17236 ||
(rm -f "$cfgfile"; exit 1)
17240 cat << \_LT_EOF
>> "$cfgfile"
17242 # func_dirname file append nondir_replacement
17243 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17244 # otherwise set result to NONDIR_REPLACEMENT.
17248 */*) func_dirname_result
="${1%/*}${2}" ;;
17249 * ) func_dirname_result
="${3}" ;;
17253 # func_basename file
17256 func_basename_result
="${1##*/}"
17259 # func_dirname_and_basename file append nondir_replacement
17260 # perform func_basename and func_dirname in a single function
17262 # dirname: Compute the dirname of FILE. If nonempty,
17263 # add APPEND to the result, otherwise set result
17264 # to NONDIR_REPLACEMENT.
17265 # value returned in "$func_dirname_result"
17266 # basename: Compute filename of FILE.
17267 # value retuned in "$func_basename_result"
17268 # Implementation must be kept synchronized with func_dirname
17269 # and func_basename. For efficiency, we do not delegate to
17270 # those functions but instead duplicate the functionality here.
17271 func_dirname_and_basename
()
17274 */*) func_dirname_result
="${1%/*}${2}" ;;
17275 * ) func_dirname_result
="${3}" ;;
17277 func_basename_result
="${1##*/}"
17280 # func_stripname prefix suffix name
17281 # strip PREFIX and SUFFIX off of NAME.
17282 # PREFIX and SUFFIX must not contain globbing or regex special
17283 # characters, hashes, percent signs, but SUFFIX may contain a leading
17284 # dot (in which case that matches only a dot).
17287 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17288 # positional parameters, so assign one to ordinary parameter first.
17289 func_stripname_result
=${3}
17290 func_stripname_result
=${func_stripname_result#"${1}"}
17291 func_stripname_result
=${func_stripname_result%"${2}"}
17297 func_opt_split_opt
=${1%%=*}
17298 func_opt_split_arg
=${1#*=}
17305 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
17306 *) func_lo2o_result
=${1} ;;
17310 # func_xform libobj-or-source
17313 func_xform_result
=${1%.*}.lo
17316 # func_arith arithmetic-term...
17319 func_arith_result
=$
(( $
* ))
17323 # STRING may not start with a hyphen.
17326 func_len_result
=${#1}
17331 *) # Bourne compatible functions.
17332 cat << \_LT_EOF
>> "$cfgfile"
17334 # func_dirname file append nondir_replacement
17335 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17336 # otherwise set result to NONDIR_REPLACEMENT.
17339 # Extract subdirectory from the argument.
17340 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
17341 if test "X$func_dirname_result" = "X${1}"; then
17342 func_dirname_result
="${3}"
17344 func_dirname_result
="$func_dirname_result${2}"
17348 # func_basename file
17351 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
17355 # func_stripname prefix suffix name
17356 # strip PREFIX and SUFFIX off of NAME.
17357 # PREFIX and SUFFIX must not contain globbing or regex special
17358 # characters, hashes, percent signs, but SUFFIX may contain a leading
17359 # dot (in which case that matches only a dot).
17360 # func_strip_suffix prefix name
17364 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17365 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17370 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
17371 my_sed_long_arg
='1s/^-[^=]*=//'
17376 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17377 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17383 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
17386 # func_xform libobj-or-source
17389 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17392 # func_arith arithmetic-term...
17395 func_arith_result
=`expr "$@"`
17399 # STRING may not start with a hyphen.
17402 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17408 case $lt_shell_append in
17410 cat << \_LT_EOF
>> "$cfgfile"
17412 # func_append var value
17413 # Append VALUE to the end of shell variable VAR.
17421 cat << \_LT_EOF
>> "$cfgfile"
17423 # func_append var value
17424 # Append VALUE to the end of shell variable VAR.
17435 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17436 ||
(rm -f "$cfgfile"; exit 1)
17438 mv -f "$cfgfile" "$ofile" ||
17439 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17443 cat <<_LT_EOF >> "$ofile"
17445 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17447 # The linker used to build libraries.
17450 # How to create reloadable object files.
17451 reload_flag=$lt_reload_flag_CXX
17452 reload_cmds=$lt_reload_cmds_CXX
17454 # Commands used to build an old-style archive.
17455 old_archive_cmds=$lt_old_archive_cmds_CXX
17457 # A language specific compiler.
17458 CC=$lt_compiler_CXX
17460 # Is the compiler the GNU compiler?
17463 # Compiler flag to turn off builtin functions.
17464 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17466 # How to pass a linker flag through the compiler.
17467 wl=$lt_lt_prog_compiler_wl_CXX
17469 # Additional compiler flags for building library objects.
17470 pic_flag=$lt_lt_prog_compiler_pic_CXX
17472 # Compiler flag to prevent dynamic linking.
17473 link_static_flag=$lt_lt_prog_compiler_static_CXX
17475 # Does compiler simultaneously support -c and -o options?
17476 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17478 # Whether or not to add -lc for building shared libraries.
17479 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17481 # Whether or not to disallow shared libs when runtime libs are static.
17482 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17484 # Compiler flag to allow reflexive dlopens.
17485 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17487 # Compiler flag to generate shared objects directly from archives.
17488 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17490 # Whether the compiler copes with passing no objects directly.
17491 compiler_needs_object=$lt_compiler_needs_object_CXX
17493 # Create an old-style archive from a shared archive.
17494 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17496 # Create a temporary old-style archive to link instead of a shared archive.
17497 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17499 # Commands used to build a shared archive.
17500 archive_cmds=$lt_archive_cmds_CXX
17501 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17503 # Commands used to build a loadable module if different from building
17504 # a shared archive.
17505 module_cmds=$lt_module_cmds_CXX
17506 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17508 # Whether we are building with GNU ld or not.
17509 with_gnu_ld=$lt_with_gnu_ld_CXX
17511 # Flag that allows shared libraries with undefined symbols to be built.
17512 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17514 # Flag that enforces no undefined symbols.
17515 no_undefined_flag=$lt_no_undefined_flag_CXX
17517 # Flag to hardcode \$libdir into a binary during linking.
17518 # This must work even if \$libdir does not exist
17519 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17521 # If ld is used when linking, flag to hardcode \$libdir into a binary
17522 # during linking. This must work even if \$libdir does not exist.
17523 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17525 # Whether we need a single "-rpath" flag with a separated argument.
17526 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17528 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17529 # DIR into the resulting binary.
17530 hardcode_direct=$hardcode_direct_CXX
17532 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17533 # DIR into the resulting binary and the resulting library dependency is
17534 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17535 # library is relocated.
17536 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17538 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17539 # into the resulting binary.
17540 hardcode_minus_L=$hardcode_minus_L_CXX
17542 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17543 # into the resulting binary.
17544 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17546 # Set to "yes" if building a shared library automatically hardcodes DIR
17547 # into the library and all subsequent libraries and executables linked
17549 hardcode_automatic=$hardcode_automatic_CXX
17551 # Set to yes if linker adds runtime paths of dependent libraries
17552 # to runtime path list.
17553 inherit_rpath=$inherit_rpath_CXX
17555 # Whether libtool must link a program against all its dependency libraries.
17556 link_all_deplibs=$link_all_deplibs_CXX
17558 # Fix the shell variable \$srcfile for the compiler.
17559 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17561 # Set to "yes" if exported symbols are required.
17562 always_export_symbols=$always_export_symbols_CXX
17564 # The commands to list exported symbols.
17565 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17567 # Symbols that should not be listed in the preloaded symbols.
17568 exclude_expsyms=$lt_exclude_expsyms_CXX
17570 # Symbols that must always be exported.
17571 include_expsyms=$lt_include_expsyms_CXX
17573 # Commands necessary for linking programs (against libraries) with templates.
17574 prelink_cmds=$lt_prelink_cmds_CXX
17576 # Specify filename containing input files.
17577 file_list_spec=$lt_file_list_spec_CXX
17579 # How to hardcode a shared library path into an executable.
17580 hardcode_action=$hardcode_action_CXX
17582 # The directories searched by this compiler when creating a shared library.
17583 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17585 # Dependencies to place before and after the objects being linked to
17586 # create a shared library.
17587 predep_objects=$lt_predep_objects_CXX
17588 postdep_objects=$lt_postdep_objects_CXX
17589 predeps=$lt_predeps_CXX
17590 postdeps=$lt_postdeps_CXX
17592 # The library search path used internally by the compiler when linking
17593 # a shared library.
17594 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17596 # ### END LIBTOOL TAG CONFIG: CXX
17607 ac_clean_files
=$ac_clean_files_save
17609 test $ac_write_fail = 0 ||
17610 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
17613 # configure is writing to config.log, and then calls config.status.
17614 # config.status does its own redirection, appending to config.log.
17615 # Unfortunately, on DOS this fails, as config.log is still kept open
17616 # by configure, so config.status won't be able to write to it; its
17617 # output is simply discarded. So we exec the FD to /dev/null,
17618 # effectively closing config.log, so it can be properly (re)opened and
17619 # appended to by config.status. When coming back to configure, we
17620 # need to make the FD available again.
17621 if test "$no_create" != yes; then
17623 ac_config_status_args
=
17624 test "$silent" = yes &&
17625 ac_config_status_args
="$ac_config_status_args --quiet"
17627 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17629 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17630 # would make configure fail if this is the last instruction.
17631 $ac_cs_success || as_fn_exit
1
17633 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17635 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}