2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gprofng 2.38.50.
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
='gprofng'
589 PACKAGE_TARNAME
='gprofng'
590 PACKAGE_VERSION
='2.38.50'
591 PACKAGE_STRING
='gprofng 2.38.50'
595 # Factoring default headers for most tests.
596 ac_includes_default
="\
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
608 # ifdef HAVE_STDLIB_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
631 enable_option_checking
=no
632 ac_subst_vars
='am__EXEEXT_FALSE
660 BUILD_COLLECTOR_FALSE
662 GPROFNG_NO_SWITCH_CFLAGS
663 GPROFNG_NO_FORMAT_TRUNCATION_CFLAGS
712 MAINTAINER_MODE_FALSE
726 INSTALL_STRIP_PROGRAM
780 program_transform_name
793 enable_option_checking
795 enable_maintainer_mode
796 enable_dependency_tracking
808 ac_precious_vars
='build_alias
821 ac_subdirs_all
='libcollector'
823 # Initialize some variables set by options.
825 ac_init_version
=false
826 ac_unrecognized_opts
=
828 # The variables have the same names as the options, with
829 # dashes changed to underlines.
837 program_transform_name
=s
,x
,x
,
845 # Installation directory options.
846 # These are left unexpanded so users can "make install exec_prefix=/foo"
847 # and all the variables that are supposed to be based on exec_prefix
848 # by default will actually change.
849 # Use braces instead of parens because sh, perl, etc. also accept them.
850 # (The list follows the same order as the GNU Coding Standards.)
851 bindir
='${exec_prefix}/bin'
852 sbindir
='${exec_prefix}/sbin'
853 libexecdir
='${exec_prefix}/libexec'
854 datarootdir
='${prefix}/share'
855 datadir
='${datarootdir}'
856 sysconfdir
='${prefix}/etc'
857 sharedstatedir
='${prefix}/com'
858 localstatedir
='${prefix}/var'
859 includedir
='${prefix}/include'
860 oldincludedir
='/usr/include'
861 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
862 infodir
='${datarootdir}/info'
867 libdir
='${exec_prefix}/lib'
868 localedir
='${datarootdir}/locale'
869 mandir
='${datarootdir}/man'
875 # If the previous option needs an argument, assign it.
876 if test -n "$ac_prev"; then
877 eval $ac_prev=\
$ac_option
883 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
888 # Accept the important Cygnus configure options, so we can diagnose typos.
890 case $ac_dashdash$ac_option in
894 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
896 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
899 -build |
--build |
--buil |
--bui |
--bu)
900 ac_prev
=build_alias
;;
901 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
902 build_alias
=$ac_optarg ;;
904 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
905 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
906 ac_prev
=cache_file
;;
907 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
908 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
909 cache_file
=$ac_optarg ;;
912 cache_file
=config.cache
;;
914 -datadir |
--datadir |
--datadi |
--datad)
916 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
917 datadir
=$ac_optarg ;;
919 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
920 |
--dataroo |
--dataro |
--datar)
921 ac_prev
=datarootdir
;;
922 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
923 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
924 datarootdir
=$ac_optarg ;;
926 -disable-* |
--disable-*)
927 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
928 # Reject names that are not valid shell variable names.
929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
930 as_fn_error $?
"invalid feature name: $ac_useropt"
931 ac_useropt_orig
=$ac_useropt
932 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
933 case $ac_user_opts in
937 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
938 ac_unrecognized_sep
=', ';;
940 eval enable_
$ac_useropt=no
;;
942 -docdir |
--docdir |
--docdi |
--doc |
--do)
944 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
947 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
949 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
952 -enable-* |
--enable-*)
953 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
954 # Reject names that are not valid shell variable names.
955 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
956 as_fn_error $?
"invalid feature name: $ac_useropt"
957 ac_useropt_orig
=$ac_useropt
958 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959 case $ac_user_opts in
963 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
964 ac_unrecognized_sep
=', ';;
966 eval enable_
$ac_useropt=\
$ac_optarg ;;
968 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
969 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
970 |
--exec |
--exe |
--ex)
971 ac_prev
=exec_prefix
;;
972 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
973 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
974 |
--exec=* |
--exe=* |
--ex=*)
975 exec_prefix
=$ac_optarg ;;
977 -gas |
--gas |
--ga |
--g)
978 # Obsolete; use --with-gas.
981 -help |
--help |
--hel |
--he |
-h)
983 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
984 ac_init_help
=recursive
;;
985 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
986 ac_init_help
=short
;;
988 -host |
--host |
--hos |
--ho)
989 ac_prev
=host_alias
;;
990 -host=* |
--host=* |
--hos=* |
--ho=*)
991 host_alias
=$ac_optarg ;;
993 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
995 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
997 htmldir
=$ac_optarg ;;
999 -includedir |
--includedir |
--includedi |
--included |
--include \
1000 |
--includ |
--inclu |
--incl |
--inc)
1001 ac_prev
=includedir
;;
1002 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1003 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1004 includedir
=$ac_optarg ;;
1006 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1008 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1009 infodir
=$ac_optarg ;;
1011 -libdir |
--libdir |
--libdi |
--libd)
1013 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1014 libdir
=$ac_optarg ;;
1016 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1017 |
--libexe |
--libex |
--libe)
1018 ac_prev
=libexecdir
;;
1019 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1020 |
--libexe=* |
--libex=* |
--libe=*)
1021 libexecdir
=$ac_optarg ;;
1023 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1024 ac_prev
=localedir
;;
1025 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1026 localedir
=$ac_optarg ;;
1028 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1029 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1030 ac_prev
=localstatedir
;;
1031 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1032 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1033 localstatedir
=$ac_optarg ;;
1035 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1037 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1038 mandir
=$ac_optarg ;;
1040 -nfp |
--nfp |
--nf)
1041 # Obsolete; use --without-fp.
1044 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1045 |
--no-cr |
--no-c |
-n)
1048 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1049 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1052 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1053 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1054 |
--oldin |
--oldi |
--old |
--ol |
--o)
1055 ac_prev
=oldincludedir
;;
1056 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1057 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1058 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1059 oldincludedir
=$ac_optarg ;;
1061 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1063 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1064 prefix
=$ac_optarg ;;
1066 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1067 |
--program-pre |
--program-pr |
--program-p)
1068 ac_prev
=program_prefix
;;
1069 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1070 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1071 program_prefix
=$ac_optarg ;;
1073 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1074 |
--program-suf |
--program-su |
--program-s)
1075 ac_prev
=program_suffix
;;
1076 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1077 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1078 program_suffix
=$ac_optarg ;;
1080 -program-transform-name |
--program-transform-name \
1081 |
--program-transform-nam |
--program-transform-na \
1082 |
--program-transform-n |
--program-transform- \
1083 |
--program-transform |
--program-transfor \
1084 |
--program-transfo |
--program-transf \
1085 |
--program-trans |
--program-tran \
1086 |
--progr-tra |
--program-tr |
--program-t)
1087 ac_prev
=program_transform_name
;;
1088 -program-transform-name=* |
--program-transform-name=* \
1089 |
--program-transform-nam=* |
--program-transform-na=* \
1090 |
--program-transform-n=* |
--program-transform-=* \
1091 |
--program-transform=* |
--program-transfor=* \
1092 |
--program-transfo=* |
--program-transf=* \
1093 |
--program-trans=* |
--program-tran=* \
1094 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1095 program_transform_name
=$ac_optarg ;;
1097 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1099 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1100 pdfdir
=$ac_optarg ;;
1102 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1104 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1107 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1108 |
-silent |
--silent |
--silen |
--sile |
--sil)
1111 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1113 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1115 sbindir
=$ac_optarg ;;
1117 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1118 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1119 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1121 ac_prev
=sharedstatedir
;;
1122 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1123 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1124 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1126 sharedstatedir
=$ac_optarg ;;
1128 -site |
--site |
--sit)
1130 -site=* |
--site=* |
--sit=*)
1133 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1135 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1136 srcdir
=$ac_optarg ;;
1138 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1139 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1140 ac_prev
=sysconfdir
;;
1141 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1142 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1143 sysconfdir
=$ac_optarg ;;
1145 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1146 ac_prev
=target_alias
;;
1147 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1148 target_alias
=$ac_optarg ;;
1150 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1153 -version |
--version |
--versio |
--versi |
--vers |
-V)
1154 ac_init_version
=: ;;
1157 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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--with-$ac_useropt_orig"
1168 ac_unrecognized_sep
=', ';;
1170 eval with_
$ac_useropt=\
$ac_optarg ;;
1172 -without-* |
--without-*)
1173 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1176 as_fn_error $?
"invalid package name: $ac_useropt"
1177 ac_useropt_orig
=$ac_useropt
1178 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1183 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1184 ac_unrecognized_sep
=', ';;
1186 eval with_
$ac_useropt=no
;;
1189 # Obsolete; use --with-x.
1192 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1193 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1194 ac_prev
=x_includes
;;
1195 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1196 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1197 x_includes
=$ac_optarg ;;
1199 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1200 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1201 ac_prev
=x_libraries
;;
1202 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1203 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1204 x_libraries
=$ac_optarg ;;
1206 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1207 Try \`$0 --help' for more information"
1211 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1212 # Reject names that are not valid shell variable names.
1213 case $ac_envvar in #(
1214 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1215 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1217 eval $ac_envvar=\
$ac_optarg
1218 export $ac_envvar ;;
1221 # FIXME: should be removed in autoconf 3.0.
1222 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1223 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1224 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1225 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1231 if test -n "$ac_prev"; then
1232 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1233 as_fn_error $?
"missing argument to $ac_option"
1236 if test -n "$ac_unrecognized_opts"; then
1237 case $enable_option_checking in
1239 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1240 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1244 # Check all directory arguments for consistency.
1245 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1246 datadir sysconfdir sharedstatedir localstatedir includedir \
1247 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1248 libdir localedir mandir
1250 eval ac_val
=\$
$ac_var
1251 # Remove trailing slashes.
1254 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1255 eval $ac_var=\
$ac_val;;
1257 # Be sure to have absolute directory names.
1259 [\\/$
]* | ?
:[\\/]* ) continue;;
1260 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1262 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1265 # There might be people who depend on the old broken behavior: `$host'
1266 # used to hold the argument of --host etc.
1267 # FIXME: To remove some day.
1270 target
=$target_alias
1272 # FIXME: To remove some day.
1273 if test "x$host_alias" != x
; then
1274 if test "x$build_alias" = x
; then
1275 cross_compiling
=maybe
1276 elif test "x$build_alias" != "x$host_alias"; then
1282 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1284 test "$silent" = yes && exec 6>/dev
/null
1287 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1288 ac_ls_di
=`ls -di .` &&
1289 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1290 as_fn_error $?
"working directory cannot be determined"
1291 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1292 as_fn_error $?
"pwd does not report name of working directory"
1295 # Find the source files, if location was not specified.
1296 if test -z "$srcdir"; then
1297 ac_srcdir_defaulted
=yes
1298 # Try the directory containing this script, then the parent directory.
1299 ac_confdir
=`$as_dirname -- "$as_myself" ||
1300 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1301 X"$as_myself" : 'X\(//\)[^/]' \| \
1302 X"$as_myself" : 'X\(//\)$' \| \
1303 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1304 $as_echo X"$as_myself" |
1305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1323 if test ! -r "$srcdir/$ac_unique_file"; then
1327 ac_srcdir_defaulted
=no
1329 if test ! -r "$srcdir/$ac_unique_file"; then
1330 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1331 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1333 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1335 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1337 # When building in place, set srcdir=.
1338 if test "$ac_abs_confdir" = "$ac_pwd"; then
1341 # Remove unnecessary trailing slashes from srcdir.
1342 # Double slashes in file names in object file debugging info
1343 # mess up M-x gdb in Emacs.
1345 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1347 for ac_var
in $ac_precious_vars; do
1348 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1349 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1350 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1351 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1355 # Report the --help message.
1357 if test "$ac_init_help" = "long"; then
1358 # Omit some internal or obsolete options to make the list less imposing.
1359 # This message is too long to be a string in the A/UX 3.1 sh.
1361 \`configure' configures gprofng 2.38.50 to adapt to many kinds of systems.
1363 Usage: $0 [OPTION]... [VAR=VALUE]...
1365 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1366 VAR=VALUE. See below for descriptions of some of the useful variables.
1368 Defaults for the options are specified in brackets.
1371 -h, --help display this help and exit
1372 --help=short display options specific to this package
1373 --help=recursive display the short help of all the included packages
1374 -V, --version display version information and exit
1375 -q, --quiet, --silent do not print \`checking ...' messages
1376 --cache-file=FILE cache test results in FILE [disabled]
1377 -C, --config-cache alias for \`--cache-file=config.cache'
1378 -n, --no-create do not create output files
1379 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1381 Installation directories:
1382 --prefix=PREFIX install architecture-independent files in PREFIX
1383 [$ac_default_prefix]
1384 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1387 By default, \`make install' will install all the files in
1388 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1389 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1390 for instance \`--prefix=\$HOME'.
1392 For better control, use the options below.
1394 Fine tuning of the installation directories:
1395 --bindir=DIR user executables [EPREFIX/bin]
1396 --sbindir=DIR system admin executables [EPREFIX/sbin]
1397 --libexecdir=DIR program executables [EPREFIX/libexec]
1398 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1399 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1400 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1401 --libdir=DIR object code libraries [EPREFIX/lib]
1402 --includedir=DIR C header files [PREFIX/include]
1403 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1404 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1405 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1406 --infodir=DIR info documentation [DATAROOTDIR/info]
1407 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1408 --mandir=DIR man documentation [DATAROOTDIR/man]
1409 --docdir=DIR documentation root [DATAROOTDIR/doc/gprofng]
1410 --htmldir=DIR html documentation [DOCDIR]
1411 --dvidir=DIR dvi documentation [DOCDIR]
1412 --pdfdir=DIR pdf documentation [DOCDIR]
1413 --psdir=DIR ps documentation [DOCDIR]
1419 --program-prefix=PREFIX prepend PREFIX to installed program names
1420 --program-suffix=SUFFIX append SUFFIX to installed program names
1421 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1424 --build=BUILD configure
for building on BUILD
[guessed
]
1425 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1426 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1430 if test -n "$ac_init_help"; then
1431 case $ac_init_help in
1432 short | recursive
) echo "Configuration of gprofng 2.38.50:";;
1437 --disable-option-checking ignore unrecognized
--enable/--with options
1438 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1439 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1440 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1441 --disable-silent-rules verbose build output
(undo
: "make V=0")
1442 --enable-maintainer-mode
1443 enable make rules and dependencies not useful
(and
1444 sometimes confusing
) to the casual installer
1445 --enable-dependency-tracking
1446 do not reject slow dependency extractors
1447 --disable-dependency-tracking
1448 speeds up one-time build
1449 --enable-shared[=PKGS
] build shared libraries
[default
=no
]
1450 --enable-static[=PKGS
] build static libraries
[default
=yes]
1451 --enable-fast-install[=PKGS
]
1452 optimize
for fast installation
[default
=yes]
1453 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1454 --enable-werror-always enable -Werror despite compiler version
1455 --disable-gprofng-tools do not build gprofng
/src directory
1456 --enable-gprofng-debug Enable debugging output
[default
=no
]
1459 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1460 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1461 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1463 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1464 --with-jdk=PATH specify prefix directory
for installed JDK.
1466 Some influential environment variables
:
1467 CC C compiler
command
1468 CFLAGS C compiler flags
1469 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1470 nonstandard directory
<lib dir
>
1471 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1472 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1473 you have headers
in a nonstandard directory
<include dir
>
1475 CXX C
++ compiler
command
1476 CXXFLAGS C
++ compiler flags
1477 CXXCPP C
++ preprocessor
1479 Use these variables to override the choices made by
`configure' or to help
1480 it to find libraries and programs with nonstandard names/locations.
1482 Report bugs to the package provider.
1487 if test "$ac_init_help" = "recursive"; then
1488 # If there are subdirs, report their specific --help.
1489 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1490 test -d "$ac_dir" ||
1491 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1496 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1499 # A ".." for each directory in $ac_dir_suffix.
1500 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1501 case $ac_top_builddir_sub in
1502 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1506 ac_abs_top_builddir=$ac_pwd
1507 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1508 # for backward compatibility:
1509 ac_top_builddir=$ac_top_build_prefix
1512 .) # We are building in place.
1514 ac_top_srcdir=$ac_top_builddir_sub
1515 ac_abs_top_srcdir=$ac_pwd ;;
1516 [\\/]* | ?:[\\/]* ) # Absolute name.
1517 ac_srcdir=$srcdir$ac_dir_suffix;
1518 ac_top_srcdir=$srcdir
1519 ac_abs_top_srcdir=$srcdir ;;
1521 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1522 ac_top_srcdir=$ac_top_build_prefix$srcdir
1523 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1525 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1527 cd "$ac_dir" || { ac_status=$?; continue; }
1528 # Check for guested configure.
1529 if test -f "$ac_srcdir/configure.gnu"; then
1531 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1532 elif test -f "$ac_srcdir/configure"; then
1534 $SHELL "$ac_srcdir/configure" --help=recursive
1536 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1538 cd "$ac_pwd" || { ac_status=$?; break; }
1542 test -n "$ac_init_help" && exit $ac_status
1543 if $ac_init_version; then
1545 gprofng configure 2.38.50
1546 generated by GNU Autoconf 2.69
1548 Copyright (C) 2012 Free Software Foundation, Inc.
1549 This configure script is free software; the Free Software Foundation
1550 gives unlimited permission to copy, distribute and modify it.
1555 ## ------------------------ ##
1556 ## Autoconf initialization. ##
1557 ## ------------------------ ##
1559 # ac_fn_c_try_compile LINENO
1560 # --------------------------
1561 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1562 ac_fn_c_try_compile ()
1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565 rm -f conftest.$ac_objext
1566 if { { ac_try="$ac_compile"
1568 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1569 *) ac_try_echo
=$ac_try;;
1571 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572 $as_echo "$ac_try_echo"; } >&5
1573 (eval "$ac_compile") 2>conftest.err
1575 if test -s conftest.err
; then
1576 grep -v '^ *+' conftest.err
>conftest.er1
1577 cat conftest.er1
>&5
1578 mv -f conftest.er1 conftest.err
1580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581 test $ac_status = 0; } && {
1582 test -z "$ac_c_werror_flag" ||
1583 test ! -s conftest.err
1584 } && test -s conftest.
$ac_objext; then :
1587 $as_echo "$as_me: failed program was:" >&5
1588 sed 's/^/| /' conftest.
$ac_ext >&5
1592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1593 as_fn_set_status
$ac_retval
1595 } # ac_fn_c_try_compile
1597 # ac_fn_c_try_cpp LINENO
1598 # ----------------------
1599 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1602 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1603 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1605 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1606 *) ac_try_echo=$ac_try;;
1608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609 $as_echo "$ac_try_echo"; } >&5
1610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1612 if test -s conftest.err; then
1613 grep -v '^ *+' conftest.err >conftest.er1
1614 cat conftest.er1 >&5
1615 mv -f conftest.er1 conftest.err
1617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618 test $ac_status = 0; } > conftest.i && {
1619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1620 test ! -s conftest.err
1624 $as_echo "$as_me: failed program was:" >&5
1625 sed 's/^/| /' conftest.$ac_ext >&5
1629 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630 as_fn_set_status $ac_retval
1634 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1635 # -------------------------------------------------------
1636 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1637 # the include files in INCLUDES and setting the cache variable VAR
1639 ac_fn_c_check_header_mongrel ()
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 if eval \${$3+:} false; then :
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1644 $as_echo_n "checking for $2... " >&6; }
1645 if eval \${$3+:} false; then :
1646 $as_echo_n "(cached) " >&6
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1650 $as_echo "$ac_res" >&6; }
1652 # Is the header compilable?
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1654 $as_echo_n "checking $2 usability... " >&6; }
1655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1656 /* end confdefs.h. */
1660 if ac_fn_c_try_compile "$LINENO"; then :
1661 ac_header_compiler=yes
1663 ac_header_compiler=no
1665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1667 $as_echo "$ac_header_compiler" >&6; }
1669 # Is the header present?
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1671 $as_echo_n "checking $2 presence... " >&6; }
1672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1673 /* end confdefs.h. */
1676 if ac_fn_c_try_cpp "$LINENO"; then :
1677 ac_header_preproc=yes
1679 ac_header_preproc=no
1681 rm -f conftest.err conftest.i conftest.$ac_ext
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1683 $as_echo "$ac_header_preproc" >&6; }
1685 # So? What about this header?
1686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1689 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1691 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1695 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1697 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1699 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1701 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1703 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707 $as_echo_n "checking for $2... " >&6; }
1708 if eval \${$3+:} false; then :
1709 $as_echo_n "(cached) " >&6
1711 eval "$3=\$ac_header_compiler"
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1715 $as_echo "$ac_res" >&6; }
1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719 } # ac_fn_c_check_header_mongrel
1721 # ac_fn_c_try_run LINENO
1722 # ----------------------
1723 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1724 # that executables *can* be run.
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 if { { ac_try="$ac_link"
1730 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1731 *) ac_try_echo
=$ac_try;;
1733 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734 $as_echo "$ac_try_echo"; } >&5
1735 (eval "$ac_link") 2>&5
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1739 { { case "(($ac_try" in
1740 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_try") 2>&5
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; }; }; then :
1751 $as_echo "$as_me: program exited with status $ac_status" >&5
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1755 ac_retval=$ac_status
1757 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759 as_fn_set_status $ac_retval
1763 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1764 # -------------------------------------------------------
1765 # Tests whether HEADER exists and can be compiled using the include files in
1766 # INCLUDES, setting the cache variable VAR accordingly.
1767 ac_fn_c_check_header_compile ()
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1771 $as_echo_n "checking for $2... " >&6; }
1772 if eval \${$3+:} false; then :
1773 $as_echo_n "(cached) " >&6
1775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776 /* end confdefs.h. */
1780 if ac_fn_c_try_compile "$LINENO"; then :
1785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789 $as_echo "$ac_res" >&6; }
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792 } # ac_fn_c_check_header_compile
1794 # ac_fn_cxx_try_compile LINENO
1795 # ----------------------------
1796 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1797 ac_fn_cxx_try_compile ()
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 rm -f conftest.$ac_objext
1801 if { { ac_try="$ac_compile"
1803 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1804 *) ac_try_echo
=$ac_try;;
1806 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808 (eval "$ac_compile") 2>conftest.err
1810 if test -s conftest.err
; then
1811 grep -v '^ *+' conftest.err
>conftest.er1
1812 cat conftest.er1
>&5
1813 mv -f conftest.er1 conftest.err
1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816 test $ac_status = 0; } && {
1817 test -z "$ac_cxx_werror_flag" ||
1818 test ! -s conftest.err
1819 } && test -s conftest.
$ac_objext; then :
1822 $as_echo "$as_me: failed program was:" >&5
1823 sed 's/^/| /' conftest.
$ac_ext >&5
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828 as_fn_set_status
$ac_retval
1830 } # ac_fn_cxx_try_compile
1832 # ac_fn_c_try_link LINENO
1833 # -----------------------
1834 # Try to link conftest.$ac_ext, and return whether this succeeded.
1837 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1838 rm -f conftest.
$ac_objext conftest
$ac_exeext
1839 if { { ac_try
="$ac_link"
1841 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_link") 2>conftest.err
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && {
1855 test -z "$ac_c_werror_flag" ||
1856 test ! -s conftest.err
1857 } && test -s conftest$ac_exeext && {
1858 test "$cross_compiling" = yes ||
1859 test -x conftest$ac_exeext
1863 $as_echo "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.$ac_ext >&5
1868 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1869 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1870 # interfere with the next link command; also delete a directory that is
1871 # left behind by Apple's compiler. We do this before executing the actions.
1872 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874 as_fn_set_status $ac_retval
1876 } # ac_fn_c_try_link
1878 # ac_fn_c_check_func LINENO FUNC VAR
1879 # ----------------------------------
1880 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1881 ac_fn_c_check_func ()
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885 $as_echo_n "checking for $2... " >&6; }
1886 if eval \${$3+:} false; then :
1887 $as_echo_n "(cached) " >&6
1889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890 /* end confdefs.h. */
1891 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1893 #define $2 innocuous_$2
1895 /* System header to define __stub macros and hopefully few prototypes,
1896 which can conflict with char $2 (); below.
1897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1898 <limits.h> exists even on freestanding compilers. */
1901 # include <limits.h>
1903 # include <assert.h>
1908 /* Override any GCC internal prototype to avoid an error.
1909 Use char because int might match the return type of a GCC
1910 builtin and then its argument prototype would still apply. */
1915 /* The GNU C library defines this for functions which it implements
1916 to always fail with ENOSYS. Some functions are actually named
1917 something starting with __ and the normal name is an alias. */
1918 #if defined __stub_$2 || defined __stub___$2
1930 if ac_fn_c_try_link "$LINENO"; then :
1935 rm -f core conftest.err conftest.$ac_objext \
1936 conftest$ac_exeext conftest.$ac_ext
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940 $as_echo "$ac_res" >&6; }
1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943 } # ac_fn_c_check_func
1945 # ac_fn_cxx_try_cpp LINENO
1946 # ------------------------
1947 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1948 ac_fn_cxx_try_cpp ()
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 if { { ac_try="$ac_cpp conftest.$ac_ext"
1953 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1954 *) ac_try_echo
=$ac_try;;
1956 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1957 $as_echo "$ac_try_echo"; } >&5
1958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1960 if test -s conftest.err
; then
1961 grep -v '^ *+' conftest.err
>conftest.er1
1962 cat conftest.er1
>&5
1963 mv -f conftest.er1 conftest.err
1965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1966 test $ac_status = 0; } > conftest.i
&& {
1967 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1968 test ! -s conftest.err
1972 $as_echo "$as_me: failed program was:" >&5
1973 sed 's/^/| /' conftest.
$ac_ext >&5
1977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978 as_fn_set_status
$ac_retval
1980 } # ac_fn_cxx_try_cpp
1982 # ac_fn_cxx_try_link LINENO
1983 # -------------------------
1984 # Try to link conftest.$ac_ext, and return whether this succeeded.
1985 ac_fn_cxx_try_link
()
1987 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1988 rm -f conftest.
$ac_objext conftest
$ac_exeext
1989 if { { ac_try
="$ac_link"
1991 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1992 *) ac_try_echo=$ac_try;;
1994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1995 $as_echo "$ac_try_echo"; } >&5
1996 (eval "$ac_link") 2>conftest.err
1998 if test -s conftest.err; then
1999 grep -v '^ *+' conftest.err >conftest.er1
2000 cat conftest.er1 >&5
2001 mv -f conftest.er1 conftest.err
2003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2004 test $ac_status = 0; } && {
2005 test -z "$ac_cxx_werror_flag" ||
2006 test ! -s conftest.err
2007 } && test -s conftest$ac_exeext && {
2008 test "$cross_compiling" = yes ||
2009 test -x conftest$ac_exeext
2013 $as_echo "$as_me: failed program was:" >&5
2014 sed 's/^/| /' conftest.$ac_ext >&5
2018 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2019 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2020 # interfere with the next link command; also delete a directory that is
2021 # left behind by Apple's compiler. We do this before executing the actions.
2022 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2023 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2024 as_fn_set_status $ac_retval
2026 } # ac_fn_cxx_try_link
2028 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2029 # ---------------------------------------------
2030 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2032 ac_fn_c_check_decl ()
2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2036 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2038 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2039 if eval \${$3+:} false; then :
2040 $as_echo_n "(cached) " >&6
2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h. */
2048 #ifndef $as_decl_name
2050 (void) $as_decl_use;
2052 (void) $as_decl_name;
2060 if ac_fn_c_try_compile "$LINENO"; then :
2065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2069 $as_echo "$ac_res" >&6; }
2070 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2072 } # ac_fn_c_check_decl
2073 cat >config.log <<_ACEOF
2074 This file contains any messages produced by compilers while
2075 running configure, to aid debugging if configure makes a mistake.
2077 It was created by gprofng $as_me 2.38.50, which was
2078 generated by GNU Autoconf 2.69. Invocation command line was
2090 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2091 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2092 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2093 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2094 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2096 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2097 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2099 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2100 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2101 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2102 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2103 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2104 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2105 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2113 test -z "$as_dir" && as_dir=.
2114 $as_echo "PATH: $as_dir"
2130 # Keep a trace of the command line.
2131 # Strip out --no-create and --no-recursion so they do not pile up.
2132 # Strip out --silent because we don't want to record it for future runs.
2133 # Also quote any args containing shell meta-characters.
2134 # Make two passes to allow for proper duplicate-argument suppression.
2138 ac_must_keep_next=false
2144 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2145 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2146 | -silent | --silent | --silen | --sile | --sil)
2149 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2152 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2154 as_fn_append ac_configure_args1 " '$ac_arg'"
2155 if test $ac_must_keep_next = true; then
2156 ac_must_keep_next=false # Got value, back to normal.
2159 *=* | --config-cache | -C | -disable-* | --disable-* \
2160 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2161 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2162 | -with-* | --with-* | -without-* | --without-* | --x)
2163 case "$ac_configure_args0 " in
2164 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2167 -* ) ac_must_keep_next=true ;;
2170 as_fn_append ac_configure_args " '$ac_arg'"
2175 { ac_configure_args0=; unset ac_configure_args0;}
2176 { ac_configure_args1=; unset ac_configure_args1;}
2178 # When interrupted or exit'd, cleanup temporary files, and complete
2179 # config.log. We remove comments because anyway the quotes in there
2180 # would cause problems or look ugly.
2181 # WARNING: Use '\'' to represent an apostrophe within the trap.
2182 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2183 trap 'exit_status=$?
2184 # Save into config.log some information that might help in debugging.
2188 $as_echo "## ---------------- ##
2189 ## Cache variables. ##
2190 ## ---------------- ##"
2192 # The following way of writing the cache mishandles newlines in values,
2194 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2195 eval ac_val=\$$ac_var
2199 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2200 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2203 _ | IFS | as_nl) ;; #(
2204 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2205 *) { eval $ac_var=; unset $ac_var;} ;;
2210 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2211 *${as_nl}ac_space=\ *)
2213 "s/'\''/'\''\\\\'\'''\''/g;
2214 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2217 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2224 $as_echo "## ----------------- ##
2225 ## Output variables. ##
2226 ## ----------------- ##"
2228 for ac_var in $ac_subst_vars
2230 eval ac_val=\$$ac_var
2232 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2234 $as_echo "$ac_var='\''$ac_val'\''"
2238 if test -n "$ac_subst_files"; then
2239 $as_echo "## ------------------- ##
2240 ## File substitutions. ##
2241 ## ------------------- ##"
2243 for ac_var in $ac_subst_files
2245 eval ac_val=\$$ac_var
2247 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2249 $as_echo "$ac_var='\''$ac_val'\''"
2254 if test -s confdefs.h; then
2255 $as_echo "## ----------- ##
2262 test "$ac_signal" != 0 &&
2263 $as_echo "$as_me: caught signal $ac_signal"
2264 $as_echo "$as_me: exit $exit_status"
2266 rm -f core *.core core.conftest.* &&
2267 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2270 for ac_signal in 1 2 13 15; do
2271 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2275 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2276 rm -f -r conftest* confdefs.h
2278 $as_echo "/* confdefs.h */" > confdefs.h
2280 # Predefined preprocessor variables.
2282 cat >>confdefs.h <<_ACEOF
2283 #define PACKAGE_NAME "$PACKAGE_NAME"
2286 cat >>confdefs.h <<_ACEOF
2287 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2290 cat >>confdefs.h <<_ACEOF
2291 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2294 cat >>confdefs.h <<_ACEOF
2295 #define PACKAGE_STRING "$PACKAGE_STRING"
2298 cat >>confdefs.h <<_ACEOF
2299 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2302 cat >>confdefs.h <<_ACEOF
2303 #define PACKAGE_URL "$PACKAGE_URL"
2307 # Let the site file select an alternate cache file if it wants to.
2308 # Prefer an explicitly selected file to automatically selected ones.
2311 if test -n "$CONFIG_SITE"; then
2312 # We do not want a PATH search for config.site.
2313 case $CONFIG_SITE in #((
2314 -*) ac_site_file1=./$CONFIG_SITE;;
2315 */*) ac_site_file1=$CONFIG_SITE;;
2316 *) ac_site_file1=./$CONFIG_SITE;;
2318 elif test "x$prefix" != xNONE; then
2319 ac_site_file1=$prefix/share/config.site
2320 ac_site_file2=$prefix/etc/config.site
2322 ac_site_file1=$ac_default_prefix/share/config.site
2323 ac_site_file2=$ac_default_prefix/etc/config.site
2325 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2327 test "x$ac_site_file" = xNONE && continue
2328 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2330 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2331 sed 's/^/| /' "$ac_site_file" >&5
2333 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2335 as_fn_error $? "failed to load site
script $ac_site_file
2336 See \
`config.log' for more details" "$LINENO" 5; }
2340 if test -r "$cache_file"; then
2341 # Some versions of bash will fail to source /dev/null (special files
2342 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2343 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2345 $as_echo "$as_me: loading cache $cache_file" >&6;}
2347 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2348 *) . "./$cache_file";;
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2353 $as_echo "$as_me: creating cache $cache_file" >&6;}
2357 # Check that the precious variables saved in the cache have kept the same
2359 ac_cache_corrupted=false
2360 for ac_var in $ac_precious_vars; do
2361 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2362 eval ac_new_set=\$ac_env_${ac_var}_set
2363 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2364 eval ac_new_val=\$ac_env_${ac_var}_value
2365 case $ac_old_set,$ac_new_set in
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2368 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2369 ac_cache_corrupted=: ;;
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2372 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2373 ac_cache_corrupted=: ;;
2376 if test "x$ac_old_val" != "x$ac_new_val"; then
2377 # differences in whitespace do not lead to failure.
2378 ac_old_val_w=`echo x
$ac_old_val`
2379 ac_new_val_w=`echo x
$ac_new_val`
2380 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2382 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2383 ac_cache_corrupted=:
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2386 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2387 eval $ac_var=\$ac_old_val
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2390 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2392 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2395 # Pass precious variables to config.status.
2396 if test "$ac_new_set" = set; then
2398 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2399 *) ac_arg=$ac_var=$ac_new_val ;;
2401 case " $ac_configure_args " in
2402 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2403 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2407 if $ac_cache_corrupted; then
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2411 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2412 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2414 ## -------------------- ##
2415 ## Main body of script. ##
2416 ## -------------------- ##
2419 ac_cpp='$CPP $CPPFLAGS'
2420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2426 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2427 if test -f "$ac_dir/install-sh"; then
2429 ac_install_sh="$ac_aux_dir/install-sh -c"
2431 elif test -f "$ac_dir/install.sh"; then
2433 ac_install_sh="$ac_aux_dir/install.sh -c"
2435 elif test -f "$ac_dir/shtool"; then
2437 ac_install_sh="$ac_aux_dir/shtool install -c"
2441 if test -z "$ac_aux_dir"; then
2442 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2445 # These three variables are undocumented and unsupported,
2446 # and are intended to be withdrawn in a future Autoconf release.
2447 # They can cause serious problems if a builder's source tree is in a directory
2448 # whose full name contains unusual characters.
2449 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2450 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2451 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2454 # Make sure we can run config.sub.
2455 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2456 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2459 $as_echo_n "checking build system type... " >&6; }
2460 if ${ac_cv_build+:} false; then :
2461 $as_echo_n "(cached) " >&6
2463 ac_build_alias=$build_alias
2464 test "x$ac_build_alias" = x &&
2465 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2466 test "x$ac_build_alias" = x &&
2467 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2468 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2469 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2473 $as_echo "$ac_cv_build" >&6; }
2474 case $ac_cv_build in
2476 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2479 ac_save_IFS=$IFS; IFS='-'
2485 # Remember, the first character of IFS is used to create $*,
2486 # except with old shells:
2489 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2493 $as_echo_n "checking host system type... " >&6; }
2494 if ${ac_cv_host+:} false; then :
2495 $as_echo_n "(cached) " >&6
2497 if test "x$host_alias" = x; then
2498 ac_cv_host=$ac_cv_build
2500 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2501 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2506 $as_echo "$ac_cv_host" >&6; }
2509 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2512 ac_save_IFS=$IFS; IFS='-'
2518 # Remember, the first character of IFS is used to create $*,
2519 # except with old shells:
2522 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2526 $as_echo_n "checking target system type... " >&6; }
2527 if ${ac_cv_target+:} false; then :
2528 $as_echo_n "(cached) " >&6
2530 if test "x$target_alias" = x; then
2531 ac_cv_target=$ac_cv_host
2533 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2534 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2539 $as_echo "$ac_cv_target" >&6; }
2540 case $ac_cv_target in
2542 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2544 target=$ac_cv_target
2545 ac_save_IFS=$IFS; IFS='-'
2551 # Remember, the first character of IFS is used to create $*,
2552 # except with old shells:
2555 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2558 # The aliases save the names the user supplied, while $host etc.
2559 # will get canonicalized.
2560 test -n "$target_alias" &&
2561 test "$program_prefix$program_suffix$program_transform_name" = \
2563 program_prefix=${target_alias}-
2564 am__api_version='1.15'
2566 # Find a good install program. We prefer a C program (faster),
2567 # so one script is as good as another. But avoid the broken or
2568 # incompatible versions:
2569 # SysV /etc/install, /usr/sbin/install
2570 # SunOS /usr/etc/install
2571 # IRIX /sbin/install
2573 # AmigaOS /C/install, which installs bootblocks on floppy discs
2574 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2575 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2576 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2577 # OS/2's system install, which has a completely different semantic
2578 # ./install, which can be erroneously created by make from ./install.sh.
2579 # Reject install programs that cannot install multiple files.
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2581 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2582 if test -z "$INSTALL"; then
2583 if ${ac_cv_path_install+:} false; then :
2584 $as_echo_n "(cached) " >&6
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 test -z "$as_dir" && as_dir=.
2591 # Account for people who put trailing slashes in PATH elements.
2592 case $as_dir/ in #((
2593 ./ | .// | /[cC]/* | \
2594 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2595 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2598 # OSF1 and SCO ODT 3.0 have their own names for install.
2599 # Don't use installbsd from OSF since it installs stuff as root
2601 for ac_prog in ginstall scoinst install; do
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2604 if test $ac_prog = install &&
2605 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2606 # AIX install. It has an incompatible calling convention.
2608 elif test $ac_prog = install &&
2609 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2610 # program-specific install script used by HP pwplus--don't use.
2613 rm -rf conftest.one conftest.two conftest.dir
2614 echo one > conftest.one
2615 echo two > conftest.two
2617 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2618 test -s conftest.one && test -s conftest.two &&
2619 test -s conftest.dir/conftest.one &&
2620 test -s conftest.dir/conftest.two
2622 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2635 rm -rf conftest.one conftest.two conftest.dir
2638 if test "${ac_cv_path_install+set}" = set; then
2639 INSTALL=$ac_cv_path_install
2641 # As a last resort, use the slow shell script. Don't cache a
2642 # value for INSTALL within a source directory, because that will
2643 # break other packages using the cache if that directory is
2644 # removed, or if the value is a relative name.
2645 INSTALL=$ac_install_sh
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2649 $as_echo "$INSTALL" >&6; }
2651 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2652 # It thinks the first close brace ends the variable substitution.
2653 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2655 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2657 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2660 $as_echo_n "checking whether build environment is sane... " >&6; }
2661 # Reject unsafe characters in $srcdir or the absolute working directory
2662 # name. Accept space and tab only in the latter.
2666 *[\\\"\#\$\&\'\`$am_lf]*)
2667 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2670 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2671 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2674 # Do 'set' in a subshell so we don't clobber the current shell's
2675 # arguments. Must try -L first in case configure is actually a
2676 # symlink; some systems play weird games with the mod time of symlinks
2677 # (eg FreeBSD returns the mod time of the symlink's containing
2681 for am_try
in 1 2; do
2682 echo "timestamp, slept: $am_has_slept" > conftest.
file
2683 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2684 if test "$*" = "X"; then
2686 set X
`ls -t "$srcdir/configure" conftest.file`
2688 if test "$*" != "X $srcdir/configure conftest.file" \
2689 && test "$*" != "X conftest.file $srcdir/configure"; then
2691 # If neither matched, then we have a broken ls. This can happen
2692 # if, for instance, CONFIG_SHELL is bash and it inherits a
2693 # broken ls alias from the environment. This has actually
2694 # happened. Such a system could not be considered "sane".
2695 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2696 alias in your environment" "$LINENO" 5
2698 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2705 test "$2" = conftest.
file
2711 as_fn_error $?
"newly created file is older than distributed files!
2712 Check your system clock" "$LINENO" 5
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2715 $as_echo "yes" >&6; }
2716 # If we didn't sleep, we still need to ensure time stamps of config.status and
2717 # generated files are strictly newer.
2719 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2726 test "$program_prefix" != NONE
&&
2727 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2728 # Use a double $ so make ignores it.
2729 test "$program_suffix" != NONE
&&
2730 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2731 # Double any \ or $.
2732 # By default was `s,x,x', remove it if useless.
2733 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2734 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2736 # Expand $ac_aux_dir to an absolute path.
2737 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2739 if test x
"${MISSING+set}" != xset
; then
2742 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2744 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2747 # Use eval to expand $SHELL
2748 if eval "$MISSING --is-lightweight"; then
2749 am_missing_run
="$MISSING "
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2753 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2756 if test x
"${install_sh+set}" != xset
; then
2759 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2761 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2765 # Installed binaries are usually stripped using 'strip' when the user
2766 # run "make install-strip". However 'strip' might not be the right
2767 # tool to use in cross-compilation environments, therefore Automake
2768 # will honor the 'STRIP' environment variable to overrule this program.
2769 if test "$cross_compiling" != no
; then
2770 if test -n "$ac_tool_prefix"; then
2771 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2772 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2774 $as_echo_n "checking for $ac_word... " >&6; }
2775 if ${ac_cv_prog_STRIP+:} false
; then :
2776 $as_echo_n "(cached) " >&6
2778 if test -n "$STRIP"; then
2779 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2781 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2785 test -z "$as_dir" && as_dir
=.
2786 for ac_exec_ext
in '' $ac_executable_extensions; do
2787 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2788 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 STRIP
=$ac_cv_prog_STRIP
2799 if test -n "$STRIP"; then
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2801 $as_echo "$STRIP" >&6; }
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2804 $as_echo "no" >&6; }
2809 if test -z "$ac_cv_prog_STRIP"; then
2811 # Extract the first word of "strip", so it can be a program name with args.
2812 set dummy strip
; ac_word
=$2
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814 $as_echo_n "checking for $ac_word... " >&6; }
2815 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
2816 $as_echo_n "(cached) " >&6
2818 if test -n "$ac_ct_STRIP"; then
2819 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2821 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2825 test -z "$as_dir" && as_dir
=.
2826 for ac_exec_ext
in '' $ac_executable_extensions; do
2827 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2828 ac_cv_prog_ac_ct_STRIP
="strip"
2829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2838 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2839 if test -n "$ac_ct_STRIP"; then
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2841 $as_echo "$ac_ct_STRIP" >&6; }
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844 $as_echo "no" >&6; }
2847 if test "x$ac_ct_STRIP" = x
; then
2850 case $cross_compiling:$ac_tool_warned in
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2853 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2854 ac_tool_warned
=yes ;;
2859 STRIP
="$ac_cv_prog_STRIP"
2863 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2866 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2867 if test -z "$MKDIR_P"; then
2868 if ${ac_cv_path_mkdir+:} false
; then :
2869 $as_echo_n "(cached) " >&6
2871 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2872 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2875 test -z "$as_dir" && as_dir
=.
2876 for ac_prog
in mkdir gmkdir
; do
2877 for ac_exec_ext
in '' $ac_executable_extensions; do
2878 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
2879 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2880 'mkdir (GNU coreutils) '* | \
2881 'mkdir (coreutils) '* | \
2882 'mkdir (fileutils) '4.1*)
2883 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2893 test -d .
/--version && rmdir .
/--version
2894 if test "${ac_cv_path_mkdir+set}" = set; then
2895 MKDIR_P
="$ac_cv_path_mkdir -p"
2897 # As a last resort, use the slow shell script. Don't cache a
2898 # value for MKDIR_P within a source directory, because that will
2899 # break other packages using the cache if that directory is
2900 # removed, or if the value is a relative name.
2901 MKDIR_P
="$ac_install_sh -d"
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2905 $as_echo "$MKDIR_P" >&6; }
2907 for ac_prog
in gawk mawk nawk
awk
2909 # Extract the first word of "$ac_prog", so it can be a program name with args.
2910 set dummy
$ac_prog; ac_word
=$2
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912 $as_echo_n "checking for $ac_word... " >&6; }
2913 if ${ac_cv_prog_AWK+:} false
; then :
2914 $as_echo_n "(cached) " >&6
2916 if test -n "$AWK"; then
2917 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2919 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2923 test -z "$as_dir" && as_dir
=.
2924 for ac_exec_ext
in '' $ac_executable_extensions; do
2925 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2926 ac_cv_prog_AWK
="$ac_prog"
2927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2937 if test -n "$AWK"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2939 $as_echo "$AWK" >&6; }
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2946 test -n "$AWK" && break
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2950 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2952 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2953 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
2954 $as_echo_n "(cached) " >&6
2956 cat >conftest.
make <<\_ACEOF
2959 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2961 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2962 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2964 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2966 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2970 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2972 $as_echo "yes" >&6; }
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 $as_echo "no" >&6; }
2977 SET_MAKE
="MAKE=${MAKE-make}"
2980 rm -rf .tst
2>/dev
/null
2981 mkdir .tst
2>/dev
/null
2982 if test -d .tst
; then
2987 rmdir .tst
2>/dev
/null
2989 # Check whether --enable-silent-rules was given.
2990 if test "${enable_silent_rules+set}" = set; then :
2991 enableval
=$enable_silent_rules;
2994 case $enable_silent_rules in # (((
2995 yes) AM_DEFAULT_VERBOSITY
=0;;
2996 no
) AM_DEFAULT_VERBOSITY
=1;;
2997 *) AM_DEFAULT_VERBOSITY
=1;;
2999 am_make
=${MAKE-make}
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3001 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3002 if ${am_cv_make_support_nested_variables+:} false
; then :
3003 $as_echo_n "(cached) " >&6
3005 if $as_echo 'TRUE=$(BAR$(V))
3011 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3012 am_cv_make_support_nested_variables
=yes
3014 am_cv_make_support_nested_variables
=no
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3018 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3019 if test $am_cv_make_support_nested_variables = yes; then
3021 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3023 AM_V
=$AM_DEFAULT_VERBOSITY
3024 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3028 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3029 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3030 # is not polluted with repeated "-I."
3031 am__isrc
=' -I$(srcdir)'
3032 # test to see if srcdir already configured
3033 if test -f $srcdir/config.status
; then
3034 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3038 # test whether we have cygpath
3039 if test -z "$CYGPATH_W"; then
3040 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3041 CYGPATH_W
='cygpath -w'
3048 # Define the identity of the package.
3053 cat >>confdefs.h
<<_ACEOF
3054 #define PACKAGE "$PACKAGE"
3058 cat >>confdefs.h
<<_ACEOF
3059 #define VERSION "$VERSION"
3062 # Some tools Automake needs.
3064 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3067 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3070 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3073 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3076 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3078 # For better backward compatibility. To be removed once Automake 1.9.x
3079 # dies out for good. For more background, see:
3080 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3081 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3082 mkdir_p
='$(MKDIR_P)'
3084 # We need awk for the "check" target (and possibly the TAP driver). The
3085 # system "awk" is bad on some platforms.
3086 # Always define AMTAR for backward compatibility. Yes, it's still used
3087 # in the wild :-( We should find a proper way to deprecate it ...
3091 # We'll loop over all known methods to create a tar archive until one works.
3092 _am_tools
='gnutar pax cpio none'
3094 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3101 # POSIX will say in a future version that running "rm -f" with no argument
3102 # is OK; and we want to be able to make that assumption in our Makefile
3103 # recipes. So use an aggressive probe to check that the usage we want is
3104 # actually supported "in the wild" to an acceptable degree.
3105 # See automake bug#10828.
3106 # To make any issue more visible, cause the running configure to be aborted
3107 # by default if the 'rm' program in use doesn't match our expectations; the
3108 # user can still override this though.
3109 if rm -f && rm -fr && rm -rf; then : OK
; else
3113 Your 'rm' program seems unable to run without file operands specified
3114 on the command line, even when the '-f' option is present. This is contrary
3115 to the behaviour of most rm programs out there, and not conforming with
3116 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3118 Please tell bug-automake@gnu.org about your system, including the value
3119 of your $PATH and any error possibly output before this message. This
3120 can help us improve future automake versions.
3123 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3124 echo 'Configuration will proceed anyway, since you have set the' >&2
3125 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3129 Aborting the configuration process, to ensure you take notice of the issue.
3131 You can download and install GNU coreutils to get an 'rm' implementation
3132 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3134 If you want to complete the configuration process using your problematic
3135 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3136 to "yes", and re-run configure.
3139 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3145 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3146 # Check whether --enable-maintainer-mode was given.
3147 if test "${enable_maintainer_mode+set}" = set; then :
3148 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3150 USE_MAINTAINER_MODE
=no
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3154 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3155 if test $USE_MAINTAINER_MODE = yes; then
3156 MAINTAINER_MODE_TRUE
=
3157 MAINTAINER_MODE_FALSE
='#'
3159 MAINTAINER_MODE_TRUE
='#'
3160 MAINTAINER_MODE_FALSE
=
3163 MAINT
=$MAINTAINER_MODE_TRUE
3167 DEPDIR
="${am__leading_dot}deps"
3169 ac_config_commands
="$ac_config_commands depfiles"
3172 am_make
=${MAKE-make}
3173 cat > confinc
<< 'END'
3175 @
echo this is the am__doit target
3178 # If we don't find an include directive, just comment out the code.
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3180 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3184 # First try GNU make style include.
3185 echo "include confinc" > confmf
3186 # Ignore all kinds of additional output from 'make'.
3187 case `$am_make -s -f confmf 2> /dev/null` in #(
3188 *the\ am__doit\ target
*)
3194 # Now try BSD make style include.
3195 if test "$am__include" = "#"; then
3196 echo '.include "confinc"' > confmf
3197 case `$am_make -s -f confmf 2> /dev/null` in #(
3198 *the\ am__doit\ target
*)
3199 am__include
=.include
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3208 $as_echo "$_am_result" >&6; }
3209 rm -f confinc confmf
3211 # Check whether --enable-dependency-tracking was given.
3212 if test "${enable_dependency_tracking+set}" = set; then :
3213 enableval
=$enable_dependency_tracking;
3216 if test "x$enable_dependency_tracking" != xno
; then
3217 am_depcomp
="$ac_aux_dir/depcomp"
3221 if test "x$enable_dependency_tracking" != xno; then
3231 ac_cpp
='$CPP $CPPFLAGS'
3232 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3233 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3234 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3235 if test -n "$ac_tool_prefix"; then
3236 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3237 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3239 $as_echo_n "checking for $ac_word... " >&6; }
3240 if ${ac_cv_prog_CC+:} false
; then :
3241 $as_echo_n "(cached) " >&6
3243 if test -n "$CC"; then
3244 ac_cv_prog_CC
="$CC" # Let the user override the test.
3246 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3250 test -z "$as_dir" && as_dir
=.
3251 for ac_exec_ext
in '' $ac_executable_extensions; do
3252 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3253 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 if test -n "$CC"; then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3266 $as_echo "$CC" >&6; }
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269 $as_echo "no" >&6; }
3274 if test -z "$ac_cv_prog_CC"; then
3276 # Extract the first word of "gcc", so it can be a program name with args.
3277 set dummy gcc
; ac_word
=$2
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3279 $as_echo_n "checking for $ac_word... " >&6; }
3280 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3281 $as_echo_n "(cached) " >&6
3283 if test -n "$ac_ct_CC"; then
3284 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3286 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3290 test -z "$as_dir" && as_dir
=.
3291 for ac_exec_ext
in '' $ac_executable_extensions; do
3292 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3293 ac_cv_prog_ac_ct_CC
="gcc"
3294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3303 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3304 if test -n "$ac_ct_CC"; then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3306 $as_echo "$ac_ct_CC" >&6; }
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309 $as_echo "no" >&6; }
3312 if test "x$ac_ct_CC" = x
; then
3315 case $cross_compiling:$ac_tool_warned in
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3319 ac_tool_warned
=yes ;;
3327 if test -z "$CC"; then
3328 if test -n "$ac_tool_prefix"; then
3329 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3330 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3332 $as_echo_n "checking for $ac_word... " >&6; }
3333 if ${ac_cv_prog_CC+:} false
; then :
3334 $as_echo_n "(cached) " >&6
3336 if test -n "$CC"; then
3337 ac_cv_prog_CC
="$CC" # Let the user override the test.
3339 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3343 test -z "$as_dir" && as_dir
=.
3344 for ac_exec_ext
in '' $ac_executable_extensions; do
3345 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3346 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3357 if test -n "$CC"; then
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3359 $as_echo "$CC" >&6; }
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362 $as_echo "no" >&6; }
3368 if test -z "$CC"; then
3369 # Extract the first word of "cc", so it can be a program name with args.
3370 set dummy cc
; ac_word
=$2
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3372 $as_echo_n "checking for $ac_word... " >&6; }
3373 if ${ac_cv_prog_CC+:} false
; then :
3374 $as_echo_n "(cached) " >&6
3376 if test -n "$CC"; then
3377 ac_cv_prog_CC
="$CC" # Let the user override the test.
3380 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3384 test -z "$as_dir" && as_dir
=.
3385 for ac_exec_ext
in '' $ac_executable_extensions; do
3386 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3387 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3388 ac_prog_rejected
=yes
3392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3399 if test $ac_prog_rejected = yes; then
3400 # We found a bogon in the path, so make sure we never use it.
3401 set dummy
$ac_cv_prog_CC
3403 if test $# != 0; then
3404 # We chose a different compiler from the bogus one.
3405 # However, it has the same basename, so the bogon will be chosen
3406 # first if we set CC to just the basename; use the full file name.
3408 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3414 if test -n "$CC"; then
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3416 $as_echo "$CC" >&6; }
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3419 $as_echo "no" >&6; }
3424 if test -z "$CC"; then
3425 if test -n "$ac_tool_prefix"; then
3426 for ac_prog
in cl.exe
3428 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3429 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3431 $as_echo_n "checking for $ac_word... " >&6; }
3432 if ${ac_cv_prog_CC+:} false
; then :
3433 $as_echo_n "(cached) " >&6
3435 if test -n "$CC"; then
3436 ac_cv_prog_CC
="$CC" # Let the user override the test.
3438 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3442 test -z "$as_dir" && as_dir
=.
3443 for ac_exec_ext
in '' $ac_executable_extensions; do
3444 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3445 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 if test -n "$CC"; then
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3458 $as_echo "$CC" >&6; }
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3461 $as_echo "no" >&6; }
3465 test -n "$CC" && break
3468 if test -z "$CC"; then
3470 for ac_prog
in cl.exe
3472 # Extract the first word of "$ac_prog", so it can be a program name with args.
3473 set dummy
$ac_prog; ac_word
=$2
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3475 $as_echo_n "checking for $ac_word... " >&6; }
3476 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3477 $as_echo_n "(cached) " >&6
3479 if test -n "$ac_ct_CC"; then
3480 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3482 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3486 test -z "$as_dir" && as_dir
=.
3487 for ac_exec_ext
in '' $ac_executable_extensions; do
3488 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3489 ac_cv_prog_ac_ct_CC
="$ac_prog"
3490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3499 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3500 if test -n "$ac_ct_CC"; then
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3502 $as_echo "$ac_ct_CC" >&6; }
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505 $as_echo "no" >&6; }
3509 test -n "$ac_ct_CC" && break
3512 if test "x$ac_ct_CC" = x
; then
3515 case $cross_compiling:$ac_tool_warned in
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3519 ac_tool_warned
=yes ;;
3528 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3530 as_fn_error $?
"no acceptable C compiler found in \$PATH
3531 See \`config.log' for more details" "$LINENO" 5; }
3533 # Provide some information about the compiler.
3534 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3537 for ac_option
in --version -v -V -qversion; do
3538 { { ac_try
="$ac_compiler $ac_option >&5"
3540 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3541 *) ac_try_echo=$ac_try;;
3543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3544 $as_echo "$ac_try_echo"; } >&5
3545 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3547 if test -s conftest.err; then
3549 ... rest of stderr output deleted ...
3550 10q' conftest.err >conftest.er1
3551 cat conftest.er1 >&5
3553 rm -f conftest.er1 conftest.err
3554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3555 test $ac_status = 0; }
3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559 /* end confdefs.h. */
3569 ac_clean_files_save=$ac_clean_files
3570 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3571 # Try to create an executable without -o first, disregard a.out.
3572 # It will help us diagnose broken compilers, and finding out an intuition
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3575 $as_echo_n "checking whether the C compiler works... " >&6; }
3576 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3578 # The possible output files:
3579 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3582 for ac_file in $ac_files
3585 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3586 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3591 if { { ac_try="$ac_link_default"
3593 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3594 *) ac_try_echo
=$ac_try;;
3596 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3597 $as_echo "$ac_try_echo"; } >&5
3598 (eval "$ac_link_default") 2>&5
3600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3601 test $ac_status = 0; }; then :
3602 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3603 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3604 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3605 # so that the user can short-circuit this test for compilers unknown to
3607 for ac_file
in $ac_files ''
3609 test -f "$ac_file" ||
continue
3611 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3614 # We found the default executable, but exeext='' is most
3618 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3620 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3622 # We set ac_cv_exeext here because the later test for it is not
3623 # safe: cross compilers may not add the suffix if given an `-o'
3624 # argument, so we may need to know it at that point already.
3625 # Even if this section looks crufty: it has the advantage of
3632 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3637 if test -z "$ac_file"; then :
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3639 $as_echo "no" >&6; }
3640 $as_echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.
$ac_ext >&5
3643 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3644 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3645 as_fn_error
77 "C compiler cannot create executables
3646 See \`config.log' for more details" "$LINENO" 5; }
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3649 $as_echo "yes" >&6; }
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3652 $as_echo_n "checking for C compiler default output file name... " >&6; }
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3654 $as_echo "$ac_file" >&6; }
3655 ac_exeext
=$ac_cv_exeext
3657 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3658 ac_clean_files
=$ac_clean_files_save
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3660 $as_echo_n "checking for suffix of executables... " >&6; }
3661 if { { ac_try
="$ac_link"
3663 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3667 $as_echo "$ac_try_echo"; } >&5
3668 (eval "$ac_link") 2>&5
3670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3671 test $ac_status = 0; }; then :
3672 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3673 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3674 # work properly (i.e., refer to `conftest.exe'), while it won't with
3676 for ac_file
in conftest.exe conftest conftest.
*; do
3677 test -f "$ac_file" ||
continue
3679 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3680 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3686 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3688 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3689 See \`config.log' for more details" "$LINENO" 5; }
3691 rm -f conftest conftest
$ac_cv_exeext
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3693 $as_echo "$ac_cv_exeext" >&6; }
3695 rm -f conftest.
$ac_ext
3696 EXEEXT
=$ac_cv_exeext
3698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3699 /* end confdefs.h. */
3704 FILE *f = fopen ("conftest.out", "w");
3705 return ferror (f) || fclose (f) != 0;
3711 ac_clean_files
="$ac_clean_files conftest.out"
3712 # Check that the compiler produces executables we can run. If not, either
3713 # the compiler is broken, or we cross compile.
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3715 $as_echo_n "checking whether we are cross compiling... " >&6; }
3716 if test "$cross_compiling" != yes; then
3717 { { ac_try
="$ac_link"
3719 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3720 *) ac_try_echo=$ac_try;;
3722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3723 $as_echo "$ac_try_echo"; } >&5
3724 (eval "$ac_link") 2>&5
3726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3727 test $ac_status = 0; }
3728 if { ac_try='./conftest$ac_cv_exeext'
3729 { { case "(($ac_try" in
3730 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3731 *) ac_try_echo
=$ac_try;;
3733 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3734 $as_echo "$ac_try_echo"; } >&5
3735 (eval "$ac_try") 2>&5
3737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3738 test $ac_status = 0; }; }; then
3741 if test "$cross_compiling" = maybe
; then
3744 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3746 as_fn_error $?
"cannot run C compiled programs.
3747 If you meant to cross compile, use \`--host'.
3748 See \`config.log' for more details" "$LINENO" 5; }
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3753 $as_echo "$cross_compiling" >&6; }
3755 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3756 ac_clean_files
=$ac_clean_files_save
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3758 $as_echo_n "checking for suffix of object files... " >&6; }
3759 if ${ac_cv_objext+:} false
; then :
3760 $as_echo_n "(cached) " >&6
3762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3763 /* end confdefs.h. */
3773 rm -f conftest.o conftest.obj
3774 if { { ac_try
="$ac_compile"
3776 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3777 *) ac_try_echo=$ac_try;;
3779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3780 $as_echo "$ac_try_echo"; } >&5
3781 (eval "$ac_compile") 2>&5
3783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3784 test $ac_status = 0; }; then :
3785 for ac_file in conftest.o conftest.obj conftest.*; do
3786 test -f "$ac_file" || continue;
3788 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3789 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3794 $as_echo "$as_me: failed program was:" >&5
3795 sed 's/^/| /' conftest.$ac_ext >&5
3797 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3799 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3800 See \
`config.log' for more details" "$LINENO" 5; }
3802 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3805 $as_echo "$ac_cv_objext" >&6; }
3806 OBJEXT=$ac_cv_objext
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3809 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3810 if ${ac_cv_c_compiler_gnu+:} false; then :
3811 $as_echo_n "(cached) " >&6
3813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814 /* end confdefs.h. */
3827 if ac_fn_c_try_compile "$LINENO"; then :
3832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3833 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3837 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3838 if test $ac_compiler_gnu = yes; then
3843 ac_test_CFLAGS=${CFLAGS+set}
3844 ac_save_CFLAGS=$CFLAGS
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3846 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3847 if ${ac_cv_prog_cc_g+:} false; then :
3848 $as_echo_n "(cached) " >&6
3850 ac_save_c_werror_flag=$ac_c_werror_flag
3851 ac_c_werror_flag=yes
3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h. */
3865 if ac_fn_c_try_compile "$LINENO"; then :
3869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870 /* end confdefs.h. */
3880 if ac_fn_c_try_compile "$LINENO"; then :
3883 ac_c_werror_flag=$ac_save_c_werror_flag
3885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3886 /* end confdefs.h. */
3896 if ac_fn_c_try_compile "$LINENO"; then :
3899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3904 ac_c_werror_flag=$ac_save_c_werror_flag
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3907 $as_echo "$ac_cv_prog_cc_g" >&6; }
3908 if test "$ac_test_CFLAGS" = set; then
3909 CFLAGS=$ac_save_CFLAGS
3910 elif test $ac_cv_prog_cc_g = yes; then
3911 if test "$GCC" = yes; then
3917 if test "$GCC" = yes; then
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3924 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3925 if ${ac_cv_prog_cc_c89+:} false; then :
3926 $as_echo_n "(cached) " >&6
3928 ac_cv_prog_cc_c89=no
3930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3931 /* end confdefs.h. */
3935 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3936 struct buf { int x; };
3937 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3938 static char *e (p, i)
3944 static char *f (char * (*g) (char **, int), char **p, ...)
3949 s = g (p, va_arg (v,int));
3954 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3955 function prototypes and stuff, but not '\xHH' hex character constants.
3956 These don't provoke an error unfortunately, instead are silently treated
3957 as 'x'. The following induces an error, until -std is added to get
3958 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3959 array size at least. It's necessary to write '\x00'==0 to get something
3960 that's true only with -std. */
3961 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3963 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3964 inside strings and character constants. */
3966 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3968 int test (int i, double x);
3969 struct s1 {int (*f) (int a);};
3970 struct s2 {int (*f) (double a);};
3971 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3977 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3982 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3983 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3985 CC="$ac_save_CC $ac_arg"
3986 if ac_fn_c_try_compile "$LINENO"; then :
3987 ac_cv_prog_cc_c89=$ac_arg
3989 rm -f core conftest.err conftest.$ac_objext
3990 test "x$ac_cv_prog_cc_c89" != "xno" && break
3992 rm -f conftest.$ac_ext
3997 case "x$ac_cv_prog_cc_c89" in
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4000 $as_echo "none needed" >&6; } ;;
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4003 $as_echo "unsupported" >&6; } ;;
4005 CC="$CC $ac_cv_prog_cc_c89"
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4007 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4009 if test "x$ac_cv_prog_cc_c89" != xno; then :
4014 ac_cpp='$CPP $CPPFLAGS'
4015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4020 ac_cpp='$CPP $CPPFLAGS'
4021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4025 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4026 if ${am_cv_prog_cc_c_o+:} false; then :
4027 $as_echo_n "(cached) " >&6
4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030 /* end confdefs.h. */
4040 # Make sure it works both with $CC and with simple cc.
4041 # Following AC_PROG_CC_C_O, we do the test twice because some
4042 # compilers refuse to overwrite an existing .o file with -o,
4043 # though they will create one.
4044 am_cv_prog_cc_c_o=yes
4046 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4047 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); } \
4051 && test -f conftest2.$ac_objext; then
4054 am_cv_prog_cc_c_o=no
4058 rm -f core conftest*
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4062 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4063 if test "$am_cv_prog_cc_c_o" != yes; then
4064 # Losing compiler, so override with the script.
4065 # FIXME: It is wrong to rewrite CC.
4066 # But if we don't then we get into trouble of one sort or another.
4067 # A longer-term fix would be to have automake use am__CC in this case,
4068 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4069 CC="$am_aux_dir/compile $CC"
4072 ac_cpp='$CPP $CPPFLAGS'
4073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4078 depcc="$CC" am_compiler_list=
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4081 $as_echo_n "checking dependency style of $depcc... " >&6; }
4082 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4083 $as_echo_n "(cached) " >&6
4085 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4086 # We make a subdir and do the tests there. Otherwise we can end up
4087 # making bogus files that we don't know about and never remove. For
4088 # instance it was reported that on HP-UX the gcc test will end up
4089 # making a dummy file named 'D' -- because '-MD' means "put the output
4093 # Copy depcomp to subdir because otherwise we won't find it if we're
4094 # using a relative directory.
4095 cp "$am_depcomp" conftest.dir
4097 # We will build objects and dependencies in a subdirectory because
4098 # it helps to detect inapplicable dependency modes. For instance
4099 # both Tru64's cc and ICC support -MD to output dependencies as a
4100 # side effect of compilation, but ICC will put the dependencies in
4101 # the current directory while Tru64 will put them in the object
4105 am_cv_CC_dependencies_compiler_type=none
4106 if test "$am_compiler_list" = ""; then
4107 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4110 case " $depcc " in #(
4111 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4114 for depmode in $am_compiler_list; do
4115 # Setup a source with many dependencies, because some compilers
4116 # like to wrap large dependency lists on column 80 (with \), and
4117 # we should not choose a depcomp mode which is confused by this.
4119 # We need to recreate these files for each test, as the compiler may
4120 # overwrite some of them when testing with obscure command lines.
4121 # This happens at least with the AIX C compiler.
4123 for i in 1 2 3 4 5 6; do
4124 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4125 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4126 # Solaris 10 /bin/sh.
4127 echo '/* dummy */' > sub/conftst$i.h
4129 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4131 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4132 # mode. It turns out that the SunPro C++ compiler does not properly
4133 # handle '-M -o', and we need to detect this. Also, some Intel
4134 # versions had trouble with output in subdirs.
4135 am__obj=sub/conftest.${OBJEXT-o}
4136 am__minus_obj="-o $am__obj"
4139 # This depmode causes a compiler race in universal mode.
4140 test "$am__universal" = false || continue
4143 # After this tag, mechanisms are not by side-effect, so they'll
4144 # only be used when explicitly requested.
4145 if test "x$enable_dependency_tracking" = xyes; then
4151 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4152 # This compiler won't grok '-c -o', but also, the minuso test has
4153 # not run yet. These depmodes are late enough in the game, and
4154 # so weak that their functioning should not be impacted.
4155 am__obj=conftest.${OBJEXT-o}
4160 if depmode=$depmode \
4161 source=sub/conftest.c object=$am__obj \
4162 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4163 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4164 >/dev/null 2>conftest.err &&
4165 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4166 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4167 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4168 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4169 # icc doesn't choke on unknown options, it will just issue warnings
4170 # or remarks (even with -Werror). So we grep stderr for any message
4171 # that says an option was ignored or not supported.
4172 # When given -MP, icc 7.0 and 7.1 complain thusly:
4173 # icc: Command line warning: ignoring option '-M'; no argument required
4174 # The diagnosis changed in icc 8.0:
4175 # icc: Command line remark: option '-MP' not supported
4176 if (grep 'ignoring option' conftest.err ||
4177 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4178 am_cv_CC_dependencies_compiler_type=$depmode
4187 am_cv_CC_dependencies_compiler_type=none
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4192 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4193 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4196 test "x$enable_dependency_tracking" != xno \
4197 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4199 am__fastdepCC_FALSE='#'
4201 am__fastdepCC_TRUE='#'
4202 am__fastdepCC_FALSE=
4208 ac_cpp='$CPP $CPPFLAGS'
4209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4213 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4214 # On Suns, sometimes $CPP names a directory.
4215 if test -n "$CPP" && test -d "$CPP"; then
4218 if test -z "$CPP"; then
4219 if ${ac_cv_prog_CPP+:} false; then :
4220 $as_echo_n "(cached) " >&6
4222 # Double quotes because CPP needs to be expanded
4223 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4226 for ac_c_preproc_warn_flag in '' yes
4228 # Use a header file that comes with gcc, so configuring glibc
4229 # with a fresh cross-compiler works.
4230 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4231 # <limits.h> exists even on freestanding compilers.
4232 # On the NeXT, cc -E runs the code through the compiler's parser,
4233 # not just through cpp. "Syntax error" is here to catch this case.
4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235 /* end confdefs.h. */
4237 # include <limits.h>
4239 # include <assert.h>
4243 if ac_fn_c_try_cpp "$LINENO"; then :
4246 # Broken: fails on valid input.
4249 rm -f conftest.err conftest.i conftest.$ac_ext
4251 # OK, works on sane cases. Now check whether nonexistent headers
4252 # can be detected and how.
4253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254 /* end confdefs.h. */
4255 #include <ac_nonexistent.h>
4257 if ac_fn_c_try_cpp "$LINENO"; then :
4258 # Broken: success on invalid input.
4261 # Passes both tests.
4265 rm -f conftest.err conftest.i conftest.$ac_ext
4268 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4269 rm -f conftest.i conftest.err conftest.
$ac_ext
4270 if $ac_preproc_ok; then :
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4283 $as_echo "$CPP" >&6; }
4285 for ac_c_preproc_warn_flag
in '' yes
4287 # Use a header file that comes with gcc, so configuring glibc
4288 # with a fresh cross-compiler works.
4289 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4290 # <limits.h> exists even on freestanding compilers.
4291 # On the NeXT, cc -E runs the code through the compiler's parser,
4292 # not just through cpp. "Syntax error" is here to catch this case.
4293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4294 /* end confdefs.h. */
4296 # include <limits.h>
4298 # include <assert.h>
4302 if ac_fn_c_try_cpp
"$LINENO"; then :
4305 # Broken: fails on valid input.
4308 rm -f conftest.err conftest.i conftest.
$ac_ext
4310 # OK, works on sane cases. Now check whether nonexistent headers
4311 # can be detected and how.
4312 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4313 /* end confdefs.h. */
4314 #include <ac_nonexistent.h>
4316 if ac_fn_c_try_cpp
"$LINENO"; then :
4317 # Broken: success on invalid input.
4320 # Passes both tests.
4324 rm -f conftest.err conftest.i conftest.
$ac_ext
4327 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4328 rm -f conftest.i conftest.err conftest.
$ac_ext
4329 if $ac_preproc_ok; then :
4332 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4334 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4335 See \`config.log' for more details" "$LINENO" 5; }
4339 ac_cpp
='$CPP $CPPFLAGS'
4340 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4341 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4342 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4346 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4347 if ${ac_cv_path_GREP+:} false
; then :
4348 $as_echo_n "(cached) " >&6
4350 if test -z "$GREP"; then
4351 ac_path_GREP_found
=false
4352 # Loop through the user's path and test for each of PROGNAME-LIST
4353 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4354 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4357 test -z "$as_dir" && as_dir
=.
4358 for ac_prog
in grep ggrep
; do
4359 for ac_exec_ext
in '' $ac_executable_extensions; do
4360 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4361 as_fn_executable_p
"$ac_path_GREP" ||
continue
4362 # Check for GNU ac_path_GREP and select it if it is found.
4363 # Check for GNU $ac_path_GREP
4364 case `"$ac_path_GREP" --version 2>&1` in
4366 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4369 $as_echo_n 0123456789 >"conftest.in"
4372 cat "conftest.in" "conftest.in" >"conftest.tmp"
4373 mv "conftest.tmp" "conftest.in"
4374 cp "conftest.in" "conftest.nl"
4375 $as_echo 'GREP' >> "conftest.nl"
4376 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4377 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4378 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4379 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4380 # Best one so far, save it but keep looking for a better one
4381 ac_cv_path_GREP
="$ac_path_GREP"
4382 ac_path_GREP_max
=$ac_count
4384 # 10*(2^10) chars as input seems more than enough
4385 test $ac_count -gt 10 && break
4387 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4390 $ac_path_GREP_found && break 3
4395 if test -z "$ac_cv_path_GREP"; then
4396 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4399 ac_cv_path_GREP
=$GREP
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4404 $as_echo "$ac_cv_path_GREP" >&6; }
4405 GREP
="$ac_cv_path_GREP"
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4409 $as_echo_n "checking for egrep... " >&6; }
4410 if ${ac_cv_path_EGREP+:} false
; then :
4411 $as_echo_n "(cached) " >&6
4413 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4414 then ac_cv_path_EGREP
="$GREP -E"
4416 if test -z "$EGREP"; then
4417 ac_path_EGREP_found
=false
4418 # Loop through the user's path and test for each of PROGNAME-LIST
4419 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4420 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4423 test -z "$as_dir" && as_dir
=.
4424 for ac_prog
in egrep; do
4425 for ac_exec_ext
in '' $ac_executable_extensions; do
4426 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4427 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4428 # Check for GNU ac_path_EGREP and select it if it is found.
4429 # Check for GNU $ac_path_EGREP
4430 case `"$ac_path_EGREP" --version 2>&1` in
4432 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4435 $as_echo_n 0123456789 >"conftest.in"
4438 cat "conftest.in" "conftest.in" >"conftest.tmp"
4439 mv "conftest.tmp" "conftest.in"
4440 cp "conftest.in" "conftest.nl"
4441 $as_echo 'EGREP' >> "conftest.nl"
4442 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4443 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4444 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4445 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4446 # Best one so far, save it but keep looking for a better one
4447 ac_cv_path_EGREP
="$ac_path_EGREP"
4448 ac_path_EGREP_max
=$ac_count
4450 # 10*(2^10) chars as input seems more than enough
4451 test $ac_count -gt 10 && break
4453 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4456 $ac_path_EGREP_found && break 3
4461 if test -z "$ac_cv_path_EGREP"; then
4462 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4465 ac_cv_path_EGREP
=$EGREP
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4471 $as_echo "$ac_cv_path_EGREP" >&6; }
4472 EGREP
="$ac_cv_path_EGREP"
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4476 $as_echo_n "checking for ANSI C header files... " >&6; }
4477 if ${ac_cv_header_stdc+:} false
; then :
4478 $as_echo_n "(cached) " >&6
4480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4481 /* end confdefs.h. */
4495 if ac_fn_c_try_compile
"$LINENO"; then :
4496 ac_cv_header_stdc
=yes
4498 ac_cv_header_stdc
=no
4500 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4502 if test $ac_cv_header_stdc = yes; then
4503 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4505 /* end confdefs.h. */
4509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4510 $EGREP "memchr" >/dev
/null
2>&1; then :
4513 ac_cv_header_stdc
=no
4519 if test $ac_cv_header_stdc = yes; then
4520 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4522 /* end confdefs.h. */
4526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4527 $EGREP "free" >/dev
/null
2>&1; then :
4530 ac_cv_header_stdc
=no
4536 if test $ac_cv_header_stdc = yes; then
4537 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4538 if test "$cross_compiling" = yes; then :
4541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h. */
4545 #if ((' ' & 0x0FF) == 0x020)
4546 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4547 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4549 # define ISLOWER(c) \
4550 (('a' <= (c) && (c) <= 'i') \
4551 || ('j' <= (c) && (c) <= 'r') \
4552 || ('s' <= (c) && (c) <= 'z'))
4553 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4556 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4561 for (i = 0; i < 256; i++)
4562 if (XOR (islower (i), ISLOWER (i))
4563 || toupper (i) != TOUPPER (i))
4568 if ac_fn_c_try_run
"$LINENO"; then :
4571 ac_cv_header_stdc
=no
4573 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4574 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4580 $as_echo "$ac_cv_header_stdc" >&6; }
4581 if test $ac_cv_header_stdc = yes; then
4583 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4587 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4588 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4589 inttypes.h stdint.h unistd.h
4591 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4592 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4594 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4595 cat >>confdefs.h
<<_ACEOF
4596 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4605 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4606 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4613 if test "$MINIX" = yes; then
4615 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4618 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4621 $as_echo "#define _MINIX 1" >>confdefs.h
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4627 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4628 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4629 $as_echo_n "(cached) " >&6
4631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4632 /* end confdefs.h. */
4634 # define __EXTENSIONS__ 1
4635 $ac_includes_default
4644 if ac_fn_c_try_compile
"$LINENO"; then :
4645 ac_cv_safe_to_define___extensions__
=yes
4647 ac_cv_safe_to_define___extensions__
=no
4649 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4652 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4653 test $ac_cv_safe_to_define___extensions__ = yes &&
4654 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4656 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4658 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4660 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4662 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4666 ac_cpp
='$CPP $CPPFLAGS'
4667 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4668 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4669 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4670 if test -n "$ac_tool_prefix"; then
4671 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4672 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4674 $as_echo_n "checking for $ac_word... " >&6; }
4675 if ${ac_cv_prog_CC+:} false
; then :
4676 $as_echo_n "(cached) " >&6
4678 if test -n "$CC"; then
4679 ac_cv_prog_CC
="$CC" # Let the user override the test.
4681 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4685 test -z "$as_dir" && as_dir
=.
4686 for ac_exec_ext
in '' $ac_executable_extensions; do
4687 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4688 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4699 if test -n "$CC"; then
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4701 $as_echo "$CC" >&6; }
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4704 $as_echo "no" >&6; }
4709 if test -z "$ac_cv_prog_CC"; then
4711 # Extract the first word of "gcc", so it can be a program name with args.
4712 set dummy gcc
; ac_word
=$2
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4714 $as_echo_n "checking for $ac_word... " >&6; }
4715 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4716 $as_echo_n "(cached) " >&6
4718 if test -n "$ac_ct_CC"; then
4719 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4721 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4725 test -z "$as_dir" && as_dir
=.
4726 for ac_exec_ext
in '' $ac_executable_extensions; do
4727 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4728 ac_cv_prog_ac_ct_CC
="gcc"
4729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4738 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4739 if test -n "$ac_ct_CC"; then
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4741 $as_echo "$ac_ct_CC" >&6; }
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4744 $as_echo "no" >&6; }
4747 if test "x$ac_ct_CC" = x
; then
4750 case $cross_compiling:$ac_tool_warned in
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4754 ac_tool_warned
=yes ;;
4762 if test -z "$CC"; then
4763 if test -n "$ac_tool_prefix"; then
4764 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4765 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4767 $as_echo_n "checking for $ac_word... " >&6; }
4768 if ${ac_cv_prog_CC+:} false
; then :
4769 $as_echo_n "(cached) " >&6
4771 if test -n "$CC"; then
4772 ac_cv_prog_CC
="$CC" # Let the user override the test.
4774 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4778 test -z "$as_dir" && as_dir
=.
4779 for ac_exec_ext
in '' $ac_executable_extensions; do
4780 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4781 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4792 if test -n "$CC"; then
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4794 $as_echo "$CC" >&6; }
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4797 $as_echo "no" >&6; }
4803 if test -z "$CC"; then
4804 # Extract the first word of "cc", so it can be a program name with args.
4805 set dummy cc
; ac_word
=$2
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4807 $as_echo_n "checking for $ac_word... " >&6; }
4808 if ${ac_cv_prog_CC+:} false
; then :
4809 $as_echo_n "(cached) " >&6
4811 if test -n "$CC"; then
4812 ac_cv_prog_CC
="$CC" # Let the user override the test.
4815 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4819 test -z "$as_dir" && as_dir
=.
4820 for ac_exec_ext
in '' $ac_executable_extensions; do
4821 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4822 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4823 ac_prog_rejected
=yes
4827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4834 if test $ac_prog_rejected = yes; then
4835 # We found a bogon in the path, so make sure we never use it.
4836 set dummy
$ac_cv_prog_CC
4838 if test $# != 0; then
4839 # We chose a different compiler from the bogus one.
4840 # However, it has the same basename, so the bogon will be chosen
4841 # first if we set CC to just the basename; use the full file name.
4843 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4849 if test -n "$CC"; then
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4851 $as_echo "$CC" >&6; }
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854 $as_echo "no" >&6; }
4859 if test -z "$CC"; then
4860 if test -n "$ac_tool_prefix"; then
4861 for ac_prog
in cl.exe
4863 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4864 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4866 $as_echo_n "checking for $ac_word... " >&6; }
4867 if ${ac_cv_prog_CC+:} false
; then :
4868 $as_echo_n "(cached) " >&6
4870 if test -n "$CC"; then
4871 ac_cv_prog_CC
="$CC" # Let the user override the test.
4873 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4877 test -z "$as_dir" && as_dir
=.
4878 for ac_exec_ext
in '' $ac_executable_extensions; do
4879 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4880 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4891 if test -n "$CC"; then
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4893 $as_echo "$CC" >&6; }
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4896 $as_echo "no" >&6; }
4900 test -n "$CC" && break
4903 if test -z "$CC"; then
4905 for ac_prog
in cl.exe
4907 # Extract the first word of "$ac_prog", so it can be a program name with args.
4908 set dummy
$ac_prog; ac_word
=$2
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4910 $as_echo_n "checking for $ac_word... " >&6; }
4911 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4912 $as_echo_n "(cached) " >&6
4914 if test -n "$ac_ct_CC"; then
4915 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4917 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4921 test -z "$as_dir" && as_dir
=.
4922 for ac_exec_ext
in '' $ac_executable_extensions; do
4923 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4924 ac_cv_prog_ac_ct_CC
="$ac_prog"
4925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4934 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4935 if test -n "$ac_ct_CC"; then
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4937 $as_echo "$ac_ct_CC" >&6; }
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4940 $as_echo "no" >&6; }
4944 test -n "$ac_ct_CC" && break
4947 if test "x$ac_ct_CC" = x
; then
4950 case $cross_compiling:$ac_tool_warned in
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4954 ac_tool_warned
=yes ;;
4963 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4965 as_fn_error $?
"no acceptable C compiler found in \$PATH
4966 See \`config.log' for more details" "$LINENO" 5; }
4968 # Provide some information about the compiler.
4969 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4972 for ac_option
in --version -v -V -qversion; do
4973 { { ac_try
="$ac_compiler $ac_option >&5"
4975 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4976 *) ac_try_echo=$ac_try;;
4978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4979 $as_echo "$ac_try_echo"; } >&5
4980 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4982 if test -s conftest.err; then
4984 ... rest of stderr output deleted ...
4985 10q' conftest.err >conftest.er1
4986 cat conftest.er1 >&5
4988 rm -f conftest.er1 conftest.err
4989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4990 test $ac_status = 0; }
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4994 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4995 if ${ac_cv_c_compiler_gnu+:} false; then :
4996 $as_echo_n "(cached) " >&6
4998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4999 /* end confdefs.h. */
5012 if ac_fn_c_try_compile "$LINENO"; then :
5017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5018 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5022 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5023 if test $ac_compiler_gnu = yes; then
5028 ac_test_CFLAGS=${CFLAGS+set}
5029 ac_save_CFLAGS=$CFLAGS
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5031 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5032 if ${ac_cv_prog_cc_g+:} false; then :
5033 $as_echo_n "(cached) " >&6
5035 ac_save_c_werror_flag=$ac_c_werror_flag
5036 ac_c_werror_flag=yes
5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040 /* end confdefs.h. */
5050 if ac_fn_c_try_compile "$LINENO"; then :
5054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5055 /* end confdefs.h. */
5065 if ac_fn_c_try_compile "$LINENO"; then :
5068 ac_c_werror_flag=$ac_save_c_werror_flag
5070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071 /* end confdefs.h. */
5081 if ac_fn_c_try_compile "$LINENO"; then :
5084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5089 ac_c_werror_flag=$ac_save_c_werror_flag
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5092 $as_echo "$ac_cv_prog_cc_g" >&6; }
5093 if test "$ac_test_CFLAGS" = set; then
5094 CFLAGS=$ac_save_CFLAGS
5095 elif test $ac_cv_prog_cc_g = yes; then
5096 if test "$GCC" = yes; then
5102 if test "$GCC" = yes; then
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5109 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5110 if ${ac_cv_prog_cc_c89+:} false; then :
5111 $as_echo_n "(cached) " >&6
5113 ac_cv_prog_cc_c89=no
5115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5116 /* end confdefs.h. */
5120 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5121 struct buf { int x; };
5122 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5123 static char *e (p, i)
5129 static char *f (char * (*g) (char **, int), char **p, ...)
5134 s = g (p, va_arg (v,int));
5139 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5140 function prototypes and stuff, but not '\xHH' hex character constants.
5141 These don't provoke an error unfortunately, instead are silently treated
5142 as 'x'. The following induces an error, until -std is added to get
5143 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5144 array size at least. It's necessary to write '\x00'==0 to get something
5145 that's true only with -std. */
5146 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5148 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5149 inside strings and character constants. */
5151 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5153 int test (int i, double x);
5154 struct s1 {int (*f) (int a);};
5155 struct s2 {int (*f) (double a);};
5156 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5162 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5167 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5168 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5170 CC="$ac_save_CC $ac_arg"
5171 if ac_fn_c_try_compile "$LINENO"; then :
5172 ac_cv_prog_cc_c89=$ac_arg
5174 rm -f core conftest.err conftest.$ac_objext
5175 test "x$ac_cv_prog_cc_c89" != "xno" && break
5177 rm -f conftest.$ac_ext
5182 case "x$ac_cv_prog_cc_c89" in
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5185 $as_echo "none needed" >&6; } ;;
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5188 $as_echo "unsupported" >&6; } ;;
5190 CC="$CC $ac_cv_prog_cc_c89"
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5192 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5194 if test "x$ac_cv_prog_cc_c89" != xno; then :
5199 ac_cpp='$CPP $CPPFLAGS'
5200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5205 ac_cpp='$CPP $CPPFLAGS'
5206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5210 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5211 if ${am_cv_prog_cc_c_o+:} false; then :
5212 $as_echo_n "(cached) " >&6
5214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215 /* end confdefs.h. */
5225 # Make sure it works both with $CC and with simple cc.
5226 # Following AC_PROG_CC_C_O, we do the test twice because some
5227 # compilers refuse to overwrite an existing .o file with -o,
5228 # though they will create one.
5229 am_cv_prog_cc_c_o=yes
5231 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5232 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); } \
5236 && test -f conftest2.$ac_objext; then
5239 am_cv_prog_cc_c_o=no
5243 rm -f core conftest*
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5247 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5248 if test "$am_cv_prog_cc_c_o" != yes; then
5249 # Losing compiler, so override with the script.
5250 # FIXME: It is wrong to rewrite CC.
5251 # But if we don't then we get into trouble of one sort or another.
5252 # A longer-term fix would be to have automake use am__CC in this case,
5253 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5254 CC="$am_aux_dir/compile $CC"
5257 ac_cpp='$CPP $CPPFLAGS'
5258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5263 depcc="$CC" am_compiler_list=
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5266 $as_echo_n "checking dependency style of $depcc... " >&6; }
5267 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5268 $as_echo_n "(cached) " >&6
5270 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5271 # We make a subdir and do the tests there. Otherwise we can end up
5272 # making bogus files that we don't know about and never remove. For
5273 # instance it was reported that on HP-UX the gcc test will end up
5274 # making a dummy file named 'D' -- because '-MD' means "put the output
5278 # Copy depcomp to subdir because otherwise we won't find it if we're
5279 # using a relative directory.
5280 cp "$am_depcomp" conftest.dir
5282 # We will build objects and dependencies in a subdirectory because
5283 # it helps to detect inapplicable dependency modes. For instance
5284 # both Tru64's cc and ICC support -MD to output dependencies as a
5285 # side effect of compilation, but ICC will put the dependencies in
5286 # the current directory while Tru64 will put them in the object
5290 am_cv_CC_dependencies_compiler_type=none
5291 if test "$am_compiler_list" = ""; then
5292 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
5295 case " $depcc " in #(
5296 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5299 for depmode in $am_compiler_list; do
5300 # Setup a source with many dependencies, because some compilers
5301 # like to wrap large dependency lists on column 80 (with \), and
5302 # we should not choose a depcomp mode which is confused by this.
5304 # We need to recreate these files for each test, as the compiler may
5305 # overwrite some of them when testing with obscure command lines.
5306 # This happens at least with the AIX C compiler.
5308 for i in 1 2 3 4 5 6; do
5309 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5310 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5311 # Solaris 10 /bin/sh.
5312 echo '/* dummy */' > sub/conftst$i.h
5314 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5316 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5317 # mode. It turns out that the SunPro C++ compiler does not properly
5318 # handle '-M -o', and we need to detect this. Also, some Intel
5319 # versions had trouble with output in subdirs.
5320 am__obj=sub/conftest.${OBJEXT-o}
5321 am__minus_obj="-o $am__obj"
5324 # This depmode causes a compiler race in universal mode.
5325 test "$am__universal" = false || continue
5328 # After this tag, mechanisms are not by side-effect, so they'll
5329 # only be used when explicitly requested.
5330 if test "x$enable_dependency_tracking" = xyes; then
5336 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5337 # This compiler won't grok '-c -o', but also, the minuso test has
5338 # not run yet. These depmodes are late enough in the game, and
5339 # so weak that their functioning should not be impacted.
5340 am__obj=conftest.${OBJEXT-o}
5345 if depmode=$depmode \
5346 source=sub/conftest.c object=$am__obj \
5347 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5348 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5349 >/dev/null 2>conftest.err &&
5350 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5351 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5352 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5353 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5354 # icc doesn't choke on unknown options, it will just issue warnings
5355 # or remarks (even with -Werror). So we grep stderr for any message
5356 # that says an option was ignored or not supported.
5357 # When given -MP, icc 7.0 and 7.1 complain thusly:
5358 # icc: Command line warning: ignoring option '-M'; no argument required
5359 # The diagnosis changed in icc 8.0:
5360 # icc: Command line remark: option '-MP' not supported
5361 if (grep 'ignoring option' conftest.err ||
5362 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5363 am_cv_CC_dependencies_compiler_type=$depmode
5372 am_cv_CC_dependencies_compiler_type=none
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5377 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5378 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5381 test "x$enable_dependency_tracking" != xno \
5382 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5384 am__fastdepCC_FALSE='#'
5386 am__fastdepCC_TRUE='#'
5387 am__fastdepCC_FALSE=
5392 ac_cpp='$CXXCPP $CPPFLAGS'
5393 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5394 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5395 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5396 if test -z "$CXX"; then
5397 if test -n "$CCC"; then
5400 if test -n "$ac_tool_prefix"; then
5401 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5403 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5404 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5406 $as_echo_n "checking for $ac_word... " >&6; }
5407 if ${ac_cv_prog_CXX+:} false; then :
5408 $as_echo_n "(cached) " >&6
5410 if test -n "$CXX"; then
5411 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5417 test -z "$as_dir" && as_dir=.
5418 for ac_exec_ext in '' $ac_executable_extensions; do
5419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5420 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5431 if test -n "$CXX"; then
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5433 $as_echo "$CXX" >&6; }
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5436 $as_echo "no" >&6; }
5440 test -n "$CXX" && break
5443 if test -z "$CXX"; then
5445 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5447 # Extract the first word of "$ac_prog", so it can be a program name with args.
5448 set dummy $ac_prog; ac_word=$2
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5450 $as_echo_n "checking for $ac_word... " >&6; }
5451 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5452 $as_echo_n "(cached) " >&6
5454 if test -n "$ac_ct_CXX"; then
5455 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461 test -z "$as_dir" && as_dir=.
5462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5464 ac_cv_prog_ac_ct_CXX="$ac_prog"
5465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5474 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5475 if test -n "$ac_ct_CXX"; then
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5477 $as_echo "$ac_ct_CXX" >&6; }
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5480 $as_echo "no" >&6; }
5484 test -n "$ac_ct_CXX" && break
5487 if test "x$ac_ct_CXX" = x; then
5490 case $cross_compiling:$ac_tool_warned in
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5494 ac_tool_warned=yes ;;
5502 # Provide some information about the compiler.
5503 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5506 for ac_option in --version -v -V -qversion; do
5507 { { ac_try="$ac_compiler $ac_option >&5"
5509 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5510 *) ac_try_echo
=$ac_try;;
5512 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5513 $as_echo "$ac_try_echo"; } >&5
5514 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5516 if test -s conftest.err
; then
5518 ... rest of stderr output deleted ...
5519 10q' conftest.err
>conftest.er1
5520 cat conftest.er1
>&5
5522 rm -f conftest.er1 conftest.err
5523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5524 test $ac_status = 0; }
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5528 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5529 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
5530 $as_echo_n "(cached) " >&6
5532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5533 /* end confdefs.h. */
5546 if ac_fn_cxx_try_compile
"$LINENO"; then :
5551 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5552 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5556 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5557 if test $ac_compiler_gnu = yes; then
5562 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5563 ac_save_CXXFLAGS
=$CXXFLAGS
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5565 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5566 if ${ac_cv_prog_cxx_g+:} false
; then :
5567 $as_echo_n "(cached) " >&6
5569 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5570 ac_cxx_werror_flag
=yes
5573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h. */
5584 if ac_fn_cxx_try_compile
"$LINENO"; then :
5585 ac_cv_prog_cxx_g
=yes
5588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h. */
5599 if ac_fn_cxx_try_compile
"$LINENO"; then :
5602 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5605 /* end confdefs.h. */
5615 if ac_fn_cxx_try_compile
"$LINENO"; then :
5616 ac_cv_prog_cxx_g
=yes
5618 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5620 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5622 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5623 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5626 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5627 if test "$ac_test_CXXFLAGS" = set; then
5628 CXXFLAGS
=$ac_save_CXXFLAGS
5629 elif test $ac_cv_prog_cxx_g = yes; then
5630 if test "$GXX" = yes; then
5636 if test "$GXX" = yes; then
5643 ac_cpp
='$CPP $CPPFLAGS'
5644 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5645 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5646 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5648 depcc
="$CXX" am_compiler_list
=
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5651 $as_echo_n "checking dependency style of $depcc... " >&6; }
5652 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
5653 $as_echo_n "(cached) " >&6
5655 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5656 # We make a subdir and do the tests there. Otherwise we can end up
5657 # making bogus files that we don't know about and never remove. For
5658 # instance it was reported that on HP-UX the gcc test will end up
5659 # making a dummy file named 'D' -- because '-MD' means "put the output
5663 # Copy depcomp to subdir because otherwise we won't find it if we're
5664 # using a relative directory.
5665 cp "$am_depcomp" conftest.dir
5667 # We will build objects and dependencies in a subdirectory because
5668 # it helps to detect inapplicable dependency modes. For instance
5669 # both Tru64's cc and ICC support -MD to output dependencies as a
5670 # side effect of compilation, but ICC will put the dependencies in
5671 # the current directory while Tru64 will put them in the object
5675 am_cv_CXX_dependencies_compiler_type
=none
5676 if test "$am_compiler_list" = ""; then
5677 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5680 case " $depcc " in #(
5681 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5684 for depmode
in $am_compiler_list; do
5685 # Setup a source with many dependencies, because some compilers
5686 # like to wrap large dependency lists on column 80 (with \), and
5687 # we should not choose a depcomp mode which is confused by this.
5689 # We need to recreate these files for each test, as the compiler may
5690 # overwrite some of them when testing with obscure command lines.
5691 # This happens at least with the AIX C compiler.
5693 for i
in 1 2 3 4 5 6; do
5694 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5695 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5696 # Solaris 10 /bin/sh.
5697 echo '/* dummy */' > sub
/conftst
$i.h
5699 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5701 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5702 # mode. It turns out that the SunPro C++ compiler does not properly
5703 # handle '-M -o', and we need to detect this. Also, some Intel
5704 # versions had trouble with output in subdirs.
5705 am__obj
=sub
/conftest.
${OBJEXT-o}
5706 am__minus_obj
="-o $am__obj"
5709 # This depmode causes a compiler race in universal mode.
5710 test "$am__universal" = false ||
continue
5713 # After this tag, mechanisms are not by side-effect, so they'll
5714 # only be used when explicitly requested.
5715 if test "x$enable_dependency_tracking" = xyes
; then
5721 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
5722 # This compiler won't grok '-c -o', but also, the minuso test has
5723 # not run yet. These depmodes are late enough in the game, and
5724 # so weak that their functioning should not be impacted.
5725 am__obj
=conftest.
${OBJEXT-o}
5730 if depmode
=$depmode \
5731 source=sub
/conftest.c object
=$am__obj \
5732 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5733 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5734 >/dev
/null
2>conftest.err
&&
5735 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5736 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5737 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5738 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5739 # icc doesn't choke on unknown options, it will just issue warnings
5740 # or remarks (even with -Werror). So we grep stderr for any message
5741 # that says an option was ignored or not supported.
5742 # When given -MP, icc 7.0 and 7.1 complain thusly:
5743 # icc: Command line warning: ignoring option '-M'; no argument required
5744 # The diagnosis changed in icc 8.0:
5745 # icc: Command line remark: option '-MP' not supported
5746 if (grep 'ignoring option' conftest.err ||
5747 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5748 am_cv_CXX_dependencies_compiler_type
=$depmode
5757 am_cv_CXX_dependencies_compiler_type
=none
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5762 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5763 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
5766 test "x$enable_dependency_tracking" != xno \
5767 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
5768 am__fastdepCXX_TRUE
=
5769 am__fastdepCXX_FALSE
='#'
5771 am__fastdepCXX_TRUE
='#'
5772 am__fastdepCXX_FALSE
=
5777 if test -n "$ac_tool_prefix"; then
5778 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5779 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5781 $as_echo_n "checking for $ac_word... " >&6; }
5782 if ${ac_cv_prog_RANLIB+:} false
; then :
5783 $as_echo_n "(cached) " >&6
5785 if test -n "$RANLIB"; then
5786 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5788 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5792 test -z "$as_dir" && as_dir
=.
5793 for ac_exec_ext
in '' $ac_executable_extensions; do
5794 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5795 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5805 RANLIB
=$ac_cv_prog_RANLIB
5806 if test -n "$RANLIB"; then
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5808 $as_echo "$RANLIB" >&6; }
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5811 $as_echo "no" >&6; }
5816 if test -z "$ac_cv_prog_RANLIB"; then
5817 ac_ct_RANLIB
=$RANLIB
5818 # Extract the first word of "ranlib", so it can be a program name with args.
5819 set dummy ranlib
; ac_word
=$2
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5821 $as_echo_n "checking for $ac_word... " >&6; }
5822 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5823 $as_echo_n "(cached) " >&6
5825 if test -n "$ac_ct_RANLIB"; then
5826 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5828 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5832 test -z "$as_dir" && as_dir
=.
5833 for ac_exec_ext
in '' $ac_executable_extensions; do
5834 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5835 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5845 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5846 if test -n "$ac_ct_RANLIB"; then
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5848 $as_echo "$ac_ct_RANLIB" >&6; }
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5851 $as_echo "no" >&6; }
5854 if test "x$ac_ct_RANLIB" = x
; then
5857 case $cross_compiling:$ac_tool_warned in
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5861 ac_tool_warned
=yes ;;
5863 RANLIB
=$ac_ct_RANLIB
5866 RANLIB
="$ac_cv_prog_RANLIB"
5869 if test -n "$ac_tool_prefix"; then
5870 for ac_prog
in ar lib
"link -lib"
5872 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5873 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5875 $as_echo_n "checking for $ac_word... " >&6; }
5876 if ${ac_cv_prog_AR+:} false
; then :
5877 $as_echo_n "(cached) " >&6
5879 if test -n "$AR"; then
5880 ac_cv_prog_AR
="$AR" # Let the user override the test.
5882 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5886 test -z "$as_dir" && as_dir
=.
5887 for ac_exec_ext
in '' $ac_executable_extensions; do
5888 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5889 ac_cv_prog_AR
="$ac_tool_prefix$ac_prog"
5890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5900 if test -n "$AR"; then
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5902 $as_echo "$AR" >&6; }
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5905 $as_echo "no" >&6; }
5909 test -n "$AR" && break
5912 if test -z "$AR"; then
5914 for ac_prog
in ar lib
"link -lib"
5916 # Extract the first word of "$ac_prog", so it can be a program name with args.
5917 set dummy
$ac_prog; ac_word
=$2
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5919 $as_echo_n "checking for $ac_word... " >&6; }
5920 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
5921 $as_echo_n "(cached) " >&6
5923 if test -n "$ac_ct_AR"; then
5924 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5926 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5930 test -z "$as_dir" && as_dir
=.
5931 for ac_exec_ext
in '' $ac_executable_extensions; do
5932 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5933 ac_cv_prog_ac_ct_AR
="$ac_prog"
5934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5943 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5944 if test -n "$ac_ct_AR"; then
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5946 $as_echo "$ac_ct_AR" >&6; }
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5949 $as_echo "no" >&6; }
5953 test -n "$ac_ct_AR" && break
5956 if test "x$ac_ct_AR" = x
; then
5959 case $cross_compiling:$ac_tool_warned in
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5963 ac_tool_warned
=yes ;;
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5972 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5973 if ${am_cv_ar_interface+:} false
; then :
5974 $as_echo_n "(cached) " >&6
5977 ac_cpp
='$CPP $CPPFLAGS'
5978 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5979 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5980 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5982 am_cv_ar_interface
=ar
5983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5984 /* end confdefs.h. */
5985 int some_variable = 0;
5987 if ac_fn_c_try_compile
"$LINENO"; then :
5988 am_ar_try
='$AR cru libconftest.a conftest.$ac_objext >&5'
5989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5990 (eval $am_ar_try) 2>&5
5992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5993 test $ac_status = 0; }
5994 if test "$ac_status" -eq 0; then
5995 am_cv_ar_interface
=ar
5997 am_ar_try
='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5999 (eval $am_ar_try) 2>&5
6001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6002 test $ac_status = 0; }
6003 if test "$ac_status" -eq 0; then
6004 am_cv_ar_interface
=lib
6006 am_cv_ar_interface
=unknown
6009 rm -f conftest.lib libconftest.a
6012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6014 ac_cpp
='$CPP $CPPFLAGS'
6015 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6016 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6017 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6021 $as_echo "$am_cv_ar_interface" >&6; }
6023 case $am_cv_ar_interface in
6027 # Microsoft lib, so override with the ar-lib wrapper script.
6028 # FIXME: It is wrong to rewrite AR.
6029 # But if we don't then we get into trouble of one sort or another.
6030 # A longer-term fix would be to have automake use am__AR in this case,
6031 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6033 AR
="$am_aux_dir/ar-lib $AR"
6036 as_fn_error $?
"could not determine $AR interface" "$LINENO" 5
6041 # Check whether --enable-shared was given.
6042 if test "${enable_shared+set}" = set; then :
6043 enableval
=$enable_shared; p
=${PACKAGE-default}
6045 yes) enable_shared
=yes ;;
6046 no
) enable_shared
=no
;;
6049 # Look at the argument we got. We use all the common list separators.
6050 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
6051 for pkg
in $enableval; do
6053 if test "X$pkg" = "X$p"; then
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6075 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6080 macro_version
='2.2.7a'
6081 macro_revision
='1.3134'
6095 ltmain
="$ac_aux_dir/ltmain.sh"
6097 # Backslashify metacharacters that are still active within
6098 # double-quoted strings.
6099 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
6101 # Same as above, but do not quote variable references.
6102 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
6104 # Sed substitution to delay expansion of an escaped shell variable in a
6105 # double_quote_subst'ed string.
6106 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
6108 # Sed substitution to delay expansion of an escaped single quote.
6109 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
6111 # Sed substitution to avoid accidental globbing in evaled expressions
6112 no_glob_subst
='s/\*/\\\*/g'
6114 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6115 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6116 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6119 $as_echo_n "checking how to print strings... " >&6; }
6120 # Test print first, because it will be a builtin if present.
6121 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6122 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6124 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6127 # Use this function as a fallback that always works.
6128 func_fallback_echo ()
6130 eval 'cat <<_LTECHO_EOF
6134 ECHO='func_fallback_echo
'
6137 # func_echo_all arg...
6138 # Invoke $ECHO with all args, space-separated.
6145 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6146 $as_echo "printf" >&6; } ;;
6147 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6148 $as_echo "print -r" >&6; } ;;
6149 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6150 $as_echo "cat" >&6; } ;;
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6167 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6168 if ${ac_cv_path_SED+:} false; then :
6169 $as_echo_n "(cached) " >&6
6171 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6172 for ac_i in 1 2 3 4 5 6 7; do
6173 ac_script="$ac_script$as_nl$ac_script"
6175 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6176 { ac_script=; unset ac_script;}
6177 if test -z "$SED"; then
6178 ac_path_SED_found=false
6179 # Loop through the user's path and
test for each of PROGNAME-LIST
6180 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6184 test -z "$as_dir" && as_dir
=.
6185 for ac_prog
in sed gsed
; do
6186 for ac_exec_ext
in '' $ac_executable_extensions; do
6187 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
6188 as_fn_executable_p
"$ac_path_SED" ||
continue
6189 # Check for GNU ac_path_SED and select it if it is found.
6190 # Check for GNU $ac_path_SED
6191 case `"$ac_path_SED" --version 2>&1` in
6193 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
6196 $as_echo_n 0123456789 >"conftest.in"
6199 cat "conftest.in" "conftest.in" >"conftest.tmp"
6200 mv "conftest.tmp" "conftest.in"
6201 cp "conftest.in" "conftest.nl"
6202 $as_echo '' >> "conftest.nl"
6203 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6204 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6205 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6206 if test $ac_count -gt ${ac_path_SED_max-0}; then
6207 # Best one so far, save it but keep looking for a better one
6208 ac_cv_path_SED
="$ac_path_SED"
6209 ac_path_SED_max
=$ac_count
6211 # 10*(2^10) chars as input seems more than enough
6212 test $ac_count -gt 10 && break
6214 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6217 $ac_path_SED_found && break 3
6222 if test -z "$ac_cv_path_SED"; then
6223 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6231 $as_echo "$ac_cv_path_SED" >&6; }
6232 SED
="$ac_cv_path_SED"
6235 test -z "$SED" && SED
=sed
6236 Xsed
="$SED -e 1s/^X//"
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6249 $as_echo_n "checking for fgrep... " >&6; }
6250 if ${ac_cv_path_FGREP+:} false
; then :
6251 $as_echo_n "(cached) " >&6
6253 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
6254 then ac_cv_path_FGREP
="$GREP -F"
6256 if test -z "$FGREP"; then
6257 ac_path_FGREP_found
=false
6258 # Loop through the user's path and test for each of PROGNAME-LIST
6259 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6260 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6263 test -z "$as_dir" && as_dir
=.
6264 for ac_prog
in fgrep
; do
6265 for ac_exec_ext
in '' $ac_executable_extensions; do
6266 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
6267 as_fn_executable_p
"$ac_path_FGREP" ||
continue
6268 # Check for GNU ac_path_FGREP and select it if it is found.
6269 # Check for GNU $ac_path_FGREP
6270 case `"$ac_path_FGREP" --version 2>&1` in
6272 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
6275 $as_echo_n 0123456789 >"conftest.in"
6278 cat "conftest.in" "conftest.in" >"conftest.tmp"
6279 mv "conftest.tmp" "conftest.in"
6280 cp "conftest.in" "conftest.nl"
6281 $as_echo 'FGREP' >> "conftest.nl"
6282 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6283 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6284 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6285 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6286 # Best one so far, save it but keep looking for a better one
6287 ac_cv_path_FGREP
="$ac_path_FGREP"
6288 ac_path_FGREP_max
=$ac_count
6290 # 10*(2^10) chars as input seems more than enough
6291 test $ac_count -gt 10 && break
6293 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6296 $ac_path_FGREP_found && break 3
6301 if test -z "$ac_cv_path_FGREP"; then
6302 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6305 ac_cv_path_FGREP
=$FGREP
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6311 $as_echo "$ac_cv_path_FGREP" >&6; }
6312 FGREP
="$ac_cv_path_FGREP"
6315 test -z "$GREP" && GREP
=grep
6335 # Check whether --with-gnu-ld was given.
6336 if test "${with_gnu_ld+set}" = set; then :
6337 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
6343 if test "$GCC" = yes; then
6344 # Check if gcc -print-prog-name=ld gives a path.
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6346 $as_echo_n "checking for ld used by $CC... " >&6; }
6349 # gcc leaves a trailing carriage return which upsets mingw
6350 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6352 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6355 # Accept absolute paths.
6357 re_direlt
='/[^/][^/]*/\.\./'
6358 # Canonicalize the pathname of ld
6359 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6360 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
6361 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6363 test -z "$LD" && LD
="$ac_prog"
6366 # If it fails, then pretend we aren't using GCC.
6370 # If it is relative, then search for the first ld in PATH.
6374 elif test "$with_gnu_ld" = yes; then
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6376 $as_echo_n "checking for GNU ld... " >&6; }
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6379 $as_echo_n "checking for non-GNU ld... " >&6; }
6381 if ${lt_cv_path_LD+:} false
; then :
6382 $as_echo_n "(cached) " >&6
6384 if test -z "$LD"; then
6385 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6386 for ac_dir
in $PATH; do
6388 test -z "$ac_dir" && ac_dir
=.
6389 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6390 lt_cv_path_LD
="$ac_dir/$ac_prog"
6391 # Check to see if the program is GNU ld. I'd rather use --version,
6392 # but apparently some variants of GNU ld only accept -v.
6393 # Break only if it was the GNU/non-GNU ld that we prefer.
6394 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6395 *GNU
* |
*'with BFD'*)
6396 test "$with_gnu_ld" != no
&& break
6399 test "$with_gnu_ld" != yes && break
6406 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
6411 if test -n "$LD"; then
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6413 $as_echo "$LD" >&6; }
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6416 $as_echo "no" >&6; }
6418 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6420 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6421 if ${lt_cv_prog_gnu_ld+:} false
; then :
6422 $as_echo_n "(cached) " >&6
6424 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6425 case `$LD -v 2>&1 </dev/null` in
6426 *GNU
* |
*'with BFD'*)
6427 lt_cv_prog_gnu_ld
=yes
6430 lt_cv_prog_gnu_ld
=no
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6435 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6436 with_gnu_ld
=$lt_cv_prog_gnu_ld
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6447 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6448 if ${lt_cv_path_NM+:} false
; then :
6449 $as_echo_n "(cached) " >&6
6451 if test -n "$NM"; then
6452 # Let the user override the nm to test.
6453 lt_nm_to_check
="$NM"
6455 lt_nm_to_check
="${ac_tool_prefix}nm"
6456 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6457 lt_nm_to_check
="$lt_nm_to_check nm"
6460 for lt_tmp_nm
in $lt_nm_to_check; do
6461 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6462 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
6464 test -z "$ac_dir" && ac_dir
=.
6465 case "$lt_tmp_nm" in
6466 */*|
*\\*) tmp_nm
="$lt_tmp_nm";;
6467 *) tmp_nm
="$ac_dir/$lt_tmp_nm";;
6469 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
6470 # Check to see if the nm accepts a BSD-compat flag.
6471 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6472 # nm: unknown option "B" ignored
6473 case `"$tmp_nm" -B "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6474 *$tmp_nm*) lt_cv_path_NM
="$tmp_nm -B"
6478 case `"$tmp_nm" -p "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6480 lt_cv_path_NM
="$tmp_nm -p"
6484 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6485 continue # so that we can try to find one that supports BSD flags
6494 : ${lt_cv_path_NM=no}
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6497 $as_echo "$lt_cv_path_NM" >&6; }
6498 if test "$lt_cv_path_NM" != "no"; then
6501 # Didn't find any BSD compatible name lister, look for dumpbin.
6502 if test -n "$DUMPBIN"; then :
6503 # Let the user override the test.
6505 if test -n "$ac_tool_prefix"; then
6506 for ac_prog
in dumpbin
"link -dump"
6508 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6509 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6511 $as_echo_n "checking for $ac_word... " >&6; }
6512 if ${ac_cv_prog_DUMPBIN+:} false
; then :
6513 $as_echo_n "(cached) " >&6
6515 if test -n "$DUMPBIN"; then
6516 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
6518 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6522 test -z "$as_dir" && as_dir
=.
6523 for ac_exec_ext
in '' $ac_executable_extensions; do
6524 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6525 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
6526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6535 DUMPBIN
=$ac_cv_prog_DUMPBIN
6536 if test -n "$DUMPBIN"; then
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6538 $as_echo "$DUMPBIN" >&6; }
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6541 $as_echo "no" >&6; }
6545 test -n "$DUMPBIN" && break
6548 if test -z "$DUMPBIN"; then
6549 ac_ct_DUMPBIN
=$DUMPBIN
6550 for ac_prog
in dumpbin
"link -dump"
6552 # Extract the first word of "$ac_prog", so it can be a program name with args.
6553 set dummy
$ac_prog; ac_word
=$2
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6555 $as_echo_n "checking for $ac_word... " >&6; }
6556 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
6557 $as_echo_n "(cached) " >&6
6559 if test -n "$ac_ct_DUMPBIN"; then
6560 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
6562 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6566 test -z "$as_dir" && as_dir
=.
6567 for ac_exec_ext
in '' $ac_executable_extensions; do
6568 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6569 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
6570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6579 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
6580 if test -n "$ac_ct_DUMPBIN"; then
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6582 $as_echo "$ac_ct_DUMPBIN" >&6; }
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6585 $as_echo "no" >&6; }
6589 test -n "$ac_ct_DUMPBIN" && break
6592 if test "x$ac_ct_DUMPBIN" = x
; then
6595 case $cross_compiling:$ac_tool_warned in
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6599 ac_tool_warned
=yes ;;
6601 DUMPBIN
=$ac_ct_DUMPBIN
6605 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6607 DUMPBIN
="$DUMPBIN -symbols"
6615 if test "$DUMPBIN" != ":"; then
6619 test -z "$NM" && NM
=nm
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6627 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6628 if ${lt_cv_nm_interface+:} false
; then :
6629 $as_echo_n "(cached) " >&6
6631 lt_cv_nm_interface
="BSD nm"
6632 echo "int some_variable = 0;" > conftest.
$ac_ext
6633 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6634 (eval "$ac_compile" 2>conftest.err
)
6635 cat conftest.err
>&5
6636 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6637 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
6638 cat conftest.err
>&5
6639 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6640 cat conftest.out
>&5
6641 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
6642 lt_cv_nm_interface
="MS dumpbin"
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6647 $as_echo "$lt_cv_nm_interface" >&6; }
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6650 $as_echo_n "checking whether ln -s works... " >&6; }
6652 if test "$LN_S" = "ln -s"; then
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6654 $as_echo "yes" >&6; }
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6657 $as_echo "no, using $LN_S" >&6; }
6660 # find the maximum length of command line arguments
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6662 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6663 if ${lt_cv_sys_max_cmd_len+:} false
; then :
6664 $as_echo_n "(cached) " >&6
6671 # On DJGPP, this test can blow up pretty badly due to problems in libc
6672 # (any single argument exceeding 2000 bytes causes a buffer overrun
6673 # during glob expansion). Even if it were fixed, the result of this
6674 # check would be larger than it should be.
6675 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
6679 # Under GNU Hurd, this test is not required because there is
6680 # no limit to the length of command line arguments.
6681 # Libtool will interpret -1 as no limit whatsoever
6682 lt_cv_sys_max_cmd_len
=-1;
6685 cygwin
* | mingw
* | cegcc
*)
6686 # On Win9x/ME, this test blows up -- it succeeds, but takes
6687 # about 5 minutes as the teststring grows exponentially.
6688 # Worse, since 9x/ME are not pre-emptively multitasking,
6689 # you end up with a "frozen" computer, even though with patience
6690 # the test eventually succeeds (with a max line length of 256k).
6691 # Instead, let's just punt: use the minimum linelength reported by
6692 # all of the supported platforms: 8192 (on NT/2K/XP).
6693 lt_cv_sys_max_cmd_len
=8192;
6697 # On MiNT this can take a long time and run out of memory.
6698 lt_cv_sys_max_cmd_len
=8192;
6702 # On AmigaOS with pdksh, this test takes hours, literally.
6703 # So we just punt and use a minimum line length of 8192.
6704 lt_cv_sys_max_cmd_len
=8192;
6707 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
6708 # This has been around since 386BSD, at least. Likely further.
6709 if test -x /sbin
/sysctl
; then
6710 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
6711 elif test -x /usr
/sbin
/sysctl
; then
6712 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
6714 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
6716 # And add a safety zone
6717 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6718 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6722 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6723 lt_cv_sys_max_cmd_len
=196608
6727 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6728 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6729 # nice to cause kernel panics so lets avoid the loop below.
6730 # First set a reasonable default.
6731 lt_cv_sys_max_cmd_len
=16384
6733 if test -x /sbin
/sysconfig
; then
6734 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6735 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6740 lt_cv_sys_max_cmd_len
=102400
6742 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6743 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6744 if test -n "$kargmax"; then
6745 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6747 lt_cv_sys_max_cmd_len
=32768
6751 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
6752 if test -n "$lt_cv_sys_max_cmd_len"; then
6753 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6754 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6756 # Make teststring a little bigger before we do anything with it.
6757 # a 1K string should be a reasonable start.
6758 for i
in 1 2 3 4 5 6 7 8 ; do
6759 teststring
=$teststring$teststring
6761 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6762 # If test is not a shell built-in, we'll probably end up computing a
6763 # maximum length that is only half of the actual maximum length, but
6765 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6766 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
6767 test $i != 17 # 1/2 MB should be enough
6770 teststring
=$teststring$teststring
6772 # Only check the string length outside the loop.
6773 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
6775 # Add a significant safety factor because C++ compilers can tack on
6776 # massive amounts of additional arguments before passing them to the
6777 # linker. It appears as though 1/2 is a usable value.
6778 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6785 if test -n $lt_cv_sys_max_cmd_len ; then
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6787 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6790 $as_echo "none" >&6; }
6792 max_cmd_len
=$lt_cv_sys_max_cmd_len
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6804 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6805 # Try some XSI features
6808 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6810 && eval 'test $(( 1 + 1 )) -eq 2 \
6811 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
6814 $as_echo "$xsi_shell" >&6; }
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
6818 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
6820 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
6822 && lt_shell_append=yes
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
6824 $as_echo "$lt_shell_append" >&6; }
6827 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6837 # test EBCDIC or ASCII
6838 case `echo X|tr X '\101'` in
6839 A) # ASCII based system
6840 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6841 lt_SP2NL='tr \040 \012'
6842 lt_NL2SP='tr \015\012 \040\040'
6844 *) # EBCDIC based system
6845 lt_SP2NL='tr \100 \n'
6846 lt_NL2SP='tr \r\n \100\100'
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
6859 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
6860 if ${lt_cv_ld_reload_flag+:} false; then :
6861 $as_echo_n "(cached
) " >&6
6863 lt_cv_ld_reload_flag='-r'
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
6866 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6867 reload_flag=$lt_cv_ld_reload_flag
6868 case $reload_flag in
6870 *) reload_flag=" $reload_flag" ;;
6872 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6875 if test "$GCC" = yes; then
6876 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6878 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6891 if test -n "$ac_tool_prefix"; then
6892 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
6893 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6895 $as_echo_n "checking
for $ac_word...
" >&6; }
6896 if ${ac_cv_prog_OBJDUMP+:} false; then :
6897 $as_echo_n "(cached
) " >&6
6899 if test -n "$OBJDUMP"; then
6900 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906 test -z "$as_dir" && as_dir=.
6907 for ac_exec_ext in '' $ac_executable_extensions; do
6908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6909 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
6910 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6919 OBJDUMP=$ac_cv_prog_OBJDUMP
6920 if test -n "$OBJDUMP"; then
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
6922 $as_echo "$OBJDUMP" >&6; }
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6925 $as_echo "no
" >&6; }
6930 if test -z "$ac_cv_prog_OBJDUMP"; then
6931 ac_ct_OBJDUMP=$OBJDUMP
6932 # Extract the first word of "objdump
", so it can be a program name with args.
6933 set dummy objdump; ac_word=$2
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6935 $as_echo_n "checking
for $ac_word...
" >&6; }
6936 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6937 $as_echo_n "(cached
) " >&6
6939 if test -n "$ac_ct_OBJDUMP"; then
6940 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946 test -z "$as_dir" && as_dir=.
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6949 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
6950 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6959 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6960 if test -n "$ac_ct_OBJDUMP"; then
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
6962 $as_echo "$ac_ct_OBJDUMP" >&6; }
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6965 $as_echo "no
" >&6; }
6968 if test "x
$ac_ct_OBJDUMP" = x; then
6971 case $cross_compiling:$ac_tool_warned in
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6974 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6975 ac_tool_warned=yes ;;
6977 OBJDUMP=$ac_ct_OBJDUMP
6980 OBJDUMP="$ac_cv_prog_OBJDUMP"
6983 test -z "$OBJDUMP" && OBJDUMP=objdump
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
6994 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
6995 if ${lt_cv_deplibs_check_method+:} false; then :
6996 $as_echo_n "(cached
) " >&6
6998 lt_cv_file_magic_cmd='$MAGIC_CMD'
6999 lt_cv_file_magic_test_file=
7000 lt_cv_deplibs_check_method='unknown'
7001 # Need to set the preceding variable on all platforms that support
7002 # interlibrary dependencies.
7003 # 'none' -- dependencies not supported.
7004 # `unknown' -- same as none, but documents that we really don't know.
7005 # 'pass_all' -- all dependencies passed with no checks.
7006 # 'test_compile' -- check by making test program.
7007 # 'file_magic [[regex]]' -- check by looking for files in library path
7008 # which responds to the $file_magic_cmd with a given extended regex.
7009 # If you have `file' or equivalent on your system and you're not sure
7010 # whether `pass_all' will *always* work, you probably want this one.
7014 lt_cv_deplibs_check_method=pass_all
7018 lt_cv_deplibs_check_method=pass_all
7022 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7023 lt_cv_file_magic_cmd='/usr/bin/file -L'
7024 lt_cv_file_magic_test_file=/shlib/libc.so
7028 # func_win32_libid is a shell function defined in ltmain.sh
7029 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7030 lt_cv_file_magic_cmd='func_win32_libid'
7034 # Base MSYS/MinGW do not provide the 'file' command needed by
7035 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7036 # unless we find 'file', for example because we are cross-compiling.
7037 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7038 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
7039 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7040 lt_cv_file_magic_cmd='func_win32_libid'
7042 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7043 lt_cv_file_magic_cmd='$OBJDUMP -f'
7048 # use the weaker test based on 'objdump'. See mingw*.
7049 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7050 lt_cv_file_magic_cmd='$OBJDUMP -f'
7053 darwin* | rhapsody*)
7054 lt_cv_deplibs_check_method=pass_all
7057 freebsd* | dragonfly*)
7058 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7061 # Not sure whether the presence of OpenBSD here was a mistake.
7062 # Let's accept both of them until this is cleared up.
7063 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7064 lt_cv_file_magic_cmd=/usr/bin/file
7065 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7069 lt_cv_deplibs_check_method=pass_all
7074 lt_cv_deplibs_check_method=pass_all
7078 lt_cv_deplibs_check_method=pass_all
7081 hpux10.20* | hpux11*)
7082 lt_cv_file_magic_cmd=/usr/bin/file
7085 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7086 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7089 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]'
7090 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7093 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7094 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7100 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7101 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7104 irix5* | irix6* | nonstopux*)
7106 *-32|*"-32 ") libmagic=32-bit;;
7107 *-n32|*"-n32 ") libmagic=N32;;
7108 *-64|*"-64 ") libmagic=64-bit;;
7109 *) libmagic=never-match;;
7111 lt_cv_deplibs_check_method=pass_all
7114 # This must be Linux ELF.
7115 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7116 lt_cv_deplibs_check_method=pass_all
7120 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7121 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7123 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7128 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7129 lt_cv_file_magic_cmd=/usr/bin/file
7130 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7134 lt_cv_deplibs_check_method=pass_all
7138 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
7139 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7141 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7145 osf3* | osf4* | osf5*)
7146 lt_cv_deplibs_check_method=pass_all
7150 lt_cv_deplibs_check_method=pass_all
7154 lt_cv_deplibs_check_method=pass_all
7157 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7158 lt_cv_deplibs_check_method=pass_all
7162 case $host_vendor in
7164 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]'
7165 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7168 lt_cv_deplibs_check_method=pass_all
7171 lt_cv_file_magic_cmd='/bin/file'
7172 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7175 lt_cv_file_magic_cmd='/bin/file'
7176 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
7177 lt_cv_file_magic_test_file=/lib/libc.so
7180 lt_cv_deplibs_check_method=pass_all
7183 lt_cv_deplibs_check_method=pass_all
7189 lt_cv_deplibs_check_method=pass_all
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
7195 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7196 file_magic_cmd=$lt_cv_file_magic_cmd
7197 deplibs_check_method=$lt_cv_deplibs_check_method
7198 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7212 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll
"
7213 for plugin in $plugin_names; do
7214 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
7215 if test x$plugin_so = x$plugin; then
7216 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
7218 if test x$plugin_so != x$plugin; then
7219 plugin_option="--plugin $plugin_so"
7224 if test -n "$ac_tool_prefix"; then
7225 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7226 set dummy ${ac_tool_prefix}ar; ac_word=$2
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7228 $as_echo_n "checking
for $ac_word...
" >&6; }
7229 if ${ac_cv_prog_AR+:} false; then :
7230 $as_echo_n "(cached
) " >&6
7232 if test -n "$AR"; then
7233 ac_cv_prog_AR="$AR" # Let the user override the test.
7235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239 test -z "$as_dir" && as_dir=.
7240 for ac_exec_ext in '' $ac_executable_extensions; do
7241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7242 ac_cv_prog_AR="${ac_tool_prefix}ar"
7243 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7253 if test -n "$AR"; then
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
7255 $as_echo "$AR" >&6; }
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7258 $as_echo "no
" >&6; }
7263 if test -z "$ac_cv_prog_AR"; then
7265 # Extract the first word of "ar", so it can be a program name with args.
7266 set dummy ar; ac_word=$2
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7268 $as_echo_n "checking
for $ac_word...
" >&6; }
7269 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7270 $as_echo_n "(cached
) " >&6
7272 if test -n "$ac_ct_AR"; then
7273 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7279 test -z "$as_dir" && as_dir=.
7280 for ac_exec_ext in '' $ac_executable_extensions; do
7281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7282 ac_cv_prog_ac_ct_AR="ar"
7283 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7292 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7293 if test -n "$ac_ct_AR"; then
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
7295 $as_echo "$ac_ct_AR" >&6; }
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7298 $as_echo "no
" >&6; }
7301 if test "x
$ac_ct_AR" = x; then
7304 case $cross_compiling:$ac_tool_warned in
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7307 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7308 ac_tool_warned=yes ;;
7316 test -z "$AR" && AR=ar
7317 if test -n "$plugin_option"; then
7318 if $AR --help 2>&1 | grep -q "\
--plugin"; then
7320 $AR $plugin_option rc conftest.a conftest.c
7321 if test "$?
" != 0; then
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: Failed
: $AR $plugin_option rc
" >&5
7323 $as_echo "$as_me: WARNING
: Failed
: $AR $plugin_option rc
" >&2;}
7325 AR="$AR $plugin_option"
7330 test -z "$AR_FLAGS" && AR_FLAGS=cru
7342 if test -n "$ac_tool_prefix"; then
7343 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
7344 set dummy ${ac_tool_prefix}strip; ac_word=$2
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7346 $as_echo_n "checking
for $ac_word...
" >&6; }
7347 if ${ac_cv_prog_STRIP+:} false; then :
7348 $as_echo_n "(cached
) " >&6
7350 if test -n "$STRIP"; then
7351 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357 test -z "$as_dir" && as_dir=.
7358 for ac_exec_ext in '' $ac_executable_extensions; do
7359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7360 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
7361 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7370 STRIP=$ac_cv_prog_STRIP
7371 if test -n "$STRIP"; then
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
7373 $as_echo "$STRIP" >&6; }
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7376 $as_echo "no
" >&6; }
7381 if test -z "$ac_cv_prog_STRIP"; then
7383 # Extract the first word of "strip
", so it can be a program name with args.
7384 set dummy strip; ac_word=$2
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7386 $as_echo_n "checking
for $ac_word...
" >&6; }
7387 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7388 $as_echo_n "(cached
) " >&6
7390 if test -n "$ac_ct_STRIP"; then
7391 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397 test -z "$as_dir" && as_dir=.
7398 for ac_exec_ext in '' $ac_executable_extensions; do
7399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7400 ac_cv_prog_ac_ct_STRIP="strip
"
7401 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7410 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7411 if test -n "$ac_ct_STRIP"; then
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
7413 $as_echo "$ac_ct_STRIP" >&6; }
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7416 $as_echo "no
" >&6; }
7419 if test "x
$ac_ct_STRIP" = x; then
7422 case $cross_compiling:$ac_tool_warned in
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7425 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7426 ac_tool_warned=yes ;;
7431 STRIP="$ac_cv_prog_STRIP"
7434 test -z "$STRIP" && STRIP=:
7441 if test -n "$ac_tool_prefix"; then
7442 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
7443 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7445 $as_echo_n "checking
for $ac_word...
" >&6; }
7446 if ${ac_cv_prog_RANLIB+:} false; then :
7447 $as_echo_n "(cached
) " >&6
7449 if test -n "$RANLIB"; then
7450 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456 test -z "$as_dir" && as_dir=.
7457 for ac_exec_ext in '' $ac_executable_extensions; do
7458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7459 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
7460 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7469 RANLIB=$ac_cv_prog_RANLIB
7470 if test -n "$RANLIB"; then
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
7472 $as_echo "$RANLIB" >&6; }
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7475 $as_echo "no
" >&6; }
7480 if test -z "$ac_cv_prog_RANLIB"; then
7481 ac_ct_RANLIB=$RANLIB
7482 # Extract the first word of "ranlib
", so it can be a program name with args.
7483 set dummy ranlib; ac_word=$2
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7485 $as_echo_n "checking
for $ac_word...
" >&6; }
7486 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7487 $as_echo_n "(cached
) " >&6
7489 if test -n "$ac_ct_RANLIB"; then
7490 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496 test -z "$as_dir" && as_dir=.
7497 for ac_exec_ext in '' $ac_executable_extensions; do
7498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7499 ac_cv_prog_ac_ct_RANLIB="ranlib
"
7500 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7509 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7510 if test -n "$ac_ct_RANLIB"; then
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
7512 $as_echo "$ac_ct_RANLIB" >&6; }
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7515 $as_echo "no
" >&6; }
7518 if test "x
$ac_ct_RANLIB" = x; then
7521 case $cross_compiling:$ac_tool_warned in
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7524 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7525 ac_tool_warned=yes ;;
7527 RANLIB=$ac_ct_RANLIB
7530 RANLIB="$ac_cv_prog_RANLIB"
7533 test -z "$RANLIB" && RANLIB=:
7534 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7535 if $RANLIB --help 2>&1 | grep -q "\
--plugin"; then
7536 RANLIB="$RANLIB $plugin_option"
7545 # Determine commands to create old-style static archives.
7546 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7547 old_postinstall_cmds='chmod 644 $oldlib'
7548 old_postuninstall_cmds=
7550 if test -n "$RANLIB"; then
7553 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
7556 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
7559 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
7564 lock_old_archive_extraction=yes ;;
7566 lock_old_archive_extraction=no ;;
7607 # If no C compiler was specified, use CC.
7610 # If no C compiler flags were specified, use CFLAGS.
7611 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7613 # Allow CC to be a program name with arguments.
7617 # Check for command to grab the raw symbol name followed by C symbol from nm.
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
7619 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
7620 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7621 $as_echo_n "(cached
) " >&6
7624 # These are sane defaults that work on at least a few old systems.
7625 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7627 # Character class describing NM global symbol codes.
7628 symcode='[BCDEGRST]'
7630 # Regexp to match symbols that can be accessed directly from C.
7631 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7633 # Define system-specific variables.
7638 cygwin* | mingw* | pw32* | cegcc*)
7639 symcode='[ABCDGISTW]'
7642 if test "$host_cpu" = ia64; then
7643 symcode='[ABCDEGRST]'
7647 symcode='[BCDEGRST]'
7650 symcode='[BCDEGQRST]'
7661 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7669 # If we're using GNU nm, then use its standard symbol codes.
7670 case `$NM -V 2>&1` in
7671 *GNU* | *'with BFD'*)
7672 symcode='[ABCDGIRSTW]' ;;
7675 # Transform an extracted symbol line into a proper C declaration.
7676 # Some systems (esp. on ia64) link data and code symbols differently,
7677 # so use this general approach.
7678 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7680 # Transform an extracted symbol line into symbol name and symbol address
7681 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7682 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'"
7684 # Handle CRLF in mingw tool chain
7688 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7692 # Try without a prefix underscore, then with it.
7693 for ac_symprfx in "" "_
"; do
7695 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7696 symxfrm="\\1 $ac_symprfx\\2 \\2"
7698 # Write the raw and C identifiers.
7699 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
7700 # Fake it for dumpbin and say T for any non-static function
7701 # and D for any global variable.
7702 # Also find C++ and __fastcall symbols from MSVC++,
7703 # which start with @ or ?.
7704 lt_cv_sys_global_symbol_pipe="$AWK '"\
7705 " {last_section=section; section=\$ 3};"\
7706 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7707 " \$ 0!~/External *\|/{next};"\
7708 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7709 " {if(hide[section]) next};"\
7710 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7711 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7712 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7713 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7714 " ' prfx
=^
$ac_symprfx"
7716 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7719 # Check to see that the pipe works correctly.
7723 cat > conftest.$ac_ext <<_LT_EOF
7728 void nm_test_func(void);
7729 void nm_test_func(void){}
7733 int main(){nm_test_var='a';nm_test_func();return(0);}
7736 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7737 (eval $ac_compile) 2>&5
7739 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7740 test $ac_status = 0; }; then
7741 # Now try to grab the symbols.
7743 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
7744 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7746 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7747 test $ac_status = 0; } && test -s "$nlist"; then
7748 # Try sorting and uniquifying the output.
7749 if sort "$nlist" | uniq > "$nlist"T; then
7750 mv -f "$nlist"T "$nlist"
7755 # Make sure that we snagged all the symbols we need.
7756 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7757 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7758 cat <<_LT_EOF > conftest.$ac_ext
7764 # Now generate the symbol file.
7765 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7767 cat <<_LT_EOF >> conftest.$ac_ext
7769 /* The mapping between symbol names and symbols. */
7774 lt__PROGRAM__LTX_preloaded_symbols[] =
7776 { "@PROGRAM@
", (void *) 0 },
7778 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7779 cat <<\_LT_EOF >> conftest.$ac_ext
7783 /* This works around a problem in FreeBSD linker */
7784 #ifdef FREEBSD_WORKAROUND
7785 static const void *lt_preloaded_setup() {
7786 return lt__PROGRAM__LTX_preloaded_symbols;
7794 # Now try linking the two files.
7795 mv conftest.$ac_objext conftstm.$ac_objext
7796 lt_save_LIBS="$LIBS"
7797 lt_save_CFLAGS="$CFLAGS"
7798 LIBS="conftstm.
$ac_objext"
7799 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7800 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7801 (eval $ac_link) 2>&5
7803 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7804 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7807 LIBS="$lt_save_LIBS"
7808 CFLAGS="$lt_save_CFLAGS"
7810 echo "cannot
find nm_test_func
in $nlist" >&5
7813 echo "cannot
find nm_test_var
in $nlist" >&5
7816 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
7819 echo "$progname: failed program was
:" >&5
7820 cat conftest.$ac_ext >&5
7822 rm -rf conftest* conftst*
7824 # Do not use the global_symbol_pipe unless it works.
7825 if test "$pipe_works" = yes; then
7828 lt_cv_sys_global_symbol_pipe=
7834 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7835 lt_cv_sys_global_symbol_to_cdecl=
7837 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
7839 $as_echo "failed
" >&6; }
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
7842 $as_echo "ok
" >&6; }
7866 # Check whether --enable-libtool-lock was given.
7867 if test "${enable_libtool_lock+set}" = set; then :
7868 enableval=$enable_libtool_lock;
7871 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
7873 # Some flags need to be propagated to the compiler or linker for good
7877 # Find out which ABI we are using.
7878 echo 'int i;' > conftest.$ac_ext
7879 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7880 (eval $ac_compile) 2>&5
7882 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7883 test $ac_status = 0; }; then
7884 case `/usr/bin/file conftest.$ac_objext` in
7896 # Find out which ABI we are using.
7897 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
7898 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7899 (eval $ac_compile) 2>&5
7901 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7902 test $ac_status = 0; }; then
7903 if test "$lt_cv_prog_gnu_ld" = yes; then
7904 case `/usr/bin/file conftest.$ac_objext` in
7906 LD="${LD-ld} -melf32bsmip"
7909 LD="${LD-ld} -melf32bmipn32"
7912 LD="${LD-ld} -melf64bmip"
7916 case `/usr/bin/file conftest.$ac_objext` in
7932 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7933 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7934 # Find out which ABI we are using.
7935 echo 'int i;' > conftest.$ac_ext
7936 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7937 (eval $ac_compile) 2>&5
7939 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7940 test $ac_status = 0; }; then
7941 case `/usr/bin/file conftest.o` in
7944 x86_64-*kfreebsd*-gnu)
7945 LD="${LD-ld} -m elf_i386_fbsd
"
7948 case `/usr/bin/file conftest.o` in
7950 LD="${LD-ld} -m elf32_x86_64
"
7953 LD="${LD-ld} -m elf_i386
"
7957 powerpc64le-*linux*)
7958 LD="${LD-ld} -m elf32lppclinux
"
7961 LD="${LD-ld} -m elf32ppclinux
"
7964 LD="${LD-ld} -m elf_s390
"
7967 LD="${LD-ld} -m elf32_sparc
"
7973 x86_64-*kfreebsd*-gnu)
7974 LD="${LD-ld} -m elf_x86_64_fbsd
"
7977 LD="${LD-ld} -m elf_x86_64
"
7980 LD="${LD-ld} -m elf64lppc
"
7983 LD="${LD-ld} -m elf64ppc
"
7985 s390*-*linux*|s390*-*tpf*)
7986 LD="${LD-ld} -m elf64_s390
"
7989 LD="${LD-ld} -m elf64_sparc
"
7999 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8000 SAVE_CFLAGS="$CFLAGS"
8001 CFLAGS="$CFLAGS -belf"
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
8003 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
8004 if ${lt_cv_cc_needs_belf+:} false; then :
8005 $as_echo_n "(cached
) " >&6
8008 ac_cpp='$CPP $CPPFLAGS'
8009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8014 /* end confdefs.h. */
8024 if ac_fn_c_try_link "$LINENO"; then :
8025 lt_cv_cc_needs_belf=yes
8027 lt_cv_cc_needs_belf=no
8029 rm -f core conftest.err conftest.$ac_objext \
8030 conftest$ac_exeext conftest.$ac_ext
8032 ac_cpp='$CPP $CPPFLAGS'
8033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
8039 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8040 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8041 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8042 CFLAGS="$SAVE_CFLAGS"
8046 # Find out which ABI we are using.
8047 echo 'int i;' > conftest.$ac_ext
8048 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8049 (eval $ac_compile) 2>&5
8051 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
8052 test $ac_status = 0; }; then
8053 case `/usr/bin/file conftest.o` in
8055 case $lt_cv_prog_gnu_ld in
8056 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
8058 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8070 need_locks="$enable_libtool_lock"
8074 rhapsody* | darwin*)
8075 if test -n "$ac_tool_prefix"; then
8076 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
8077 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8079 $as_echo_n "checking
for $ac_word...
" >&6; }
8080 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8081 $as_echo_n "(cached
) " >&6
8083 if test -n "$DSYMUTIL"; then
8084 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8090 test -z "$as_dir" && as_dir=.
8091 for ac_exec_ext in '' $ac_executable_extensions; do
8092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8093 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
8094 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8103 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8104 if test -n "$DSYMUTIL"; then
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
8106 $as_echo "$DSYMUTIL" >&6; }
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8109 $as_echo "no
" >&6; }
8114 if test -z "$ac_cv_prog_DSYMUTIL"; then
8115 ac_ct_DSYMUTIL=$DSYMUTIL
8116 # Extract the first word of "dsymutil
", so it can be a program name with args.
8117 set dummy dsymutil; ac_word=$2
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8119 $as_echo_n "checking
for $ac_word...
" >&6; }
8120 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8121 $as_echo_n "(cached
) " >&6
8123 if test -n "$ac_ct_DSYMUTIL"; then
8124 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8130 test -z "$as_dir" && as_dir=.
8131 for ac_exec_ext in '' $ac_executable_extensions; do
8132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8133 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
8134 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8143 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8144 if test -n "$ac_ct_DSYMUTIL"; then
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
8146 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8149 $as_echo "no
" >&6; }
8152 if test "x
$ac_ct_DSYMUTIL" = x; then
8155 case $cross_compiling:$ac_tool_warned in
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8158 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8159 ac_tool_warned=yes ;;
8161 DSYMUTIL=$ac_ct_DSYMUTIL
8164 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8167 if test -n "$ac_tool_prefix"; then
8168 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
8169 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8171 $as_echo_n "checking
for $ac_word...
" >&6; }
8172 if ${ac_cv_prog_NMEDIT+:} false; then :
8173 $as_echo_n "(cached
) " >&6
8175 if test -n "$NMEDIT"; then
8176 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8182 test -z "$as_dir" && as_dir=.
8183 for ac_exec_ext in '' $ac_executable_extensions; do
8184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8185 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
8186 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8195 NMEDIT=$ac_cv_prog_NMEDIT
8196 if test -n "$NMEDIT"; then
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
8198 $as_echo "$NMEDIT" >&6; }
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8201 $as_echo "no
" >&6; }
8206 if test -z "$ac_cv_prog_NMEDIT"; then
8207 ac_ct_NMEDIT=$NMEDIT
8208 # Extract the first word of "nmedit
", so it can be a program name with args.
8209 set dummy nmedit; ac_word=$2
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8211 $as_echo_n "checking
for $ac_word...
" >&6; }
8212 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8213 $as_echo_n "(cached
) " >&6
8215 if test -n "$ac_ct_NMEDIT"; then
8216 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8222 test -z "$as_dir" && as_dir=.
8223 for ac_exec_ext in '' $ac_executable_extensions; do
8224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8225 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
8226 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8235 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8236 if test -n "$ac_ct_NMEDIT"; then
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
8238 $as_echo "$ac_ct_NMEDIT" >&6; }
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8241 $as_echo "no
" >&6; }
8244 if test "x
$ac_ct_NMEDIT" = x; then
8247 case $cross_compiling:$ac_tool_warned in
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8250 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8251 ac_tool_warned=yes ;;
8253 NMEDIT=$ac_ct_NMEDIT
8256 NMEDIT="$ac_cv_prog_NMEDIT"
8259 if test -n "$ac_tool_prefix"; then
8260 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
8261 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8263 $as_echo_n "checking
for $ac_word...
" >&6; }
8264 if ${ac_cv_prog_LIPO+:} false; then :
8265 $as_echo_n "(cached
) " >&6
8267 if test -n "$LIPO"; then
8268 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8274 test -z "$as_dir" && as_dir=.
8275 for ac_exec_ext in '' $ac_executable_extensions; do
8276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8277 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
8278 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8287 LIPO=$ac_cv_prog_LIPO
8288 if test -n "$LIPO"; then
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
8290 $as_echo "$LIPO" >&6; }
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8293 $as_echo "no
" >&6; }
8298 if test -z "$ac_cv_prog_LIPO"; then
8300 # Extract the first word of "lipo
", so it can be a program name with args.
8301 set dummy lipo; ac_word=$2
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8303 $as_echo_n "checking
for $ac_word...
" >&6; }
8304 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8305 $as_echo_n "(cached
) " >&6
8307 if test -n "$ac_ct_LIPO"; then
8308 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8314 test -z "$as_dir" && as_dir=.
8315 for ac_exec_ext in '' $ac_executable_extensions; do
8316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8317 ac_cv_prog_ac_ct_LIPO="lipo
"
8318 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8327 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8328 if test -n "$ac_ct_LIPO"; then
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
8330 $as_echo "$ac_ct_LIPO" >&6; }
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8333 $as_echo "no
" >&6; }
8336 if test "x
$ac_ct_LIPO" = x; then
8339 case $cross_compiling:$ac_tool_warned in
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8342 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8343 ac_tool_warned=yes ;;
8348 LIPO="$ac_cv_prog_LIPO"
8351 if test -n "$ac_tool_prefix"; then
8352 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
8353 set dummy ${ac_tool_prefix}otool; ac_word=$2
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8355 $as_echo_n "checking
for $ac_word...
" >&6; }
8356 if ${ac_cv_prog_OTOOL+:} false; then :
8357 $as_echo_n "(cached
) " >&6
8359 if test -n "$OTOOL"; then
8360 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8366 test -z "$as_dir" && as_dir=.
8367 for ac_exec_ext in '' $ac_executable_extensions; do
8368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8369 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
8370 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8379 OTOOL=$ac_cv_prog_OTOOL
8380 if test -n "$OTOOL"; then
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
8382 $as_echo "$OTOOL" >&6; }
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8385 $as_echo "no
" >&6; }
8390 if test -z "$ac_cv_prog_OTOOL"; then
8392 # Extract the first word of "otool
", so it can be a program name with args.
8393 set dummy otool; ac_word=$2
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8395 $as_echo_n "checking
for $ac_word...
" >&6; }
8396 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8397 $as_echo_n "(cached
) " >&6
8399 if test -n "$ac_ct_OTOOL"; then
8400 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8406 test -z "$as_dir" && as_dir=.
8407 for ac_exec_ext in '' $ac_executable_extensions; do
8408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8409 ac_cv_prog_ac_ct_OTOOL="otool
"
8410 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8419 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8420 if test -n "$ac_ct_OTOOL"; then
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
8422 $as_echo "$ac_ct_OTOOL" >&6; }
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8425 $as_echo "no
" >&6; }
8428 if test "x
$ac_ct_OTOOL" = x; then
8431 case $cross_compiling:$ac_tool_warned in
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8434 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8435 ac_tool_warned=yes ;;
8440 OTOOL="$ac_cv_prog_OTOOL"
8443 if test -n "$ac_tool_prefix"; then
8444 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
8445 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8447 $as_echo_n "checking
for $ac_word...
" >&6; }
8448 if ${ac_cv_prog_OTOOL64+:} false; then :
8449 $as_echo_n "(cached
) " >&6
8451 if test -n "$OTOOL64"; then
8452 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8458 test -z "$as_dir" && as_dir=.
8459 for ac_exec_ext in '' $ac_executable_extensions; do
8460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8461 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
8462 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8471 OTOOL64=$ac_cv_prog_OTOOL64
8472 if test -n "$OTOOL64"; then
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
8474 $as_echo "$OTOOL64" >&6; }
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8477 $as_echo "no
" >&6; }
8482 if test -z "$ac_cv_prog_OTOOL64"; then
8483 ac_ct_OTOOL64=$OTOOL64
8484 # Extract the first word of "otool64
", so it can be a program name with args.
8485 set dummy otool64; ac_word=$2
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8487 $as_echo_n "checking
for $ac_word...
" >&6; }
8488 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8489 $as_echo_n "(cached
) " >&6
8491 if test -n "$ac_ct_OTOOL64"; then
8492 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8498 test -z "$as_dir" && as_dir=.
8499 for ac_exec_ext in '' $ac_executable_extensions; do
8500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8501 ac_cv_prog_ac_ct_OTOOL64="otool64
"
8502 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8511 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8512 if test -n "$ac_ct_OTOOL64"; then
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
8514 $as_echo "$ac_ct_OTOOL64" >&6; }
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8517 $as_echo "no
" >&6; }
8520 if test "x
$ac_ct_OTOOL64" = x; then
8523 case $cross_compiling:$ac_tool_warned in
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8526 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8527 ac_tool_warned=yes ;;
8529 OTOOL64=$ac_ct_OTOOL64
8532 OTOOL64="$ac_cv_prog_OTOOL64"
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
8562 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
8563 if ${lt_cv_apple_cc_single_mod+:} false; then :
8564 $as_echo_n "(cached
) " >&6
8566 lt_cv_apple_cc_single_mod=no
8567 if test -z "${LT_MULTI_MODULE}"; then
8568 # By default we will add the -single_module flag. You can override
8569 # by either setting the environment variable LT_MULTI_MODULE
8570 # non-empty at configure time, or by adding -multi_module to the
8572 rm -rf libconftest.dylib*
8573 echo "int foo
(void
){return 1;}" > conftest.c
8574 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8575 -dynamiclib -Wl,-single_module conftest.c
" >&5
8576 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8577 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8579 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8580 lt_cv_apple_cc_single_mod=yes
8582 cat conftest.err >&5
8584 rm -rf libconftest.dylib*
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
8589 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
8591 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
8592 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8593 $as_echo_n "(cached
) " >&6
8595 lt_cv_ld_exported_symbols_list=no
8596 save_LDFLAGS=$LDFLAGS
8597 echo "_main
" > conftest.sym
8598 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
8599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8600 /* end confdefs.h. */
8610 if ac_fn_c_try_link "$LINENO"; then :
8611 lt_cv_ld_exported_symbols_list=yes
8613 lt_cv_ld_exported_symbols_list=no
8615 rm -f core conftest.err conftest.$ac_objext \
8616 conftest$ac_exeext conftest.$ac_ext
8617 LDFLAGS="$save_LDFLAGS"
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
8621 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
8623 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
8624 if ${lt_cv_ld_force_load+:} false; then :
8625 $as_echo_n "(cached
) " >&6
8627 lt_cv_ld_force_load=no
8628 cat > conftest.c << _LT_EOF
8629 int forced_loaded() { return 2;}
8631 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
8632 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8633 echo "$AR cru libconftest.a conftest.o
" >&5
8634 $AR cru libconftest.a conftest.o 2>&5
8635 cat > conftest.c << _LT_EOF
8636 int main() { return 0;}
8638 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
8639 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8641 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8642 lt_cv_ld_force_load=yes
8644 cat conftest.err >&5
8646 rm -f conftest.err libconftest.a conftest conftest.c
8647 rm -rf conftest.dSYM
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
8651 $as_echo "$lt_cv_ld_force_load" >&6; }
8653 rhapsody* | darwin1.[012])
8654 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8656 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8657 darwin*) # darwin 5.x on
8658 # if running on 10.5 or later, the deployment target defaults
8659 # to the OS version, if on x86, and 10.4, the deployment
8660 # target defaults to 10.4. Don't you love it?
8661 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8662 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8663 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8665 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8667 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8671 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8672 _lt_dar_single_mod='$single_module'
8674 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8675 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8677 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8679 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
8680 _lt_dsymutil='~$DSYMUTIL $lib || :'
8687 for ac_header in dlfcn.h
8689 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
" "$ac_includes_default
8691 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
8692 cat >>confdefs.h <<_ACEOF
8693 #define HAVE_DLFCN_H 1
8716 # Check whether --enable-static was given.
8717 if test "${enable_static+set}" = set; then :
8718 enableval=$enable_static; p=${PACKAGE-default}
8720 yes) enable_static=yes ;;
8721 no) enable_static=no ;;
8724 # Look at the argument we got. We use all the common list separators.
8725 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8726 for pkg in $enableval; do
8728 if test "X
$pkg" = "X
$p"; then
8748 # Check whether --with-pic was given.
8749 if test "${with_pic+set}" = set; then :
8750 withval=$with_pic; pic_mode="$withval"
8756 test -z "$pic_mode" && pic_mode=default
8764 # Check whether --enable-fast-install was given.
8765 if test "${enable_fast_install+set}" = set; then :
8766 enableval=$enable_fast_install; p=${PACKAGE-default}
8768 yes) enable_fast_install=yes ;;
8769 no) enable_fast_install=no ;;
8771 enable_fast_install=no
8772 # Look at the argument we got. We use all the common list separators.
8773 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8774 for pkg in $enableval; do
8776 if test "X
$pkg" = "X
$p"; then
8777 enable_fast_install=yes
8784 enable_fast_install=yes
8797 # This can be used to rebuild libtool when needed
8798 LIBTOOL_DEPS="$ltmain"
8800 # Always use our own libtool.
8801 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8828 test -z "$LN_S" && LN_S="ln -s"
8843 if test -n "${ZSH_VERSION+set}" ; then
8844 setopt NO_GLOB_SUBST
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
8848 $as_echo_n "checking
for objdir...
" >&6; }
8849 if ${lt_cv_objdir+:} false; then :
8850 $as_echo_n "(cached
) " >&6
8852 rm -f .libs 2>/dev/null
8853 mkdir .libs 2>/dev/null
8854 if test -d .libs; then
8857 # MS-DOS does not allow filenames that begin with a dot.
8860 rmdir .libs 2>/dev/null
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
8863 $as_echo "$lt_cv_objdir" >&6; }
8864 objdir=$lt_cv_objdir
8870 cat >>confdefs.h <<_ACEOF
8871 #define LT_OBJDIR "$lt_cv_objdir/"
8879 # AIX sometimes has problems with the GCC collect2 program. For some
8880 # reason, if we set the COLLECT_NAMES environment variable, the problems
8881 # vanish in a puff of smoke.
8882 if test "X
${COLLECT_NAMES+set}" != Xset; then
8884 export COLLECT_NAMES
8891 can_build_shared=yes
8893 # All known linkers require a `.a' archive for static linking (except MSVC,
8894 # which needs '.lib').
8897 with_gnu_ld="$lt_cv_prog_gnu_ld"
8900 old_CFLAGS="$CFLAGS"
8902 # Set sane defaults for various variables
8903 test -z "$CC" && CC=cc
8904 test -z "$LTCC" && LTCC=$CC
8905 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8906 test -z "$LD" && LD=ld
8907 test -z "$ac_objext" && ac_objext=o
8909 for cc_temp in $compiler""; do
8911 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8912 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8917 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
8920 # Only perform the check for file, if the check method requires it
8921 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8922 case $deplibs_check_method in
8924 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
8926 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
8927 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8928 $as_echo_n "(cached
) " >&6
8932 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8935 lt_save_MAGIC_CMD="$MAGIC_CMD"
8936 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8937 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
8938 for ac_dir in $ac_dummy; do
8940 test -z "$ac_dir" && ac_dir=.
8941 if test -f $ac_dir/${ac_tool_prefix}file; then
8942 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8943 if test -n "$file_magic_test_file"; then
8944 case $deplibs_check_method in
8946 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
8947 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8948 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8949 $EGREP "$file_magic_regex" > /dev/null; then
8954 *** Warning: the command libtool uses to detect shared libraries,
8955 *** $file_magic_cmd, produces output that libtool cannot recognize.
8956 *** The result is that libtool may fail to recognize shared libraries
8957 *** as such. This will affect the creation of libtool libraries that
8958 *** depend on shared libraries, but programs linked with such libtool
8959 *** libraries will work regardless of this problem. Nevertheless, you
8960 *** may want to report the problem to your system manager and/or to
8961 *** bug-libtool@gnu.org
8971 MAGIC_CMD="$lt_save_MAGIC_CMD"
8976 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8977 if test -n "$MAGIC_CMD"; then
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
8979 $as_echo "$MAGIC_CMD" >&6; }
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8982 $as_echo "no
" >&6; }
8989 if test -z "$lt_cv_path_MAGIC_CMD"; then
8990 if test -n "$ac_tool_prefix"; then
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
8992 $as_echo_n "checking
for file...
" >&6; }
8993 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8994 $as_echo_n "(cached
) " >&6
8998 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9001 lt_save_MAGIC_CMD="$MAGIC_CMD"
9002 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9003 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
9004 for ac_dir in $ac_dummy; do
9006 test -z "$ac_dir" && ac_dir=.
9007 if test -f $ac_dir/file; then
9008 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9009 if test -n "$file_magic_test_file"; then
9010 case $deplibs_check_method in
9012 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
9013 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9014 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9015 $EGREP "$file_magic_regex" > /dev/null; then
9020 *** Warning: the command libtool uses to detect shared libraries,
9021 *** $file_magic_cmd, produces output that libtool cannot recognize.
9022 *** The result is that libtool may fail to recognize shared libraries
9023 *** as such. This will affect the creation of libtool libraries that
9024 *** depend on shared libraries, but programs linked with such libtool
9025 *** libraries will work regardless of this problem. Nevertheless, you
9026 *** may want to report the problem to your system manager and/or to
9027 *** bug-libtool@gnu.org
9037 MAGIC_CMD="$lt_save_MAGIC_CMD"
9042 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9043 if test -n "$MAGIC_CMD"; then
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
9045 $as_echo "$MAGIC_CMD" >&6; }
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9048 $as_echo "no
" >&6; }
9061 # Use C for the default configuration in the libtool script
9065 ac_cpp='$CPP $CPPFLAGS'
9066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9071 # Source file extension for C test sources.
9074 # Object file extension for compiled C test sources.
9078 # Code to be used in simple compile tests
9079 lt_simple_compile_test_code="int some_variable
= 0;"
9081 # Code to be used in simple link tests
9082 lt_simple_link_test_code='int main(){return(0);}'
9090 # If no C compiler was specified, use CC.
9093 # If no C compiler flags were specified, use CFLAGS.
9094 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9096 # Allow CC to be a program name with arguments.
9099 # Save the default compiler, since it gets overwritten when the other
9100 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9101 compiler_DEFAULT=$CC
9103 # save warnings/boilerplate of simple test code
9104 ac_outfile=conftest.$ac_objext
9105 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9106 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9107 _lt_compiler_boilerplate=`cat conftest.err`
9110 ac_outfile=conftest.$ac_objext
9111 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9112 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9113 _lt_linker_boilerplate=`cat conftest.err`
9118 ## There is no encapsulation within the following macros, do not change
9119 ## the running order or otherwise move them around unless you know exactly
9120 ## what you are doing...
9121 if test -n "$compiler"; then
9123 lt_prog_compiler_no_builtin_flag=
9125 if test "$GCC" = yes; then
9126 case $cc_basename in
9128 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9130 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
9134 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
9135 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9136 $as_echo_n "(cached
) " >&6
9138 lt_cv_prog_compiler_rtti_exceptions=no
9139 ac_outfile=conftest.$ac_objext
9140 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9141 lt_compiler_flag="-fno-rtti -fno-exceptions"
9142 # Insert the option either (1) after the last *FLAGS variable, or
9143 # (2) before a word containing "conftest.
", or (3) at the end.
9144 # Note that $ac_compile itself does not contain backslashes and begins
9145 # with a dollar sign (not a hyphen), so the echo should work correctly.
9146 # The option is referenced via a variable to avoid confusing sed.
9147 lt_compile=`echo "$ac_compile" | $SED \
9148 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9149 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9150 -e 's:$: $lt_compiler_flag:'`
9151 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9152 (eval "$lt_compile" 2>conftest.err)
9154 cat conftest.err >&5
9155 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9156 if (exit $ac_status) && test -s "$ac_outfile"; then
9157 # The compiler can only warn and ignore the option if not recognized
9158 # So say no if there are warnings other than the usual output.
9159 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9160 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9161 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9162 lt_cv_prog_compiler_rtti_exceptions=yes
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
9169 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9171 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9172 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9184 lt_prog_compiler_wl=
9185 lt_prog_compiler_pic=
9186 lt_prog_compiler_static=
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
9189 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
9191 if test "$GCC" = yes; then
9192 lt_prog_compiler_wl='-Wl,'
9193 lt_prog_compiler_static='-static'
9197 # All AIX code is PIC.
9198 if test "$host_cpu" = ia64; then
9199 # AIX 5 now supports IA64 processor
9200 lt_prog_compiler_static='-Bstatic'
9202 lt_prog_compiler_pic='-fPIC'
9208 # see comment about AmigaOS4 .so support
9209 lt_prog_compiler_pic='-fPIC'
9212 # FIXME: we need at least 68020 code to build shared libraries, but
9213 # adding the `-m68020' flag to GCC prevents building anything better,
9215 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9220 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9221 # PIC is the default for these OSes.
9224 mingw* | cygwin* | pw32* | os2* | cegcc*)
9225 # This hack is so that the source file can tell whether it is being
9226 # built for inclusion in a dll (and should export symbols for example).
9227 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9228 # (--disable-auto-import) libraries
9229 lt_prog_compiler_pic='-DDLL_EXPORT'
9232 darwin* | rhapsody*)
9233 # PIC is the default on this platform
9234 # Common symbols not allowed in MH_DYLIB files
9235 lt_prog_compiler_pic='-fno-common'
9239 # PIC is the default for Haiku.
9240 # The "-static" flag exists, but is broken.
9241 lt_prog_compiler_static=
9245 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9246 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9247 # sets the default TLS model and affects inlining.
9253 lt_prog_compiler_pic='-fPIC'
9259 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9260 # Instead, we relocate shared libraries at runtime.
9264 # Just because we use GCC doesn't mean we suddenly get shared libraries
9265 # on systems that don't support them.
9266 lt_prog_compiler_can_build_shared=no
9271 # QNX uses GNU C++, but need to define -shared option too, otherwise
9273 lt_prog_compiler_pic='-fPIC -shared'
9277 if test -d /usr/nec; then
9278 lt_prog_compiler_pic=-Kconform_pic
9283 lt_prog_compiler_pic='-fPIC'
9287 case $cc_basename in
9288 nvcc*) # Cuda Compiler Driver 2.2
9289 lt_prog_compiler_wl='-Xlinker '
9290 lt_prog_compiler_pic='-Xcompiler -fPIC'
9294 # PORTME Check for flag to pass linker flags through the system compiler.
9297 lt_prog_compiler_wl='-Wl,'
9298 if test "$host_cpu" = ia64; then
9299 # AIX 5 now supports IA64 processor
9300 lt_prog_compiler_static='-Bstatic'
9302 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9306 mingw* | cygwin* | pw32* | os2* | cegcc*)
9307 # This hack is so that the source file can tell whether it is being
9308 # built for inclusion in a dll (and should export symbols for example).
9309 lt_prog_compiler_pic='-DDLL_EXPORT'
9312 hpux9* | hpux10* | hpux11*)
9313 lt_prog_compiler_wl='-Wl,'
9314 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9321 lt_prog_compiler_pic='+Z'
9324 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9325 lt_prog_compiler_static='${wl}-a ${wl}archive'
9328 irix5* | irix6* | nonstopux*)
9329 lt_prog_compiler_wl='-Wl,'
9330 # PIC (with -KPIC) is the default.
9331 lt_prog_compiler_static='-non_shared'
9334 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9335 case $cc_basename in
9336 # old Intel for x86_64 which still supported -KPIC.
9338 lt_prog_compiler_wl='-Wl,'
9339 lt_prog_compiler_pic='-KPIC'
9340 lt_prog_compiler_static='-static'
9342 # icc used to be incompatible with GCC.
9343 # ICC 10 doesn't accept -KPIC any more.
9345 lt_prog_compiler_wl='-Wl,'
9346 lt_prog_compiler_pic='-fPIC'
9347 lt_prog_compiler_static='-static'
9349 # Lahey Fortran 8.1.
9351 lt_prog_compiler_wl='-Wl,'
9352 lt_prog_compiler_pic='--shared'
9353 lt_prog_compiler_static='--static'
9355 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9356 # Portland Group compilers (*not* the Pentium gcc compiler,
9357 # which looks to be a dead project)
9358 lt_prog_compiler_wl='-Wl,'
9359 lt_prog_compiler_pic='-fpic'
9360 lt_prog_compiler_static='-Bstatic'
9363 lt_prog_compiler_wl='-Wl,'
9364 # All Alpha code is PIC.
9365 lt_prog_compiler_static='-non_shared'
9367 xl* | bgxl* | bgf* | mpixl*)
9368 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9369 lt_prog_compiler_wl='-Wl,'
9370 lt_prog_compiler_pic='-qpic'
9371 lt_prog_compiler_static='-qstaticlink'
9374 case `$CC -V 2>&1 | sed 5q` in
9375 *Sun\ F* | *Sun*Fortran*)
9376 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9377 lt_prog_compiler_pic='-KPIC'
9378 lt_prog_compiler_static='-Bstatic'
9379 lt_prog_compiler_wl=''
9383 lt_prog_compiler_pic='-KPIC'
9384 lt_prog_compiler_static='-Bstatic'
9385 lt_prog_compiler_wl='-Wl,'
9393 lt_prog_compiler_pic='-KPIC'
9394 lt_prog_compiler_static='-Bstatic'
9398 # QNX uses GNU C++, but need to define -shared option too, otherwise
9400 lt_prog_compiler_pic='-fPIC -shared'
9403 osf3* | osf4* | osf5*)
9404 lt_prog_compiler_wl='-Wl,'
9405 # All OSF/1 code is PIC.
9406 lt_prog_compiler_static='-non_shared'
9410 lt_prog_compiler_static='-non_shared'
9414 lt_prog_compiler_pic='-KPIC'
9415 lt_prog_compiler_static='-Bstatic'
9416 case $cc_basename in
9418 lt_prog_compiler_wl='-Qoption ld ';;
9420 lt_prog_compiler_wl='-Wl,';;
9425 lt_prog_compiler_wl='-Qoption ld '
9426 lt_prog_compiler_pic='-PIC'
9427 lt_prog_compiler_static='-Bstatic'
9430 sysv4 | sysv4.2uw2* | sysv4.3*)
9431 lt_prog_compiler_wl='-Wl,'
9432 lt_prog_compiler_pic='-KPIC'
9433 lt_prog_compiler_static='-Bstatic'
9437 if test -d /usr/nec ;then
9438 lt_prog_compiler_pic='-Kconform_pic'
9439 lt_prog_compiler_static='-Bstatic'
9443 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9444 lt_prog_compiler_wl='-Wl,'
9445 lt_prog_compiler_pic='-KPIC'
9446 lt_prog_compiler_static='-Bstatic'
9450 lt_prog_compiler_wl='-Wl,'
9451 lt_prog_compiler_can_build_shared=no
9455 lt_prog_compiler_pic='-pic'
9456 lt_prog_compiler_static='-Bstatic'
9460 lt_prog_compiler_can_build_shared=no
9466 # For platforms which do not support PIC, -DPIC is meaningless:
9468 lt_prog_compiler_pic=
9471 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
9475 $as_echo "$lt_prog_compiler_pic" >&6; }
9483 # Check to make sure the PIC flag actually works.
9485 if test -n "$lt_prog_compiler_pic"; then
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
9487 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
9488 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9489 $as_echo_n "(cached
) " >&6
9491 lt_cv_prog_compiler_pic_works=no
9492 ac_outfile=conftest.$ac_objext
9493 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9494 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9495 # Insert the option either (1) after the last *FLAGS variable, or
9496 # (2) before a word containing "conftest.
", or (3) at the end.
9497 # Note that $ac_compile itself does not contain backslashes and begins
9498 # with a dollar sign (not a hyphen), so the echo should work correctly.
9499 # The option is referenced via a variable to avoid confusing sed.
9500 lt_compile=`echo "$ac_compile" | $SED \
9501 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9502 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9503 -e 's:$: $lt_compiler_flag:'`
9504 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9505 (eval "$lt_compile" 2>conftest.err)
9507 cat conftest.err >&5
9508 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9509 if (exit $ac_status) && test -s "$ac_outfile"; then
9510 # The compiler can only warn and ignore the option if not recognized
9511 # So say no if there are warnings other than the usual output.
9512 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9513 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9514 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9515 lt_cv_prog_compiler_pic_works=yes
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
9522 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9524 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9525 case $lt_prog_compiler_pic in
9527 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9530 lt_prog_compiler_pic=
9531 lt_prog_compiler_can_build_shared=no
9542 # Check to make sure the static flag actually works.
9544 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
9546 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
9547 if ${lt_cv_prog_compiler_static_works+:} false; then :
9548 $as_echo_n "(cached
) " >&6
9550 lt_cv_prog_compiler_static_works=no
9551 save_LDFLAGS="$LDFLAGS"
9552 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9553 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9554 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9555 # The linker can only warn and ignore the option if not recognized
9556 # So say no if there are warnings
9557 if test -s conftest.err; then
9558 # Append any errors to the config.log.
9559 cat conftest.err 1>&5
9560 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9561 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9562 if diff conftest.exp conftest.er2 >/dev/null; then
9563 lt_cv_prog_compiler_static_works=yes
9566 lt_cv_prog_compiler_static_works=yes
9570 LDFLAGS="$save_LDFLAGS"
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
9574 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9576 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9579 lt_prog_compiler_static=
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
9589 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
9590 if ${lt_cv_prog_compiler_c_o+:} false; then :
9591 $as_echo_n "(cached
) " >&6
9593 lt_cv_prog_compiler_c_o=no
9594 $RM -r conftest 2>/dev/null
9598 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9600 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
9601 # Insert the option either (1) after the last *FLAGS variable, or
9602 # (2) before a word containing "conftest.
", or (3) at the end.
9603 # Note that $ac_compile itself does not contain backslashes and begins
9604 # with a dollar sign (not a hyphen), so the echo should work correctly.
9605 lt_compile=`echo "$ac_compile" | $SED \
9606 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9607 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9608 -e 's:$: $lt_compiler_flag:'`
9609 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9610 (eval "$lt_compile" 2>out/conftest.err)
9612 cat out/conftest.err >&5
9613 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9614 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9616 # The compiler can only warn and ignore the option if not recognized
9617 # So say no if there are warnings
9618 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9619 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9620 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9621 lt_cv_prog_compiler_c_o=yes
9626 # SGI C++ compiler will create directory out/ii_files/ for
9627 # template instantiation
9628 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9629 $RM out/* && rmdir out
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
9636 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
9644 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
9645 if ${lt_cv_prog_compiler_c_o+:} false; then :
9646 $as_echo_n "(cached
) " >&6
9648 lt_cv_prog_compiler_c_o=no
9649 $RM -r conftest 2>/dev/null
9653 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9655 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
9656 # Insert the option either (1) after the last *FLAGS variable, or
9657 # (2) before a word containing "conftest.
", or (3) at the end.
9658 # Note that $ac_compile itself does not contain backslashes and begins
9659 # with a dollar sign (not a hyphen), so the echo should work correctly.
9660 lt_compile=`echo "$ac_compile" | $SED \
9661 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9662 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9663 -e 's:$: $lt_compiler_flag:'`
9664 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9665 (eval "$lt_compile" 2>out/conftest.err)
9667 cat out/conftest.err >&5
9668 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9669 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9671 # The compiler can only warn and ignore the option if not recognized
9672 # So say no if there are warnings
9673 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9674 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9675 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9676 lt_cv_prog_compiler_c_o=yes
9681 # SGI C++ compiler will create directory out/ii_files/ for
9682 # template instantiation
9683 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9684 $RM out/* && rmdir out
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
9691 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9696 hard_links="nottested
"
9697 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9698 # do not overwrite the value of need_locks provided by the user
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
9700 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
9703 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9705 ln conftest.a conftest.b 2>&5 || hard_links=no
9706 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
9708 $as_echo "$hard_links" >&6; }
9709 if test "$hard_links" = no; then
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
9711 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
9724 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
9727 allow_undefined_flag=
9728 always_export_symbols=no
9730 archive_expsym_cmds=
9731 compiler_needs_object=no
9732 enable_shared_with_static_runtimes=no
9733 export_dynamic_flag_spec=
9734 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9735 hardcode_automatic=no
9737 hardcode_direct_absolute=no
9738 hardcode_libdir_flag_spec=
9739 hardcode_libdir_flag_spec_ld=
9740 hardcode_libdir_separator=
9742 hardcode_shlibpath_var=unsupported
9744 link_all_deplibs=unknown
9747 old_archive_from_new_cmds=
9748 old_archive_from_expsyms_cmds=
9749 thread_safe_flag_spec=
9750 whole_archive_flag_spec=
9751 # include_expsyms should be a list of space-separated symbols to be *always*
9752 # included in the symbol list
9754 # exclude_expsyms can be an extended regexp of symbols to exclude
9755 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9756 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9757 # as well as any symbol that contains `d'.
9758 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9759 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9760 # platforms (ab)use it in PIC code, but their linkers get confused if
9761 # the symbol is explicitly referenced. Since portable code cannot
9762 # rely on this symbol name, it's probably fine to never include it in
9763 # preloaded symbol tables.
9764 # Exclude shared library initialization/finalization symbols.
9765 extract_expsyms_cmds=
9768 cygwin* | mingw* | pw32* | cegcc*)
9769 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9770 # When not using gcc, we currently assume that we are using
9771 # Microsoft Visual C++.
9772 if test "$GCC" != yes; then
9777 # we just hope/assume this is gcc and not c89 (= MSVC++)
9787 # On some targets, GNU ld is compatible enough with the native linker
9788 # that we're better off using the native interface for both.
9789 lt_use_gnu_ld_interface=no
9790 if test "$with_gnu_ld" = yes; then
9793 # The AIX port of GNU ld has always aspired to compatibility
9794 # with the native linker. However, as the warning in the GNU ld
9795 # block says, versions before 2.19.5* couldn't really create working
9796 # shared libraries, regardless of the interface used.
9797 case `$LD -v 2>&1` in
9798 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9799 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9800 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9802 lt_use_gnu_ld_interface=yes
9807 lt_use_gnu_ld_interface=yes
9812 if test "$lt_use_gnu_ld_interface" = yes; then
9813 # If archive_cmds runs LD, not CC, wlarc should be empty
9816 # Set some defaults for GNU ld with shared library support. These
9817 # are reset later if shared libraries are not supported. Putting them
9818 # here allows them to be overridden if necessary.
9819 runpath_var=LD_RUN_PATH
9820 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9821 export_dynamic_flag_spec='${wl}--export-dynamic'
9822 # ancient GNU ld didn't support --whole-archive et. al.
9823 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9824 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9826 whole_archive_flag_spec=
9828 supports_anon_versioning=no
9829 case `$LD -v 2>&1` in
9830 *GNU\ gold*) supports_anon_versioning=yes ;;
9831 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9832 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9833 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9834 *\ 2.11.*) ;; # other 2.11 versions
9835 *) supports_anon_versioning=yes ;;
9838 # See if GNU ld supports shared libraries.
9841 # On AIX/PPC, the GNU linker is very broken
9842 if test "$host_cpu" != ia64; then
9846 *** Warning: the GNU linker, at least up to release 2.19, is reported
9847 *** to be unable to reliably create shared libraries on AIX.
9848 *** Therefore, libtool is disabling shared libraries support. If you
9849 *** really care for shared libraries, you may want to install binutils
9850 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9851 *** You will then need to restart the configuration process.
9860 # see comment about AmigaOS4 .so support
9861 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9862 archive_expsym_cmds=''
9865 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)'
9866 hardcode_libdir_flag_spec
='-L$libdir'
9867 hardcode_minus_L
=yes
9873 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9874 allow_undefined_flag
=unsupported
9875 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9876 # support --undefined. This deserves some investigation. FIXME
9877 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9883 cygwin
* | mingw
* | pw32
* | cegcc
*)
9884 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9885 # as there is no search path for DLLs.
9886 hardcode_libdir_flag_spec
='-L$libdir'
9887 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9888 allow_undefined_flag
=unsupported
9889 always_export_symbols
=no
9890 enable_shared_with_static_runtimes
=yes
9891 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9893 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9894 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9895 # If the export-symbols file already is a .def file (1st line
9896 # is EXPORTS), use it as is; otherwise, prepend...
9897 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9898 cp $export_symbols $output_objdir/$soname.def;
9900 echo EXPORTS > $output_objdir/$soname.def;
9901 cat $export_symbols >> $output_objdir/$soname.def;
9903 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9910 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9911 link_all_deplibs
=yes
9916 hardcode_shlibpath_var
=no
9917 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9918 export_dynamic_flag_spec
='${wl}-E'
9919 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9920 # Instead, shared libraries are loaded at an image base (0x10000000 by
9921 # default) and relocated if they conflict, which is a slow very memory
9922 # consuming and fragmenting process. To avoid this, we pick a random,
9923 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9924 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9925 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9926 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'
9929 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9931 if test "$host_os" = linux-dietlibc
; then
9932 case $cc_basename in
9933 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9936 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9937 && test "$tmp_diet" = no
9939 tmp_addflag
=' $pic_flag'
9940 tmp_sharedflag
='-shared'
9941 case $cc_basename,$host_cpu in
9942 pgcc
*) # Portland Group C compiler
9943 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'
9944 tmp_addflag
=' $pic_flag'
9946 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9947 # Portland Group f77 and f90 compilers
9948 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'
9949 tmp_addflag
=' $pic_flag -Mnomain' ;;
9950 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9951 tmp_addflag
=' -i_dynamic' ;;
9952 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9953 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9954 ifc
* | ifort
*) # Intel Fortran compiler
9955 tmp_addflag
=' -nofor_main' ;;
9956 lf95
*) # Lahey Fortran 8.1
9957 whole_archive_flag_spec
=
9958 tmp_sharedflag
='--shared' ;;
9959 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9960 tmp_sharedflag
='-qmkshrobj'
9962 nvcc
*) # Cuda Compiler Driver 2.2
9963 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'
9964 compiler_needs_object
=yes
9967 case `$CC -V 2>&1 | sed 5q` in
9968 *Sun\ C
*) # Sun C 5.9
9969 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'
9970 compiler_needs_object
=yes
9971 tmp_sharedflag
='-G' ;;
9972 *Sun\ F
*) # Sun Fortran 8.3
9973 tmp_sharedflag
='-G' ;;
9975 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9977 if test "x$supports_anon_versioning" = xyes
; then
9978 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9979 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9980 echo "local: *; };" >> $output_objdir/$libname.ver~
9981 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9984 case $cc_basename in
9985 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9986 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9987 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9988 hardcode_libdir_flag_spec
=
9989 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9990 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9991 if test "x$supports_anon_versioning" = xyes
; then
9992 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9993 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9994 echo "local: *; };" >> $output_objdir/$libname.ver~
9995 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10005 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10006 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10009 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10010 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10015 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
10019 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10020 *** create shared libraries on Solaris systems. Therefore, libtool
10021 *** is disabling shared libraries support. We urge you to upgrade GNU
10022 *** binutils to release 2.9.1 or newer. Another option is to modify
10023 *** your PATH or compiler configuration so that the native linker is
10024 *** used, and then restart.
10027 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
10028 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10029 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10035 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
10036 case `$LD -v 2>&1` in
10037 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
10041 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10042 *** reliably create shared libraries on SCO systems. Therefore, libtool
10043 *** is disabling shared libraries support. We urge you to upgrade GNU
10044 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10045 *** your PATH or compiler configuration so that the native linker is
10046 *** used, and then restart.
10051 # For security reasons, it is highly recommended that you always
10052 # use absolute paths for naming shared libraries, and exclude the
10053 # DT_RUNPATH tag from executables and libraries. But doing so
10054 # requires that you compile everything twice, which is a pain.
10055 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
10056 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10057 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10058 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10067 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10069 hardcode_direct
=yes
10070 hardcode_shlibpath_var
=no
10074 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
10075 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10076 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10083 if test "$ld_shlibs" = no
; then
10085 hardcode_libdir_flag_spec
=
10086 export_dynamic_flag_spec
=
10087 whole_archive_flag_spec
=
10090 # PORTME fill in a description of your system's linker (not GNU ld)
10093 allow_undefined_flag
=unsupported
10094 always_export_symbols
=yes
10095 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'
10096 # Note: this linker hardcodes the directories in LIBPATH if there
10097 # are no directories specified by -L.
10098 hardcode_minus_L
=yes
10099 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10100 # Neither direct hardcoding nor static linking is supported with a
10102 hardcode_direct
=unsupported
10107 if test "$host_cpu" = ia64
; then
10108 # On IA64, the linker does run time linking by default, so we don't
10109 # have to do anything special.
10110 aix_use_runtimelinking
=no
10111 exp_sym_flag
='-Bexport'
10114 # If we're using GNU nm, then we don't want the "-C" option.
10115 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10116 # Also, AIX nm treats weak defined symbols like other global
10117 # defined symbols, whereas GNU nm marks them as "W".
10118 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
10119 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'
10121 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'
10123 aix_use_runtimelinking
=no
10125 # Test if we are trying to use run time linking or normal
10126 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10127 # need to do runtime linking.
10128 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
10129 for ld_flag
in $LDFLAGS; do
10130 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
10131 aix_use_runtimelinking
=yes
10138 exp_sym_flag
='-bexport'
10139 no_entry_flag
='-bnoentry'
10142 # When large executables or shared objects are built, AIX ld can
10143 # have problems creating the table of contents. If linking a library
10144 # or program results in "error TOC overflow" add -mminimal-toc to
10145 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10146 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10149 hardcode_direct
=yes
10150 hardcode_direct_absolute
=yes
10151 hardcode_libdir_separator
=':'
10152 link_all_deplibs
=yes
10153 file_list_spec
='${wl}-f,'
10155 if test "$GCC" = yes; then
10156 case $host_os in aix4.
[012]|aix4.
[012].
*)
10157 # We only want to do this on AIX 4.2 and lower, the check
10158 # below for broken collect2 doesn't work under 4.3+
10159 collect2name
=`${CC} -print-prog-name=collect2`
10160 if test -f "$collect2name" &&
10161 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
10163 # We have reworked collect2
10166 # We have old collect2
10167 hardcode_direct
=unsupported
10168 # It fails to find uninstalled libraries when the uninstalled
10169 # path is not listed in the libpath. Setting hardcode_minus_L
10170 # to unsupported forces relinking
10171 hardcode_minus_L
=yes
10172 hardcode_libdir_flag_spec
='-L$libdir'
10173 hardcode_libdir_separator
=
10177 shared_flag
='-shared'
10178 if test "$aix_use_runtimelinking" = yes; then
10179 shared_flag
="$shared_flag "'${wl}-G'
10183 if test "$host_cpu" = ia64
; then
10184 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10185 # chokes on -Wl,-G. The following line is correct:
10188 if test "$aix_use_runtimelinking" = yes; then
10189 shared_flag
='${wl}-G'
10191 shared_flag
='${wl}-bM:SRE'
10196 export_dynamic_flag_spec
='${wl}-bexpall'
10197 # It seems that -bexpall does not export symbols beginning with
10198 # underscore (_), so it is better to generate a list of symbols to export.
10199 always_export_symbols
=yes
10200 if test "$aix_use_runtimelinking" = yes; then
10201 # Warning - without using the other runtime loading flags (-brtl),
10202 # -berok will link without error, but may produce a broken library.
10203 allow_undefined_flag
='-berok'
10204 # Determine the default libpath from the value encoded in an
10205 # empty executable.
10206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10207 /* end confdefs.h. */
10217 if ac_fn_c_try_link
"$LINENO"; then :
10219 lt_aix_libpath_sed
='
10220 /Import File Strings/,/^$/ {
10226 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10227 # Check for a 64-bit object if we didn't find anything.
10228 if test -z "$aix_libpath"; then
10229 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10232 rm -f core conftest.err conftest.
$ac_objext \
10233 conftest
$ac_exeext conftest.
$ac_ext
10234 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
10236 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
10237 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"
10239 if test "$host_cpu" = ia64
; then
10240 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
10241 allow_undefined_flag
="-z nodefs"
10242 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"
10244 # Determine the default libpath from the value encoded in an
10245 # empty executable.
10246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10247 /* end confdefs.h. */
10257 if ac_fn_c_try_link
"$LINENO"; then :
10259 lt_aix_libpath_sed
='
10260 /Import File Strings/,/^$/ {
10266 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10267 # Check for a 64-bit object if we didn't find anything.
10268 if test -z "$aix_libpath"; then
10269 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10272 rm -f core conftest.err conftest.
$ac_objext \
10273 conftest
$ac_exeext conftest.
$ac_ext
10274 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
10276 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
10277 # Warning - without using the other run time loading flags,
10278 # -berok will link without error, but may produce a broken library.
10279 no_undefined_flag
=' ${wl}-bernotok'
10280 allow_undefined_flag
=' ${wl}-berok'
10281 if test "$with_gnu_ld" = yes; then
10282 # We only use this code for GNU lds that support --whole-archive.
10283 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10285 # Exported symbols can be pulled into shared objects from archives
10286 whole_archive_flag_spec
='$convenience'
10288 archive_cmds_need_lc
=yes
10289 # This is similar to how AIX traditionally builds its shared libraries.
10290 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'
10298 # see comment about AmigaOS4 .so support
10299 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10300 archive_expsym_cmds
=''
10303 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)'
10304 hardcode_libdir_flag_spec
='-L$libdir'
10305 hardcode_minus_L
=yes
10311 export_dynamic_flag_spec
=-rdynamic
10314 cygwin
* | mingw
* | pw32
* | cegcc
*)
10315 # When not using gcc, we currently assume that we are using
10316 # Microsoft Visual C++.
10317 # hardcode_libdir_flag_spec is actually meaningless, as there is
10318 # no search path for DLLs.
10319 hardcode_libdir_flag_spec
=' '
10320 allow_undefined_flag
=unsupported
10321 # Tell ltmain to make .lib files, not .a files.
10323 # Tell ltmain to make .dll files, not .so files.
10325 # FIXME: Setting linknames here is a bad hack.
10326 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10327 # The linker will automatically build a .lib file if we build a DLL.
10328 old_archive_from_new_cmds
='true'
10329 # FIXME: Should let the user specify the lib program.
10330 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
10331 fix_srcfile_path
='`cygpath -w "$srcfile"`'
10332 enable_shared_with_static_runtimes
=yes
10335 darwin
* | rhapsody
*)
10338 archive_cmds_need_lc
=no
10340 hardcode_automatic
=yes
10341 hardcode_shlibpath_var
=unsupported
10342 if test "$lt_cv_ld_force_load" = "yes"; then
10343 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\"`'
10345 whole_archive_flag_spec
=''
10347 link_all_deplibs
=yes
10348 allow_undefined_flag
="$_lt_dar_allow_undefined"
10349 case $cc_basename in
10350 ifort
*) _lt_dar_can_shared
=yes ;;
10351 *) _lt_dar_can_shared
=$GCC ;;
10353 if test "$_lt_dar_can_shared" = "yes"; then
10354 output_verbose_link_cmd
=func_echo_all
10355 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10356 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10357 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}"
10358 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}"
10367 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10368 hardcode_libdir_flag_spec
='-L$libdir'
10369 hardcode_shlibpath_var
=no
10372 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10373 # support. Future versions do this automatically, but an explicit c++rt0.o
10374 # does not break anything, and helps significantly (at the cost of a little
10377 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10378 hardcode_libdir_flag_spec
='-R$libdir'
10379 hardcode_direct
=yes
10380 hardcode_shlibpath_var
=no
10383 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10385 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10386 hardcode_direct
=yes
10387 hardcode_minus_L
=yes
10388 hardcode_shlibpath_var
=no
10391 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10392 freebsd
* | dragonfly
*)
10393 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10394 hardcode_libdir_flag_spec
='-R$libdir'
10395 hardcode_direct
=yes
10396 hardcode_shlibpath_var
=no
10400 if test "$GCC" = yes; then
10401 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'
10403 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'
10405 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10406 hardcode_libdir_separator
=:
10407 hardcode_direct
=yes
10409 # hardcode_minus_L: Not really in the search PATH,
10410 # but as the default location of the library.
10411 hardcode_minus_L
=yes
10412 export_dynamic_flag_spec
='${wl}-E'
10416 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
10417 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10419 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10421 if test "$with_gnu_ld" = no
; then
10422 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10423 hardcode_libdir_flag_spec_ld
='+b $libdir'
10424 hardcode_libdir_separator
=:
10425 hardcode_direct
=yes
10426 hardcode_direct_absolute
=yes
10427 export_dynamic_flag_spec
='${wl}-E'
10428 # hardcode_minus_L: Not really in the search PATH,
10429 # but as the default location of the library.
10430 hardcode_minus_L
=yes
10435 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
10438 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10441 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10444 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10450 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10453 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10457 # Older versions of the 11.00 compiler do not understand -b yet
10458 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10460 $as_echo_n "checking if $CC understands -b... " >&6; }
10461 if ${lt_cv_prog_compiler__b+:} false
; then :
10462 $as_echo_n "(cached) " >&6
10464 lt_cv_prog_compiler__b
=no
10465 save_LDFLAGS
="$LDFLAGS"
10466 LDFLAGS
="$LDFLAGS -b"
10467 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
10468 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
10469 # The linker can only warn and ignore the option if not recognized
10470 # So say no if there are warnings
10471 if test -s conftest.err
; then
10472 # Append any errors to the config.log.
10473 cat conftest.err
1>&5
10474 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
10475 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
10476 if diff conftest.exp conftest.er2
>/dev
/null
; then
10477 lt_cv_prog_compiler__b
=yes
10480 lt_cv_prog_compiler__b
=yes
10484 LDFLAGS
="$save_LDFLAGS"
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10488 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10490 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
10491 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10493 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10499 if test "$with_gnu_ld" = no
; then
10500 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10501 hardcode_libdir_separator
=:
10506 hardcode_shlibpath_var
=no
10509 hardcode_direct
=yes
10510 hardcode_direct_absolute
=yes
10511 export_dynamic_flag_spec
='${wl}-E'
10513 # hardcode_minus_L: Not really in the search PATH,
10514 # but as the default location of the library.
10515 hardcode_minus_L
=yes
10521 irix5
* | irix6
* | nonstopux
*)
10522 if test "$GCC" = yes; then
10523 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'
10524 # Try to use the -exported_symbol ld option, if it does not
10525 # work, assume that -exports_file does not work either and
10526 # implicitly export all symbols.
10527 save_LDFLAGS
="$LDFLAGS"
10528 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10530 /* end confdefs.h. */
10533 if ac_fn_c_try_link
"$LINENO"; then :
10534 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'
10537 rm -f core conftest.err conftest.
$ac_objext \
10538 conftest
$ac_exeext conftest.
$ac_ext
10539 LDFLAGS
="$save_LDFLAGS"
10541 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'
10542 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'
10544 archive_cmds_need_lc
='no'
10545 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10546 hardcode_libdir_separator
=:
10548 link_all_deplibs
=yes
10552 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10553 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10555 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10557 hardcode_libdir_flag_spec
='-R$libdir'
10558 hardcode_direct
=yes
10559 hardcode_shlibpath_var
=no
10563 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10564 hardcode_direct
=yes
10565 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10566 hardcode_libdir_separator
=:
10567 hardcode_shlibpath_var
=no
10574 if test -f /usr
/libexec
/ld.so
; then
10575 hardcode_direct
=yes
10576 hardcode_shlibpath_var
=no
10577 hardcode_direct_absolute
=yes
10578 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10579 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10580 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10581 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10582 export_dynamic_flag_spec
='${wl}-E'
10585 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
10586 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10587 hardcode_libdir_flag_spec
='-R$libdir'
10590 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10591 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10601 hardcode_libdir_flag_spec
='-L$libdir'
10602 hardcode_minus_L
=yes
10603 allow_undefined_flag
=unsupported
10604 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'
10605 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10609 if test "$GCC" = yes; then
10610 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10611 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'
10613 allow_undefined_flag
=' -expect_unresolved \*'
10614 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'
10616 archive_cmds_need_lc
='no'
10617 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10618 hardcode_libdir_separator
=:
10621 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
10622 if test "$GCC" = yes; then
10623 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10624 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'
10625 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10627 allow_undefined_flag
=' -expect_unresolved \*'
10628 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'
10629 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~
10630 $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'
10632 # Both c and cxx compiler support -rpath directly
10633 hardcode_libdir_flag_spec
='-rpath $libdir'
10635 archive_cmds_need_lc
='no'
10636 hardcode_libdir_separator
=:
10640 no_undefined_flag
=' -z defs'
10641 if test "$GCC" = yes; then
10643 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10644 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10645 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10647 case `$CC -V 2>&1` in
10650 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10651 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10652 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10656 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10657 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10658 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10662 hardcode_libdir_flag_spec
='-R$libdir'
10663 hardcode_shlibpath_var
=no
10665 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10667 # The compiler driver will combine and reorder linker options,
10668 # but understands `-z linker_flag'. GCC discards it without `$wl',
10669 # but is careful enough not to reorder.
10670 # Supported since Solaris 2.6 (maybe 2.5.1?)
10671 if test "$GCC" = yes; then
10672 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10674 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10678 link_all_deplibs
=yes
10682 if test "x$host_vendor" = xsequent
; then
10683 # Use $CC to link under sequent, because it throws in some extra .o
10684 # files that make .init and .fini sections work.
10685 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10687 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10689 hardcode_libdir_flag_spec
='-L$libdir'
10690 hardcode_direct
=yes
10691 hardcode_minus_L
=yes
10692 hardcode_shlibpath_var
=no
10696 case $host_vendor in
10698 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10699 hardcode_direct
=yes # is this really true???
10702 ## LD is ld it makes a PLAMLIB
10703 ## CC just makes a GrossModule.
10704 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10705 reload_cmds
='$CC -r -o $output$reload_objs'
10709 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10710 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10713 runpath_var
='LD_RUN_PATH'
10714 hardcode_shlibpath_var
=no
10718 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10719 hardcode_shlibpath_var
=no
10720 export_dynamic_flag_spec
='-Bexport'
10724 if test -d /usr
/nec
; then
10725 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10726 hardcode_shlibpath_var
=no
10727 runpath_var
=LD_RUN_PATH
10728 hardcode_runpath_var
=yes
10733 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10734 no_undefined_flag
='${wl}-z,text'
10735 archive_cmds_need_lc
=no
10736 hardcode_shlibpath_var
=no
10737 runpath_var
='LD_RUN_PATH'
10739 if test "$GCC" = yes; then
10740 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10741 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10743 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10744 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10748 sysv5
* | sco3.2v5
* | sco5v6
*)
10749 # Note: We can NOT use -z defs as we might desire, because we do not
10750 # link with -lc, and that would cause any symbols used from libc to
10751 # always be unresolved, which means just about no library would
10752 # ever link correctly. If we're not using GNU ld we use -z text
10753 # though, which does catch some bad symbols but isn't as heavy-handed
10755 no_undefined_flag
='${wl}-z,text'
10756 allow_undefined_flag
='${wl}-z,nodefs'
10757 archive_cmds_need_lc
=no
10758 hardcode_shlibpath_var
=no
10759 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10760 hardcode_libdir_separator
=':'
10761 link_all_deplibs
=yes
10762 export_dynamic_flag_spec
='${wl}-Bexport'
10763 runpath_var
='LD_RUN_PATH'
10765 if test "$GCC" = yes; then
10766 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10767 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10769 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10770 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10775 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10776 hardcode_libdir_flag_spec
='-L$libdir'
10777 hardcode_shlibpath_var
=no
10785 if test x
$host_vendor = xsni
; then
10787 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10788 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10795 $as_echo "$ld_shlibs" >&6; }
10796 test "$ld_shlibs" = no
&& can_build_shared
=no
10798 with_gnu_ld
=$with_gnu_ld
10815 # Do we need to explicitly link libc?
10817 case "x$archive_cmds_need_lc" in
10819 # Assume -lc should be added
10820 archive_cmds_need_lc
=yes
10822 if test "$enable_shared" = yes && test "$GCC" = yes; then
10823 case $archive_cmds in
10825 # FIXME: we may have to deal with multi-command sequences.
10828 # Test whether the compiler implicitly links with -lc since on some
10829 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10830 # to ld, don't add -lc before -lgcc.
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10832 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10833 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10834 $as_echo_n "(cached) " >&6
10837 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10840 (eval $ac_compile) 2>&5
10842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10843 test $ac_status = 0; } 2>conftest.err
; then
10846 libobjs
=conftest.
$ac_objext
10848 wl
=$lt_prog_compiler_wl
10849 pic_flag
=$lt_prog_compiler_pic
10855 lt_save_allow_undefined_flag
=$allow_undefined_flag
10856 allow_undefined_flag
=
10857 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10858 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10861 test $ac_status = 0; }
10863 lt_cv_archive_cmds_need_lc
=no
10865 lt_cv_archive_cmds_need_lc
=yes
10867 allow_undefined_flag
=$lt_save_allow_undefined_flag
10869 cat conftest.err
1>&5
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10875 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10876 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11040 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11042 if test "$GCC" = yes; then
11044 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
11045 *) lt_awk_arg
="/^libraries:/" ;;
11048 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
11049 *) lt_sed_strip_eq
="s,=/,/,g" ;;
11051 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11052 case $lt_search_path_spec in
11054 # if the path contains ";" then we assume it to be the separator
11055 # otherwise default to the standard path separator (i.e. ":") - it is
11056 # assumed that no part of a normal pathname contains ";" but that should
11057 # okay in the real world where ";" in dirpaths is itself problematic.
11058 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11061 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11064 # Ok, now we have the path, separated by spaces, we can step through it
11065 # and add multilib dir if necessary.
11066 lt_tmp_lt_search_path_spec
=
11067 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11068 for lt_sys_path
in $lt_search_path_spec; do
11069 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11070 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11072 test -d "$lt_sys_path" && \
11073 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
11076 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11077 BEGIN {RS=" "; FS="/|\n";} {
11080 for (lt_i = NF; lt_i > 0; lt_i--) {
11081 if ($lt_i != "" && $lt_i != ".") {
11082 if ($lt_i == "..") {
11085 if (lt_count == 0) {
11086 lt_foo="/" $lt_i lt_foo;
11093 if (lt_foo != "") { lt_freq[lt_foo]++; }
11094 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11096 # AWK program above erroneously prepends '/' to C:/dos/paths
11099 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
11100 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11102 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11104 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
11106 library_names_spec
=
11107 libname_spec
='lib$name'
11111 postuninstall_cmds
=
11115 shlibpath_overrides_runpath
=unknown
11117 dynamic_linker
="$host_os ld.so"
11118 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
11119 need_lib_prefix
=unknown
11120 hardcode_into_libs
=no
11122 # when you set need_version to no, make sure it does not cause -set_version
11123 # flags to be left without arguments
11124 need_version
=unknown
11129 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
11130 shlibpath_var
=LIBPATH
11132 # AIX 3 has no versioning support, so we append a major version to the name.
11133 soname_spec
='${libname}${release}${shared_ext}$major'
11140 hardcode_into_libs
=yes
11141 if test "$host_cpu" = ia64
; then
11142 # AIX 5 supports IA64
11143 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11144 shlibpath_var
=LD_LIBRARY_PATH
11146 # With GCC up to 2.95.x, collect2 would create an import file
11147 # for dependence libraries. The import file would start with
11148 # the line `#! .'. This would cause the generated library to
11149 # depend on `.', always an invalid library. This was fixed in
11150 # development snapshots of GCC prior to 3.0.
11152 aix4 | aix4.
[01] | aix4.
[01].
*)
11153 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11155 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
11158 can_build_shared
=no
11162 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11163 # soname into executable. Probably we can add versioning support to
11164 # collect2, so additional links can be useful in future.
11165 if test "$aix_use_runtimelinking" = yes; then
11166 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11167 # instead of lib<name>.a to let people know that these are not
11168 # typical AIX shared libraries.
11169 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11171 # We preserve .a as extension for shared libraries through AIX4.2
11172 # and later when we are not doing run time linking.
11173 library_names_spec
='${libname}${release}.a $libname.a'
11174 soname_spec
='${libname}${release}${shared_ext}$major'
11176 shlibpath_var
=LIBPATH
11183 # Since July 2007 AmigaOS4 officially supports .so libraries.
11184 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11185 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11188 library_names_spec
='$libname.ixlibrary $libname.a'
11189 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11190 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'
11196 library_names_spec
='${libname}${shared_ext}'
11197 dynamic_linker
="$host_os ld.so"
11198 shlibpath_var
=LIBRARY_PATH
11204 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11205 soname_spec
='${libname}${release}${shared_ext}$major'
11206 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
11207 shlibpath_var
=LD_LIBRARY_PATH
11208 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11209 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
11210 # the default ld.so.conf also contains /usr/contrib/lib and
11211 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11212 # libtool to hard-code these into programs
11215 cygwin
* | mingw
* | pw32
* | cegcc
*)
11216 version_type
=windows
11221 case $GCC,$host_os in
11222 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
11223 library_names_spec
='$libname.dll.a'
11224 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11225 postinstall_cmds
='base_file=`basename \${file}`~
11226 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11227 dldir=$destdir/`dirname \$dlpath`~
11228 test -d \$dldir || mkdir -p \$dldir~
11229 $install_prog $dir/$dlname \$dldir/$dlname~
11230 chmod a+x \$dldir/$dlname~
11231 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11232 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11234 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11235 dlpath=$dir/\$dldll~
11237 shlibpath_overrides_runpath
=yes
11241 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11242 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11244 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
11247 # MinGW DLLs use traditional 'lib' prefix
11248 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11251 # pw32 DLLs use 'pw' prefix rather than 'lib'
11252 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11258 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11261 dynamic_linker
='Win32 ld.exe'
11262 # FIXME: first we should search . and the directory the executable is in
11266 darwin
* | rhapsody
*)
11267 dynamic_linker
="$host_os dyld"
11268 version_type
=darwin
11271 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11272 soname_spec
='${libname}${release}${major}$shared_ext'
11273 shlibpath_overrides_runpath
=yes
11274 shlibpath_var
=DYLD_LIBRARY_PATH
11275 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
11277 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
11278 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
11285 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11286 soname_spec
='${libname}${release}${shared_ext}$major'
11287 shlibpath_var
=LD_LIBRARY_PATH
11290 freebsd
* | dragonfly
*)
11291 # DragonFly does not have aout. When/if they implement a new
11292 # versioning mechanism, adjust this.
11293 if test -x /usr
/bin
/objformat
; then
11294 objformat
=`/usr/bin/objformat`
11297 freebsd
[23].
*) objformat
=aout
;;
11298 *) objformat
=elf
;;
11301 version_type
=freebsd-
$objformat
11302 case $version_type in
11304 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11309 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11313 shlibpath_var
=LD_LIBRARY_PATH
11316 shlibpath_overrides_runpath
=yes
11318 freebsd3.
[01]* | freebsdelf3.
[01]*)
11319 shlibpath_overrides_runpath
=yes
11320 hardcode_into_libs
=yes
11322 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
11323 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
11324 shlibpath_overrides_runpath
=no
11325 hardcode_into_libs
=yes
11327 *) # from 4.6 on, and DragonFly
11328 shlibpath_overrides_runpath
=yes
11329 hardcode_into_libs
=yes
11338 dynamic_linker
="$host_os runtime_loader"
11339 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11340 soname_spec
='${libname}${release}${shared_ext}$major'
11341 shlibpath_var
=LIBRARY_PATH
11342 shlibpath_overrides_runpath
=yes
11343 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11344 hardcode_into_libs
=yes
11347 hpux9
* | hpux10
* | hpux11
*)
11348 # Give a soname corresponding to the major version so that dld.sl refuses to
11349 # link against other versions.
11356 hardcode_into_libs
=yes
11357 dynamic_linker
="$host_os dld.so"
11358 shlibpath_var
=LD_LIBRARY_PATH
11359 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11360 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11361 soname_spec
='${libname}${release}${shared_ext}$major'
11362 if test "X$HPUX_IA64_MODE" = X32
; then
11363 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11365 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
11367 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11371 hardcode_into_libs
=yes
11372 dynamic_linker
="$host_os dld.sl"
11373 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
11374 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11375 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11376 soname_spec
='${libname}${release}${shared_ext}$major'
11377 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11378 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11382 dynamic_linker
="$host_os dld.sl"
11383 shlibpath_var
=SHLIB_PATH
11384 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
11385 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11386 soname_spec
='${libname}${release}${shared_ext}$major'
11389 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11390 postinstall_cmds
='chmod 555 $lib'
11391 # or fails outright, so override atomically:
11392 install_override_mode
=555
11399 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11400 soname_spec
='${libname}${release}${shared_ext}$major'
11401 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
11402 shlibpath_var
=LD_LIBRARY_PATH
11403 shlibpath_overrides_runpath
=no
11404 hardcode_into_libs
=yes
11407 irix5
* | irix6
* | nonstopux
*)
11409 nonstopux
*) version_type
=nonstopux
;;
11411 if test "$lt_cv_prog_gnu_ld" = yes; then
11419 soname_spec
='${libname}${release}${shared_ext}$major'
11420 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11422 irix5
* | nonstopux
*)
11423 libsuff
= shlibsuff
=
11426 case $LD in # libtool.m4 will add one of these switches to LD
11427 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
11428 libsuff
= shlibsuff
= libmagic
=32-bit;;
11429 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
11430 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
11431 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
11432 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
11433 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
11437 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
11438 shlibpath_overrides_runpath
=no
11439 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11440 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
11441 hardcode_into_libs
=yes
11444 # No shared lib support for Linux oldld, aout, or coff.
11445 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
11449 # This must be Linux ELF.
11450 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
11454 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11455 soname_spec
='${libname}${release}${shared_ext}$major'
11456 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11457 shlibpath_var
=LD_LIBRARY_PATH
11458 shlibpath_overrides_runpath
=no
11460 # Some binutils ld are patched to set DT_RUNPATH
11461 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
11462 $as_echo_n "(cached) " >&6
11464 lt_cv_shlibpath_overrides_runpath
=no
11465 save_LDFLAGS
=$LDFLAGS
11466 save_libdir
=$libdir
11467 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11468 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11470 /* end confdefs.h. */
11480 if ac_fn_c_try_link
"$LINENO"; then :
11481 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
11482 lt_cv_shlibpath_overrides_runpath
=yes
11485 rm -f core conftest.err conftest.
$ac_objext \
11486 conftest
$ac_exeext conftest.
$ac_ext
11487 LDFLAGS
=$save_LDFLAGS
11488 libdir
=$save_libdir
11492 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
11494 # This implies no fast_install, which is unacceptable.
11495 # Some rework will be needed to allow for fast_install
11496 # before this can be enabled.
11497 hardcode_into_libs
=yes
11499 # Append ld.so.conf contents to the search path
11500 if test -f /etc
/ld.so.conf
; then
11501 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' ' '`
11502 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
11505 # We used to test for /lib/ld.so.1 and disable shared libraries on
11506 # powerpc, because MkLinux only supported shared libraries with the
11507 # GNU dynamic linker. Since this was broken with cross compilers,
11508 # most powerpc-linux boxes support dynamic linking these days and
11509 # people can always --disable-shared, the test was removed, and we
11510 # assume the GNU/Linux dynamic linker is in use.
11511 dynamic_linker
='GNU/Linux ld.so'
11518 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
11519 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11520 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11521 dynamic_linker
='NetBSD (a.out) ld.so'
11523 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11524 soname_spec
='${libname}${release}${shared_ext}$major'
11525 dynamic_linker
='NetBSD ld.elf_so'
11527 shlibpath_var
=LD_LIBRARY_PATH
11528 shlibpath_overrides_runpath
=yes
11529 hardcode_into_libs
=yes
11534 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11535 shlibpath_var
=LD_LIBRARY_PATH
11536 shlibpath_overrides_runpath
=yes
11543 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11544 soname_spec
='${libname}${release}${shared_ext}$major'
11545 shlibpath_var
=LD_LIBRARY_PATH
11546 shlibpath_overrides_runpath
=no
11547 hardcode_into_libs
=yes
11548 dynamic_linker
='ldqnx.so'
11553 sys_lib_dlsearch_path_spec
="/usr/lib"
11555 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11557 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
11558 *) need_version
=no
;;
11560 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11561 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11562 shlibpath_var
=LD_LIBRARY_PATH
11563 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11565 openbsd2.
[89] | openbsd2.
[89].
*)
11566 shlibpath_overrides_runpath
=no
11569 shlibpath_overrides_runpath
=yes
11573 shlibpath_overrides_runpath
=yes
11578 libname_spec
='$name'
11581 library_names_spec
='$libname${shared_ext} $libname.a'
11582 dynamic_linker
='OS/2 ld.exe'
11583 shlibpath_var
=LIBPATH
11586 osf3
* | osf4
* | osf5
*)
11590 soname_spec
='${libname}${release}${shared_ext}$major'
11591 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11592 shlibpath_var
=LD_LIBRARY_PATH
11593 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11594 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
11605 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11606 soname_spec
='${libname}${release}${shared_ext}$major'
11607 shlibpath_var
=LD_LIBRARY_PATH
11608 shlibpath_overrides_runpath
=yes
11609 hardcode_into_libs
=yes
11610 # ldd complains unless libraries are executable
11611 postinstall_cmds
='chmod +x $lib'
11616 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11617 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11618 shlibpath_var
=LD_LIBRARY_PATH
11619 shlibpath_overrides_runpath
=yes
11620 if test "$with_gnu_ld" = yes; then
11628 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11629 soname_spec
='${libname}${release}${shared_ext}$major'
11630 shlibpath_var
=LD_LIBRARY_PATH
11631 case $host_vendor in
11633 shlibpath_overrides_runpath
=no
11635 runpath_var
=LD_RUN_PATH
11643 shlibpath_overrides_runpath
=no
11644 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11650 if test -d /usr
/nec
;then
11652 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11653 soname_spec
='$libname${shared_ext}.$major'
11654 shlibpath_var
=LD_LIBRARY_PATH
11658 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11659 version_type
=freebsd-elf
11662 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11663 soname_spec
='${libname}${release}${shared_ext}$major'
11664 shlibpath_var
=LD_LIBRARY_PATH
11665 shlibpath_overrides_runpath
=yes
11666 hardcode_into_libs
=yes
11667 if test "$with_gnu_ld" = yes; then
11668 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11670 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11673 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11677 sys_lib_dlsearch_path_spec
='/usr/lib'
11681 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11685 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11686 shlibpath_var
=LD_LIBRARY_PATH
11687 shlibpath_overrides_runpath
=no
11688 hardcode_into_libs
=yes
11693 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11694 soname_spec
='${libname}${release}${shared_ext}$major'
11695 shlibpath_var
=LD_LIBRARY_PATH
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11703 $as_echo "$dynamic_linker" >&6; }
11704 test "$dynamic_linker" = no
&& can_build_shared
=no
11706 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11707 if test "$GCC" = yes; then
11708 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11711 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11712 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
11714 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11715 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11810 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11812 if test -n "$hardcode_libdir_flag_spec" ||
11813 test -n "$runpath_var" ||
11814 test "X$hardcode_automatic" = "Xyes" ; then
11816 # We can hardcode non-existent directories.
11817 if test "$hardcode_direct" != no
&&
11818 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11819 # have to relink, otherwise we might link with an installed library
11820 # when we should be linking with a yet-to-be-installed one
11821 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11822 test "$hardcode_minus_L" != no
; then
11823 # Linking always hardcodes the temporary library directory.
11824 hardcode_action
=relink
11826 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11827 hardcode_action
=immediate
11830 # We cannot hardcode anything, or else we can only hardcode existing
11832 hardcode_action
=unsupported
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11835 $as_echo "$hardcode_action" >&6; }
11837 if test "$hardcode_action" = relink ||
11838 test "$inherit_rpath" = yes; then
11839 # Fast installation is not supported
11840 enable_fast_install
=no
11841 elif test "$shlibpath_overrides_runpath" = yes ||
11842 test "$enable_shared" = no
; then
11843 # Fast installation is not necessary
11844 enable_fast_install
=needless
11852 if test "x$enable_dlopen" != xyes
; then
11853 enable_dlopen
=unknown
11854 enable_dlopen_self
=unknown
11855 enable_dlopen_self_static
=unknown
11862 lt_cv_dlopen
="load_add_on"
11864 lt_cv_dlopen_self
=yes
11867 mingw
* | pw32
* | cegcc
*)
11868 lt_cv_dlopen
="LoadLibrary"
11873 lt_cv_dlopen
="dlopen"
11878 # if libdl is installed we need to link against it
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11880 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11881 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11882 $as_echo_n "(cached) " >&6
11884 ac_check_lib_save_LIBS
=$LIBS
11886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11887 /* end confdefs.h. */
11889 /* Override any GCC internal prototype to avoid an error.
11890 Use char because int might match the return type of a GCC
11891 builtin and then its argument prototype would still apply. */
11904 if ac_fn_c_try_link
"$LINENO"; then :
11905 ac_cv_lib_dl_dlopen
=yes
11907 ac_cv_lib_dl_dlopen
=no
11909 rm -f core conftest.err conftest.
$ac_objext \
11910 conftest
$ac_exeext conftest.
$ac_ext
11911 LIBS
=$ac_check_lib_save_LIBS
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11914 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11915 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11916 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11919 lt_cv_dlopen
="dyld"
11921 lt_cv_dlopen_self
=yes
11928 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11929 if test "x$ac_cv_func_shl_load" = xyes
; then :
11930 lt_cv_dlopen
="shl_load"
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11933 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11934 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11935 $as_echo_n "(cached) " >&6
11937 ac_check_lib_save_LIBS
=$LIBS
11939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11940 /* end confdefs.h. */
11942 /* Override any GCC internal prototype to avoid an error.
11943 Use char because int might match the return type of a GCC
11944 builtin and then its argument prototype would still apply. */
11952 return shl_load ();
11957 if ac_fn_c_try_link
"$LINENO"; then :
11958 ac_cv_lib_dld_shl_load
=yes
11960 ac_cv_lib_dld_shl_load
=no
11962 rm -f core conftest.err conftest.
$ac_objext \
11963 conftest
$ac_exeext conftest.
$ac_ext
11964 LIBS
=$ac_check_lib_save_LIBS
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11967 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11968 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11969 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11971 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11972 if test "x$ac_cv_func_dlopen" = xyes
; then :
11973 lt_cv_dlopen
="dlopen"
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11976 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11977 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11978 $as_echo_n "(cached) " >&6
11980 ac_check_lib_save_LIBS
=$LIBS
11982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11983 /* end confdefs.h. */
11985 /* Override any GCC internal prototype to avoid an error.
11986 Use char because int might match the return type of a GCC
11987 builtin and then its argument prototype would still apply. */
12000 if ac_fn_c_try_link
"$LINENO"; then :
12001 ac_cv_lib_dl_dlopen
=yes
12003 ac_cv_lib_dl_dlopen
=no
12005 rm -f core conftest.err conftest.
$ac_objext \
12006 conftest
$ac_exeext conftest.
$ac_ext
12007 LIBS
=$ac_check_lib_save_LIBS
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12010 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12011 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
12012 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12015 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12016 if ${ac_cv_lib_svld_dlopen+:} false
; then :
12017 $as_echo_n "(cached) " >&6
12019 ac_check_lib_save_LIBS
=$LIBS
12020 LIBS
="-lsvld $LIBS"
12021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12022 /* end confdefs.h. */
12024 /* Override any GCC internal prototype to avoid an error.
12025 Use char because int might match the return type of a GCC
12026 builtin and then its argument prototype would still apply. */
12039 if ac_fn_c_try_link
"$LINENO"; then :
12040 ac_cv_lib_svld_dlopen
=yes
12042 ac_cv_lib_svld_dlopen
=no
12044 rm -f core conftest.err conftest.
$ac_objext \
12045 conftest
$ac_exeext conftest.
$ac_ext
12046 LIBS
=$ac_check_lib_save_LIBS
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12049 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12050 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
12051 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12054 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12055 if ${ac_cv_lib_dld_dld_link+:} false
; then :
12056 $as_echo_n "(cached) " >&6
12058 ac_check_lib_save_LIBS
=$LIBS
12060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12061 /* end confdefs.h. */
12063 /* Override any GCC internal prototype to avoid an error.
12064 Use char because int might match the return type of a GCC
12065 builtin and then its argument prototype would still apply. */
12073 return dld_link ();
12078 if ac_fn_c_try_link
"$LINENO"; then :
12079 ac_cv_lib_dld_dld_link
=yes
12081 ac_cv_lib_dld_dld_link
=no
12083 rm -f core conftest.err conftest.
$ac_objext \
12084 conftest
$ac_exeext conftest.
$ac_ext
12085 LIBS
=$ac_check_lib_save_LIBS
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12088 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12089 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
12090 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
12111 if test "x$lt_cv_dlopen" != xno
; then
12117 case $lt_cv_dlopen in
12119 save_CPPFLAGS
="$CPPFLAGS"
12120 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
12122 save_LDFLAGS
="$LDFLAGS"
12123 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
12126 LIBS
="$lt_cv_dlopen_libs $LIBS"
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12129 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12130 if ${lt_cv_dlopen_self+:} false
; then :
12131 $as_echo_n "(cached) " >&6
12133 if test "$cross_compiling" = yes; then :
12134 lt_cv_dlopen_self
=cross
12136 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12137 lt_status
=$lt_dlunknown
12138 cat > conftest.
$ac_ext <<_LT_EOF
12139 #line 12139 "configure"
12140 #include "confdefs.h"
12149 # define LT_DLGLOBAL RTLD_GLOBAL
12152 # define LT_DLGLOBAL DL_GLOBAL
12154 # define LT_DLGLOBAL 0
12158 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12159 find out it does not work in some platform. */
12160 #ifndef LT_DLLAZY_OR_NOW
12162 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12165 # define LT_DLLAZY_OR_NOW DL_LAZY
12168 # define LT_DLLAZY_OR_NOW RTLD_NOW
12171 # define LT_DLLAZY_OR_NOW DL_NOW
12173 # define LT_DLLAZY_OR_NOW 0
12180 /* When -fvisbility=hidden is used, assume the code has been annotated
12181 correspondingly for the symbols needed. */
12182 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12183 void fnord () __attribute__((visibility("default")));
12186 void fnord () { int i=42; }
12189 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12190 int status = $lt_dlunknown;
12194 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12197 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12198 else puts (dlerror ());
12200 /* dlclose (self); */
12208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12209 (eval $ac_link) 2>&5
12211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12212 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
12213 (.
/conftest
; exit; ) >&5 2>/dev
/null
12215 case x
$lt_status in
12216 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
12217 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
12218 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
12221 # compilation failed
12222 lt_cv_dlopen_self
=no
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12230 $as_echo "$lt_cv_dlopen_self" >&6; }
12232 if test "x$lt_cv_dlopen_self" = xyes
; then
12233 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12235 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12236 if ${lt_cv_dlopen_self_static+:} false
; then :
12237 $as_echo_n "(cached) " >&6
12239 if test "$cross_compiling" = yes; then :
12240 lt_cv_dlopen_self_static
=cross
12242 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12243 lt_status
=$lt_dlunknown
12244 cat > conftest.
$ac_ext <<_LT_EOF
12245 #line 12245 "configure"
12246 #include "confdefs.h"
12255 # define LT_DLGLOBAL RTLD_GLOBAL
12258 # define LT_DLGLOBAL DL_GLOBAL
12260 # define LT_DLGLOBAL 0
12264 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12265 find out it does not work in some platform. */
12266 #ifndef LT_DLLAZY_OR_NOW
12268 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12271 # define LT_DLLAZY_OR_NOW DL_LAZY
12274 # define LT_DLLAZY_OR_NOW RTLD_NOW
12277 # define LT_DLLAZY_OR_NOW DL_NOW
12279 # define LT_DLLAZY_OR_NOW 0
12286 /* When -fvisbility=hidden is used, assume the code has been annotated
12287 correspondingly for the symbols needed. */
12288 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12289 void fnord () __attribute__((visibility("default")));
12292 void fnord () { int i=42; }
12295 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12296 int status = $lt_dlunknown;
12300 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12303 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12304 else puts (dlerror ());
12306 /* dlclose (self); */
12314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12315 (eval $ac_link) 2>&5
12317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12318 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
12319 (.
/conftest
; exit; ) >&5 2>/dev
/null
12321 case x
$lt_status in
12322 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
12323 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
12324 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
12327 # compilation failed
12328 lt_cv_dlopen_self_static
=no
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12336 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12339 CPPFLAGS
="$save_CPPFLAGS"
12340 LDFLAGS
="$save_LDFLAGS"
12345 case $lt_cv_dlopen_self in
12346 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
12347 *) enable_dlopen_self
=unknown
;;
12350 case $lt_cv_dlopen_self_static in
12351 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
12352 *) enable_dlopen_self_static
=unknown
;;
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12375 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12376 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
12377 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
12378 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12380 $as_echo "yes" >&6; }
12382 # FIXME - insert some real tests, host_os isn't really good enough
12385 if test -n "$STRIP" ; then
12386 striplib
="$STRIP -x"
12387 old_striplib
="$STRIP -S"
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12389 $as_echo "yes" >&6; }
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12392 $as_echo "no" >&6; }
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12397 $as_echo "no" >&6; }
12413 # Report which library types will actually be built
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12415 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12417 $as_echo "$can_build_shared" >&6; }
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12420 $as_echo_n "checking whether to build shared libraries... " >&6; }
12421 test "$can_build_shared" = "no" && enable_shared
=no
12423 # On AIX, shared libraries and static libraries use the same namespace, and
12424 # are all built from PIC.
12427 test "$enable_shared" = yes && enable_static
=no
12428 if test -n "$RANLIB"; then
12429 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
12430 postinstall_cmds
='$RANLIB $lib'
12435 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
12436 test "$enable_shared" = yes && enable_static
=no
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12441 $as_echo "$enable_shared" >&6; }
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12444 $as_echo_n "checking whether to build static libraries... " >&6; }
12445 # Make sure either enable_shared or enable_static is yes.
12446 test "$enable_shared" = yes || enable_static
=yes
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12448 $as_echo "$enable_static" >&6; }
12455 ac_cpp
='$CPP $CPPFLAGS'
12456 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12457 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12458 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12462 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12463 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12464 (test "X$CXX" != "Xg++"))) ; then
12466 ac_cpp
='$CXXCPP $CPPFLAGS'
12467 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12468 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12469 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12471 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12472 if test -z "$CXXCPP"; then
12473 if ${ac_cv_prog_CXXCPP+:} false
; then :
12474 $as_echo_n "(cached) " >&6
12476 # Double quotes because CXXCPP needs to be expanded
12477 for CXXCPP
in "$CXX -E" "/lib/cpp"
12479 ac_preproc_ok
=false
12480 for ac_cxx_preproc_warn_flag
in '' yes
12482 # Use a header file that comes with gcc, so configuring glibc
12483 # with a fresh cross-compiler works.
12484 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12485 # <limits.h> exists even on freestanding compilers.
12486 # On the NeXT, cc -E runs the code through the compiler's parser,
12487 # not just through cpp. "Syntax error" is here to catch this case.
12488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12489 /* end confdefs.h. */
12491 # include <limits.h>
12493 # include <assert.h>
12497 if ac_fn_cxx_try_cpp
"$LINENO"; then :
12500 # Broken: fails on valid input.
12503 rm -f conftest.err conftest.i conftest.
$ac_ext
12505 # OK, works on sane cases. Now check whether nonexistent headers
12506 # can be detected and how.
12507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12508 /* end confdefs.h. */
12509 #include <ac_nonexistent.h>
12511 if ac_fn_cxx_try_cpp
"$LINENO"; then :
12512 # Broken: success on invalid input.
12515 # Passes both tests.
12519 rm -f conftest.err conftest.i conftest.
$ac_ext
12522 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12523 rm -f conftest.i conftest.err conftest.
$ac_ext
12524 if $ac_preproc_ok; then :
12529 ac_cv_prog_CXXCPP
=$CXXCPP
12532 CXXCPP
=$ac_cv_prog_CXXCPP
12534 ac_cv_prog_CXXCPP
=$CXXCPP
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12537 $as_echo "$CXXCPP" >&6; }
12538 ac_preproc_ok
=false
12539 for ac_cxx_preproc_warn_flag
in '' yes
12541 # Use a header file that comes with gcc, so configuring glibc
12542 # with a fresh cross-compiler works.
12543 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12544 # <limits.h> exists even on freestanding compilers.
12545 # On the NeXT, cc -E runs the code through the compiler's parser,
12546 # not just through cpp. "Syntax error" is here to catch this case.
12547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12548 /* end confdefs.h. */
12550 # include <limits.h>
12552 # include <assert.h>
12556 if ac_fn_cxx_try_cpp
"$LINENO"; then :
12559 # Broken: fails on valid input.
12562 rm -f conftest.err conftest.i conftest.
$ac_ext
12564 # OK, works on sane cases. Now check whether nonexistent headers
12565 # can be detected and how.
12566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12567 /* end confdefs.h. */
12568 #include <ac_nonexistent.h>
12570 if ac_fn_cxx_try_cpp
"$LINENO"; then :
12571 # Broken: success on invalid input.
12574 # Passes both tests.
12578 rm -f conftest.err conftest.i conftest.
$ac_ext
12581 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12582 rm -f conftest.i conftest.err conftest.
$ac_ext
12583 if $ac_preproc_ok; then :
12586 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12588 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
12589 See \`config.log' for more details" "$LINENO" 5; }
12593 ac_cpp
='$CPP $CPPFLAGS'
12594 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12595 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12596 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12599 _lt_caught_CXX_error
=yes
12603 ac_cpp
='$CXXCPP $CPPFLAGS'
12604 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12605 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12606 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12608 archive_cmds_need_lc_CXX
=no
12609 allow_undefined_flag_CXX
=
12610 always_export_symbols_CXX
=no
12611 archive_expsym_cmds_CXX
=
12612 compiler_needs_object_CXX
=no
12613 export_dynamic_flag_spec_CXX
=
12614 hardcode_direct_CXX
=no
12615 hardcode_direct_absolute_CXX
=no
12616 hardcode_libdir_flag_spec_CXX
=
12617 hardcode_libdir_flag_spec_ld_CXX
=
12618 hardcode_libdir_separator_CXX
=
12619 hardcode_minus_L_CXX
=no
12620 hardcode_shlibpath_var_CXX
=unsupported
12621 hardcode_automatic_CXX
=no
12622 inherit_rpath_CXX
=no
12624 module_expsym_cmds_CXX
=
12625 link_all_deplibs_CXX
=unknown
12626 old_archive_cmds_CXX
=$old_archive_cmds
12627 reload_flag_CXX
=$reload_flag
12628 reload_cmds_CXX
=$reload_cmds
12629 no_undefined_flag_CXX
=
12630 whole_archive_flag_spec_CXX
=
12631 enable_shared_with_static_runtimes_CXX
=no
12633 # Source file extension for C++ test sources.
12636 # Object file extension for compiled C++ test sources.
12640 # No sense in running all these tests if we already determined that
12641 # the CXX compiler isn't working. Some variables (like enable_shared)
12642 # are currently assumed to apply to all compilers on this platform,
12643 # and will be corrupted by setting them based on a non-working compiler.
12644 if test "$_lt_caught_CXX_error" != yes; then
12645 # Code to be used in simple compile tests
12646 lt_simple_compile_test_code
="int some_variable = 0;"
12648 # Code to be used in simple link tests
12649 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
12651 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12658 # If no C compiler was specified, use CC.
12661 # If no C compiler flags were specified, use CFLAGS.
12662 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
12664 # Allow CC to be a program name with arguments.
12668 # save warnings/boilerplate of simple test code
12669 ac_outfile
=conftest.
$ac_objext
12670 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
12671 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12672 _lt_compiler_boilerplate
=`cat conftest.err`
12675 ac_outfile
=conftest.
$ac_objext
12676 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
12677 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12678 _lt_linker_boilerplate
=`cat conftest.err`
12682 # Allow CC to be a program name with arguments.
12687 lt_save_with_gnu_ld
=$with_gnu_ld
12688 lt_save_path_LD
=$lt_cv_path_LD
12689 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12690 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
12692 $as_unset lt_cv_prog_gnu_ld
12694 if test -n "${lt_cv_path_LDCXX+set}"; then
12695 lt_cv_path_LD
=$lt_cv_path_LDCXX
12697 $as_unset lt_cv_path_LD
12699 test -z "${LDCXX+set}" || LD
=$LDCXX
12703 for cc_temp
in $compiler""; do
12705 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
12706 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
12711 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12714 if test -n "$compiler"; then
12715 # We don't want -fno-exception when compiling C++ code, so set the
12716 # no_builtin_flag separately
12717 if test "$GXX" = yes; then
12718 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
12720 lt_prog_compiler_no_builtin_flag_CXX
=
12723 if test "$GXX" = yes; then
12724 # Set up default GNU C++ configuration
12728 # Check whether --with-gnu-ld was given.
12729 if test "${with_gnu_ld+set}" = set; then :
12730 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12736 if test "$GCC" = yes; then
12737 # Check if gcc -print-prog-name=ld gives a path.
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12739 $as_echo_n "checking for ld used by $CC... " >&6; }
12742 # gcc leaves a trailing carriage return which upsets mingw
12743 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12745 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12748 # Accept absolute paths.
12750 re_direlt
='/[^/][^/]*/\.\./'
12751 # Canonicalize the pathname of ld
12752 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12753 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12754 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12756 test -z "$LD" && LD
="$ac_prog"
12759 # If it fails, then pretend we aren't using GCC.
12763 # If it is relative, then search for the first ld in PATH.
12764 with_gnu_ld
=unknown
12767 elif test "$with_gnu_ld" = yes; then
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12769 $as_echo_n "checking for GNU ld... " >&6; }
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12772 $as_echo_n "checking for non-GNU ld... " >&6; }
12774 if ${lt_cv_path_LD+:} false
; then :
12775 $as_echo_n "(cached) " >&6
12777 if test -z "$LD"; then
12778 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12779 for ac_dir
in $PATH; do
12781 test -z "$ac_dir" && ac_dir
=.
12782 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12783 lt_cv_path_LD
="$ac_dir/$ac_prog"
12784 # Check to see if the program is GNU ld. I'd rather use --version,
12785 # but apparently some variants of GNU ld only accept -v.
12786 # Break only if it was the GNU/non-GNU ld that we prefer.
12787 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12788 *GNU
* |
*'with BFD'*)
12789 test "$with_gnu_ld" != no
&& break
12792 test "$with_gnu_ld" != yes && break
12799 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12803 LD
="$lt_cv_path_LD"
12804 if test -n "$LD"; then
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12806 $as_echo "$LD" >&6; }
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12809 $as_echo "no" >&6; }
12811 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12813 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12814 if ${lt_cv_prog_gnu_ld+:} false
; then :
12815 $as_echo_n "(cached) " >&6
12817 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12818 case `$LD -v 2>&1 </dev/null` in
12819 *GNU
* |
*'with BFD'*)
12820 lt_cv_prog_gnu_ld
=yes
12823 lt_cv_prog_gnu_ld
=no
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12828 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12829 with_gnu_ld
=$lt_cv_prog_gnu_ld
12837 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12838 # archiving commands below assume that GNU ld is being used.
12839 if test "$with_gnu_ld" = yes; then
12840 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12841 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'
12843 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12844 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12846 # If archive_cmds runs LD, not CC, wlarc should be empty
12847 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12848 # investigate it a little bit more. (MM)
12851 # ancient GNU ld didn't support --whole-archive et. al.
12852 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12853 $GREP 'no-whole-archive' > /dev
/null
; then
12854 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12856 whole_archive_flag_spec_CXX
=
12862 # A generic and very simple default shared library creation
12863 # command for GNU C++ for the case where it uses the native
12864 # linker, instead of GNU ld. If possible, this setting should
12865 # overridden to take advantage of the native linker features on
12866 # the platform it is being used on.
12867 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12870 # Commands to make compiler produce verbose output that lists
12871 # what "hidden" libraries, object files and flags are used when
12872 # linking a shared library.
12873 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12881 # PORTME: fill in a description of your system's C++ link characteristics
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12883 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12887 # FIXME: insert proper C++ library support
12891 if test "$host_cpu" = ia64
; then
12892 # On IA64, the linker does run time linking by default, so we don't
12893 # have to do anything special.
12894 aix_use_runtimelinking
=no
12895 exp_sym_flag
='-Bexport'
12898 aix_use_runtimelinking
=no
12900 # Test if we are trying to use run time linking or normal
12901 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12902 # need to do runtime linking.
12903 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
12904 for ld_flag
in $LDFLAGS; do
12907 aix_use_runtimelinking
=yes
12915 exp_sym_flag
='-bexport'
12916 no_entry_flag
='-bnoentry'
12919 # When large executables or shared objects are built, AIX ld can
12920 # have problems creating the table of contents. If linking a library
12921 # or program results in "error TOC overflow" add -mminimal-toc to
12922 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12923 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12925 archive_cmds_CXX
=''
12926 hardcode_direct_CXX
=yes
12927 hardcode_direct_absolute_CXX
=yes
12928 hardcode_libdir_separator_CXX
=':'
12929 link_all_deplibs_CXX
=yes
12930 file_list_spec_CXX
='${wl}-f,'
12932 if test "$GXX" = yes; then
12933 case $host_os in aix4.
[012]|aix4.
[012].
*)
12934 # We only want to do this on AIX 4.2 and lower, the check
12935 # below for broken collect2 doesn't work under 4.3+
12936 collect2name
=`${CC} -print-prog-name=collect2`
12937 if test -f "$collect2name" &&
12938 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
12940 # We have reworked collect2
12943 # We have old collect2
12944 hardcode_direct_CXX
=unsupported
12945 # It fails to find uninstalled libraries when the uninstalled
12946 # path is not listed in the libpath. Setting hardcode_minus_L
12947 # to unsupported forces relinking
12948 hardcode_minus_L_CXX
=yes
12949 hardcode_libdir_flag_spec_CXX
='-L$libdir'
12950 hardcode_libdir_separator_CXX
=
12953 shared_flag
='-shared'
12954 if test "$aix_use_runtimelinking" = yes; then
12955 shared_flag
="$shared_flag "'${wl}-G'
12959 if test "$host_cpu" = ia64
; then
12960 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12961 # chokes on -Wl,-G. The following line is correct:
12964 if test "$aix_use_runtimelinking" = yes; then
12965 shared_flag
='${wl}-G'
12967 shared_flag
='${wl}-bM:SRE'
12972 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
12973 # It seems that -bexpall does not export symbols beginning with
12974 # underscore (_), so it is better to generate a list of symbols to
12976 always_export_symbols_CXX
=yes
12977 if test "$aix_use_runtimelinking" = yes; then
12978 # Warning - without using the other runtime loading flags (-brtl),
12979 # -berok will link without error, but may produce a broken library.
12980 allow_undefined_flag_CXX
='-berok'
12981 # Determine the default libpath from the value encoded in an empty
12983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12984 /* end confdefs.h. */
12994 if ac_fn_cxx_try_link
"$LINENO"; then :
12996 lt_aix_libpath_sed
='
12997 /Import File Strings/,/^$/ {
13003 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13004 # Check for a 64-bit object if we didn't find anything.
13005 if test -z "$aix_libpath"; then
13006 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13009 rm -f core conftest.err conftest.
$ac_objext \
13010 conftest
$ac_exeext conftest.
$ac_ext
13011 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13013 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
13015 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"
13017 if test "$host_cpu" = ia64
; then
13018 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
13019 allow_undefined_flag_CXX
="-z nodefs"
13020 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"
13022 # Determine the default libpath from the value encoded in an
13023 # empty executable.
13024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13025 /* end confdefs.h. */
13035 if ac_fn_cxx_try_link
"$LINENO"; then :
13037 lt_aix_libpath_sed
='
13038 /Import File Strings/,/^$/ {
13044 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13045 # Check for a 64-bit object if we didn't find anything.
13046 if test -z "$aix_libpath"; then
13047 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13050 rm -f core conftest.err conftest.
$ac_objext \
13051 conftest
$ac_exeext conftest.
$ac_ext
13052 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13054 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
13055 # Warning - without using the other run time loading flags,
13056 # -berok will link without error, but may produce a broken library.
13057 no_undefined_flag_CXX
=' ${wl}-bernotok'
13058 allow_undefined_flag_CXX
=' ${wl}-berok'
13059 if test "$with_gnu_ld" = yes; then
13060 # We only use this code for GNU lds that support --whole-archive.
13061 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13063 # Exported symbols can be pulled into shared objects from archives
13064 whole_archive_flag_spec_CXX
='$convenience'
13066 archive_cmds_need_lc_CXX
=yes
13067 # This is similar to how AIX traditionally builds its shared
13069 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'
13075 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13076 allow_undefined_flag_CXX
=unsupported
13077 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13078 # support --undefined. This deserves some investigation. FIXME
13079 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13086 case $cc_basename in
13088 # FIXME: insert proper C++ library support
13094 cygwin
* | mingw
* | pw32
* | cegcc
*)
13095 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13096 # as there is no search path for DLLs.
13097 hardcode_libdir_flag_spec_CXX
='-L$libdir'
13098 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
13099 allow_undefined_flag_CXX
=unsupported
13100 always_export_symbols_CXX
=no
13101 enable_shared_with_static_runtimes_CXX
=yes
13103 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
13104 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'
13105 # If the export-symbols file already is a .def file (1st line
13106 # is EXPORTS), use it as is; otherwise, prepend...
13107 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13108 cp $export_symbols $output_objdir/$soname.def;
13110 echo EXPORTS > $output_objdir/$soname.def;
13111 cat $export_symbols >> $output_objdir/$soname.def;
13113 $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'
13118 darwin
* | rhapsody
*)
13121 archive_cmds_need_lc_CXX
=no
13122 hardcode_direct_CXX
=no
13123 hardcode_automatic_CXX
=yes
13124 hardcode_shlibpath_var_CXX
=unsupported
13125 if test "$lt_cv_ld_force_load" = "yes"; then
13126 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\"`'
13128 whole_archive_flag_spec_CXX
=''
13130 link_all_deplibs_CXX
=yes
13131 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
13132 case $cc_basename in
13133 ifort
*) _lt_dar_can_shared
=yes ;;
13134 *) _lt_dar_can_shared
=$GCC ;;
13136 if test "$_lt_dar_can_shared" = "yes"; then
13137 output_verbose_link_cmd
=func_echo_all
13138 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}"
13139 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13140 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}"
13141 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}"
13142 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13143 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}"
13144 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}"
13154 case $cc_basename in
13156 # FIXME: insert proper C++ library support
13160 # Green Hills C++ Compiler
13161 # FIXME: insert proper C++ library support
13165 # FIXME: insert proper C++ library support
13172 # C++ shared libraries reported to be fairly broken before
13178 archive_cmds_need_lc_CXX
=no
13181 freebsd
* | dragonfly
*)
13182 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13191 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13192 link_all_deplibs_CXX
=yes
13196 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
13197 hardcode_libdir_separator_CXX
=:
13198 export_dynamic_flag_spec_CXX
='${wl}-E'
13199 hardcode_direct_CXX
=yes
13200 hardcode_minus_L_CXX
=yes # Not in the search PATH,
13201 # but as the default
13202 # location of the library.
13204 case $cc_basename in
13206 # FIXME: insert proper C++ library support
13210 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'
13211 # Commands to make compiler produce verbose output that lists
13212 # what "hidden" libraries, object files and flags are used when
13213 # linking a shared library.
13215 # There doesn't appear to be a way to prevent this compiler from
13216 # explicitly linking system object files so we need to strip them
13217 # from the output so that they don't get included in the library
13219 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"'
13222 if test "$GXX" = yes; then
13223 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'
13225 # FIXME: insert proper C++ library support
13233 if test $with_gnu_ld = no
; then
13234 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
13235 hardcode_libdir_separator_CXX
=:
13241 export_dynamic_flag_spec_CXX
='${wl}-E'
13247 hardcode_direct_CXX
=no
13248 hardcode_shlibpath_var_CXX
=no
13251 hardcode_direct_CXX
=yes
13252 hardcode_direct_absolute_CXX
=yes
13253 hardcode_minus_L_CXX
=yes # Not in the search PATH,
13254 # but as the default
13255 # location of the library.
13259 case $cc_basename in
13261 # FIXME: insert proper C++ library support
13267 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13270 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13273 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13276 # Commands to make compiler produce verbose output that lists
13277 # what "hidden" libraries, object files and flags are used when
13278 # linking a shared library.
13280 # There doesn't appear to be a way to prevent this compiler from
13281 # explicitly linking system object files so we need to strip them
13282 # from the output so that they don't get included in the library
13284 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"'
13287 if test "$GXX" = yes; then
13288 if test $with_gnu_ld = no
; then
13291 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13294 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13297 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'
13302 # FIXME: insert proper C++ library support
13310 hardcode_direct_CXX
=no
13311 hardcode_shlibpath_var_CXX
=no
13312 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
13313 export_dynamic_flag_spec_CXX
='${wl}-E'
13314 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13315 # Instead, shared libraries are loaded at an image base (0x10000000 by
13316 # default) and relocated if they conflict, which is a slow very memory
13317 # consuming and fragmenting process. To avoid this, we pick a random,
13318 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13319 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13320 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'
13321 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'
13324 case $cc_basename in
13327 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'
13329 # Archives containing C++ object files must be created using
13330 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13331 # necessary to make sure instantiated templates are included
13333 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
13336 if test "$GXX" = yes; then
13337 if test "$with_gnu_ld" = no
; then
13338 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'
13340 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'
13343 link_all_deplibs_CXX
=yes
13346 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
13347 hardcode_libdir_separator_CXX
=:
13348 inherit_rpath_CXX
=yes
13351 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
13352 case $cc_basename in
13354 # Kuck and Associates, Inc. (KAI) C++ Compiler
13356 # KCC will only create a shared library if the output file
13357 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13358 # to its proper name (with version) after linking.
13359 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'
13360 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'
13361 # Commands to make compiler produce verbose output that lists
13362 # what "hidden" libraries, object files and flags are used when
13363 # linking a shared library.
13365 # There doesn't appear to be a way to prevent this compiler from
13366 # explicitly linking system object files so we need to strip them
13367 # from the output so that they don't get included in the library
13369 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"'
13371 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
13372 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
13374 # Archives containing C++ object files must be created using
13375 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13376 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
13381 # version 8.0 and above of icpc choke on multiply defined symbols
13382 # if we add $predep_objects and $postdep_objects, however 7.1 and
13383 # earlier do not add the objects themselves.
13384 case `$CC -V 2>&1` in
13386 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13387 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'
13389 *) # Version 8.0 or newer
13392 ia64
*) tmp_idyn
=' -i_dynamic';;
13394 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13395 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'
13398 archive_cmds_need_lc_CXX
=no
13399 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
13400 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
13401 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13404 # Portland Group C++ compiler
13406 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
13407 prelink_cmds_CXX
='tpldir=Template.dir~
13409 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13410 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13411 old_archive_cmds_CXX
='tpldir=Template.dir~
13413 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13414 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13416 archive_cmds_CXX
='tpldir=Template.dir~
13418 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13419 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13420 archive_expsym_cmds_CXX
='tpldir=Template.dir~
13422 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13423 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13425 *) # Version 6 and above use weak symbols
13426 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13427 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'
13431 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
13432 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
13433 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'
13437 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13438 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'
13440 runpath_var
=LD_RUN_PATH
13441 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
13442 hardcode_libdir_separator_CXX
=:
13444 # Commands to make compiler produce verbose output that lists
13445 # what "hidden" libraries, object files and flags are used when
13446 # linking a shared library.
13448 # There doesn't appear to be a way to prevent this compiler from
13449 # explicitly linking system object files so we need to strip them
13450 # from the output so that they don't get included in the library
13452 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'
13454 xl
* | mpixl
* | bgxl
*)
13455 # IBM XL 8.0 on PPC, with GNU ld
13456 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
13457 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
13458 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13459 if test "x$supports_anon_versioning" = xyes
; then
13460 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
13461 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13462 echo "local: *; };" >> $output_objdir/$libname.ver~
13463 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13467 case `$CC -V 2>&1 | sed 5q` in
13470 no_undefined_flag_CXX
=' -zdefs'
13471 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13472 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'
13473 hardcode_libdir_flag_spec_CXX
='-R$libdir'
13474 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'
13475 compiler_needs_object_CXX
=yes
13477 # Not sure whether something based on
13478 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13480 output_verbose_link_cmd
='func_echo_all'
13482 # Archives containing C++ object files must be created using
13483 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13484 # necessary to make sure instantiated templates are included
13486 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
13494 # FIXME: insert proper C++ library support
13499 # FIXME: insert proper C++ library support
13504 case $cc_basename in
13506 # FIXME: insert proper C++ library support
13510 # FIXME: insert proper C++ library support
13517 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13518 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13520 hardcode_libdir_flag_spec_CXX
='-R$libdir'
13521 hardcode_direct_CXX
=yes
13522 hardcode_shlibpath_var_CXX
=no
13524 # Workaround some broken pre-1.5 toolchains
13525 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13533 # C++ shared libraries are fairly broken
13538 if test -f /usr
/libexec
/ld.so
; then
13539 hardcode_direct_CXX
=yes
13540 hardcode_shlibpath_var_CXX
=no
13541 hardcode_direct_absolute_CXX
=yes
13542 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13543 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
13544 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13545 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13546 export_dynamic_flag_spec_CXX
='${wl}-E'
13547 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13549 output_verbose_link_cmd
=func_echo_all
13555 osf3
* | osf4
* | osf5
*)
13556 case $cc_basename in
13558 # Kuck and Associates, Inc. (KAI) C++ Compiler
13560 # KCC will only create a shared library if the output file
13561 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13562 # to its proper name (with version) after linking.
13563 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'
13565 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
13566 hardcode_libdir_separator_CXX
=:
13568 # Archives containing C++ object files must be created using
13569 # the KAI C++ compiler.
13571 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
13572 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
13576 # Rational C++ 2.4.1
13577 # FIXME: insert proper C++ library support
13583 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
13584 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'
13585 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
13588 allow_undefined_flag_CXX
=' -expect_unresolved \*'
13589 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'
13590 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13591 echo "-hidden">> $lib.exp~
13592 $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~
13594 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
13598 hardcode_libdir_separator_CXX
=:
13600 # Commands to make compiler produce verbose output that lists
13601 # what "hidden" libraries, object files and flags are used when
13602 # linking a shared library.
13604 # There doesn't appear to be a way to prevent this compiler from
13605 # explicitly linking system object files so we need to strip them
13606 # from the output so that they don't get included in the library
13608 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"'
13611 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
13612 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
13615 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'
13618 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'
13622 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
13623 hardcode_libdir_separator_CXX
=:
13625 # Commands to make compiler produce verbose output that lists
13626 # what "hidden" libraries, object files and flags are used when
13627 # linking a shared library.
13628 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13631 # FIXME: insert proper C++ library support
13639 # FIXME: insert proper C++ library support
13644 case $cc_basename in
13647 # FIXME: insert proper C++ library support
13652 # FIXME: insert proper C++ library support
13656 # FIXME: insert proper C++ library support
13663 case $cc_basename in
13665 # Sun C++ 4.2, 5.x and Centerline C++
13666 archive_cmds_need_lc_CXX
=yes
13667 no_undefined_flag_CXX
=' -zdefs'
13668 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13669 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13670 $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'
13672 hardcode_libdir_flag_spec_CXX
='-R$libdir'
13673 hardcode_shlibpath_var_CXX
=no
13675 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13677 # The compiler driver will combine and reorder linker options,
13678 # but understands `-z linker_flag'.
13679 # Supported since Solaris 2.6 (maybe 2.5.1?)
13680 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
13683 link_all_deplibs_CXX
=yes
13685 output_verbose_link_cmd
='func_echo_all'
13687 # Archives containing C++ object files must be created using
13688 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13689 # necessary to make sure instantiated templates are included
13691 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
13694 # Green Hills C++ Compiler
13695 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13697 # The C++ compiler must be used to create the archive.
13698 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13701 # GNU C++ compiler with Solaris linker
13702 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
13703 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
13704 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
13705 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13706 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13707 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13709 # Commands to make compiler produce verbose output that lists
13710 # what "hidden" libraries, object files and flags are used when
13711 # linking a shared library.
13712 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13714 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13716 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13717 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13718 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13720 # Commands to make compiler produce verbose output that lists
13721 # what "hidden" libraries, object files and flags are used when
13722 # linking a shared library.
13723 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13726 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
13728 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13730 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13738 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13739 no_undefined_flag_CXX
='${wl}-z,text'
13740 archive_cmds_need_lc_CXX
=no
13741 hardcode_shlibpath_var_CXX
=no
13742 runpath_var
='LD_RUN_PATH'
13744 case $cc_basename in
13746 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13747 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13750 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13751 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13756 sysv5
* | sco3.2v5
* | sco5v6
*)
13757 # Note: We can NOT use -z defs as we might desire, because we do not
13758 # link with -lc, and that would cause any symbols used from libc to
13759 # always be unresolved, which means just about no library would
13760 # ever link correctly. If we're not using GNU ld we use -z text
13761 # though, which does catch some bad symbols but isn't as heavy-handed
13763 no_undefined_flag_CXX
='${wl}-z,text'
13764 allow_undefined_flag_CXX
='${wl}-z,nodefs'
13765 archive_cmds_need_lc_CXX
=no
13766 hardcode_shlibpath_var_CXX
=no
13767 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
13768 hardcode_libdir_separator_CXX
=':'
13769 link_all_deplibs_CXX
=yes
13770 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
13771 runpath_var
='LD_RUN_PATH'
13773 case $cc_basename in
13775 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13776 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13777 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
13778 '"$old_archive_cmds_CXX"
13779 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
13780 '"$reload_cmds_CXX"
13783 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13784 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13790 case $cc_basename in
13792 # NonStop-UX NCC 3.20
13793 # FIXME: insert proper C++ library support
13797 # FIXME: insert proper C++ library support
13804 # FIXME: insert proper C++ library support
13809 # FIXME: insert proper C++ library support
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13815 $as_echo "$ld_shlibs_CXX" >&6; }
13816 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
13822 ## There is no encapsulation within the following macros, do not change
13823 ## the running order or otherwise move them around unless you know exactly
13824 ## what you are doing...
13825 # Dependencies to place before and after the object being linked:
13826 predep_objects_CXX
=
13827 postdep_objects_CXX
=
13830 compiler_lib_search_path_CXX
=
13832 cat > conftest.
$ac_ext <<_LT_EOF
13836 Foo (void) { a = 0; }
13842 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13843 (eval $ac_compile) 2>&5
13845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13846 test $ac_status = 0; }; then
13847 # Parse the compiler output and extract the necessary
13848 # objects, libraries and library flags.
13850 # Sentinel used to keep track of whether or not we are before
13851 # the conftest object file.
13852 pre_test_object_deps_done
=no
13854 for p
in `eval "$output_verbose_link_cmd"`; do
13858 # Some compilers place space between "-{L,R}" and the path.
13859 # Remove the space.
13860 if test $p = "-L" ||
13861 test $p = "-R"; then
13868 if test "$pre_test_object_deps_done" = no
; then
13871 # Internal compiler library paths should come after those
13872 # provided the user. The postdeps already come after the
13873 # user supplied libs so there is no need to process them.
13874 if test -z "$compiler_lib_search_path_CXX"; then
13875 compiler_lib_search_path_CXX
="${prev}${p}"
13877 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
13880 # The "-l" case would never come before the object being
13881 # linked, so don't bother handling this case.
13884 if test -z "$postdeps_CXX"; then
13885 postdeps_CXX
="${prev}${p}"
13887 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
13893 # This assumes that the test object file only shows up
13894 # once in the compiler output.
13895 if test "$p" = "conftest.$objext"; then
13896 pre_test_object_deps_done
=yes
13900 if test "$pre_test_object_deps_done" = no
; then
13901 if test -z "$predep_objects_CXX"; then
13902 predep_objects_CXX
="$p"
13904 predep_objects_CXX
="$predep_objects_CXX $p"
13907 if test -z "$postdep_objects_CXX"; then
13908 postdep_objects_CXX
="$p"
13910 postdep_objects_CXX
="$postdep_objects_CXX $p"
13915 *) ;; # Ignore the rest.
13923 echo "libtool.m4: error: problem compiling CXX test program"
13926 $RM -f confest.
$objext
13928 # PORTME: override above test on systems where it is broken
13931 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13932 # hack all around it, let's just trust "g++" to DTRT.
13933 predep_objects_CXX
=
13934 postdep_objects_CXX
=
13939 case `$CC -V 2>&1 | sed 5q` in
13943 # The more standards-conforming stlport4 library is
13944 # incompatible with the Cstd library. Avoid specifying
13945 # it if it's in CXXFLAGS. Ignore libCrun as
13946 # -library=stlport4 depends on it.
13947 case " $CXX $CXXFLAGS " in
13948 *" -library=stlport4 "*)
13949 solaris_use_stlport4
=yes
13953 if test "$solaris_use_stlport4" != yes; then
13954 postdeps_CXX
='-library=Cstd -library=Crun'
13961 case $cc_basename in
13963 # The more standards-conforming stlport4 library is
13964 # incompatible with the Cstd library. Avoid specifying
13965 # it if it's in CXXFLAGS. Ignore libCrun as
13966 # -library=stlport4 depends on it.
13967 case " $CXX $CXXFLAGS " in
13968 *" -library=stlport4 "*)
13969 solaris_use_stlport4
=yes
13973 # Adding this requires a known-good setup of shared libraries for
13974 # Sun compiler versions before 5.6, else PIC objects from an old
13975 # archive will be linked into the output, leading to subtle bugs.
13976 if test "$solaris_use_stlport4" != yes; then
13977 postdeps_CXX
='-library=Cstd -library=Crun'
13985 case " $postdeps_CXX " in
13986 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
13988 compiler_lib_search_dirs_CXX
=
13989 if test -n "${compiler_lib_search_path_CXX}"; then
13990 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14023 lt_prog_compiler_wl_CXX
=
14024 lt_prog_compiler_pic_CXX
=
14025 lt_prog_compiler_static_CXX
=
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14028 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14030 # C++ specific cases for pic, static, wl, etc.
14031 if test "$GXX" = yes; then
14032 lt_prog_compiler_wl_CXX
='-Wl,'
14033 lt_prog_compiler_static_CXX
='-static'
14037 # All AIX code is PIC.
14038 if test "$host_cpu" = ia64
; then
14039 # AIX 5 now supports IA64 processor
14040 lt_prog_compiler_static_CXX
='-Bstatic'
14042 lt_prog_compiler_pic_CXX
='-fPIC'
14048 # see comment about AmigaOS4 .so support
14049 lt_prog_compiler_pic_CXX
='-fPIC'
14052 # FIXME: we need at least 68020 code to build shared libraries, but
14053 # adding the `-m68020' flag to GCC prevents building anything better,
14055 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
14060 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
14061 # PIC is the default for these OSes.
14063 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
14064 # This hack is so that the source file can tell whether it is being
14065 # built for inclusion in a dll (and should export symbols for example).
14066 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14067 # (--disable-auto-import) libraries
14068 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
14070 darwin
* | rhapsody
*)
14071 # PIC is the default on this platform
14072 # Common symbols not allowed in MH_DYLIB files
14073 lt_prog_compiler_pic_CXX
='-fno-common'
14076 # DJGPP does not support shared libraries at all
14077 lt_prog_compiler_pic_CXX
=
14080 # PIC is the default for Haiku.
14081 # The "-static" flag exists, but is broken.
14082 lt_prog_compiler_static_CXX
=
14085 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14086 # Instead, we relocate shared libraries at runtime.
14089 if test -d /usr
/nec
; then
14090 lt_prog_compiler_pic_CXX
=-Kconform_pic
14094 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14095 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14096 # sets the default TLS model and affects inlining.
14101 lt_prog_compiler_pic_CXX
='-fPIC'
14106 # QNX uses GNU C++, but need to define -shared option too, otherwise
14107 # it will coredump.
14108 lt_prog_compiler_pic_CXX
='-fPIC -shared'
14111 lt_prog_compiler_pic_CXX
='-fPIC'
14117 # All AIX code is PIC.
14118 if test "$host_cpu" = ia64
; then
14119 # AIX 5 now supports IA64 processor
14120 lt_prog_compiler_static_CXX
='-Bstatic'
14122 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
14126 case $cc_basename in
14128 # Green Hills C++ Compiler
14129 # _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"
14134 case $cc_basename in
14136 lt_prog_compiler_pic_CXX
='-KPIC'
14139 # Green Hills C++ Compiler
14140 lt_prog_compiler_pic_CXX
='-pic'
14146 freebsd
* | dragonfly
*)
14147 # FreeBSD uses GNU C++
14149 hpux9
* | hpux10
* | hpux11
*)
14150 case $cc_basename in
14152 lt_prog_compiler_wl_CXX
='-Wl,'
14153 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
14154 if test "$host_cpu" != ia64
; then
14155 lt_prog_compiler_pic_CXX
='+Z'
14159 lt_prog_compiler_wl_CXX
='-Wl,'
14160 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
14166 lt_prog_compiler_pic_CXX
='+Z'
14175 # This is c89, which is MS Visual C++ (no shared libs)
14176 # Anyone wants to do a port?
14178 irix5
* | irix6
* | nonstopux
*)
14179 case $cc_basename in
14181 lt_prog_compiler_wl_CXX
='-Wl,'
14182 lt_prog_compiler_static_CXX
='-non_shared'
14183 # CC pic flag -KPIC is the default.
14189 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
14190 case $cc_basename in
14193 lt_prog_compiler_wl_CXX
='--backend -Wl,'
14194 lt_prog_compiler_pic_CXX
='-fPIC'
14197 # old Intel C++ for x86_64 which still supported -KPIC.
14198 lt_prog_compiler_wl_CXX
='-Wl,'
14199 lt_prog_compiler_pic_CXX
='-KPIC'
14200 lt_prog_compiler_static_CXX
='-static'
14203 # Intel C++, used to be incompatible with GCC.
14204 # ICC 10 doesn't accept -KPIC any more.
14205 lt_prog_compiler_wl_CXX
='-Wl,'
14206 lt_prog_compiler_pic_CXX
='-fPIC'
14207 lt_prog_compiler_static_CXX
='-static'
14210 # Portland Group C++ compiler
14211 lt_prog_compiler_wl_CXX
='-Wl,'
14212 lt_prog_compiler_pic_CXX
='-fpic'
14213 lt_prog_compiler_static_CXX
='-Bstatic'
14217 # Make sure the PIC flag is empty. It appears that all Alpha
14218 # Linux and Compaq Tru64 Unix objects are PIC.
14219 lt_prog_compiler_pic_CXX
=
14220 lt_prog_compiler_static_CXX
='-non_shared'
14222 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
14223 # IBM XL 8.0, 9.0 on PPC and BlueGene
14224 lt_prog_compiler_wl_CXX
='-Wl,'
14225 lt_prog_compiler_pic_CXX
='-qpic'
14226 lt_prog_compiler_static_CXX
='-qstaticlink'
14229 case `$CC -V 2>&1 | sed 5q` in
14232 lt_prog_compiler_pic_CXX
='-KPIC'
14233 lt_prog_compiler_static_CXX
='-Bstatic'
14234 lt_prog_compiler_wl_CXX
='-Qoption ld '
14245 case $cc_basename in
14247 lt_prog_compiler_pic_CXX
='-W c,exportall'
14256 # QNX uses GNU C++, but need to define -shared option too, otherwise
14257 # it will coredump.
14258 lt_prog_compiler_pic_CXX
='-fPIC -shared'
14260 osf3
* | osf4
* | osf5
*)
14261 case $cc_basename in
14263 lt_prog_compiler_wl_CXX
='--backend -Wl,'
14266 # Rational C++ 2.4.1
14267 lt_prog_compiler_pic_CXX
='-pic'
14270 # Digital/Compaq C++
14271 lt_prog_compiler_wl_CXX
='-Wl,'
14272 # Make sure the PIC flag is empty. It appears that all Alpha
14273 # Linux and Compaq Tru64 Unix objects are PIC.
14274 lt_prog_compiler_pic_CXX
=
14275 lt_prog_compiler_static_CXX
='-non_shared'
14284 case $cc_basename in
14286 # Sun C++ 4.2, 5.x and Centerline C++
14287 lt_prog_compiler_pic_CXX
='-KPIC'
14288 lt_prog_compiler_static_CXX
='-Bstatic'
14289 lt_prog_compiler_wl_CXX
='-Qoption ld '
14292 # Green Hills C++ Compiler
14293 lt_prog_compiler_pic_CXX
='-PIC'
14300 case $cc_basename in
14303 lt_prog_compiler_pic_CXX
='-pic'
14304 lt_prog_compiler_static_CXX
='-Bstatic'
14308 lt_prog_compiler_pic_CXX
='-pic'
14314 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
14315 case $cc_basename in
14317 lt_prog_compiler_wl_CXX
='-Wl,'
14318 lt_prog_compiler_pic_CXX
='-KPIC'
14319 lt_prog_compiler_static_CXX
='-Bstatic'
14324 case $cc_basename in
14326 # NonStop-UX NCC 3.20
14327 lt_prog_compiler_pic_CXX
='-KPIC'
14336 lt_prog_compiler_can_build_shared_CXX
=no
14342 # For platforms which do not support PIC, -DPIC is meaningless:
14344 lt_prog_compiler_pic_CXX
=
14347 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14351 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14356 # Check to make sure the PIC flag actually works.
14358 if test -n "$lt_prog_compiler_pic_CXX"; then
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14360 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14361 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
14362 $as_echo_n "(cached) " >&6
14364 lt_cv_prog_compiler_pic_works_CXX
=no
14365 ac_outfile
=conftest.
$ac_objext
14366 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14367 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
14368 # Insert the option either (1) after the last *FLAGS variable, or
14369 # (2) before a word containing "conftest.", or (3) at the end.
14370 # Note that $ac_compile itself does not contain backslashes and begins
14371 # with a dollar sign (not a hyphen), so the echo should work correctly.
14372 # The option is referenced via a variable to avoid confusing sed.
14373 lt_compile
=`echo "$ac_compile" | $SED \
14374 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14375 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14376 -e 's:$: $lt_compiler_flag:'`
14377 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14378 (eval "$lt_compile" 2>conftest.err
)
14380 cat conftest.err
>&5
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 if (exit $ac_status) && test -s "$ac_outfile"; then
14383 # The compiler can only warn and ignore the option if not recognized
14384 # So say no if there are warnings other than the usual output.
14385 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
14386 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14387 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
14388 lt_cv_prog_compiler_pic_works_CXX
=yes
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14395 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14397 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
14398 case $lt_prog_compiler_pic_CXX in
14400 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
14403 lt_prog_compiler_pic_CXX
=
14404 lt_prog_compiler_can_build_shared_CXX
=no
14412 # Check to make sure the static flag actually works.
14414 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14416 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14417 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
14418 $as_echo_n "(cached) " >&6
14420 lt_cv_prog_compiler_static_works_CXX
=no
14421 save_LDFLAGS
="$LDFLAGS"
14422 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
14423 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
14424 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
14425 # The linker can only warn and ignore the option if not recognized
14426 # So say no if there are warnings
14427 if test -s conftest.err
; then
14428 # Append any errors to the config.log.
14429 cat conftest.err
1>&5
14430 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
14431 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14432 if diff conftest.exp conftest.er2
>/dev
/null
; then
14433 lt_cv_prog_compiler_static_works_CXX
=yes
14436 lt_cv_prog_compiler_static_works_CXX
=yes
14440 LDFLAGS
="$save_LDFLAGS"
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14444 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14446 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
14449 lt_prog_compiler_static_CXX
=
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14456 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14457 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
14458 $as_echo_n "(cached) " >&6
14460 lt_cv_prog_compiler_c_o_CXX
=no
14461 $RM -r conftest
2>/dev
/null
14465 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14467 lt_compiler_flag
="-o out/conftest2.$ac_objext"
14468 # Insert the option either (1) after the last *FLAGS variable, or
14469 # (2) before a word containing "conftest.", or (3) at the end.
14470 # Note that $ac_compile itself does not contain backslashes and begins
14471 # with a dollar sign (not a hyphen), so the echo should work correctly.
14472 lt_compile
=`echo "$ac_compile" | $SED \
14473 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14474 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14475 -e 's:$: $lt_compiler_flag:'`
14476 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14477 (eval "$lt_compile" 2>out
/conftest.err
)
14479 cat out
/conftest.err
>&5
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
14483 # The compiler can only warn and ignore the option if not recognized
14484 # So say no if there are warnings
14485 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
14486 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
14487 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
14488 lt_cv_prog_compiler_c_o_CXX
=yes
14493 # SGI C++ compiler will create directory out/ii_files/ for
14494 # template instantiation
14495 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
14496 $RM out
/* && rmdir out
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14503 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14508 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14509 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
14510 $as_echo_n "(cached) " >&6
14512 lt_cv_prog_compiler_c_o_CXX
=no
14513 $RM -r conftest
2>/dev
/null
14517 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14519 lt_compiler_flag
="-o out/conftest2.$ac_objext"
14520 # Insert the option either (1) after the last *FLAGS variable, or
14521 # (2) before a word containing "conftest.", or (3) at the end.
14522 # Note that $ac_compile itself does not contain backslashes and begins
14523 # with a dollar sign (not a hyphen), so the echo should work correctly.
14524 lt_compile
=`echo "$ac_compile" | $SED \
14525 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14526 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14527 -e 's:$: $lt_compiler_flag:'`
14528 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14529 (eval "$lt_compile" 2>out
/conftest.err
)
14531 cat out
/conftest.err
>&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
14535 # The compiler can only warn and ignore the option if not recognized
14536 # So say no if there are warnings
14537 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
14538 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
14539 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
14540 lt_cv_prog_compiler_c_o_CXX
=yes
14545 # SGI C++ compiler will create directory out/ii_files/ for
14546 # template instantiation
14547 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
14548 $RM out
/* && rmdir out
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14555 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14560 hard_links
="nottested"
14561 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
14562 # do not overwrite the value of need_locks provided by the user
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14564 $as_echo_n "checking if we can lock with hard links... " >&6; }
14567 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14569 ln conftest.a conftest.b
2>&5 || hard_links
=no
14570 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14572 $as_echo "$hard_links" >&6; }
14573 if test "$hard_links" = no
; then
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14575 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14585 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14587 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14590 # If we're using GNU nm, then we don't want the "-C" option.
14591 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14592 # Also, AIX nm treats weak defined symbols like other global defined
14593 # symbols, whereas GNU nm marks them as "W".
14594 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
14595 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'
14597 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'
14601 export_symbols_cmds_CXX
="$ltdll_cmds"
14603 cygwin
* | mingw
* | cegcc
*)
14604 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'
14607 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14610 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14613 $as_echo "$ld_shlibs_CXX" >&6; }
14614 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
14616 with_gnu_ld_CXX
=$with_gnu_ld
14624 # Do we need to explicitly link libc?
14626 case "x$archive_cmds_need_lc_CXX" in
14628 # Assume -lc should be added
14629 archive_cmds_need_lc_CXX
=yes
14631 if test "$enable_shared" = yes && test "$GCC" = yes; then
14632 case $archive_cmds_CXX in
14634 # FIXME: we may have to deal with multi-command sequences.
14637 # Test whether the compiler implicitly links with -lc since on some
14638 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14639 # to ld, don't add -lc before -lgcc.
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14641 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14642 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
14643 $as_echo_n "(cached) " >&6
14646 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14648 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14649 (eval $ac_compile) 2>&5
14651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14652 test $ac_status = 0; } 2>conftest.err
; then
14655 libobjs
=conftest.
$ac_objext
14657 wl
=$lt_prog_compiler_wl_CXX
14658 pic_flag
=$lt_prog_compiler_pic_CXX
14664 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
14665 allow_undefined_flag_CXX
=
14666 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14667 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
14669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14670 test $ac_status = 0; }
14672 lt_cv_archive_cmds_need_lc_CXX
=no
14674 lt_cv_archive_cmds_need_lc_CXX
=yes
14676 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
14678 cat conftest.err
1>&5
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14684 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14685 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14756 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14758 library_names_spec
=
14759 libname_spec
='lib$name'
14763 postuninstall_cmds
=
14767 shlibpath_overrides_runpath
=unknown
14769 dynamic_linker
="$host_os ld.so"
14770 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
14771 need_lib_prefix
=unknown
14772 hardcode_into_libs
=no
14774 # when you set need_version to no, make sure it does not cause -set_version
14775 # flags to be left without arguments
14776 need_version
=unknown
14781 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
14782 shlibpath_var
=LIBPATH
14784 # AIX 3 has no versioning support, so we append a major version to the name.
14785 soname_spec
='${libname}${release}${shared_ext}$major'
14792 hardcode_into_libs
=yes
14793 if test "$host_cpu" = ia64
; then
14794 # AIX 5 supports IA64
14795 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14796 shlibpath_var
=LD_LIBRARY_PATH
14798 # With GCC up to 2.95.x, collect2 would create an import file
14799 # for dependence libraries. The import file would start with
14800 # the line `#! .'. This would cause the generated library to
14801 # depend on `.', always an invalid library. This was fixed in
14802 # development snapshots of GCC prior to 3.0.
14804 aix4 | aix4.
[01] | aix4.
[01].
*)
14805 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14807 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
14810 can_build_shared
=no
14814 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14815 # soname into executable. Probably we can add versioning support to
14816 # collect2, so additional links can be useful in future.
14817 if test "$aix_use_runtimelinking" = yes; then
14818 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14819 # instead of lib<name>.a to let people know that these are not
14820 # typical AIX shared libraries.
14821 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14823 # We preserve .a as extension for shared libraries through AIX4.2
14824 # and later when we are not doing run time linking.
14825 library_names_spec
='${libname}${release}.a $libname.a'
14826 soname_spec
='${libname}${release}${shared_ext}$major'
14828 shlibpath_var
=LIBPATH
14835 # Since July 2007 AmigaOS4 officially supports .so libraries.
14836 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14837 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14840 library_names_spec
='$libname.ixlibrary $libname.a'
14841 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14842 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'
14848 library_names_spec
='${libname}${shared_ext}'
14849 dynamic_linker
="$host_os ld.so"
14850 shlibpath_var
=LIBRARY_PATH
14856 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14857 soname_spec
='${libname}${release}${shared_ext}$major'
14858 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
14859 shlibpath_var
=LD_LIBRARY_PATH
14860 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14861 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
14862 # the default ld.so.conf also contains /usr/contrib/lib and
14863 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14864 # libtool to hard-code these into programs
14867 cygwin
* | mingw
* | pw32
* | cegcc
*)
14868 version_type
=windows
14873 case $GCC,$host_os in
14874 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
14875 library_names_spec
='$libname.dll.a'
14876 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14877 postinstall_cmds
='base_file=`basename \${file}`~
14878 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14879 dldir=$destdir/`dirname \$dlpath`~
14880 test -d \$dldir || mkdir -p \$dldir~
14881 $install_prog $dir/$dlname \$dldir/$dlname~
14882 chmod a+x \$dldir/$dlname~
14883 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14884 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14886 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14887 dlpath=$dir/\$dldll~
14889 shlibpath_overrides_runpath
=yes
14893 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14894 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14898 # MinGW DLLs use traditional 'lib' prefix
14899 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14902 # pw32 DLLs use 'pw' prefix rather than 'lib'
14903 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14909 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14912 dynamic_linker
='Win32 ld.exe'
14913 # FIXME: first we should search . and the directory the executable is in
14917 darwin
* | rhapsody
*)
14918 dynamic_linker
="$host_os dyld"
14919 version_type
=darwin
14922 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14923 soname_spec
='${libname}${release}${major}$shared_ext'
14924 shlibpath_overrides_runpath
=yes
14925 shlibpath_var
=DYLD_LIBRARY_PATH
14926 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
14928 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
14935 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14936 soname_spec
='${libname}${release}${shared_ext}$major'
14937 shlibpath_var
=LD_LIBRARY_PATH
14940 freebsd
* | dragonfly
*)
14941 # DragonFly does not have aout. When/if they implement a new
14942 # versioning mechanism, adjust this.
14943 if test -x /usr
/bin
/objformat
; then
14944 objformat
=`/usr/bin/objformat`
14947 freebsd
[23].
*) objformat
=aout
;;
14948 *) objformat
=elf
;;
14951 version_type
=freebsd-
$objformat
14952 case $version_type in
14954 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14959 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14963 shlibpath_var
=LD_LIBRARY_PATH
14966 shlibpath_overrides_runpath
=yes
14968 freebsd3.
[01]* | freebsdelf3.
[01]*)
14969 shlibpath_overrides_runpath
=yes
14970 hardcode_into_libs
=yes
14972 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
14973 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
14974 shlibpath_overrides_runpath
=no
14975 hardcode_into_libs
=yes
14977 *) # from 4.6 on, and DragonFly
14978 shlibpath_overrides_runpath
=yes
14979 hardcode_into_libs
=yes
14988 dynamic_linker
="$host_os runtime_loader"
14989 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14990 soname_spec
='${libname}${release}${shared_ext}$major'
14991 shlibpath_var
=LIBRARY_PATH
14992 shlibpath_overrides_runpath
=yes
14993 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14994 hardcode_into_libs
=yes
14997 hpux9
* | hpux10
* | hpux11
*)
14998 # Give a soname corresponding to the major version so that dld.sl refuses to
14999 # link against other versions.
15006 hardcode_into_libs
=yes
15007 dynamic_linker
="$host_os dld.so"
15008 shlibpath_var
=LD_LIBRARY_PATH
15009 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15010 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15011 soname_spec
='${libname}${release}${shared_ext}$major'
15012 if test "X$HPUX_IA64_MODE" = X32
; then
15013 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15015 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
15017 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15021 hardcode_into_libs
=yes
15022 dynamic_linker
="$host_os dld.sl"
15023 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
15024 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15025 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15026 soname_spec
='${libname}${release}${shared_ext}$major'
15027 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15028 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15032 dynamic_linker
="$host_os dld.sl"
15033 shlibpath_var
=SHLIB_PATH
15034 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
15035 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15036 soname_spec
='${libname}${release}${shared_ext}$major'
15039 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15040 postinstall_cmds
='chmod 555 $lib'
15041 # or fails outright, so override atomically:
15042 install_override_mode
=555
15049 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15050 soname_spec
='${libname}${release}${shared_ext}$major'
15051 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
15052 shlibpath_var
=LD_LIBRARY_PATH
15053 shlibpath_overrides_runpath
=no
15054 hardcode_into_libs
=yes
15057 irix5
* | irix6
* | nonstopux
*)
15059 nonstopux
*) version_type
=nonstopux
;;
15061 if test "$lt_cv_prog_gnu_ld" = yes; then
15069 soname_spec
='${libname}${release}${shared_ext}$major'
15070 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15072 irix5
* | nonstopux
*)
15073 libsuff
= shlibsuff
=
15076 case $LD in # libtool.m4 will add one of these switches to LD
15077 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
15078 libsuff
= shlibsuff
= libmagic
=32-bit;;
15079 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
15080 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
15081 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
15082 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
15083 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
15087 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
15088 shlibpath_overrides_runpath
=no
15089 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15090 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
15091 hardcode_into_libs
=yes
15094 # No shared lib support for Linux oldld, aout, or coff.
15095 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
15099 # This must be Linux ELF.
15100 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
15104 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15105 soname_spec
='${libname}${release}${shared_ext}$major'
15106 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15107 shlibpath_var
=LD_LIBRARY_PATH
15108 shlibpath_overrides_runpath
=no
15110 # Some binutils ld are patched to set DT_RUNPATH
15111 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
15112 $as_echo_n "(cached) " >&6
15114 lt_cv_shlibpath_overrides_runpath
=no
15115 save_LDFLAGS
=$LDFLAGS
15116 save_libdir
=$libdir
15117 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15118 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15120 /* end confdefs.h. */
15130 if ac_fn_cxx_try_link
"$LINENO"; then :
15131 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
15132 lt_cv_shlibpath_overrides_runpath
=yes
15135 rm -f core conftest.err conftest.
$ac_objext \
15136 conftest
$ac_exeext conftest.
$ac_ext
15137 LDFLAGS
=$save_LDFLAGS
15138 libdir
=$save_libdir
15142 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
15144 # This implies no fast_install, which is unacceptable.
15145 # Some rework will be needed to allow for fast_install
15146 # before this can be enabled.
15147 hardcode_into_libs
=yes
15149 # Append ld.so.conf contents to the search path
15150 if test -f /etc
/ld.so.conf
; then
15151 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' ' '`
15152 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
15155 # We used to test for /lib/ld.so.1 and disable shared libraries on
15156 # powerpc, because MkLinux only supported shared libraries with the
15157 # GNU dynamic linker. Since this was broken with cross compilers,
15158 # most powerpc-linux boxes support dynamic linking these days and
15159 # people can always --disable-shared, the test was removed, and we
15160 # assume the GNU/Linux dynamic linker is in use.
15161 dynamic_linker
='GNU/Linux ld.so'
15168 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15169 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15170 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15171 dynamic_linker
='NetBSD (a.out) ld.so'
15173 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15174 soname_spec
='${libname}${release}${shared_ext}$major'
15175 dynamic_linker
='NetBSD ld.elf_so'
15177 shlibpath_var
=LD_LIBRARY_PATH
15178 shlibpath_overrides_runpath
=yes
15179 hardcode_into_libs
=yes
15184 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15185 shlibpath_var
=LD_LIBRARY_PATH
15186 shlibpath_overrides_runpath
=yes
15193 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15194 soname_spec
='${libname}${release}${shared_ext}$major'
15195 shlibpath_var
=LD_LIBRARY_PATH
15196 shlibpath_overrides_runpath
=no
15197 hardcode_into_libs
=yes
15198 dynamic_linker
='ldqnx.so'
15203 sys_lib_dlsearch_path_spec
="/usr/lib"
15205 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15207 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
15208 *) need_version
=no
;;
15210 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15211 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15212 shlibpath_var
=LD_LIBRARY_PATH
15213 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15215 openbsd2.
[89] | openbsd2.
[89].
*)
15216 shlibpath_overrides_runpath
=no
15219 shlibpath_overrides_runpath
=yes
15223 shlibpath_overrides_runpath
=yes
15228 libname_spec
='$name'
15231 library_names_spec
='$libname${shared_ext} $libname.a'
15232 dynamic_linker
='OS/2 ld.exe'
15233 shlibpath_var
=LIBPATH
15236 osf3
* | osf4
* | osf5
*)
15240 soname_spec
='${libname}${release}${shared_ext}$major'
15241 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15242 shlibpath_var
=LD_LIBRARY_PATH
15243 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15244 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
15255 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15256 soname_spec
='${libname}${release}${shared_ext}$major'
15257 shlibpath_var
=LD_LIBRARY_PATH
15258 shlibpath_overrides_runpath
=yes
15259 hardcode_into_libs
=yes
15260 # ldd complains unless libraries are executable
15261 postinstall_cmds
='chmod +x $lib'
15266 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15267 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15268 shlibpath_var
=LD_LIBRARY_PATH
15269 shlibpath_overrides_runpath
=yes
15270 if test "$with_gnu_ld" = yes; then
15278 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15279 soname_spec
='${libname}${release}${shared_ext}$major'
15280 shlibpath_var
=LD_LIBRARY_PATH
15281 case $host_vendor in
15283 shlibpath_overrides_runpath
=no
15285 runpath_var
=LD_RUN_PATH
15293 shlibpath_overrides_runpath
=no
15294 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
15300 if test -d /usr
/nec
;then
15302 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15303 soname_spec
='$libname${shared_ext}.$major'
15304 shlibpath_var
=LD_LIBRARY_PATH
15308 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
15309 version_type
=freebsd-elf
15312 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15313 soname_spec
='${libname}${release}${shared_ext}$major'
15314 shlibpath_var
=LD_LIBRARY_PATH
15315 shlibpath_overrides_runpath
=yes
15316 hardcode_into_libs
=yes
15317 if test "$with_gnu_ld" = yes; then
15318 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15320 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
15323 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
15327 sys_lib_dlsearch_path_spec
='/usr/lib'
15331 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15335 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15336 shlibpath_var
=LD_LIBRARY_PATH
15337 shlibpath_overrides_runpath
=no
15338 hardcode_into_libs
=yes
15343 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15344 soname_spec
='${libname}${release}${shared_ext}$major'
15345 shlibpath_var
=LD_LIBRARY_PATH
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15353 $as_echo "$dynamic_linker" >&6; }
15354 test "$dynamic_linker" = no
&& can_build_shared
=no
15356 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
15357 if test "$GCC" = yes; then
15358 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15361 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15362 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
15364 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15365 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15406 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15407 hardcode_action_CXX
=
15408 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15409 test -n "$runpath_var_CXX" ||
15410 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15412 # We can hardcode non-existent directories.
15413 if test "$hardcode_direct_CXX" != no
&&
15414 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15415 # have to relink, otherwise we might link with an installed library
15416 # when we should be linking with a yet-to-be-installed one
15417 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15418 test "$hardcode_minus_L_CXX" != no
; then
15419 # Linking always hardcodes the temporary library directory.
15420 hardcode_action_CXX
=relink
15422 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15423 hardcode_action_CXX
=immediate
15426 # We cannot hardcode anything, or else we can only hardcode existing
15428 hardcode_action_CXX
=unsupported
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15431 $as_echo "$hardcode_action_CXX" >&6; }
15433 if test "$hardcode_action_CXX" = relink ||
15434 test "$inherit_rpath_CXX" = yes; then
15435 # Fast installation is not supported
15436 enable_fast_install
=no
15437 elif test "$shlibpath_overrides_runpath" = yes ||
15438 test "$enable_shared" = no
; then
15439 # Fast installation is not necessary
15440 enable_fast_install
=needless
15449 fi # test -n "$compiler"
15455 with_gnu_ld
=$lt_save_with_gnu_ld
15456 lt_cv_path_LDCXX
=$lt_cv_path_LD
15457 lt_cv_path_LD
=$lt_save_path_LD
15458 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
15459 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
15460 fi # test "$_lt_caught_CXX_error" != yes
15463 ac_cpp
='$CPP $CPPFLAGS'
15464 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15465 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15466 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15480 ac_config_commands
="$ac_config_commands libtool"
15485 # Only expand once:
15489 GPROFNG_LIBADD
="-L../../libiberty -liberty"
15490 if test "$enable_shared" = "yes"; then
15491 GPROFNG_LIBADD
="-L../../libiberty/pic -liberty"
15495 # Figure out what compiler warnings we can enable.
15496 # See config/warnings.m4 for details.
15499 ac_cpp
='$CPP $CPPFLAGS'
15500 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15501 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15502 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15505 # Check whether --enable-werror-always was given.
15506 if test "${enable_werror_always+set}" = set; then :
15507 enableval
=$enable_werror_always;
15509 enable_werror_always
=no
15512 if test $enable_werror_always = yes; then :
15513 WERROR
="$WERROR${WERROR:+ }-Werror"
15517 ac_cpp
='$CPP $CPPFLAGS'
15518 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15519 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15520 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15524 ac_cpp
='$CPP $CPPFLAGS'
15525 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15526 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15527 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15530 save_CFLAGS
="$CFLAGS"
15531 for real_option
in -Wall; do
15532 # Do the check with the no- prefix removed since gcc silently
15533 # accepts any -Wno-* option on purpose
15534 case $real_option in
15535 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
15536 *) option
=$real_option ;;
15538 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
15541 $as_echo_n "checking whether $CC supports $option... " >&6; }
15542 if eval \
${$as_acx_Woption+:} false
; then :
15543 $as_echo_n "(cached) " >&6
15546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15547 /* end confdefs.h. */
15557 if ac_fn_c_try_compile
"$LINENO"; then :
15558 eval "$as_acx_Woption=yes"
15560 eval "$as_acx_Woption=no"
15562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15565 eval ac_res
=\$
$as_acx_Woption
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15567 $as_echo "$ac_res" >&6; }
15568 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
15569 gprofng_cflags
="$gprofng_cflags${gprofng_cflags:+ }$real_option"
15572 CFLAGS
="$save_CFLAGS"
15574 ac_cpp
='$CPP $CPPFLAGS'
15575 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15576 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15577 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15581 ac_cpp
='$CPP $CPPFLAGS'
15582 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15583 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15584 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15586 GPROFNG_NO_FORMAT_TRUNCATION_CFLAGS
=
15587 save_CFLAGS
="$CFLAGS"
15588 for real_option
in -Wno-format-truncation; do
15589 # Do the check with the no- prefix removed since gcc silently
15590 # accepts any -Wno-* option on purpose
15591 case $real_option in
15592 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
15593 *) option
=$real_option ;;
15595 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
15598 $as_echo_n "checking whether $CC supports $option... " >&6; }
15599 if eval \
${$as_acx_Woption+:} false
; then :
15600 $as_echo_n "(cached) " >&6
15603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15604 /* end confdefs.h. */
15614 if ac_fn_c_try_compile
"$LINENO"; then :
15615 eval "$as_acx_Woption=yes"
15617 eval "$as_acx_Woption=no"
15619 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15622 eval ac_res
=\$
$as_acx_Woption
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15624 $as_echo "$ac_res" >&6; }
15625 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
15626 GPROFNG_NO_FORMAT_TRUNCATION_CFLAGS
="$GPROFNG_NO_FORMAT_TRUNCATION_CFLAGS${GPROFNG_NO_FORMAT_TRUNCATION_CFLAGS:+ }$real_option"
15629 CFLAGS
="$save_CFLAGS"
15631 ac_cpp
='$CPP $CPPFLAGS'
15632 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15633 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15634 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15638 ac_cpp
='$CPP $CPPFLAGS'
15639 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15640 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15641 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15643 GPROFNG_NO_SWITCH_CFLAGS
=
15644 save_CFLAGS
="$CFLAGS"
15645 for real_option
in -Wno-switch; do
15646 # Do the check with the no- prefix removed since gcc silently
15647 # accepts any -Wno-* option on purpose
15648 case $real_option in
15649 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
15650 *) option
=$real_option ;;
15652 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
15655 $as_echo_n "checking whether $CC supports $option... " >&6; }
15656 if eval \
${$as_acx_Woption+:} false
; then :
15657 $as_echo_n "(cached) " >&6
15660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15661 /* end confdefs.h. */
15671 if ac_fn_c_try_compile
"$LINENO"; then :
15672 eval "$as_acx_Woption=yes"
15674 eval "$as_acx_Woption=no"
15676 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15679 eval ac_res
=\$
$as_acx_Woption
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15681 $as_echo "$ac_res" >&6; }
15682 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
15683 GPROFNG_NO_SWITCH_CFLAGS
="$GPROFNG_NO_SWITCH_CFLAGS${GPROFNG_NO_SWITCH_CFLAGS:+ }$real_option"
15686 CFLAGS
="$save_CFLAGS"
15688 ac_cpp
='$CPP $CPPFLAGS'
15689 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15690 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15691 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15694 gprofng_cppflags
="-U_ASM"
15698 # This is annoying: it means we have to pass --enable-shared explicitly to
15699 # get gprofng, while the configure default is supposed to be that shared libs
15700 # are on by default. But as long as libiberty has code like this, so must
15703 case "${target}" in
15706 build_collector
=true
15709 build_collector
=true
15710 build_collector
=true
15714 build_collector
=true
15717 # Check whether --enable-gprofng-tools was given.
15718 if test "${enable_gprofng_tools+set}" = set; then :
15719 enableval
=$enable_gprofng_tools; build_src
=$enableval
15723 if test x
$build_collector = xtrue
; then
15724 BUILD_COLLECTOR_TRUE
=
15725 BUILD_COLLECTOR_FALSE
='#'
15727 BUILD_COLLECTOR_TRUE
='#'
15728 BUILD_COLLECTOR_FALSE
=
15731 if test x
$build_src = xtrue
; then
15733 BUILD_SRC_FALSE
='#'
15741 if test x
$build_collector = xtrue
; then
15744 subdirs
="$subdirs libcollector"
15746 if test x
${host} = x
${target}; then
15750 if test x
$run_tests = xtrue
; then
15752 RUN_TESTS_FALSE
='#'
15763 ac_cpp
='$CPP $CPPFLAGS'
15764 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15765 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15766 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15770 # We used to check for pthread.h first, but this fails if pthread.h
15771 # requires special compiler flags (e.g. on Tru64 or Sequent).
15772 # It gets checked for in the link test anyway.
15774 # First of all, check if the user has set any of the PTHREAD_LIBS,
15775 # etcetera environment variables, and if threads linking works using
15777 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
15778 ax_pthread_save_CC
="$CC"
15779 ax_pthread_save_CFLAGS
="$CFLAGS"
15780 ax_pthread_save_LIBS
="$LIBS"
15781 if test "x$PTHREAD_CC" != "x"; then :
15784 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
15785 LIBS
="$PTHREAD_LIBS $LIBS"
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
15787 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
15788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15789 /* end confdefs.h. */
15791 /* Override any GCC internal prototype to avoid an error.
15792 Use char because int might match the return type of a GCC
15793 builtin and then its argument prototype would still apply. */
15797 char pthread_join ();
15801 return pthread_join ();
15806 if ac_fn_c_try_link
"$LINENO"; then :
15809 rm -f core conftest.err conftest.
$ac_objext \
15810 conftest
$ac_exeext conftest.
$ac_ext
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15812 $as_echo "$ax_pthread_ok" >&6; }
15813 if test "x$ax_pthread_ok" = "xno"; then
15817 CC
="$ax_pthread_save_CC"
15818 CFLAGS
="$ax_pthread_save_CFLAGS"
15819 LIBS
="$ax_pthread_save_LIBS"
15822 # We must check for the threads library under a number of different
15823 # names; the ordering is very important because some systems
15824 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15825 # libraries is broken (non-POSIX).
15827 # Create a list of thread flags to try. Items starting with a "-" are
15828 # C compiler flags, and other items are library names, except for "none"
15829 # which indicates that we try without any flags at all, and "pthread-config"
15830 # which is a program returning the flags for the Pth emulation library.
15832 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15834 # The ordering *is* (sometimes) important. Some notes on the
15835 # individual items follow:
15837 # pthreads: AIX (must check this before -lpthread)
15838 # none: in case threads are in libc; should be tried before -Kthread and
15839 # other compiler flags to prevent continual compiler warnings
15840 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15841 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
15842 # (Note: HP C rejects this with "bad form for `-t' option")
15843 # -pthreads: Solaris/gcc (Note: HP C also rejects)
15844 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15845 # doesn't hurt to check since this sometimes defines pthreads and
15846 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
15847 # is present but should not be used directly; and before -mthreads,
15848 # because the compiler interprets this as "-mt" + "-hreads")
15849 # -mthreads: Mingw32/gcc, Lynx/gcc
15850 # pthread: Linux, etcetera
15851 # --thread-safe: KAI C++
15852 # pthread-config: use pthread-config program (for GNU Pth library)
15858 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15859 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15861 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
15866 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
15867 # multi-threading and also sets -lpthread."
15869 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
15874 # IBM z/OS requires a feature-test macro to be defined in order to
15875 # enable POSIX threads at all, so give the user a hint if this is
15876 # not set. (We don't define these ourselves, as they can affect
15877 # other portions of the system API in unpredictable ways.)
15879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15880 /* end confdefs.h. */
15882 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
15883 AX_PTHREAD_ZOS_MISSING
15887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15888 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
15890 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
15898 # On Solaris (at least, for some versions), libc contains stubbed
15899 # (non-functional) versions of the pthreads routines, so link-based
15900 # tests will erroneously succeed. (N.B.: The stubs are missing
15901 # pthread_cleanup_push, or rather a function called by this macro,
15902 # so we could check for that, but who knows whether they'll stub
15903 # that too in a future libc.) So we'll check first for the
15904 # standard Solaris way of linking pthreads (-mt -lpthread).
15906 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
15910 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
15912 if test "x$GCC" = "xyes"; then :
15913 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
15916 # The presence of a feature test macro requesting re-entrant function
15917 # definitions is, on some systems, a strong hint that pthreads support is
15918 # correctly enabled
15921 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
15922 ax_pthread_check_macro
="_REENTRANT"
15926 ax_pthread_check_macro
="_THREAD_SAFE"
15930 ax_pthread_check_macro
="--"
15933 if test "x$ax_pthread_check_macro" = "x--"; then :
15934 ax_pthread_check_cond
=0
15936 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
15939 # Are we compiling with Clang?
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
15942 $as_echo_n "checking whether $CC is Clang... " >&6; }
15943 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
15944 $as_echo_n "(cached) " >&6
15946 ax_cv_PTHREAD_CLANG
=no
15947 # Note that Autoconf sets GCC=yes for Clang as well as GCC
15948 if test "x$GCC" = "xyes"; then
15949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15950 /* end confdefs.h. */
15951 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
15952 # if defined(__clang__) && defined(__llvm__)
15953 AX_PTHREAD_CC_IS_CLANG
15957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15958 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
15959 ax_cv_PTHREAD_CLANG
=yes
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
15967 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
15968 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
15970 ax_pthread_clang_warning
=no
15972 # Clang needs special handling, because older versions handle the -pthread
15973 # option in a rather... idiosyncratic way
15975 if test "x$ax_pthread_clang" = "xyes"; then
15977 # Clang takes -pthread; it has never supported any other flag
15979 # (Note 1: This will need to be revisited if a system that Clang
15980 # supports has POSIX threads in a separate library. This tends not
15981 # to be the way of modern systems, but it's conceivable.)
15983 # (Note 2: On some systems, notably Darwin, -pthread is not needed
15984 # to get POSIX threads support; the API is always present and
15985 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
15986 # -pthread does define _REENTRANT, and while the Darwin headers
15987 # ignore this macro, third-party headers might not.)
15989 PTHREAD_CFLAGS
="-pthread"
15994 # However, older versions of Clang make a point of warning the user
15995 # that, in an invocation where only linking and no compilation is
15996 # taking place, the -pthread option has no effect ("argument unused
15997 # during compilation"). They expect -pthread to be passed in only
15998 # when source code is being compiled.
16000 # Problem is, this is at odds with the way Automake and most other
16001 # C build frameworks function, which is that the same flags used in
16002 # compilation (CFLAGS) are also used in linking. Many systems
16003 # supported by AX_PTHREAD require exactly this for POSIX threads
16004 # support, and in fact it is often not straightforward to specify a
16005 # flag that is used only in the compilation phase and not in
16006 # linking. Such a scenario is extremely rare in practice.
16008 # Even though use of the -pthread flag in linking would only print
16009 # a warning, this can be a nuisance for well-run software projects
16010 # that build with -Werror. So if the active version of Clang has
16011 # this misfeature, we search for an option to squash it.
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
16014 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
16015 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
16016 $as_echo_n "(cached) " >&6
16018 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
16019 # Create an alternate version of $ac_link that compiles and
16020 # links in two steps (.c -> .o, .o -> exe) instead of one
16021 # (.c -> exe), because the warning occurs only in the second
16023 ax_pthread_save_ac_link
="$ac_link"
16024 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
16025 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
16026 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
16027 ax_pthread_save_CFLAGS
="$CFLAGS"
16028 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
16029 if test "x$ax_pthread_try" = "xunknown"; then :
16032 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
16033 ac_link
="$ax_pthread_save_ac_link"
16034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16035 /* end confdefs.h. */
16036 int main(void){return 0;}
16038 if ac_fn_c_try_link
"$LINENO"; then :
16039 ac_link
="$ax_pthread_2step_ac_link"
16040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16041 /* end confdefs.h. */
16042 int main(void){return 0;}
16044 if ac_fn_c_try_link
"$LINENO"; then :
16047 rm -f core conftest.err conftest.
$ac_objext \
16048 conftest
$ac_exeext conftest.
$ac_ext
16051 rm -f core conftest.err conftest.
$ac_objext \
16052 conftest
$ac_exeext conftest.
$ac_ext
16054 ac_link
="$ax_pthread_save_ac_link"
16055 CFLAGS
="$ax_pthread_save_CFLAGS"
16056 if test "x$ax_pthread_try" = "x"; then :
16059 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
16063 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
16065 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
16067 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
16070 fi # $ax_pthread_clang = yes
16072 if test "x$ax_pthread_ok" = "xno"; then
16073 for ax_pthread_try_flag
in $ax_pthread_flags; do
16075 case $ax_pthread_try_flag in
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16078 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
16083 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
16084 PTHREAD_CFLAGS
="-mt"
16085 PTHREAD_LIBS
="-lpthread"
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
16090 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
16091 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
16095 # Extract the first word of "pthread-config", so it can be a program name with args.
16096 set dummy pthread-config
; ac_word
=$2
16097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16098 $as_echo_n "checking for $ac_word... " >&6; }
16099 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
16100 $as_echo_n "(cached) " >&6
16102 if test -n "$ax_pthread_config"; then
16103 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
16105 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16106 for as_dir
in $PATH
16109 test -z "$as_dir" && as_dir
=.
16110 for ac_exec_ext
in '' $ac_executable_extensions; do
16111 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16112 ac_cv_prog_ax_pthread_config
="yes"
16113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16120 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
16123 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
16124 if test -n "$ax_pthread_config"; then
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
16126 $as_echo "$ax_pthread_config" >&6; }
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16129 $as_echo "no" >&6; }
16133 if test "x$ax_pthread_config" = "xno"; then :
16136 PTHREAD_CFLAGS
="`pthread-config --cflags`"
16137 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
16142 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
16143 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
16147 ax_pthread_save_CFLAGS
="$CFLAGS"
16148 ax_pthread_save_LIBS
="$LIBS"
16149 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
16150 LIBS
="$PTHREAD_LIBS $LIBS"
16152 # Check for various functions. We must include pthread.h,
16153 # since some functions may be macros. (On the Sequent, we
16154 # need a special flag -Kthread to make this header compile.)
16155 # We check for pthread_join because it is in -lpthread on IRIX
16156 # while pthread_create is in libc. We check for pthread_attr_init
16157 # due to DEC craziness with -lpthreads. We check for
16158 # pthread_cleanup_push because it is one of the few pthread
16159 # functions on Solaris that doesn't have a non-functional libc stub.
16160 # We try pthread_create on general principles.
16162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16163 /* end confdefs.h. */
16164 #include <pthread.h>
16165 # if $ax_pthread_check_cond
16166 # error "$ax_pthread_check_macro must be defined"
16168 static void routine(void *a) { a = 0; }
16169 static void *start_routine(void *a) { return a; }
16173 pthread_t th; pthread_attr_t attr;
16174 pthread_create(&th, 0, start_routine, 0);
16175 pthread_join(th, 0);
16176 pthread_attr_init(&attr);
16177 pthread_cleanup_push(routine, 0);
16178 pthread_cleanup_pop(0) /* ; */
16183 if ac_fn_c_try_link
"$LINENO"; then :
16186 rm -f core conftest.err conftest.
$ac_objext \
16187 conftest
$ac_exeext conftest.
$ac_ext
16189 CFLAGS
="$ax_pthread_save_CFLAGS"
16190 LIBS
="$ax_pthread_save_LIBS"
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16193 $as_echo "$ax_pthread_ok" >&6; }
16194 if test "x$ax_pthread_ok" = "xyes"; then :
16203 # Various other checks:
16204 if test "x$ax_pthread_ok" = "xyes"; then
16205 ax_pthread_save_CFLAGS
="$CFLAGS"
16206 ax_pthread_save_LIBS
="$LIBS"
16207 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
16208 LIBS
="$PTHREAD_LIBS $LIBS"
16210 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16212 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16213 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
16214 $as_echo_n "(cached) " >&6
16216 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
16217 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
16218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16219 /* end confdefs.h. */
16220 #include <pthread.h>
16224 int attr = $ax_pthread_attr; return attr /* ; */
16229 if ac_fn_c_try_link
"$LINENO"; then :
16230 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
16232 rm -f core conftest.err conftest.
$ac_objext \
16233 conftest
$ac_exeext conftest.
$ac_ext
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
16238 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
16239 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
16240 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
16241 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
16243 cat >>confdefs.h
<<_ACEOF
16244 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
16247 ax_pthread_joinable_attr_defined
=yes
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
16252 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
16253 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
16254 $as_echo_n "(cached) " >&6
16256 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
16259 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
16264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
16265 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
16266 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
16267 test "x$ax_pthread_special_flags_added" != "xyes"; then :
16268 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
16269 ax_pthread_special_flags_added
=yes
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
16273 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
16274 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
16275 $as_echo_n "(cached) " >&6
16277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16278 /* end confdefs.h. */
16279 #include <pthread.h>
16283 int i = PTHREAD_PRIO_INHERIT;
16288 if ac_fn_c_try_link
"$LINENO"; then :
16289 ax_cv_PTHREAD_PRIO_INHERIT
=yes
16291 ax_cv_PTHREAD_PRIO_INHERIT
=no
16293 rm -f core conftest.err conftest.
$ac_objext \
16294 conftest
$ac_exeext conftest.
$ac_ext
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
16298 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
16299 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
16300 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
16302 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
16304 ax_pthread_prio_inherit_defined
=yes
16308 CFLAGS
="$ax_pthread_save_CFLAGS"
16309 LIBS
="$ax_pthread_save_LIBS"
16311 # More AIX lossage: compile with *_r variant
16312 if test "x$GCC" != "xyes"; then
16316 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
16317 #handle absolute path differently from PATH based program lookup
16320 if as_fn_executable_p
${CC}_r
; then :
16321 PTHREAD_CC
="${CC}_r"
16324 for ac_prog
in ${CC}_r
16326 # Extract the first word of "$ac_prog", so it can be a program name with args.
16327 set dummy
$ac_prog; ac_word
=$2
16328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16329 $as_echo_n "checking for $ac_word... " >&6; }
16330 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
16331 $as_echo_n "(cached) " >&6
16333 if test -n "$PTHREAD_CC"; then
16334 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
16336 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16337 for as_dir
in $PATH
16340 test -z "$as_dir" && as_dir
=.
16341 for ac_exec_ext
in '' $ac_executable_extensions; do
16342 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16343 ac_cv_prog_PTHREAD_CC
="$ac_prog"
16344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16353 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
16354 if test -n "$PTHREAD_CC"; then
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16356 $as_echo "$PTHREAD_CC" >&6; }
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16359 $as_echo "no" >&6; }
16363 test -n "$PTHREAD_CC" && break
16365 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
16376 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
16382 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16383 if test "x$ax_pthread_ok" = "xyes"; then
16385 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16393 ac_cpp
='$CPP $CPPFLAGS'
16394 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16395 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16396 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
16400 # Specify a location for JDK
16404 # Check whether --with-jdk was given.
16405 if test "${with_jdk+set}" = set; then :
16410 if test "x$with_jdk" != x
; then
16411 jdk_inc
="-I$with_jdk/include -I$with_jdk/include/linux"
16412 enable_gprofng_jp
=yes
16414 # Extract the first word of "javac", so it can be a program name with args.
16415 set dummy javac
; ac_word
=$2
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16417 $as_echo_n "checking for $ac_word... " >&6; }
16418 if ${ac_cv_path_JAVAC+:} false
; then :
16419 $as_echo_n "(cached) " >&6
16423 ac_cv_path_JAVAC
="$JAVAC" # Let the user override the test with a path.
16426 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16427 for as_dir
in $PATH
16430 test -z "$as_dir" && as_dir
=.
16431 for ac_exec_ext
in '' $ac_executable_extensions; do
16432 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16433 ac_cv_path_JAVAC
="$as_dir/$ac_word$ac_exec_ext"
16434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16441 test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC
="javac"
16445 JAVAC
=$ac_cv_path_JAVAC
16446 if test -n "$JAVAC"; then
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
16448 $as_echo "$JAVAC" >&6; }
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16451 $as_echo "no" >&6; }
16455 if test -f $JAVAC; then
16456 x
=`readlink -f $JAVAC`
16459 if ! test -f $x/include
/jni.h
; then
16462 if test -f $x/include
/jni.h
; then
16463 jdk_inc
="-I$x/include -I$x/include/linux"
16464 enable_gprofng_jp
=yes
16468 if test "x$enable_gprofng_jp" = x
; then
16469 # Extract the first word of "java", so it can be a program name with args.
16470 set dummy java
; ac_word
=$2
16471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16472 $as_echo_n "checking for $ac_word... " >&6; }
16473 if ${ac_cv_path_JAVA+:} false
; then :
16474 $as_echo_n "(cached) " >&6
16478 ac_cv_path_JAVA
="$JAVA" # Let the user override the test with a path.
16481 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16482 for as_dir
in $PATH
16485 test -z "$as_dir" && as_dir
=.
16486 for ac_exec_ext
in '' $ac_executable_extensions; do
16487 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16488 ac_cv_path_JAVA
="$as_dir/$ac_word$ac_exec_ext"
16489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16496 test -z "$ac_cv_path_JAVA" && ac_cv_path_JAVA
="java"
16500 JAVA
=$ac_cv_path_JAVA
16501 if test -n "$JAVA"; then
16502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
16503 $as_echo "$JAVA" >&6; }
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16506 $as_echo "no" >&6; }
16510 if test -f $JAVA; then
16511 x
=`readlink -f $JAVA`
16514 if ! test -f $x/include
/jni.h
; then
16517 if test -f $x/include
/jni.h
; then
16518 jdk_inc
="-I$x/include -I$x/include/linux"
16519 enable_gprofng_jp
=yes
16523 if test "x$enable_gprofng_jp" = x
; then
16524 ac_fn_c_check_header_compile
"$LINENO" "jni.h" "ac_cv_header_jni_h" "
16526 if test "x$ac_cv_header_jni_h" = xyes
; then :
16527 enable_gprofng_jp
=yes
16532 GPROFNG_BROKEN_JAVAC
=no
16533 if test "x$enable_gprofng_jp" = x
; then
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find the JDK include directory.
16535 gprofng will be build without support for profiling Java applications.
16536 Use --with-jdk=PATH to specify directory for the installed JDK" >&5
16537 $as_echo "$as_me: WARNING: Cannot find the JDK include directory.
16538 gprofng will be build without support for profiling Java applications.
16539 Use --with-jdk=PATH to specify directory for the installed JDK" >&2;}
16542 $as_echo "#define GPROFNG_JAVA_PROFILING 1" >>confdefs.h
16544 if test "x$JAVAC" != x
; then
16545 cat > configtest.java
<< EOF
16547 public static void main(String args){
16548 System.out.println("Hello Java");
16552 if { ac_try
='$JAVAC conftest.java &5 2>&1'
16553 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16554 (eval $ac_try) 2>&5
16556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16557 test $ac_status = 0; }; }; then
16558 GPROFNG_BROKEN_JAVAC
=no
16560 GPROFNG_BROKEN_JAVAC
=yes
16569 # Check whether --enable-gprofng-debug was given.
16570 if test "${enable_gprofng_debug+set}" = set; then :
16571 enableval
=$enable_gprofng_debug;
16572 case "$enableval" in
16574 *) as_fn_error $?
"Argument to enable/disable gprofng-debug must be yes or no" "$LINENO" 5 ;;
16578 enable_gprofng_debug
=no
16582 if test "${enable_gprofng_debug}" = yes; then
16584 $as_echo "#define DEBUG 1" >>confdefs.h
16588 # Check if linker supports --as-needed and --no-as-needed options.
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
16590 $as_echo_n "checking linker --as-needed support... " >&6; }
16591 if ${bfd_cv_ld_as_needed+:} false
; then :
16592 $as_echo_n "(cached) " >&6
16594 bfd_cv_ld_as_needed
=no
16595 if $LD --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
16596 bfd_cv_ld_as_needed
=yes
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5
16601 $as_echo "$bfd_cv_ld_as_needed" >&6; }
16604 if test x
"$bfd_cv_ld_as_needed" = xyes
; then
16605 no_as_needed
='-Wl,--no-as-needed'
16608 # Extract the first word of "expect", so it can be a program name with args.
16609 set dummy expect
; ac_word
=$2
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16611 $as_echo_n "checking for $ac_word... " >&6; }
16612 if ${ac_cv_path_EXPECT+:} false
; then :
16613 $as_echo_n "(cached) " >&6
16617 ac_cv_path_EXPECT
="$EXPECT" # Let the user override the test with a path.
16620 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16621 for as_dir
in $PATH
16624 test -z "$as_dir" && as_dir
=.
16625 for ac_exec_ext
in '' $ac_executable_extensions; do
16626 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16627 ac_cv_path_EXPECT
="$as_dir/$ac_word$ac_exec_ext"
16628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16638 EXPECT
=$ac_cv_path_EXPECT
16639 if test -n "$EXPECT"; then
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
16641 $as_echo "$EXPECT" >&6; }
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16644 $as_echo "no" >&6; }
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl supporting try/catch" >&5
16649 $as_echo_n "checking for Tcl supporting try/catch... " >&6; }
16650 if ${ac_cv_libctf_tcl_try+:} false
; then :
16651 $as_echo_n "(cached) " >&6
16653 ac_cv_libctf_tcl_try
=`if test -z $EXPECT; then echo no; else $EXPECT << EOF
16654 if [llength [info commands try]] then { puts yes } else { puts no }
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_tcl_try" >&5
16660 $as_echo "$ac_cv_libctf_tcl_try" >&6; }
16661 if test "${ac_cv_libctf_tcl_try}" = yes; then
16671 # Generate manpages, if possible.
16672 if test $cross_compiling = no
; then
16674 HELP2MAN
=${HELP2MAN-"${am_missing_run}help2man"}
16680 if test x
$build_man = xtrue
; then
16682 BUILD_MAN_FALSE
='#'
16689 LD_NO_AS_NEEDED
=${no_as_needed}
16691 GPROFNG_CFLAGS
=${gprofng_cflags}
16695 GPROFNG_CPPFLAGS
=${gprofng_cppflags}
16698 ac_fn_c_check_decl
"$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
16699 if test "x$ac_cv_have_decl_basename" = xyes
; then :
16705 cat >>confdefs.h
<<_ACEOF
16706 #define HAVE_DECL_BASENAME $ac_have_decl
16709 for ac_func
in clock_gettime strsignal
16711 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16712 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16713 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
16714 cat >>confdefs.h
<<_ACEOF
16715 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16722 clock_gettime_link
=
16723 # At least for glibc, clock_gettime is in librt. But don't
16724 # pull that in if it still doesn't give us the function we want. This
16725 # test is copied from libgomp, and modified to not link in -lrt as
16726 # we're using this for test timing only.
16727 if test "$ac_cv_func_clock_gettime" = no
; then
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
16729 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
16730 if ${ac_cv_lib_rt_clock_gettime+:} false
; then :
16731 $as_echo_n "(cached) " >&6
16733 ac_check_lib_save_LIBS
=$LIBS
16735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16736 /* end confdefs.h. */
16738 /* Override any GCC internal prototype to avoid an error.
16739 Use char because int might match the return type of a GCC
16740 builtin and then its argument prototype would still apply. */
16744 char clock_gettime ();
16748 return clock_gettime ();
16753 if ac_fn_c_try_link
"$LINENO"; then :
16754 ac_cv_lib_rt_clock_gettime
=yes
16756 ac_cv_lib_rt_clock_gettime
=no
16758 rm -f core conftest.err conftest.
$ac_objext \
16759 conftest
$ac_exeext conftest.
$ac_ext
16760 LIBS
=$ac_check_lib_save_LIBS
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
16763 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
16764 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
; then :
16765 CLOCK_GETTIME_LINK
=-lrt
16767 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
16776 ac_config_files
="$ac_config_files Makefile src/Makefile gp-display-html/Makefile doc/Makefile"
16778 ac_config_headers
="$ac_config_headers config.h:common/config.h.in"
16781 cat >confcache
<<\_ACEOF
16782 # This file is a shell script that caches the results of configure
16783 # tests run on this system so they can be shared between configure
16784 # scripts and configure runs, see configure's option --config-cache.
16785 # It is not useful on other systems. If it contains results you don't
16786 # want to keep, you may remove or edit it.
16788 # config.status only pays attention to the cache file if you give it
16789 # the --recheck option to rerun configure.
16791 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16792 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16793 # following values.
16797 # The following way of writing the cache mishandles newlines in values,
16798 # but we know of no workaround that is simple, portable, and efficient.
16799 # So, we kill variables containing newlines.
16800 # Ultrix sh set writes to stderr and can't be redirected directly,
16801 # and sets the high bit in the cache file unless we assign to the vars.
16803 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16804 eval ac_val
=\$
$ac_var
16808 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16809 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16812 _ | IFS | as_nl
) ;; #(
16813 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16814 *) { eval $ac_var=; unset $ac_var;} ;;
16820 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16821 *${as_nl}ac_space
=\
*)
16822 # `set' does not quote correctly, so add quotes: double-quote
16823 # substitution turns \\\\ into \\, and sed turns \\ into \.
16826 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16829 # `set' quotes correctly as required by POSIX, so do not add quotes.
16830 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16839 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16841 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16843 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16844 if test -w "$cache_file"; then
16845 if test "x$cache_file" != "x/dev/null"; then
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16847 $as_echo "$as_me: updating cache $cache_file" >&6;}
16848 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
16849 cat confcache
>"$cache_file"
16851 case $cache_file in #(
16853 mv -f confcache
"$cache_file"$$
&&
16854 mv -f "$cache_file"$$
"$cache_file" ;; #(
16856 mv -f confcache
"$cache_file" ;;
16861 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16862 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16867 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16868 # Let make expand exec_prefix.
16869 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16871 DEFS
=-DHAVE_CONFIG_H
16876 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16877 # 1. Remove the extension, and $U if already installed.
16878 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16879 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16880 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16881 # will be set to the directory where LIBOBJS objects are built.
16882 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16883 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16885 LIBOBJS
=$ac_libobjs
16887 LTLIBOBJS
=$ac_ltlibobjs
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16891 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16892 if test -n "$am_sleep_pid"; then
16893 # Hide warnings about reused PIDs.
16894 wait $am_sleep_pid 2>/dev
/null
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16897 $as_echo "done" >&6; }
16898 if test -n "$EXEEXT"; then
16900 am__EXEEXT_FALSE
='#'
16902 am__EXEEXT_TRUE
='#'
16906 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16907 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
16908 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16910 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16911 as_fn_error $?
"conditional \"AMDEP\" was never defined.
16912 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16914 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16915 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
16916 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16918 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16919 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
16920 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16922 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16923 as_fn_error $?
"conditional \"am__fastdepCXX\" was never defined.
16924 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16926 if test -z "${BUILD_COLLECTOR_TRUE}" && test -z "${BUILD_COLLECTOR_FALSE}"; then
16927 as_fn_error $?
"conditional \"BUILD_COLLECTOR\" was never defined.
16928 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16930 if test -z "${BUILD_SRC_TRUE}" && test -z "${BUILD_SRC_FALSE}"; then
16931 as_fn_error $?
"conditional \"BUILD_SRC\" was never defined.
16932 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16934 if test -z "${RUN_TESTS_TRUE}" && test -z "${RUN_TESTS_FALSE}"; then
16935 as_fn_error $?
"conditional \"RUN_TESTS\" was never defined.
16936 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16938 if test -z "${TCL_TRY_TRUE}" && test -z "${TCL_TRY_FALSE}"; then
16939 as_fn_error $?
"conditional \"TCL_TRY\" was never defined.
16940 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16942 if test -z "${BUILD_MAN_TRUE}" && test -z "${BUILD_MAN_FALSE}"; then
16943 as_fn_error $?
"conditional \"BUILD_MAN\" was never defined.
16944 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16947 : "${CONFIG_STATUS=./config.status}"
16949 ac_clean_files_save
=$ac_clean_files
16950 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16952 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16954 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16956 # Generated by $as_me.
16957 # Run this file to recreate the current configuration.
16958 # Compiler output produced by configure, useful for debugging
16959 # configure, is in config.log if it exists.
16962 ac_cs_recheck=false
16965 SHELL=\${CONFIG_SHELL-$SHELL}
16968 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
16969 ## -------------------- ##
16970 ## M4sh Initialization. ##
16971 ## -------------------- ##
16973 # Be more Bourne compatible
16974 DUALCASE
=1; export DUALCASE
# for MKS sh
16975 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
16978 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16979 # is contrary to our usage. Disable this feature.
16980 alias -g '${1+"$@"}'='"$@"'
16981 setopt NO_GLOB_SUBST
16983 case `(set -o) 2>/dev/null` in #(
16995 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16996 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16997 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16998 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16999 # Prefer a ksh shell builtin over an external printf program on Solaris,
17000 # but without wasting forks for bash or zsh.
17001 if test -z "$BASH_VERSION$ZSH_VERSION" \
17002 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17003 as_echo='print
-r --'
17004 as_echo_n='print
-rn --'
17005 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17006 as_echo='printf %s
\n'
17007 as_echo_n='printf %s
'
17009 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17010 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17011 as_echo_n='/usr
/ucb
/echo -n'
17013 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17014 as_echo_n_body='eval
17018 expr "X$arg" : "X\\(.*\\)$as_nl";
17019 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17021 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17023 export as_echo_n_body
17024 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17026 export as_echo_body
17027 as_echo='sh
-c $as_echo_body as_echo
'
17030 # The user is always right.
17031 if test "${PATH_SEPARATOR+set}" != set; then
17033 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17034 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17041 # We need space, tab and new line, in precisely that order. Quoting is
17042 # there to prevent editors from complaining about space-tab.
17043 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17044 # splitting by setting IFS to empty value.)
17047 # Find who we are. Look in the path if we contain no directory separator.
17050 *[\\/]* ) as_myself=$0 ;;
17051 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17052 for as_dir in $PATH
17055 test -z "$as_dir" && as_dir=.
17056 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17062 # We did not find ourselves, most probably we were run as `sh COMMAND'
17063 # in which case we are not to be found in the path.
17064 if test "x$as_myself" = x
; then
17067 if test ! -f "$as_myself"; then
17068 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17072 # Unset variables that we do not need and which cause bugs (e.g. in
17073 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17074 # suppresses any "Segmentation fault" message there. '((' could
17075 # trigger a bug in pdksh 5.2.14.
17076 for as_var
in BASH_ENV ENV MAIL MAILPATH
17077 do eval test x\
${$as_var+set} = xset \
17078 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
17091 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
17094 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17095 # ----------------------------------------
17096 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17097 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17098 # script with STATUS, using 1 if that was 0.
17101 as_status
=$1; test $as_status -eq 0 && as_status
=1
17103 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
17104 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17106 $as_echo "$as_me: error: $2" >&2
17107 as_fn_exit
$as_status
17111 # as_fn_set_status STATUS
17112 # -----------------------
17113 # Set $? to STATUS, without forking.
17114 as_fn_set_status
()
17117 } # as_fn_set_status
17119 # as_fn_exit STATUS
17120 # -----------------
17121 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17125 as_fn_set_status
$1
17131 # Portably unset VAR.
17134 { eval $1=; unset $1;}
17136 as_unset
=as_fn_unset
17137 # as_fn_append VAR VALUE
17138 # ----------------------
17139 # Append the text in VALUE to the end of the definition contained in VAR. Take
17140 # advantage of any shell optimizations that allow amortized linear growth over
17141 # repeated appends, instead of the typical quadratic growth present in naive
17143 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
17144 eval 'as_fn_append ()
17155 # as_fn_arith ARG...
17156 # ------------------
17157 # Perform arithmetic evaluation on the ARGs, and store the result in the
17158 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17159 # must be portable across $(()) and expr.
17160 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
17161 eval 'as_fn_arith ()
17168 as_val
=`expr "$@" || test $? -eq 1`
17173 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17174 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17180 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17181 as_basename
=basename
17186 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
17192 as_me
=`$as_basename -- "$0" ||
17193 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17194 X"$0" : 'X\(//\)$' \| \
17195 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17197 sed '/^.*\/\([^/][^/]*\)\/*$/{
17211 # Avoid depending upon Character Ranges.
17212 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17213 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17214 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17215 as_cr_digits
='0123456789'
17216 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17218 ECHO_C
= ECHO_N
= ECHO_T
=
17219 case `echo -n x` in #(((((
17221 case `echo 'xy\c'` in
17222 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
17224 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
17231 rm -f conf$$ conf$$.exe conf$$.
file
17232 if test -d conf$$.dir
; then
17233 rm -f conf$$.dir
/conf$$.
file
17236 mkdir conf$$.dir
2>/dev
/null
17238 if (echo >conf$$.
file) 2>/dev
/null
; then
17239 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17241 # ... but there are two gotchas:
17242 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17243 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17244 # In both cases, we have to default to `cp -pR'.
17245 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
17247 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17255 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
17256 rmdir conf$$.dir
2>/dev
/null
17261 # Create "$as_dir" as a directory, including parents if necessary.
17266 -*) as_dir
=.
/$as_dir;;
17268 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
17272 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17273 *) as_qdir
=$as_dir;;
17275 as_dirs
="'$as_qdir' $as_dirs"
17276 as_dir
=`$as_dirname -- "$as_dir" ||
17277 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17278 X"$as_dir" : 'X\(//\)[^/]' \| \
17279 X"$as_dir" : 'X\(//\)$' \| \
17280 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17281 $as_echo X"$as_dir" |
17282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17286 /^X\(\/\/\)[^/].*/{
17299 test -d "$as_dir" && break
17301 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
17302 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
17306 if mkdir
-p .
2>/dev
/null
; then
17307 as_mkdir_p
='mkdir -p "$as_dir"'
17309 test -d .
/-p && rmdir .
/-p
17314 # as_fn_executable_p FILE
17315 # -----------------------
17316 # Test if FILE is an executable regular file.
17317 as_fn_executable_p
()
17319 test -f "$1" && test -x "$1"
17320 } # as_fn_executable_p
17321 as_test_x
='test -x'
17322 as_executable_p
=as_fn_executable_p
17324 # Sed expression to map a string onto a valid CPP name.
17325 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17327 # Sed expression to map a string onto a valid variable name.
17328 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17332 ## ----------------------------------- ##
17333 ## Main body of $CONFIG_STATUS script. ##
17334 ## ----------------------------------- ##
17336 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
17338 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17339 # Save the log message, to keep $0 and so on meaningful, and to
17340 # report actual input values of CONFIG_FILES etc. instead of their
17341 # values after options handling.
17343 This file was extended by gprofng $as_me 2.38.50, which was
17344 generated by GNU Autoconf 2.69. Invocation command line was
17346 CONFIG_FILES = $CONFIG_FILES
17347 CONFIG_HEADERS = $CONFIG_HEADERS
17348 CONFIG_LINKS = $CONFIG_LINKS
17349 CONFIG_COMMANDS = $CONFIG_COMMANDS
17352 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17357 case $ac_config_files in *"
17358 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
17361 case $ac_config_headers in *"
17362 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
17366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17367 # Files that config.status was made for.
17368 config_files="$ac_config_files"
17369 config_headers="$ac_config_headers"
17370 config_commands="$ac_config_commands"
17374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17376 \`$as_me' instantiates files and other configuration actions
17377 from templates according to the current configuration. Unless the files
17378 and actions are specified as TAGs, all are instantiated by default.
17380 Usage: $0 [OPTION]... [TAG]...
17382 -h, --help print this help, then exit
17383 -V, --version print version number and configuration settings, then exit
17384 --config print configuration, then exit
17385 -q, --quiet, --silent
17386 do not print progress messages
17387 -d, --debug don't remove temporary files
17388 --recheck update $as_me by reconfiguring in the same conditions
17389 --file=FILE[:TEMPLATE]
17390 instantiate the configuration file FILE
17391 --header=FILE[:TEMPLATE]
17392 instantiate the configuration header FILE
17394 Configuration files:
17397 Configuration headers:
17400 Configuration commands:
17403 Report bugs to the package provider."
17406 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17407 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17409 gprofng config.status 2.38.50
17410 configured by $0, generated by GNU Autoconf 2.69,
17411 with options \\"\$ac_cs_config\\"
17413 Copyright (C) 2012 Free Software Foundation, Inc.
17414 This config.status script is free software; the Free Software Foundation
17415 gives unlimited permission to copy, distribute and modify it."
17422 test -n "\$AWK" || AWK=awk
17425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17426 # The default lists apply if the user does not specify any file.
17432 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17433 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
17437 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17449 # Handling of the options.
17450 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17452 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
17453 $as_echo "$ac_cs_version"; exit ;;
17454 --config |
--confi |
--conf |
--con |
--co |
--c )
17455 $as_echo "$ac_cs_config"; exit ;;
17456 --debug |
--debu |
--deb |
--de |
--d |
-d )
17458 --file |
--fil |
--fi |
--f )
17461 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17462 '') as_fn_error $?
"missing file argument" ;;
17464 as_fn_append CONFIG_FILES
" '$ac_optarg'"
17465 ac_need_defaults
=false
;;
17466 --header |
--heade |
--head |
--hea )
17469 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17471 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
17472 ac_need_defaults
=false
;;
17474 # Conflict between --help and --header
17475 as_fn_error $?
"ambiguous option: \`$1'
17476 Try \`$0 --help' for more information.";;
17477 --help |
--hel |
-h )
17478 $as_echo "$ac_cs_usage"; exit ;;
17479 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17480 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17483 # This is an error.
17484 -*) as_fn_error $?
"unrecognized option: \`$1'
17485 Try \`$0 --help' for more information." ;;
17487 *) as_fn_append ac_config_targets
" $1"
17488 ac_need_defaults
=false
;;
17494 ac_configure_extra_args
=
17496 if $ac_cs_silent; then
17498 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17502 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17503 if \$ac_cs_recheck; then
17504 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17506 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17507 CONFIG_SHELL='$SHELL'
17508 export CONFIG_SHELL
17513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17517 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17518 ## Running $as_me. ##
17524 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17528 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17531 # The HP-UX ksh and POSIX shell print the target directory to stdout
17532 # if CDPATH is set.
17533 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17535 sed_quote_subst='$sed_quote_subst'
17536 double_quote_subst='$double_quote_subst'
17537 delay_variable_subst='$delay_variable_subst'
17538 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17539 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17540 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17541 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17542 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17543 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17544 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17545 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17546 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17547 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17548 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17549 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17550 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17551 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17552 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17553 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17554 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17555 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17556 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17557 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17558 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17559 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17560 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17561 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17562 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17563 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17564 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17565 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17566 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17567 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17568 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17569 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17570 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17571 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17572 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17573 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17574 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17575 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17576 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17577 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17578 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17579 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17580 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17581 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17582 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17583 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17584 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17585 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17586 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"`'
17587 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17588 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17589 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17590 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17591 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17592 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17593 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17594 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17595 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17596 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17597 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17598 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17599 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17600 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17601 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17602 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17603 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17604 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17605 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17606 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17607 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17608 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17609 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17610 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17611 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17612 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17613 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17614 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17615 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17616 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17617 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17618 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17619 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17620 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17621 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17622 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17623 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17624 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17625 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17626 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17627 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17628 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17629 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17630 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17631 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17632 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17633 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17634 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17635 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17636 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17637 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17638 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17639 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17640 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17641 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17642 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17643 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17644 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17645 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17646 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17647 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17648 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17649 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17650 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17651 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17652 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17653 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17654 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17655 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17656 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17657 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17658 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17659 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17660 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17661 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17662 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17663 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17664 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17665 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17666 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17667 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17668 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17669 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17670 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17671 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17672 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17673 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17674 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17675 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17676 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17677 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17678 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17679 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17680 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17681 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17682 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17683 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17684 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17685 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17686 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17687 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17688 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17689 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17690 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17691 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17692 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17693 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17694 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17695 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17696 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17697 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17698 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17699 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17700 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17701 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17702 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17703 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17704 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17705 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17706 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17707 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17708 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17709 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17710 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17711 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17712 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17715 LTCFLAGS='$LTCFLAGS'
17716 compiler='$compiler_DEFAULT'
17718 # A function that is used when there is no print builtin or printf.
17719 func_fallback_echo ()
17721 eval 'cat <<_LTECHO_EOF
17726 # Quote evaled strings.
17740 deplibs_check_method \
17749 lt_cv_sys_global_symbol_pipe \
17750 lt_cv_sys_global_symbol_to_cdecl \
17751 lt_cv_sys_global_symbol_to_c_name_address \
17752 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17753 lt_prog_compiler_no_builtin_flag \
17754 lt_prog_compiler_wl \
17755 lt_prog_compiler_pic \
17756 lt_prog_compiler_static \
17757 lt_cv_prog_compiler_c_o \
17765 export_dynamic_flag_spec \
17766 whole_archive_flag_spec \
17767 compiler_needs_object \
17769 allow_undefined_flag \
17770 no_undefined_flag \
17771 hardcode_libdir_flag_spec \
17772 hardcode_libdir_flag_spec_ld \
17773 hardcode_libdir_separator \
17778 variables_saved_for_relink \
17780 library_names_spec \
17782 install_override_mode \
17786 compiler_lib_search_dirs \
17791 compiler_lib_search_path \
17795 lt_prog_compiler_no_builtin_flag_CXX \
17796 lt_prog_compiler_wl_CXX \
17797 lt_prog_compiler_pic_CXX \
17798 lt_prog_compiler_static_CXX \
17799 lt_cv_prog_compiler_c_o_CXX \
17800 export_dynamic_flag_spec_CXX \
17801 whole_archive_flag_spec_CXX \
17802 compiler_needs_object_CXX \
17804 allow_undefined_flag_CXX \
17805 no_undefined_flag_CXX \
17806 hardcode_libdir_flag_spec_CXX \
17807 hardcode_libdir_flag_spec_ld_CXX \
17808 hardcode_libdir_separator_CXX \
17809 fix_srcfile_path_CXX \
17810 exclude_expsyms_CXX \
17811 include_expsyms_CXX \
17812 file_list_spec_CXX \
17813 compiler_lib_search_dirs_CXX \
17814 predep_objects_CXX \
17815 postdep_objects_CXX \
17818 compiler_lib_search_path_CXX; do
17819 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17820 *[\\\\\\\`\\"\\\$]*)
17821 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17824 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17829 # Double-quote double-evaled strings.
17830 for var in reload_cmds \
17831 old_postinstall_cmds \
17832 old_postuninstall_cmds \
17834 extract_expsyms_cmds \
17835 old_archive_from_new_cmds \
17836 old_archive_from_expsyms_cmds \
17838 archive_expsym_cmds \
17840 module_expsym_cmds \
17841 export_symbols_cmds \
17844 postuninstall_cmds \
17846 sys_lib_search_path_spec \
17847 sys_lib_dlsearch_path_spec \
17849 old_archive_cmds_CXX \
17850 old_archive_from_new_cmds_CXX \
17851 old_archive_from_expsyms_cmds_CXX \
17853 archive_expsym_cmds_CXX \
17855 module_expsym_cmds_CXX \
17856 export_symbols_cmds_CXX \
17857 prelink_cmds_CXX; do
17858 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17859 *[\\\\\\\`\\"\\\$]*)
17860 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17863 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17868 ac_aux_dir='$ac_aux_dir'
17869 xsi_shell='$xsi_shell'
17870 lt_shell_append='$lt_shell_append'
17872 # See if we are running on zsh, and set the options which allow our
17873 # commands through without removal of \ escapes INIT.
17874 if test -n "\${ZSH_VERSION+set}" ; then
17875 setopt NO_GLOB_SUBST
17881 TIMESTAMP='$TIMESTAMP'
17892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17894 # Handling of arguments.
17895 for ac_config_target
in $ac_config_targets
17897 case $ac_config_target in
17898 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
17899 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
17900 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
17901 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
17902 "gp-display-html/Makefile") CONFIG_FILES
="$CONFIG_FILES gp-display-html/Makefile" ;;
17903 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
17904 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:common/config.h.in" ;;
17906 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17911 # If the user did not use the arguments to specify the items to instantiate,
17912 # then the envvar interface is used. Set only those that are not.
17913 # We use the long form for the default assignment because of an extremely
17914 # bizarre bug on SunOS 4.1.3.
17915 if $ac_need_defaults; then
17916 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17917 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17918 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17921 # Have a temporary directory for convenience. Make it in the build tree
17922 # simply because there is no reason against having it here, and in addition,
17923 # creating and moving files from /tmp can sometimes cause problems.
17924 # Hook for its removal unless debugging.
17925 # Note that there is a small window in which the directory will not be cleaned:
17926 # after its creation but before its name has been assigned to `$tmp'.
17930 trap 'exit_status=$?
17931 : "${ac_tmp:=$tmp}"
17932 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17934 trap 'as_fn_exit 1' 1 2 13 15
17936 # Create a (secure) tmp directory for tmp files.
17939 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17943 tmp
=.
/conf$$
-$RANDOM
17944 (umask 077 && mkdir
"$tmp")
17945 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
17948 # Set up the scripts for CONFIG_FILES section.
17949 # No need to generate them if there are no CONFIG_FILES.
17950 # This happens for instance with `./config.status config.h'.
17951 if test -n "$CONFIG_FILES"; then
17954 ac_cr
=`echo X | tr X '\015'`
17955 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17956 # But we know of no other shell where ac_cr would be empty at this
17957 # point, so we can use a bashism as a fallback.
17958 if test "x$ac_cr" = x
; then
17959 eval ac_cr
=\$
\'\\r
\'
17961 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17962 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17965 ac_cs_awk_cr
=$ac_cr
17968 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17973 echo "cat >conf$$subs.awk <<_ACEOF" &&
17974 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17976 } >conf$$subs.sh ||
17977 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17978 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17980 for ac_last_try in false false false false false :; do
17981 . ./conf$$subs.sh ||
17982 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17984 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
17985 if test $ac_delim_n = $ac_delim_num; then
17987 elif $ac_last_try; then
17988 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17990 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17993 rm -f conf$$subs.sh
17995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17996 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
18000 s/^/S["/; s
/!.
*/"]=/
18010 s/\(.\{148\}\)..*/\1/
18012 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18017 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18024 s/\(.\{148\}\)..*/\1/
18026 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18030 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18035 ' <conf$$subs.awk | sed '
18040 ' >>$CONFIG_STATUS || ac_write_fail=1
18041 rm -f conf$$subs.awk
18042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18044 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
18045 for (key in S) S_is_set[key] = 1
18051 nfields = split(line, field, "@
")
18053 len = length(field[1])
18054 for (i = 2; i < nfields; i++) {
18056 keylen = length(key)
18057 if (S_is_set[key]) {
18059 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18060 len += length(value) + length(field[++i])
18071 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18072 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18073 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18076 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
18077 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
18080 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18081 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
18082 # trailing colons and then remove the whole line if VPATH becomes empty
18083 # (actually we leave an empty line to preserve line numbers).
18084 if test "x
$srcdir" = x.; then
18085 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18104 fi # test -n "$CONFIG_FILES"
18106 # Set up the scripts for CONFIG_HEADERS section.
18107 # No need to generate them if there are no CONFIG_HEADERS.
18108 # This happens for instance with `./config.status Makefile'.
18109 if test -n "$CONFIG_HEADERS"; then
18110 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
18114 # Transform confdefs.h into an awk script `defines.awk', embedded as
18115 # here-document in config.status, that substitutes the proper values into
18116 # config.h.in to produce config.h.
18118 # Create a delimiter string that does not exist in confdefs.h, to ease
18119 # handling of long lines.
18121 for ac_last_try in false false :; do
18122 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
18123 if test -z "$ac_tt"; then
18125 elif $ac_last_try; then
18126 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
18128 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18132 # For the awk script, D is an array of macro values keyed by name,
18133 # likewise P contains macro parameters if any. Preserve backslash
18134 # newline sequences.
18136 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18138 s/.\{148\}/&'"$ac_delim"'/g
18141 s/^[ ]*#[ ]*define[ ][ ]*/ /
18148 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18150 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18154 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18155 D["\
1"]=" \
3\\\\\\n
"\\/p
18157 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18162 s/.\{148\}/&'"$ac_delim"'/g
18167 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18170 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18172 ' <confdefs.h | sed '
18173 s/'"$ac_delim"'/"\\\
18174 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18177 for (key in D) D_is_set[key] = 1
18180 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18182 split(line, arg, " ")
18183 if (arg[1] == "#") {
18187 defundef
= substr
(arg
[1], 2)
18190 split(mac1
, mac2
, "(") #)
18192 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18193 if (D_is_set
[macro
]) {
18194 # Preserve the white space surrounding the "#".
18195 print prefix
"define", macro P
[macro
] D
[macro
]
18198 # Replace #undef with comments. This is necessary, for example,
18199 # in the case of _POSIX_SOURCE, which is predefined and required
18200 # on some systems where configure will not decide to define it.
18201 if (defundef
== "undef") {
18202 print
"/*", prefix defundef
, macro
, "*/"
18210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18211 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
18212 fi # test -n "$CONFIG_HEADERS"
18215 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18220 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18222 case $ac_mode$ac_tag in
18224 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
18225 :[FH
]-) ac_tag
=-:-;;
18226 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18243 -) ac_f
="$ac_tmp/stdin";;
18244 *) # Look for the file first in the build tree, then in the source tree
18245 # (if the path is not absolute). The absolute path cannot be DOS-style,
18246 # because $ac_f cannot contain `:'.
18250 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18252 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18254 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18255 as_fn_append ac_file_inputs
" '$ac_f'"
18258 # Let's still pretend it is `configure' which instantiates (i.e., don't
18259 # use $as_me), people would be surprised to read:
18260 # /* config.h. Generated by config.status. */
18261 configure_input
='Generated from '`
18262 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18264 if test x
"$ac_file" != x-
; then
18265 configure_input
="$ac_file. $configure_input"
18266 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18267 $as_echo "$as_me: creating $ac_file" >&6;}
18269 # Neutralize special characters interpreted by sed in replacement strings.
18270 case $configure_input in #(
18271 *\
&* |
*\|
* |
*\\* )
18272 ac_sed_conf_input
=`$as_echo "$configure_input" |
18273 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18274 *) ac_sed_conf_input
=$configure_input;;
18278 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
18279 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
18284 ac_dir
=`$as_dirname -- "$ac_file" ||
18285 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18286 X"$ac_file" : 'X\(//\)[^/]' \| \
18287 X"$ac_file" : 'X\(//\)$' \| \
18288 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18289 $as_echo X"$ac_file" |
18290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18294 /^X\(\/\/\)[^/].*/{
18307 as_dir
="$ac_dir"; as_fn_mkdir_p
18311 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18313 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18314 # A ".." for each directory in $ac_dir_suffix.
18315 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18316 case $ac_top_builddir_sub in
18317 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18318 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18321 ac_abs_top_builddir
=$ac_pwd
18322 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18323 # for backward compatibility:
18324 ac_top_builddir
=$ac_top_build_prefix
18327 .
) # We are building in place.
18329 ac_top_srcdir
=$ac_top_builddir_sub
18330 ac_abs_top_srcdir
=$ac_pwd ;;
18331 [\\/]* | ?
:[\\/]* ) # Absolute name.
18332 ac_srcdir
=$srcdir$ac_dir_suffix;
18333 ac_top_srcdir
=$srcdir
18334 ac_abs_top_srcdir
=$srcdir ;;
18335 *) # Relative name.
18336 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18337 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18338 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18340 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18350 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18351 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
18353 ac_MKDIR_P
=$MKDIR_P
18355 [\\/$
]* | ?
:[\\/]* ) ;;
18356 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
18360 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18361 # If the template does not know about datarootdir, expand it.
18362 # FIXME: This hack should be removed a few years after 2.60.
18363 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18374 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18375 *datarootdir
*) ac_datarootdir_seen
=yes;;
18376 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
18377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18378 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18381 ac_datarootdir_hack='
18382 s&@datadir@&$datadir&g
18383 s&@docdir@&$docdir&g
18384 s&@infodir@&$infodir&g
18385 s&@localedir@&$localedir&g
18386 s&@mandir@&$mandir&g
18387 s&\\\${datarootdir}&$datarootdir&g' ;;
18391 # Neutralize VPATH when `$srcdir' = `.'.
18392 # Shell code in configure.ac might set extrasub.
18393 # FIXME: do we really want to maintain this feature?
18394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18395 ac_sed_extra="$ac_vpsub
18398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18400 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18401 s|@configure_input@|
$ac_sed_conf_input|
;t t
18402 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
18403 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
18404 s
&@srcdir@
&$ac_srcdir&;t t
18405 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
18406 s
&@top_srcdir@
&$ac_top_srcdir&;t t
18407 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
18408 s
&@builddir@
&$ac_builddir&;t t
18409 s
&@abs_builddir@
&$ac_abs_builddir&;t t
18410 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
18411 s
&@INSTALL@
&$ac_INSTALL&;t t
18412 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
18413 $ac_datarootdir_hack
18415 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
18416 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
18418 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18419 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
18420 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18421 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
18422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
18423 which seems to be undefined. Please make sure it is defined" >&5
18424 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
18425 which seems to be undefined. Please make sure it is defined" >&2;}
18427 rm -f "$ac_tmp/stdin"
18429 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18430 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18432 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18438 if test x"$ac_file" != x-; then
18440 $as_echo "/* $configure_input */" \
18441 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18442 } >"$ac_tmp/config.h" \
18443 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18444 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18446 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18449 mv "$ac_tmp/config.h" "$ac_file" \
18450 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18453 $as_echo "/* $configure_input */" \
18454 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18455 || as_fn_error $? "could not create -" "$LINENO" 5
18457 # Compute "$ac_file"'s index
in $config_headers.
18460 for _am_header
in $config_headers :; do
18461 case $_am_header in
18462 $_am_arg |
$_am_arg:* )
18465 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
18468 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18469 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18470 X"$_am_arg" : 'X\(//\)[^/]' \| \
18471 X"$_am_arg" : 'X\(//\)$' \| \
18472 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18473 $as_echo X"$_am_arg" |
18474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18478 /^X\(\/\/\)[^/].*/{
18490 s/.*/./; q'`/stamp-h
$_am_stamp_count
18493 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18494 $as_echo "$as_me: executing $ac_file commands" >&6;}
18499 case $ac_file$ac_mode in
18500 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
18501 # Older Autoconf quotes --file arguments for eval, but not when files
18502 # are listed without --file. Let's play safe and only enable the eval
18503 # if we detect the quoting.
18504 case $CONFIG_FILES in
18505 *\'*) eval set x
"$CONFIG_FILES" ;;
18506 *) set x
$CONFIG_FILES ;;
18511 # Strip MF so we end up with the name of the file.
18512 mf
=`echo "$mf" | sed -e 's/:.*$//'`
18513 # Check whether this is an Automake generated Makefile or not.
18514 # We used to match only the files named 'Makefile.in', but
18515 # some people rename them; so instead we look at the file content.
18516 # Grep'ing the first line is not enough: some people post-process
18517 # each Makefile.in and add a new line on top of each file to say so.
18518 # Grep'ing the whole file is not good either: AIX grep has a line
18519 # limit of 2048, but all sed's we know have understand at least 4000.
18520 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
18521 dirpart
=`$as_dirname -- "$mf" ||
18522 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18523 X"$mf" : 'X\(//\)[^/]' \| \
18524 X"$mf" : 'X\(//\)$' \| \
18525 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18531 /^X\(\/\/\)[^/].*/{
18547 # Extract the definition of DEPDIR, am__include, and am__quote
18548 # from the Makefile without running 'make'.
18549 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
18550 test -z "$DEPDIR" && continue
18551 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
18552 test -z "$am__include" && continue
18553 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
18554 # Find all dependency output files, they are included files with
18555 # $(DEPDIR) in their names. We invoke sed twice because it is the
18556 # simplest approach to changing $(DEPDIR) to its actual value in the
18558 for file in `sed -n "
18559 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18560 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18561 # Make sure the directory exists.
18562 test -f "$dirpart/$file" && continue
18563 fdir
=`$as_dirname -- "$file" ||
18564 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18565 X"$file" : 'X\(//\)[^/]' \| \
18566 X"$file" : 'X\(//\)$' \| \
18567 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18568 $as_echo X"$file" |
18569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18573 /^X\(\/\/\)[^/].*/{
18586 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
18587 # echo "creating $dirpart/$file"
18588 echo '# dummy' > "$dirpart/$file"
18595 # See if we are running on zsh, and set the options which allow our
18596 # commands through without removal of \ escapes.
18597 if test -n "${ZSH_VERSION+set}" ; then
18598 setopt NO_GLOB_SUBST
18601 cfgfile
="${ofile}T"
18602 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18605 cat <<_LT_EOF >> "$cfgfile"
18608 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18609 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18610 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18611 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18613 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18614 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18615 # Written by Gordon Matzigkeit, 1996
18617 # This file is part of GNU Libtool.
18619 # GNU Libtool is free software; you can redistribute it and/or
18620 # modify it under the terms of the GNU General Public License as
18621 # published by the Free Software Foundation; either version 2 of
18622 # the License, or (at your option) any later version.
18624 # As a special exception to the GNU General Public License,
18625 # if you distribute this file as part of a program or library that
18626 # is built using GNU Libtool, you may include this file under the
18627 # same distribution terms that you use for the rest of that program.
18629 # GNU Libtool is distributed in the hope that it will be useful,
18630 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18631 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18632 # GNU General Public License for more details.
18634 # You should have received a copy of the GNU General Public License
18635 # along with GNU Libtool; see the file COPYING. If not, a copy
18636 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18637 # obtained by writing to the Free Software Foundation, Inc.,
18638 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18641 # The names of the tagged configurations supported by this script.
18642 available_tags="CXX "
18644 # ### BEGIN LIBTOOL CONFIG
18646 # Whether or not to build shared libraries.
18647 build_libtool_libs=$enable_shared
18649 # Which release of libtool.m4 was used?
18650 macro_version=$macro_version
18651 macro_revision=$macro_revision
18653 # Whether or not to build static libraries.
18654 build_old_libs=$enable_static
18656 # What type of objects to build.
18659 # Whether or not to optimize for fast installation.
18660 fast_install=$enable_fast_install
18662 # Shell to use when invoking shell scripts.
18665 # An echo program that protects backslashes.
18669 host_alias=$host_alias
18673 # The build system.
18674 build_alias=$build_alias
18678 # A sed program that does not truncate output.
18681 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18682 Xsed="\$SED -e 1s/^X//"
18684 # A grep program that handles long lines.
18690 # A literal string matcher.
18693 # A BSD- or MS-compatible name lister.
18696 # Whether we need soft or hard links.
18699 # What is the maximum length of a command?
18700 max_cmd_len=$max_cmd_len
18702 # Object file suffix (normally "o").
18705 # Executable file suffix (normally "").
18708 # whether the shell understands "unset".
18711 # turn spaces into newlines.
18714 # turn newlines into spaces.
18717 # An object symbol dumper.
18718 OBJDUMP=$lt_OBJDUMP
18720 # Method to check whether dependent libraries are shared objects.
18721 deplibs_check_method=$lt_deplibs_check_method
18723 # Command to use when deplibs_check_method == "file_magic".
18724 file_magic_cmd=$lt_file_magic_cmd
18728 AR_FLAGS=$lt_AR_FLAGS
18730 # A symbol stripping program.
18733 # Commands used to install an old-style archive.
18735 old_postinstall_cmds=$lt_old_postinstall_cmds
18736 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18738 # Whether to use a lock for old archive extraction.
18739 lock_old_archive_extraction=$lock_old_archive_extraction
18744 # LTCC compiler flags.
18745 LTCFLAGS=$lt_CFLAGS
18747 # Take the output of nm and produce a listing of raw symbols and C names.
18748 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18750 # Transform the output of nm in a proper C declaration.
18751 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18753 # Transform the output of nm in a C name address pair.
18754 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18756 # Transform the output of nm in a C name address pair when lib prefix is needed.
18757 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18759 # The name of the directory that contains temporary libtool files.
18762 # Used to examine libraries when file_magic_cmd begins with "file".
18763 MAGIC_CMD=$MAGIC_CMD
18765 # Must we lock files when doing compilation?
18766 need_locks=$lt_need_locks
18768 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18769 DSYMUTIL=$lt_DSYMUTIL
18771 # Tool to change global to local symbols on Mac OS X.
18774 # Tool to manipulate fat objects and archives on Mac OS X.
18777 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18780 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18781 OTOOL64=$lt_OTOOL64
18783 # Old archive suffix (normally "a").
18786 # Shared library suffix (normally ".so").
18787 shrext_cmds=$lt_shrext_cmds
18789 # The commands to extract the exported symbol list from a shared archive.
18790 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18792 # Variables whose values should be saved in libtool wrapper scripts and
18793 # restored at link time.
18794 variables_saved_for_relink=$lt_variables_saved_for_relink
18796 # Do we need the "lib" prefix for modules?
18797 need_lib_prefix=$need_lib_prefix
18799 # Do we need a version for libraries?
18800 need_version=$need_version
18802 # Library versioning type.
18803 version_type=$version_type
18805 # Shared library runtime path variable.
18806 runpath_var=$runpath_var
18808 # Shared library path variable.
18809 shlibpath_var=$shlibpath_var
18811 # Is shlibpath searched before the hard-coded library search path?
18812 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18814 # Format of library name prefix.
18815 libname_spec=$lt_libname_spec
18817 # List of archive names. First name is the real one, the rest are links.
18818 # The last name is the one that the linker finds with -lNAME
18819 library_names_spec=$lt_library_names_spec
18821 # The coded name of the library, if different from the real name.
18822 soname_spec=$lt_soname_spec
18824 # Permission mode override for installation of shared libraries.
18825 install_override_mode=$lt_install_override_mode
18827 # Command to use after installation of a shared archive.
18828 postinstall_cmds=$lt_postinstall_cmds
18830 # Command to use after uninstallation of a shared archive.
18831 postuninstall_cmds=$lt_postuninstall_cmds
18833 # Commands used to finish a libtool library installation in a directory.
18834 finish_cmds=$lt_finish_cmds
18836 # As "finish_cmds", except a single script fragment to be evaled but
18838 finish_eval=$lt_finish_eval
18840 # Whether we should hardcode library paths into libraries.
18841 hardcode_into_libs=$hardcode_into_libs
18843 # Compile-time system search path for libraries.
18844 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18846 # Run-time system search path for libraries.
18847 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18849 # Whether dlopen is supported.
18850 dlopen_support=$enable_dlopen
18852 # Whether dlopen of programs is supported.
18853 dlopen_self=$enable_dlopen_self
18855 # Whether dlopen of statically linked programs is supported.
18856 dlopen_self_static=$enable_dlopen_self_static
18858 # Commands to strip libraries.
18859 old_striplib=$lt_old_striplib
18860 striplib=$lt_striplib
18863 # The linker used to build libraries.
18866 # How to create reloadable object files.
18867 reload_flag=$lt_reload_flag
18868 reload_cmds=$lt_reload_cmds
18870 # Commands used to build an old-style archive.
18871 old_archive_cmds=$lt_old_archive_cmds
18873 # A language specific compiler.
18876 # Is the compiler the GNU compiler?
18879 # Compiler flag to turn off builtin functions.
18880 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18882 # How to pass a linker flag through the compiler.
18883 wl=$lt_lt_prog_compiler_wl
18885 # Additional compiler flags for building library objects.
18886 pic_flag=$lt_lt_prog_compiler_pic
18888 # Compiler flag to prevent dynamic linking.
18889 link_static_flag=$lt_lt_prog_compiler_static
18891 # Does compiler simultaneously support -c and -o options?
18892 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18894 # Whether or not to add -lc for building shared libraries.
18895 build_libtool_need_lc=$archive_cmds_need_lc
18897 # Whether or not to disallow shared libs when runtime libs are static.
18898 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18900 # Compiler flag to allow reflexive dlopens.
18901 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18903 # Compiler flag to generate shared objects directly from archives.
18904 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18906 # Whether the compiler copes with passing no objects directly.
18907 compiler_needs_object=$lt_compiler_needs_object
18909 # Create an old-style archive from a shared archive.
18910 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18912 # Create a temporary old-style archive to link instead of a shared archive.
18913 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18915 # Commands used to build a shared archive.
18916 archive_cmds=$lt_archive_cmds
18917 archive_expsym_cmds=$lt_archive_expsym_cmds
18919 # Commands used to build a loadable module if different from building
18920 # a shared archive.
18921 module_cmds=$lt_module_cmds
18922 module_expsym_cmds=$lt_module_expsym_cmds
18924 # Whether we are building with GNU ld or not.
18925 with_gnu_ld=$lt_with_gnu_ld
18927 # Flag that allows shared libraries with undefined symbols to be built.
18928 allow_undefined_flag=$lt_allow_undefined_flag
18930 # Flag that enforces no undefined symbols.
18931 no_undefined_flag=$lt_no_undefined_flag
18933 # Flag to hardcode \$libdir into a binary during linking.
18934 # This must work even if \$libdir does not exist
18935 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18937 # If ld is used when linking, flag to hardcode \$libdir into a binary
18938 # during linking. This must work even if \$libdir does not exist.
18939 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18941 # Whether we need a single "-rpath" flag with a separated argument.
18942 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18944 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18945 # DIR into the resulting binary.
18946 hardcode_direct=$hardcode_direct
18948 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18949 # DIR into the resulting binary and the resulting library dependency is
18950 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18951 # library is relocated.
18952 hardcode_direct_absolute=$hardcode_direct_absolute
18954 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18955 # into the resulting binary.
18956 hardcode_minus_L=$hardcode_minus_L
18958 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18959 # into the resulting binary.
18960 hardcode_shlibpath_var=$hardcode_shlibpath_var
18962 # Set to "yes" if building a shared library automatically hardcodes DIR
18963 # into the library and all subsequent libraries and executables linked
18965 hardcode_automatic=$hardcode_automatic
18967 # Set to yes if linker adds runtime paths of dependent libraries
18968 # to runtime path list.
18969 inherit_rpath=$inherit_rpath
18971 # Whether libtool must link a program against all its dependency libraries.
18972 link_all_deplibs=$link_all_deplibs
18974 # Fix the shell variable \$srcfile for the compiler.
18975 fix_srcfile_path=$lt_fix_srcfile_path
18977 # Set to "yes" if exported symbols are required.
18978 always_export_symbols=$always_export_symbols
18980 # The commands to list exported symbols.
18981 export_symbols_cmds=$lt_export_symbols_cmds
18983 # Symbols that should not be listed in the preloaded symbols.
18984 exclude_expsyms=$lt_exclude_expsyms
18986 # Symbols that must always be exported.
18987 include_expsyms=$lt_include_expsyms
18989 # Commands necessary for linking programs (against libraries) with templates.
18990 prelink_cmds=$lt_prelink_cmds
18992 # Specify filename containing input files.
18993 file_list_spec=$lt_file_list_spec
18995 # How to hardcode a shared library path into an executable.
18996 hardcode_action=$hardcode_action
18998 # The directories searched by this compiler when creating a shared library.
18999 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19001 # Dependencies to place before and after the objects being linked to
19002 # create a shared library.
19003 predep_objects=$lt_predep_objects
19004 postdep_objects=$lt_postdep_objects
19005 predeps=$lt_predeps
19006 postdeps=$lt_postdeps
19008 # The library search path used internally by the compiler when linking
19009 # a shared library.
19010 compiler_lib_search_path=$lt_compiler_lib_search_path
19012 # ### END LIBTOOL CONFIG
19018 cat <<\_LT_EOF
>> "$cfgfile"
19019 # AIX sometimes has problems with the GCC collect2 program. For some
19020 # reason, if we set the COLLECT_NAMES environment variable, the problems
19021 # vanish in a puff of smoke.
19022 if test "X${COLLECT_NAMES+set}" != Xset
; then
19024 export COLLECT_NAMES
19031 ltmain
="$ac_aux_dir/ltmain.sh"
19034 # We use sed instead of cat because bash on DJGPP gets confused if
19035 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19036 # text mode, it properly converts lines to CR/LF. This bash problem
19037 # is reportedly fixed, but why not run on old versions too?
19038 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19039 ||
(rm -f "$cfgfile"; exit 1)
19043 cat << \_LT_EOF
>> "$cfgfile"
19045 # func_dirname file append nondir_replacement
19046 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19047 # otherwise set result to NONDIR_REPLACEMENT.
19051 */*) func_dirname_result
="${1%/*}${2}" ;;
19052 * ) func_dirname_result
="${3}" ;;
19056 # func_basename file
19059 func_basename_result
="${1##*/}"
19062 # func_dirname_and_basename file append nondir_replacement
19063 # perform func_basename and func_dirname in a single function
19065 # dirname: Compute the dirname of FILE. If nonempty,
19066 # add APPEND to the result, otherwise set result
19067 # to NONDIR_REPLACEMENT.
19068 # value returned in "$func_dirname_result"
19069 # basename: Compute filename of FILE.
19070 # value retuned in "$func_basename_result"
19071 # Implementation must be kept synchronized with func_dirname
19072 # and func_basename. For efficiency, we do not delegate to
19073 # those functions but instead duplicate the functionality here.
19074 func_dirname_and_basename
()
19077 */*) func_dirname_result
="${1%/*}${2}" ;;
19078 * ) func_dirname_result
="${3}" ;;
19080 func_basename_result
="${1##*/}"
19083 # func_stripname prefix suffix name
19084 # strip PREFIX and SUFFIX off of NAME.
19085 # PREFIX and SUFFIX must not contain globbing or regex special
19086 # characters, hashes, percent signs, but SUFFIX may contain a leading
19087 # dot (in which case that matches only a dot).
19090 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19091 # positional parameters, so assign one to ordinary parameter first.
19092 func_stripname_result
=${3}
19093 func_stripname_result
=${func_stripname_result#"${1}"}
19094 func_stripname_result
=${func_stripname_result%"${2}"}
19100 func_opt_split_opt
=${1%%=*}
19101 func_opt_split_arg
=${1#*=}
19108 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
19109 *) func_lo2o_result
=${1} ;;
19113 # func_xform libobj-or-source
19116 func_xform_result
=${1%.*}.lo
19119 # func_arith arithmetic-term...
19122 func_arith_result
=$
(( $
* ))
19126 # STRING may not start with a hyphen.
19129 func_len_result
=${#1}
19134 *) # Bourne compatible functions.
19135 cat << \_LT_EOF
>> "$cfgfile"
19137 # func_dirname file append nondir_replacement
19138 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19139 # otherwise set result to NONDIR_REPLACEMENT.
19142 # Extract subdirectory from the argument.
19143 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
19144 if test "X$func_dirname_result" = "X${1}"; then
19145 func_dirname_result
="${3}"
19147 func_dirname_result
="$func_dirname_result${2}"
19151 # func_basename file
19154 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
19158 # func_stripname prefix suffix name
19159 # strip PREFIX and SUFFIX off of NAME.
19160 # PREFIX and SUFFIX must not contain globbing or regex special
19161 # characters, hashes, percent signs, but SUFFIX may contain a leading
19162 # dot (in which case that matches only a dot).
19163 # func_strip_suffix prefix name
19167 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19168 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19173 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
19174 my_sed_long_arg
='1s/^-[^=]*=//'
19179 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19180 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19186 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
19189 # func_xform libobj-or-source
19192 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19195 # func_arith arithmetic-term...
19198 func_arith_result
=`expr "$@"`
19202 # STRING may not start with a hyphen.
19205 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19211 case $lt_shell_append in
19213 cat << \_LT_EOF
>> "$cfgfile"
19215 # func_append var value
19216 # Append VALUE to the end of shell variable VAR.
19224 cat << \_LT_EOF
>> "$cfgfile"
19226 # func_append var value
19227 # Append VALUE to the end of shell variable VAR.
19238 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19239 ||
(rm -f "$cfgfile"; exit 1)
19241 mv -f "$cfgfile" "$ofile" ||
19242 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19246 cat <<_LT_EOF >> "$ofile"
19248 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19250 # The linker used to build libraries.
19253 # How to create reloadable object files.
19254 reload_flag=$lt_reload_flag_CXX
19255 reload_cmds=$lt_reload_cmds_CXX
19257 # Commands used to build an old-style archive.
19258 old_archive_cmds=$lt_old_archive_cmds_CXX
19260 # A language specific compiler.
19261 CC=$lt_compiler_CXX
19263 # Is the compiler the GNU compiler?
19266 # Compiler flag to turn off builtin functions.
19267 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19269 # How to pass a linker flag through the compiler.
19270 wl=$lt_lt_prog_compiler_wl_CXX
19272 # Additional compiler flags for building library objects.
19273 pic_flag=$lt_lt_prog_compiler_pic_CXX
19275 # Compiler flag to prevent dynamic linking.
19276 link_static_flag=$lt_lt_prog_compiler_static_CXX
19278 # Does compiler simultaneously support -c and -o options?
19279 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19281 # Whether or not to add -lc for building shared libraries.
19282 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19284 # Whether or not to disallow shared libs when runtime libs are static.
19285 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19287 # Compiler flag to allow reflexive dlopens.
19288 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19290 # Compiler flag to generate shared objects directly from archives.
19291 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19293 # Whether the compiler copes with passing no objects directly.
19294 compiler_needs_object=$lt_compiler_needs_object_CXX
19296 # Create an old-style archive from a shared archive.
19297 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19299 # Create a temporary old-style archive to link instead of a shared archive.
19300 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19302 # Commands used to build a shared archive.
19303 archive_cmds=$lt_archive_cmds_CXX
19304 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19306 # Commands used to build a loadable module if different from building
19307 # a shared archive.
19308 module_cmds=$lt_module_cmds_CXX
19309 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19311 # Whether we are building with GNU ld or not.
19312 with_gnu_ld=$lt_with_gnu_ld_CXX
19314 # Flag that allows shared libraries with undefined symbols to be built.
19315 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19317 # Flag that enforces no undefined symbols.
19318 no_undefined_flag=$lt_no_undefined_flag_CXX
19320 # Flag to hardcode \$libdir into a binary during linking.
19321 # This must work even if \$libdir does not exist
19322 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19324 # If ld is used when linking, flag to hardcode \$libdir into a binary
19325 # during linking. This must work even if \$libdir does not exist.
19326 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19328 # Whether we need a single "-rpath" flag with a separated argument.
19329 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19331 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19332 # DIR into the resulting binary.
19333 hardcode_direct=$hardcode_direct_CXX
19335 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19336 # DIR into the resulting binary and the resulting library dependency is
19337 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19338 # library is relocated.
19339 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19341 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19342 # into the resulting binary.
19343 hardcode_minus_L=$hardcode_minus_L_CXX
19345 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19346 # into the resulting binary.
19347 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19349 # Set to "yes" if building a shared library automatically hardcodes DIR
19350 # into the library and all subsequent libraries and executables linked
19352 hardcode_automatic=$hardcode_automatic_CXX
19354 # Set to yes if linker adds runtime paths of dependent libraries
19355 # to runtime path list.
19356 inherit_rpath=$inherit_rpath_CXX
19358 # Whether libtool must link a program against all its dependency libraries.
19359 link_all_deplibs=$link_all_deplibs_CXX
19361 # Fix the shell variable \$srcfile for the compiler.
19362 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19364 # Set to "yes" if exported symbols are required.
19365 always_export_symbols=$always_export_symbols_CXX
19367 # The commands to list exported symbols.
19368 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19370 # Symbols that should not be listed in the preloaded symbols.
19371 exclude_expsyms=$lt_exclude_expsyms_CXX
19373 # Symbols that must always be exported.
19374 include_expsyms=$lt_include_expsyms_CXX
19376 # Commands necessary for linking programs (against libraries) with templates.
19377 prelink_cmds=$lt_prelink_cmds_CXX
19379 # Specify filename containing input files.
19380 file_list_spec=$lt_file_list_spec_CXX
19382 # How to hardcode a shared library path into an executable.
19383 hardcode_action=$hardcode_action_CXX
19385 # The directories searched by this compiler when creating a shared library.
19386 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19388 # Dependencies to place before and after the objects being linked to
19389 # create a shared library.
19390 predep_objects=$lt_predep_objects_CXX
19391 postdep_objects=$lt_postdep_objects_CXX
19392 predeps=$lt_predeps_CXX
19393 postdeps=$lt_postdeps_CXX
19395 # The library search path used internally by the compiler when linking
19396 # a shared library.
19397 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19399 # ### END LIBTOOL TAG CONFIG: CXX
19410 ac_clean_files
=$ac_clean_files_save
19412 test $ac_write_fail = 0 ||
19413 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
19416 # configure is writing to config.log, and then calls config.status.
19417 # config.status does its own redirection, appending to config.log.
19418 # Unfortunately, on DOS this fails, as config.log is still kept open
19419 # by configure, so config.status won't be able to write to it; its
19420 # output is simply discarded. So we exec the FD to /dev/null,
19421 # effectively closing config.log, so it can be properly (re)opened and
19422 # appended to by config.status. When coming back to configure, we
19423 # need to make the FD available again.
19424 if test "$no_create" != yes; then
19426 ac_config_status_args
=
19427 test "$silent" = yes &&
19428 ac_config_status_args
="$ac_config_status_args --quiet"
19430 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19432 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19433 # would make configure fail if this is the last instruction.
19434 $ac_cs_success || as_fn_exit
1
19438 # CONFIG_SUBDIRS section.
19440 if test "$no_recursion" != yes; then
19442 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19443 # so they do not pile up.
19444 ac_sub_configure_args
=
19446 eval "set x $ac_configure_args"
19450 if test -n "$ac_prev"; then
19455 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
19456 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
19457 ac_prev
=cache_file
;;
19458 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
19459 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
19462 --config-cache |
-C)
19464 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
19466 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
19468 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
19470 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
19472 --disable-option-checking)
19476 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19478 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
19482 # Always prepend --prefix to ensure using the same prefix
19483 # in subdir configurations.
19484 ac_arg
="--prefix=$prefix"
19486 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19488 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
19491 if test "$silent" = yes; then
19492 ac_sub_configure_args
="--silent $ac_sub_configure_args"
19495 # Always prepend --disable-option-checking to silence warnings, since
19496 # different subdirs can have different --enable and --with options.
19497 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
19500 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
19502 # Do not complain, so a configure script can configure whichever
19503 # parts of a large source tree are present.
19504 test -d "$srcdir/$ac_dir" ||
continue
19506 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19507 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19508 $as_echo "$ac_msg" >&6
19509 as_dir
="$ac_dir"; as_fn_mkdir_p
19513 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19515 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19516 # A ".." for each directory in $ac_dir_suffix.
19517 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19518 case $ac_top_builddir_sub in
19519 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19520 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
19523 ac_abs_top_builddir
=$ac_pwd
19524 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
19525 # for backward compatibility:
19526 ac_top_builddir
=$ac_top_build_prefix
19529 .
) # We are building in place.
19531 ac_top_srcdir
=$ac_top_builddir_sub
19532 ac_abs_top_srcdir
=$ac_pwd ;;
19533 [\\/]* | ?
:[\\/]* ) # Absolute name.
19534 ac_srcdir
=$srcdir$ac_dir_suffix;
19535 ac_top_srcdir
=$srcdir
19536 ac_abs_top_srcdir
=$srcdir ;;
19537 *) # Relative name.
19538 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
19539 ac_top_srcdir
=$ac_top_build_prefix$srcdir
19540 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
19542 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
19547 # Check for guested configure; otherwise get Cygnus style configure.
19548 if test -f "$ac_srcdir/configure.gnu"; then
19549 ac_sub_configure
=$ac_srcdir/configure.gnu
19550 elif test -f "$ac_srcdir/configure"; then
19551 ac_sub_configure
=$ac_srcdir/configure
19552 elif test -f "$ac_srcdir/configure.in"; then
19553 # This should be Cygnus configure.
19554 ac_sub_configure
=$ac_aux_dir/configure
19556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19557 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19561 # The recursion is here.
19562 if test -n "$ac_sub_configure"; then
19563 # Make the cache file name correct relative to the subdirectory.
19564 case $cache_file in
19565 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
19566 *) # Relative name.
19567 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
19570 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19571 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19572 # The eval makes quoting arguments work.
19573 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19574 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19575 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19581 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19583 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}