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
659 BUILD_COLLECTOR_FALSE
661 GPROFNG_NO_SWITCH_CFLAGS
662 GPROFNG_NO_FORMAT_TRUNCATION_CFLAGS
711 MAINTAINER_MODE_FALSE
725 INSTALL_STRIP_PROGRAM
779 program_transform_name
792 enable_option_checking
794 enable_maintainer_mode
795 enable_dependency_tracking
807 ac_precious_vars
='build_alias
820 ac_subdirs_all
='libcollector'
822 # Initialize some variables set by options.
824 ac_init_version
=false
825 ac_unrecognized_opts
=
827 # The variables have the same names as the options, with
828 # dashes changed to underlines.
836 program_transform_name
=s
,x
,x
,
844 # Installation directory options.
845 # These are left unexpanded so users can "make install exec_prefix=/foo"
846 # and all the variables that are supposed to be based on exec_prefix
847 # by default will actually change.
848 # Use braces instead of parens because sh, perl, etc. also accept them.
849 # (The list follows the same order as the GNU Coding Standards.)
850 bindir
='${exec_prefix}/bin'
851 sbindir
='${exec_prefix}/sbin'
852 libexecdir
='${exec_prefix}/libexec'
853 datarootdir
='${prefix}/share'
854 datadir
='${datarootdir}'
855 sysconfdir
='${prefix}/etc'
856 sharedstatedir
='${prefix}/com'
857 localstatedir
='${prefix}/var'
858 includedir
='${prefix}/include'
859 oldincludedir
='/usr/include'
860 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
861 infodir
='${datarootdir}/info'
866 libdir
='${exec_prefix}/lib'
867 localedir
='${datarootdir}/locale'
868 mandir
='${datarootdir}/man'
874 # If the previous option needs an argument, assign it.
875 if test -n "$ac_prev"; then
876 eval $ac_prev=\
$ac_option
882 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
887 # Accept the important Cygnus configure options, so we can diagnose typos.
889 case $ac_dashdash$ac_option in
893 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
895 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
898 -build |
--build |
--buil |
--bui |
--bu)
899 ac_prev
=build_alias
;;
900 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
901 build_alias
=$ac_optarg ;;
903 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
904 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
905 ac_prev
=cache_file
;;
906 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
907 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
908 cache_file
=$ac_optarg ;;
911 cache_file
=config.cache
;;
913 -datadir |
--datadir |
--datadi |
--datad)
915 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
916 datadir
=$ac_optarg ;;
918 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
919 |
--dataroo |
--dataro |
--datar)
920 ac_prev
=datarootdir
;;
921 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
922 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
923 datarootdir
=$ac_optarg ;;
925 -disable-* |
--disable-*)
926 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927 # Reject names that are not valid shell variable names.
928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
929 as_fn_error $?
"invalid feature name: $ac_useropt"
930 ac_useropt_orig
=$ac_useropt
931 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932 case $ac_user_opts in
936 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
937 ac_unrecognized_sep
=', ';;
939 eval enable_
$ac_useropt=no
;;
941 -docdir |
--docdir |
--docdi |
--doc |
--do)
943 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
946 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
948 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
951 -enable-* |
--enable-*)
952 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
955 as_fn_error $?
"invalid feature name: $ac_useropt"
956 ac_useropt_orig
=$ac_useropt
957 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
962 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
963 ac_unrecognized_sep
=', ';;
965 eval enable_
$ac_useropt=\
$ac_optarg ;;
967 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
968 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
969 |
--exec |
--exe |
--ex)
970 ac_prev
=exec_prefix
;;
971 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
972 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
973 |
--exec=* |
--exe=* |
--ex=*)
974 exec_prefix
=$ac_optarg ;;
976 -gas |
--gas |
--ga |
--g)
977 # Obsolete; use --with-gas.
980 -help |
--help |
--hel |
--he |
-h)
982 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
983 ac_init_help
=recursive
;;
984 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
985 ac_init_help
=short
;;
987 -host |
--host |
--hos |
--ho)
988 ac_prev
=host_alias
;;
989 -host=* |
--host=* |
--hos=* |
--ho=*)
990 host_alias
=$ac_optarg ;;
992 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
994 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
996 htmldir
=$ac_optarg ;;
998 -includedir |
--includedir |
--includedi |
--included |
--include \
999 |
--includ |
--inclu |
--incl |
--inc)
1000 ac_prev
=includedir
;;
1001 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1002 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1003 includedir
=$ac_optarg ;;
1005 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1007 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1008 infodir
=$ac_optarg ;;
1010 -libdir |
--libdir |
--libdi |
--libd)
1012 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1013 libdir
=$ac_optarg ;;
1015 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1016 |
--libexe |
--libex |
--libe)
1017 ac_prev
=libexecdir
;;
1018 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1019 |
--libexe=* |
--libex=* |
--libe=*)
1020 libexecdir
=$ac_optarg ;;
1022 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1023 ac_prev
=localedir
;;
1024 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1025 localedir
=$ac_optarg ;;
1027 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1028 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1029 ac_prev
=localstatedir
;;
1030 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1031 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1032 localstatedir
=$ac_optarg ;;
1034 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1036 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1037 mandir
=$ac_optarg ;;
1039 -nfp |
--nfp |
--nf)
1040 # Obsolete; use --without-fp.
1043 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1044 |
--no-cr |
--no-c |
-n)
1047 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1048 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1051 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1052 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1053 |
--oldin |
--oldi |
--old |
--ol |
--o)
1054 ac_prev
=oldincludedir
;;
1055 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1056 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1057 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1058 oldincludedir
=$ac_optarg ;;
1060 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1062 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1063 prefix
=$ac_optarg ;;
1065 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1066 |
--program-pre |
--program-pr |
--program-p)
1067 ac_prev
=program_prefix
;;
1068 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1069 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1070 program_prefix
=$ac_optarg ;;
1072 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1073 |
--program-suf |
--program-su |
--program-s)
1074 ac_prev
=program_suffix
;;
1075 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1076 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1077 program_suffix
=$ac_optarg ;;
1079 -program-transform-name |
--program-transform-name \
1080 |
--program-transform-nam |
--program-transform-na \
1081 |
--program-transform-n |
--program-transform- \
1082 |
--program-transform |
--program-transfor \
1083 |
--program-transfo |
--program-transf \
1084 |
--program-trans |
--program-tran \
1085 |
--progr-tra |
--program-tr |
--program-t)
1086 ac_prev
=program_transform_name
;;
1087 -program-transform-name=* |
--program-transform-name=* \
1088 |
--program-transform-nam=* |
--program-transform-na=* \
1089 |
--program-transform-n=* |
--program-transform-=* \
1090 |
--program-transform=* |
--program-transfor=* \
1091 |
--program-transfo=* |
--program-transf=* \
1092 |
--program-trans=* |
--program-tran=* \
1093 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1094 program_transform_name
=$ac_optarg ;;
1096 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1098 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1099 pdfdir
=$ac_optarg ;;
1101 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1103 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1106 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1107 |
-silent |
--silent |
--silen |
--sile |
--sil)
1110 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1112 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1114 sbindir
=$ac_optarg ;;
1116 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1117 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1118 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1120 ac_prev
=sharedstatedir
;;
1121 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1122 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1123 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1125 sharedstatedir
=$ac_optarg ;;
1127 -site |
--site |
--sit)
1129 -site=* |
--site=* |
--sit=*)
1132 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1134 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1135 srcdir
=$ac_optarg ;;
1137 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1138 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1139 ac_prev
=sysconfdir
;;
1140 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1141 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1142 sysconfdir
=$ac_optarg ;;
1144 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1145 ac_prev
=target_alias
;;
1146 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1147 target_alias
=$ac_optarg ;;
1149 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1152 -version |
--version |
--versio |
--versi |
--vers |
-V)
1153 ac_init_version
=: ;;
1156 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1159 as_fn_error $?
"invalid package name: $ac_useropt"
1160 ac_useropt_orig
=$ac_useropt
1161 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1166 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1167 ac_unrecognized_sep
=', ';;
1169 eval with_
$ac_useropt=\
$ac_optarg ;;
1171 -without-* |
--without-*)
1172 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1175 as_fn_error $?
"invalid package name: $ac_useropt"
1176 ac_useropt_orig
=$ac_useropt
1177 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1182 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1183 ac_unrecognized_sep
=', ';;
1185 eval with_
$ac_useropt=no
;;
1188 # Obsolete; use --with-x.
1191 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1192 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1193 ac_prev
=x_includes
;;
1194 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1195 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1196 x_includes
=$ac_optarg ;;
1198 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1199 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1200 ac_prev
=x_libraries
;;
1201 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1202 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1203 x_libraries
=$ac_optarg ;;
1205 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1206 Try \`$0 --help' for more information"
1210 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1211 # Reject names that are not valid shell variable names.
1212 case $ac_envvar in #(
1213 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1214 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1216 eval $ac_envvar=\
$ac_optarg
1217 export $ac_envvar ;;
1220 # FIXME: should be removed in autoconf 3.0.
1221 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1222 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1223 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1224 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1230 if test -n "$ac_prev"; then
1231 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1232 as_fn_error $?
"missing argument to $ac_option"
1235 if test -n "$ac_unrecognized_opts"; then
1236 case $enable_option_checking in
1238 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1239 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1243 # Check all directory arguments for consistency.
1244 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1245 datadir sysconfdir sharedstatedir localstatedir includedir \
1246 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1247 libdir localedir mandir
1249 eval ac_val
=\$
$ac_var
1250 # Remove trailing slashes.
1253 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1254 eval $ac_var=\
$ac_val;;
1256 # Be sure to have absolute directory names.
1258 [\\/$
]* | ?
:[\\/]* ) continue;;
1259 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1261 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1264 # There might be people who depend on the old broken behavior: `$host'
1265 # used to hold the argument of --host etc.
1266 # FIXME: To remove some day.
1269 target
=$target_alias
1271 # FIXME: To remove some day.
1272 if test "x$host_alias" != x
; then
1273 if test "x$build_alias" = x
; then
1274 cross_compiling
=maybe
1275 elif test "x$build_alias" != "x$host_alias"; then
1281 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1283 test "$silent" = yes && exec 6>/dev
/null
1286 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1287 ac_ls_di
=`ls -di .` &&
1288 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1289 as_fn_error $?
"working directory cannot be determined"
1290 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291 as_fn_error $?
"pwd does not report name of working directory"
1294 # Find the source files, if location was not specified.
1295 if test -z "$srcdir"; then
1296 ac_srcdir_defaulted
=yes
1297 # Try the directory containing this script, then the parent directory.
1298 ac_confdir
=`$as_dirname -- "$as_myself" ||
1299 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300 X"$as_myself" : 'X\(//\)[^/]' \| \
1301 X"$as_myself" : 'X\(//\)$' \| \
1302 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303 $as_echo X"$as_myself" |
1304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1326 ac_srcdir_defaulted
=no
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1330 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1332 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1334 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1336 # When building in place, set srcdir=.
1337 if test "$ac_abs_confdir" = "$ac_pwd"; then
1340 # Remove unnecessary trailing slashes from srcdir.
1341 # Double slashes in file names in object file debugging info
1342 # mess up M-x gdb in Emacs.
1344 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1346 for ac_var
in $ac_precious_vars; do
1347 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1348 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1349 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1350 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1354 # Report the --help message.
1356 if test "$ac_init_help" = "long"; then
1357 # Omit some internal or obsolete options to make the list less imposing.
1358 # This message is too long to be a string in the A/UX 3.1 sh.
1360 \`configure' configures gprofng 2.38.50 to adapt to many kinds of systems.
1362 Usage: $0 [OPTION]... [VAR=VALUE]...
1364 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365 VAR=VALUE. See below for descriptions of some of the useful variables.
1367 Defaults for the options are specified in brackets.
1370 -h, --help display this help and exit
1371 --help=short display options specific to this package
1372 --help=recursive display the short help of all the included packages
1373 -V, --version display version information and exit
1374 -q, --quiet, --silent do not print \`checking ...' messages
1375 --cache-file=FILE cache test results in FILE [disabled]
1376 -C, --config-cache alias for \`--cache-file=config.cache'
1377 -n, --no-create do not create output files
1378 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1380 Installation directories:
1381 --prefix=PREFIX install architecture-independent files in PREFIX
1382 [$ac_default_prefix]
1383 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1386 By default, \`make install' will install all the files in
1387 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1388 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389 for instance \`--prefix=\$HOME'.
1391 For better control, use the options below.
1393 Fine tuning of the installation directories:
1394 --bindir=DIR user executables [EPREFIX/bin]
1395 --sbindir=DIR system admin executables [EPREFIX/sbin]
1396 --libexecdir=DIR program executables [EPREFIX/libexec]
1397 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1398 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1399 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1400 --libdir=DIR object code libraries [EPREFIX/lib]
1401 --includedir=DIR C header files [PREFIX/include]
1402 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1403 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1404 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1405 --infodir=DIR info documentation [DATAROOTDIR/info]
1406 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1407 --mandir=DIR man documentation [DATAROOTDIR/man]
1408 --docdir=DIR documentation root [DATAROOTDIR/doc/gprofng]
1409 --htmldir=DIR html documentation [DOCDIR]
1410 --dvidir=DIR dvi documentation [DOCDIR]
1411 --pdfdir=DIR pdf documentation [DOCDIR]
1412 --psdir=DIR ps documentation [DOCDIR]
1418 --program-prefix=PREFIX prepend PREFIX to installed program names
1419 --program-suffix=SUFFIX append SUFFIX to installed program names
1420 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1423 --build=BUILD configure
for building on BUILD
[guessed
]
1424 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1425 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1429 if test -n "$ac_init_help"; then
1430 case $ac_init_help in
1431 short | recursive
) echo "Configuration of gprofng 2.38.50:";;
1436 --disable-option-checking ignore unrecognized
--enable/--with options
1437 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1438 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1439 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1440 --disable-silent-rules verbose build output
(undo
: "make V=0")
1441 --enable-maintainer-mode
1442 enable make rules and dependencies not useful
(and
1443 sometimes confusing
) to the casual installer
1444 --enable-dependency-tracking
1445 do not reject slow dependency extractors
1446 --disable-dependency-tracking
1447 speeds up one-time build
1448 --enable-shared[=PKGS
] build shared libraries
[default
=no
]
1449 --enable-static[=PKGS
] build static libraries
[default
=yes]
1450 --enable-fast-install[=PKGS
]
1451 optimize
for fast installation
[default
=yes]
1452 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1453 --enable-werror-always enable -Werror despite compiler version
1454 --disable-gprofng-tools do not build gprofng
/src directory
1455 --enable-gprofng-debug Enable debugging output
[default
=no
]
1458 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1459 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1460 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1462 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1463 --with-jdk=PATH specify prefix directory
for installed JDK.
1465 Some influential environment variables
:
1466 CC C compiler
command
1467 CFLAGS C compiler flags
1468 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1469 nonstandard directory
<lib dir
>
1470 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1471 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1472 you have headers
in a nonstandard directory
<include dir
>
1474 CXX C
++ compiler
command
1475 CXXFLAGS C
++ compiler flags
1476 CXXCPP C
++ preprocessor
1478 Use these variables to override the choices made by
`configure' or to help
1479 it to find libraries and programs with nonstandard names/locations.
1481 Report bugs to the package provider.
1486 if test "$ac_init_help" = "recursive"; then
1487 # If there are subdirs, report their specific --help.
1488 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1489 test -d "$ac_dir" ||
1490 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1495 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1497 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1498 # A ".." for each directory in $ac_dir_suffix.
1499 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1500 case $ac_top_builddir_sub in
1501 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1505 ac_abs_top_builddir=$ac_pwd
1506 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1507 # for backward compatibility:
1508 ac_top_builddir=$ac_top_build_prefix
1511 .) # We are building in place.
1513 ac_top_srcdir=$ac_top_builddir_sub
1514 ac_abs_top_srcdir=$ac_pwd ;;
1515 [\\/]* | ?:[\\/]* ) # Absolute name.
1516 ac_srcdir=$srcdir$ac_dir_suffix;
1517 ac_top_srcdir=$srcdir
1518 ac_abs_top_srcdir=$srcdir ;;
1520 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1521 ac_top_srcdir=$ac_top_build_prefix$srcdir
1522 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1524 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1526 cd "$ac_dir" || { ac_status=$?; continue; }
1527 # Check for guested configure.
1528 if test -f "$ac_srcdir/configure.gnu"; then
1530 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1531 elif test -f "$ac_srcdir/configure"; then
1533 $SHELL "$ac_srcdir/configure" --help=recursive
1535 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1537 cd "$ac_pwd" || { ac_status=$?; break; }
1541 test -n "$ac_init_help" && exit $ac_status
1542 if $ac_init_version; then
1544 gprofng configure 2.38.50
1545 generated by GNU Autoconf 2.69
1547 Copyright (C) 2012 Free Software Foundation, Inc.
1548 This configure script is free software; the Free Software Foundation
1549 gives unlimited permission to copy, distribute and modify it.
1554 ## ------------------------ ##
1555 ## Autoconf initialization. ##
1556 ## ------------------------ ##
1558 # ac_fn_c_try_compile LINENO
1559 # --------------------------
1560 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1561 ac_fn_c_try_compile ()
1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564 rm -f conftest.$ac_objext
1565 if { { ac_try="$ac_compile"
1567 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1568 *) ac_try_echo
=$ac_try;;
1570 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571 $as_echo "$ac_try_echo"; } >&5
1572 (eval "$ac_compile") 2>conftest.err
1574 if test -s conftest.err
; then
1575 grep -v '^ *+' conftest.err
>conftest.er1
1576 cat conftest.er1
>&5
1577 mv -f conftest.er1 conftest.err
1579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580 test $ac_status = 0; } && {
1581 test -z "$ac_c_werror_flag" ||
1582 test ! -s conftest.err
1583 } && test -s conftest.
$ac_objext; then :
1586 $as_echo "$as_me: failed program was:" >&5
1587 sed 's/^/| /' conftest.
$ac_ext >&5
1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592 as_fn_set_status
$ac_retval
1594 } # ac_fn_c_try_compile
1596 # ac_fn_c_try_cpp LINENO
1597 # ----------------------
1598 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1601 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1602 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1604 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1605 *) ac_try_echo=$ac_try;;
1607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608 $as_echo "$ac_try_echo"; } >&5
1609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1611 if test -s conftest.err; then
1612 grep -v '^ *+' conftest.err >conftest.er1
1613 cat conftest.er1 >&5
1614 mv -f conftest.er1 conftest.err
1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617 test $ac_status = 0; } > conftest.i && {
1618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1619 test ! -s conftest.err
1623 $as_echo "$as_me: failed program was:" >&5
1624 sed 's/^/| /' conftest.$ac_ext >&5
1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629 as_fn_set_status $ac_retval
1633 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1634 # -------------------------------------------------------
1635 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1636 # the include files in INCLUDES and setting the cache variable VAR
1638 ac_fn_c_check_header_mongrel ()
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 if eval \${$3+:} false; then :
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1643 $as_echo_n "checking for $2... " >&6; }
1644 if eval \${$3+:} false; then :
1645 $as_echo_n "(cached) " >&6
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1649 $as_echo "$ac_res" >&6; }
1651 # Is the header compilable?
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1653 $as_echo_n "checking $2 usability... " >&6; }
1654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655 /* end confdefs.h. */
1659 if ac_fn_c_try_compile "$LINENO"; then :
1660 ac_header_compiler=yes
1662 ac_header_compiler=no
1664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1666 $as_echo "$ac_header_compiler" >&6; }
1668 # Is the header present?
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1670 $as_echo_n "checking $2 presence... " >&6; }
1671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672 /* end confdefs.h. */
1675 if ac_fn_c_try_cpp "$LINENO"; then :
1676 ac_header_preproc=yes
1678 ac_header_preproc=no
1680 rm -f conftest.err conftest.i conftest.$ac_ext
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1682 $as_echo "$ac_header_preproc" >&6; }
1684 # So? What about this header?
1685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1688 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1690 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1694 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1696 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1698 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1700 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1702 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1706 $as_echo_n "checking for $2... " >&6; }
1707 if eval \${$3+:} false; then :
1708 $as_echo_n "(cached) " >&6
1710 eval "$3=\$ac_header_compiler"
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1714 $as_echo "$ac_res" >&6; }
1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718 } # ac_fn_c_check_header_mongrel
1720 # ac_fn_c_try_run LINENO
1721 # ----------------------
1722 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1723 # that executables *can* be run.
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 if { { ac_try="$ac_link"
1729 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1730 *) ac_try_echo
=$ac_try;;
1732 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_link") 2>&5
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1738 { { case "(($ac_try" in
1739 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_try") 2>&5
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; }; }; then :
1750 $as_echo "$as_me: program exited with status $ac_status" >&5
1751 $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1754 ac_retval=$ac_status
1756 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758 as_fn_set_status $ac_retval
1762 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1763 # -------------------------------------------------------
1764 # Tests whether HEADER exists and can be compiled using the include files in
1765 # INCLUDES, setting the cache variable VAR accordingly.
1766 ac_fn_c_check_header_compile ()
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770 $as_echo_n "checking for $2... " >&6; }
1771 if eval \${$3+:} false; then :
1772 $as_echo_n "(cached) " >&6
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1779 if ac_fn_c_try_compile "$LINENO"; then :
1784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788 $as_echo "$ac_res" >&6; }
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791 } # ac_fn_c_check_header_compile
1793 # ac_fn_cxx_try_compile LINENO
1794 # ----------------------------
1795 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1796 ac_fn_cxx_try_compile ()
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 rm -f conftest.$ac_objext
1800 if { { ac_try="$ac_compile"
1802 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1803 *) ac_try_echo
=$ac_try;;
1805 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806 $as_echo "$ac_try_echo"; } >&5
1807 (eval "$ac_compile") 2>conftest.err
1809 if test -s conftest.err
; then
1810 grep -v '^ *+' conftest.err
>conftest.er1
1811 cat conftest.er1
>&5
1812 mv -f conftest.er1 conftest.err
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && {
1816 test -z "$ac_cxx_werror_flag" ||
1817 test ! -s conftest.err
1818 } && test -s conftest.
$ac_objext; then :
1821 $as_echo "$as_me: failed program was:" >&5
1822 sed 's/^/| /' conftest.
$ac_ext >&5
1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827 as_fn_set_status
$ac_retval
1829 } # ac_fn_cxx_try_compile
1831 # ac_fn_c_try_link LINENO
1832 # -----------------------
1833 # Try to link conftest.$ac_ext, and return whether this succeeded.
1836 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1837 rm -f conftest.
$ac_objext conftest
$ac_exeext
1838 if { { ac_try
="$ac_link"
1840 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845 (eval "$ac_link") 2>conftest.err
1847 if test -s conftest.err; then
1848 grep -v '^ *+' conftest.err >conftest.er1
1849 cat conftest.er1 >&5
1850 mv -f conftest.er1 conftest.err
1852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853 test $ac_status = 0; } && {
1854 test -z "$ac_c_werror_flag" ||
1855 test ! -s conftest.err
1856 } && test -s conftest$ac_exeext && {
1857 test "$cross_compiling" = yes ||
1858 test -x conftest$ac_exeext
1862 $as_echo "$as_me: failed program was:" >&5
1863 sed 's/^/| /' conftest.$ac_ext >&5
1867 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1868 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1869 # interfere with the next link command; also delete a directory that is
1870 # left behind by Apple's compiler. We do this before executing the actions.
1871 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873 as_fn_set_status $ac_retval
1875 } # ac_fn_c_try_link
1877 # ac_fn_c_check_func LINENO FUNC VAR
1878 # ----------------------------------
1879 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1880 ac_fn_c_check_func ()
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884 $as_echo_n "checking for $2... " >&6; }
1885 if eval \${$3+:} false; then :
1886 $as_echo_n "(cached) " >&6
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h. */
1890 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1892 #define $2 innocuous_$2
1894 /* System header to define __stub macros and hopefully few prototypes,
1895 which can conflict with char $2 (); below.
1896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1897 <limits.h> exists even on freestanding compilers. */
1900 # include <limits.h>
1902 # include <assert.h>
1907 /* Override any GCC internal prototype to avoid an error.
1908 Use char because int might match the return type of a GCC
1909 builtin and then its argument prototype would still apply. */
1914 /* The GNU C library defines this for functions which it implements
1915 to always fail with ENOSYS. Some functions are actually named
1916 something starting with __ and the normal name is an alias. */
1917 #if defined __stub_$2 || defined __stub___$2
1929 if ac_fn_c_try_link "$LINENO"; then :
1934 rm -f core conftest.err conftest.$ac_objext \
1935 conftest$ac_exeext conftest.$ac_ext
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939 $as_echo "$ac_res" >&6; }
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942 } # ac_fn_c_check_func
1944 # ac_fn_cxx_try_cpp LINENO
1945 # ------------------------
1946 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1947 ac_fn_cxx_try_cpp ()
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 if { { ac_try="$ac_cpp conftest.$ac_ext"
1952 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1953 *) ac_try_echo
=$ac_try;;
1955 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956 $as_echo "$ac_try_echo"; } >&5
1957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1959 if test -s conftest.err
; then
1960 grep -v '^ *+' conftest.err
>conftest.er1
1961 cat conftest.er1
>&5
1962 mv -f conftest.er1 conftest.err
1964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1965 test $ac_status = 0; } > conftest.i
&& {
1966 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1967 test ! -s conftest.err
1971 $as_echo "$as_me: failed program was:" >&5
1972 sed 's/^/| /' conftest.
$ac_ext >&5
1976 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977 as_fn_set_status
$ac_retval
1979 } # ac_fn_cxx_try_cpp
1981 # ac_fn_cxx_try_link LINENO
1982 # -------------------------
1983 # Try to link conftest.$ac_ext, and return whether this succeeded.
1984 ac_fn_cxx_try_link
()
1986 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1987 rm -f conftest.
$ac_objext conftest
$ac_exeext
1988 if { { ac_try
="$ac_link"
1990 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1991 *) ac_try_echo=$ac_try;;
1993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1994 $as_echo "$ac_try_echo"; } >&5
1995 (eval "$ac_link") 2>conftest.err
1997 if test -s conftest.err; then
1998 grep -v '^ *+' conftest.err >conftest.er1
1999 cat conftest.er1 >&5
2000 mv -f conftest.er1 conftest.err
2002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2003 test $ac_status = 0; } && {
2004 test -z "$ac_cxx_werror_flag" ||
2005 test ! -s conftest.err
2006 } && test -s conftest$ac_exeext && {
2007 test "$cross_compiling" = yes ||
2008 test -x conftest$ac_exeext
2012 $as_echo "$as_me: failed program was:" >&5
2013 sed 's/^/| /' conftest.$ac_ext >&5
2017 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2018 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2019 # interfere with the next link command; also delete a directory that is
2020 # left behind by Apple's compiler. We do this before executing the actions.
2021 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2022 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2023 as_fn_set_status $ac_retval
2025 } # ac_fn_cxx_try_link
2027 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2028 # ---------------------------------------------
2029 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2031 ac_fn_c_check_decl ()
2033 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2034 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2035 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2037 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2038 if eval \${$3+:} false; then :
2039 $as_echo_n "(cached) " >&6
2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h. */
2047 #ifndef $as_decl_name
2049 (void) $as_decl_use;
2051 (void) $as_decl_name;
2059 if ac_fn_c_try_compile "$LINENO"; then :
2064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2068 $as_echo "$ac_res" >&6; }
2069 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071 } # ac_fn_c_check_decl
2072 cat >config.log <<_ACEOF
2073 This file contains any messages produced by compilers while
2074 running configure, to aid debugging if configure makes a mistake.
2076 It was created by gprofng $as_me 2.38.50, which was
2077 generated by GNU Autoconf 2.69. Invocation command line was
2089 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2090 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2091 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2092 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2093 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2095 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2096 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2098 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2099 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2100 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2101 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2102 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2103 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2104 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2112 test -z "$as_dir" && as_dir=.
2113 $as_echo "PATH: $as_dir"
2129 # Keep a trace of the command line.
2130 # Strip out --no-create and --no-recursion so they do not pile up.
2131 # Strip out --silent because we don't want to record it for future runs.
2132 # Also quote any args containing shell meta-characters.
2133 # Make two passes to allow for proper duplicate-argument suppression.
2137 ac_must_keep_next=false
2143 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2145 | -silent | --silent | --silen | --sile | --sil)
2148 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2151 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2153 as_fn_append ac_configure_args1 " '$ac_arg'"
2154 if test $ac_must_keep_next = true; then
2155 ac_must_keep_next=false # Got value, back to normal.
2158 *=* | --config-cache | -C | -disable-* | --disable-* \
2159 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2160 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2161 | -with-* | --with-* | -without-* | --without-* | --x)
2162 case "$ac_configure_args0 " in
2163 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2166 -* ) ac_must_keep_next=true ;;
2169 as_fn_append ac_configure_args " '$ac_arg'"
2174 { ac_configure_args0=; unset ac_configure_args0;}
2175 { ac_configure_args1=; unset ac_configure_args1;}
2177 # When interrupted or exit'd, cleanup temporary files, and complete
2178 # config.log. We remove comments because anyway the quotes in there
2179 # would cause problems or look ugly.
2180 # WARNING: Use '\'' to represent an apostrophe within the trap.
2181 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2182 trap 'exit_status=$?
2183 # Save into config.log some information that might help in debugging.
2187 $as_echo "## ---------------- ##
2188 ## Cache variables. ##
2189 ## ---------------- ##"
2191 # The following way of writing the cache mishandles newlines in values,
2193 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2194 eval ac_val=\$$ac_var
2198 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2199 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2202 _ | IFS | as_nl) ;; #(
2203 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2204 *) { eval $ac_var=; unset $ac_var;} ;;
2209 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2210 *${as_nl}ac_space=\ *)
2212 "s/'\''/'\''\\\\'\'''\''/g;
2213 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2216 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2223 $as_echo "## ----------------- ##
2224 ## Output variables. ##
2225 ## ----------------- ##"
2227 for ac_var in $ac_subst_vars
2229 eval ac_val=\$$ac_var
2231 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2233 $as_echo "$ac_var='\''$ac_val'\''"
2237 if test -n "$ac_subst_files"; then
2238 $as_echo "## ------------------- ##
2239 ## File substitutions. ##
2240 ## ------------------- ##"
2242 for ac_var in $ac_subst_files
2244 eval ac_val=\$$ac_var
2246 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2248 $as_echo "$ac_var='\''$ac_val'\''"
2253 if test -s confdefs.h; then
2254 $as_echo "## ----------- ##
2261 test "$ac_signal" != 0 &&
2262 $as_echo "$as_me: caught signal $ac_signal"
2263 $as_echo "$as_me: exit $exit_status"
2265 rm -f core *.core core.conftest.* &&
2266 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2269 for ac_signal in 1 2 13 15; do
2270 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2274 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2275 rm -f -r conftest* confdefs.h
2277 $as_echo "/* confdefs.h */" > confdefs.h
2279 # Predefined preprocessor variables.
2281 cat >>confdefs.h <<_ACEOF
2282 #define PACKAGE_NAME "$PACKAGE_NAME"
2285 cat >>confdefs.h <<_ACEOF
2286 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2289 cat >>confdefs.h <<_ACEOF
2290 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2293 cat >>confdefs.h <<_ACEOF
2294 #define PACKAGE_STRING "$PACKAGE_STRING"
2297 cat >>confdefs.h <<_ACEOF
2298 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2301 cat >>confdefs.h <<_ACEOF
2302 #define PACKAGE_URL "$PACKAGE_URL"
2306 # Let the site file select an alternate cache file if it wants to.
2307 # Prefer an explicitly selected file to automatically selected ones.
2310 if test -n "$CONFIG_SITE"; then
2311 # We do not want a PATH search for config.site.
2312 case $CONFIG_SITE in #((
2313 -*) ac_site_file1=./$CONFIG_SITE;;
2314 */*) ac_site_file1=$CONFIG_SITE;;
2315 *) ac_site_file1=./$CONFIG_SITE;;
2317 elif test "x$prefix" != xNONE; then
2318 ac_site_file1=$prefix/share/config.site
2319 ac_site_file2=$prefix/etc/config.site
2321 ac_site_file1=$ac_default_prefix/share/config.site
2322 ac_site_file2=$ac_default_prefix/etc/config.site
2324 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2326 test "x$ac_site_file" = xNONE && continue
2327 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2329 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2330 sed 's/^/| /' "$ac_site_file" >&5
2332 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2334 as_fn_error $? "failed to load site
script $ac_site_file
2335 See \
`config.log' for more details" "$LINENO" 5; }
2339 if test -r "$cache_file"; then
2340 # Some versions of bash will fail to source /dev/null (special files
2341 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2342 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2344 $as_echo "$as_me: loading cache $cache_file" >&6;}
2346 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2347 *) . "./$cache_file";;
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2352 $as_echo "$as_me: creating cache $cache_file" >&6;}
2356 # Check that the precious variables saved in the cache have kept the same
2358 ac_cache_corrupted=false
2359 for ac_var in $ac_precious_vars; do
2360 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2361 eval ac_new_set=\$ac_env_${ac_var}_set
2362 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2363 eval ac_new_val=\$ac_env_${ac_var}_value
2364 case $ac_old_set,$ac_new_set in
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2367 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2368 ac_cache_corrupted=: ;;
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2371 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2372 ac_cache_corrupted=: ;;
2375 if test "x$ac_old_val" != "x$ac_new_val"; then
2376 # differences in whitespace do not lead to failure.
2377 ac_old_val_w=`echo x
$ac_old_val`
2378 ac_new_val_w=`echo x
$ac_new_val`
2379 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2381 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2382 ac_cache_corrupted=:
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2385 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2386 eval $ac_var=\$ac_old_val
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2389 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2391 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2394 # Pass precious variables to config.status.
2395 if test "$ac_new_set" = set; then
2397 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2398 *) ac_arg=$ac_var=$ac_new_val ;;
2400 case " $ac_configure_args " in
2401 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2402 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2406 if $ac_cache_corrupted; then
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2408 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2410 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2411 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2413 ## -------------------- ##
2414 ## Main body of script. ##
2415 ## -------------------- ##
2418 ac_cpp='$CPP $CPPFLAGS'
2419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2425 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2426 if test -f "$ac_dir/install-sh"; then
2428 ac_install_sh="$ac_aux_dir/install-sh -c"
2430 elif test -f "$ac_dir/install.sh"; then
2432 ac_install_sh="$ac_aux_dir/install.sh -c"
2434 elif test -f "$ac_dir/shtool"; then
2436 ac_install_sh="$ac_aux_dir/shtool install -c"
2440 if test -z "$ac_aux_dir"; then
2441 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2444 # These three variables are undocumented and unsupported,
2445 # and are intended to be withdrawn in a future Autoconf release.
2446 # They can cause serious problems if a builder's source tree is in a directory
2447 # whose full name contains unusual characters.
2448 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2449 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2450 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2453 # Make sure we can run config.sub.
2454 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2455 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2458 $as_echo_n "checking build system type... " >&6; }
2459 if ${ac_cv_build+:} false; then :
2460 $as_echo_n "(cached) " >&6
2462 ac_build_alias=$build_alias
2463 test "x$ac_build_alias" = x &&
2464 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2465 test "x$ac_build_alias" = x &&
2466 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2467 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2468 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2472 $as_echo "$ac_cv_build" >&6; }
2473 case $ac_cv_build in
2475 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2478 ac_save_IFS=$IFS; IFS='-'
2484 # Remember, the first character of IFS is used to create $*,
2485 # except with old shells:
2488 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2492 $as_echo_n "checking host system type... " >&6; }
2493 if ${ac_cv_host+:} false; then :
2494 $as_echo_n "(cached) " >&6
2496 if test "x$host_alias" = x; then
2497 ac_cv_host=$ac_cv_build
2499 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2500 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2505 $as_echo "$ac_cv_host" >&6; }
2508 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2511 ac_save_IFS=$IFS; IFS='-'
2517 # Remember, the first character of IFS is used to create $*,
2518 # except with old shells:
2521 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2525 $as_echo_n "checking target system type... " >&6; }
2526 if ${ac_cv_target+:} false; then :
2527 $as_echo_n "(cached) " >&6
2529 if test "x$target_alias" = x; then
2530 ac_cv_target=$ac_cv_host
2532 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2533 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2538 $as_echo "$ac_cv_target" >&6; }
2539 case $ac_cv_target in
2541 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2543 target=$ac_cv_target
2544 ac_save_IFS=$IFS; IFS='-'
2550 # Remember, the first character of IFS is used to create $*,
2551 # except with old shells:
2554 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2557 # The aliases save the names the user supplied, while $host etc.
2558 # will get canonicalized.
2559 test -n "$target_alias" &&
2560 test "$program_prefix$program_suffix$program_transform_name" = \
2562 program_prefix=${target_alias}-
2563 am__api_version='1.15'
2565 # Find a good install program. We prefer a C program (faster),
2566 # so one script is as good as another. But avoid the broken or
2567 # incompatible versions:
2568 # SysV /etc/install, /usr/sbin/install
2569 # SunOS /usr/etc/install
2570 # IRIX /sbin/install
2572 # AmigaOS /C/install, which installs bootblocks on floppy discs
2573 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2574 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2575 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2576 # OS/2's system install, which has a completely different semantic
2577 # ./install, which can be erroneously created by make from ./install.sh.
2578 # Reject install programs that cannot install multiple files.
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2580 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2581 if test -z "$INSTALL"; then
2582 if ${ac_cv_path_install+:} false; then :
2583 $as_echo_n "(cached) " >&6
2585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 test -z "$as_dir" && as_dir=.
2590 # Account for people who put trailing slashes in PATH elements.
2591 case $as_dir/ in #((
2592 ./ | .// | /[cC]/* | \
2593 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2594 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2597 # OSF1 and SCO ODT 3.0 have their own names for install.
2598 # Don't use installbsd from OSF since it installs stuff as root
2600 for ac_prog in ginstall scoinst install; do
2601 for ac_exec_ext in '' $ac_executable_extensions; do
2602 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2603 if test $ac_prog = install &&
2604 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2605 # AIX install. It has an incompatible calling convention.
2607 elif test $ac_prog = install &&
2608 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2609 # program-specific install script used by HP pwplus--don't use.
2612 rm -rf conftest.one conftest.two conftest.dir
2613 echo one > conftest.one
2614 echo two > conftest.two
2616 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2617 test -s conftest.one && test -s conftest.two &&
2618 test -s conftest.dir/conftest.one &&
2619 test -s conftest.dir/conftest.two
2621 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2634 rm -rf conftest.one conftest.two conftest.dir
2637 if test "${ac_cv_path_install+set}" = set; then
2638 INSTALL=$ac_cv_path_install
2640 # As a last resort, use the slow shell script. Don't cache a
2641 # value for INSTALL within a source directory, because that will
2642 # break other packages using the cache if that directory is
2643 # removed, or if the value is a relative name.
2644 INSTALL=$ac_install_sh
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2648 $as_echo "$INSTALL" >&6; }
2650 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2651 # It thinks the first close brace ends the variable substitution.
2652 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2654 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2656 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2659 $as_echo_n "checking whether build environment is sane... " >&6; }
2660 # Reject unsafe characters in $srcdir or the absolute working directory
2661 # name. Accept space and tab only in the latter.
2665 *[\\\"\#\$\&\'\`$am_lf]*)
2666 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2669 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2670 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2673 # Do 'set' in a subshell so we don't clobber the current shell's
2674 # arguments. Must try -L first in case configure is actually a
2675 # symlink; some systems play weird games with the mod time of symlinks
2676 # (eg FreeBSD returns the mod time of the symlink's containing
2680 for am_try
in 1 2; do
2681 echo "timestamp, slept: $am_has_slept" > conftest.
file
2682 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2683 if test "$*" = "X"; then
2685 set X
`ls -t "$srcdir/configure" conftest.file`
2687 if test "$*" != "X $srcdir/configure conftest.file" \
2688 && test "$*" != "X conftest.file $srcdir/configure"; then
2690 # If neither matched, then we have a broken ls. This can happen
2691 # if, for instance, CONFIG_SHELL is bash and it inherits a
2692 # broken ls alias from the environment. This has actually
2693 # happened. Such a system could not be considered "sane".
2694 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2695 alias in your environment" "$LINENO" 5
2697 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2704 test "$2" = conftest.
file
2710 as_fn_error $?
"newly created file is older than distributed files!
2711 Check your system clock" "$LINENO" 5
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2714 $as_echo "yes" >&6; }
2715 # If we didn't sleep, we still need to ensure time stamps of config.status and
2716 # generated files are strictly newer.
2718 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2725 test "$program_prefix" != NONE
&&
2726 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2727 # Use a double $ so make ignores it.
2728 test "$program_suffix" != NONE
&&
2729 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2730 # Double any \ or $.
2731 # By default was `s,x,x', remove it if useless.
2732 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2733 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2735 # Expand $ac_aux_dir to an absolute path.
2736 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2738 if test x
"${MISSING+set}" != xset
; then
2741 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2743 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2746 # Use eval to expand $SHELL
2747 if eval "$MISSING --is-lightweight"; then
2748 am_missing_run
="$MISSING "
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2752 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2755 if test x
"${install_sh+set}" != xset
; then
2758 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2760 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2764 # Installed binaries are usually stripped using 'strip' when the user
2765 # run "make install-strip". However 'strip' might not be the right
2766 # tool to use in cross-compilation environments, therefore Automake
2767 # will honor the 'STRIP' environment variable to overrule this program.
2768 if test "$cross_compiling" != no
; then
2769 if test -n "$ac_tool_prefix"; then
2770 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2771 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2773 $as_echo_n "checking for $ac_word... " >&6; }
2774 if ${ac_cv_prog_STRIP+:} false
; then :
2775 $as_echo_n "(cached) " >&6
2777 if test -n "$STRIP"; then
2778 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2780 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2784 test -z "$as_dir" && as_dir
=.
2785 for ac_exec_ext
in '' $ac_executable_extensions; do
2786 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2787 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 STRIP
=$ac_cv_prog_STRIP
2798 if test -n "$STRIP"; then
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2800 $as_echo "$STRIP" >&6; }
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2803 $as_echo "no" >&6; }
2808 if test -z "$ac_cv_prog_STRIP"; then
2810 # Extract the first word of "strip", so it can be a program name with args.
2811 set dummy strip
; ac_word
=$2
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2813 $as_echo_n "checking for $ac_word... " >&6; }
2814 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
2815 $as_echo_n "(cached) " >&6
2817 if test -n "$ac_ct_STRIP"; then
2818 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2820 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2824 test -z "$as_dir" && as_dir
=.
2825 for ac_exec_ext
in '' $ac_executable_extensions; do
2826 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2827 ac_cv_prog_ac_ct_STRIP
="strip"
2828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2838 if test -n "$ac_ct_STRIP"; then
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2840 $as_echo "$ac_ct_STRIP" >&6; }
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2843 $as_echo "no" >&6; }
2846 if test "x$ac_ct_STRIP" = x
; then
2849 case $cross_compiling:$ac_tool_warned in
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2852 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2853 ac_tool_warned
=yes ;;
2858 STRIP
="$ac_cv_prog_STRIP"
2862 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2865 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2866 if test -z "$MKDIR_P"; then
2867 if ${ac_cv_path_mkdir+:} false
; then :
2868 $as_echo_n "(cached) " >&6
2870 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2871 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2874 test -z "$as_dir" && as_dir
=.
2875 for ac_prog
in mkdir gmkdir
; do
2876 for ac_exec_ext
in '' $ac_executable_extensions; do
2877 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
2878 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2879 'mkdir (GNU coreutils) '* | \
2880 'mkdir (coreutils) '* | \
2881 'mkdir (fileutils) '4.1*)
2882 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2892 test -d .
/--version && rmdir .
/--version
2893 if test "${ac_cv_path_mkdir+set}" = set; then
2894 MKDIR_P
="$ac_cv_path_mkdir -p"
2896 # As a last resort, use the slow shell script. Don't cache a
2897 # value for MKDIR_P within a source directory, because that will
2898 # break other packages using the cache if that directory is
2899 # removed, or if the value is a relative name.
2900 MKDIR_P
="$ac_install_sh -d"
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2904 $as_echo "$MKDIR_P" >&6; }
2906 for ac_prog
in gawk mawk nawk
awk
2908 # Extract the first word of "$ac_prog", so it can be a program name with args.
2909 set dummy
$ac_prog; ac_word
=$2
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911 $as_echo_n "checking for $ac_word... " >&6; }
2912 if ${ac_cv_prog_AWK+:} false
; then :
2913 $as_echo_n "(cached) " >&6
2915 if test -n "$AWK"; then
2916 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2918 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2922 test -z "$as_dir" && as_dir
=.
2923 for ac_exec_ext
in '' $ac_executable_extensions; do
2924 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2925 ac_cv_prog_AWK
="$ac_prog"
2926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2936 if test -n "$AWK"; then
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2938 $as_echo "$AWK" >&6; }
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 $as_echo "no" >&6; }
2945 test -n "$AWK" && break
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2949 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2951 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2952 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
2953 $as_echo_n "(cached) " >&6
2955 cat >conftest.
make <<\_ACEOF
2958 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2960 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2961 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2963 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2965 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2969 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2971 $as_echo "yes" >&6; }
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975 $as_echo "no" >&6; }
2976 SET_MAKE
="MAKE=${MAKE-make}"
2979 rm -rf .tst
2>/dev
/null
2980 mkdir .tst
2>/dev
/null
2981 if test -d .tst
; then
2986 rmdir .tst
2>/dev
/null
2988 # Check whether --enable-silent-rules was given.
2989 if test "${enable_silent_rules+set}" = set; then :
2990 enableval
=$enable_silent_rules;
2993 case $enable_silent_rules in # (((
2994 yes) AM_DEFAULT_VERBOSITY
=0;;
2995 no
) AM_DEFAULT_VERBOSITY
=1;;
2996 *) AM_DEFAULT_VERBOSITY
=1;;
2998 am_make
=${MAKE-make}
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3000 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3001 if ${am_cv_make_support_nested_variables+:} false
; then :
3002 $as_echo_n "(cached) " >&6
3004 if $as_echo 'TRUE=$(BAR$(V))
3010 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3011 am_cv_make_support_nested_variables
=yes
3013 am_cv_make_support_nested_variables
=no
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3017 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3018 if test $am_cv_make_support_nested_variables = yes; then
3020 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3022 AM_V
=$AM_DEFAULT_VERBOSITY
3023 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3027 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3028 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3029 # is not polluted with repeated "-I."
3030 am__isrc
=' -I$(srcdir)'
3031 # test to see if srcdir already configured
3032 if test -f $srcdir/config.status
; then
3033 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3037 # test whether we have cygpath
3038 if test -z "$CYGPATH_W"; then
3039 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3040 CYGPATH_W
='cygpath -w'
3047 # Define the identity of the package.
3052 cat >>confdefs.h
<<_ACEOF
3053 #define PACKAGE "$PACKAGE"
3057 cat >>confdefs.h
<<_ACEOF
3058 #define VERSION "$VERSION"
3061 # Some tools Automake needs.
3063 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3066 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3069 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3072 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3075 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3077 # For better backward compatibility. To be removed once Automake 1.9.x
3078 # dies out for good. For more background, see:
3079 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3080 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3081 mkdir_p
='$(MKDIR_P)'
3083 # We need awk for the "check" target (and possibly the TAP driver). The
3084 # system "awk" is bad on some platforms.
3085 # Always define AMTAR for backward compatibility. Yes, it's still used
3086 # in the wild :-( We should find a proper way to deprecate it ...
3090 # We'll loop over all known methods to create a tar archive until one works.
3091 _am_tools
='gnutar pax cpio none'
3093 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3100 # POSIX will say in a future version that running "rm -f" with no argument
3101 # is OK; and we want to be able to make that assumption in our Makefile
3102 # recipes. So use an aggressive probe to check that the usage we want is
3103 # actually supported "in the wild" to an acceptable degree.
3104 # See automake bug#10828.
3105 # To make any issue more visible, cause the running configure to be aborted
3106 # by default if the 'rm' program in use doesn't match our expectations; the
3107 # user can still override this though.
3108 if rm -f && rm -fr && rm -rf; then : OK
; else
3112 Your 'rm' program seems unable to run without file operands specified
3113 on the command line, even when the '-f' option is present. This is contrary
3114 to the behaviour of most rm programs out there, and not conforming with
3115 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3117 Please tell bug-automake@gnu.org about your system, including the value
3118 of your $PATH and any error possibly output before this message. This
3119 can help us improve future automake versions.
3122 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3123 echo 'Configuration will proceed anyway, since you have set the' >&2
3124 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3128 Aborting the configuration process, to ensure you take notice of the issue.
3130 You can download and install GNU coreutils to get an 'rm' implementation
3131 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3133 If you want to complete the configuration process using your problematic
3134 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3135 to "yes", and re-run configure.
3138 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3144 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3145 # Check whether --enable-maintainer-mode was given.
3146 if test "${enable_maintainer_mode+set}" = set; then :
3147 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3149 USE_MAINTAINER_MODE
=no
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3153 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3154 if test $USE_MAINTAINER_MODE = yes; then
3155 MAINTAINER_MODE_TRUE
=
3156 MAINTAINER_MODE_FALSE
='#'
3158 MAINTAINER_MODE_TRUE
='#'
3159 MAINTAINER_MODE_FALSE
=
3162 MAINT
=$MAINTAINER_MODE_TRUE
3166 DEPDIR
="${am__leading_dot}deps"
3168 ac_config_commands
="$ac_config_commands depfiles"
3171 am_make
=${MAKE-make}
3172 cat > confinc
<< 'END'
3174 @
echo this is the am__doit target
3177 # If we don't find an include directive, just comment out the code.
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3179 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3183 # First try GNU make style include.
3184 echo "include confinc" > confmf
3185 # Ignore all kinds of additional output from 'make'.
3186 case `$am_make -s -f confmf 2> /dev/null` in #(
3187 *the\ am__doit\ target
*)
3193 # Now try BSD make style include.
3194 if test "$am__include" = "#"; then
3195 echo '.include "confinc"' > confmf
3196 case `$am_make -s -f confmf 2> /dev/null` in #(
3197 *the\ am__doit\ target
*)
3198 am__include
=.include
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3207 $as_echo "$_am_result" >&6; }
3208 rm -f confinc confmf
3210 # Check whether --enable-dependency-tracking was given.
3211 if test "${enable_dependency_tracking+set}" = set; then :
3212 enableval
=$enable_dependency_tracking;
3215 if test "x$enable_dependency_tracking" != xno
; then
3216 am_depcomp
="$ac_aux_dir/depcomp"
3220 if test "x$enable_dependency_tracking" != xno; then
3230 ac_cpp
='$CPP $CPPFLAGS'
3231 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3234 if test -n "$ac_tool_prefix"; then
3235 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3236 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3238 $as_echo_n "checking for $ac_word... " >&6; }
3239 if ${ac_cv_prog_CC+:} false
; then :
3240 $as_echo_n "(cached) " >&6
3242 if test -n "$CC"; then
3243 ac_cv_prog_CC
="$CC" # Let the user override the test.
3245 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3249 test -z "$as_dir" && as_dir
=.
3250 for ac_exec_ext
in '' $ac_executable_extensions; do
3251 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3252 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3263 if test -n "$CC"; then
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3265 $as_echo "$CC" >&6; }
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3268 $as_echo "no" >&6; }
3273 if test -z "$ac_cv_prog_CC"; then
3275 # Extract the first word of "gcc", so it can be a program name with args.
3276 set dummy gcc
; ac_word
=$2
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3278 $as_echo_n "checking for $ac_word... " >&6; }
3279 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3280 $as_echo_n "(cached) " >&6
3282 if test -n "$ac_ct_CC"; then
3283 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3285 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3289 test -z "$as_dir" && as_dir
=.
3290 for ac_exec_ext
in '' $ac_executable_extensions; do
3291 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3292 ac_cv_prog_ac_ct_CC
="gcc"
3293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3302 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3303 if test -n "$ac_ct_CC"; then
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3305 $as_echo "$ac_ct_CC" >&6; }
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3308 $as_echo "no" >&6; }
3311 if test "x$ac_ct_CC" = x
; then
3314 case $cross_compiling:$ac_tool_warned in
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3318 ac_tool_warned
=yes ;;
3326 if test -z "$CC"; then
3327 if test -n "$ac_tool_prefix"; then
3328 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3329 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3331 $as_echo_n "checking for $ac_word... " >&6; }
3332 if ${ac_cv_prog_CC+:} false
; then :
3333 $as_echo_n "(cached) " >&6
3335 if test -n "$CC"; then
3336 ac_cv_prog_CC
="$CC" # Let the user override the test.
3338 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3342 test -z "$as_dir" && as_dir
=.
3343 for ac_exec_ext
in '' $ac_executable_extensions; do
3344 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3345 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3356 if test -n "$CC"; then
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3358 $as_echo "$CC" >&6; }
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3361 $as_echo "no" >&6; }
3367 if test -z "$CC"; then
3368 # Extract the first word of "cc", so it can be a program name with args.
3369 set dummy cc
; ac_word
=$2
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3371 $as_echo_n "checking for $ac_word... " >&6; }
3372 if ${ac_cv_prog_CC+:} false
; then :
3373 $as_echo_n "(cached) " >&6
3375 if test -n "$CC"; then
3376 ac_cv_prog_CC
="$CC" # Let the user override the test.
3379 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3383 test -z "$as_dir" && as_dir
=.
3384 for ac_exec_ext
in '' $ac_executable_extensions; do
3385 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3386 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3387 ac_prog_rejected
=yes
3391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3398 if test $ac_prog_rejected = yes; then
3399 # We found a bogon in the path, so make sure we never use it.
3400 set dummy
$ac_cv_prog_CC
3402 if test $# != 0; then
3403 # We chose a different compiler from the bogus one.
3404 # However, it has the same basename, so the bogon will be chosen
3405 # first if we set CC to just the basename; use the full file name.
3407 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3413 if test -n "$CC"; then
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3415 $as_echo "$CC" >&6; }
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418 $as_echo "no" >&6; }
3423 if test -z "$CC"; then
3424 if test -n "$ac_tool_prefix"; then
3425 for ac_prog
in cl.exe
3427 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3428 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3430 $as_echo_n "checking for $ac_word... " >&6; }
3431 if ${ac_cv_prog_CC+:} false
; then :
3432 $as_echo_n "(cached) " >&6
3434 if test -n "$CC"; then
3435 ac_cv_prog_CC
="$CC" # Let the user override the test.
3437 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3441 test -z "$as_dir" && as_dir
=.
3442 for ac_exec_ext
in '' $ac_executable_extensions; do
3443 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3444 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3455 if test -n "$CC"; then
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3457 $as_echo "$CC" >&6; }
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3460 $as_echo "no" >&6; }
3464 test -n "$CC" && break
3467 if test -z "$CC"; then
3469 for ac_prog
in cl.exe
3471 # Extract the first word of "$ac_prog", so it can be a program name with args.
3472 set dummy
$ac_prog; ac_word
=$2
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3474 $as_echo_n "checking for $ac_word... " >&6; }
3475 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3476 $as_echo_n "(cached) " >&6
3478 if test -n "$ac_ct_CC"; then
3479 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3481 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3485 test -z "$as_dir" && as_dir
=.
3486 for ac_exec_ext
in '' $ac_executable_extensions; do
3487 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3488 ac_cv_prog_ac_ct_CC
="$ac_prog"
3489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3498 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3499 if test -n "$ac_ct_CC"; then
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3501 $as_echo "$ac_ct_CC" >&6; }
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3504 $as_echo "no" >&6; }
3508 test -n "$ac_ct_CC" && break
3511 if test "x$ac_ct_CC" = x
; then
3514 case $cross_compiling:$ac_tool_warned in
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3518 ac_tool_warned
=yes ;;
3527 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3529 as_fn_error $?
"no acceptable C compiler found in \$PATH
3530 See \`config.log' for more details" "$LINENO" 5; }
3532 # Provide some information about the compiler.
3533 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3536 for ac_option
in --version -v -V -qversion; do
3537 { { ac_try
="$ac_compiler $ac_option >&5"
3539 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3540 *) ac_try_echo=$ac_try;;
3542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3543 $as_echo "$ac_try_echo"; } >&5
3544 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3546 if test -s conftest.err; then
3548 ... rest of stderr output deleted ...
3549 10q' conftest.err >conftest.er1
3550 cat conftest.er1 >&5
3552 rm -f conftest.er1 conftest.err
3553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3554 test $ac_status = 0; }
3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558 /* end confdefs.h. */
3568 ac_clean_files_save=$ac_clean_files
3569 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3570 # Try to create an executable without -o first, disregard a.out.
3571 # It will help us diagnose broken compilers, and finding out an intuition
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3574 $as_echo_n "checking whether the C compiler works... " >&6; }
3575 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3577 # The possible output files:
3578 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3581 for ac_file in $ac_files
3584 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3585 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3590 if { { ac_try="$ac_link_default"
3592 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3593 *) ac_try_echo
=$ac_try;;
3595 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3596 $as_echo "$ac_try_echo"; } >&5
3597 (eval "$ac_link_default") 2>&5
3599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3600 test $ac_status = 0; }; then :
3601 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3602 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3603 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3604 # so that the user can short-circuit this test for compilers unknown to
3606 for ac_file
in $ac_files ''
3608 test -f "$ac_file" ||
continue
3610 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3613 # We found the default executable, but exeext='' is most
3617 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3619 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3621 # We set ac_cv_exeext here because the later test for it is not
3622 # safe: cross compilers may not add the suffix if given an `-o'
3623 # argument, so we may need to know it at that point already.
3624 # Even if this section looks crufty: it has the advantage of
3631 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3636 if test -z "$ac_file"; then :
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3638 $as_echo "no" >&6; }
3639 $as_echo "$as_me: failed program was:" >&5
3640 sed 's/^/| /' conftest.
$ac_ext >&5
3642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3644 as_fn_error
77 "C compiler cannot create executables
3645 See \`config.log' for more details" "$LINENO" 5; }
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3648 $as_echo "yes" >&6; }
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3651 $as_echo_n "checking for C compiler default output file name... " >&6; }
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3653 $as_echo "$ac_file" >&6; }
3654 ac_exeext
=$ac_cv_exeext
3656 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3657 ac_clean_files
=$ac_clean_files_save
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3659 $as_echo_n "checking for suffix of executables... " >&6; }
3660 if { { ac_try
="$ac_link"
3662 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3663 *) ac_try_echo=$ac_try;;
3665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3666 $as_echo "$ac_try_echo"; } >&5
3667 (eval "$ac_link") 2>&5
3669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3670 test $ac_status = 0; }; then :
3671 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3672 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3673 # work properly (i.e., refer to `conftest.exe'), while it won't with
3675 for ac_file
in conftest.exe conftest conftest.
*; do
3676 test -f "$ac_file" ||
continue
3678 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3679 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3687 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3688 See \`config.log' for more details" "$LINENO" 5; }
3690 rm -f conftest conftest
$ac_cv_exeext
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3692 $as_echo "$ac_cv_exeext" >&6; }
3694 rm -f conftest.
$ac_ext
3695 EXEEXT
=$ac_cv_exeext
3697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3698 /* end confdefs.h. */
3703 FILE *f = fopen ("conftest.out", "w");
3704 return ferror (f) || fclose (f) != 0;
3710 ac_clean_files
="$ac_clean_files conftest.out"
3711 # Check that the compiler produces executables we can run. If not, either
3712 # the compiler is broken, or we cross compile.
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3714 $as_echo_n "checking whether we are cross compiling... " >&6; }
3715 if test "$cross_compiling" != yes; then
3716 { { ac_try
="$ac_link"
3718 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3719 *) ac_try_echo=$ac_try;;
3721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3722 $as_echo "$ac_try_echo"; } >&5
3723 (eval "$ac_link") 2>&5
3725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3726 test $ac_status = 0; }
3727 if { ac_try='./conftest$ac_cv_exeext'
3728 { { case "(($ac_try" in
3729 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3730 *) ac_try_echo
=$ac_try;;
3732 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3733 $as_echo "$ac_try_echo"; } >&5
3734 (eval "$ac_try") 2>&5
3736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3737 test $ac_status = 0; }; }; then
3740 if test "$cross_compiling" = maybe
; then
3743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3745 as_fn_error $?
"cannot run C compiled programs.
3746 If you meant to cross compile, use \`--host'.
3747 See \`config.log' for more details" "$LINENO" 5; }
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3752 $as_echo "$cross_compiling" >&6; }
3754 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3755 ac_clean_files
=$ac_clean_files_save
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3757 $as_echo_n "checking for suffix of object files... " >&6; }
3758 if ${ac_cv_objext+:} false
; then :
3759 $as_echo_n "(cached) " >&6
3761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h. */
3772 rm -f conftest.o conftest.obj
3773 if { { ac_try
="$ac_compile"
3775 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3776 *) ac_try_echo=$ac_try;;
3778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3779 $as_echo "$ac_try_echo"; } >&5
3780 (eval "$ac_compile") 2>&5
3782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3783 test $ac_status = 0; }; then :
3784 for ac_file in conftest.o conftest.obj conftest.*; do
3785 test -f "$ac_file" || continue;
3787 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3788 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3793 $as_echo "$as_me: failed program was:" >&5
3794 sed 's/^/| /' conftest.$ac_ext >&5
3796 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3797 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3798 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3799 See \
`config.log' for more details" "$LINENO" 5; }
3801 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3804 $as_echo "$ac_cv_objext" >&6; }
3805 OBJEXT=$ac_cv_objext
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3808 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3809 if ${ac_cv_c_compiler_gnu+:} false; then :
3810 $as_echo_n "(cached) " >&6
3812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813 /* end confdefs.h. */
3826 if ac_fn_c_try_compile "$LINENO"; then :
3831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3832 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3836 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3837 if test $ac_compiler_gnu = yes; then
3842 ac_test_CFLAGS=${CFLAGS+set}
3843 ac_save_CFLAGS=$CFLAGS
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3845 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3846 if ${ac_cv_prog_cc_g+:} false; then :
3847 $as_echo_n "(cached) " >&6
3849 ac_save_c_werror_flag=$ac_c_werror_flag
3850 ac_c_werror_flag=yes
3853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3854 /* end confdefs.h. */
3864 if ac_fn_c_try_compile "$LINENO"; then :
3868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3869 /* end confdefs.h. */
3879 if ac_fn_c_try_compile "$LINENO"; then :
3882 ac_c_werror_flag=$ac_save_c_werror_flag
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h. */
3895 if ac_fn_c_try_compile "$LINENO"; then :
3898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3903 ac_c_werror_flag=$ac_save_c_werror_flag
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3906 $as_echo "$ac_cv_prog_cc_g" >&6; }
3907 if test "$ac_test_CFLAGS" = set; then
3908 CFLAGS=$ac_save_CFLAGS
3909 elif test $ac_cv_prog_cc_g = yes; then
3910 if test "$GCC" = yes; then
3916 if test "$GCC" = yes; then
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3923 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3924 if ${ac_cv_prog_cc_c89+:} false; then :
3925 $as_echo_n "(cached) " >&6
3927 ac_cv_prog_cc_c89=no
3929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930 /* end confdefs.h. */
3934 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3935 struct buf { int x; };
3936 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3937 static char *e (p, i)
3943 static char *f (char * (*g) (char **, int), char **p, ...)
3948 s = g (p, va_arg (v,int));
3953 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3954 function prototypes and stuff, but not '\xHH' hex character constants.
3955 These don't provoke an error unfortunately, instead are silently treated
3956 as 'x'. The following induces an error, until -std is added to get
3957 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3958 array size at least. It's necessary to write '\x00'==0 to get something
3959 that's true only with -std. */
3960 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3962 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3963 inside strings and character constants. */
3965 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3967 int test (int i, double x);
3968 struct s1 {int (*f) (int a);};
3969 struct s2 {int (*f) (double a);};
3970 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3976 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3981 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3982 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3984 CC="$ac_save_CC $ac_arg"
3985 if ac_fn_c_try_compile "$LINENO"; then :
3986 ac_cv_prog_cc_c89=$ac_arg
3988 rm -f core conftest.err conftest.$ac_objext
3989 test "x$ac_cv_prog_cc_c89" != "xno" && break
3991 rm -f conftest.$ac_ext
3996 case "x$ac_cv_prog_cc_c89" in
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3999 $as_echo "none needed" >&6; } ;;
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4002 $as_echo "unsupported" >&6; } ;;
4004 CC="$CC $ac_cv_prog_cc_c89"
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4006 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4008 if test "x$ac_cv_prog_cc_c89" != xno; then :
4013 ac_cpp='$CPP $CPPFLAGS'
4014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4019 ac_cpp='$CPP $CPPFLAGS'
4020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4024 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4025 if ${am_cv_prog_cc_c_o+:} false; then :
4026 $as_echo_n "(cached) " >&6
4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029 /* end confdefs.h. */
4039 # Make sure it works both with $CC and with simple cc.
4040 # Following AC_PROG_CC_C_O, we do the test twice because some
4041 # compilers refuse to overwrite an existing .o file with -o,
4042 # though they will create one.
4043 am_cv_prog_cc_c_o=yes
4045 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4046 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); } \
4050 && test -f conftest2.$ac_objext; then
4053 am_cv_prog_cc_c_o=no
4057 rm -f core conftest*
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4061 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4062 if test "$am_cv_prog_cc_c_o" != yes; then
4063 # Losing compiler, so override with the script.
4064 # FIXME: It is wrong to rewrite CC.
4065 # But if we don't then we get into trouble of one sort or another.
4066 # A longer-term fix would be to have automake use am__CC in this case,
4067 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4068 CC="$am_aux_dir/compile $CC"
4071 ac_cpp='$CPP $CPPFLAGS'
4072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4077 depcc="$CC" am_compiler_list=
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4080 $as_echo_n "checking dependency style of $depcc... " >&6; }
4081 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4082 $as_echo_n "(cached) " >&6
4084 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4085 # We make a subdir and do the tests there. Otherwise we can end up
4086 # making bogus files that we don't know about and never remove. For
4087 # instance it was reported that on HP-UX the gcc test will end up
4088 # making a dummy file named 'D' -- because '-MD' means "put the output
4092 # Copy depcomp to subdir because otherwise we won't find it if we're
4093 # using a relative directory.
4094 cp "$am_depcomp" conftest.dir
4096 # We will build objects and dependencies in a subdirectory because
4097 # it helps to detect inapplicable dependency modes. For instance
4098 # both Tru64's cc and ICC support -MD to output dependencies as a
4099 # side effect of compilation, but ICC will put the dependencies in
4100 # the current directory while Tru64 will put them in the object
4104 am_cv_CC_dependencies_compiler_type=none
4105 if test "$am_compiler_list" = ""; then
4106 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4109 case " $depcc " in #(
4110 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4113 for depmode in $am_compiler_list; do
4114 # Setup a source with many dependencies, because some compilers
4115 # like to wrap large dependency lists on column 80 (with \), and
4116 # we should not choose a depcomp mode which is confused by this.
4118 # We need to recreate these files for each test, as the compiler may
4119 # overwrite some of them when testing with obscure command lines.
4120 # This happens at least with the AIX C compiler.
4122 for i in 1 2 3 4 5 6; do
4123 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4124 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4125 # Solaris 10 /bin/sh.
4126 echo '/* dummy */' > sub/conftst$i.h
4128 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4130 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4131 # mode. It turns out that the SunPro C++ compiler does not properly
4132 # handle '-M -o', and we need to detect this. Also, some Intel
4133 # versions had trouble with output in subdirs.
4134 am__obj=sub/conftest.${OBJEXT-o}
4135 am__minus_obj="-o $am__obj"
4138 # This depmode causes a compiler race in universal mode.
4139 test "$am__universal" = false || continue
4142 # After this tag, mechanisms are not by side-effect, so they'll
4143 # only be used when explicitly requested.
4144 if test "x$enable_dependency_tracking" = xyes; then
4150 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4151 # This compiler won't grok '-c -o', but also, the minuso test has
4152 # not run yet. These depmodes are late enough in the game, and
4153 # so weak that their functioning should not be impacted.
4154 am__obj=conftest.${OBJEXT-o}
4159 if depmode=$depmode \
4160 source=sub/conftest.c object=$am__obj \
4161 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4162 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4163 >/dev/null 2>conftest.err &&
4164 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4165 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4166 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4167 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4168 # icc doesn't choke on unknown options, it will just issue warnings
4169 # or remarks (even with -Werror). So we grep stderr for any message
4170 # that says an option was ignored or not supported.
4171 # When given -MP, icc 7.0 and 7.1 complain thusly:
4172 # icc: Command line warning: ignoring option '-M'; no argument required
4173 # The diagnosis changed in icc 8.0:
4174 # icc: Command line remark: option '-MP' not supported
4175 if (grep 'ignoring option' conftest.err ||
4176 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4177 am_cv_CC_dependencies_compiler_type=$depmode
4186 am_cv_CC_dependencies_compiler_type=none
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4191 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4192 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4195 test "x$enable_dependency_tracking" != xno \
4196 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4198 am__fastdepCC_FALSE='#'
4200 am__fastdepCC_TRUE='#'
4201 am__fastdepCC_FALSE=
4207 ac_cpp='$CPP $CPPFLAGS'
4208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4212 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4213 # On Suns, sometimes $CPP names a directory.
4214 if test -n "$CPP" && test -d "$CPP"; then
4217 if test -z "$CPP"; then
4218 if ${ac_cv_prog_CPP+:} false; then :
4219 $as_echo_n "(cached) " >&6
4221 # Double quotes because CPP needs to be expanded
4222 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4225 for ac_c_preproc_warn_flag in '' yes
4227 # Use a header file that comes with gcc, so configuring glibc
4228 # with a fresh cross-compiler works.
4229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4230 # <limits.h> exists even on freestanding compilers.
4231 # On the NeXT, cc -E runs the code through the compiler's parser,
4232 # not just through cpp. "Syntax error" is here to catch this case.
4233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4234 /* end confdefs.h. */
4236 # include <limits.h>
4238 # include <assert.h>
4242 if ac_fn_c_try_cpp "$LINENO"; then :
4245 # Broken: fails on valid input.
4248 rm -f conftest.err conftest.i conftest.$ac_ext
4250 # OK, works on sane cases. Now check whether nonexistent headers
4251 # can be detected and how.
4252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4253 /* end confdefs.h. */
4254 #include <ac_nonexistent.h>
4256 if ac_fn_c_try_cpp "$LINENO"; then :
4257 # Broken: success on invalid input.
4260 # Passes both tests.
4264 rm -f conftest.err conftest.i conftest.$ac_ext
4267 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4268 rm -f conftest.i conftest.err conftest.
$ac_ext
4269 if $ac_preproc_ok; then :
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4282 $as_echo "$CPP" >&6; }
4284 for ac_c_preproc_warn_flag
in '' yes
4286 # Use a header file that comes with gcc, so configuring glibc
4287 # with a fresh cross-compiler works.
4288 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4289 # <limits.h> exists even on freestanding compilers.
4290 # On the NeXT, cc -E runs the code through the compiler's parser,
4291 # not just through cpp. "Syntax error" is here to catch this case.
4292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4293 /* end confdefs.h. */
4295 # include <limits.h>
4297 # include <assert.h>
4301 if ac_fn_c_try_cpp
"$LINENO"; then :
4304 # Broken: fails on valid input.
4307 rm -f conftest.err conftest.i conftest.
$ac_ext
4309 # OK, works on sane cases. Now check whether nonexistent headers
4310 # can be detected and how.
4311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4312 /* end confdefs.h. */
4313 #include <ac_nonexistent.h>
4315 if ac_fn_c_try_cpp
"$LINENO"; then :
4316 # Broken: success on invalid input.
4319 # Passes both tests.
4323 rm -f conftest.err conftest.i conftest.
$ac_ext
4326 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4327 rm -f conftest.i conftest.err conftest.
$ac_ext
4328 if $ac_preproc_ok; then :
4331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4333 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4334 See \`config.log' for more details" "$LINENO" 5; }
4338 ac_cpp
='$CPP $CPPFLAGS'
4339 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4340 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4341 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4345 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4346 if ${ac_cv_path_GREP+:} false
; then :
4347 $as_echo_n "(cached) " >&6
4349 if test -z "$GREP"; then
4350 ac_path_GREP_found
=false
4351 # Loop through the user's path and test for each of PROGNAME-LIST
4352 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4353 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4356 test -z "$as_dir" && as_dir
=.
4357 for ac_prog
in grep ggrep
; do
4358 for ac_exec_ext
in '' $ac_executable_extensions; do
4359 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4360 as_fn_executable_p
"$ac_path_GREP" ||
continue
4361 # Check for GNU ac_path_GREP and select it if it is found.
4362 # Check for GNU $ac_path_GREP
4363 case `"$ac_path_GREP" --version 2>&1` in
4365 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4368 $as_echo_n 0123456789 >"conftest.in"
4371 cat "conftest.in" "conftest.in" >"conftest.tmp"
4372 mv "conftest.tmp" "conftest.in"
4373 cp "conftest.in" "conftest.nl"
4374 $as_echo 'GREP' >> "conftest.nl"
4375 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4376 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4377 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4378 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4379 # Best one so far, save it but keep looking for a better one
4380 ac_cv_path_GREP
="$ac_path_GREP"
4381 ac_path_GREP_max
=$ac_count
4383 # 10*(2^10) chars as input seems more than enough
4384 test $ac_count -gt 10 && break
4386 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4389 $ac_path_GREP_found && break 3
4394 if test -z "$ac_cv_path_GREP"; then
4395 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4398 ac_cv_path_GREP
=$GREP
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4403 $as_echo "$ac_cv_path_GREP" >&6; }
4404 GREP
="$ac_cv_path_GREP"
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4408 $as_echo_n "checking for egrep... " >&6; }
4409 if ${ac_cv_path_EGREP+:} false
; then :
4410 $as_echo_n "(cached) " >&6
4412 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4413 then ac_cv_path_EGREP
="$GREP -E"
4415 if test -z "$EGREP"; then
4416 ac_path_EGREP_found
=false
4417 # Loop through the user's path and test for each of PROGNAME-LIST
4418 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4419 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4422 test -z "$as_dir" && as_dir
=.
4423 for ac_prog
in egrep; do
4424 for ac_exec_ext
in '' $ac_executable_extensions; do
4425 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4426 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4427 # Check for GNU ac_path_EGREP and select it if it is found.
4428 # Check for GNU $ac_path_EGREP
4429 case `"$ac_path_EGREP" --version 2>&1` in
4431 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4434 $as_echo_n 0123456789 >"conftest.in"
4437 cat "conftest.in" "conftest.in" >"conftest.tmp"
4438 mv "conftest.tmp" "conftest.in"
4439 cp "conftest.in" "conftest.nl"
4440 $as_echo 'EGREP' >> "conftest.nl"
4441 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4442 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4443 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4444 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4445 # Best one so far, save it but keep looking for a better one
4446 ac_cv_path_EGREP
="$ac_path_EGREP"
4447 ac_path_EGREP_max
=$ac_count
4449 # 10*(2^10) chars as input seems more than enough
4450 test $ac_count -gt 10 && break
4452 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4455 $ac_path_EGREP_found && break 3
4460 if test -z "$ac_cv_path_EGREP"; then
4461 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4464 ac_cv_path_EGREP
=$EGREP
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4470 $as_echo "$ac_cv_path_EGREP" >&6; }
4471 EGREP
="$ac_cv_path_EGREP"
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4475 $as_echo_n "checking for ANSI C header files... " >&6; }
4476 if ${ac_cv_header_stdc+:} false
; then :
4477 $as_echo_n "(cached) " >&6
4479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h. */
4494 if ac_fn_c_try_compile
"$LINENO"; then :
4495 ac_cv_header_stdc
=yes
4497 ac_cv_header_stdc
=no
4499 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4501 if test $ac_cv_header_stdc = yes; then
4502 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4504 /* end confdefs.h. */
4508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4509 $EGREP "memchr" >/dev
/null
2>&1; then :
4512 ac_cv_header_stdc
=no
4518 if test $ac_cv_header_stdc = yes; then
4519 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4521 /* end confdefs.h. */
4525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4526 $EGREP "free" >/dev
/null
2>&1; then :
4529 ac_cv_header_stdc
=no
4535 if test $ac_cv_header_stdc = yes; then
4536 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4537 if test "$cross_compiling" = yes; then :
4540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4541 /* end confdefs.h. */
4544 #if ((' ' & 0x0FF) == 0x020)
4545 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4546 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4548 # define ISLOWER(c) \
4549 (('a' <= (c) && (c) <= 'i') \
4550 || ('j' <= (c) && (c) <= 'r') \
4551 || ('s' <= (c) && (c) <= 'z'))
4552 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4555 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4560 for (i = 0; i < 256; i++)
4561 if (XOR (islower (i), ISLOWER (i))
4562 || toupper (i) != TOUPPER (i))
4567 if ac_fn_c_try_run
"$LINENO"; then :
4570 ac_cv_header_stdc
=no
4572 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4573 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4579 $as_echo "$ac_cv_header_stdc" >&6; }
4580 if test $ac_cv_header_stdc = yes; then
4582 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4586 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4587 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4588 inttypes.h stdint.h unistd.h
4590 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4591 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4593 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4594 cat >>confdefs.h
<<_ACEOF
4595 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4604 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4605 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4612 if test "$MINIX" = yes; then
4614 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4617 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4620 $as_echo "#define _MINIX 1" >>confdefs.h
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4626 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4627 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4628 $as_echo_n "(cached) " >&6
4630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4631 /* end confdefs.h. */
4633 # define __EXTENSIONS__ 1
4634 $ac_includes_default
4643 if ac_fn_c_try_compile
"$LINENO"; then :
4644 ac_cv_safe_to_define___extensions__
=yes
4646 ac_cv_safe_to_define___extensions__
=no
4648 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4651 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4652 test $ac_cv_safe_to_define___extensions__ = yes &&
4653 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4655 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4657 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4659 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4661 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4665 ac_cpp
='$CPP $CPPFLAGS'
4666 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4667 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4668 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4669 if test -n "$ac_tool_prefix"; then
4670 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4671 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4673 $as_echo_n "checking for $ac_word... " >&6; }
4674 if ${ac_cv_prog_CC+:} false
; then :
4675 $as_echo_n "(cached) " >&6
4677 if test -n "$CC"; then
4678 ac_cv_prog_CC
="$CC" # Let the user override the test.
4680 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4684 test -z "$as_dir" && as_dir
=.
4685 for ac_exec_ext
in '' $ac_executable_extensions; do
4686 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4687 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4698 if test -n "$CC"; then
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4700 $as_echo "$CC" >&6; }
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4703 $as_echo "no" >&6; }
4708 if test -z "$ac_cv_prog_CC"; then
4710 # Extract the first word of "gcc", so it can be a program name with args.
4711 set dummy gcc
; ac_word
=$2
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4713 $as_echo_n "checking for $ac_word... " >&6; }
4714 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4715 $as_echo_n "(cached) " >&6
4717 if test -n "$ac_ct_CC"; then
4718 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4720 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4724 test -z "$as_dir" && as_dir
=.
4725 for ac_exec_ext
in '' $ac_executable_extensions; do
4726 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4727 ac_cv_prog_ac_ct_CC
="gcc"
4728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4737 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4738 if test -n "$ac_ct_CC"; then
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4740 $as_echo "$ac_ct_CC" >&6; }
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4743 $as_echo "no" >&6; }
4746 if test "x$ac_ct_CC" = x
; then
4749 case $cross_compiling:$ac_tool_warned in
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4753 ac_tool_warned
=yes ;;
4761 if test -z "$CC"; then
4762 if test -n "$ac_tool_prefix"; then
4763 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4764 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4766 $as_echo_n "checking for $ac_word... " >&6; }
4767 if ${ac_cv_prog_CC+:} false
; then :
4768 $as_echo_n "(cached) " >&6
4770 if test -n "$CC"; then
4771 ac_cv_prog_CC
="$CC" # Let the user override the test.
4773 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4777 test -z "$as_dir" && as_dir
=.
4778 for ac_exec_ext
in '' $ac_executable_extensions; do
4779 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4780 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4791 if test -n "$CC"; then
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4793 $as_echo "$CC" >&6; }
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4796 $as_echo "no" >&6; }
4802 if test -z "$CC"; then
4803 # Extract the first word of "cc", so it can be a program name with args.
4804 set dummy cc
; ac_word
=$2
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4806 $as_echo_n "checking for $ac_word... " >&6; }
4807 if ${ac_cv_prog_CC+:} false
; then :
4808 $as_echo_n "(cached) " >&6
4810 if test -n "$CC"; then
4811 ac_cv_prog_CC
="$CC" # Let the user override the test.
4814 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4818 test -z "$as_dir" && as_dir
=.
4819 for ac_exec_ext
in '' $ac_executable_extensions; do
4820 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4821 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4822 ac_prog_rejected
=yes
4826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 if test $ac_prog_rejected = yes; then
4834 # We found a bogon in the path, so make sure we never use it.
4835 set dummy
$ac_cv_prog_CC
4837 if test $# != 0; then
4838 # We chose a different compiler from the bogus one.
4839 # However, it has the same basename, so the bogon will be chosen
4840 # first if we set CC to just the basename; use the full file name.
4842 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4848 if test -n "$CC"; then
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4850 $as_echo "$CC" >&6; }
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4853 $as_echo "no" >&6; }
4858 if test -z "$CC"; then
4859 if test -n "$ac_tool_prefix"; then
4860 for ac_prog
in cl.exe
4862 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4863 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4865 $as_echo_n "checking for $ac_word... " >&6; }
4866 if ${ac_cv_prog_CC+:} false
; then :
4867 $as_echo_n "(cached) " >&6
4869 if test -n "$CC"; then
4870 ac_cv_prog_CC
="$CC" # Let the user override the test.
4872 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4876 test -z "$as_dir" && as_dir
=.
4877 for ac_exec_ext
in '' $ac_executable_extensions; do
4878 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4879 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4890 if test -n "$CC"; then
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4892 $as_echo "$CC" >&6; }
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4895 $as_echo "no" >&6; }
4899 test -n "$CC" && break
4902 if test -z "$CC"; then
4904 for ac_prog
in cl.exe
4906 # Extract the first word of "$ac_prog", so it can be a program name with args.
4907 set dummy
$ac_prog; ac_word
=$2
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909 $as_echo_n "checking for $ac_word... " >&6; }
4910 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4911 $as_echo_n "(cached) " >&6
4913 if test -n "$ac_ct_CC"; then
4914 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4916 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4920 test -z "$as_dir" && as_dir
=.
4921 for ac_exec_ext
in '' $ac_executable_extensions; do
4922 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4923 ac_cv_prog_ac_ct_CC
="$ac_prog"
4924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4933 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4934 if test -n "$ac_ct_CC"; then
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4936 $as_echo "$ac_ct_CC" >&6; }
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4939 $as_echo "no" >&6; }
4943 test -n "$ac_ct_CC" && break
4946 if test "x$ac_ct_CC" = x
; then
4949 case $cross_compiling:$ac_tool_warned in
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4953 ac_tool_warned
=yes ;;
4962 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4964 as_fn_error $?
"no acceptable C compiler found in \$PATH
4965 See \`config.log' for more details" "$LINENO" 5; }
4967 # Provide some information about the compiler.
4968 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4971 for ac_option
in --version -v -V -qversion; do
4972 { { ac_try
="$ac_compiler $ac_option >&5"
4974 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4975 *) ac_try_echo=$ac_try;;
4977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4978 $as_echo "$ac_try_echo"; } >&5
4979 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4981 if test -s conftest.err; then
4983 ... rest of stderr output deleted ...
4984 10q' conftest.err >conftest.er1
4985 cat conftest.er1 >&5
4987 rm -f conftest.er1 conftest.err
4988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4989 test $ac_status = 0; }
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4993 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4994 if ${ac_cv_c_compiler_gnu+:} false; then :
4995 $as_echo_n "(cached) " >&6
4997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4998 /* end confdefs.h. */
5011 if ac_fn_c_try_compile "$LINENO"; then :
5016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5017 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5021 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5022 if test $ac_compiler_gnu = yes; then
5027 ac_test_CFLAGS=${CFLAGS+set}
5028 ac_save_CFLAGS=$CFLAGS
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5030 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5031 if ${ac_cv_prog_cc_g+:} false; then :
5032 $as_echo_n "(cached) " >&6
5034 ac_save_c_werror_flag=$ac_c_werror_flag
5035 ac_c_werror_flag=yes
5038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5039 /* end confdefs.h. */
5049 if ac_fn_c_try_compile "$LINENO"; then :
5053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5054 /* end confdefs.h. */
5064 if ac_fn_c_try_compile "$LINENO"; then :
5067 ac_c_werror_flag=$ac_save_c_werror_flag
5069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5070 /* end confdefs.h. */
5080 if ac_fn_c_try_compile "$LINENO"; then :
5083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5088 ac_c_werror_flag=$ac_save_c_werror_flag
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5091 $as_echo "$ac_cv_prog_cc_g" >&6; }
5092 if test "$ac_test_CFLAGS" = set; then
5093 CFLAGS=$ac_save_CFLAGS
5094 elif test $ac_cv_prog_cc_g = yes; then
5095 if test "$GCC" = yes; then
5101 if test "$GCC" = yes; then
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5108 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5109 if ${ac_cv_prog_cc_c89+:} false; then :
5110 $as_echo_n "(cached) " >&6
5112 ac_cv_prog_cc_c89=no
5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115 /* end confdefs.h. */
5119 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5120 struct buf { int x; };
5121 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5122 static char *e (p, i)
5128 static char *f (char * (*g) (char **, int), char **p, ...)
5133 s = g (p, va_arg (v,int));
5138 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5139 function prototypes and stuff, but not '\xHH' hex character constants.
5140 These don't provoke an error unfortunately, instead are silently treated
5141 as 'x'. The following induces an error, until -std is added to get
5142 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5143 array size at least. It's necessary to write '\x00'==0 to get something
5144 that's true only with -std. */
5145 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5147 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5148 inside strings and character constants. */
5150 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5152 int test (int i, double x);
5153 struct s1 {int (*f) (int a);};
5154 struct s2 {int (*f) (double a);};
5155 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5161 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5166 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5167 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5169 CC="$ac_save_CC $ac_arg"
5170 if ac_fn_c_try_compile "$LINENO"; then :
5171 ac_cv_prog_cc_c89=$ac_arg
5173 rm -f core conftest.err conftest.$ac_objext
5174 test "x$ac_cv_prog_cc_c89" != "xno" && break
5176 rm -f conftest.$ac_ext
5181 case "x$ac_cv_prog_cc_c89" in
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5184 $as_echo "none needed" >&6; } ;;
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5187 $as_echo "unsupported" >&6; } ;;
5189 CC="$CC $ac_cv_prog_cc_c89"
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5191 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5193 if test "x$ac_cv_prog_cc_c89" != xno; then :
5198 ac_cpp='$CPP $CPPFLAGS'
5199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5204 ac_cpp='$CPP $CPPFLAGS'
5205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5209 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5210 if ${am_cv_prog_cc_c_o+:} false; then :
5211 $as_echo_n "(cached) " >&6
5213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214 /* end confdefs.h. */
5224 # Make sure it works both with $CC and with simple cc.
5225 # Following AC_PROG_CC_C_O, we do the test twice because some
5226 # compilers refuse to overwrite an existing .o file with -o,
5227 # though they will create one.
5228 am_cv_prog_cc_c_o=yes
5230 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5231 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); } \
5235 && test -f conftest2.$ac_objext; then
5238 am_cv_prog_cc_c_o=no
5242 rm -f core conftest*
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5246 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5247 if test "$am_cv_prog_cc_c_o" != yes; then
5248 # Losing compiler, so override with the script.
5249 # FIXME: It is wrong to rewrite CC.
5250 # But if we don't then we get into trouble of one sort or another.
5251 # A longer-term fix would be to have automake use am__CC in this case,
5252 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5253 CC="$am_aux_dir/compile $CC"
5256 ac_cpp='$CPP $CPPFLAGS'
5257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5262 depcc="$CC" am_compiler_list=
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5265 $as_echo_n "checking dependency style of $depcc... " >&6; }
5266 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5267 $as_echo_n "(cached) " >&6
5269 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5270 # We make a subdir and do the tests there. Otherwise we can end up
5271 # making bogus files that we don't know about and never remove. For
5272 # instance it was reported that on HP-UX the gcc test will end up
5273 # making a dummy file named 'D' -- because '-MD' means "put the output
5277 # Copy depcomp to subdir because otherwise we won't find it if we're
5278 # using a relative directory.
5279 cp "$am_depcomp" conftest.dir
5281 # We will build objects and dependencies in a subdirectory because
5282 # it helps to detect inapplicable dependency modes. For instance
5283 # both Tru64's cc and ICC support -MD to output dependencies as a
5284 # side effect of compilation, but ICC will put the dependencies in
5285 # the current directory while Tru64 will put them in the object
5289 am_cv_CC_dependencies_compiler_type=none
5290 if test "$am_compiler_list" = ""; then
5291 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
5294 case " $depcc " in #(
5295 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5298 for depmode in $am_compiler_list; do
5299 # Setup a source with many dependencies, because some compilers
5300 # like to wrap large dependency lists on column 80 (with \), and
5301 # we should not choose a depcomp mode which is confused by this.
5303 # We need to recreate these files for each test, as the compiler may
5304 # overwrite some of them when testing with obscure command lines.
5305 # This happens at least with the AIX C compiler.
5307 for i in 1 2 3 4 5 6; do
5308 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5309 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5310 # Solaris 10 /bin/sh.
5311 echo '/* dummy */' > sub/conftst$i.h
5313 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5315 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5316 # mode. It turns out that the SunPro C++ compiler does not properly
5317 # handle '-M -o', and we need to detect this. Also, some Intel
5318 # versions had trouble with output in subdirs.
5319 am__obj=sub/conftest.${OBJEXT-o}
5320 am__minus_obj="-o $am__obj"
5323 # This depmode causes a compiler race in universal mode.
5324 test "$am__universal" = false || continue
5327 # After this tag, mechanisms are not by side-effect, so they'll
5328 # only be used when explicitly requested.
5329 if test "x$enable_dependency_tracking" = xyes; then
5335 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5336 # This compiler won't grok '-c -o', but also, the minuso test has
5337 # not run yet. These depmodes are late enough in the game, and
5338 # so weak that their functioning should not be impacted.
5339 am__obj=conftest.${OBJEXT-o}
5344 if depmode=$depmode \
5345 source=sub/conftest.c object=$am__obj \
5346 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5347 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5348 >/dev/null 2>conftest.err &&
5349 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5350 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5351 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5352 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5353 # icc doesn't choke on unknown options, it will just issue warnings
5354 # or remarks (even with -Werror). So we grep stderr for any message
5355 # that says an option was ignored or not supported.
5356 # When given -MP, icc 7.0 and 7.1 complain thusly:
5357 # icc: Command line warning: ignoring option '-M'; no argument required
5358 # The diagnosis changed in icc 8.0:
5359 # icc: Command line remark: option '-MP' not supported
5360 if (grep 'ignoring option' conftest.err ||
5361 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5362 am_cv_CC_dependencies_compiler_type=$depmode
5371 am_cv_CC_dependencies_compiler_type=none
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5376 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5377 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5380 test "x$enable_dependency_tracking" != xno \
5381 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5383 am__fastdepCC_FALSE='#'
5385 am__fastdepCC_TRUE='#'
5386 am__fastdepCC_FALSE=
5391 ac_cpp='$CXXCPP $CPPFLAGS'
5392 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5393 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5394 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5395 if test -z "$CXX"; then
5396 if test -n "$CCC"; then
5399 if test -n "$ac_tool_prefix"; then
5400 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5402 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5403 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5405 $as_echo_n "checking for $ac_word... " >&6; }
5406 if ${ac_cv_prog_CXX+:} false; then :
5407 $as_echo_n "(cached) " >&6
5409 if test -n "$CXX"; then
5410 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416 test -z "$as_dir" && as_dir=.
5417 for ac_exec_ext in '' $ac_executable_extensions; do
5418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5419 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5430 if test -n "$CXX"; then
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5432 $as_echo "$CXX" >&6; }
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5435 $as_echo "no" >&6; }
5439 test -n "$CXX" && break
5442 if test -z "$CXX"; then
5444 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5446 # Extract the first word of "$ac_prog", so it can be a program name with args.
5447 set dummy $ac_prog; ac_word=$2
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5449 $as_echo_n "checking for $ac_word... " >&6; }
5450 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5451 $as_echo_n "(cached) " >&6
5453 if test -n "$ac_ct_CXX"; then
5454 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460 test -z "$as_dir" && as_dir=.
5461 for ac_exec_ext in '' $ac_executable_extensions; do
5462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5463 ac_cv_prog_ac_ct_CXX="$ac_prog"
5464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5473 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5474 if test -n "$ac_ct_CXX"; then
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5476 $as_echo "$ac_ct_CXX" >&6; }
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479 $as_echo "no" >&6; }
5483 test -n "$ac_ct_CXX" && break
5486 if test "x$ac_ct_CXX" = x; then
5489 case $cross_compiling:$ac_tool_warned in
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5493 ac_tool_warned=yes ;;
5501 # Provide some information about the compiler.
5502 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5505 for ac_option in --version -v -V -qversion; do
5506 { { ac_try="$ac_compiler $ac_option >&5"
5508 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5509 *) ac_try_echo
=$ac_try;;
5511 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5512 $as_echo "$ac_try_echo"; } >&5
5513 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5515 if test -s conftest.err
; then
5517 ... rest of stderr output deleted ...
5518 10q' conftest.err
>conftest.er1
5519 cat conftest.er1
>&5
5521 rm -f conftest.er1 conftest.err
5522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5523 test $ac_status = 0; }
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5527 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5528 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
5529 $as_echo_n "(cached) " >&6
5531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h. */
5545 if ac_fn_cxx_try_compile
"$LINENO"; then :
5550 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5551 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5555 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5556 if test $ac_compiler_gnu = yes; then
5561 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5562 ac_save_CXXFLAGS
=$CXXFLAGS
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5564 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5565 if ${ac_cv_prog_cxx_g+:} false
; then :
5566 $as_echo_n "(cached) " >&6
5568 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5569 ac_cxx_werror_flag
=yes
5572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h. */
5583 if ac_fn_cxx_try_compile
"$LINENO"; then :
5584 ac_cv_prog_cxx_g
=yes
5587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5588 /* end confdefs.h. */
5598 if ac_fn_cxx_try_compile
"$LINENO"; then :
5601 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5604 /* end confdefs.h. */
5614 if ac_fn_cxx_try_compile
"$LINENO"; then :
5615 ac_cv_prog_cxx_g
=yes
5617 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5619 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5621 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5622 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5625 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5626 if test "$ac_test_CXXFLAGS" = set; then
5627 CXXFLAGS
=$ac_save_CXXFLAGS
5628 elif test $ac_cv_prog_cxx_g = yes; then
5629 if test "$GXX" = yes; then
5635 if test "$GXX" = yes; then
5642 ac_cpp
='$CPP $CPPFLAGS'
5643 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5644 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5645 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5647 depcc
="$CXX" am_compiler_list
=
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5650 $as_echo_n "checking dependency style of $depcc... " >&6; }
5651 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
5652 $as_echo_n "(cached) " >&6
5654 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5655 # We make a subdir and do the tests there. Otherwise we can end up
5656 # making bogus files that we don't know about and never remove. For
5657 # instance it was reported that on HP-UX the gcc test will end up
5658 # making a dummy file named 'D' -- because '-MD' means "put the output
5662 # Copy depcomp to subdir because otherwise we won't find it if we're
5663 # using a relative directory.
5664 cp "$am_depcomp" conftest.dir
5666 # We will build objects and dependencies in a subdirectory because
5667 # it helps to detect inapplicable dependency modes. For instance
5668 # both Tru64's cc and ICC support -MD to output dependencies as a
5669 # side effect of compilation, but ICC will put the dependencies in
5670 # the current directory while Tru64 will put them in the object
5674 am_cv_CXX_dependencies_compiler_type
=none
5675 if test "$am_compiler_list" = ""; then
5676 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5679 case " $depcc " in #(
5680 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5683 for depmode
in $am_compiler_list; do
5684 # Setup a source with many dependencies, because some compilers
5685 # like to wrap large dependency lists on column 80 (with \), and
5686 # we should not choose a depcomp mode which is confused by this.
5688 # We need to recreate these files for each test, as the compiler may
5689 # overwrite some of them when testing with obscure command lines.
5690 # This happens at least with the AIX C compiler.
5692 for i
in 1 2 3 4 5 6; do
5693 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5694 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5695 # Solaris 10 /bin/sh.
5696 echo '/* dummy */' > sub
/conftst
$i.h
5698 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5700 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5701 # mode. It turns out that the SunPro C++ compiler does not properly
5702 # handle '-M -o', and we need to detect this. Also, some Intel
5703 # versions had trouble with output in subdirs.
5704 am__obj
=sub
/conftest.
${OBJEXT-o}
5705 am__minus_obj
="-o $am__obj"
5708 # This depmode causes a compiler race in universal mode.
5709 test "$am__universal" = false ||
continue
5712 # After this tag, mechanisms are not by side-effect, so they'll
5713 # only be used when explicitly requested.
5714 if test "x$enable_dependency_tracking" = xyes
; then
5720 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
5721 # This compiler won't grok '-c -o', but also, the minuso test has
5722 # not run yet. These depmodes are late enough in the game, and
5723 # so weak that their functioning should not be impacted.
5724 am__obj
=conftest.
${OBJEXT-o}
5729 if depmode
=$depmode \
5730 source=sub
/conftest.c object
=$am__obj \
5731 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5732 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5733 >/dev
/null
2>conftest.err
&&
5734 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5735 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5736 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5737 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5738 # icc doesn't choke on unknown options, it will just issue warnings
5739 # or remarks (even with -Werror). So we grep stderr for any message
5740 # that says an option was ignored or not supported.
5741 # When given -MP, icc 7.0 and 7.1 complain thusly:
5742 # icc: Command line warning: ignoring option '-M'; no argument required
5743 # The diagnosis changed in icc 8.0:
5744 # icc: Command line remark: option '-MP' not supported
5745 if (grep 'ignoring option' conftest.err ||
5746 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5747 am_cv_CXX_dependencies_compiler_type
=$depmode
5756 am_cv_CXX_dependencies_compiler_type
=none
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5761 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5762 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
5765 test "x$enable_dependency_tracking" != xno \
5766 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
5767 am__fastdepCXX_TRUE
=
5768 am__fastdepCXX_FALSE
='#'
5770 am__fastdepCXX_TRUE
='#'
5771 am__fastdepCXX_FALSE
=
5776 if test -n "$ac_tool_prefix"; then
5777 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5778 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5780 $as_echo_n "checking for $ac_word... " >&6; }
5781 if ${ac_cv_prog_RANLIB+:} false
; then :
5782 $as_echo_n "(cached) " >&6
5784 if test -n "$RANLIB"; then
5785 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5787 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5791 test -z "$as_dir" && as_dir
=.
5792 for ac_exec_ext
in '' $ac_executable_extensions; do
5793 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5794 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5804 RANLIB
=$ac_cv_prog_RANLIB
5805 if test -n "$RANLIB"; then
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5807 $as_echo "$RANLIB" >&6; }
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5810 $as_echo "no" >&6; }
5815 if test -z "$ac_cv_prog_RANLIB"; then
5816 ac_ct_RANLIB
=$RANLIB
5817 # Extract the first word of "ranlib", so it can be a program name with args.
5818 set dummy ranlib
; ac_word
=$2
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5820 $as_echo_n "checking for $ac_word... " >&6; }
5821 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5822 $as_echo_n "(cached) " >&6
5824 if test -n "$ac_ct_RANLIB"; then
5825 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5827 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5831 test -z "$as_dir" && as_dir
=.
5832 for ac_exec_ext
in '' $ac_executable_extensions; do
5833 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5834 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5844 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5845 if test -n "$ac_ct_RANLIB"; then
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5847 $as_echo "$ac_ct_RANLIB" >&6; }
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5850 $as_echo "no" >&6; }
5853 if test "x$ac_ct_RANLIB" = x
; then
5856 case $cross_compiling:$ac_tool_warned in
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5860 ac_tool_warned
=yes ;;
5862 RANLIB
=$ac_ct_RANLIB
5865 RANLIB
="$ac_cv_prog_RANLIB"
5868 if test -n "$ac_tool_prefix"; then
5869 for ac_prog
in ar lib
"link -lib"
5871 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5872 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5874 $as_echo_n "checking for $ac_word... " >&6; }
5875 if ${ac_cv_prog_AR+:} false
; then :
5876 $as_echo_n "(cached) " >&6
5878 if test -n "$AR"; then
5879 ac_cv_prog_AR
="$AR" # Let the user override the test.
5881 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5885 test -z "$as_dir" && as_dir
=.
5886 for ac_exec_ext
in '' $ac_executable_extensions; do
5887 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5888 ac_cv_prog_AR
="$ac_tool_prefix$ac_prog"
5889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5899 if test -n "$AR"; then
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5901 $as_echo "$AR" >&6; }
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5904 $as_echo "no" >&6; }
5908 test -n "$AR" && break
5911 if test -z "$AR"; then
5913 for ac_prog
in ar lib
"link -lib"
5915 # Extract the first word of "$ac_prog", so it can be a program name with args.
5916 set dummy
$ac_prog; ac_word
=$2
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5918 $as_echo_n "checking for $ac_word... " >&6; }
5919 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
5920 $as_echo_n "(cached) " >&6
5922 if test -n "$ac_ct_AR"; then
5923 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5925 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5929 test -z "$as_dir" && as_dir
=.
5930 for ac_exec_ext
in '' $ac_executable_extensions; do
5931 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5932 ac_cv_prog_ac_ct_AR
="$ac_prog"
5933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5942 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5943 if test -n "$ac_ct_AR"; then
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5945 $as_echo "$ac_ct_AR" >&6; }
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5948 $as_echo "no" >&6; }
5952 test -n "$ac_ct_AR" && break
5955 if test "x$ac_ct_AR" = x
; then
5958 case $cross_compiling:$ac_tool_warned in
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5962 ac_tool_warned
=yes ;;
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5971 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5972 if ${am_cv_ar_interface+:} false
; then :
5973 $as_echo_n "(cached) " >&6
5976 ac_cpp
='$CPP $CPPFLAGS'
5977 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5978 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5979 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5981 am_cv_ar_interface
=ar
5982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5983 /* end confdefs.h. */
5984 int some_variable = 0;
5986 if ac_fn_c_try_compile
"$LINENO"; then :
5987 am_ar_try
='$AR cru libconftest.a conftest.$ac_objext >&5'
5988 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5989 (eval $am_ar_try) 2>&5
5991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5992 test $ac_status = 0; }
5993 if test "$ac_status" -eq 0; then
5994 am_cv_ar_interface
=ar
5996 am_ar_try
='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5997 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5998 (eval $am_ar_try) 2>&5
6000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6001 test $ac_status = 0; }
6002 if test "$ac_status" -eq 0; then
6003 am_cv_ar_interface
=lib
6005 am_cv_ar_interface
=unknown
6008 rm -f conftest.lib libconftest.a
6011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6013 ac_cpp
='$CPP $CPPFLAGS'
6014 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6015 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6016 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6020 $as_echo "$am_cv_ar_interface" >&6; }
6022 case $am_cv_ar_interface in
6026 # Microsoft lib, so override with the ar-lib wrapper script.
6027 # FIXME: It is wrong to rewrite AR.
6028 # But if we don't then we get into trouble of one sort or another.
6029 # A longer-term fix would be to have automake use am__AR in this case,
6030 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6032 AR
="$am_aux_dir/ar-lib $AR"
6035 as_fn_error $?
"could not determine $AR interface" "$LINENO" 5
6040 # Check whether --enable-shared was given.
6041 if test "${enable_shared+set}" = set; then :
6042 enableval
=$enable_shared; p
=${PACKAGE-default}
6044 yes) enable_shared
=yes ;;
6045 no
) enable_shared
=no
;;
6048 # Look at the argument we got. We use all the common list separators.
6049 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
6050 for pkg
in $enableval; do
6052 if test "X$pkg" = "X$p"; then
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6074 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6079 macro_version
='2.2.7a'
6080 macro_revision
='1.3134'
6094 ltmain
="$ac_aux_dir/ltmain.sh"
6096 # Backslashify metacharacters that are still active within
6097 # double-quoted strings.
6098 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
6100 # Same as above, but do not quote variable references.
6101 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
6103 # Sed substitution to delay expansion of an escaped shell variable in a
6104 # double_quote_subst'ed string.
6105 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
6107 # Sed substitution to delay expansion of an escaped single quote.
6108 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
6110 # Sed substitution to avoid accidental globbing in evaled expressions
6111 no_glob_subst
='s/\*/\\\*/g'
6113 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6114 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6115 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6118 $as_echo_n "checking how to print strings... " >&6; }
6119 # Test print first, because it will be a builtin if present.
6120 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6121 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6123 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6126 # Use this function as a fallback that always works.
6127 func_fallback_echo ()
6129 eval 'cat <<_LTECHO_EOF
6133 ECHO='func_fallback_echo
'
6136 # func_echo_all arg...
6137 # Invoke $ECHO with all args, space-separated.
6144 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6145 $as_echo "printf" >&6; } ;;
6146 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6147 $as_echo "print -r" >&6; } ;;
6148 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6149 $as_echo "cat" >&6; } ;;
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6166 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6167 if ${ac_cv_path_SED+:} false; then :
6168 $as_echo_n "(cached) " >&6
6170 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6171 for ac_i in 1 2 3 4 5 6 7; do
6172 ac_script="$ac_script$as_nl$ac_script"
6174 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6175 { ac_script=; unset ac_script;}
6176 if test -z "$SED"; then
6177 ac_path_SED_found=false
6178 # Loop through the user's path and
test for each of PROGNAME-LIST
6179 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6183 test -z "$as_dir" && as_dir
=.
6184 for ac_prog
in sed gsed
; do
6185 for ac_exec_ext
in '' $ac_executable_extensions; do
6186 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
6187 as_fn_executable_p
"$ac_path_SED" ||
continue
6188 # Check for GNU ac_path_SED and select it if it is found.
6189 # Check for GNU $ac_path_SED
6190 case `"$ac_path_SED" --version 2>&1` in
6192 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
6195 $as_echo_n 0123456789 >"conftest.in"
6198 cat "conftest.in" "conftest.in" >"conftest.tmp"
6199 mv "conftest.tmp" "conftest.in"
6200 cp "conftest.in" "conftest.nl"
6201 $as_echo '' >> "conftest.nl"
6202 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6203 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6204 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6205 if test $ac_count -gt ${ac_path_SED_max-0}; then
6206 # Best one so far, save it but keep looking for a better one
6207 ac_cv_path_SED
="$ac_path_SED"
6208 ac_path_SED_max
=$ac_count
6210 # 10*(2^10) chars as input seems more than enough
6211 test $ac_count -gt 10 && break
6213 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6216 $ac_path_SED_found && break 3
6221 if test -z "$ac_cv_path_SED"; then
6222 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6230 $as_echo "$ac_cv_path_SED" >&6; }
6231 SED
="$ac_cv_path_SED"
6234 test -z "$SED" && SED
=sed
6235 Xsed
="$SED -e 1s/^X//"
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6248 $as_echo_n "checking for fgrep... " >&6; }
6249 if ${ac_cv_path_FGREP+:} false
; then :
6250 $as_echo_n "(cached) " >&6
6252 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
6253 then ac_cv_path_FGREP
="$GREP -F"
6255 if test -z "$FGREP"; then
6256 ac_path_FGREP_found
=false
6257 # Loop through the user's path and test for each of PROGNAME-LIST
6258 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6259 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6262 test -z "$as_dir" && as_dir
=.
6263 for ac_prog
in fgrep
; do
6264 for ac_exec_ext
in '' $ac_executable_extensions; do
6265 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
6266 as_fn_executable_p
"$ac_path_FGREP" ||
continue
6267 # Check for GNU ac_path_FGREP and select it if it is found.
6268 # Check for GNU $ac_path_FGREP
6269 case `"$ac_path_FGREP" --version 2>&1` in
6271 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
6274 $as_echo_n 0123456789 >"conftest.in"
6277 cat "conftest.in" "conftest.in" >"conftest.tmp"
6278 mv "conftest.tmp" "conftest.in"
6279 cp "conftest.in" "conftest.nl"
6280 $as_echo 'FGREP' >> "conftest.nl"
6281 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6282 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6283 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6284 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6285 # Best one so far, save it but keep looking for a better one
6286 ac_cv_path_FGREP
="$ac_path_FGREP"
6287 ac_path_FGREP_max
=$ac_count
6289 # 10*(2^10) chars as input seems more than enough
6290 test $ac_count -gt 10 && break
6292 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6295 $ac_path_FGREP_found && break 3
6300 if test -z "$ac_cv_path_FGREP"; then
6301 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6304 ac_cv_path_FGREP
=$FGREP
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6310 $as_echo "$ac_cv_path_FGREP" >&6; }
6311 FGREP
="$ac_cv_path_FGREP"
6314 test -z "$GREP" && GREP
=grep
6334 # Check whether --with-gnu-ld was given.
6335 if test "${with_gnu_ld+set}" = set; then :
6336 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
6342 if test "$GCC" = yes; then
6343 # Check if gcc -print-prog-name=ld gives a path.
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6345 $as_echo_n "checking for ld used by $CC... " >&6; }
6348 # gcc leaves a trailing carriage return which upsets mingw
6349 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6351 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6354 # Accept absolute paths.
6356 re_direlt
='/[^/][^/]*/\.\./'
6357 # Canonicalize the pathname of ld
6358 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6359 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
6360 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6362 test -z "$LD" && LD
="$ac_prog"
6365 # If it fails, then pretend we aren't using GCC.
6369 # If it is relative, then search for the first ld in PATH.
6373 elif test "$with_gnu_ld" = yes; then
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6375 $as_echo_n "checking for GNU ld... " >&6; }
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6378 $as_echo_n "checking for non-GNU ld... " >&6; }
6380 if ${lt_cv_path_LD+:} false
; then :
6381 $as_echo_n "(cached) " >&6
6383 if test -z "$LD"; then
6384 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6385 for ac_dir
in $PATH; do
6387 test -z "$ac_dir" && ac_dir
=.
6388 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6389 lt_cv_path_LD
="$ac_dir/$ac_prog"
6390 # Check to see if the program is GNU ld. I'd rather use --version,
6391 # but apparently some variants of GNU ld only accept -v.
6392 # Break only if it was the GNU/non-GNU ld that we prefer.
6393 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6394 *GNU
* |
*'with BFD'*)
6395 test "$with_gnu_ld" != no
&& break
6398 test "$with_gnu_ld" != yes && break
6405 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
6410 if test -n "$LD"; then
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6412 $as_echo "$LD" >&6; }
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6415 $as_echo "no" >&6; }
6417 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6419 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6420 if ${lt_cv_prog_gnu_ld+:} false
; then :
6421 $as_echo_n "(cached) " >&6
6423 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6424 case `$LD -v 2>&1 </dev/null` in
6425 *GNU
* |
*'with BFD'*)
6426 lt_cv_prog_gnu_ld
=yes
6429 lt_cv_prog_gnu_ld
=no
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6434 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6435 with_gnu_ld
=$lt_cv_prog_gnu_ld
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6446 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6447 if ${lt_cv_path_NM+:} false
; then :
6448 $as_echo_n "(cached) " >&6
6450 if test -n "$NM"; then
6451 # Let the user override the nm to test.
6452 lt_nm_to_check
="$NM"
6454 lt_nm_to_check
="${ac_tool_prefix}nm"
6455 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6456 lt_nm_to_check
="$lt_nm_to_check nm"
6459 for lt_tmp_nm
in $lt_nm_to_check; do
6460 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6461 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
6463 test -z "$ac_dir" && ac_dir
=.
6464 case "$lt_tmp_nm" in
6465 */*|
*\\*) tmp_nm
="$lt_tmp_nm";;
6466 *) tmp_nm
="$ac_dir/$lt_tmp_nm";;
6468 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
6469 # Check to see if the nm accepts a BSD-compat flag.
6470 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6471 # nm: unknown option "B" ignored
6472 case `"$tmp_nm" -B "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6473 *$tmp_nm*) lt_cv_path_NM
="$tmp_nm -B"
6477 case `"$tmp_nm" -p "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6479 lt_cv_path_NM
="$tmp_nm -p"
6483 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6484 continue # so that we can try to find one that supports BSD flags
6493 : ${lt_cv_path_NM=no}
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6496 $as_echo "$lt_cv_path_NM" >&6; }
6497 if test "$lt_cv_path_NM" != "no"; then
6500 # Didn't find any BSD compatible name lister, look for dumpbin.
6501 if test -n "$DUMPBIN"; then :
6502 # Let the user override the test.
6504 if test -n "$ac_tool_prefix"; then
6505 for ac_prog
in dumpbin
"link -dump"
6507 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6508 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6510 $as_echo_n "checking for $ac_word... " >&6; }
6511 if ${ac_cv_prog_DUMPBIN+:} false
; then :
6512 $as_echo_n "(cached) " >&6
6514 if test -n "$DUMPBIN"; then
6515 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
6517 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6521 test -z "$as_dir" && as_dir
=.
6522 for ac_exec_ext
in '' $ac_executable_extensions; do
6523 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6524 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
6525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6534 DUMPBIN
=$ac_cv_prog_DUMPBIN
6535 if test -n "$DUMPBIN"; then
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6537 $as_echo "$DUMPBIN" >&6; }
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540 $as_echo "no" >&6; }
6544 test -n "$DUMPBIN" && break
6547 if test -z "$DUMPBIN"; then
6548 ac_ct_DUMPBIN
=$DUMPBIN
6549 for ac_prog
in dumpbin
"link -dump"
6551 # Extract the first word of "$ac_prog", so it can be a program name with args.
6552 set dummy
$ac_prog; ac_word
=$2
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6554 $as_echo_n "checking for $ac_word... " >&6; }
6555 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
6556 $as_echo_n "(cached) " >&6
6558 if test -n "$ac_ct_DUMPBIN"; then
6559 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
6561 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6565 test -z "$as_dir" && as_dir
=.
6566 for ac_exec_ext
in '' $ac_executable_extensions; do
6567 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6568 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
6569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6578 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
6579 if test -n "$ac_ct_DUMPBIN"; then
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6581 $as_echo "$ac_ct_DUMPBIN" >&6; }
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6584 $as_echo "no" >&6; }
6588 test -n "$ac_ct_DUMPBIN" && break
6591 if test "x$ac_ct_DUMPBIN" = x
; then
6594 case $cross_compiling:$ac_tool_warned in
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6598 ac_tool_warned
=yes ;;
6600 DUMPBIN
=$ac_ct_DUMPBIN
6604 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6606 DUMPBIN
="$DUMPBIN -symbols"
6614 if test "$DUMPBIN" != ":"; then
6618 test -z "$NM" && NM
=nm
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6626 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6627 if ${lt_cv_nm_interface+:} false
; then :
6628 $as_echo_n "(cached) " >&6
6630 lt_cv_nm_interface
="BSD nm"
6631 echo "int some_variable = 0;" > conftest.
$ac_ext
6632 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6633 (eval "$ac_compile" 2>conftest.err
)
6634 cat conftest.err
>&5
6635 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6636 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
6637 cat conftest.err
>&5
6638 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6639 cat conftest.out
>&5
6640 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
6641 lt_cv_nm_interface
="MS dumpbin"
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6646 $as_echo "$lt_cv_nm_interface" >&6; }
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6649 $as_echo_n "checking whether ln -s works... " >&6; }
6651 if test "$LN_S" = "ln -s"; then
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6653 $as_echo "yes" >&6; }
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6656 $as_echo "no, using $LN_S" >&6; }
6659 # find the maximum length of command line arguments
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6661 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6662 if ${lt_cv_sys_max_cmd_len+:} false
; then :
6663 $as_echo_n "(cached) " >&6
6670 # On DJGPP, this test can blow up pretty badly due to problems in libc
6671 # (any single argument exceeding 2000 bytes causes a buffer overrun
6672 # during glob expansion). Even if it were fixed, the result of this
6673 # check would be larger than it should be.
6674 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
6678 # Under GNU Hurd, this test is not required because there is
6679 # no limit to the length of command line arguments.
6680 # Libtool will interpret -1 as no limit whatsoever
6681 lt_cv_sys_max_cmd_len
=-1;
6684 cygwin
* | mingw
* | cegcc
*)
6685 # On Win9x/ME, this test blows up -- it succeeds, but takes
6686 # about 5 minutes as the teststring grows exponentially.
6687 # Worse, since 9x/ME are not pre-emptively multitasking,
6688 # you end up with a "frozen" computer, even though with patience
6689 # the test eventually succeeds (with a max line length of 256k).
6690 # Instead, let's just punt: use the minimum linelength reported by
6691 # all of the supported platforms: 8192 (on NT/2K/XP).
6692 lt_cv_sys_max_cmd_len
=8192;
6696 # On MiNT this can take a long time and run out of memory.
6697 lt_cv_sys_max_cmd_len
=8192;
6701 # On AmigaOS with pdksh, this test takes hours, literally.
6702 # So we just punt and use a minimum line length of 8192.
6703 lt_cv_sys_max_cmd_len
=8192;
6706 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
6707 # This has been around since 386BSD, at least. Likely further.
6708 if test -x /sbin
/sysctl
; then
6709 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
6710 elif test -x /usr
/sbin
/sysctl
; then
6711 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
6713 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
6715 # And add a safety zone
6716 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6717 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6721 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6722 lt_cv_sys_max_cmd_len
=196608
6726 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6727 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6728 # nice to cause kernel panics so lets avoid the loop below.
6729 # First set a reasonable default.
6730 lt_cv_sys_max_cmd_len
=16384
6732 if test -x /sbin
/sysconfig
; then
6733 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6734 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6739 lt_cv_sys_max_cmd_len
=102400
6741 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6742 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6743 if test -n "$kargmax"; then
6744 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6746 lt_cv_sys_max_cmd_len
=32768
6750 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
6751 if test -n "$lt_cv_sys_max_cmd_len"; then
6752 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6753 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6755 # Make teststring a little bigger before we do anything with it.
6756 # a 1K string should be a reasonable start.
6757 for i
in 1 2 3 4 5 6 7 8 ; do
6758 teststring
=$teststring$teststring
6760 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6761 # If test is not a shell built-in, we'll probably end up computing a
6762 # maximum length that is only half of the actual maximum length, but
6764 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6765 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
6766 test $i != 17 # 1/2 MB should be enough
6769 teststring
=$teststring$teststring
6771 # Only check the string length outside the loop.
6772 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
6774 # Add a significant safety factor because C++ compilers can tack on
6775 # massive amounts of additional arguments before passing them to the
6776 # linker. It appears as though 1/2 is a usable value.
6777 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6784 if test -n $lt_cv_sys_max_cmd_len ; then
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6786 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6789 $as_echo "none" >&6; }
6791 max_cmd_len
=$lt_cv_sys_max_cmd_len
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6803 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6804 # Try some XSI features
6807 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6809 && eval 'test $(( 1 + 1 )) -eq 2 \
6810 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
6813 $as_echo "$xsi_shell" >&6; }
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
6817 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
6819 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
6821 && lt_shell_append=yes
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
6823 $as_echo "$lt_shell_append" >&6; }
6826 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6836 # test EBCDIC or ASCII
6837 case `echo X|tr X '\101'` in
6838 A) # ASCII based system
6839 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6840 lt_SP2NL='tr \040 \012'
6841 lt_NL2SP='tr \015\012 \040\040'
6843 *) # EBCDIC based system
6844 lt_SP2NL='tr \100 \n'
6845 lt_NL2SP='tr \r\n \100\100'
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
6858 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
6859 if ${lt_cv_ld_reload_flag+:} false; then :
6860 $as_echo_n "(cached
) " >&6
6862 lt_cv_ld_reload_flag='-r'
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
6865 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6866 reload_flag=$lt_cv_ld_reload_flag
6867 case $reload_flag in
6869 *) reload_flag=" $reload_flag" ;;
6871 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6874 if test "$GCC" = yes; then
6875 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6877 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6890 if test -n "$ac_tool_prefix"; then
6891 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
6892 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6894 $as_echo_n "checking
for $ac_word...
" >&6; }
6895 if ${ac_cv_prog_OBJDUMP+:} false; then :
6896 $as_echo_n "(cached
) " >&6
6898 if test -n "$OBJDUMP"; then
6899 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905 test -z "$as_dir" && as_dir=.
6906 for ac_exec_ext in '' $ac_executable_extensions; do
6907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6908 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
6909 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6918 OBJDUMP=$ac_cv_prog_OBJDUMP
6919 if test -n "$OBJDUMP"; then
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
6921 $as_echo "$OBJDUMP" >&6; }
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6924 $as_echo "no
" >&6; }
6929 if test -z "$ac_cv_prog_OBJDUMP"; then
6930 ac_ct_OBJDUMP=$OBJDUMP
6931 # Extract the first word of "objdump
", so it can be a program name with args.
6932 set dummy objdump; ac_word=$2
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6934 $as_echo_n "checking
for $ac_word...
" >&6; }
6935 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6936 $as_echo_n "(cached
) " >&6
6938 if test -n "$ac_ct_OBJDUMP"; then
6939 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945 test -z "$as_dir" && as_dir=.
6946 for ac_exec_ext in '' $ac_executable_extensions; do
6947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6948 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
6949 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6958 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6959 if test -n "$ac_ct_OBJDUMP"; then
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
6961 $as_echo "$ac_ct_OBJDUMP" >&6; }
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6964 $as_echo "no
" >&6; }
6967 if test "x
$ac_ct_OBJDUMP" = x; then
6970 case $cross_compiling:$ac_tool_warned in
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6973 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6974 ac_tool_warned=yes ;;
6976 OBJDUMP=$ac_ct_OBJDUMP
6979 OBJDUMP="$ac_cv_prog_OBJDUMP"
6982 test -z "$OBJDUMP" && OBJDUMP=objdump
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
6993 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
6994 if ${lt_cv_deplibs_check_method+:} false; then :
6995 $as_echo_n "(cached
) " >&6
6997 lt_cv_file_magic_cmd='$MAGIC_CMD'
6998 lt_cv_file_magic_test_file=
6999 lt_cv_deplibs_check_method='unknown'
7000 # Need to set the preceding variable on all platforms that support
7001 # interlibrary dependencies.
7002 # 'none' -- dependencies not supported.
7003 # `unknown' -- same as none, but documents that we really don't know.
7004 # 'pass_all' -- all dependencies passed with no checks.
7005 # 'test_compile' -- check by making test program.
7006 # 'file_magic [[regex]]' -- check by looking for files in library path
7007 # which responds to the $file_magic_cmd with a given extended regex.
7008 # If you have `file' or equivalent on your system and you're not sure
7009 # whether `pass_all' will *always* work, you probably want this one.
7013 lt_cv_deplibs_check_method=pass_all
7017 lt_cv_deplibs_check_method=pass_all
7021 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7022 lt_cv_file_magic_cmd='/usr/bin/file -L'
7023 lt_cv_file_magic_test_file=/shlib/libc.so
7027 # func_win32_libid is a shell function defined in ltmain.sh
7028 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7029 lt_cv_file_magic_cmd='func_win32_libid'
7033 # Base MSYS/MinGW do not provide the 'file' command needed by
7034 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7035 # unless we find 'file', for example because we are cross-compiling.
7036 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7037 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
7038 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7039 lt_cv_file_magic_cmd='func_win32_libid'
7041 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7042 lt_cv_file_magic_cmd='$OBJDUMP -f'
7047 # use the weaker test based on 'objdump'. See mingw*.
7048 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7049 lt_cv_file_magic_cmd='$OBJDUMP -f'
7052 darwin* | rhapsody*)
7053 lt_cv_deplibs_check_method=pass_all
7056 freebsd* | dragonfly*)
7057 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7060 # Not sure whether the presence of OpenBSD here was a mistake.
7061 # Let's accept both of them until this is cleared up.
7062 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7063 lt_cv_file_magic_cmd=/usr/bin/file
7064 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7068 lt_cv_deplibs_check_method=pass_all
7073 lt_cv_deplibs_check_method=pass_all
7077 lt_cv_deplibs_check_method=pass_all
7080 hpux10.20* | hpux11*)
7081 lt_cv_file_magic_cmd=/usr/bin/file
7084 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7085 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7088 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]'
7089 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7092 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7093 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7099 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7100 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7103 irix5* | irix6* | nonstopux*)
7105 *-32|*"-32 ") libmagic=32-bit;;
7106 *-n32|*"-n32 ") libmagic=N32;;
7107 *-64|*"-64 ") libmagic=64-bit;;
7108 *) libmagic=never-match;;
7110 lt_cv_deplibs_check_method=pass_all
7113 # This must be Linux ELF.
7114 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7115 lt_cv_deplibs_check_method=pass_all
7119 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7120 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7122 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7127 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7128 lt_cv_file_magic_cmd=/usr/bin/file
7129 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7133 lt_cv_deplibs_check_method=pass_all
7137 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
7138 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7140 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7144 osf3* | osf4* | osf5*)
7145 lt_cv_deplibs_check_method=pass_all
7149 lt_cv_deplibs_check_method=pass_all
7153 lt_cv_deplibs_check_method=pass_all
7156 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7157 lt_cv_deplibs_check_method=pass_all
7161 case $host_vendor in
7163 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]'
7164 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7167 lt_cv_deplibs_check_method=pass_all
7170 lt_cv_file_magic_cmd='/bin/file'
7171 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7174 lt_cv_file_magic_cmd='/bin/file'
7175 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
7176 lt_cv_file_magic_test_file=/lib/libc.so
7179 lt_cv_deplibs_check_method=pass_all
7182 lt_cv_deplibs_check_method=pass_all
7188 lt_cv_deplibs_check_method=pass_all
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
7194 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7195 file_magic_cmd=$lt_cv_file_magic_cmd
7196 deplibs_check_method=$lt_cv_deplibs_check_method
7197 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7211 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll
"
7212 for plugin in $plugin_names; do
7213 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
7214 if test x$plugin_so = x$plugin; then
7215 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
7217 if test x$plugin_so != x$plugin; then
7218 plugin_option="--plugin $plugin_so"
7223 if test -n "$ac_tool_prefix"; then
7224 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7225 set dummy ${ac_tool_prefix}ar; ac_word=$2
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7227 $as_echo_n "checking
for $ac_word...
" >&6; }
7228 if ${ac_cv_prog_AR+:} false; then :
7229 $as_echo_n "(cached
) " >&6
7231 if test -n "$AR"; then
7232 ac_cv_prog_AR="$AR" # Let the user override the test.
7234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238 test -z "$as_dir" && as_dir=.
7239 for ac_exec_ext in '' $ac_executable_extensions; do
7240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7241 ac_cv_prog_AR="${ac_tool_prefix}ar"
7242 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7252 if test -n "$AR"; then
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
7254 $as_echo "$AR" >&6; }
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7257 $as_echo "no
" >&6; }
7262 if test -z "$ac_cv_prog_AR"; then
7264 # Extract the first word of "ar", so it can be a program name with args.
7265 set dummy ar; ac_word=$2
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7267 $as_echo_n "checking
for $ac_word...
" >&6; }
7268 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7269 $as_echo_n "(cached
) " >&6
7271 if test -n "$ac_ct_AR"; then
7272 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278 test -z "$as_dir" && as_dir=.
7279 for ac_exec_ext in '' $ac_executable_extensions; do
7280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7281 ac_cv_prog_ac_ct_AR="ar"
7282 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7291 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7292 if test -n "$ac_ct_AR"; then
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
7294 $as_echo "$ac_ct_AR" >&6; }
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7297 $as_echo "no
" >&6; }
7300 if test "x
$ac_ct_AR" = x; then
7303 case $cross_compiling:$ac_tool_warned in
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7306 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7307 ac_tool_warned=yes ;;
7315 test -z "$AR" && AR=ar
7316 if test -n "$plugin_option"; then
7317 if $AR --help 2>&1 | grep -q "\
--plugin"; then
7319 $AR $plugin_option rc conftest.a conftest.c
7320 if test "$?
" != 0; then
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: Failed
: $AR $plugin_option rc
" >&5
7322 $as_echo "$as_me: WARNING
: Failed
: $AR $plugin_option rc
" >&2;}
7324 AR="$AR $plugin_option"
7329 test -z "$AR_FLAGS" && AR_FLAGS=cru
7341 if test -n "$ac_tool_prefix"; then
7342 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
7343 set dummy ${ac_tool_prefix}strip; ac_word=$2
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7345 $as_echo_n "checking
for $ac_word...
" >&6; }
7346 if ${ac_cv_prog_STRIP+:} false; then :
7347 $as_echo_n "(cached
) " >&6
7349 if test -n "$STRIP"; then
7350 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356 test -z "$as_dir" && as_dir=.
7357 for ac_exec_ext in '' $ac_executable_extensions; do
7358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7359 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
7360 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7369 STRIP=$ac_cv_prog_STRIP
7370 if test -n "$STRIP"; then
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
7372 $as_echo "$STRIP" >&6; }
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7375 $as_echo "no
" >&6; }
7380 if test -z "$ac_cv_prog_STRIP"; then
7382 # Extract the first word of "strip
", so it can be a program name with args.
7383 set dummy strip; ac_word=$2
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7385 $as_echo_n "checking
for $ac_word...
" >&6; }
7386 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7387 $as_echo_n "(cached
) " >&6
7389 if test -n "$ac_ct_STRIP"; then
7390 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396 test -z "$as_dir" && as_dir=.
7397 for ac_exec_ext in '' $ac_executable_extensions; do
7398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7399 ac_cv_prog_ac_ct_STRIP="strip
"
7400 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7409 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7410 if test -n "$ac_ct_STRIP"; then
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
7412 $as_echo "$ac_ct_STRIP" >&6; }
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7415 $as_echo "no
" >&6; }
7418 if test "x
$ac_ct_STRIP" = x; then
7421 case $cross_compiling:$ac_tool_warned in
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7424 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7425 ac_tool_warned=yes ;;
7430 STRIP="$ac_cv_prog_STRIP"
7433 test -z "$STRIP" && STRIP=:
7440 if test -n "$ac_tool_prefix"; then
7441 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
7442 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7444 $as_echo_n "checking
for $ac_word...
" >&6; }
7445 if ${ac_cv_prog_RANLIB+:} false; then :
7446 $as_echo_n "(cached
) " >&6
7448 if test -n "$RANLIB"; then
7449 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455 test -z "$as_dir" && as_dir=.
7456 for ac_exec_ext in '' $ac_executable_extensions; do
7457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7458 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
7459 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7468 RANLIB=$ac_cv_prog_RANLIB
7469 if test -n "$RANLIB"; then
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
7471 $as_echo "$RANLIB" >&6; }
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7474 $as_echo "no
" >&6; }
7479 if test -z "$ac_cv_prog_RANLIB"; then
7480 ac_ct_RANLIB=$RANLIB
7481 # Extract the first word of "ranlib
", so it can be a program name with args.
7482 set dummy ranlib; ac_word=$2
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7484 $as_echo_n "checking
for $ac_word...
" >&6; }
7485 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7486 $as_echo_n "(cached
) " >&6
7488 if test -n "$ac_ct_RANLIB"; then
7489 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495 test -z "$as_dir" && as_dir=.
7496 for ac_exec_ext in '' $ac_executable_extensions; do
7497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7498 ac_cv_prog_ac_ct_RANLIB="ranlib
"
7499 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7508 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7509 if test -n "$ac_ct_RANLIB"; then
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
7511 $as_echo "$ac_ct_RANLIB" >&6; }
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7514 $as_echo "no
" >&6; }
7517 if test "x
$ac_ct_RANLIB" = x; then
7520 case $cross_compiling:$ac_tool_warned in
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7523 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7524 ac_tool_warned=yes ;;
7526 RANLIB=$ac_ct_RANLIB
7529 RANLIB="$ac_cv_prog_RANLIB"
7532 test -z "$RANLIB" && RANLIB=:
7533 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7534 if $RANLIB --help 2>&1 | grep -q "\
--plugin"; then
7535 RANLIB="$RANLIB $plugin_option"
7544 # Determine commands to create old-style static archives.
7545 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7546 old_postinstall_cmds='chmod 644 $oldlib'
7547 old_postuninstall_cmds=
7549 if test -n "$RANLIB"; then
7552 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
7555 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
7558 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
7563 lock_old_archive_extraction=yes ;;
7565 lock_old_archive_extraction=no ;;
7606 # If no C compiler was specified, use CC.
7609 # If no C compiler flags were specified, use CFLAGS.
7610 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7612 # Allow CC to be a program name with arguments.
7616 # Check for command to grab the raw symbol name followed by C symbol from nm.
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
7618 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
7619 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7620 $as_echo_n "(cached
) " >&6
7623 # These are sane defaults that work on at least a few old systems.
7624 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7626 # Character class describing NM global symbol codes.
7627 symcode='[BCDEGRST]'
7629 # Regexp to match symbols that can be accessed directly from C.
7630 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7632 # Define system-specific variables.
7637 cygwin* | mingw* | pw32* | cegcc*)
7638 symcode='[ABCDGISTW]'
7641 if test "$host_cpu" = ia64; then
7642 symcode='[ABCDEGRST]'
7646 symcode='[BCDEGRST]'
7649 symcode='[BCDEGQRST]'
7660 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7668 # If we're using GNU nm, then use its standard symbol codes.
7669 case `$NM -V 2>&1` in
7670 *GNU* | *'with BFD'*)
7671 symcode='[ABCDGIRSTW]' ;;
7674 # Transform an extracted symbol line into a proper C declaration.
7675 # Some systems (esp. on ia64) link data and code symbols differently,
7676 # so use this general approach.
7677 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7679 # Transform an extracted symbol line into symbol name and symbol address
7680 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7681 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'"
7683 # Handle CRLF in mingw tool chain
7687 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7691 # Try without a prefix underscore, then with it.
7692 for ac_symprfx in "" "_
"; do
7694 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7695 symxfrm="\\1 $ac_symprfx\\2 \\2"
7697 # Write the raw and C identifiers.
7698 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
7699 # Fake it for dumpbin and say T for any non-static function
7700 # and D for any global variable.
7701 # Also find C++ and __fastcall symbols from MSVC++,
7702 # which start with @ or ?.
7703 lt_cv_sys_global_symbol_pipe="$AWK '"\
7704 " {last_section=section; section=\$ 3};"\
7705 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7706 " \$ 0!~/External *\|/{next};"\
7707 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7708 " {if(hide[section]) next};"\
7709 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7710 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7711 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7712 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7713 " ' prfx
=^
$ac_symprfx"
7715 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7718 # Check to see that the pipe works correctly.
7722 cat > conftest.$ac_ext <<_LT_EOF
7727 void nm_test_func(void);
7728 void nm_test_func(void){}
7732 int main(){nm_test_var='a';nm_test_func();return(0);}
7735 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7736 (eval $ac_compile) 2>&5
7738 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7739 test $ac_status = 0; }; then
7740 # Now try to grab the symbols.
7742 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
7743 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7745 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7746 test $ac_status = 0; } && test -s "$nlist"; then
7747 # Try sorting and uniquifying the output.
7748 if sort "$nlist" | uniq > "$nlist"T; then
7749 mv -f "$nlist"T "$nlist"
7754 # Make sure that we snagged all the symbols we need.
7755 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7756 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7757 cat <<_LT_EOF > conftest.$ac_ext
7763 # Now generate the symbol file.
7764 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7766 cat <<_LT_EOF >> conftest.$ac_ext
7768 /* The mapping between symbol names and symbols. */
7773 lt__PROGRAM__LTX_preloaded_symbols[] =
7775 { "@PROGRAM@
", (void *) 0 },
7777 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7778 cat <<\_LT_EOF >> conftest.$ac_ext
7782 /* This works around a problem in FreeBSD linker */
7783 #ifdef FREEBSD_WORKAROUND
7784 static const void *lt_preloaded_setup() {
7785 return lt__PROGRAM__LTX_preloaded_symbols;
7793 # Now try linking the two files.
7794 mv conftest.$ac_objext conftstm.$ac_objext
7795 lt_save_LIBS="$LIBS"
7796 lt_save_CFLAGS="$CFLAGS"
7797 LIBS="conftstm.
$ac_objext"
7798 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7799 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7800 (eval $ac_link) 2>&5
7802 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7803 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7806 LIBS="$lt_save_LIBS"
7807 CFLAGS="$lt_save_CFLAGS"
7809 echo "cannot
find nm_test_func
in $nlist" >&5
7812 echo "cannot
find nm_test_var
in $nlist" >&5
7815 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
7818 echo "$progname: failed program was
:" >&5
7819 cat conftest.$ac_ext >&5
7821 rm -rf conftest* conftst*
7823 # Do not use the global_symbol_pipe unless it works.
7824 if test "$pipe_works" = yes; then
7827 lt_cv_sys_global_symbol_pipe=
7833 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7834 lt_cv_sys_global_symbol_to_cdecl=
7836 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
7838 $as_echo "failed
" >&6; }
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
7841 $as_echo "ok
" >&6; }
7865 # Check whether --enable-libtool-lock was given.
7866 if test "${enable_libtool_lock+set}" = set; then :
7867 enableval=$enable_libtool_lock;
7870 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
7872 # Some flags need to be propagated to the compiler or linker for good
7876 # Find out which ABI we are using.
7877 echo 'int i;' > conftest.$ac_ext
7878 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7879 (eval $ac_compile) 2>&5
7881 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7882 test $ac_status = 0; }; then
7883 case `/usr/bin/file conftest.$ac_objext` in
7895 # Find out which ABI we are using.
7896 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
7897 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7898 (eval $ac_compile) 2>&5
7900 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7901 test $ac_status = 0; }; then
7902 if test "$lt_cv_prog_gnu_ld" = yes; then
7903 case `/usr/bin/file conftest.$ac_objext` in
7905 LD="${LD-ld} -melf32bsmip"
7908 LD="${LD-ld} -melf32bmipn32"
7911 LD="${LD-ld} -melf64bmip"
7915 case `/usr/bin/file conftest.$ac_objext` in
7931 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7932 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7933 # Find out which ABI we are using.
7934 echo 'int i;' > conftest.$ac_ext
7935 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7936 (eval $ac_compile) 2>&5
7938 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7939 test $ac_status = 0; }; then
7940 case `/usr/bin/file conftest.o` in
7943 x86_64-*kfreebsd*-gnu)
7944 LD="${LD-ld} -m elf_i386_fbsd
"
7947 case `/usr/bin/file conftest.o` in
7949 LD="${LD-ld} -m elf32_x86_64
"
7952 LD="${LD-ld} -m elf_i386
"
7956 powerpc64le-*linux*)
7957 LD="${LD-ld} -m elf32lppclinux
"
7960 LD="${LD-ld} -m elf32ppclinux
"
7963 LD="${LD-ld} -m elf_s390
"
7966 LD="${LD-ld} -m elf32_sparc
"
7972 x86_64-*kfreebsd*-gnu)
7973 LD="${LD-ld} -m elf_x86_64_fbsd
"
7976 LD="${LD-ld} -m elf_x86_64
"
7979 LD="${LD-ld} -m elf64lppc
"
7982 LD="${LD-ld} -m elf64ppc
"
7984 s390*-*linux*|s390*-*tpf*)
7985 LD="${LD-ld} -m elf64_s390
"
7988 LD="${LD-ld} -m elf64_sparc
"
7998 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7999 SAVE_CFLAGS="$CFLAGS"
8000 CFLAGS="$CFLAGS -belf"
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
8002 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
8003 if ${lt_cv_cc_needs_belf+:} false; then :
8004 $as_echo_n "(cached
) " >&6
8007 ac_cpp='$CPP $CPPFLAGS'
8008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8013 /* end confdefs.h. */
8023 if ac_fn_c_try_link "$LINENO"; then :
8024 lt_cv_cc_needs_belf=yes
8026 lt_cv_cc_needs_belf=no
8028 rm -f core conftest.err conftest.$ac_objext \
8029 conftest$ac_exeext conftest.$ac_ext
8031 ac_cpp='$CPP $CPPFLAGS'
8032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
8038 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8039 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8040 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8041 CFLAGS="$SAVE_CFLAGS"
8045 # Find out which ABI we are using.
8046 echo 'int i;' > conftest.$ac_ext
8047 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8048 (eval $ac_compile) 2>&5
8050 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
8051 test $ac_status = 0; }; then
8052 case `/usr/bin/file conftest.o` in
8054 case $lt_cv_prog_gnu_ld in
8055 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
8057 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8069 need_locks="$enable_libtool_lock"
8073 rhapsody* | darwin*)
8074 if test -n "$ac_tool_prefix"; then
8075 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
8076 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8078 $as_echo_n "checking
for $ac_word...
" >&6; }
8079 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8080 $as_echo_n "(cached
) " >&6
8082 if test -n "$DSYMUTIL"; then
8083 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8089 test -z "$as_dir" && as_dir=.
8090 for ac_exec_ext in '' $ac_executable_extensions; do
8091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8092 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
8093 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8102 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8103 if test -n "$DSYMUTIL"; then
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
8105 $as_echo "$DSYMUTIL" >&6; }
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8108 $as_echo "no
" >&6; }
8113 if test -z "$ac_cv_prog_DSYMUTIL"; then
8114 ac_ct_DSYMUTIL=$DSYMUTIL
8115 # Extract the first word of "dsymutil
", so it can be a program name with args.
8116 set dummy dsymutil; ac_word=$2
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8118 $as_echo_n "checking
for $ac_word...
" >&6; }
8119 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8120 $as_echo_n "(cached
) " >&6
8122 if test -n "$ac_ct_DSYMUTIL"; then
8123 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8129 test -z "$as_dir" && as_dir=.
8130 for ac_exec_ext in '' $ac_executable_extensions; do
8131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8132 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
8133 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8142 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8143 if test -n "$ac_ct_DSYMUTIL"; then
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
8145 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8148 $as_echo "no
" >&6; }
8151 if test "x
$ac_ct_DSYMUTIL" = x; then
8154 case $cross_compiling:$ac_tool_warned in
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8157 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8158 ac_tool_warned=yes ;;
8160 DSYMUTIL=$ac_ct_DSYMUTIL
8163 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8166 if test -n "$ac_tool_prefix"; then
8167 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
8168 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8170 $as_echo_n "checking
for $ac_word...
" >&6; }
8171 if ${ac_cv_prog_NMEDIT+:} false; then :
8172 $as_echo_n "(cached
) " >&6
8174 if test -n "$NMEDIT"; then
8175 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8181 test -z "$as_dir" && as_dir=.
8182 for ac_exec_ext in '' $ac_executable_extensions; do
8183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8184 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
8185 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8194 NMEDIT=$ac_cv_prog_NMEDIT
8195 if test -n "$NMEDIT"; then
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
8197 $as_echo "$NMEDIT" >&6; }
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8200 $as_echo "no
" >&6; }
8205 if test -z "$ac_cv_prog_NMEDIT"; then
8206 ac_ct_NMEDIT=$NMEDIT
8207 # Extract the first word of "nmedit
", so it can be a program name with args.
8208 set dummy nmedit; ac_word=$2
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8210 $as_echo_n "checking
for $ac_word...
" >&6; }
8211 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8212 $as_echo_n "(cached
) " >&6
8214 if test -n "$ac_ct_NMEDIT"; then
8215 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8221 test -z "$as_dir" && as_dir=.
8222 for ac_exec_ext in '' $ac_executable_extensions; do
8223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8224 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
8225 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8234 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8235 if test -n "$ac_ct_NMEDIT"; then
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
8237 $as_echo "$ac_ct_NMEDIT" >&6; }
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8240 $as_echo "no
" >&6; }
8243 if test "x
$ac_ct_NMEDIT" = x; then
8246 case $cross_compiling:$ac_tool_warned in
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8249 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8250 ac_tool_warned=yes ;;
8252 NMEDIT=$ac_ct_NMEDIT
8255 NMEDIT="$ac_cv_prog_NMEDIT"
8258 if test -n "$ac_tool_prefix"; then
8259 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
8260 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8262 $as_echo_n "checking
for $ac_word...
" >&6; }
8263 if ${ac_cv_prog_LIPO+:} false; then :
8264 $as_echo_n "(cached
) " >&6
8266 if test -n "$LIPO"; then
8267 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8273 test -z "$as_dir" && as_dir=.
8274 for ac_exec_ext in '' $ac_executable_extensions; do
8275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8276 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
8277 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8286 LIPO=$ac_cv_prog_LIPO
8287 if test -n "$LIPO"; then
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
8289 $as_echo "$LIPO" >&6; }
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8292 $as_echo "no
" >&6; }
8297 if test -z "$ac_cv_prog_LIPO"; then
8299 # Extract the first word of "lipo
", so it can be a program name with args.
8300 set dummy lipo; ac_word=$2
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8302 $as_echo_n "checking
for $ac_word...
" >&6; }
8303 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8304 $as_echo_n "(cached
) " >&6
8306 if test -n "$ac_ct_LIPO"; then
8307 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8313 test -z "$as_dir" && as_dir=.
8314 for ac_exec_ext in '' $ac_executable_extensions; do
8315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8316 ac_cv_prog_ac_ct_LIPO="lipo
"
8317 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8326 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8327 if test -n "$ac_ct_LIPO"; then
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
8329 $as_echo "$ac_ct_LIPO" >&6; }
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8332 $as_echo "no
" >&6; }
8335 if test "x
$ac_ct_LIPO" = x; then
8338 case $cross_compiling:$ac_tool_warned in
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8341 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8342 ac_tool_warned=yes ;;
8347 LIPO="$ac_cv_prog_LIPO"
8350 if test -n "$ac_tool_prefix"; then
8351 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
8352 set dummy ${ac_tool_prefix}otool; ac_word=$2
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8354 $as_echo_n "checking
for $ac_word...
" >&6; }
8355 if ${ac_cv_prog_OTOOL+:} false; then :
8356 $as_echo_n "(cached
) " >&6
8358 if test -n "$OTOOL"; then
8359 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365 test -z "$as_dir" && as_dir=.
8366 for ac_exec_ext in '' $ac_executable_extensions; do
8367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8368 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
8369 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8378 OTOOL=$ac_cv_prog_OTOOL
8379 if test -n "$OTOOL"; then
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
8381 $as_echo "$OTOOL" >&6; }
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8384 $as_echo "no
" >&6; }
8389 if test -z "$ac_cv_prog_OTOOL"; then
8391 # Extract the first word of "otool
", so it can be a program name with args.
8392 set dummy otool; ac_word=$2
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8394 $as_echo_n "checking
for $ac_word...
" >&6; }
8395 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8396 $as_echo_n "(cached
) " >&6
8398 if test -n "$ac_ct_OTOOL"; then
8399 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8405 test -z "$as_dir" && as_dir=.
8406 for ac_exec_ext in '' $ac_executable_extensions; do
8407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8408 ac_cv_prog_ac_ct_OTOOL="otool
"
8409 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8418 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8419 if test -n "$ac_ct_OTOOL"; then
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
8421 $as_echo "$ac_ct_OTOOL" >&6; }
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8424 $as_echo "no
" >&6; }
8427 if test "x
$ac_ct_OTOOL" = x; then
8430 case $cross_compiling:$ac_tool_warned in
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8433 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8434 ac_tool_warned=yes ;;
8439 OTOOL="$ac_cv_prog_OTOOL"
8442 if test -n "$ac_tool_prefix"; then
8443 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
8444 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8446 $as_echo_n "checking
for $ac_word...
" >&6; }
8447 if ${ac_cv_prog_OTOOL64+:} false; then :
8448 $as_echo_n "(cached
) " >&6
8450 if test -n "$OTOOL64"; then
8451 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8457 test -z "$as_dir" && as_dir=.
8458 for ac_exec_ext in '' $ac_executable_extensions; do
8459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8460 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
8461 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8470 OTOOL64=$ac_cv_prog_OTOOL64
8471 if test -n "$OTOOL64"; then
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
8473 $as_echo "$OTOOL64" >&6; }
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8476 $as_echo "no
" >&6; }
8481 if test -z "$ac_cv_prog_OTOOL64"; then
8482 ac_ct_OTOOL64=$OTOOL64
8483 # Extract the first word of "otool64
", so it can be a program name with args.
8484 set dummy otool64; ac_word=$2
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8486 $as_echo_n "checking
for $ac_word...
" >&6; }
8487 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8488 $as_echo_n "(cached
) " >&6
8490 if test -n "$ac_ct_OTOOL64"; then
8491 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8497 test -z "$as_dir" && as_dir=.
8498 for ac_exec_ext in '' $ac_executable_extensions; do
8499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8500 ac_cv_prog_ac_ct_OTOOL64="otool64
"
8501 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8510 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8511 if test -n "$ac_ct_OTOOL64"; then
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
8513 $as_echo "$ac_ct_OTOOL64" >&6; }
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8516 $as_echo "no
" >&6; }
8519 if test "x
$ac_ct_OTOOL64" = x; then
8522 case $cross_compiling:$ac_tool_warned in
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8525 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8526 ac_tool_warned=yes ;;
8528 OTOOL64=$ac_ct_OTOOL64
8531 OTOOL64="$ac_cv_prog_OTOOL64"
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
8561 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
8562 if ${lt_cv_apple_cc_single_mod+:} false; then :
8563 $as_echo_n "(cached
) " >&6
8565 lt_cv_apple_cc_single_mod=no
8566 if test -z "${LT_MULTI_MODULE}"; then
8567 # By default we will add the -single_module flag. You can override
8568 # by either setting the environment variable LT_MULTI_MODULE
8569 # non-empty at configure time, or by adding -multi_module to the
8571 rm -rf libconftest.dylib*
8572 echo "int foo
(void
){return 1;}" > conftest.c
8573 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8574 -dynamiclib -Wl,-single_module conftest.c
" >&5
8575 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8576 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8578 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8579 lt_cv_apple_cc_single_mod=yes
8581 cat conftest.err >&5
8583 rm -rf libconftest.dylib*
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
8588 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
8590 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
8591 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8592 $as_echo_n "(cached
) " >&6
8594 lt_cv_ld_exported_symbols_list=no
8595 save_LDFLAGS=$LDFLAGS
8596 echo "_main
" > conftest.sym
8597 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
8598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8599 /* end confdefs.h. */
8609 if ac_fn_c_try_link "$LINENO"; then :
8610 lt_cv_ld_exported_symbols_list=yes
8612 lt_cv_ld_exported_symbols_list=no
8614 rm -f core conftest.err conftest.$ac_objext \
8615 conftest$ac_exeext conftest.$ac_ext
8616 LDFLAGS="$save_LDFLAGS"
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
8620 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
8622 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
8623 if ${lt_cv_ld_force_load+:} false; then :
8624 $as_echo_n "(cached
) " >&6
8626 lt_cv_ld_force_load=no
8627 cat > conftest.c << _LT_EOF
8628 int forced_loaded() { return 2;}
8630 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
8631 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8632 echo "$AR cru libconftest.a conftest.o
" >&5
8633 $AR cru libconftest.a conftest.o 2>&5
8634 cat > conftest.c << _LT_EOF
8635 int main() { return 0;}
8637 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
8638 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8640 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8641 lt_cv_ld_force_load=yes
8643 cat conftest.err >&5
8645 rm -f conftest.err libconftest.a conftest conftest.c
8646 rm -rf conftest.dSYM
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
8650 $as_echo "$lt_cv_ld_force_load" >&6; }
8652 rhapsody* | darwin1.[012])
8653 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8655 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8656 darwin*) # darwin 5.x on
8657 # if running on 10.5 or later, the deployment target defaults
8658 # to the OS version, if on x86, and 10.4, the deployment
8659 # target defaults to 10.4. Don't you love it?
8660 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8661 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8662 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8664 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8666 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8670 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8671 _lt_dar_single_mod='$single_module'
8673 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8674 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8676 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8678 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
8679 _lt_dsymutil='~$DSYMUTIL $lib || :'
8686 for ac_header in dlfcn.h
8688 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
" "$ac_includes_default
8690 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
8691 cat >>confdefs.h <<_ACEOF
8692 #define HAVE_DLFCN_H 1
8715 # Check whether --enable-static was given.
8716 if test "${enable_static+set}" = set; then :
8717 enableval=$enable_static; p=${PACKAGE-default}
8719 yes) enable_static=yes ;;
8720 no) enable_static=no ;;
8723 # Look at the argument we got. We use all the common list separators.
8724 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8725 for pkg in $enableval; do
8727 if test "X
$pkg" = "X
$p"; then
8747 # Check whether --with-pic was given.
8748 if test "${with_pic+set}" = set; then :
8749 withval=$with_pic; pic_mode="$withval"
8755 test -z "$pic_mode" && pic_mode=default
8763 # Check whether --enable-fast-install was given.
8764 if test "${enable_fast_install+set}" = set; then :
8765 enableval=$enable_fast_install; p=${PACKAGE-default}
8767 yes) enable_fast_install=yes ;;
8768 no) enable_fast_install=no ;;
8770 enable_fast_install=no
8771 # Look at the argument we got. We use all the common list separators.
8772 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8773 for pkg in $enableval; do
8775 if test "X
$pkg" = "X
$p"; then
8776 enable_fast_install=yes
8783 enable_fast_install=yes
8796 # This can be used to rebuild libtool when needed
8797 LIBTOOL_DEPS="$ltmain"
8799 # Always use our own libtool.
8800 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8827 test -z "$LN_S" && LN_S="ln -s"
8842 if test -n "${ZSH_VERSION+set}" ; then
8843 setopt NO_GLOB_SUBST
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
8847 $as_echo_n "checking
for objdir...
" >&6; }
8848 if ${lt_cv_objdir+:} false; then :
8849 $as_echo_n "(cached
) " >&6
8851 rm -f .libs 2>/dev/null
8852 mkdir .libs 2>/dev/null
8853 if test -d .libs; then
8856 # MS-DOS does not allow filenames that begin with a dot.
8859 rmdir .libs 2>/dev/null
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
8862 $as_echo "$lt_cv_objdir" >&6; }
8863 objdir=$lt_cv_objdir
8869 cat >>confdefs.h <<_ACEOF
8870 #define LT_OBJDIR "$lt_cv_objdir/"
8878 # AIX sometimes has problems with the GCC collect2 program. For some
8879 # reason, if we set the COLLECT_NAMES environment variable, the problems
8880 # vanish in a puff of smoke.
8881 if test "X
${COLLECT_NAMES+set}" != Xset; then
8883 export COLLECT_NAMES
8890 can_build_shared=yes
8892 # All known linkers require a `.a' archive for static linking (except MSVC,
8893 # which needs '.lib').
8896 with_gnu_ld="$lt_cv_prog_gnu_ld"
8899 old_CFLAGS="$CFLAGS"
8901 # Set sane defaults for various variables
8902 test -z "$CC" && CC=cc
8903 test -z "$LTCC" && LTCC=$CC
8904 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8905 test -z "$LD" && LD=ld
8906 test -z "$ac_objext" && ac_objext=o
8908 for cc_temp in $compiler""; do
8910 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8911 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8916 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
8919 # Only perform the check for file, if the check method requires it
8920 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8921 case $deplibs_check_method in
8923 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
8925 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
8926 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8927 $as_echo_n "(cached
) " >&6
8931 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8934 lt_save_MAGIC_CMD="$MAGIC_CMD"
8935 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8936 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
8937 for ac_dir in $ac_dummy; do
8939 test -z "$ac_dir" && ac_dir=.
8940 if test -f $ac_dir/${ac_tool_prefix}file; then
8941 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8942 if test -n "$file_magic_test_file"; then
8943 case $deplibs_check_method in
8945 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
8946 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8947 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8948 $EGREP "$file_magic_regex" > /dev/null; then
8953 *** Warning: the command libtool uses to detect shared libraries,
8954 *** $file_magic_cmd, produces output that libtool cannot recognize.
8955 *** The result is that libtool may fail to recognize shared libraries
8956 *** as such. This will affect the creation of libtool libraries that
8957 *** depend on shared libraries, but programs linked with such libtool
8958 *** libraries will work regardless of this problem. Nevertheless, you
8959 *** may want to report the problem to your system manager and/or to
8960 *** bug-libtool@gnu.org
8970 MAGIC_CMD="$lt_save_MAGIC_CMD"
8975 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8976 if test -n "$MAGIC_CMD"; then
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
8978 $as_echo "$MAGIC_CMD" >&6; }
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8981 $as_echo "no
" >&6; }
8988 if test -z "$lt_cv_path_MAGIC_CMD"; then
8989 if test -n "$ac_tool_prefix"; then
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
8991 $as_echo_n "checking
for file...
" >&6; }
8992 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8993 $as_echo_n "(cached
) " >&6
8997 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9000 lt_save_MAGIC_CMD="$MAGIC_CMD"
9001 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9002 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
9003 for ac_dir in $ac_dummy; do
9005 test -z "$ac_dir" && ac_dir=.
9006 if test -f $ac_dir/file; then
9007 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9008 if test -n "$file_magic_test_file"; then
9009 case $deplibs_check_method in
9011 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
9012 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9013 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9014 $EGREP "$file_magic_regex" > /dev/null; then
9019 *** Warning: the command libtool uses to detect shared libraries,
9020 *** $file_magic_cmd, produces output that libtool cannot recognize.
9021 *** The result is that libtool may fail to recognize shared libraries
9022 *** as such. This will affect the creation of libtool libraries that
9023 *** depend on shared libraries, but programs linked with such libtool
9024 *** libraries will work regardless of this problem. Nevertheless, you
9025 *** may want to report the problem to your system manager and/or to
9026 *** bug-libtool@gnu.org
9036 MAGIC_CMD="$lt_save_MAGIC_CMD"
9041 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9042 if test -n "$MAGIC_CMD"; then
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
9044 $as_echo "$MAGIC_CMD" >&6; }
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9047 $as_echo "no
" >&6; }
9060 # Use C for the default configuration in the libtool script
9064 ac_cpp='$CPP $CPPFLAGS'
9065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9070 # Source file extension for C test sources.
9073 # Object file extension for compiled C test sources.
9077 # Code to be used in simple compile tests
9078 lt_simple_compile_test_code="int some_variable
= 0;"
9080 # Code to be used in simple link tests
9081 lt_simple_link_test_code='int main(){return(0);}'
9089 # If no C compiler was specified, use CC.
9092 # If no C compiler flags were specified, use CFLAGS.
9093 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9095 # Allow CC to be a program name with arguments.
9098 # Save the default compiler, since it gets overwritten when the other
9099 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9100 compiler_DEFAULT=$CC
9102 # save warnings/boilerplate of simple test code
9103 ac_outfile=conftest.$ac_objext
9104 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9105 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9106 _lt_compiler_boilerplate=`cat conftest.err`
9109 ac_outfile=conftest.$ac_objext
9110 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9111 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9112 _lt_linker_boilerplate=`cat conftest.err`
9117 ## There is no encapsulation within the following macros, do not change
9118 ## the running order or otherwise move them around unless you know exactly
9119 ## what you are doing...
9120 if test -n "$compiler"; then
9122 lt_prog_compiler_no_builtin_flag=
9124 if test "$GCC" = yes; then
9125 case $cc_basename in
9127 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9129 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
9133 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
9134 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9135 $as_echo_n "(cached
) " >&6
9137 lt_cv_prog_compiler_rtti_exceptions=no
9138 ac_outfile=conftest.$ac_objext
9139 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9140 lt_compiler_flag="-fno-rtti -fno-exceptions"
9141 # Insert the option either (1) after the last *FLAGS variable, or
9142 # (2) before a word containing "conftest.
", or (3) at the end.
9143 # Note that $ac_compile itself does not contain backslashes and begins
9144 # with a dollar sign (not a hyphen), so the echo should work correctly.
9145 # The option is referenced via a variable to avoid confusing sed.
9146 lt_compile=`echo "$ac_compile" | $SED \
9147 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9148 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9149 -e 's:$: $lt_compiler_flag:'`
9150 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9151 (eval "$lt_compile" 2>conftest.err)
9153 cat conftest.err >&5
9154 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9155 if (exit $ac_status) && test -s "$ac_outfile"; then
9156 # The compiler can only warn and ignore the option if not recognized
9157 # So say no if there are warnings other than the usual output.
9158 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9159 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9160 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9161 lt_cv_prog_compiler_rtti_exceptions=yes
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
9168 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9170 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9171 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9183 lt_prog_compiler_wl=
9184 lt_prog_compiler_pic=
9185 lt_prog_compiler_static=
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
9188 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
9190 if test "$GCC" = yes; then
9191 lt_prog_compiler_wl='-Wl,'
9192 lt_prog_compiler_static='-static'
9196 # All AIX code is PIC.
9197 if test "$host_cpu" = ia64; then
9198 # AIX 5 now supports IA64 processor
9199 lt_prog_compiler_static='-Bstatic'
9201 lt_prog_compiler_pic='-fPIC'
9207 # see comment about AmigaOS4 .so support
9208 lt_prog_compiler_pic='-fPIC'
9211 # FIXME: we need at least 68020 code to build shared libraries, but
9212 # adding the `-m68020' flag to GCC prevents building anything better,
9214 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9219 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9220 # PIC is the default for these OSes.
9223 mingw* | cygwin* | pw32* | os2* | cegcc*)
9224 # This hack is so that the source file can tell whether it is being
9225 # built for inclusion in a dll (and should export symbols for example).
9226 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9227 # (--disable-auto-import) libraries
9228 lt_prog_compiler_pic='-DDLL_EXPORT'
9231 darwin* | rhapsody*)
9232 # PIC is the default on this platform
9233 # Common symbols not allowed in MH_DYLIB files
9234 lt_prog_compiler_pic='-fno-common'
9238 # PIC is the default for Haiku.
9239 # The "-static" flag exists, but is broken.
9240 lt_prog_compiler_static=
9244 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9245 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9246 # sets the default TLS model and affects inlining.
9252 lt_prog_compiler_pic='-fPIC'
9258 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9259 # Instead, we relocate shared libraries at runtime.
9263 # Just because we use GCC doesn't mean we suddenly get shared libraries
9264 # on systems that don't support them.
9265 lt_prog_compiler_can_build_shared=no
9270 # QNX uses GNU C++, but need to define -shared option too, otherwise
9272 lt_prog_compiler_pic='-fPIC -shared'
9276 if test -d /usr/nec; then
9277 lt_prog_compiler_pic=-Kconform_pic
9282 lt_prog_compiler_pic='-fPIC'
9286 case $cc_basename in
9287 nvcc*) # Cuda Compiler Driver 2.2
9288 lt_prog_compiler_wl='-Xlinker '
9289 lt_prog_compiler_pic='-Xcompiler -fPIC'
9293 # PORTME Check for flag to pass linker flags through the system compiler.
9296 lt_prog_compiler_wl='-Wl,'
9297 if test "$host_cpu" = ia64; then
9298 # AIX 5 now supports IA64 processor
9299 lt_prog_compiler_static='-Bstatic'
9301 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9305 mingw* | cygwin* | pw32* | os2* | cegcc*)
9306 # This hack is so that the source file can tell whether it is being
9307 # built for inclusion in a dll (and should export symbols for example).
9308 lt_prog_compiler_pic='-DDLL_EXPORT'
9311 hpux9* | hpux10* | hpux11*)
9312 lt_prog_compiler_wl='-Wl,'
9313 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9320 lt_prog_compiler_pic='+Z'
9323 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9324 lt_prog_compiler_static='${wl}-a ${wl}archive'
9327 irix5* | irix6* | nonstopux*)
9328 lt_prog_compiler_wl='-Wl,'
9329 # PIC (with -KPIC) is the default.
9330 lt_prog_compiler_static='-non_shared'
9333 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9334 case $cc_basename in
9335 # old Intel for x86_64 which still supported -KPIC.
9337 lt_prog_compiler_wl='-Wl,'
9338 lt_prog_compiler_pic='-KPIC'
9339 lt_prog_compiler_static='-static'
9341 # icc used to be incompatible with GCC.
9342 # ICC 10 doesn't accept -KPIC any more.
9344 lt_prog_compiler_wl='-Wl,'
9345 lt_prog_compiler_pic='-fPIC'
9346 lt_prog_compiler_static='-static'
9348 # Lahey Fortran 8.1.
9350 lt_prog_compiler_wl='-Wl,'
9351 lt_prog_compiler_pic='--shared'
9352 lt_prog_compiler_static='--static'
9354 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9355 # Portland Group compilers (*not* the Pentium gcc compiler,
9356 # which looks to be a dead project)
9357 lt_prog_compiler_wl='-Wl,'
9358 lt_prog_compiler_pic='-fpic'
9359 lt_prog_compiler_static='-Bstatic'
9362 lt_prog_compiler_wl='-Wl,'
9363 # All Alpha code is PIC.
9364 lt_prog_compiler_static='-non_shared'
9366 xl* | bgxl* | bgf* | mpixl*)
9367 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9368 lt_prog_compiler_wl='-Wl,'
9369 lt_prog_compiler_pic='-qpic'
9370 lt_prog_compiler_static='-qstaticlink'
9373 case `$CC -V 2>&1 | sed 5q` in
9374 *Sun\ F* | *Sun*Fortran*)
9375 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9376 lt_prog_compiler_pic='-KPIC'
9377 lt_prog_compiler_static='-Bstatic'
9378 lt_prog_compiler_wl=''
9382 lt_prog_compiler_pic='-KPIC'
9383 lt_prog_compiler_static='-Bstatic'
9384 lt_prog_compiler_wl='-Wl,'
9392 lt_prog_compiler_pic='-KPIC'
9393 lt_prog_compiler_static='-Bstatic'
9397 # QNX uses GNU C++, but need to define -shared option too, otherwise
9399 lt_prog_compiler_pic='-fPIC -shared'
9402 osf3* | osf4* | osf5*)
9403 lt_prog_compiler_wl='-Wl,'
9404 # All OSF/1 code is PIC.
9405 lt_prog_compiler_static='-non_shared'
9409 lt_prog_compiler_static='-non_shared'
9413 lt_prog_compiler_pic='-KPIC'
9414 lt_prog_compiler_static='-Bstatic'
9415 case $cc_basename in
9417 lt_prog_compiler_wl='-Qoption ld ';;
9419 lt_prog_compiler_wl='-Wl,';;
9424 lt_prog_compiler_wl='-Qoption ld '
9425 lt_prog_compiler_pic='-PIC'
9426 lt_prog_compiler_static='-Bstatic'
9429 sysv4 | sysv4.2uw2* | sysv4.3*)
9430 lt_prog_compiler_wl='-Wl,'
9431 lt_prog_compiler_pic='-KPIC'
9432 lt_prog_compiler_static='-Bstatic'
9436 if test -d /usr/nec ;then
9437 lt_prog_compiler_pic='-Kconform_pic'
9438 lt_prog_compiler_static='-Bstatic'
9442 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9443 lt_prog_compiler_wl='-Wl,'
9444 lt_prog_compiler_pic='-KPIC'
9445 lt_prog_compiler_static='-Bstatic'
9449 lt_prog_compiler_wl='-Wl,'
9450 lt_prog_compiler_can_build_shared=no
9454 lt_prog_compiler_pic='-pic'
9455 lt_prog_compiler_static='-Bstatic'
9459 lt_prog_compiler_can_build_shared=no
9465 # For platforms which do not support PIC, -DPIC is meaningless:
9467 lt_prog_compiler_pic=
9470 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
9474 $as_echo "$lt_prog_compiler_pic" >&6; }
9482 # Check to make sure the PIC flag actually works.
9484 if test -n "$lt_prog_compiler_pic"; then
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
9486 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
9487 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9488 $as_echo_n "(cached
) " >&6
9490 lt_cv_prog_compiler_pic_works=no
9491 ac_outfile=conftest.$ac_objext
9492 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9493 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9494 # Insert the option either (1) after the last *FLAGS variable, or
9495 # (2) before a word containing "conftest.
", or (3) at the end.
9496 # Note that $ac_compile itself does not contain backslashes and begins
9497 # with a dollar sign (not a hyphen), so the echo should work correctly.
9498 # The option is referenced via a variable to avoid confusing sed.
9499 lt_compile=`echo "$ac_compile" | $SED \
9500 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9501 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9502 -e 's:$: $lt_compiler_flag:'`
9503 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9504 (eval "$lt_compile" 2>conftest.err)
9506 cat conftest.err >&5
9507 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9508 if (exit $ac_status) && test -s "$ac_outfile"; then
9509 # The compiler can only warn and ignore the option if not recognized
9510 # So say no if there are warnings other than the usual output.
9511 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9512 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9513 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9514 lt_cv_prog_compiler_pic_works=yes
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
9521 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9523 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9524 case $lt_prog_compiler_pic in
9526 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9529 lt_prog_compiler_pic=
9530 lt_prog_compiler_can_build_shared=no
9541 # Check to make sure the static flag actually works.
9543 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
9545 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
9546 if ${lt_cv_prog_compiler_static_works+:} false; then :
9547 $as_echo_n "(cached
) " >&6
9549 lt_cv_prog_compiler_static_works=no
9550 save_LDFLAGS="$LDFLAGS"
9551 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9552 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9553 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9554 # The linker can only warn and ignore the option if not recognized
9555 # So say no if there are warnings
9556 if test -s conftest.err; then
9557 # Append any errors to the config.log.
9558 cat conftest.err 1>&5
9559 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9560 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9561 if diff conftest.exp conftest.er2 >/dev/null; then
9562 lt_cv_prog_compiler_static_works=yes
9565 lt_cv_prog_compiler_static_works=yes
9569 LDFLAGS="$save_LDFLAGS"
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
9573 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9575 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9578 lt_prog_compiler_static=
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
9588 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
9589 if ${lt_cv_prog_compiler_c_o+:} false; then :
9590 $as_echo_n "(cached
) " >&6
9592 lt_cv_prog_compiler_c_o=no
9593 $RM -r conftest 2>/dev/null
9597 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9599 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
9600 # Insert the option either (1) after the last *FLAGS variable, or
9601 # (2) before a word containing "conftest.
", or (3) at the end.
9602 # Note that $ac_compile itself does not contain backslashes and begins
9603 # with a dollar sign (not a hyphen), so the echo should work correctly.
9604 lt_compile=`echo "$ac_compile" | $SED \
9605 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9606 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9607 -e 's:$: $lt_compiler_flag:'`
9608 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9609 (eval "$lt_compile" 2>out/conftest.err)
9611 cat out/conftest.err >&5
9612 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9613 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9615 # The compiler can only warn and ignore the option if not recognized
9616 # So say no if there are warnings
9617 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9618 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9619 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9620 lt_cv_prog_compiler_c_o=yes
9625 # SGI C++ compiler will create directory out/ii_files/ for
9626 # template instantiation
9627 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9628 $RM out/* && rmdir out
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
9635 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
9643 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
9644 if ${lt_cv_prog_compiler_c_o+:} false; then :
9645 $as_echo_n "(cached
) " >&6
9647 lt_cv_prog_compiler_c_o=no
9648 $RM -r conftest 2>/dev/null
9652 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9654 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
9655 # Insert the option either (1) after the last *FLAGS variable, or
9656 # (2) before a word containing "conftest.
", or (3) at the end.
9657 # Note that $ac_compile itself does not contain backslashes and begins
9658 # with a dollar sign (not a hyphen), so the echo should work correctly.
9659 lt_compile=`echo "$ac_compile" | $SED \
9660 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9662 -e 's:$: $lt_compiler_flag:'`
9663 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9664 (eval "$lt_compile" 2>out/conftest.err)
9666 cat out/conftest.err >&5
9667 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9668 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9670 # The compiler can only warn and ignore the option if not recognized
9671 # So say no if there are warnings
9672 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9673 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9674 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9675 lt_cv_prog_compiler_c_o=yes
9680 # SGI C++ compiler will create directory out/ii_files/ for
9681 # template instantiation
9682 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9683 $RM out/* && rmdir out
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
9690 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9695 hard_links="nottested
"
9696 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9697 # do not overwrite the value of need_locks provided by the user
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
9699 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
9702 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9704 ln conftest.a conftest.b 2>&5 || hard_links=no
9705 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
9707 $as_echo "$hard_links" >&6; }
9708 if test "$hard_links" = no; then
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
9710 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
9723 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
9726 allow_undefined_flag=
9727 always_export_symbols=no
9729 archive_expsym_cmds=
9730 compiler_needs_object=no
9731 enable_shared_with_static_runtimes=no
9732 export_dynamic_flag_spec=
9733 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9734 hardcode_automatic=no
9736 hardcode_direct_absolute=no
9737 hardcode_libdir_flag_spec=
9738 hardcode_libdir_flag_spec_ld=
9739 hardcode_libdir_separator=
9741 hardcode_shlibpath_var=unsupported
9743 link_all_deplibs=unknown
9746 old_archive_from_new_cmds=
9747 old_archive_from_expsyms_cmds=
9748 thread_safe_flag_spec=
9749 whole_archive_flag_spec=
9750 # include_expsyms should be a list of space-separated symbols to be *always*
9751 # included in the symbol list
9753 # exclude_expsyms can be an extended regexp of symbols to exclude
9754 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9755 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9756 # as well as any symbol that contains `d'.
9757 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9758 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9759 # platforms (ab)use it in PIC code, but their linkers get confused if
9760 # the symbol is explicitly referenced. Since portable code cannot
9761 # rely on this symbol name, it's probably fine to never include it in
9762 # preloaded symbol tables.
9763 # Exclude shared library initialization/finalization symbols.
9764 extract_expsyms_cmds=
9767 cygwin* | mingw* | pw32* | cegcc*)
9768 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9769 # When not using gcc, we currently assume that we are using
9770 # Microsoft Visual C++.
9771 if test "$GCC" != yes; then
9776 # we just hope/assume this is gcc and not c89 (= MSVC++)
9786 # On some targets, GNU ld is compatible enough with the native linker
9787 # that we're better off using the native interface for both.
9788 lt_use_gnu_ld_interface=no
9789 if test "$with_gnu_ld" = yes; then
9792 # The AIX port of GNU ld has always aspired to compatibility
9793 # with the native linker. However, as the warning in the GNU ld
9794 # block says, versions before 2.19.5* couldn't really create working
9795 # shared libraries, regardless of the interface used.
9796 case `$LD -v 2>&1` in
9797 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9798 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9799 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9801 lt_use_gnu_ld_interface=yes
9806 lt_use_gnu_ld_interface=yes
9811 if test "$lt_use_gnu_ld_interface" = yes; then
9812 # If archive_cmds runs LD, not CC, wlarc should be empty
9815 # Set some defaults for GNU ld with shared library support. These
9816 # are reset later if shared libraries are not supported. Putting them
9817 # here allows them to be overridden if necessary.
9818 runpath_var=LD_RUN_PATH
9819 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9820 export_dynamic_flag_spec='${wl}--export-dynamic'
9821 # ancient GNU ld didn't support --whole-archive et. al.
9822 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9823 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9825 whole_archive_flag_spec=
9827 supports_anon_versioning=no
9828 case `$LD -v 2>&1` in
9829 *GNU\ gold*) supports_anon_versioning=yes ;;
9830 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9831 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9832 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9833 *\ 2.11.*) ;; # other 2.11 versions
9834 *) supports_anon_versioning=yes ;;
9837 # See if GNU ld supports shared libraries.
9840 # On AIX/PPC, the GNU linker is very broken
9841 if test "$host_cpu" != ia64; then
9845 *** Warning: the GNU linker, at least up to release 2.19, is reported
9846 *** to be unable to reliably create shared libraries on AIX.
9847 *** Therefore, libtool is disabling shared libraries support. If you
9848 *** really care for shared libraries, you may want to install binutils
9849 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9850 *** You will then need to restart the configuration process.
9859 # see comment about AmigaOS4 .so support
9860 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9861 archive_expsym_cmds=''
9864 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)'
9865 hardcode_libdir_flag_spec
='-L$libdir'
9866 hardcode_minus_L
=yes
9872 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9873 allow_undefined_flag
=unsupported
9874 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9875 # support --undefined. This deserves some investigation. FIXME
9876 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9882 cygwin
* | mingw
* | pw32
* | cegcc
*)
9883 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9884 # as there is no search path for DLLs.
9885 hardcode_libdir_flag_spec
='-L$libdir'
9886 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9887 allow_undefined_flag
=unsupported
9888 always_export_symbols
=no
9889 enable_shared_with_static_runtimes
=yes
9890 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9892 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9893 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9894 # If the export-symbols file already is a .def file (1st line
9895 # is EXPORTS), use it as is; otherwise, prepend...
9896 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9897 cp $export_symbols $output_objdir/$soname.def;
9899 echo EXPORTS > $output_objdir/$soname.def;
9900 cat $export_symbols >> $output_objdir/$soname.def;
9902 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9909 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9910 link_all_deplibs
=yes
9915 hardcode_shlibpath_var
=no
9916 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9917 export_dynamic_flag_spec
='${wl}-E'
9918 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9919 # Instead, shared libraries are loaded at an image base (0x10000000 by
9920 # default) and relocated if they conflict, which is a slow very memory
9921 # consuming and fragmenting process. To avoid this, we pick a random,
9922 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9923 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9924 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9925 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'
9928 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9930 if test "$host_os" = linux-dietlibc
; then
9931 case $cc_basename in
9932 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9935 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9936 && test "$tmp_diet" = no
9938 tmp_addflag
=' $pic_flag'
9939 tmp_sharedflag
='-shared'
9940 case $cc_basename,$host_cpu in
9941 pgcc
*) # Portland Group C compiler
9942 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'
9943 tmp_addflag
=' $pic_flag'
9945 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9946 # Portland Group f77 and f90 compilers
9947 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'
9948 tmp_addflag
=' $pic_flag -Mnomain' ;;
9949 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9950 tmp_addflag
=' -i_dynamic' ;;
9951 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9952 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9953 ifc
* | ifort
*) # Intel Fortran compiler
9954 tmp_addflag
=' -nofor_main' ;;
9955 lf95
*) # Lahey Fortran 8.1
9956 whole_archive_flag_spec
=
9957 tmp_sharedflag
='--shared' ;;
9958 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9959 tmp_sharedflag
='-qmkshrobj'
9961 nvcc
*) # Cuda Compiler Driver 2.2
9962 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'
9963 compiler_needs_object
=yes
9966 case `$CC -V 2>&1 | sed 5q` in
9967 *Sun\ C
*) # Sun C 5.9
9968 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'
9969 compiler_needs_object
=yes
9970 tmp_sharedflag
='-G' ;;
9971 *Sun\ F
*) # Sun Fortran 8.3
9972 tmp_sharedflag
='-G' ;;
9974 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9976 if test "x$supports_anon_versioning" = xyes
; then
9977 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9978 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9979 echo "local: *; };" >> $output_objdir/$libname.ver~
9980 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9983 case $cc_basename in
9984 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9985 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9986 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9987 hardcode_libdir_flag_spec
=
9988 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9989 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9990 if test "x$supports_anon_versioning" = xyes
; then
9991 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9992 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9993 echo "local: *; };" >> $output_objdir/$libname.ver~
9994 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10004 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10005 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10008 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10009 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10014 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
10018 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10019 *** create shared libraries on Solaris systems. Therefore, libtool
10020 *** is disabling shared libraries support. We urge you to upgrade GNU
10021 *** binutils to release 2.9.1 or newer. Another option is to modify
10022 *** your PATH or compiler configuration so that the native linker is
10023 *** used, and then restart.
10026 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
10027 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10028 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10034 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
10035 case `$LD -v 2>&1` in
10036 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
10040 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10041 *** reliably create shared libraries on SCO systems. Therefore, libtool
10042 *** is disabling shared libraries support. We urge you to upgrade GNU
10043 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10044 *** your PATH or compiler configuration so that the native linker is
10045 *** used, and then restart.
10050 # For security reasons, it is highly recommended that you always
10051 # use absolute paths for naming shared libraries, and exclude the
10052 # DT_RUNPATH tag from executables and libraries. But doing so
10053 # requires that you compile everything twice, which is a pain.
10054 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
10055 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10056 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10057 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10066 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10068 hardcode_direct
=yes
10069 hardcode_shlibpath_var
=no
10073 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
10074 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10075 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10082 if test "$ld_shlibs" = no
; then
10084 hardcode_libdir_flag_spec
=
10085 export_dynamic_flag_spec
=
10086 whole_archive_flag_spec
=
10089 # PORTME fill in a description of your system's linker (not GNU ld)
10092 allow_undefined_flag
=unsupported
10093 always_export_symbols
=yes
10094 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'
10095 # Note: this linker hardcodes the directories in LIBPATH if there
10096 # are no directories specified by -L.
10097 hardcode_minus_L
=yes
10098 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10099 # Neither direct hardcoding nor static linking is supported with a
10101 hardcode_direct
=unsupported
10106 if test "$host_cpu" = ia64
; then
10107 # On IA64, the linker does run time linking by default, so we don't
10108 # have to do anything special.
10109 aix_use_runtimelinking
=no
10110 exp_sym_flag
='-Bexport'
10113 # If we're using GNU nm, then we don't want the "-C" option.
10114 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10115 # Also, AIX nm treats weak defined symbols like other global
10116 # defined symbols, whereas GNU nm marks them as "W".
10117 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
10118 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'
10120 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'
10122 aix_use_runtimelinking
=no
10124 # Test if we are trying to use run time linking or normal
10125 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10126 # need to do runtime linking.
10127 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
10128 for ld_flag
in $LDFLAGS; do
10129 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
10130 aix_use_runtimelinking
=yes
10137 exp_sym_flag
='-bexport'
10138 no_entry_flag
='-bnoentry'
10141 # When large executables or shared objects are built, AIX ld can
10142 # have problems creating the table of contents. If linking a library
10143 # or program results in "error TOC overflow" add -mminimal-toc to
10144 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10145 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10148 hardcode_direct
=yes
10149 hardcode_direct_absolute
=yes
10150 hardcode_libdir_separator
=':'
10151 link_all_deplibs
=yes
10152 file_list_spec
='${wl}-f,'
10154 if test "$GCC" = yes; then
10155 case $host_os in aix4.
[012]|aix4.
[012].
*)
10156 # We only want to do this on AIX 4.2 and lower, the check
10157 # below for broken collect2 doesn't work under 4.3+
10158 collect2name
=`${CC} -print-prog-name=collect2`
10159 if test -f "$collect2name" &&
10160 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
10162 # We have reworked collect2
10165 # We have old collect2
10166 hardcode_direct
=unsupported
10167 # It fails to find uninstalled libraries when the uninstalled
10168 # path is not listed in the libpath. Setting hardcode_minus_L
10169 # to unsupported forces relinking
10170 hardcode_minus_L
=yes
10171 hardcode_libdir_flag_spec
='-L$libdir'
10172 hardcode_libdir_separator
=
10176 shared_flag
='-shared'
10177 if test "$aix_use_runtimelinking" = yes; then
10178 shared_flag
="$shared_flag "'${wl}-G'
10182 if test "$host_cpu" = ia64
; then
10183 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10184 # chokes on -Wl,-G. The following line is correct:
10187 if test "$aix_use_runtimelinking" = yes; then
10188 shared_flag
='${wl}-G'
10190 shared_flag
='${wl}-bM:SRE'
10195 export_dynamic_flag_spec
='${wl}-bexpall'
10196 # It seems that -bexpall does not export symbols beginning with
10197 # underscore (_), so it is better to generate a list of symbols to export.
10198 always_export_symbols
=yes
10199 if test "$aix_use_runtimelinking" = yes; then
10200 # Warning - without using the other runtime loading flags (-brtl),
10201 # -berok will link without error, but may produce a broken library.
10202 allow_undefined_flag
='-berok'
10203 # Determine the default libpath from the value encoded in an
10204 # empty executable.
10205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10206 /* end confdefs.h. */
10216 if ac_fn_c_try_link
"$LINENO"; then :
10218 lt_aix_libpath_sed
='
10219 /Import File Strings/,/^$/ {
10225 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10226 # Check for a 64-bit object if we didn't find anything.
10227 if test -z "$aix_libpath"; then
10228 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10231 rm -f core conftest.err conftest.
$ac_objext \
10232 conftest
$ac_exeext conftest.
$ac_ext
10233 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
10235 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
10236 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"
10238 if test "$host_cpu" = ia64
; then
10239 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
10240 allow_undefined_flag
="-z nodefs"
10241 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"
10243 # Determine the default libpath from the value encoded in an
10244 # empty executable.
10245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10246 /* end confdefs.h. */
10256 if ac_fn_c_try_link
"$LINENO"; then :
10258 lt_aix_libpath_sed
='
10259 /Import File Strings/,/^$/ {
10265 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10266 # Check for a 64-bit object if we didn't find anything.
10267 if test -z "$aix_libpath"; then
10268 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10271 rm -f core conftest.err conftest.
$ac_objext \
10272 conftest
$ac_exeext conftest.
$ac_ext
10273 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
10275 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
10276 # Warning - without using the other run time loading flags,
10277 # -berok will link without error, but may produce a broken library.
10278 no_undefined_flag
=' ${wl}-bernotok'
10279 allow_undefined_flag
=' ${wl}-berok'
10280 if test "$with_gnu_ld" = yes; then
10281 # We only use this code for GNU lds that support --whole-archive.
10282 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10284 # Exported symbols can be pulled into shared objects from archives
10285 whole_archive_flag_spec
='$convenience'
10287 archive_cmds_need_lc
=yes
10288 # This is similar to how AIX traditionally builds its shared libraries.
10289 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'
10297 # see comment about AmigaOS4 .so support
10298 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10299 archive_expsym_cmds
=''
10302 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)'
10303 hardcode_libdir_flag_spec
='-L$libdir'
10304 hardcode_minus_L
=yes
10310 export_dynamic_flag_spec
=-rdynamic
10313 cygwin
* | mingw
* | pw32
* | cegcc
*)
10314 # When not using gcc, we currently assume that we are using
10315 # Microsoft Visual C++.
10316 # hardcode_libdir_flag_spec is actually meaningless, as there is
10317 # no search path for DLLs.
10318 hardcode_libdir_flag_spec
=' '
10319 allow_undefined_flag
=unsupported
10320 # Tell ltmain to make .lib files, not .a files.
10322 # Tell ltmain to make .dll files, not .so files.
10324 # FIXME: Setting linknames here is a bad hack.
10325 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10326 # The linker will automatically build a .lib file if we build a DLL.
10327 old_archive_from_new_cmds
='true'
10328 # FIXME: Should let the user specify the lib program.
10329 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
10330 fix_srcfile_path
='`cygpath -w "$srcfile"`'
10331 enable_shared_with_static_runtimes
=yes
10334 darwin
* | rhapsody
*)
10337 archive_cmds_need_lc
=no
10339 hardcode_automatic
=yes
10340 hardcode_shlibpath_var
=unsupported
10341 if test "$lt_cv_ld_force_load" = "yes"; then
10342 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\"`'
10344 whole_archive_flag_spec
=''
10346 link_all_deplibs
=yes
10347 allow_undefined_flag
="$_lt_dar_allow_undefined"
10348 case $cc_basename in
10349 ifort
*) _lt_dar_can_shared
=yes ;;
10350 *) _lt_dar_can_shared
=$GCC ;;
10352 if test "$_lt_dar_can_shared" = "yes"; then
10353 output_verbose_link_cmd
=func_echo_all
10354 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10355 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10356 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}"
10357 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}"
10366 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10367 hardcode_libdir_flag_spec
='-L$libdir'
10368 hardcode_shlibpath_var
=no
10371 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10372 # support. Future versions do this automatically, but an explicit c++rt0.o
10373 # does not break anything, and helps significantly (at the cost of a little
10376 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10377 hardcode_libdir_flag_spec
='-R$libdir'
10378 hardcode_direct
=yes
10379 hardcode_shlibpath_var
=no
10382 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10384 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10385 hardcode_direct
=yes
10386 hardcode_minus_L
=yes
10387 hardcode_shlibpath_var
=no
10390 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10391 freebsd
* | dragonfly
*)
10392 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10393 hardcode_libdir_flag_spec
='-R$libdir'
10394 hardcode_direct
=yes
10395 hardcode_shlibpath_var
=no
10399 if test "$GCC" = yes; then
10400 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'
10402 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'
10404 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10405 hardcode_libdir_separator
=:
10406 hardcode_direct
=yes
10408 # hardcode_minus_L: Not really in the search PATH,
10409 # but as the default location of the library.
10410 hardcode_minus_L
=yes
10411 export_dynamic_flag_spec
='${wl}-E'
10415 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
10416 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10418 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10420 if test "$with_gnu_ld" = no
; then
10421 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10422 hardcode_libdir_flag_spec_ld
='+b $libdir'
10423 hardcode_libdir_separator
=:
10424 hardcode_direct
=yes
10425 hardcode_direct_absolute
=yes
10426 export_dynamic_flag_spec
='${wl}-E'
10427 # hardcode_minus_L: Not really in the search PATH,
10428 # but as the default location of the library.
10429 hardcode_minus_L
=yes
10434 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
10437 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10440 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10443 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10449 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10452 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10456 # Older versions of the 11.00 compiler do not understand -b yet
10457 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10459 $as_echo_n "checking if $CC understands -b... " >&6; }
10460 if ${lt_cv_prog_compiler__b+:} false
; then :
10461 $as_echo_n "(cached) " >&6
10463 lt_cv_prog_compiler__b
=no
10464 save_LDFLAGS
="$LDFLAGS"
10465 LDFLAGS
="$LDFLAGS -b"
10466 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
10467 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
10468 # The linker can only warn and ignore the option if not recognized
10469 # So say no if there are warnings
10470 if test -s conftest.err
; then
10471 # Append any errors to the config.log.
10472 cat conftest.err
1>&5
10473 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
10474 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
10475 if diff conftest.exp conftest.er2
>/dev
/null
; then
10476 lt_cv_prog_compiler__b
=yes
10479 lt_cv_prog_compiler__b
=yes
10483 LDFLAGS
="$save_LDFLAGS"
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10487 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10489 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
10490 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10492 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10498 if test "$with_gnu_ld" = no
; then
10499 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10500 hardcode_libdir_separator
=:
10505 hardcode_shlibpath_var
=no
10508 hardcode_direct
=yes
10509 hardcode_direct_absolute
=yes
10510 export_dynamic_flag_spec
='${wl}-E'
10512 # hardcode_minus_L: Not really in the search PATH,
10513 # but as the default location of the library.
10514 hardcode_minus_L
=yes
10520 irix5
* | irix6
* | nonstopux
*)
10521 if test "$GCC" = yes; then
10522 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'
10523 # Try to use the -exported_symbol ld option, if it does not
10524 # work, assume that -exports_file does not work either and
10525 # implicitly export all symbols.
10526 save_LDFLAGS
="$LDFLAGS"
10527 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10529 /* end confdefs.h. */
10532 if ac_fn_c_try_link
"$LINENO"; then :
10533 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'
10536 rm -f core conftest.err conftest.
$ac_objext \
10537 conftest
$ac_exeext conftest.
$ac_ext
10538 LDFLAGS
="$save_LDFLAGS"
10540 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'
10541 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'
10543 archive_cmds_need_lc
='no'
10544 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10545 hardcode_libdir_separator
=:
10547 link_all_deplibs
=yes
10551 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10552 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10554 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10556 hardcode_libdir_flag_spec
='-R$libdir'
10557 hardcode_direct
=yes
10558 hardcode_shlibpath_var
=no
10562 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10563 hardcode_direct
=yes
10564 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10565 hardcode_libdir_separator
=:
10566 hardcode_shlibpath_var
=no
10573 if test -f /usr
/libexec
/ld.so
; then
10574 hardcode_direct
=yes
10575 hardcode_shlibpath_var
=no
10576 hardcode_direct_absolute
=yes
10577 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10578 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10579 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10580 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10581 export_dynamic_flag_spec
='${wl}-E'
10584 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
10585 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10586 hardcode_libdir_flag_spec
='-R$libdir'
10589 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10590 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10600 hardcode_libdir_flag_spec
='-L$libdir'
10601 hardcode_minus_L
=yes
10602 allow_undefined_flag
=unsupported
10603 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'
10604 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10608 if test "$GCC" = yes; then
10609 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10610 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'
10612 allow_undefined_flag
=' -expect_unresolved \*'
10613 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'
10615 archive_cmds_need_lc
='no'
10616 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10617 hardcode_libdir_separator
=:
10620 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
10621 if test "$GCC" = yes; then
10622 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10623 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'
10624 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10626 allow_undefined_flag
=' -expect_unresolved \*'
10627 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'
10628 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~
10629 $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'
10631 # Both c and cxx compiler support -rpath directly
10632 hardcode_libdir_flag_spec
='-rpath $libdir'
10634 archive_cmds_need_lc
='no'
10635 hardcode_libdir_separator
=:
10639 no_undefined_flag
=' -z defs'
10640 if test "$GCC" = yes; then
10642 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10643 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10644 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10646 case `$CC -V 2>&1` in
10649 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10650 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10651 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10655 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10656 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10657 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10661 hardcode_libdir_flag_spec
='-R$libdir'
10662 hardcode_shlibpath_var
=no
10664 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10666 # The compiler driver will combine and reorder linker options,
10667 # but understands `-z linker_flag'. GCC discards it without `$wl',
10668 # but is careful enough not to reorder.
10669 # Supported since Solaris 2.6 (maybe 2.5.1?)
10670 if test "$GCC" = yes; then
10671 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10673 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10677 link_all_deplibs
=yes
10681 if test "x$host_vendor" = xsequent
; then
10682 # Use $CC to link under sequent, because it throws in some extra .o
10683 # files that make .init and .fini sections work.
10684 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10686 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10688 hardcode_libdir_flag_spec
='-L$libdir'
10689 hardcode_direct
=yes
10690 hardcode_minus_L
=yes
10691 hardcode_shlibpath_var
=no
10695 case $host_vendor in
10697 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10698 hardcode_direct
=yes # is this really true???
10701 ## LD is ld it makes a PLAMLIB
10702 ## CC just makes a GrossModule.
10703 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10704 reload_cmds
='$CC -r -o $output$reload_objs'
10708 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10709 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10712 runpath_var
='LD_RUN_PATH'
10713 hardcode_shlibpath_var
=no
10717 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10718 hardcode_shlibpath_var
=no
10719 export_dynamic_flag_spec
='-Bexport'
10723 if test -d /usr
/nec
; then
10724 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10725 hardcode_shlibpath_var
=no
10726 runpath_var
=LD_RUN_PATH
10727 hardcode_runpath_var
=yes
10732 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10733 no_undefined_flag
='${wl}-z,text'
10734 archive_cmds_need_lc
=no
10735 hardcode_shlibpath_var
=no
10736 runpath_var
='LD_RUN_PATH'
10738 if test "$GCC" = yes; then
10739 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10740 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10742 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10743 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10747 sysv5
* | sco3.2v5
* | sco5v6
*)
10748 # Note: We can NOT use -z defs as we might desire, because we do not
10749 # link with -lc, and that would cause any symbols used from libc to
10750 # always be unresolved, which means just about no library would
10751 # ever link correctly. If we're not using GNU ld we use -z text
10752 # though, which does catch some bad symbols but isn't as heavy-handed
10754 no_undefined_flag
='${wl}-z,text'
10755 allow_undefined_flag
='${wl}-z,nodefs'
10756 archive_cmds_need_lc
=no
10757 hardcode_shlibpath_var
=no
10758 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10759 hardcode_libdir_separator
=':'
10760 link_all_deplibs
=yes
10761 export_dynamic_flag_spec
='${wl}-Bexport'
10762 runpath_var
='LD_RUN_PATH'
10764 if test "$GCC" = yes; then
10765 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10766 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10768 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10769 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10774 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10775 hardcode_libdir_flag_spec
='-L$libdir'
10776 hardcode_shlibpath_var
=no
10784 if test x
$host_vendor = xsni
; then
10786 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10787 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10794 $as_echo "$ld_shlibs" >&6; }
10795 test "$ld_shlibs" = no
&& can_build_shared
=no
10797 with_gnu_ld
=$with_gnu_ld
10814 # Do we need to explicitly link libc?
10816 case "x$archive_cmds_need_lc" in
10818 # Assume -lc should be added
10819 archive_cmds_need_lc
=yes
10821 if test "$enable_shared" = yes && test "$GCC" = yes; then
10822 case $archive_cmds in
10824 # FIXME: we may have to deal with multi-command sequences.
10827 # Test whether the compiler implicitly links with -lc since on some
10828 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10829 # to ld, don't add -lc before -lgcc.
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10831 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10832 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10833 $as_echo_n "(cached) " >&6
10836 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10838 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10839 (eval $ac_compile) 2>&5
10841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10842 test $ac_status = 0; } 2>conftest.err
; then
10845 libobjs
=conftest.
$ac_objext
10847 wl
=$lt_prog_compiler_wl
10848 pic_flag
=$lt_prog_compiler_pic
10854 lt_save_allow_undefined_flag
=$allow_undefined_flag
10855 allow_undefined_flag
=
10856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10857 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10860 test $ac_status = 0; }
10862 lt_cv_archive_cmds_need_lc
=no
10864 lt_cv_archive_cmds_need_lc
=yes
10866 allow_undefined_flag
=$lt_save_allow_undefined_flag
10868 cat conftest.err
1>&5
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10874 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10875 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11039 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11041 if test "$GCC" = yes; then
11043 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
11044 *) lt_awk_arg
="/^libraries:/" ;;
11047 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
11048 *) lt_sed_strip_eq
="s,=/,/,g" ;;
11050 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11051 case $lt_search_path_spec in
11053 # if the path contains ";" then we assume it to be the separator
11054 # otherwise default to the standard path separator (i.e. ":") - it is
11055 # assumed that no part of a normal pathname contains ";" but that should
11056 # okay in the real world where ";" in dirpaths is itself problematic.
11057 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11060 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11063 # Ok, now we have the path, separated by spaces, we can step through it
11064 # and add multilib dir if necessary.
11065 lt_tmp_lt_search_path_spec
=
11066 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11067 for lt_sys_path
in $lt_search_path_spec; do
11068 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11069 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11071 test -d "$lt_sys_path" && \
11072 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
11075 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11076 BEGIN {RS=" "; FS="/|\n";} {
11079 for (lt_i = NF; lt_i > 0; lt_i--) {
11080 if ($lt_i != "" && $lt_i != ".") {
11081 if ($lt_i == "..") {
11084 if (lt_count == 0) {
11085 lt_foo="/" $lt_i lt_foo;
11092 if (lt_foo != "") { lt_freq[lt_foo]++; }
11093 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11095 # AWK program above erroneously prepends '/' to C:/dos/paths
11098 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
11099 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11101 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11103 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
11105 library_names_spec
=
11106 libname_spec
='lib$name'
11110 postuninstall_cmds
=
11114 shlibpath_overrides_runpath
=unknown
11116 dynamic_linker
="$host_os ld.so"
11117 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
11118 need_lib_prefix
=unknown
11119 hardcode_into_libs
=no
11121 # when you set need_version to no, make sure it does not cause -set_version
11122 # flags to be left without arguments
11123 need_version
=unknown
11128 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
11129 shlibpath_var
=LIBPATH
11131 # AIX 3 has no versioning support, so we append a major version to the name.
11132 soname_spec
='${libname}${release}${shared_ext}$major'
11139 hardcode_into_libs
=yes
11140 if test "$host_cpu" = ia64
; then
11141 # AIX 5 supports IA64
11142 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11143 shlibpath_var
=LD_LIBRARY_PATH
11145 # With GCC up to 2.95.x, collect2 would create an import file
11146 # for dependence libraries. The import file would start with
11147 # the line `#! .'. This would cause the generated library to
11148 # depend on `.', always an invalid library. This was fixed in
11149 # development snapshots of GCC prior to 3.0.
11151 aix4 | aix4.
[01] | aix4.
[01].
*)
11152 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11154 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
11157 can_build_shared
=no
11161 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11162 # soname into executable. Probably we can add versioning support to
11163 # collect2, so additional links can be useful in future.
11164 if test "$aix_use_runtimelinking" = yes; then
11165 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11166 # instead of lib<name>.a to let people know that these are not
11167 # typical AIX shared libraries.
11168 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11170 # We preserve .a as extension for shared libraries through AIX4.2
11171 # and later when we are not doing run time linking.
11172 library_names_spec
='${libname}${release}.a $libname.a'
11173 soname_spec
='${libname}${release}${shared_ext}$major'
11175 shlibpath_var
=LIBPATH
11182 # Since July 2007 AmigaOS4 officially supports .so libraries.
11183 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11184 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11187 library_names_spec
='$libname.ixlibrary $libname.a'
11188 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11189 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'
11195 library_names_spec
='${libname}${shared_ext}'
11196 dynamic_linker
="$host_os ld.so"
11197 shlibpath_var
=LIBRARY_PATH
11203 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11204 soname_spec
='${libname}${release}${shared_ext}$major'
11205 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
11206 shlibpath_var
=LD_LIBRARY_PATH
11207 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11208 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
11209 # the default ld.so.conf also contains /usr/contrib/lib and
11210 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11211 # libtool to hard-code these into programs
11214 cygwin
* | mingw
* | pw32
* | cegcc
*)
11215 version_type
=windows
11220 case $GCC,$host_os in
11221 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
11222 library_names_spec
='$libname.dll.a'
11223 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11224 postinstall_cmds
='base_file=`basename \${file}`~
11225 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11226 dldir=$destdir/`dirname \$dlpath`~
11227 test -d \$dldir || mkdir -p \$dldir~
11228 $install_prog $dir/$dlname \$dldir/$dlname~
11229 chmod a+x \$dldir/$dlname~
11230 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11231 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11233 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11234 dlpath=$dir/\$dldll~
11236 shlibpath_overrides_runpath
=yes
11240 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11241 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11243 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
11246 # MinGW DLLs use traditional 'lib' prefix
11247 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11250 # pw32 DLLs use 'pw' prefix rather than 'lib'
11251 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11257 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11260 dynamic_linker
='Win32 ld.exe'
11261 # FIXME: first we should search . and the directory the executable is in
11265 darwin
* | rhapsody
*)
11266 dynamic_linker
="$host_os dyld"
11267 version_type
=darwin
11270 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11271 soname_spec
='${libname}${release}${major}$shared_ext'
11272 shlibpath_overrides_runpath
=yes
11273 shlibpath_var
=DYLD_LIBRARY_PATH
11274 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
11276 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
11277 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
11284 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11285 soname_spec
='${libname}${release}${shared_ext}$major'
11286 shlibpath_var
=LD_LIBRARY_PATH
11289 freebsd
* | dragonfly
*)
11290 # DragonFly does not have aout. When/if they implement a new
11291 # versioning mechanism, adjust this.
11292 if test -x /usr
/bin
/objformat
; then
11293 objformat
=`/usr/bin/objformat`
11296 freebsd
[23].
*) objformat
=aout
;;
11297 *) objformat
=elf
;;
11300 version_type
=freebsd-
$objformat
11301 case $version_type in
11303 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11308 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11312 shlibpath_var
=LD_LIBRARY_PATH
11315 shlibpath_overrides_runpath
=yes
11317 freebsd3.
[01]* | freebsdelf3.
[01]*)
11318 shlibpath_overrides_runpath
=yes
11319 hardcode_into_libs
=yes
11321 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
11322 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
11323 shlibpath_overrides_runpath
=no
11324 hardcode_into_libs
=yes
11326 *) # from 4.6 on, and DragonFly
11327 shlibpath_overrides_runpath
=yes
11328 hardcode_into_libs
=yes
11337 dynamic_linker
="$host_os runtime_loader"
11338 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11339 soname_spec
='${libname}${release}${shared_ext}$major'
11340 shlibpath_var
=LIBRARY_PATH
11341 shlibpath_overrides_runpath
=yes
11342 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11343 hardcode_into_libs
=yes
11346 hpux9
* | hpux10
* | hpux11
*)
11347 # Give a soname corresponding to the major version so that dld.sl refuses to
11348 # link against other versions.
11355 hardcode_into_libs
=yes
11356 dynamic_linker
="$host_os dld.so"
11357 shlibpath_var
=LD_LIBRARY_PATH
11358 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11359 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11360 soname_spec
='${libname}${release}${shared_ext}$major'
11361 if test "X$HPUX_IA64_MODE" = X32
; then
11362 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11364 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
11366 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11370 hardcode_into_libs
=yes
11371 dynamic_linker
="$host_os dld.sl"
11372 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
11373 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11374 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11375 soname_spec
='${libname}${release}${shared_ext}$major'
11376 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11377 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11381 dynamic_linker
="$host_os dld.sl"
11382 shlibpath_var
=SHLIB_PATH
11383 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
11384 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11385 soname_spec
='${libname}${release}${shared_ext}$major'
11388 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11389 postinstall_cmds
='chmod 555 $lib'
11390 # or fails outright, so override atomically:
11391 install_override_mode
=555
11398 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11399 soname_spec
='${libname}${release}${shared_ext}$major'
11400 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
11401 shlibpath_var
=LD_LIBRARY_PATH
11402 shlibpath_overrides_runpath
=no
11403 hardcode_into_libs
=yes
11406 irix5
* | irix6
* | nonstopux
*)
11408 nonstopux
*) version_type
=nonstopux
;;
11410 if test "$lt_cv_prog_gnu_ld" = yes; then
11418 soname_spec
='${libname}${release}${shared_ext}$major'
11419 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11421 irix5
* | nonstopux
*)
11422 libsuff
= shlibsuff
=
11425 case $LD in # libtool.m4 will add one of these switches to LD
11426 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
11427 libsuff
= shlibsuff
= libmagic
=32-bit;;
11428 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
11429 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
11430 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
11431 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
11432 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
11436 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
11437 shlibpath_overrides_runpath
=no
11438 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11439 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
11440 hardcode_into_libs
=yes
11443 # No shared lib support for Linux oldld, aout, or coff.
11444 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
11448 # This must be Linux ELF.
11449 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
11453 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11454 soname_spec
='${libname}${release}${shared_ext}$major'
11455 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11456 shlibpath_var
=LD_LIBRARY_PATH
11457 shlibpath_overrides_runpath
=no
11459 # Some binutils ld are patched to set DT_RUNPATH
11460 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
11461 $as_echo_n "(cached) " >&6
11463 lt_cv_shlibpath_overrides_runpath
=no
11464 save_LDFLAGS
=$LDFLAGS
11465 save_libdir
=$libdir
11466 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11467 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11469 /* end confdefs.h. */
11479 if ac_fn_c_try_link
"$LINENO"; then :
11480 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
11481 lt_cv_shlibpath_overrides_runpath
=yes
11484 rm -f core conftest.err conftest.
$ac_objext \
11485 conftest
$ac_exeext conftest.
$ac_ext
11486 LDFLAGS
=$save_LDFLAGS
11487 libdir
=$save_libdir
11491 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
11493 # This implies no fast_install, which is unacceptable.
11494 # Some rework will be needed to allow for fast_install
11495 # before this can be enabled.
11496 hardcode_into_libs
=yes
11498 # Append ld.so.conf contents to the search path
11499 if test -f /etc
/ld.so.conf
; then
11500 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' ' '`
11501 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
11504 # We used to test for /lib/ld.so.1 and disable shared libraries on
11505 # powerpc, because MkLinux only supported shared libraries with the
11506 # GNU dynamic linker. Since this was broken with cross compilers,
11507 # most powerpc-linux boxes support dynamic linking these days and
11508 # people can always --disable-shared, the test was removed, and we
11509 # assume the GNU/Linux dynamic linker is in use.
11510 dynamic_linker
='GNU/Linux ld.so'
11517 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
11518 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11519 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11520 dynamic_linker
='NetBSD (a.out) ld.so'
11522 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11523 soname_spec
='${libname}${release}${shared_ext}$major'
11524 dynamic_linker
='NetBSD ld.elf_so'
11526 shlibpath_var
=LD_LIBRARY_PATH
11527 shlibpath_overrides_runpath
=yes
11528 hardcode_into_libs
=yes
11533 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11534 shlibpath_var
=LD_LIBRARY_PATH
11535 shlibpath_overrides_runpath
=yes
11542 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11543 soname_spec
='${libname}${release}${shared_ext}$major'
11544 shlibpath_var
=LD_LIBRARY_PATH
11545 shlibpath_overrides_runpath
=no
11546 hardcode_into_libs
=yes
11547 dynamic_linker
='ldqnx.so'
11552 sys_lib_dlsearch_path_spec
="/usr/lib"
11554 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11556 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
11557 *) need_version
=no
;;
11559 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11560 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11561 shlibpath_var
=LD_LIBRARY_PATH
11562 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11564 openbsd2.
[89] | openbsd2.
[89].
*)
11565 shlibpath_overrides_runpath
=no
11568 shlibpath_overrides_runpath
=yes
11572 shlibpath_overrides_runpath
=yes
11577 libname_spec
='$name'
11580 library_names_spec
='$libname${shared_ext} $libname.a'
11581 dynamic_linker
='OS/2 ld.exe'
11582 shlibpath_var
=LIBPATH
11585 osf3
* | osf4
* | osf5
*)
11589 soname_spec
='${libname}${release}${shared_ext}$major'
11590 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11591 shlibpath_var
=LD_LIBRARY_PATH
11592 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11593 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
11604 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11605 soname_spec
='${libname}${release}${shared_ext}$major'
11606 shlibpath_var
=LD_LIBRARY_PATH
11607 shlibpath_overrides_runpath
=yes
11608 hardcode_into_libs
=yes
11609 # ldd complains unless libraries are executable
11610 postinstall_cmds
='chmod +x $lib'
11615 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11616 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11617 shlibpath_var
=LD_LIBRARY_PATH
11618 shlibpath_overrides_runpath
=yes
11619 if test "$with_gnu_ld" = yes; then
11627 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11628 soname_spec
='${libname}${release}${shared_ext}$major'
11629 shlibpath_var
=LD_LIBRARY_PATH
11630 case $host_vendor in
11632 shlibpath_overrides_runpath
=no
11634 runpath_var
=LD_RUN_PATH
11642 shlibpath_overrides_runpath
=no
11643 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11649 if test -d /usr
/nec
;then
11651 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11652 soname_spec
='$libname${shared_ext}.$major'
11653 shlibpath_var
=LD_LIBRARY_PATH
11657 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11658 version_type
=freebsd-elf
11661 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11662 soname_spec
='${libname}${release}${shared_ext}$major'
11663 shlibpath_var
=LD_LIBRARY_PATH
11664 shlibpath_overrides_runpath
=yes
11665 hardcode_into_libs
=yes
11666 if test "$with_gnu_ld" = yes; then
11667 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11669 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11672 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11676 sys_lib_dlsearch_path_spec
='/usr/lib'
11680 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11684 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11685 shlibpath_var
=LD_LIBRARY_PATH
11686 shlibpath_overrides_runpath
=no
11687 hardcode_into_libs
=yes
11692 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11693 soname_spec
='${libname}${release}${shared_ext}$major'
11694 shlibpath_var
=LD_LIBRARY_PATH
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11702 $as_echo "$dynamic_linker" >&6; }
11703 test "$dynamic_linker" = no
&& can_build_shared
=no
11705 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11706 if test "$GCC" = yes; then
11707 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11710 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11711 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
11713 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11714 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11809 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11811 if test -n "$hardcode_libdir_flag_spec" ||
11812 test -n "$runpath_var" ||
11813 test "X$hardcode_automatic" = "Xyes" ; then
11815 # We can hardcode non-existent directories.
11816 if test "$hardcode_direct" != no
&&
11817 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11818 # have to relink, otherwise we might link with an installed library
11819 # when we should be linking with a yet-to-be-installed one
11820 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11821 test "$hardcode_minus_L" != no
; then
11822 # Linking always hardcodes the temporary library directory.
11823 hardcode_action
=relink
11825 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11826 hardcode_action
=immediate
11829 # We cannot hardcode anything, or else we can only hardcode existing
11831 hardcode_action
=unsupported
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11834 $as_echo "$hardcode_action" >&6; }
11836 if test "$hardcode_action" = relink ||
11837 test "$inherit_rpath" = yes; then
11838 # Fast installation is not supported
11839 enable_fast_install
=no
11840 elif test "$shlibpath_overrides_runpath" = yes ||
11841 test "$enable_shared" = no
; then
11842 # Fast installation is not necessary
11843 enable_fast_install
=needless
11851 if test "x$enable_dlopen" != xyes
; then
11852 enable_dlopen
=unknown
11853 enable_dlopen_self
=unknown
11854 enable_dlopen_self_static
=unknown
11861 lt_cv_dlopen
="load_add_on"
11863 lt_cv_dlopen_self
=yes
11866 mingw
* | pw32
* | cegcc
*)
11867 lt_cv_dlopen
="LoadLibrary"
11872 lt_cv_dlopen
="dlopen"
11877 # if libdl is installed we need to link against it
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11879 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11880 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11881 $as_echo_n "(cached) " >&6
11883 ac_check_lib_save_LIBS
=$LIBS
11885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11886 /* end confdefs.h. */
11888 /* Override any GCC internal prototype to avoid an error.
11889 Use char because int might match the return type of a GCC
11890 builtin and then its argument prototype would still apply. */
11903 if ac_fn_c_try_link
"$LINENO"; then :
11904 ac_cv_lib_dl_dlopen
=yes
11906 ac_cv_lib_dl_dlopen
=no
11908 rm -f core conftest.err conftest.
$ac_objext \
11909 conftest
$ac_exeext conftest.
$ac_ext
11910 LIBS
=$ac_check_lib_save_LIBS
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11913 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11914 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11915 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11918 lt_cv_dlopen
="dyld"
11920 lt_cv_dlopen_self
=yes
11927 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11928 if test "x$ac_cv_func_shl_load" = xyes
; then :
11929 lt_cv_dlopen
="shl_load"
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11932 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11933 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11934 $as_echo_n "(cached) " >&6
11936 ac_check_lib_save_LIBS
=$LIBS
11938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11939 /* end confdefs.h. */
11941 /* Override any GCC internal prototype to avoid an error.
11942 Use char because int might match the return type of a GCC
11943 builtin and then its argument prototype would still apply. */
11951 return shl_load ();
11956 if ac_fn_c_try_link
"$LINENO"; then :
11957 ac_cv_lib_dld_shl_load
=yes
11959 ac_cv_lib_dld_shl_load
=no
11961 rm -f core conftest.err conftest.
$ac_objext \
11962 conftest
$ac_exeext conftest.
$ac_ext
11963 LIBS
=$ac_check_lib_save_LIBS
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11966 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11967 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11968 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11970 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11971 if test "x$ac_cv_func_dlopen" = xyes
; then :
11972 lt_cv_dlopen
="dlopen"
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11975 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11976 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11977 $as_echo_n "(cached) " >&6
11979 ac_check_lib_save_LIBS
=$LIBS
11981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11982 /* end confdefs.h. */
11984 /* Override any GCC internal prototype to avoid an error.
11985 Use char because int might match the return type of a GCC
11986 builtin and then its argument prototype would still apply. */
11999 if ac_fn_c_try_link
"$LINENO"; then :
12000 ac_cv_lib_dl_dlopen
=yes
12002 ac_cv_lib_dl_dlopen
=no
12004 rm -f core conftest.err conftest.
$ac_objext \
12005 conftest
$ac_exeext conftest.
$ac_ext
12006 LIBS
=$ac_check_lib_save_LIBS
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12009 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12010 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
12011 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12014 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12015 if ${ac_cv_lib_svld_dlopen+:} false
; then :
12016 $as_echo_n "(cached) " >&6
12018 ac_check_lib_save_LIBS
=$LIBS
12019 LIBS
="-lsvld $LIBS"
12020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12021 /* end confdefs.h. */
12023 /* Override any GCC internal prototype to avoid an error.
12024 Use char because int might match the return type of a GCC
12025 builtin and then its argument prototype would still apply. */
12038 if ac_fn_c_try_link
"$LINENO"; then :
12039 ac_cv_lib_svld_dlopen
=yes
12041 ac_cv_lib_svld_dlopen
=no
12043 rm -f core conftest.err conftest.
$ac_objext \
12044 conftest
$ac_exeext conftest.
$ac_ext
12045 LIBS
=$ac_check_lib_save_LIBS
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12048 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12049 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
12050 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12053 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12054 if ${ac_cv_lib_dld_dld_link+:} false
; then :
12055 $as_echo_n "(cached) " >&6
12057 ac_check_lib_save_LIBS
=$LIBS
12059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12060 /* end confdefs.h. */
12062 /* Override any GCC internal prototype to avoid an error.
12063 Use char because int might match the return type of a GCC
12064 builtin and then its argument prototype would still apply. */
12072 return dld_link ();
12077 if ac_fn_c_try_link
"$LINENO"; then :
12078 ac_cv_lib_dld_dld_link
=yes
12080 ac_cv_lib_dld_dld_link
=no
12082 rm -f core conftest.err conftest.
$ac_objext \
12083 conftest
$ac_exeext conftest.
$ac_ext
12084 LIBS
=$ac_check_lib_save_LIBS
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12087 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12088 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
12089 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
12110 if test "x$lt_cv_dlopen" != xno
; then
12116 case $lt_cv_dlopen in
12118 save_CPPFLAGS
="$CPPFLAGS"
12119 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
12121 save_LDFLAGS
="$LDFLAGS"
12122 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
12125 LIBS
="$lt_cv_dlopen_libs $LIBS"
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12128 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12129 if ${lt_cv_dlopen_self+:} false
; then :
12130 $as_echo_n "(cached) " >&6
12132 if test "$cross_compiling" = yes; then :
12133 lt_cv_dlopen_self
=cross
12135 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12136 lt_status
=$lt_dlunknown
12137 cat > conftest.
$ac_ext <<_LT_EOF
12138 #line 12138 "configure"
12139 #include "confdefs.h"
12148 # define LT_DLGLOBAL RTLD_GLOBAL
12151 # define LT_DLGLOBAL DL_GLOBAL
12153 # define LT_DLGLOBAL 0
12157 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12158 find out it does not work in some platform. */
12159 #ifndef LT_DLLAZY_OR_NOW
12161 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12164 # define LT_DLLAZY_OR_NOW DL_LAZY
12167 # define LT_DLLAZY_OR_NOW RTLD_NOW
12170 # define LT_DLLAZY_OR_NOW DL_NOW
12172 # define LT_DLLAZY_OR_NOW 0
12179 /* When -fvisbility=hidden is used, assume the code has been annotated
12180 correspondingly for the symbols needed. */
12181 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12182 void fnord () __attribute__((visibility("default")));
12185 void fnord () { int i=42; }
12188 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12189 int status = $lt_dlunknown;
12193 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12196 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12197 else puts (dlerror ());
12199 /* dlclose (self); */
12207 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12208 (eval $ac_link) 2>&5
12210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12211 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
12212 (.
/conftest
; exit; ) >&5 2>/dev
/null
12214 case x
$lt_status in
12215 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
12216 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
12217 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
12220 # compilation failed
12221 lt_cv_dlopen_self
=no
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12229 $as_echo "$lt_cv_dlopen_self" >&6; }
12231 if test "x$lt_cv_dlopen_self" = xyes
; then
12232 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12234 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12235 if ${lt_cv_dlopen_self_static+:} false
; then :
12236 $as_echo_n "(cached) " >&6
12238 if test "$cross_compiling" = yes; then :
12239 lt_cv_dlopen_self_static
=cross
12241 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12242 lt_status
=$lt_dlunknown
12243 cat > conftest.
$ac_ext <<_LT_EOF
12244 #line 12244 "configure"
12245 #include "confdefs.h"
12254 # define LT_DLGLOBAL RTLD_GLOBAL
12257 # define LT_DLGLOBAL DL_GLOBAL
12259 # define LT_DLGLOBAL 0
12263 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12264 find out it does not work in some platform. */
12265 #ifndef LT_DLLAZY_OR_NOW
12267 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12270 # define LT_DLLAZY_OR_NOW DL_LAZY
12273 # define LT_DLLAZY_OR_NOW RTLD_NOW
12276 # define LT_DLLAZY_OR_NOW DL_NOW
12278 # define LT_DLLAZY_OR_NOW 0
12285 /* When -fvisbility=hidden is used, assume the code has been annotated
12286 correspondingly for the symbols needed. */
12287 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12288 void fnord () __attribute__((visibility("default")));
12291 void fnord () { int i=42; }
12294 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12295 int status = $lt_dlunknown;
12299 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12302 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12303 else puts (dlerror ());
12305 /* dlclose (self); */
12313 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12314 (eval $ac_link) 2>&5
12316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12317 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
12318 (.
/conftest
; exit; ) >&5 2>/dev
/null
12320 case x
$lt_status in
12321 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
12322 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
12323 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
12326 # compilation failed
12327 lt_cv_dlopen_self_static
=no
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12335 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12338 CPPFLAGS
="$save_CPPFLAGS"
12339 LDFLAGS
="$save_LDFLAGS"
12344 case $lt_cv_dlopen_self in
12345 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
12346 *) enable_dlopen_self
=unknown
;;
12349 case $lt_cv_dlopen_self_static in
12350 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
12351 *) enable_dlopen_self_static
=unknown
;;
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12374 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12375 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
12376 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
12377 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12379 $as_echo "yes" >&6; }
12381 # FIXME - insert some real tests, host_os isn't really good enough
12384 if test -n "$STRIP" ; then
12385 striplib
="$STRIP -x"
12386 old_striplib
="$STRIP -S"
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12388 $as_echo "yes" >&6; }
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12391 $as_echo "no" >&6; }
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12396 $as_echo "no" >&6; }
12412 # Report which library types will actually be built
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12414 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12416 $as_echo "$can_build_shared" >&6; }
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12419 $as_echo_n "checking whether to build shared libraries... " >&6; }
12420 test "$can_build_shared" = "no" && enable_shared
=no
12422 # On AIX, shared libraries and static libraries use the same namespace, and
12423 # are all built from PIC.
12426 test "$enable_shared" = yes && enable_static
=no
12427 if test -n "$RANLIB"; then
12428 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
12429 postinstall_cmds
='$RANLIB $lib'
12434 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
12435 test "$enable_shared" = yes && enable_static
=no
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12440 $as_echo "$enable_shared" >&6; }
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12443 $as_echo_n "checking whether to build static libraries... " >&6; }
12444 # Make sure either enable_shared or enable_static is yes.
12445 test "$enable_shared" = yes || enable_static
=yes
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12447 $as_echo "$enable_static" >&6; }
12454 ac_cpp
='$CPP $CPPFLAGS'
12455 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12456 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12457 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12461 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12462 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12463 (test "X$CXX" != "Xg++"))) ; then
12465 ac_cpp
='$CXXCPP $CPPFLAGS'
12466 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12467 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12468 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12470 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12471 if test -z "$CXXCPP"; then
12472 if ${ac_cv_prog_CXXCPP+:} false
; then :
12473 $as_echo_n "(cached) " >&6
12475 # Double quotes because CXXCPP needs to be expanded
12476 for CXXCPP
in "$CXX -E" "/lib/cpp"
12478 ac_preproc_ok
=false
12479 for ac_cxx_preproc_warn_flag
in '' yes
12481 # Use a header file that comes with gcc, so configuring glibc
12482 # with a fresh cross-compiler works.
12483 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12484 # <limits.h> exists even on freestanding compilers.
12485 # On the NeXT, cc -E runs the code through the compiler's parser,
12486 # not just through cpp. "Syntax error" is here to catch this case.
12487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12488 /* end confdefs.h. */
12490 # include <limits.h>
12492 # include <assert.h>
12496 if ac_fn_cxx_try_cpp
"$LINENO"; then :
12499 # Broken: fails on valid input.
12502 rm -f conftest.err conftest.i conftest.
$ac_ext
12504 # OK, works on sane cases. Now check whether nonexistent headers
12505 # can be detected and how.
12506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12507 /* end confdefs.h. */
12508 #include <ac_nonexistent.h>
12510 if ac_fn_cxx_try_cpp
"$LINENO"; then :
12511 # Broken: success on invalid input.
12514 # Passes both tests.
12518 rm -f conftest.err conftest.i conftest.
$ac_ext
12521 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12522 rm -f conftest.i conftest.err conftest.
$ac_ext
12523 if $ac_preproc_ok; then :
12528 ac_cv_prog_CXXCPP
=$CXXCPP
12531 CXXCPP
=$ac_cv_prog_CXXCPP
12533 ac_cv_prog_CXXCPP
=$CXXCPP
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12536 $as_echo "$CXXCPP" >&6; }
12537 ac_preproc_ok
=false
12538 for ac_cxx_preproc_warn_flag
in '' yes
12540 # Use a header file that comes with gcc, so configuring glibc
12541 # with a fresh cross-compiler works.
12542 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12543 # <limits.h> exists even on freestanding compilers.
12544 # On the NeXT, cc -E runs the code through the compiler's parser,
12545 # not just through cpp. "Syntax error" is here to catch this case.
12546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12547 /* end confdefs.h. */
12549 # include <limits.h>
12551 # include <assert.h>
12555 if ac_fn_cxx_try_cpp
"$LINENO"; then :
12558 # Broken: fails on valid input.
12561 rm -f conftest.err conftest.i conftest.
$ac_ext
12563 # OK, works on sane cases. Now check whether nonexistent headers
12564 # can be detected and how.
12565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12566 /* end confdefs.h. */
12567 #include <ac_nonexistent.h>
12569 if ac_fn_cxx_try_cpp
"$LINENO"; then :
12570 # Broken: success on invalid input.
12573 # Passes both tests.
12577 rm -f conftest.err conftest.i conftest.
$ac_ext
12580 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12581 rm -f conftest.i conftest.err conftest.
$ac_ext
12582 if $ac_preproc_ok; then :
12585 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12586 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12587 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
12588 See \`config.log' for more details" "$LINENO" 5; }
12592 ac_cpp
='$CPP $CPPFLAGS'
12593 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12594 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12595 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12598 _lt_caught_CXX_error
=yes
12602 ac_cpp
='$CXXCPP $CPPFLAGS'
12603 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12604 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12605 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12607 archive_cmds_need_lc_CXX
=no
12608 allow_undefined_flag_CXX
=
12609 always_export_symbols_CXX
=no
12610 archive_expsym_cmds_CXX
=
12611 compiler_needs_object_CXX
=no
12612 export_dynamic_flag_spec_CXX
=
12613 hardcode_direct_CXX
=no
12614 hardcode_direct_absolute_CXX
=no
12615 hardcode_libdir_flag_spec_CXX
=
12616 hardcode_libdir_flag_spec_ld_CXX
=
12617 hardcode_libdir_separator_CXX
=
12618 hardcode_minus_L_CXX
=no
12619 hardcode_shlibpath_var_CXX
=unsupported
12620 hardcode_automatic_CXX
=no
12621 inherit_rpath_CXX
=no
12623 module_expsym_cmds_CXX
=
12624 link_all_deplibs_CXX
=unknown
12625 old_archive_cmds_CXX
=$old_archive_cmds
12626 reload_flag_CXX
=$reload_flag
12627 reload_cmds_CXX
=$reload_cmds
12628 no_undefined_flag_CXX
=
12629 whole_archive_flag_spec_CXX
=
12630 enable_shared_with_static_runtimes_CXX
=no
12632 # Source file extension for C++ test sources.
12635 # Object file extension for compiled C++ test sources.
12639 # No sense in running all these tests if we already determined that
12640 # the CXX compiler isn't working. Some variables (like enable_shared)
12641 # are currently assumed to apply to all compilers on this platform,
12642 # and will be corrupted by setting them based on a non-working compiler.
12643 if test "$_lt_caught_CXX_error" != yes; then
12644 # Code to be used in simple compile tests
12645 lt_simple_compile_test_code
="int some_variable = 0;"
12647 # Code to be used in simple link tests
12648 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
12650 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12657 # If no C compiler was specified, use CC.
12660 # If no C compiler flags were specified, use CFLAGS.
12661 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
12663 # Allow CC to be a program name with arguments.
12667 # save warnings/boilerplate of simple test code
12668 ac_outfile
=conftest.
$ac_objext
12669 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
12670 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12671 _lt_compiler_boilerplate
=`cat conftest.err`
12674 ac_outfile
=conftest.
$ac_objext
12675 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
12676 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12677 _lt_linker_boilerplate
=`cat conftest.err`
12681 # Allow CC to be a program name with arguments.
12686 lt_save_with_gnu_ld
=$with_gnu_ld
12687 lt_save_path_LD
=$lt_cv_path_LD
12688 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12689 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
12691 $as_unset lt_cv_prog_gnu_ld
12693 if test -n "${lt_cv_path_LDCXX+set}"; then
12694 lt_cv_path_LD
=$lt_cv_path_LDCXX
12696 $as_unset lt_cv_path_LD
12698 test -z "${LDCXX+set}" || LD
=$LDCXX
12702 for cc_temp
in $compiler""; do
12704 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
12705 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
12710 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12713 if test -n "$compiler"; then
12714 # We don't want -fno-exception when compiling C++ code, so set the
12715 # no_builtin_flag separately
12716 if test "$GXX" = yes; then
12717 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
12719 lt_prog_compiler_no_builtin_flag_CXX
=
12722 if test "$GXX" = yes; then
12723 # Set up default GNU C++ configuration
12727 # Check whether --with-gnu-ld was given.
12728 if test "${with_gnu_ld+set}" = set; then :
12729 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12735 if test "$GCC" = yes; then
12736 # Check if gcc -print-prog-name=ld gives a path.
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12738 $as_echo_n "checking for ld used by $CC... " >&6; }
12741 # gcc leaves a trailing carriage return which upsets mingw
12742 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12744 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12747 # Accept absolute paths.
12749 re_direlt
='/[^/][^/]*/\.\./'
12750 # Canonicalize the pathname of ld
12751 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12752 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12753 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12755 test -z "$LD" && LD
="$ac_prog"
12758 # If it fails, then pretend we aren't using GCC.
12762 # If it is relative, then search for the first ld in PATH.
12763 with_gnu_ld
=unknown
12766 elif test "$with_gnu_ld" = yes; then
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12768 $as_echo_n "checking for GNU ld... " >&6; }
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12771 $as_echo_n "checking for non-GNU ld... " >&6; }
12773 if ${lt_cv_path_LD+:} false
; then :
12774 $as_echo_n "(cached) " >&6
12776 if test -z "$LD"; then
12777 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12778 for ac_dir
in $PATH; do
12780 test -z "$ac_dir" && ac_dir
=.
12781 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12782 lt_cv_path_LD
="$ac_dir/$ac_prog"
12783 # Check to see if the program is GNU ld. I'd rather use --version,
12784 # but apparently some variants of GNU ld only accept -v.
12785 # Break only if it was the GNU/non-GNU ld that we prefer.
12786 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12787 *GNU
* |
*'with BFD'*)
12788 test "$with_gnu_ld" != no
&& break
12791 test "$with_gnu_ld" != yes && break
12798 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12802 LD
="$lt_cv_path_LD"
12803 if test -n "$LD"; then
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12805 $as_echo "$LD" >&6; }
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12808 $as_echo "no" >&6; }
12810 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12812 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12813 if ${lt_cv_prog_gnu_ld+:} false
; then :
12814 $as_echo_n "(cached) " >&6
12816 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12817 case `$LD -v 2>&1 </dev/null` in
12818 *GNU
* |
*'with BFD'*)
12819 lt_cv_prog_gnu_ld
=yes
12822 lt_cv_prog_gnu_ld
=no
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12827 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12828 with_gnu_ld
=$lt_cv_prog_gnu_ld
12836 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12837 # archiving commands below assume that GNU ld is being used.
12838 if test "$with_gnu_ld" = yes; then
12839 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12840 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'
12842 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12843 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12845 # If archive_cmds runs LD, not CC, wlarc should be empty
12846 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12847 # investigate it a little bit more. (MM)
12850 # ancient GNU ld didn't support --whole-archive et. al.
12851 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12852 $GREP 'no-whole-archive' > /dev
/null
; then
12853 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12855 whole_archive_flag_spec_CXX
=
12861 # A generic and very simple default shared library creation
12862 # command for GNU C++ for the case where it uses the native
12863 # linker, instead of GNU ld. If possible, this setting should
12864 # overridden to take advantage of the native linker features on
12865 # the platform it is being used on.
12866 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12869 # Commands to make compiler produce verbose output that lists
12870 # what "hidden" libraries, object files and flags are used when
12871 # linking a shared library.
12872 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12880 # PORTME: fill in a description of your system's C++ link characteristics
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12882 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12886 # FIXME: insert proper C++ library support
12890 if test "$host_cpu" = ia64
; then
12891 # On IA64, the linker does run time linking by default, so we don't
12892 # have to do anything special.
12893 aix_use_runtimelinking
=no
12894 exp_sym_flag
='-Bexport'
12897 aix_use_runtimelinking
=no
12899 # Test if we are trying to use run time linking or normal
12900 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12901 # need to do runtime linking.
12902 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
12903 for ld_flag
in $LDFLAGS; do
12906 aix_use_runtimelinking
=yes
12914 exp_sym_flag
='-bexport'
12915 no_entry_flag
='-bnoentry'
12918 # When large executables or shared objects are built, AIX ld can
12919 # have problems creating the table of contents. If linking a library
12920 # or program results in "error TOC overflow" add -mminimal-toc to
12921 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12922 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12924 archive_cmds_CXX
=''
12925 hardcode_direct_CXX
=yes
12926 hardcode_direct_absolute_CXX
=yes
12927 hardcode_libdir_separator_CXX
=':'
12928 link_all_deplibs_CXX
=yes
12929 file_list_spec_CXX
='${wl}-f,'
12931 if test "$GXX" = yes; then
12932 case $host_os in aix4.
[012]|aix4.
[012].
*)
12933 # We only want to do this on AIX 4.2 and lower, the check
12934 # below for broken collect2 doesn't work under 4.3+
12935 collect2name
=`${CC} -print-prog-name=collect2`
12936 if test -f "$collect2name" &&
12937 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
12939 # We have reworked collect2
12942 # We have old collect2
12943 hardcode_direct_CXX
=unsupported
12944 # It fails to find uninstalled libraries when the uninstalled
12945 # path is not listed in the libpath. Setting hardcode_minus_L
12946 # to unsupported forces relinking
12947 hardcode_minus_L_CXX
=yes
12948 hardcode_libdir_flag_spec_CXX
='-L$libdir'
12949 hardcode_libdir_separator_CXX
=
12952 shared_flag
='-shared'
12953 if test "$aix_use_runtimelinking" = yes; then
12954 shared_flag
="$shared_flag "'${wl}-G'
12958 if test "$host_cpu" = ia64
; then
12959 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12960 # chokes on -Wl,-G. The following line is correct:
12963 if test "$aix_use_runtimelinking" = yes; then
12964 shared_flag
='${wl}-G'
12966 shared_flag
='${wl}-bM:SRE'
12971 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
12972 # It seems that -bexpall does not export symbols beginning with
12973 # underscore (_), so it is better to generate a list of symbols to
12975 always_export_symbols_CXX
=yes
12976 if test "$aix_use_runtimelinking" = yes; then
12977 # Warning - without using the other runtime loading flags (-brtl),
12978 # -berok will link without error, but may produce a broken library.
12979 allow_undefined_flag_CXX
='-berok'
12980 # Determine the default libpath from the value encoded in an empty
12982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12983 /* end confdefs.h. */
12993 if ac_fn_cxx_try_link
"$LINENO"; then :
12995 lt_aix_libpath_sed
='
12996 /Import File Strings/,/^$/ {
13002 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13003 # Check for a 64-bit object if we didn't find anything.
13004 if test -z "$aix_libpath"; then
13005 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13008 rm -f core conftest.err conftest.
$ac_objext \
13009 conftest
$ac_exeext conftest.
$ac_ext
13010 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13012 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
13014 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"
13016 if test "$host_cpu" = ia64
; then
13017 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
13018 allow_undefined_flag_CXX
="-z nodefs"
13019 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"
13021 # Determine the default libpath from the value encoded in an
13022 # empty executable.
13023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13024 /* end confdefs.h. */
13034 if ac_fn_cxx_try_link
"$LINENO"; then :
13036 lt_aix_libpath_sed
='
13037 /Import File Strings/,/^$/ {
13043 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13044 # Check for a 64-bit object if we didn't find anything.
13045 if test -z "$aix_libpath"; then
13046 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13049 rm -f core conftest.err conftest.
$ac_objext \
13050 conftest
$ac_exeext conftest.
$ac_ext
13051 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13053 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
13054 # Warning - without using the other run time loading flags,
13055 # -berok will link without error, but may produce a broken library.
13056 no_undefined_flag_CXX
=' ${wl}-bernotok'
13057 allow_undefined_flag_CXX
=' ${wl}-berok'
13058 if test "$with_gnu_ld" = yes; then
13059 # We only use this code for GNU lds that support --whole-archive.
13060 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13062 # Exported symbols can be pulled into shared objects from archives
13063 whole_archive_flag_spec_CXX
='$convenience'
13065 archive_cmds_need_lc_CXX
=yes
13066 # This is similar to how AIX traditionally builds its shared
13068 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'
13074 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13075 allow_undefined_flag_CXX
=unsupported
13076 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13077 # support --undefined. This deserves some investigation. FIXME
13078 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13085 case $cc_basename in
13087 # FIXME: insert proper C++ library support
13093 cygwin
* | mingw
* | pw32
* | cegcc
*)
13094 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13095 # as there is no search path for DLLs.
13096 hardcode_libdir_flag_spec_CXX
='-L$libdir'
13097 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
13098 allow_undefined_flag_CXX
=unsupported
13099 always_export_symbols_CXX
=no
13100 enable_shared_with_static_runtimes_CXX
=yes
13102 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
13103 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'
13104 # If the export-symbols file already is a .def file (1st line
13105 # is EXPORTS), use it as is; otherwise, prepend...
13106 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13107 cp $export_symbols $output_objdir/$soname.def;
13109 echo EXPORTS > $output_objdir/$soname.def;
13110 cat $export_symbols >> $output_objdir/$soname.def;
13112 $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'
13117 darwin
* | rhapsody
*)
13120 archive_cmds_need_lc_CXX
=no
13121 hardcode_direct_CXX
=no
13122 hardcode_automatic_CXX
=yes
13123 hardcode_shlibpath_var_CXX
=unsupported
13124 if test "$lt_cv_ld_force_load" = "yes"; then
13125 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\"`'
13127 whole_archive_flag_spec_CXX
=''
13129 link_all_deplibs_CXX
=yes
13130 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
13131 case $cc_basename in
13132 ifort
*) _lt_dar_can_shared
=yes ;;
13133 *) _lt_dar_can_shared
=$GCC ;;
13135 if test "$_lt_dar_can_shared" = "yes"; then
13136 output_verbose_link_cmd
=func_echo_all
13137 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}"
13138 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13139 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}"
13140 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}"
13141 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13142 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}"
13143 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}"
13153 case $cc_basename in
13155 # FIXME: insert proper C++ library support
13159 # Green Hills C++ Compiler
13160 # FIXME: insert proper C++ library support
13164 # FIXME: insert proper C++ library support
13171 # C++ shared libraries reported to be fairly broken before
13177 archive_cmds_need_lc_CXX
=no
13180 freebsd
* | dragonfly
*)
13181 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13190 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13191 link_all_deplibs_CXX
=yes
13195 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
13196 hardcode_libdir_separator_CXX
=:
13197 export_dynamic_flag_spec_CXX
='${wl}-E'
13198 hardcode_direct_CXX
=yes
13199 hardcode_minus_L_CXX
=yes # Not in the search PATH,
13200 # but as the default
13201 # location of the library.
13203 case $cc_basename in
13205 # FIXME: insert proper C++ library support
13209 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'
13210 # Commands to make compiler produce verbose output that lists
13211 # what "hidden" libraries, object files and flags are used when
13212 # linking a shared library.
13214 # There doesn't appear to be a way to prevent this compiler from
13215 # explicitly linking system object files so we need to strip them
13216 # from the output so that they don't get included in the library
13218 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"'
13221 if test "$GXX" = yes; then
13222 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'
13224 # FIXME: insert proper C++ library support
13232 if test $with_gnu_ld = no
; then
13233 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
13234 hardcode_libdir_separator_CXX
=:
13240 export_dynamic_flag_spec_CXX
='${wl}-E'
13246 hardcode_direct_CXX
=no
13247 hardcode_shlibpath_var_CXX
=no
13250 hardcode_direct_CXX
=yes
13251 hardcode_direct_absolute_CXX
=yes
13252 hardcode_minus_L_CXX
=yes # Not in the search PATH,
13253 # but as the default
13254 # location of the library.
13258 case $cc_basename in
13260 # FIXME: insert proper C++ library support
13266 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13269 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13272 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13275 # Commands to make compiler produce verbose output that lists
13276 # what "hidden" libraries, object files and flags are used when
13277 # linking a shared library.
13279 # There doesn't appear to be a way to prevent this compiler from
13280 # explicitly linking system object files so we need to strip them
13281 # from the output so that they don't get included in the library
13283 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"'
13286 if test "$GXX" = yes; then
13287 if test $with_gnu_ld = no
; then
13290 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13293 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13296 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'
13301 # FIXME: insert proper C++ library support
13309 hardcode_direct_CXX
=no
13310 hardcode_shlibpath_var_CXX
=no
13311 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
13312 export_dynamic_flag_spec_CXX
='${wl}-E'
13313 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13314 # Instead, shared libraries are loaded at an image base (0x10000000 by
13315 # default) and relocated if they conflict, which is a slow very memory
13316 # consuming and fragmenting process. To avoid this, we pick a random,
13317 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13318 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13319 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'
13320 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'
13323 case $cc_basename in
13326 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'
13328 # Archives containing C++ object files must be created using
13329 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13330 # necessary to make sure instantiated templates are included
13332 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
13335 if test "$GXX" = yes; then
13336 if test "$with_gnu_ld" = no
; then
13337 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'
13339 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'
13342 link_all_deplibs_CXX
=yes
13345 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
13346 hardcode_libdir_separator_CXX
=:
13347 inherit_rpath_CXX
=yes
13350 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
13351 case $cc_basename in
13353 # Kuck and Associates, Inc. (KAI) C++ Compiler
13355 # KCC will only create a shared library if the output file
13356 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13357 # to its proper name (with version) after linking.
13358 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'
13359 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'
13360 # Commands to make compiler produce verbose output that lists
13361 # what "hidden" libraries, object files and flags are used when
13362 # linking a shared library.
13364 # There doesn't appear to be a way to prevent this compiler from
13365 # explicitly linking system object files so we need to strip them
13366 # from the output so that they don't get included in the library
13368 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"'
13370 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
13371 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
13373 # Archives containing C++ object files must be created using
13374 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13375 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
13380 # version 8.0 and above of icpc choke on multiply defined symbols
13381 # if we add $predep_objects and $postdep_objects, however 7.1 and
13382 # earlier do not add the objects themselves.
13383 case `$CC -V 2>&1` in
13385 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13386 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'
13388 *) # Version 8.0 or newer
13391 ia64
*) tmp_idyn
=' -i_dynamic';;
13393 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13394 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'
13397 archive_cmds_need_lc_CXX
=no
13398 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
13399 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
13400 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13403 # Portland Group C++ compiler
13405 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
13406 prelink_cmds_CXX
='tpldir=Template.dir~
13408 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13409 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13410 old_archive_cmds_CXX
='tpldir=Template.dir~
13412 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13413 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13415 archive_cmds_CXX
='tpldir=Template.dir~
13417 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13418 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13419 archive_expsym_cmds_CXX
='tpldir=Template.dir~
13421 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13422 $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'
13424 *) # Version 6 and above use weak symbols
13425 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13426 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'
13430 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
13431 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
13432 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'
13436 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13437 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'
13439 runpath_var
=LD_RUN_PATH
13440 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
13441 hardcode_libdir_separator_CXX
=:
13443 # Commands to make compiler produce verbose output that lists
13444 # what "hidden" libraries, object files and flags are used when
13445 # linking a shared library.
13447 # There doesn't appear to be a way to prevent this compiler from
13448 # explicitly linking system object files so we need to strip them
13449 # from the output so that they don't get included in the library
13451 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'
13453 xl
* | mpixl
* | bgxl
*)
13454 # IBM XL 8.0 on PPC, with GNU ld
13455 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
13456 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
13457 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13458 if test "x$supports_anon_versioning" = xyes
; then
13459 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
13460 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13461 echo "local: *; };" >> $output_objdir/$libname.ver~
13462 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13466 case `$CC -V 2>&1 | sed 5q` in
13469 no_undefined_flag_CXX
=' -zdefs'
13470 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13471 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'
13472 hardcode_libdir_flag_spec_CXX
='-R$libdir'
13473 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'
13474 compiler_needs_object_CXX
=yes
13476 # Not sure whether something based on
13477 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13479 output_verbose_link_cmd
='func_echo_all'
13481 # Archives containing C++ object files must be created using
13482 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13483 # necessary to make sure instantiated templates are included
13485 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
13493 # FIXME: insert proper C++ library support
13498 # FIXME: insert proper C++ library support
13503 case $cc_basename in
13505 # FIXME: insert proper C++ library support
13509 # FIXME: insert proper C++ library support
13516 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13517 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13519 hardcode_libdir_flag_spec_CXX
='-R$libdir'
13520 hardcode_direct_CXX
=yes
13521 hardcode_shlibpath_var_CXX
=no
13523 # Workaround some broken pre-1.5 toolchains
13524 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13532 # C++ shared libraries are fairly broken
13537 if test -f /usr
/libexec
/ld.so
; then
13538 hardcode_direct_CXX
=yes
13539 hardcode_shlibpath_var_CXX
=no
13540 hardcode_direct_absolute_CXX
=yes
13541 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13542 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
13543 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13544 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13545 export_dynamic_flag_spec_CXX
='${wl}-E'
13546 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13548 output_verbose_link_cmd
=func_echo_all
13554 osf3
* | osf4
* | osf5
*)
13555 case $cc_basename in
13557 # Kuck and Associates, Inc. (KAI) C++ Compiler
13559 # KCC will only create a shared library if the output file
13560 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13561 # to its proper name (with version) after linking.
13562 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'
13564 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
13565 hardcode_libdir_separator_CXX
=:
13567 # Archives containing C++ object files must be created using
13568 # the KAI C++ compiler.
13570 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
13571 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
13575 # Rational C++ 2.4.1
13576 # FIXME: insert proper C++ library support
13582 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
13583 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'
13584 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
13587 allow_undefined_flag_CXX
=' -expect_unresolved \*'
13588 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'
13589 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13590 echo "-hidden">> $lib.exp~
13591 $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~
13593 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
13597 hardcode_libdir_separator_CXX
=:
13599 # Commands to make compiler produce verbose output that lists
13600 # what "hidden" libraries, object files and flags are used when
13601 # linking a shared library.
13603 # There doesn't appear to be a way to prevent this compiler from
13604 # explicitly linking system object files so we need to strip them
13605 # from the output so that they don't get included in the library
13607 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"'
13610 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
13611 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
13614 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'
13617 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'
13621 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
13622 hardcode_libdir_separator_CXX
=:
13624 # Commands to make compiler produce verbose output that lists
13625 # what "hidden" libraries, object files and flags are used when
13626 # linking a shared library.
13627 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13630 # FIXME: insert proper C++ library support
13638 # FIXME: insert proper C++ library support
13643 case $cc_basename in
13646 # FIXME: insert proper C++ library support
13651 # FIXME: insert proper C++ library support
13655 # FIXME: insert proper C++ library support
13662 case $cc_basename in
13664 # Sun C++ 4.2, 5.x and Centerline C++
13665 archive_cmds_need_lc_CXX
=yes
13666 no_undefined_flag_CXX
=' -zdefs'
13667 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13668 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13669 $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'
13671 hardcode_libdir_flag_spec_CXX
='-R$libdir'
13672 hardcode_shlibpath_var_CXX
=no
13674 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13676 # The compiler driver will combine and reorder linker options,
13677 # but understands `-z linker_flag'.
13678 # Supported since Solaris 2.6 (maybe 2.5.1?)
13679 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
13682 link_all_deplibs_CXX
=yes
13684 output_verbose_link_cmd
='func_echo_all'
13686 # Archives containing C++ object files must be created using
13687 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13688 # necessary to make sure instantiated templates are included
13690 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
13693 # Green Hills C++ Compiler
13694 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13696 # The C++ compiler must be used to create the archive.
13697 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13700 # GNU C++ compiler with Solaris linker
13701 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
13702 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
13703 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
13704 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13705 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13706 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13708 # Commands to make compiler produce verbose output that lists
13709 # what "hidden" libraries, object files and flags are used when
13710 # linking a shared library.
13711 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13713 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13715 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13716 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13717 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13719 # Commands to make compiler produce verbose output that lists
13720 # what "hidden" libraries, object files and flags are used when
13721 # linking a shared library.
13722 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13725 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
13727 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13729 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13737 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13738 no_undefined_flag_CXX
='${wl}-z,text'
13739 archive_cmds_need_lc_CXX
=no
13740 hardcode_shlibpath_var_CXX
=no
13741 runpath_var
='LD_RUN_PATH'
13743 case $cc_basename in
13745 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13746 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13749 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13750 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13755 sysv5
* | sco3.2v5
* | sco5v6
*)
13756 # Note: We can NOT use -z defs as we might desire, because we do not
13757 # link with -lc, and that would cause any symbols used from libc to
13758 # always be unresolved, which means just about no library would
13759 # ever link correctly. If we're not using GNU ld we use -z text
13760 # though, which does catch some bad symbols but isn't as heavy-handed
13762 no_undefined_flag_CXX
='${wl}-z,text'
13763 allow_undefined_flag_CXX
='${wl}-z,nodefs'
13764 archive_cmds_need_lc_CXX
=no
13765 hardcode_shlibpath_var_CXX
=no
13766 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
13767 hardcode_libdir_separator_CXX
=':'
13768 link_all_deplibs_CXX
=yes
13769 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
13770 runpath_var
='LD_RUN_PATH'
13772 case $cc_basename in
13774 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13775 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13776 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
13777 '"$old_archive_cmds_CXX"
13778 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
13779 '"$reload_cmds_CXX"
13782 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13783 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13789 case $cc_basename in
13791 # NonStop-UX NCC 3.20
13792 # FIXME: insert proper C++ library support
13796 # FIXME: insert proper C++ library support
13803 # FIXME: insert proper C++ library support
13808 # FIXME: insert proper C++ library support
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13814 $as_echo "$ld_shlibs_CXX" >&6; }
13815 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
13821 ## There is no encapsulation within the following macros, do not change
13822 ## the running order or otherwise move them around unless you know exactly
13823 ## what you are doing...
13824 # Dependencies to place before and after the object being linked:
13825 predep_objects_CXX
=
13826 postdep_objects_CXX
=
13829 compiler_lib_search_path_CXX
=
13831 cat > conftest.
$ac_ext <<_LT_EOF
13835 Foo (void) { a = 0; }
13841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13842 (eval $ac_compile) 2>&5
13844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13845 test $ac_status = 0; }; then
13846 # Parse the compiler output and extract the necessary
13847 # objects, libraries and library flags.
13849 # Sentinel used to keep track of whether or not we are before
13850 # the conftest object file.
13851 pre_test_object_deps_done
=no
13853 for p
in `eval "$output_verbose_link_cmd"`; do
13857 # Some compilers place space between "-{L,R}" and the path.
13858 # Remove the space.
13859 if test $p = "-L" ||
13860 test $p = "-R"; then
13867 if test "$pre_test_object_deps_done" = no
; then
13870 # Internal compiler library paths should come after those
13871 # provided the user. The postdeps already come after the
13872 # user supplied libs so there is no need to process them.
13873 if test -z "$compiler_lib_search_path_CXX"; then
13874 compiler_lib_search_path_CXX
="${prev}${p}"
13876 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
13879 # The "-l" case would never come before the object being
13880 # linked, so don't bother handling this case.
13883 if test -z "$postdeps_CXX"; then
13884 postdeps_CXX
="${prev}${p}"
13886 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
13892 # This assumes that the test object file only shows up
13893 # once in the compiler output.
13894 if test "$p" = "conftest.$objext"; then
13895 pre_test_object_deps_done
=yes
13899 if test "$pre_test_object_deps_done" = no
; then
13900 if test -z "$predep_objects_CXX"; then
13901 predep_objects_CXX
="$p"
13903 predep_objects_CXX
="$predep_objects_CXX $p"
13906 if test -z "$postdep_objects_CXX"; then
13907 postdep_objects_CXX
="$p"
13909 postdep_objects_CXX
="$postdep_objects_CXX $p"
13914 *) ;; # Ignore the rest.
13922 echo "libtool.m4: error: problem compiling CXX test program"
13925 $RM -f confest.
$objext
13927 # PORTME: override above test on systems where it is broken
13930 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13931 # hack all around it, let's just trust "g++" to DTRT.
13932 predep_objects_CXX
=
13933 postdep_objects_CXX
=
13938 case `$CC -V 2>&1 | sed 5q` in
13942 # The more standards-conforming stlport4 library is
13943 # incompatible with the Cstd library. Avoid specifying
13944 # it if it's in CXXFLAGS. Ignore libCrun as
13945 # -library=stlport4 depends on it.
13946 case " $CXX $CXXFLAGS " in
13947 *" -library=stlport4 "*)
13948 solaris_use_stlport4
=yes
13952 if test "$solaris_use_stlport4" != yes; then
13953 postdeps_CXX
='-library=Cstd -library=Crun'
13960 case $cc_basename in
13962 # The more standards-conforming stlport4 library is
13963 # incompatible with the Cstd library. Avoid specifying
13964 # it if it's in CXXFLAGS. Ignore libCrun as
13965 # -library=stlport4 depends on it.
13966 case " $CXX $CXXFLAGS " in
13967 *" -library=stlport4 "*)
13968 solaris_use_stlport4
=yes
13972 # Adding this requires a known-good setup of shared libraries for
13973 # Sun compiler versions before 5.6, else PIC objects from an old
13974 # archive will be linked into the output, leading to subtle bugs.
13975 if test "$solaris_use_stlport4" != yes; then
13976 postdeps_CXX
='-library=Cstd -library=Crun'
13984 case " $postdeps_CXX " in
13985 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
13987 compiler_lib_search_dirs_CXX
=
13988 if test -n "${compiler_lib_search_path_CXX}"; then
13989 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14022 lt_prog_compiler_wl_CXX
=
14023 lt_prog_compiler_pic_CXX
=
14024 lt_prog_compiler_static_CXX
=
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14027 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14029 # C++ specific cases for pic, static, wl, etc.
14030 if test "$GXX" = yes; then
14031 lt_prog_compiler_wl_CXX
='-Wl,'
14032 lt_prog_compiler_static_CXX
='-static'
14036 # All AIX code is PIC.
14037 if test "$host_cpu" = ia64
; then
14038 # AIX 5 now supports IA64 processor
14039 lt_prog_compiler_static_CXX
='-Bstatic'
14041 lt_prog_compiler_pic_CXX
='-fPIC'
14047 # see comment about AmigaOS4 .so support
14048 lt_prog_compiler_pic_CXX
='-fPIC'
14051 # FIXME: we need at least 68020 code to build shared libraries, but
14052 # adding the `-m68020' flag to GCC prevents building anything better,
14054 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
14059 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
14060 # PIC is the default for these OSes.
14062 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
14063 # This hack is so that the source file can tell whether it is being
14064 # built for inclusion in a dll (and should export symbols for example).
14065 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14066 # (--disable-auto-import) libraries
14067 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
14069 darwin
* | rhapsody
*)
14070 # PIC is the default on this platform
14071 # Common symbols not allowed in MH_DYLIB files
14072 lt_prog_compiler_pic_CXX
='-fno-common'
14075 # DJGPP does not support shared libraries at all
14076 lt_prog_compiler_pic_CXX
=
14079 # PIC is the default for Haiku.
14080 # The "-static" flag exists, but is broken.
14081 lt_prog_compiler_static_CXX
=
14084 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14085 # Instead, we relocate shared libraries at runtime.
14088 if test -d /usr
/nec
; then
14089 lt_prog_compiler_pic_CXX
=-Kconform_pic
14093 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14094 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14095 # sets the default TLS model and affects inlining.
14100 lt_prog_compiler_pic_CXX
='-fPIC'
14105 # QNX uses GNU C++, but need to define -shared option too, otherwise
14106 # it will coredump.
14107 lt_prog_compiler_pic_CXX
='-fPIC -shared'
14110 lt_prog_compiler_pic_CXX
='-fPIC'
14116 # All AIX code is PIC.
14117 if test "$host_cpu" = ia64
; then
14118 # AIX 5 now supports IA64 processor
14119 lt_prog_compiler_static_CXX
='-Bstatic'
14121 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
14125 case $cc_basename in
14127 # Green Hills C++ Compiler
14128 # _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"
14133 case $cc_basename in
14135 lt_prog_compiler_pic_CXX
='-KPIC'
14138 # Green Hills C++ Compiler
14139 lt_prog_compiler_pic_CXX
='-pic'
14145 freebsd
* | dragonfly
*)
14146 # FreeBSD uses GNU C++
14148 hpux9
* | hpux10
* | hpux11
*)
14149 case $cc_basename in
14151 lt_prog_compiler_wl_CXX
='-Wl,'
14152 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
14153 if test "$host_cpu" != ia64
; then
14154 lt_prog_compiler_pic_CXX
='+Z'
14158 lt_prog_compiler_wl_CXX
='-Wl,'
14159 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
14165 lt_prog_compiler_pic_CXX
='+Z'
14174 # This is c89, which is MS Visual C++ (no shared libs)
14175 # Anyone wants to do a port?
14177 irix5
* | irix6
* | nonstopux
*)
14178 case $cc_basename in
14180 lt_prog_compiler_wl_CXX
='-Wl,'
14181 lt_prog_compiler_static_CXX
='-non_shared'
14182 # CC pic flag -KPIC is the default.
14188 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
14189 case $cc_basename in
14192 lt_prog_compiler_wl_CXX
='--backend -Wl,'
14193 lt_prog_compiler_pic_CXX
='-fPIC'
14196 # old Intel C++ for x86_64 which still supported -KPIC.
14197 lt_prog_compiler_wl_CXX
='-Wl,'
14198 lt_prog_compiler_pic_CXX
='-KPIC'
14199 lt_prog_compiler_static_CXX
='-static'
14202 # Intel C++, used to be incompatible with GCC.
14203 # ICC 10 doesn't accept -KPIC any more.
14204 lt_prog_compiler_wl_CXX
='-Wl,'
14205 lt_prog_compiler_pic_CXX
='-fPIC'
14206 lt_prog_compiler_static_CXX
='-static'
14209 # Portland Group C++ compiler
14210 lt_prog_compiler_wl_CXX
='-Wl,'
14211 lt_prog_compiler_pic_CXX
='-fpic'
14212 lt_prog_compiler_static_CXX
='-Bstatic'
14216 # Make sure the PIC flag is empty. It appears that all Alpha
14217 # Linux and Compaq Tru64 Unix objects are PIC.
14218 lt_prog_compiler_pic_CXX
=
14219 lt_prog_compiler_static_CXX
='-non_shared'
14221 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
14222 # IBM XL 8.0, 9.0 on PPC and BlueGene
14223 lt_prog_compiler_wl_CXX
='-Wl,'
14224 lt_prog_compiler_pic_CXX
='-qpic'
14225 lt_prog_compiler_static_CXX
='-qstaticlink'
14228 case `$CC -V 2>&1 | sed 5q` in
14231 lt_prog_compiler_pic_CXX
='-KPIC'
14232 lt_prog_compiler_static_CXX
='-Bstatic'
14233 lt_prog_compiler_wl_CXX
='-Qoption ld '
14244 case $cc_basename in
14246 lt_prog_compiler_pic_CXX
='-W c,exportall'
14255 # QNX uses GNU C++, but need to define -shared option too, otherwise
14256 # it will coredump.
14257 lt_prog_compiler_pic_CXX
='-fPIC -shared'
14259 osf3
* | osf4
* | osf5
*)
14260 case $cc_basename in
14262 lt_prog_compiler_wl_CXX
='--backend -Wl,'
14265 # Rational C++ 2.4.1
14266 lt_prog_compiler_pic_CXX
='-pic'
14269 # Digital/Compaq C++
14270 lt_prog_compiler_wl_CXX
='-Wl,'
14271 # Make sure the PIC flag is empty. It appears that all Alpha
14272 # Linux and Compaq Tru64 Unix objects are PIC.
14273 lt_prog_compiler_pic_CXX
=
14274 lt_prog_compiler_static_CXX
='-non_shared'
14283 case $cc_basename in
14285 # Sun C++ 4.2, 5.x and Centerline C++
14286 lt_prog_compiler_pic_CXX
='-KPIC'
14287 lt_prog_compiler_static_CXX
='-Bstatic'
14288 lt_prog_compiler_wl_CXX
='-Qoption ld '
14291 # Green Hills C++ Compiler
14292 lt_prog_compiler_pic_CXX
='-PIC'
14299 case $cc_basename in
14302 lt_prog_compiler_pic_CXX
='-pic'
14303 lt_prog_compiler_static_CXX
='-Bstatic'
14307 lt_prog_compiler_pic_CXX
='-pic'
14313 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
14314 case $cc_basename in
14316 lt_prog_compiler_wl_CXX
='-Wl,'
14317 lt_prog_compiler_pic_CXX
='-KPIC'
14318 lt_prog_compiler_static_CXX
='-Bstatic'
14323 case $cc_basename in
14325 # NonStop-UX NCC 3.20
14326 lt_prog_compiler_pic_CXX
='-KPIC'
14335 lt_prog_compiler_can_build_shared_CXX
=no
14341 # For platforms which do not support PIC, -DPIC is meaningless:
14343 lt_prog_compiler_pic_CXX
=
14346 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14350 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14355 # Check to make sure the PIC flag actually works.
14357 if test -n "$lt_prog_compiler_pic_CXX"; then
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14359 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14360 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
14361 $as_echo_n "(cached) " >&6
14363 lt_cv_prog_compiler_pic_works_CXX
=no
14364 ac_outfile
=conftest.
$ac_objext
14365 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14366 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
14367 # Insert the option either (1) after the last *FLAGS variable, or
14368 # (2) before a word containing "conftest.", or (3) at the end.
14369 # Note that $ac_compile itself does not contain backslashes and begins
14370 # with a dollar sign (not a hyphen), so the echo should work correctly.
14371 # The option is referenced via a variable to avoid confusing sed.
14372 lt_compile
=`echo "$ac_compile" | $SED \
14373 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14374 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14375 -e 's:$: $lt_compiler_flag:'`
14376 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14377 (eval "$lt_compile" 2>conftest.err
)
14379 cat conftest.err
>&5
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 if (exit $ac_status) && test -s "$ac_outfile"; then
14382 # The compiler can only warn and ignore the option if not recognized
14383 # So say no if there are warnings other than the usual output.
14384 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
14385 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14386 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
14387 lt_cv_prog_compiler_pic_works_CXX
=yes
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14394 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14396 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
14397 case $lt_prog_compiler_pic_CXX in
14399 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
14402 lt_prog_compiler_pic_CXX
=
14403 lt_prog_compiler_can_build_shared_CXX
=no
14411 # Check to make sure the static flag actually works.
14413 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14415 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14416 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
14417 $as_echo_n "(cached) " >&6
14419 lt_cv_prog_compiler_static_works_CXX
=no
14420 save_LDFLAGS
="$LDFLAGS"
14421 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
14422 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
14423 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
14424 # The linker can only warn and ignore the option if not recognized
14425 # So say no if there are warnings
14426 if test -s conftest.err
; then
14427 # Append any errors to the config.log.
14428 cat conftest.err
1>&5
14429 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
14430 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14431 if diff conftest.exp conftest.er2
>/dev
/null
; then
14432 lt_cv_prog_compiler_static_works_CXX
=yes
14435 lt_cv_prog_compiler_static_works_CXX
=yes
14439 LDFLAGS
="$save_LDFLAGS"
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14443 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14445 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
14448 lt_prog_compiler_static_CXX
=
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14455 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14456 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
14457 $as_echo_n "(cached) " >&6
14459 lt_cv_prog_compiler_c_o_CXX
=no
14460 $RM -r conftest
2>/dev
/null
14464 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14466 lt_compiler_flag
="-o out/conftest2.$ac_objext"
14467 # Insert the option either (1) after the last *FLAGS variable, or
14468 # (2) before a word containing "conftest.", or (3) at the end.
14469 # Note that $ac_compile itself does not contain backslashes and begins
14470 # with a dollar sign (not a hyphen), so the echo should work correctly.
14471 lt_compile
=`echo "$ac_compile" | $SED \
14472 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14473 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14474 -e 's:$: $lt_compiler_flag:'`
14475 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14476 (eval "$lt_compile" 2>out
/conftest.err
)
14478 cat out
/conftest.err
>&5
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
14482 # The compiler can only warn and ignore the option if not recognized
14483 # So say no if there are warnings
14484 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
14485 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
14486 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
14487 lt_cv_prog_compiler_c_o_CXX
=yes
14492 # SGI C++ compiler will create directory out/ii_files/ for
14493 # template instantiation
14494 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
14495 $RM out
/* && rmdir out
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14502 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14507 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14508 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
14509 $as_echo_n "(cached) " >&6
14511 lt_cv_prog_compiler_c_o_CXX
=no
14512 $RM -r conftest
2>/dev
/null
14516 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14518 lt_compiler_flag
="-o out/conftest2.$ac_objext"
14519 # Insert the option either (1) after the last *FLAGS variable, or
14520 # (2) before a word containing "conftest.", or (3) at the end.
14521 # Note that $ac_compile itself does not contain backslashes and begins
14522 # with a dollar sign (not a hyphen), so the echo should work correctly.
14523 lt_compile
=`echo "$ac_compile" | $SED \
14524 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14525 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14526 -e 's:$: $lt_compiler_flag:'`
14527 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14528 (eval "$lt_compile" 2>out
/conftest.err
)
14530 cat out
/conftest.err
>&5
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
14534 # The compiler can only warn and ignore the option if not recognized
14535 # So say no if there are warnings
14536 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
14537 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
14538 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
14539 lt_cv_prog_compiler_c_o_CXX
=yes
14544 # SGI C++ compiler will create directory out/ii_files/ for
14545 # template instantiation
14546 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
14547 $RM out
/* && rmdir out
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14554 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14559 hard_links
="nottested"
14560 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
14561 # do not overwrite the value of need_locks provided by the user
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14563 $as_echo_n "checking if we can lock with hard links... " >&6; }
14566 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14568 ln conftest.a conftest.b
2>&5 || hard_links
=no
14569 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14571 $as_echo "$hard_links" >&6; }
14572 if test "$hard_links" = no
; then
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14574 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14584 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14586 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14589 # If we're using GNU nm, then we don't want the "-C" option.
14590 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14591 # Also, AIX nm treats weak defined symbols like other global defined
14592 # symbols, whereas GNU nm marks them as "W".
14593 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
14594 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'
14596 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'
14600 export_symbols_cmds_CXX
="$ltdll_cmds"
14602 cygwin
* | mingw
* | cegcc
*)
14603 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'
14606 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14609 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14612 $as_echo "$ld_shlibs_CXX" >&6; }
14613 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
14615 with_gnu_ld_CXX
=$with_gnu_ld
14623 # Do we need to explicitly link libc?
14625 case "x$archive_cmds_need_lc_CXX" in
14627 # Assume -lc should be added
14628 archive_cmds_need_lc_CXX
=yes
14630 if test "$enable_shared" = yes && test "$GCC" = yes; then
14631 case $archive_cmds_CXX in
14633 # FIXME: we may have to deal with multi-command sequences.
14636 # Test whether the compiler implicitly links with -lc since on some
14637 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14638 # to ld, don't add -lc before -lgcc.
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14640 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14641 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
14642 $as_echo_n "(cached) " >&6
14645 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14647 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14648 (eval $ac_compile) 2>&5
14650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14651 test $ac_status = 0; } 2>conftest.err
; then
14654 libobjs
=conftest.
$ac_objext
14656 wl
=$lt_prog_compiler_wl_CXX
14657 pic_flag
=$lt_prog_compiler_pic_CXX
14663 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
14664 allow_undefined_flag_CXX
=
14665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14666 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
14668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14669 test $ac_status = 0; }
14671 lt_cv_archive_cmds_need_lc_CXX
=no
14673 lt_cv_archive_cmds_need_lc_CXX
=yes
14675 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
14677 cat conftest.err
1>&5
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14683 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14684 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14755 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14757 library_names_spec
=
14758 libname_spec
='lib$name'
14762 postuninstall_cmds
=
14766 shlibpath_overrides_runpath
=unknown
14768 dynamic_linker
="$host_os ld.so"
14769 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
14770 need_lib_prefix
=unknown
14771 hardcode_into_libs
=no
14773 # when you set need_version to no, make sure it does not cause -set_version
14774 # flags to be left without arguments
14775 need_version
=unknown
14780 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
14781 shlibpath_var
=LIBPATH
14783 # AIX 3 has no versioning support, so we append a major version to the name.
14784 soname_spec
='${libname}${release}${shared_ext}$major'
14791 hardcode_into_libs
=yes
14792 if test "$host_cpu" = ia64
; then
14793 # AIX 5 supports IA64
14794 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14795 shlibpath_var
=LD_LIBRARY_PATH
14797 # With GCC up to 2.95.x, collect2 would create an import file
14798 # for dependence libraries. The import file would start with
14799 # the line `#! .'. This would cause the generated library to
14800 # depend on `.', always an invalid library. This was fixed in
14801 # development snapshots of GCC prior to 3.0.
14803 aix4 | aix4.
[01] | aix4.
[01].
*)
14804 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14806 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
14809 can_build_shared
=no
14813 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14814 # soname into executable. Probably we can add versioning support to
14815 # collect2, so additional links can be useful in future.
14816 if test "$aix_use_runtimelinking" = yes; then
14817 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14818 # instead of lib<name>.a to let people know that these are not
14819 # typical AIX shared libraries.
14820 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14822 # We preserve .a as extension for shared libraries through AIX4.2
14823 # and later when we are not doing run time linking.
14824 library_names_spec
='${libname}${release}.a $libname.a'
14825 soname_spec
='${libname}${release}${shared_ext}$major'
14827 shlibpath_var
=LIBPATH
14834 # Since July 2007 AmigaOS4 officially supports .so libraries.
14835 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14836 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14839 library_names_spec
='$libname.ixlibrary $libname.a'
14840 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14841 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'
14847 library_names_spec
='${libname}${shared_ext}'
14848 dynamic_linker
="$host_os ld.so"
14849 shlibpath_var
=LIBRARY_PATH
14855 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14856 soname_spec
='${libname}${release}${shared_ext}$major'
14857 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
14858 shlibpath_var
=LD_LIBRARY_PATH
14859 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14860 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
14861 # the default ld.so.conf also contains /usr/contrib/lib and
14862 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14863 # libtool to hard-code these into programs
14866 cygwin
* | mingw
* | pw32
* | cegcc
*)
14867 version_type
=windows
14872 case $GCC,$host_os in
14873 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
14874 library_names_spec
='$libname.dll.a'
14875 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14876 postinstall_cmds
='base_file=`basename \${file}`~
14877 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14878 dldir=$destdir/`dirname \$dlpath`~
14879 test -d \$dldir || mkdir -p \$dldir~
14880 $install_prog $dir/$dlname \$dldir/$dlname~
14881 chmod a+x \$dldir/$dlname~
14882 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14883 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14885 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14886 dlpath=$dir/\$dldll~
14888 shlibpath_overrides_runpath
=yes
14892 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14893 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14897 # MinGW DLLs use traditional 'lib' prefix
14898 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14901 # pw32 DLLs use 'pw' prefix rather than 'lib'
14902 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14908 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14911 dynamic_linker
='Win32 ld.exe'
14912 # FIXME: first we should search . and the directory the executable is in
14916 darwin
* | rhapsody
*)
14917 dynamic_linker
="$host_os dyld"
14918 version_type
=darwin
14921 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14922 soname_spec
='${libname}${release}${major}$shared_ext'
14923 shlibpath_overrides_runpath
=yes
14924 shlibpath_var
=DYLD_LIBRARY_PATH
14925 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
14927 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
14934 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14935 soname_spec
='${libname}${release}${shared_ext}$major'
14936 shlibpath_var
=LD_LIBRARY_PATH
14939 freebsd
* | dragonfly
*)
14940 # DragonFly does not have aout. When/if they implement a new
14941 # versioning mechanism, adjust this.
14942 if test -x /usr
/bin
/objformat
; then
14943 objformat
=`/usr/bin/objformat`
14946 freebsd
[23].
*) objformat
=aout
;;
14947 *) objformat
=elf
;;
14950 version_type
=freebsd-
$objformat
14951 case $version_type in
14953 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14958 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14962 shlibpath_var
=LD_LIBRARY_PATH
14965 shlibpath_overrides_runpath
=yes
14967 freebsd3.
[01]* | freebsdelf3.
[01]*)
14968 shlibpath_overrides_runpath
=yes
14969 hardcode_into_libs
=yes
14971 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
14972 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
14973 shlibpath_overrides_runpath
=no
14974 hardcode_into_libs
=yes
14976 *) # from 4.6 on, and DragonFly
14977 shlibpath_overrides_runpath
=yes
14978 hardcode_into_libs
=yes
14987 dynamic_linker
="$host_os runtime_loader"
14988 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14989 soname_spec
='${libname}${release}${shared_ext}$major'
14990 shlibpath_var
=LIBRARY_PATH
14991 shlibpath_overrides_runpath
=yes
14992 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14993 hardcode_into_libs
=yes
14996 hpux9
* | hpux10
* | hpux11
*)
14997 # Give a soname corresponding to the major version so that dld.sl refuses to
14998 # link against other versions.
15005 hardcode_into_libs
=yes
15006 dynamic_linker
="$host_os dld.so"
15007 shlibpath_var
=LD_LIBRARY_PATH
15008 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15009 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15010 soname_spec
='${libname}${release}${shared_ext}$major'
15011 if test "X$HPUX_IA64_MODE" = X32
; then
15012 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15014 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
15016 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15020 hardcode_into_libs
=yes
15021 dynamic_linker
="$host_os dld.sl"
15022 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
15023 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15024 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15025 soname_spec
='${libname}${release}${shared_ext}$major'
15026 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15027 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15031 dynamic_linker
="$host_os dld.sl"
15032 shlibpath_var
=SHLIB_PATH
15033 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
15034 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15035 soname_spec
='${libname}${release}${shared_ext}$major'
15038 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15039 postinstall_cmds
='chmod 555 $lib'
15040 # or fails outright, so override atomically:
15041 install_override_mode
=555
15048 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15049 soname_spec
='${libname}${release}${shared_ext}$major'
15050 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
15051 shlibpath_var
=LD_LIBRARY_PATH
15052 shlibpath_overrides_runpath
=no
15053 hardcode_into_libs
=yes
15056 irix5
* | irix6
* | nonstopux
*)
15058 nonstopux
*) version_type
=nonstopux
;;
15060 if test "$lt_cv_prog_gnu_ld" = yes; then
15068 soname_spec
='${libname}${release}${shared_ext}$major'
15069 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15071 irix5
* | nonstopux
*)
15072 libsuff
= shlibsuff
=
15075 case $LD in # libtool.m4 will add one of these switches to LD
15076 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
15077 libsuff
= shlibsuff
= libmagic
=32-bit;;
15078 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
15079 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
15080 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
15081 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
15082 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
15086 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
15087 shlibpath_overrides_runpath
=no
15088 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15089 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
15090 hardcode_into_libs
=yes
15093 # No shared lib support for Linux oldld, aout, or coff.
15094 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
15098 # This must be Linux ELF.
15099 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
15103 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15104 soname_spec
='${libname}${release}${shared_ext}$major'
15105 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15106 shlibpath_var
=LD_LIBRARY_PATH
15107 shlibpath_overrides_runpath
=no
15109 # Some binutils ld are patched to set DT_RUNPATH
15110 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
15111 $as_echo_n "(cached) " >&6
15113 lt_cv_shlibpath_overrides_runpath
=no
15114 save_LDFLAGS
=$LDFLAGS
15115 save_libdir
=$libdir
15116 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15117 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15119 /* end confdefs.h. */
15129 if ac_fn_cxx_try_link
"$LINENO"; then :
15130 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
15131 lt_cv_shlibpath_overrides_runpath
=yes
15134 rm -f core conftest.err conftest.
$ac_objext \
15135 conftest
$ac_exeext conftest.
$ac_ext
15136 LDFLAGS
=$save_LDFLAGS
15137 libdir
=$save_libdir
15141 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
15143 # This implies no fast_install, which is unacceptable.
15144 # Some rework will be needed to allow for fast_install
15145 # before this can be enabled.
15146 hardcode_into_libs
=yes
15148 # Append ld.so.conf contents to the search path
15149 if test -f /etc
/ld.so.conf
; then
15150 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' ' '`
15151 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
15154 # We used to test for /lib/ld.so.1 and disable shared libraries on
15155 # powerpc, because MkLinux only supported shared libraries with the
15156 # GNU dynamic linker. Since this was broken with cross compilers,
15157 # most powerpc-linux boxes support dynamic linking these days and
15158 # people can always --disable-shared, the test was removed, and we
15159 # assume the GNU/Linux dynamic linker is in use.
15160 dynamic_linker
='GNU/Linux ld.so'
15167 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15168 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15169 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15170 dynamic_linker
='NetBSD (a.out) ld.so'
15172 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15173 soname_spec
='${libname}${release}${shared_ext}$major'
15174 dynamic_linker
='NetBSD ld.elf_so'
15176 shlibpath_var
=LD_LIBRARY_PATH
15177 shlibpath_overrides_runpath
=yes
15178 hardcode_into_libs
=yes
15183 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15184 shlibpath_var
=LD_LIBRARY_PATH
15185 shlibpath_overrides_runpath
=yes
15192 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15193 soname_spec
='${libname}${release}${shared_ext}$major'
15194 shlibpath_var
=LD_LIBRARY_PATH
15195 shlibpath_overrides_runpath
=no
15196 hardcode_into_libs
=yes
15197 dynamic_linker
='ldqnx.so'
15202 sys_lib_dlsearch_path_spec
="/usr/lib"
15204 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15206 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
15207 *) need_version
=no
;;
15209 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15210 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15211 shlibpath_var
=LD_LIBRARY_PATH
15212 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15214 openbsd2.
[89] | openbsd2.
[89].
*)
15215 shlibpath_overrides_runpath
=no
15218 shlibpath_overrides_runpath
=yes
15222 shlibpath_overrides_runpath
=yes
15227 libname_spec
='$name'
15230 library_names_spec
='$libname${shared_ext} $libname.a'
15231 dynamic_linker
='OS/2 ld.exe'
15232 shlibpath_var
=LIBPATH
15235 osf3
* | osf4
* | osf5
*)
15239 soname_spec
='${libname}${release}${shared_ext}$major'
15240 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15241 shlibpath_var
=LD_LIBRARY_PATH
15242 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15243 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
15254 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15255 soname_spec
='${libname}${release}${shared_ext}$major'
15256 shlibpath_var
=LD_LIBRARY_PATH
15257 shlibpath_overrides_runpath
=yes
15258 hardcode_into_libs
=yes
15259 # ldd complains unless libraries are executable
15260 postinstall_cmds
='chmod +x $lib'
15265 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15266 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15267 shlibpath_var
=LD_LIBRARY_PATH
15268 shlibpath_overrides_runpath
=yes
15269 if test "$with_gnu_ld" = yes; then
15277 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15278 soname_spec
='${libname}${release}${shared_ext}$major'
15279 shlibpath_var
=LD_LIBRARY_PATH
15280 case $host_vendor in
15282 shlibpath_overrides_runpath
=no
15284 runpath_var
=LD_RUN_PATH
15292 shlibpath_overrides_runpath
=no
15293 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
15299 if test -d /usr
/nec
;then
15301 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15302 soname_spec
='$libname${shared_ext}.$major'
15303 shlibpath_var
=LD_LIBRARY_PATH
15307 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
15308 version_type
=freebsd-elf
15311 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15312 soname_spec
='${libname}${release}${shared_ext}$major'
15313 shlibpath_var
=LD_LIBRARY_PATH
15314 shlibpath_overrides_runpath
=yes
15315 hardcode_into_libs
=yes
15316 if test "$with_gnu_ld" = yes; then
15317 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15319 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
15322 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
15326 sys_lib_dlsearch_path_spec
='/usr/lib'
15330 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15334 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15335 shlibpath_var
=LD_LIBRARY_PATH
15336 shlibpath_overrides_runpath
=no
15337 hardcode_into_libs
=yes
15342 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15343 soname_spec
='${libname}${release}${shared_ext}$major'
15344 shlibpath_var
=LD_LIBRARY_PATH
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15352 $as_echo "$dynamic_linker" >&6; }
15353 test "$dynamic_linker" = no
&& can_build_shared
=no
15355 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
15356 if test "$GCC" = yes; then
15357 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15360 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15361 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
15363 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15364 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15405 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15406 hardcode_action_CXX
=
15407 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15408 test -n "$runpath_var_CXX" ||
15409 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15411 # We can hardcode non-existent directories.
15412 if test "$hardcode_direct_CXX" != no
&&
15413 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15414 # have to relink, otherwise we might link with an installed library
15415 # when we should be linking with a yet-to-be-installed one
15416 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15417 test "$hardcode_minus_L_CXX" != no
; then
15418 # Linking always hardcodes the temporary library directory.
15419 hardcode_action_CXX
=relink
15421 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15422 hardcode_action_CXX
=immediate
15425 # We cannot hardcode anything, or else we can only hardcode existing
15427 hardcode_action_CXX
=unsupported
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15430 $as_echo "$hardcode_action_CXX" >&6; }
15432 if test "$hardcode_action_CXX" = relink ||
15433 test "$inherit_rpath_CXX" = yes; then
15434 # Fast installation is not supported
15435 enable_fast_install
=no
15436 elif test "$shlibpath_overrides_runpath" = yes ||
15437 test "$enable_shared" = no
; then
15438 # Fast installation is not necessary
15439 enable_fast_install
=needless
15448 fi # test -n "$compiler"
15454 with_gnu_ld
=$lt_save_with_gnu_ld
15455 lt_cv_path_LDCXX
=$lt_cv_path_LD
15456 lt_cv_path_LD
=$lt_save_path_LD
15457 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
15458 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
15459 fi # test "$_lt_caught_CXX_error" != yes
15462 ac_cpp
='$CPP $CPPFLAGS'
15463 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15464 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15465 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15479 ac_config_commands
="$ac_config_commands libtool"
15484 # Only expand once:
15488 GPROFNG_LIBADD
="-L../../libiberty -liberty"
15489 if test "$enable_shared" = "yes"; then
15490 GPROFNG_LIBADD
="-L../../libiberty/pic -liberty"
15494 # Figure out what compiler warnings we can enable.
15495 # See config/warnings.m4 for details.
15498 ac_cpp
='$CPP $CPPFLAGS'
15499 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15500 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15501 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15504 # Check whether --enable-werror-always was given.
15505 if test "${enable_werror_always+set}" = set; then :
15506 enableval
=$enable_werror_always;
15508 enable_werror_always
=no
15511 if test $enable_werror_always = yes; then :
15512 WERROR
="$WERROR${WERROR:+ }-Werror"
15516 ac_cpp
='$CPP $CPPFLAGS'
15517 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15518 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15519 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15523 ac_cpp
='$CPP $CPPFLAGS'
15524 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15525 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15526 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15529 save_CFLAGS
="$CFLAGS"
15530 for real_option
in -Wall; do
15531 # Do the check with the no- prefix removed since gcc silently
15532 # accepts any -Wno-* option on purpose
15533 case $real_option in
15534 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
15535 *) option
=$real_option ;;
15537 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
15540 $as_echo_n "checking whether $CC supports $option... " >&6; }
15541 if eval \
${$as_acx_Woption+:} false
; then :
15542 $as_echo_n "(cached) " >&6
15545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15546 /* end confdefs.h. */
15556 if ac_fn_c_try_compile
"$LINENO"; then :
15557 eval "$as_acx_Woption=yes"
15559 eval "$as_acx_Woption=no"
15561 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15564 eval ac_res
=\$
$as_acx_Woption
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15566 $as_echo "$ac_res" >&6; }
15567 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
15568 gprofng_cflags
="$gprofng_cflags${gprofng_cflags:+ }$real_option"
15571 CFLAGS
="$save_CFLAGS"
15573 ac_cpp
='$CPP $CPPFLAGS'
15574 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15575 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15576 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15580 ac_cpp
='$CPP $CPPFLAGS'
15581 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15582 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15583 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15585 GPROFNG_NO_FORMAT_TRUNCATION_CFLAGS
=
15586 save_CFLAGS
="$CFLAGS"
15587 for real_option
in -Wno-format-truncation; do
15588 # Do the check with the no- prefix removed since gcc silently
15589 # accepts any -Wno-* option on purpose
15590 case $real_option in
15591 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
15592 *) option
=$real_option ;;
15594 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
15597 $as_echo_n "checking whether $CC supports $option... " >&6; }
15598 if eval \
${$as_acx_Woption+:} false
; then :
15599 $as_echo_n "(cached) " >&6
15602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15603 /* end confdefs.h. */
15613 if ac_fn_c_try_compile
"$LINENO"; then :
15614 eval "$as_acx_Woption=yes"
15616 eval "$as_acx_Woption=no"
15618 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15621 eval ac_res
=\$
$as_acx_Woption
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15623 $as_echo "$ac_res" >&6; }
15624 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
15625 GPROFNG_NO_FORMAT_TRUNCATION_CFLAGS
="$GPROFNG_NO_FORMAT_TRUNCATION_CFLAGS${GPROFNG_NO_FORMAT_TRUNCATION_CFLAGS:+ }$real_option"
15628 CFLAGS
="$save_CFLAGS"
15630 ac_cpp
='$CPP $CPPFLAGS'
15631 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15632 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15633 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15637 ac_cpp
='$CPP $CPPFLAGS'
15638 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15639 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15640 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15642 GPROFNG_NO_SWITCH_CFLAGS
=
15643 save_CFLAGS
="$CFLAGS"
15644 for real_option
in -Wno-switch; do
15645 # Do the check with the no- prefix removed since gcc silently
15646 # accepts any -Wno-* option on purpose
15647 case $real_option in
15648 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
15649 *) option
=$real_option ;;
15651 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
15654 $as_echo_n "checking whether $CC supports $option... " >&6; }
15655 if eval \
${$as_acx_Woption+:} false
; then :
15656 $as_echo_n "(cached) " >&6
15659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15660 /* end confdefs.h. */
15670 if ac_fn_c_try_compile
"$LINENO"; then :
15671 eval "$as_acx_Woption=yes"
15673 eval "$as_acx_Woption=no"
15675 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15678 eval ac_res
=\$
$as_acx_Woption
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15680 $as_echo "$ac_res" >&6; }
15681 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
15682 GPROFNG_NO_SWITCH_CFLAGS
="$GPROFNG_NO_SWITCH_CFLAGS${GPROFNG_NO_SWITCH_CFLAGS:+ }$real_option"
15685 CFLAGS
="$save_CFLAGS"
15687 ac_cpp
='$CPP $CPPFLAGS'
15688 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15689 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15690 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15693 gprofng_cppflags
="-U_ASM"
15697 # This is annoying: it means we have to pass --enable-shared explicitly to
15698 # get gprofng, while the configure default is supposed to be that shared libs
15699 # are on by default. But as long as libiberty has code like this, so must
15702 case "${target}" in
15705 build_collector
=true
15708 build_collector
=true
15709 build_collector
=true
15713 build_collector
=true
15716 # Check whether --enable-gprofng-tools was given.
15717 if test "${enable_gprofng_tools+set}" = set; then :
15718 enableval
=$enable_gprofng_tools; build_src
=$enableval
15722 if test x
$build_collector = xtrue
; then
15723 BUILD_COLLECTOR_TRUE
=
15724 BUILD_COLLECTOR_FALSE
='#'
15726 BUILD_COLLECTOR_TRUE
='#'
15727 BUILD_COLLECTOR_FALSE
=
15730 if test x
$build_src = xtrue
; then
15732 BUILD_SRC_FALSE
='#'
15740 if test x
$build_collector = xtrue
; then
15743 subdirs
="$subdirs libcollector"
15745 if test x
${host} = x
${target}; then
15749 if test x
$run_tests = xtrue
; then
15751 RUN_TESTS_FALSE
='#'
15762 ac_cpp
='$CPP $CPPFLAGS'
15763 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15764 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15765 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15769 # We used to check for pthread.h first, but this fails if pthread.h
15770 # requires special compiler flags (e.g. on Tru64 or Sequent).
15771 # It gets checked for in the link test anyway.
15773 # First of all, check if the user has set any of the PTHREAD_LIBS,
15774 # etcetera environment variables, and if threads linking works using
15776 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
15777 ax_pthread_save_CC
="$CC"
15778 ax_pthread_save_CFLAGS
="$CFLAGS"
15779 ax_pthread_save_LIBS
="$LIBS"
15780 if test "x$PTHREAD_CC" != "x"; then :
15783 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
15784 LIBS
="$PTHREAD_LIBS $LIBS"
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
15786 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
15787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15788 /* end confdefs.h. */
15790 /* Override any GCC internal prototype to avoid an error.
15791 Use char because int might match the return type of a GCC
15792 builtin and then its argument prototype would still apply. */
15796 char pthread_join ();
15800 return pthread_join ();
15805 if ac_fn_c_try_link
"$LINENO"; then :
15808 rm -f core conftest.err conftest.
$ac_objext \
15809 conftest
$ac_exeext conftest.
$ac_ext
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15811 $as_echo "$ax_pthread_ok" >&6; }
15812 if test "x$ax_pthread_ok" = "xno"; then
15816 CC
="$ax_pthread_save_CC"
15817 CFLAGS
="$ax_pthread_save_CFLAGS"
15818 LIBS
="$ax_pthread_save_LIBS"
15821 # We must check for the threads library under a number of different
15822 # names; the ordering is very important because some systems
15823 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15824 # libraries is broken (non-POSIX).
15826 # Create a list of thread flags to try. Items starting with a "-" are
15827 # C compiler flags, and other items are library names, except for "none"
15828 # which indicates that we try without any flags at all, and "pthread-config"
15829 # which is a program returning the flags for the Pth emulation library.
15831 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15833 # The ordering *is* (sometimes) important. Some notes on the
15834 # individual items follow:
15836 # pthreads: AIX (must check this before -lpthread)
15837 # none: in case threads are in libc; should be tried before -Kthread and
15838 # other compiler flags to prevent continual compiler warnings
15839 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15840 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
15841 # (Note: HP C rejects this with "bad form for `-t' option")
15842 # -pthreads: Solaris/gcc (Note: HP C also rejects)
15843 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15844 # doesn't hurt to check since this sometimes defines pthreads and
15845 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
15846 # is present but should not be used directly; and before -mthreads,
15847 # because the compiler interprets this as "-mt" + "-hreads")
15848 # -mthreads: Mingw32/gcc, Lynx/gcc
15849 # pthread: Linux, etcetera
15850 # --thread-safe: KAI C++
15851 # pthread-config: use pthread-config program (for GNU Pth library)
15857 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15858 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15860 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
15865 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
15866 # multi-threading and also sets -lpthread."
15868 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
15873 # IBM z/OS requires a feature-test macro to be defined in order to
15874 # enable POSIX threads at all, so give the user a hint if this is
15875 # not set. (We don't define these ourselves, as they can affect
15876 # other portions of the system API in unpredictable ways.)
15878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15879 /* end confdefs.h. */
15881 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
15882 AX_PTHREAD_ZOS_MISSING
15886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15887 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
15889 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
15897 # On Solaris (at least, for some versions), libc contains stubbed
15898 # (non-functional) versions of the pthreads routines, so link-based
15899 # tests will erroneously succeed. (N.B.: The stubs are missing
15900 # pthread_cleanup_push, or rather a function called by this macro,
15901 # so we could check for that, but who knows whether they'll stub
15902 # that too in a future libc.) So we'll check first for the
15903 # standard Solaris way of linking pthreads (-mt -lpthread).
15905 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
15909 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
15911 if test "x$GCC" = "xyes"; then :
15912 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
15915 # The presence of a feature test macro requesting re-entrant function
15916 # definitions is, on some systems, a strong hint that pthreads support is
15917 # correctly enabled
15920 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
15921 ax_pthread_check_macro
="_REENTRANT"
15925 ax_pthread_check_macro
="_THREAD_SAFE"
15929 ax_pthread_check_macro
="--"
15932 if test "x$ax_pthread_check_macro" = "x--"; then :
15933 ax_pthread_check_cond
=0
15935 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
15938 # Are we compiling with Clang?
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
15941 $as_echo_n "checking whether $CC is Clang... " >&6; }
15942 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
15943 $as_echo_n "(cached) " >&6
15945 ax_cv_PTHREAD_CLANG
=no
15946 # Note that Autoconf sets GCC=yes for Clang as well as GCC
15947 if test "x$GCC" = "xyes"; then
15948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15949 /* end confdefs.h. */
15950 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
15951 # if defined(__clang__) && defined(__llvm__)
15952 AX_PTHREAD_CC_IS_CLANG
15956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15957 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
15958 ax_cv_PTHREAD_CLANG
=yes
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
15966 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
15967 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
15969 ax_pthread_clang_warning
=no
15971 # Clang needs special handling, because older versions handle the -pthread
15972 # option in a rather... idiosyncratic way
15974 if test "x$ax_pthread_clang" = "xyes"; then
15976 # Clang takes -pthread; it has never supported any other flag
15978 # (Note 1: This will need to be revisited if a system that Clang
15979 # supports has POSIX threads in a separate library. This tends not
15980 # to be the way of modern systems, but it's conceivable.)
15982 # (Note 2: On some systems, notably Darwin, -pthread is not needed
15983 # to get POSIX threads support; the API is always present and
15984 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
15985 # -pthread does define _REENTRANT, and while the Darwin headers
15986 # ignore this macro, third-party headers might not.)
15988 PTHREAD_CFLAGS
="-pthread"
15993 # However, older versions of Clang make a point of warning the user
15994 # that, in an invocation where only linking and no compilation is
15995 # taking place, the -pthread option has no effect ("argument unused
15996 # during compilation"). They expect -pthread to be passed in only
15997 # when source code is being compiled.
15999 # Problem is, this is at odds with the way Automake and most other
16000 # C build frameworks function, which is that the same flags used in
16001 # compilation (CFLAGS) are also used in linking. Many systems
16002 # supported by AX_PTHREAD require exactly this for POSIX threads
16003 # support, and in fact it is often not straightforward to specify a
16004 # flag that is used only in the compilation phase and not in
16005 # linking. Such a scenario is extremely rare in practice.
16007 # Even though use of the -pthread flag in linking would only print
16008 # a warning, this can be a nuisance for well-run software projects
16009 # that build with -Werror. So if the active version of Clang has
16010 # this misfeature, we search for an option to squash it.
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
16013 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
16014 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
16015 $as_echo_n "(cached) " >&6
16017 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
16018 # Create an alternate version of $ac_link that compiles and
16019 # links in two steps (.c -> .o, .o -> exe) instead of one
16020 # (.c -> exe), because the warning occurs only in the second
16022 ax_pthread_save_ac_link
="$ac_link"
16023 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
16024 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
16025 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
16026 ax_pthread_save_CFLAGS
="$CFLAGS"
16027 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
16028 if test "x$ax_pthread_try" = "xunknown"; then :
16031 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
16032 ac_link
="$ax_pthread_save_ac_link"
16033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16034 /* end confdefs.h. */
16035 int main(void){return 0;}
16037 if ac_fn_c_try_link
"$LINENO"; then :
16038 ac_link
="$ax_pthread_2step_ac_link"
16039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16040 /* end confdefs.h. */
16041 int main(void){return 0;}
16043 if ac_fn_c_try_link
"$LINENO"; then :
16046 rm -f core conftest.err conftest.
$ac_objext \
16047 conftest
$ac_exeext conftest.
$ac_ext
16050 rm -f core conftest.err conftest.
$ac_objext \
16051 conftest
$ac_exeext conftest.
$ac_ext
16053 ac_link
="$ax_pthread_save_ac_link"
16054 CFLAGS
="$ax_pthread_save_CFLAGS"
16055 if test "x$ax_pthread_try" = "x"; then :
16058 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
16062 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
16064 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
16066 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
16069 fi # $ax_pthread_clang = yes
16071 if test "x$ax_pthread_ok" = "xno"; then
16072 for ax_pthread_try_flag
in $ax_pthread_flags; do
16074 case $ax_pthread_try_flag in
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16077 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
16082 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
16083 PTHREAD_CFLAGS
="-mt"
16084 PTHREAD_LIBS
="-lpthread"
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
16089 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
16090 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
16094 # Extract the first word of "pthread-config", so it can be a program name with args.
16095 set dummy pthread-config
; ac_word
=$2
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16097 $as_echo_n "checking for $ac_word... " >&6; }
16098 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
16099 $as_echo_n "(cached) " >&6
16101 if test -n "$ax_pthread_config"; then
16102 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
16104 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16105 for as_dir
in $PATH
16108 test -z "$as_dir" && as_dir
=.
16109 for ac_exec_ext
in '' $ac_executable_extensions; do
16110 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16111 ac_cv_prog_ax_pthread_config
="yes"
16112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16119 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
16122 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
16123 if test -n "$ax_pthread_config"; then
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
16125 $as_echo "$ax_pthread_config" >&6; }
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16128 $as_echo "no" >&6; }
16132 if test "x$ax_pthread_config" = "xno"; then :
16135 PTHREAD_CFLAGS
="`pthread-config --cflags`"
16136 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
16141 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
16142 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
16146 ax_pthread_save_CFLAGS
="$CFLAGS"
16147 ax_pthread_save_LIBS
="$LIBS"
16148 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
16149 LIBS
="$PTHREAD_LIBS $LIBS"
16151 # Check for various functions. We must include pthread.h,
16152 # since some functions may be macros. (On the Sequent, we
16153 # need a special flag -Kthread to make this header compile.)
16154 # We check for pthread_join because it is in -lpthread on IRIX
16155 # while pthread_create is in libc. We check for pthread_attr_init
16156 # due to DEC craziness with -lpthreads. We check for
16157 # pthread_cleanup_push because it is one of the few pthread
16158 # functions on Solaris that doesn't have a non-functional libc stub.
16159 # We try pthread_create on general principles.
16161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16162 /* end confdefs.h. */
16163 #include <pthread.h>
16164 # if $ax_pthread_check_cond
16165 # error "$ax_pthread_check_macro must be defined"
16167 static void routine(void *a) { a = 0; }
16168 static void *start_routine(void *a) { return a; }
16172 pthread_t th; pthread_attr_t attr;
16173 pthread_create(&th, 0, start_routine, 0);
16174 pthread_join(th, 0);
16175 pthread_attr_init(&attr);
16176 pthread_cleanup_push(routine, 0);
16177 pthread_cleanup_pop(0) /* ; */
16182 if ac_fn_c_try_link
"$LINENO"; then :
16185 rm -f core conftest.err conftest.
$ac_objext \
16186 conftest
$ac_exeext conftest.
$ac_ext
16188 CFLAGS
="$ax_pthread_save_CFLAGS"
16189 LIBS
="$ax_pthread_save_LIBS"
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16192 $as_echo "$ax_pthread_ok" >&6; }
16193 if test "x$ax_pthread_ok" = "xyes"; then :
16202 # Various other checks:
16203 if test "x$ax_pthread_ok" = "xyes"; then
16204 ax_pthread_save_CFLAGS
="$CFLAGS"
16205 ax_pthread_save_LIBS
="$LIBS"
16206 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
16207 LIBS
="$PTHREAD_LIBS $LIBS"
16209 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16211 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16212 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
16213 $as_echo_n "(cached) " >&6
16215 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
16216 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
16217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16218 /* end confdefs.h. */
16219 #include <pthread.h>
16223 int attr = $ax_pthread_attr; return attr /* ; */
16228 if ac_fn_c_try_link
"$LINENO"; then :
16229 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
16231 rm -f core conftest.err conftest.
$ac_objext \
16232 conftest
$ac_exeext conftest.
$ac_ext
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
16237 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
16238 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
16239 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
16240 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
16242 cat >>confdefs.h
<<_ACEOF
16243 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
16246 ax_pthread_joinable_attr_defined
=yes
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
16251 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
16252 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
16253 $as_echo_n "(cached) " >&6
16255 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
16258 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
16264 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
16265 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
16266 test "x$ax_pthread_special_flags_added" != "xyes"; then :
16267 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
16268 ax_pthread_special_flags_added
=yes
16271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
16272 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
16273 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
16274 $as_echo_n "(cached) " >&6
16276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16277 /* end confdefs.h. */
16278 #include <pthread.h>
16282 int i = PTHREAD_PRIO_INHERIT;
16287 if ac_fn_c_try_link
"$LINENO"; then :
16288 ax_cv_PTHREAD_PRIO_INHERIT
=yes
16290 ax_cv_PTHREAD_PRIO_INHERIT
=no
16292 rm -f core conftest.err conftest.
$ac_objext \
16293 conftest
$ac_exeext conftest.
$ac_ext
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
16297 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
16298 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
16299 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
16301 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
16303 ax_pthread_prio_inherit_defined
=yes
16307 CFLAGS
="$ax_pthread_save_CFLAGS"
16308 LIBS
="$ax_pthread_save_LIBS"
16310 # More AIX lossage: compile with *_r variant
16311 if test "x$GCC" != "xyes"; then
16315 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
16316 #handle absolute path differently from PATH based program lookup
16319 if as_fn_executable_p
${CC}_r
; then :
16320 PTHREAD_CC
="${CC}_r"
16323 for ac_prog
in ${CC}_r
16325 # Extract the first word of "$ac_prog", so it can be a program name with args.
16326 set dummy
$ac_prog; ac_word
=$2
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16328 $as_echo_n "checking for $ac_word... " >&6; }
16329 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
16330 $as_echo_n "(cached) " >&6
16332 if test -n "$PTHREAD_CC"; then
16333 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
16335 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16336 for as_dir
in $PATH
16339 test -z "$as_dir" && as_dir
=.
16340 for ac_exec_ext
in '' $ac_executable_extensions; do
16341 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16342 ac_cv_prog_PTHREAD_CC
="$ac_prog"
16343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16352 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
16353 if test -n "$PTHREAD_CC"; then
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16355 $as_echo "$PTHREAD_CC" >&6; }
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16358 $as_echo "no" >&6; }
16362 test -n "$PTHREAD_CC" && break
16364 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
16375 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
16381 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16382 if test "x$ax_pthread_ok" = "xyes"; then
16384 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16392 ac_cpp
='$CPP $CPPFLAGS'
16393 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16394 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16395 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
16399 # Specify a location for JDK
16403 # Check whether --with-jdk was given.
16404 if test "${with_jdk+set}" = set; then :
16409 if test "x$with_jdk" != x
; then
16410 jdk_inc
="-I$with_jdk/include -I$with_jdk/include/linux"
16411 enable_gprofng_jp
=yes
16413 # Extract the first word of "javac", so it can be a program name with args.
16414 set dummy javac
; ac_word
=$2
16415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16416 $as_echo_n "checking for $ac_word... " >&6; }
16417 if ${ac_cv_path_JAVAC+:} false
; then :
16418 $as_echo_n "(cached) " >&6
16422 ac_cv_path_JAVAC
="$JAVAC" # Let the user override the test with a path.
16425 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16426 for as_dir
in $PATH
16429 test -z "$as_dir" && as_dir
=.
16430 for ac_exec_ext
in '' $ac_executable_extensions; do
16431 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16432 ac_cv_path_JAVAC
="$as_dir/$ac_word$ac_exec_ext"
16433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16440 test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC
="javac"
16444 JAVAC
=$ac_cv_path_JAVAC
16445 if test -n "$JAVAC"; then
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
16447 $as_echo "$JAVAC" >&6; }
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16450 $as_echo "no" >&6; }
16454 if test -f $JAVAC; then
16455 x
=`readlink -f $JAVAC`
16458 if ! test -f $x/include
/jni.h
; then
16461 if test -f $x/include
/jni.h
; then
16462 jdk_inc
="-I$x/include -I$x/include/linux"
16463 enable_gprofng_jp
=yes
16467 if test "x$enable_gprofng_jp" = x
; then
16468 # Extract the first word of "java", so it can be a program name with args.
16469 set dummy java
; ac_word
=$2
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16471 $as_echo_n "checking for $ac_word... " >&6; }
16472 if ${ac_cv_path_JAVA+:} false
; then :
16473 $as_echo_n "(cached) " >&6
16477 ac_cv_path_JAVA
="$JAVA" # Let the user override the test with a path.
16480 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16481 for as_dir
in $PATH
16484 test -z "$as_dir" && as_dir
=.
16485 for ac_exec_ext
in '' $ac_executable_extensions; do
16486 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16487 ac_cv_path_JAVA
="$as_dir/$ac_word$ac_exec_ext"
16488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16495 test -z "$ac_cv_path_JAVA" && ac_cv_path_JAVA
="java"
16499 JAVA
=$ac_cv_path_JAVA
16500 if test -n "$JAVA"; then
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
16502 $as_echo "$JAVA" >&6; }
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16505 $as_echo "no" >&6; }
16509 if test -f $JAVA; then
16510 x
=`readlink -f $JAVA`
16513 if ! test -f $x/include
/jni.h
; then
16516 if test -f $x/include
/jni.h
; then
16517 jdk_inc
="-I$x/include -I$x/include/linux"
16518 enable_gprofng_jp
=yes
16522 if test "x$enable_gprofng_jp" = x
; then
16523 ac_fn_c_check_header_compile
"$LINENO" "jni.h" "ac_cv_header_jni_h" "
16525 if test "x$ac_cv_header_jni_h" = xyes
; then :
16526 enable_gprofng_jp
=yes
16531 if test "x$enable_gprofng_jp" = x
; then
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find the JDK include directory.
16533 gprofng will be build without support for profiling Java applications.
16534 Use --with-jdk=PATH to specify directory for the installed JDK" >&5
16535 $as_echo "$as_me: WARNING: Cannot find the JDK include directory.
16536 gprofng will be build without support for profiling Java applications.
16537 Use --with-jdk=PATH to specify directory for the installed JDK" >&2;}
16540 $as_echo "#define GPROFNG_JAVA_PROFILING 1" >>confdefs.h
16546 # Check whether --enable-gprofng-debug was given.
16547 if test "${enable_gprofng_debug+set}" = set; then :
16548 enableval
=$enable_gprofng_debug;
16549 case "$enableval" in
16551 *) as_fn_error $?
"Argument to enable/disable gprofng-debug must be yes or no" "$LINENO" 5 ;;
16555 enable_gprofng_debug
=no
16559 if test "${enable_gprofng_debug}" = yes; then
16561 $as_echo "#define DEBUG 1" >>confdefs.h
16565 # Check if linker supports --as-needed and --no-as-needed options.
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
16567 $as_echo_n "checking linker --as-needed support... " >&6; }
16568 if ${bfd_cv_ld_as_needed+:} false
; then :
16569 $as_echo_n "(cached) " >&6
16571 bfd_cv_ld_as_needed
=no
16572 if $LD --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
16573 bfd_cv_ld_as_needed
=yes
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5
16578 $as_echo "$bfd_cv_ld_as_needed" >&6; }
16581 if test x
"$bfd_cv_ld_as_needed" = xyes
; then
16582 no_as_needed
='-Wl,--no-as-needed'
16585 # Extract the first word of "expect", so it can be a program name with args.
16586 set dummy expect
; ac_word
=$2
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16588 $as_echo_n "checking for $ac_word... " >&6; }
16589 if ${ac_cv_path_EXPECT+:} false
; then :
16590 $as_echo_n "(cached) " >&6
16594 ac_cv_path_EXPECT
="$EXPECT" # Let the user override the test with a path.
16597 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16598 for as_dir
in $PATH
16601 test -z "$as_dir" && as_dir
=.
16602 for ac_exec_ext
in '' $ac_executable_extensions; do
16603 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16604 ac_cv_path_EXPECT
="$as_dir/$ac_word$ac_exec_ext"
16605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16615 EXPECT
=$ac_cv_path_EXPECT
16616 if test -n "$EXPECT"; then
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
16618 $as_echo "$EXPECT" >&6; }
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16621 $as_echo "no" >&6; }
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl supporting try/catch" >&5
16626 $as_echo_n "checking for Tcl supporting try/catch... " >&6; }
16627 if ${ac_cv_libctf_tcl_try+:} false
; then :
16628 $as_echo_n "(cached) " >&6
16630 ac_cv_libctf_tcl_try
=`if test -z $EXPECT; then echo no; else $EXPECT << EOF
16631 if [llength [info commands try]] then { puts yes } else { puts no }
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_tcl_try" >&5
16637 $as_echo "$ac_cv_libctf_tcl_try" >&6; }
16638 if test "${ac_cv_libctf_tcl_try}" = yes; then
16648 # Generate manpages, if possible.
16649 if test $cross_compiling = no
; then
16651 HELP2MAN
=${HELP2MAN-"${am_missing_run}help2man"}
16657 if test x
$build_man = xtrue
; then
16659 BUILD_MAN_FALSE
='#'
16666 LD_NO_AS_NEEDED
=${no_as_needed}
16668 GPROFNG_CFLAGS
=${gprofng_cflags}
16672 GPROFNG_CPPFLAGS
=${gprofng_cppflags}
16674 GPROFNG_LIBDIR
=${libdir}
16677 ac_fn_c_check_decl
"$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
16678 if test "x$ac_cv_have_decl_basename" = xyes
; then :
16684 cat >>confdefs.h
<<_ACEOF
16685 #define HAVE_DECL_BASENAME $ac_have_decl
16688 for ac_func
in clock_gettime strsignal
16690 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16691 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16692 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
16693 cat >>confdefs.h
<<_ACEOF
16694 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16703 ac_config_files
="$ac_config_files Makefile src/Makefile gp-display-html/Makefile doc/Makefile"
16705 ac_config_headers
="$ac_config_headers config.h:common/config.h.in"
16708 cat >confcache
<<\_ACEOF
16709 # This file is a shell script that caches the results of configure
16710 # tests run on this system so they can be shared between configure
16711 # scripts and configure runs, see configure's option --config-cache.
16712 # It is not useful on other systems. If it contains results you don't
16713 # want to keep, you may remove or edit it.
16715 # config.status only pays attention to the cache file if you give it
16716 # the --recheck option to rerun configure.
16718 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16719 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16720 # following values.
16724 # The following way of writing the cache mishandles newlines in values,
16725 # but we know of no workaround that is simple, portable, and efficient.
16726 # So, we kill variables containing newlines.
16727 # Ultrix sh set writes to stderr and can't be redirected directly,
16728 # and sets the high bit in the cache file unless we assign to the vars.
16730 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16731 eval ac_val
=\$
$ac_var
16735 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16736 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16739 _ | IFS | as_nl
) ;; #(
16740 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16741 *) { eval $ac_var=; unset $ac_var;} ;;
16747 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16748 *${as_nl}ac_space
=\
*)
16749 # `set' does not quote correctly, so add quotes: double-quote
16750 # substitution turns \\\\ into \\, and sed turns \\ into \.
16753 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16756 # `set' quotes correctly as required by POSIX, so do not add quotes.
16757 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16766 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16768 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16770 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16771 if test -w "$cache_file"; then
16772 if test "x$cache_file" != "x/dev/null"; then
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16774 $as_echo "$as_me: updating cache $cache_file" >&6;}
16775 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
16776 cat confcache
>"$cache_file"
16778 case $cache_file in #(
16780 mv -f confcache
"$cache_file"$$
&&
16781 mv -f "$cache_file"$$
"$cache_file" ;; #(
16783 mv -f confcache
"$cache_file" ;;
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16789 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16794 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16795 # Let make expand exec_prefix.
16796 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16798 DEFS
=-DHAVE_CONFIG_H
16803 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16804 # 1. Remove the extension, and $U if already installed.
16805 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16806 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16807 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16808 # will be set to the directory where LIBOBJS objects are built.
16809 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16810 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16812 LIBOBJS
=$ac_libobjs
16814 LTLIBOBJS
=$ac_ltlibobjs
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16818 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16819 if test -n "$am_sleep_pid"; then
16820 # Hide warnings about reused PIDs.
16821 wait $am_sleep_pid 2>/dev
/null
16823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16824 $as_echo "done" >&6; }
16825 if test -n "$EXEEXT"; then
16827 am__EXEEXT_FALSE
='#'
16829 am__EXEEXT_TRUE
='#'
16833 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16834 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
16835 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16837 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16838 as_fn_error $?
"conditional \"AMDEP\" was never defined.
16839 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16841 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16842 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
16843 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16845 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16846 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
16847 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16849 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16850 as_fn_error $?
"conditional \"am__fastdepCXX\" was never defined.
16851 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16853 if test -z "${BUILD_COLLECTOR_TRUE}" && test -z "${BUILD_COLLECTOR_FALSE}"; then
16854 as_fn_error $?
"conditional \"BUILD_COLLECTOR\" was never defined.
16855 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16857 if test -z "${BUILD_SRC_TRUE}" && test -z "${BUILD_SRC_FALSE}"; then
16858 as_fn_error $?
"conditional \"BUILD_SRC\" was never defined.
16859 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16861 if test -z "${RUN_TESTS_TRUE}" && test -z "${RUN_TESTS_FALSE}"; then
16862 as_fn_error $?
"conditional \"RUN_TESTS\" was never defined.
16863 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16865 if test -z "${TCL_TRY_TRUE}" && test -z "${TCL_TRY_FALSE}"; then
16866 as_fn_error $?
"conditional \"TCL_TRY\" was never defined.
16867 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16869 if test -z "${BUILD_MAN_TRUE}" && test -z "${BUILD_MAN_FALSE}"; then
16870 as_fn_error $?
"conditional \"BUILD_MAN\" was never defined.
16871 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16874 : "${CONFIG_STATUS=./config.status}"
16876 ac_clean_files_save
=$ac_clean_files
16877 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16879 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16881 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16883 # Generated by $as_me.
16884 # Run this file to recreate the current configuration.
16885 # Compiler output produced by configure, useful for debugging
16886 # configure, is in config.log if it exists.
16889 ac_cs_recheck=false
16892 SHELL=\${CONFIG_SHELL-$SHELL}
16895 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
16896 ## -------------------- ##
16897 ## M4sh Initialization. ##
16898 ## -------------------- ##
16900 # Be more Bourne compatible
16901 DUALCASE
=1; export DUALCASE
# for MKS sh
16902 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
16905 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16906 # is contrary to our usage. Disable this feature.
16907 alias -g '${1+"$@"}'='"$@"'
16908 setopt NO_GLOB_SUBST
16910 case `(set -o) 2>/dev/null` in #(
16922 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16923 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16924 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16925 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16926 # Prefer a ksh shell builtin over an external printf program on Solaris,
16927 # but without wasting forks for bash or zsh.
16928 if test -z "$BASH_VERSION$ZSH_VERSION" \
16929 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16930 as_echo='print
-r --'
16931 as_echo_n='print
-rn --'
16932 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16933 as_echo='printf %s
\n'
16934 as_echo_n='printf %s
'
16936 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16937 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
16938 as_echo_n='/usr
/ucb
/echo -n'
16940 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16941 as_echo_n_body='eval
16945 expr "X$arg" : "X\\(.*\\)$as_nl";
16946 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16948 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
16950 export as_echo_n_body
16951 as_echo_n='sh
-c $as_echo_n_body as_echo
'
16953 export as_echo_body
16954 as_echo='sh
-c $as_echo_body as_echo
'
16957 # The user is always right.
16958 if test "${PATH_SEPARATOR+set}" != set; then
16960 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16961 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16968 # We need space, tab and new line, in precisely that order. Quoting is
16969 # there to prevent editors from complaining about space-tab.
16970 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16971 # splitting by setting IFS to empty value.)
16974 # Find who we are. Look in the path if we contain no directory separator.
16977 *[\\/]* ) as_myself=$0 ;;
16978 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16979 for as_dir in $PATH
16982 test -z "$as_dir" && as_dir=.
16983 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16989 # We did not find ourselves, most probably we were run as `sh COMMAND'
16990 # in which case we are not to be found in the path.
16991 if test "x$as_myself" = x
; then
16994 if test ! -f "$as_myself"; then
16995 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16999 # Unset variables that we do not need and which cause bugs (e.g. in
17000 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17001 # suppresses any "Segmentation fault" message there. '((' could
17002 # trigger a bug in pdksh 5.2.14.
17003 for as_var
in BASH_ENV ENV MAIL MAILPATH
17004 do eval test x\
${$as_var+set} = xset \
17005 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
17018 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
17021 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17022 # ----------------------------------------
17023 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17024 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17025 # script with STATUS, using 1 if that was 0.
17028 as_status
=$1; test $as_status -eq 0 && as_status
=1
17030 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
17031 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17033 $as_echo "$as_me: error: $2" >&2
17034 as_fn_exit
$as_status
17038 # as_fn_set_status STATUS
17039 # -----------------------
17040 # Set $? to STATUS, without forking.
17041 as_fn_set_status
()
17044 } # as_fn_set_status
17046 # as_fn_exit STATUS
17047 # -----------------
17048 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17052 as_fn_set_status
$1
17058 # Portably unset VAR.
17061 { eval $1=; unset $1;}
17063 as_unset
=as_fn_unset
17064 # as_fn_append VAR VALUE
17065 # ----------------------
17066 # Append the text in VALUE to the end of the definition contained in VAR. Take
17067 # advantage of any shell optimizations that allow amortized linear growth over
17068 # repeated appends, instead of the typical quadratic growth present in naive
17070 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
17071 eval 'as_fn_append ()
17082 # as_fn_arith ARG...
17083 # ------------------
17084 # Perform arithmetic evaluation on the ARGs, and store the result in the
17085 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17086 # must be portable across $(()) and expr.
17087 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
17088 eval 'as_fn_arith ()
17095 as_val
=`expr "$@" || test $? -eq 1`
17100 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17101 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17107 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17108 as_basename
=basename
17113 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
17119 as_me
=`$as_basename -- "$0" ||
17120 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17121 X"$0" : 'X\(//\)$' \| \
17122 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17124 sed '/^.*\/\([^/][^/]*\)\/*$/{
17138 # Avoid depending upon Character Ranges.
17139 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17140 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17141 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17142 as_cr_digits
='0123456789'
17143 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17145 ECHO_C
= ECHO_N
= ECHO_T
=
17146 case `echo -n x` in #(((((
17148 case `echo 'xy\c'` in
17149 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
17151 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
17158 rm -f conf$$ conf$$.exe conf$$.
file
17159 if test -d conf$$.dir
; then
17160 rm -f conf$$.dir
/conf$$.
file
17163 mkdir conf$$.dir
2>/dev
/null
17165 if (echo >conf$$.
file) 2>/dev
/null
; then
17166 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17168 # ... but there are two gotchas:
17169 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17170 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17171 # In both cases, we have to default to `cp -pR'.
17172 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
17174 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17182 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
17183 rmdir conf$$.dir
2>/dev
/null
17188 # Create "$as_dir" as a directory, including parents if necessary.
17193 -*) as_dir
=.
/$as_dir;;
17195 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
17199 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17200 *) as_qdir
=$as_dir;;
17202 as_dirs
="'$as_qdir' $as_dirs"
17203 as_dir
=`$as_dirname -- "$as_dir" ||
17204 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17205 X"$as_dir" : 'X\(//\)[^/]' \| \
17206 X"$as_dir" : 'X\(//\)$' \| \
17207 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17208 $as_echo X"$as_dir" |
17209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17213 /^X\(\/\/\)[^/].*/{
17226 test -d "$as_dir" && break
17228 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
17229 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
17233 if mkdir
-p .
2>/dev
/null
; then
17234 as_mkdir_p
='mkdir -p "$as_dir"'
17236 test -d .
/-p && rmdir .
/-p
17241 # as_fn_executable_p FILE
17242 # -----------------------
17243 # Test if FILE is an executable regular file.
17244 as_fn_executable_p
()
17246 test -f "$1" && test -x "$1"
17247 } # as_fn_executable_p
17248 as_test_x
='test -x'
17249 as_executable_p
=as_fn_executable_p
17251 # Sed expression to map a string onto a valid CPP name.
17252 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17254 # Sed expression to map a string onto a valid variable name.
17255 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17259 ## ----------------------------------- ##
17260 ## Main body of $CONFIG_STATUS script. ##
17261 ## ----------------------------------- ##
17263 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
17265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17266 # Save the log message, to keep $0 and so on meaningful, and to
17267 # report actual input values of CONFIG_FILES etc. instead of their
17268 # values after options handling.
17270 This file was extended by gprofng $as_me 2.38.50, which was
17271 generated by GNU Autoconf 2.69. Invocation command line was
17273 CONFIG_FILES = $CONFIG_FILES
17274 CONFIG_HEADERS = $CONFIG_HEADERS
17275 CONFIG_LINKS = $CONFIG_LINKS
17276 CONFIG_COMMANDS = $CONFIG_COMMANDS
17279 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17284 case $ac_config_files in *"
17285 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
17288 case $ac_config_headers in *"
17289 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
17293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17294 # Files that config.status was made for.
17295 config_files="$ac_config_files"
17296 config_headers="$ac_config_headers"
17297 config_commands="$ac_config_commands"
17301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17303 \`$as_me' instantiates files and other configuration actions
17304 from templates according to the current configuration. Unless the files
17305 and actions are specified as TAGs, all are instantiated by default.
17307 Usage: $0 [OPTION]... [TAG]...
17309 -h, --help print this help, then exit
17310 -V, --version print version number and configuration settings, then exit
17311 --config print configuration, then exit
17312 -q, --quiet, --silent
17313 do not print progress messages
17314 -d, --debug don't remove temporary files
17315 --recheck update $as_me by reconfiguring in the same conditions
17316 --file=FILE[:TEMPLATE]
17317 instantiate the configuration file FILE
17318 --header=FILE[:TEMPLATE]
17319 instantiate the configuration header FILE
17321 Configuration files:
17324 Configuration headers:
17327 Configuration commands:
17330 Report bugs to the package provider."
17333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17334 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17336 gprofng config.status 2.38.50
17337 configured by $0, generated by GNU Autoconf 2.69,
17338 with options \\"\$ac_cs_config\\"
17340 Copyright (C) 2012 Free Software Foundation, Inc.
17341 This config.status script is free software; the Free Software Foundation
17342 gives unlimited permission to copy, distribute and modify it."
17349 test -n "\$AWK" || AWK=awk
17352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17353 # The default lists apply if the user does not specify any file.
17359 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17360 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
17364 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17376 # Handling of the options.
17377 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17379 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
17380 $as_echo "$ac_cs_version"; exit ;;
17381 --config |
--confi |
--conf |
--con |
--co |
--c )
17382 $as_echo "$ac_cs_config"; exit ;;
17383 --debug |
--debu |
--deb |
--de |
--d |
-d )
17385 --file |
--fil |
--fi |
--f )
17388 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17389 '') as_fn_error $?
"missing file argument" ;;
17391 as_fn_append CONFIG_FILES
" '$ac_optarg'"
17392 ac_need_defaults
=false
;;
17393 --header |
--heade |
--head |
--hea )
17396 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17398 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
17399 ac_need_defaults
=false
;;
17401 # Conflict between --help and --header
17402 as_fn_error $?
"ambiguous option: \`$1'
17403 Try \`$0 --help' for more information.";;
17404 --help |
--hel |
-h )
17405 $as_echo "$ac_cs_usage"; exit ;;
17406 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17407 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17410 # This is an error.
17411 -*) as_fn_error $?
"unrecognized option: \`$1'
17412 Try \`$0 --help' for more information." ;;
17414 *) as_fn_append ac_config_targets
" $1"
17415 ac_need_defaults
=false
;;
17421 ac_configure_extra_args
=
17423 if $ac_cs_silent; then
17425 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17430 if \$ac_cs_recheck; then
17431 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17433 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17434 CONFIG_SHELL='$SHELL'
17435 export CONFIG_SHELL
17440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17444 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17445 ## Running $as_me. ##
17451 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17455 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17458 # The HP-UX ksh and POSIX shell print the target directory to stdout
17459 # if CDPATH is set.
17460 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17462 sed_quote_subst='$sed_quote_subst'
17463 double_quote_subst='$double_quote_subst'
17464 delay_variable_subst='$delay_variable_subst'
17465 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17466 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17467 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17468 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17469 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17470 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17471 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17472 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17473 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17474 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17475 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17476 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17477 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17478 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17479 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17480 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17481 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17482 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17483 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17484 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17485 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17486 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17487 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17488 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17489 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17490 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17491 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17492 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17493 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17494 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17495 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17496 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17497 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17498 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17499 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17500 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17501 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17502 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17503 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17504 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17505 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17506 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17507 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17508 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17509 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17510 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17511 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17512 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17513 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"`'
17514 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17515 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17516 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17517 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17518 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17519 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17520 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17521 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17522 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17523 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17524 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17525 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17526 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17527 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17528 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17529 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17530 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17531 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17532 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17533 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17534 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17535 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17536 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17537 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17538 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17539 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17540 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17541 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17542 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17543 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17544 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17545 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17546 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17547 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17548 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17549 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17550 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17551 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17552 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17553 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17554 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17555 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17556 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17557 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17558 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17559 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17560 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17561 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17562 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17563 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17564 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17565 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17566 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17567 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17568 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17569 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17570 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17571 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17572 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17573 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17574 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17575 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17576 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17577 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17578 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17579 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17580 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17581 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17582 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17583 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17584 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17585 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17586 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17587 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17588 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17589 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17590 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17591 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17592 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17593 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17594 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17595 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17596 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17597 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17598 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17599 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17600 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17601 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17602 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17603 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17604 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17605 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17606 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17607 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17608 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17609 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17610 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17611 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17612 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17613 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17614 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17615 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17616 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17617 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17618 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17619 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17620 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17621 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17622 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17623 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17624 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17625 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17626 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17627 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17628 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17629 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17630 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17631 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17632 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17633 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17634 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17635 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17636 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17637 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17638 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17639 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17642 LTCFLAGS='$LTCFLAGS'
17643 compiler='$compiler_DEFAULT'
17645 # A function that is used when there is no print builtin or printf.
17646 func_fallback_echo ()
17648 eval 'cat <<_LTECHO_EOF
17653 # Quote evaled strings.
17667 deplibs_check_method \
17676 lt_cv_sys_global_symbol_pipe \
17677 lt_cv_sys_global_symbol_to_cdecl \
17678 lt_cv_sys_global_symbol_to_c_name_address \
17679 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17680 lt_prog_compiler_no_builtin_flag \
17681 lt_prog_compiler_wl \
17682 lt_prog_compiler_pic \
17683 lt_prog_compiler_static \
17684 lt_cv_prog_compiler_c_o \
17692 export_dynamic_flag_spec \
17693 whole_archive_flag_spec \
17694 compiler_needs_object \
17696 allow_undefined_flag \
17697 no_undefined_flag \
17698 hardcode_libdir_flag_spec \
17699 hardcode_libdir_flag_spec_ld \
17700 hardcode_libdir_separator \
17705 variables_saved_for_relink \
17707 library_names_spec \
17709 install_override_mode \
17713 compiler_lib_search_dirs \
17718 compiler_lib_search_path \
17722 lt_prog_compiler_no_builtin_flag_CXX \
17723 lt_prog_compiler_wl_CXX \
17724 lt_prog_compiler_pic_CXX \
17725 lt_prog_compiler_static_CXX \
17726 lt_cv_prog_compiler_c_o_CXX \
17727 export_dynamic_flag_spec_CXX \
17728 whole_archive_flag_spec_CXX \
17729 compiler_needs_object_CXX \
17731 allow_undefined_flag_CXX \
17732 no_undefined_flag_CXX \
17733 hardcode_libdir_flag_spec_CXX \
17734 hardcode_libdir_flag_spec_ld_CXX \
17735 hardcode_libdir_separator_CXX \
17736 fix_srcfile_path_CXX \
17737 exclude_expsyms_CXX \
17738 include_expsyms_CXX \
17739 file_list_spec_CXX \
17740 compiler_lib_search_dirs_CXX \
17741 predep_objects_CXX \
17742 postdep_objects_CXX \
17745 compiler_lib_search_path_CXX; do
17746 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17747 *[\\\\\\\`\\"\\\$]*)
17748 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17751 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17756 # Double-quote double-evaled strings.
17757 for var in reload_cmds \
17758 old_postinstall_cmds \
17759 old_postuninstall_cmds \
17761 extract_expsyms_cmds \
17762 old_archive_from_new_cmds \
17763 old_archive_from_expsyms_cmds \
17765 archive_expsym_cmds \
17767 module_expsym_cmds \
17768 export_symbols_cmds \
17771 postuninstall_cmds \
17773 sys_lib_search_path_spec \
17774 sys_lib_dlsearch_path_spec \
17776 old_archive_cmds_CXX \
17777 old_archive_from_new_cmds_CXX \
17778 old_archive_from_expsyms_cmds_CXX \
17780 archive_expsym_cmds_CXX \
17782 module_expsym_cmds_CXX \
17783 export_symbols_cmds_CXX \
17784 prelink_cmds_CXX; do
17785 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17786 *[\\\\\\\`\\"\\\$]*)
17787 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17790 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17795 ac_aux_dir='$ac_aux_dir'
17796 xsi_shell='$xsi_shell'
17797 lt_shell_append='$lt_shell_append'
17799 # See if we are running on zsh, and set the options which allow our
17800 # commands through without removal of \ escapes INIT.
17801 if test -n "\${ZSH_VERSION+set}" ; then
17802 setopt NO_GLOB_SUBST
17808 TIMESTAMP='$TIMESTAMP'
17819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17821 # Handling of arguments.
17822 for ac_config_target
in $ac_config_targets
17824 case $ac_config_target in
17825 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
17826 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
17827 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
17828 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
17829 "gp-display-html/Makefile") CONFIG_FILES
="$CONFIG_FILES gp-display-html/Makefile" ;;
17830 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
17831 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:common/config.h.in" ;;
17833 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17838 # If the user did not use the arguments to specify the items to instantiate,
17839 # then the envvar interface is used. Set only those that are not.
17840 # We use the long form for the default assignment because of an extremely
17841 # bizarre bug on SunOS 4.1.3.
17842 if $ac_need_defaults; then
17843 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17844 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17845 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17848 # Have a temporary directory for convenience. Make it in the build tree
17849 # simply because there is no reason against having it here, and in addition,
17850 # creating and moving files from /tmp can sometimes cause problems.
17851 # Hook for its removal unless debugging.
17852 # Note that there is a small window in which the directory will not be cleaned:
17853 # after its creation but before its name has been assigned to `$tmp'.
17857 trap 'exit_status=$?
17858 : "${ac_tmp:=$tmp}"
17859 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17861 trap 'as_fn_exit 1' 1 2 13 15
17863 # Create a (secure) tmp directory for tmp files.
17866 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17870 tmp
=.
/conf$$
-$RANDOM
17871 (umask 077 && mkdir
"$tmp")
17872 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
17875 # Set up the scripts for CONFIG_FILES section.
17876 # No need to generate them if there are no CONFIG_FILES.
17877 # This happens for instance with `./config.status config.h'.
17878 if test -n "$CONFIG_FILES"; then
17881 ac_cr
=`echo X | tr X '\015'`
17882 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17883 # But we know of no other shell where ac_cr would be empty at this
17884 # point, so we can use a bashism as a fallback.
17885 if test "x$ac_cr" = x
; then
17886 eval ac_cr
=\$
\'\\r
\'
17888 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17889 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17892 ac_cs_awk_cr
=$ac_cr
17895 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17900 echo "cat >conf$$subs.awk <<_ACEOF" &&
17901 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17903 } >conf$$subs.sh ||
17904 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17905 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17907 for ac_last_try in false false false false false :; do
17908 . ./conf$$subs.sh ||
17909 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17911 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
17912 if test $ac_delim_n = $ac_delim_num; then
17914 elif $ac_last_try; then
17915 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17917 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17920 rm -f conf$$subs.sh
17922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17923 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
17927 s/^/S["/; s
/!.
*/"]=/
17937 s/\(.\{148\}\)..*/\1/
17939 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
17944 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17951 s/\(.\{148\}\)..*/\1/
17953 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
17957 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17962 ' <conf$$subs.awk | sed '
17967 ' >>$CONFIG_STATUS || ac_write_fail=1
17968 rm -f conf$$subs.awk
17969 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17971 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
17972 for (key in S) S_is_set[key] = 1
17978 nfields = split(line, field, "@
")
17980 len = length(field[1])
17981 for (i = 2; i < nfields; i++) {
17983 keylen = length(key)
17984 if (S_is_set[key]) {
17986 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17987 len += length(value) + length(field[++i])
17998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17999 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18000 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18003 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
18004 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
18007 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18008 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
18009 # trailing colons and then remove the whole line if VPATH becomes empty
18010 # (actually we leave an empty line to preserve line numbers).
18011 if test "x
$srcdir" = x.; then
18012 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18031 fi # test -n "$CONFIG_FILES"
18033 # Set up the scripts for CONFIG_HEADERS section.
18034 # No need to generate them if there are no CONFIG_HEADERS.
18035 # This happens for instance with `./config.status Makefile'.
18036 if test -n "$CONFIG_HEADERS"; then
18037 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
18041 # Transform confdefs.h into an awk script `defines.awk', embedded as
18042 # here-document in config.status, that substitutes the proper values into
18043 # config.h.in to produce config.h.
18045 # Create a delimiter string that does not exist in confdefs.h, to ease
18046 # handling of long lines.
18048 for ac_last_try in false false :; do
18049 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
18050 if test -z "$ac_tt"; then
18052 elif $ac_last_try; then
18053 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
18055 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18059 # For the awk script, D is an array of macro values keyed by name,
18060 # likewise P contains macro parameters if any. Preserve backslash
18061 # newline sequences.
18063 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18065 s/.\{148\}/&'"$ac_delim"'/g
18068 s/^[ ]*#[ ]*define[ ][ ]*/ /
18075 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18077 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18081 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18082 D["\
1"]=" \
3\\\\\\n
"\\/p
18084 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18089 s/.\{148\}/&'"$ac_delim"'/g
18094 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18097 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18099 ' <confdefs.h | sed '
18100 s/'"$ac_delim"'/"\\\
18101 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18103 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18104 for (key in D) D_is_set[key] = 1
18107 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18109 split(line, arg, " ")
18110 if (arg[1] == "#") {
18114 defundef
= substr
(arg
[1], 2)
18117 split(mac1
, mac2
, "(") #)
18119 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18120 if (D_is_set
[macro
]) {
18121 # Preserve the white space surrounding the "#".
18122 print prefix
"define", macro P
[macro
] D
[macro
]
18125 # Replace #undef with comments. This is necessary, for example,
18126 # in the case of _POSIX_SOURCE, which is predefined and required
18127 # on some systems where configure will not decide to define it.
18128 if (defundef
== "undef") {
18129 print
"/*", prefix defundef
, macro
, "*/"
18137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18138 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
18139 fi # test -n "$CONFIG_HEADERS"
18142 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18147 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18149 case $ac_mode$ac_tag in
18151 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
18152 :[FH
]-) ac_tag
=-:-;;
18153 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18170 -) ac_f
="$ac_tmp/stdin";;
18171 *) # Look for the file first in the build tree, then in the source tree
18172 # (if the path is not absolute). The absolute path cannot be DOS-style,
18173 # because $ac_f cannot contain `:'.
18177 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18179 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18181 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18182 as_fn_append ac_file_inputs
" '$ac_f'"
18185 # Let's still pretend it is `configure' which instantiates (i.e., don't
18186 # use $as_me), people would be surprised to read:
18187 # /* config.h. Generated by config.status. */
18188 configure_input
='Generated from '`
18189 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18191 if test x
"$ac_file" != x-
; then
18192 configure_input
="$ac_file. $configure_input"
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18194 $as_echo "$as_me: creating $ac_file" >&6;}
18196 # Neutralize special characters interpreted by sed in replacement strings.
18197 case $configure_input in #(
18198 *\
&* |
*\|
* |
*\\* )
18199 ac_sed_conf_input
=`$as_echo "$configure_input" |
18200 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18201 *) ac_sed_conf_input
=$configure_input;;
18205 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
18206 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
18211 ac_dir
=`$as_dirname -- "$ac_file" ||
18212 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18213 X"$ac_file" : 'X\(//\)[^/]' \| \
18214 X"$ac_file" : 'X\(//\)$' \| \
18215 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18216 $as_echo X"$ac_file" |
18217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18221 /^X\(\/\/\)[^/].*/{
18234 as_dir
="$ac_dir"; as_fn_mkdir_p
18238 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18240 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18241 # A ".." for each directory in $ac_dir_suffix.
18242 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18243 case $ac_top_builddir_sub in
18244 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18245 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18248 ac_abs_top_builddir
=$ac_pwd
18249 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18250 # for backward compatibility:
18251 ac_top_builddir
=$ac_top_build_prefix
18254 .
) # We are building in place.
18256 ac_top_srcdir
=$ac_top_builddir_sub
18257 ac_abs_top_srcdir
=$ac_pwd ;;
18258 [\\/]* | ?
:[\\/]* ) # Absolute name.
18259 ac_srcdir
=$srcdir$ac_dir_suffix;
18260 ac_top_srcdir
=$srcdir
18261 ac_abs_top_srcdir
=$srcdir ;;
18262 *) # Relative name.
18263 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18264 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18265 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18267 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18277 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18278 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
18280 ac_MKDIR_P
=$MKDIR_P
18282 [\\/$
]* | ?
:[\\/]* ) ;;
18283 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
18287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18288 # If the template does not know about datarootdir, expand it.
18289 # FIXME: This hack should be removed a few years after 2.60.
18290 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18301 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18302 *datarootdir
*) ac_datarootdir_seen
=yes;;
18303 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18305 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18308 ac_datarootdir_hack='
18309 s&@datadir@&$datadir&g
18310 s&@docdir@&$docdir&g
18311 s&@infodir@&$infodir&g
18312 s&@localedir@&$localedir&g
18313 s&@mandir@&$mandir&g
18314 s&\\\${datarootdir}&$datarootdir&g' ;;
18318 # Neutralize VPATH when `$srcdir' = `.'.
18319 # Shell code in configure.ac might set extrasub.
18320 # FIXME: do we really want to maintain this feature?
18321 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18322 ac_sed_extra="$ac_vpsub
18325 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18327 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18328 s|@configure_input@|
$ac_sed_conf_input|
;t t
18329 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
18330 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
18331 s
&@srcdir@
&$ac_srcdir&;t t
18332 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
18333 s
&@top_srcdir@
&$ac_top_srcdir&;t t
18334 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
18335 s
&@builddir@
&$ac_builddir&;t t
18336 s
&@abs_builddir@
&$ac_abs_builddir&;t t
18337 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
18338 s
&@INSTALL@
&$ac_INSTALL&;t t
18339 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
18340 $ac_datarootdir_hack
18342 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
18343 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
18345 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18346 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
18347 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18348 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
18350 which seems to be undefined. Please make sure it is defined" >&5
18351 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
18352 which seems to be undefined. Please make sure it is defined" >&2;}
18354 rm -f "$ac_tmp/stdin"
18356 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18357 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18359 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18365 if test x"$ac_file" != x-; then
18367 $as_echo "/* $configure_input */" \
18368 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18369 } >"$ac_tmp/config.h" \
18370 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18371 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18373 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18376 mv "$ac_tmp/config.h" "$ac_file" \
18377 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18380 $as_echo "/* $configure_input */" \
18381 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18382 || as_fn_error $? "could not create -" "$LINENO" 5
18384 # Compute "$ac_file"'s index
in $config_headers.
18387 for _am_header
in $config_headers :; do
18388 case $_am_header in
18389 $_am_arg |
$_am_arg:* )
18392 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
18395 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18396 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18397 X"$_am_arg" : 'X\(//\)[^/]' \| \
18398 X"$_am_arg" : 'X\(//\)$' \| \
18399 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18400 $as_echo X"$_am_arg" |
18401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18405 /^X\(\/\/\)[^/].*/{
18417 s/.*/./; q'`/stamp-h
$_am_stamp_count
18420 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18421 $as_echo "$as_me: executing $ac_file commands" >&6;}
18426 case $ac_file$ac_mode in
18427 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
18428 # Older Autoconf quotes --file arguments for eval, but not when files
18429 # are listed without --file. Let's play safe and only enable the eval
18430 # if we detect the quoting.
18431 case $CONFIG_FILES in
18432 *\'*) eval set x
"$CONFIG_FILES" ;;
18433 *) set x
$CONFIG_FILES ;;
18438 # Strip MF so we end up with the name of the file.
18439 mf
=`echo "$mf" | sed -e 's/:.*$//'`
18440 # Check whether this is an Automake generated Makefile or not.
18441 # We used to match only the files named 'Makefile.in', but
18442 # some people rename them; so instead we look at the file content.
18443 # Grep'ing the first line is not enough: some people post-process
18444 # each Makefile.in and add a new line on top of each file to say so.
18445 # Grep'ing the whole file is not good either: AIX grep has a line
18446 # limit of 2048, but all sed's we know have understand at least 4000.
18447 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
18448 dirpart
=`$as_dirname -- "$mf" ||
18449 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18450 X"$mf" : 'X\(//\)[^/]' \| \
18451 X"$mf" : 'X\(//\)$' \| \
18452 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18458 /^X\(\/\/\)[^/].*/{
18474 # Extract the definition of DEPDIR, am__include, and am__quote
18475 # from the Makefile without running 'make'.
18476 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
18477 test -z "$DEPDIR" && continue
18478 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
18479 test -z "$am__include" && continue
18480 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
18481 # Find all dependency output files, they are included files with
18482 # $(DEPDIR) in their names. We invoke sed twice because it is the
18483 # simplest approach to changing $(DEPDIR) to its actual value in the
18485 for file in `sed -n "
18486 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18487 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18488 # Make sure the directory exists.
18489 test -f "$dirpart/$file" && continue
18490 fdir
=`$as_dirname -- "$file" ||
18491 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18492 X"$file" : 'X\(//\)[^/]' \| \
18493 X"$file" : 'X\(//\)$' \| \
18494 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18495 $as_echo X"$file" |
18496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18500 /^X\(\/\/\)[^/].*/{
18513 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
18514 # echo "creating $dirpart/$file"
18515 echo '# dummy' > "$dirpart/$file"
18522 # See if we are running on zsh, and set the options which allow our
18523 # commands through without removal of \ escapes.
18524 if test -n "${ZSH_VERSION+set}" ; then
18525 setopt NO_GLOB_SUBST
18528 cfgfile
="${ofile}T"
18529 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18532 cat <<_LT_EOF >> "$cfgfile"
18535 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18536 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18537 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18538 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18540 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18541 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18542 # Written by Gordon Matzigkeit, 1996
18544 # This file is part of GNU Libtool.
18546 # GNU Libtool is free software; you can redistribute it and/or
18547 # modify it under the terms of the GNU General Public License as
18548 # published by the Free Software Foundation; either version 2 of
18549 # the License, or (at your option) any later version.
18551 # As a special exception to the GNU General Public License,
18552 # if you distribute this file as part of a program or library that
18553 # is built using GNU Libtool, you may include this file under the
18554 # same distribution terms that you use for the rest of that program.
18556 # GNU Libtool is distributed in the hope that it will be useful,
18557 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18558 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18559 # GNU General Public License for more details.
18561 # You should have received a copy of the GNU General Public License
18562 # along with GNU Libtool; see the file COPYING. If not, a copy
18563 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18564 # obtained by writing to the Free Software Foundation, Inc.,
18565 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18568 # The names of the tagged configurations supported by this script.
18569 available_tags="CXX "
18571 # ### BEGIN LIBTOOL CONFIG
18573 # Whether or not to build shared libraries.
18574 build_libtool_libs=$enable_shared
18576 # Which release of libtool.m4 was used?
18577 macro_version=$macro_version
18578 macro_revision=$macro_revision
18580 # Whether or not to build static libraries.
18581 build_old_libs=$enable_static
18583 # What type of objects to build.
18586 # Whether or not to optimize for fast installation.
18587 fast_install=$enable_fast_install
18589 # Shell to use when invoking shell scripts.
18592 # An echo program that protects backslashes.
18596 host_alias=$host_alias
18600 # The build system.
18601 build_alias=$build_alias
18605 # A sed program that does not truncate output.
18608 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18609 Xsed="\$SED -e 1s/^X//"
18611 # A grep program that handles long lines.
18617 # A literal string matcher.
18620 # A BSD- or MS-compatible name lister.
18623 # Whether we need soft or hard links.
18626 # What is the maximum length of a command?
18627 max_cmd_len=$max_cmd_len
18629 # Object file suffix (normally "o").
18632 # Executable file suffix (normally "").
18635 # whether the shell understands "unset".
18638 # turn spaces into newlines.
18641 # turn newlines into spaces.
18644 # An object symbol dumper.
18645 OBJDUMP=$lt_OBJDUMP
18647 # Method to check whether dependent libraries are shared objects.
18648 deplibs_check_method=$lt_deplibs_check_method
18650 # Command to use when deplibs_check_method == "file_magic".
18651 file_magic_cmd=$lt_file_magic_cmd
18655 AR_FLAGS=$lt_AR_FLAGS
18657 # A symbol stripping program.
18660 # Commands used to install an old-style archive.
18662 old_postinstall_cmds=$lt_old_postinstall_cmds
18663 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18665 # Whether to use a lock for old archive extraction.
18666 lock_old_archive_extraction=$lock_old_archive_extraction
18671 # LTCC compiler flags.
18672 LTCFLAGS=$lt_CFLAGS
18674 # Take the output of nm and produce a listing of raw symbols and C names.
18675 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18677 # Transform the output of nm in a proper C declaration.
18678 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18680 # Transform the output of nm in a C name address pair.
18681 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18683 # Transform the output of nm in a C name address pair when lib prefix is needed.
18684 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18686 # The name of the directory that contains temporary libtool files.
18689 # Used to examine libraries when file_magic_cmd begins with "file".
18690 MAGIC_CMD=$MAGIC_CMD
18692 # Must we lock files when doing compilation?
18693 need_locks=$lt_need_locks
18695 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18696 DSYMUTIL=$lt_DSYMUTIL
18698 # Tool to change global to local symbols on Mac OS X.
18701 # Tool to manipulate fat objects and archives on Mac OS X.
18704 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18707 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18708 OTOOL64=$lt_OTOOL64
18710 # Old archive suffix (normally "a").
18713 # Shared library suffix (normally ".so").
18714 shrext_cmds=$lt_shrext_cmds
18716 # The commands to extract the exported symbol list from a shared archive.
18717 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18719 # Variables whose values should be saved in libtool wrapper scripts and
18720 # restored at link time.
18721 variables_saved_for_relink=$lt_variables_saved_for_relink
18723 # Do we need the "lib" prefix for modules?
18724 need_lib_prefix=$need_lib_prefix
18726 # Do we need a version for libraries?
18727 need_version=$need_version
18729 # Library versioning type.
18730 version_type=$version_type
18732 # Shared library runtime path variable.
18733 runpath_var=$runpath_var
18735 # Shared library path variable.
18736 shlibpath_var=$shlibpath_var
18738 # Is shlibpath searched before the hard-coded library search path?
18739 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18741 # Format of library name prefix.
18742 libname_spec=$lt_libname_spec
18744 # List of archive names. First name is the real one, the rest are links.
18745 # The last name is the one that the linker finds with -lNAME
18746 library_names_spec=$lt_library_names_spec
18748 # The coded name of the library, if different from the real name.
18749 soname_spec=$lt_soname_spec
18751 # Permission mode override for installation of shared libraries.
18752 install_override_mode=$lt_install_override_mode
18754 # Command to use after installation of a shared archive.
18755 postinstall_cmds=$lt_postinstall_cmds
18757 # Command to use after uninstallation of a shared archive.
18758 postuninstall_cmds=$lt_postuninstall_cmds
18760 # Commands used to finish a libtool library installation in a directory.
18761 finish_cmds=$lt_finish_cmds
18763 # As "finish_cmds", except a single script fragment to be evaled but
18765 finish_eval=$lt_finish_eval
18767 # Whether we should hardcode library paths into libraries.
18768 hardcode_into_libs=$hardcode_into_libs
18770 # Compile-time system search path for libraries.
18771 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18773 # Run-time system search path for libraries.
18774 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18776 # Whether dlopen is supported.
18777 dlopen_support=$enable_dlopen
18779 # Whether dlopen of programs is supported.
18780 dlopen_self=$enable_dlopen_self
18782 # Whether dlopen of statically linked programs is supported.
18783 dlopen_self_static=$enable_dlopen_self_static
18785 # Commands to strip libraries.
18786 old_striplib=$lt_old_striplib
18787 striplib=$lt_striplib
18790 # The linker used to build libraries.
18793 # How to create reloadable object files.
18794 reload_flag=$lt_reload_flag
18795 reload_cmds=$lt_reload_cmds
18797 # Commands used to build an old-style archive.
18798 old_archive_cmds=$lt_old_archive_cmds
18800 # A language specific compiler.
18803 # Is the compiler the GNU compiler?
18806 # Compiler flag to turn off builtin functions.
18807 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18809 # How to pass a linker flag through the compiler.
18810 wl=$lt_lt_prog_compiler_wl
18812 # Additional compiler flags for building library objects.
18813 pic_flag=$lt_lt_prog_compiler_pic
18815 # Compiler flag to prevent dynamic linking.
18816 link_static_flag=$lt_lt_prog_compiler_static
18818 # Does compiler simultaneously support -c and -o options?
18819 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18821 # Whether or not to add -lc for building shared libraries.
18822 build_libtool_need_lc=$archive_cmds_need_lc
18824 # Whether or not to disallow shared libs when runtime libs are static.
18825 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18827 # Compiler flag to allow reflexive dlopens.
18828 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18830 # Compiler flag to generate shared objects directly from archives.
18831 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18833 # Whether the compiler copes with passing no objects directly.
18834 compiler_needs_object=$lt_compiler_needs_object
18836 # Create an old-style archive from a shared archive.
18837 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18839 # Create a temporary old-style archive to link instead of a shared archive.
18840 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18842 # Commands used to build a shared archive.
18843 archive_cmds=$lt_archive_cmds
18844 archive_expsym_cmds=$lt_archive_expsym_cmds
18846 # Commands used to build a loadable module if different from building
18847 # a shared archive.
18848 module_cmds=$lt_module_cmds
18849 module_expsym_cmds=$lt_module_expsym_cmds
18851 # Whether we are building with GNU ld or not.
18852 with_gnu_ld=$lt_with_gnu_ld
18854 # Flag that allows shared libraries with undefined symbols to be built.
18855 allow_undefined_flag=$lt_allow_undefined_flag
18857 # Flag that enforces no undefined symbols.
18858 no_undefined_flag=$lt_no_undefined_flag
18860 # Flag to hardcode \$libdir into a binary during linking.
18861 # This must work even if \$libdir does not exist
18862 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18864 # If ld is used when linking, flag to hardcode \$libdir into a binary
18865 # during linking. This must work even if \$libdir does not exist.
18866 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18868 # Whether we need a single "-rpath" flag with a separated argument.
18869 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18871 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18872 # DIR into the resulting binary.
18873 hardcode_direct=$hardcode_direct
18875 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18876 # DIR into the resulting binary and the resulting library dependency is
18877 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18878 # library is relocated.
18879 hardcode_direct_absolute=$hardcode_direct_absolute
18881 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18882 # into the resulting binary.
18883 hardcode_minus_L=$hardcode_minus_L
18885 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18886 # into the resulting binary.
18887 hardcode_shlibpath_var=$hardcode_shlibpath_var
18889 # Set to "yes" if building a shared library automatically hardcodes DIR
18890 # into the library and all subsequent libraries and executables linked
18892 hardcode_automatic=$hardcode_automatic
18894 # Set to yes if linker adds runtime paths of dependent libraries
18895 # to runtime path list.
18896 inherit_rpath=$inherit_rpath
18898 # Whether libtool must link a program against all its dependency libraries.
18899 link_all_deplibs=$link_all_deplibs
18901 # Fix the shell variable \$srcfile for the compiler.
18902 fix_srcfile_path=$lt_fix_srcfile_path
18904 # Set to "yes" if exported symbols are required.
18905 always_export_symbols=$always_export_symbols
18907 # The commands to list exported symbols.
18908 export_symbols_cmds=$lt_export_symbols_cmds
18910 # Symbols that should not be listed in the preloaded symbols.
18911 exclude_expsyms=$lt_exclude_expsyms
18913 # Symbols that must always be exported.
18914 include_expsyms=$lt_include_expsyms
18916 # Commands necessary for linking programs (against libraries) with templates.
18917 prelink_cmds=$lt_prelink_cmds
18919 # Specify filename containing input files.
18920 file_list_spec=$lt_file_list_spec
18922 # How to hardcode a shared library path into an executable.
18923 hardcode_action=$hardcode_action
18925 # The directories searched by this compiler when creating a shared library.
18926 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18928 # Dependencies to place before and after the objects being linked to
18929 # create a shared library.
18930 predep_objects=$lt_predep_objects
18931 postdep_objects=$lt_postdep_objects
18932 predeps=$lt_predeps
18933 postdeps=$lt_postdeps
18935 # The library search path used internally by the compiler when linking
18936 # a shared library.
18937 compiler_lib_search_path=$lt_compiler_lib_search_path
18939 # ### END LIBTOOL CONFIG
18945 cat <<\_LT_EOF
>> "$cfgfile"
18946 # AIX sometimes has problems with the GCC collect2 program. For some
18947 # reason, if we set the COLLECT_NAMES environment variable, the problems
18948 # vanish in a puff of smoke.
18949 if test "X${COLLECT_NAMES+set}" != Xset
; then
18951 export COLLECT_NAMES
18958 ltmain
="$ac_aux_dir/ltmain.sh"
18961 # We use sed instead of cat because bash on DJGPP gets confused if
18962 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18963 # text mode, it properly converts lines to CR/LF. This bash problem
18964 # is reportedly fixed, but why not run on old versions too?
18965 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18966 ||
(rm -f "$cfgfile"; exit 1)
18970 cat << \_LT_EOF
>> "$cfgfile"
18972 # func_dirname file append nondir_replacement
18973 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18974 # otherwise set result to NONDIR_REPLACEMENT.
18978 */*) func_dirname_result
="${1%/*}${2}" ;;
18979 * ) func_dirname_result
="${3}" ;;
18983 # func_basename file
18986 func_basename_result
="${1##*/}"
18989 # func_dirname_and_basename file append nondir_replacement
18990 # perform func_basename and func_dirname in a single function
18992 # dirname: Compute the dirname of FILE. If nonempty,
18993 # add APPEND to the result, otherwise set result
18994 # to NONDIR_REPLACEMENT.
18995 # value returned in "$func_dirname_result"
18996 # basename: Compute filename of FILE.
18997 # value retuned in "$func_basename_result"
18998 # Implementation must be kept synchronized with func_dirname
18999 # and func_basename. For efficiency, we do not delegate to
19000 # those functions but instead duplicate the functionality here.
19001 func_dirname_and_basename
()
19004 */*) func_dirname_result
="${1%/*}${2}" ;;
19005 * ) func_dirname_result
="${3}" ;;
19007 func_basename_result
="${1##*/}"
19010 # func_stripname prefix suffix name
19011 # strip PREFIX and SUFFIX off of NAME.
19012 # PREFIX and SUFFIX must not contain globbing or regex special
19013 # characters, hashes, percent signs, but SUFFIX may contain a leading
19014 # dot (in which case that matches only a dot).
19017 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19018 # positional parameters, so assign one to ordinary parameter first.
19019 func_stripname_result
=${3}
19020 func_stripname_result
=${func_stripname_result#"${1}"}
19021 func_stripname_result
=${func_stripname_result%"${2}"}
19027 func_opt_split_opt
=${1%%=*}
19028 func_opt_split_arg
=${1#*=}
19035 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
19036 *) func_lo2o_result
=${1} ;;
19040 # func_xform libobj-or-source
19043 func_xform_result
=${1%.*}.lo
19046 # func_arith arithmetic-term...
19049 func_arith_result
=$
(( $
* ))
19053 # STRING may not start with a hyphen.
19056 func_len_result
=${#1}
19061 *) # Bourne compatible functions.
19062 cat << \_LT_EOF
>> "$cfgfile"
19064 # func_dirname file append nondir_replacement
19065 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19066 # otherwise set result to NONDIR_REPLACEMENT.
19069 # Extract subdirectory from the argument.
19070 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
19071 if test "X$func_dirname_result" = "X${1}"; then
19072 func_dirname_result
="${3}"
19074 func_dirname_result
="$func_dirname_result${2}"
19078 # func_basename file
19081 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
19085 # func_stripname prefix suffix name
19086 # strip PREFIX and SUFFIX off of NAME.
19087 # PREFIX and SUFFIX must not contain globbing or regex special
19088 # characters, hashes, percent signs, but SUFFIX may contain a leading
19089 # dot (in which case that matches only a dot).
19090 # func_strip_suffix prefix name
19094 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19095 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19100 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
19101 my_sed_long_arg
='1s/^-[^=]*=//'
19106 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19107 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19113 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
19116 # func_xform libobj-or-source
19119 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19122 # func_arith arithmetic-term...
19125 func_arith_result
=`expr "$@"`
19129 # STRING may not start with a hyphen.
19132 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19138 case $lt_shell_append in
19140 cat << \_LT_EOF
>> "$cfgfile"
19142 # func_append var value
19143 # Append VALUE to the end of shell variable VAR.
19151 cat << \_LT_EOF
>> "$cfgfile"
19153 # func_append var value
19154 # Append VALUE to the end of shell variable VAR.
19165 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19166 ||
(rm -f "$cfgfile"; exit 1)
19168 mv -f "$cfgfile" "$ofile" ||
19169 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19173 cat <<_LT_EOF >> "$ofile"
19175 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19177 # The linker used to build libraries.
19180 # How to create reloadable object files.
19181 reload_flag=$lt_reload_flag_CXX
19182 reload_cmds=$lt_reload_cmds_CXX
19184 # Commands used to build an old-style archive.
19185 old_archive_cmds=$lt_old_archive_cmds_CXX
19187 # A language specific compiler.
19188 CC=$lt_compiler_CXX
19190 # Is the compiler the GNU compiler?
19193 # Compiler flag to turn off builtin functions.
19194 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19196 # How to pass a linker flag through the compiler.
19197 wl=$lt_lt_prog_compiler_wl_CXX
19199 # Additional compiler flags for building library objects.
19200 pic_flag=$lt_lt_prog_compiler_pic_CXX
19202 # Compiler flag to prevent dynamic linking.
19203 link_static_flag=$lt_lt_prog_compiler_static_CXX
19205 # Does compiler simultaneously support -c and -o options?
19206 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19208 # Whether or not to add -lc for building shared libraries.
19209 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19211 # Whether or not to disallow shared libs when runtime libs are static.
19212 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19214 # Compiler flag to allow reflexive dlopens.
19215 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19217 # Compiler flag to generate shared objects directly from archives.
19218 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19220 # Whether the compiler copes with passing no objects directly.
19221 compiler_needs_object=$lt_compiler_needs_object_CXX
19223 # Create an old-style archive from a shared archive.
19224 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19226 # Create a temporary old-style archive to link instead of a shared archive.
19227 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19229 # Commands used to build a shared archive.
19230 archive_cmds=$lt_archive_cmds_CXX
19231 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19233 # Commands used to build a loadable module if different from building
19234 # a shared archive.
19235 module_cmds=$lt_module_cmds_CXX
19236 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19238 # Whether we are building with GNU ld or not.
19239 with_gnu_ld=$lt_with_gnu_ld_CXX
19241 # Flag that allows shared libraries with undefined symbols to be built.
19242 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19244 # Flag that enforces no undefined symbols.
19245 no_undefined_flag=$lt_no_undefined_flag_CXX
19247 # Flag to hardcode \$libdir into a binary during linking.
19248 # This must work even if \$libdir does not exist
19249 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19251 # If ld is used when linking, flag to hardcode \$libdir into a binary
19252 # during linking. This must work even if \$libdir does not exist.
19253 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19255 # Whether we need a single "-rpath" flag with a separated argument.
19256 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19258 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19259 # DIR into the resulting binary.
19260 hardcode_direct=$hardcode_direct_CXX
19262 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19263 # DIR into the resulting binary and the resulting library dependency is
19264 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19265 # library is relocated.
19266 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19268 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19269 # into the resulting binary.
19270 hardcode_minus_L=$hardcode_minus_L_CXX
19272 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19273 # into the resulting binary.
19274 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19276 # Set to "yes" if building a shared library automatically hardcodes DIR
19277 # into the library and all subsequent libraries and executables linked
19279 hardcode_automatic=$hardcode_automatic_CXX
19281 # Set to yes if linker adds runtime paths of dependent libraries
19282 # to runtime path list.
19283 inherit_rpath=$inherit_rpath_CXX
19285 # Whether libtool must link a program against all its dependency libraries.
19286 link_all_deplibs=$link_all_deplibs_CXX
19288 # Fix the shell variable \$srcfile for the compiler.
19289 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19291 # Set to "yes" if exported symbols are required.
19292 always_export_symbols=$always_export_symbols_CXX
19294 # The commands to list exported symbols.
19295 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19297 # Symbols that should not be listed in the preloaded symbols.
19298 exclude_expsyms=$lt_exclude_expsyms_CXX
19300 # Symbols that must always be exported.
19301 include_expsyms=$lt_include_expsyms_CXX
19303 # Commands necessary for linking programs (against libraries) with templates.
19304 prelink_cmds=$lt_prelink_cmds_CXX
19306 # Specify filename containing input files.
19307 file_list_spec=$lt_file_list_spec_CXX
19309 # How to hardcode a shared library path into an executable.
19310 hardcode_action=$hardcode_action_CXX
19312 # The directories searched by this compiler when creating a shared library.
19313 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19315 # Dependencies to place before and after the objects being linked to
19316 # create a shared library.
19317 predep_objects=$lt_predep_objects_CXX
19318 postdep_objects=$lt_postdep_objects_CXX
19319 predeps=$lt_predeps_CXX
19320 postdeps=$lt_postdeps_CXX
19322 # The library search path used internally by the compiler when linking
19323 # a shared library.
19324 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19326 # ### END LIBTOOL TAG CONFIG: CXX
19337 ac_clean_files
=$ac_clean_files_save
19339 test $ac_write_fail = 0 ||
19340 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
19343 # configure is writing to config.log, and then calls config.status.
19344 # config.status does its own redirection, appending to config.log.
19345 # Unfortunately, on DOS this fails, as config.log is still kept open
19346 # by configure, so config.status won't be able to write to it; its
19347 # output is simply discarded. So we exec the FD to /dev/null,
19348 # effectively closing config.log, so it can be properly (re)opened and
19349 # appended to by config.status. When coming back to configure, we
19350 # need to make the FD available again.
19351 if test "$no_create" != yes; then
19353 ac_config_status_args
=
19354 test "$silent" = yes &&
19355 ac_config_status_args
="$ac_config_status_args --quiet"
19357 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19359 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19360 # would make configure fail if this is the last instruction.
19361 $ac_cs_success || as_fn_exit
1
19365 # CONFIG_SUBDIRS section.
19367 if test "$no_recursion" != yes; then
19369 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19370 # so they do not pile up.
19371 ac_sub_configure_args
=
19373 eval "set x $ac_configure_args"
19377 if test -n "$ac_prev"; then
19382 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
19383 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
19384 ac_prev
=cache_file
;;
19385 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
19386 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
19389 --config-cache |
-C)
19391 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
19393 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
19395 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
19397 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
19399 --disable-option-checking)
19403 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19405 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
19409 # Always prepend --prefix to ensure using the same prefix
19410 # in subdir configurations.
19411 ac_arg
="--prefix=$prefix"
19413 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19415 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
19418 if test "$silent" = yes; then
19419 ac_sub_configure_args
="--silent $ac_sub_configure_args"
19422 # Always prepend --disable-option-checking to silence warnings, since
19423 # different subdirs can have different --enable and --with options.
19424 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
19427 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
19429 # Do not complain, so a configure script can configure whichever
19430 # parts of a large source tree are present.
19431 test -d "$srcdir/$ac_dir" ||
continue
19433 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19434 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19435 $as_echo "$ac_msg" >&6
19436 as_dir
="$ac_dir"; as_fn_mkdir_p
19440 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19442 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19443 # A ".." for each directory in $ac_dir_suffix.
19444 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19445 case $ac_top_builddir_sub in
19446 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19447 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
19450 ac_abs_top_builddir
=$ac_pwd
19451 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
19452 # for backward compatibility:
19453 ac_top_builddir
=$ac_top_build_prefix
19456 .
) # We are building in place.
19458 ac_top_srcdir
=$ac_top_builddir_sub
19459 ac_abs_top_srcdir
=$ac_pwd ;;
19460 [\\/]* | ?
:[\\/]* ) # Absolute name.
19461 ac_srcdir
=$srcdir$ac_dir_suffix;
19462 ac_top_srcdir
=$srcdir
19463 ac_abs_top_srcdir
=$srcdir ;;
19464 *) # Relative name.
19465 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
19466 ac_top_srcdir
=$ac_top_build_prefix$srcdir
19467 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
19469 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
19474 # Check for guested configure; otherwise get Cygnus style configure.
19475 if test -f "$ac_srcdir/configure.gnu"; then
19476 ac_sub_configure
=$ac_srcdir/configure.gnu
19477 elif test -f "$ac_srcdir/configure"; then
19478 ac_sub_configure
=$ac_srcdir/configure
19479 elif test -f "$ac_srcdir/configure.in"; then
19480 # This should be Cygnus configure.
19481 ac_sub_configure
=$ac_aux_dir/configure
19483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19484 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19488 # The recursion is here.
19489 if test -n "$ac_sub_configure"; then
19490 # Make the cache file name correct relative to the subdirectory.
19491 case $cache_file in
19492 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
19493 *) # Relative name.
19494 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
19497 { $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
19498 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19499 # The eval makes quoting arguments work.
19500 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19501 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19502 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19508 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19510 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}