2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
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.
595 ac_unique_file
="main.c"
596 # Factoring default headers for most tests.
597 ac_includes_default
="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
632 enable_option_checking
=no
634 ac_subst_vars
='LTLIBOBJS
648 HAVE_NATIVE_GCORE_HOST
749 READLINE_DOC_SOURCE_INCLUDES
750 READLINE_TEXI_INCFLAG
774 HAVE_NATIVE_GCORE_TARGET
778 ENABLE_BFD_64_BIT_FALSE
779 ENABLE_BFD_64_BIT_TRUE
826 INSTALL_STRIP_PROGRAM
856 MAINTAINER_MODE_FALSE
885 program_transform_name
896 ac_subst_files
='nat_makefile_frag'
898 enable_option_checking
899 enable_maintainer_mode
908 with_separate_debug_dir
909 with_additional_debug_dirs
911 with_relocated_sources
913 with_auto_load_safe_path
940 enable_source_highlight
946 with_libxxhash_prefix
950 with_system_gdbinit_dir
952 enable_build_warnings
953 enable_gdb_build_warnings
964 with_libbabeltrace_prefix
965 with_libbabeltrace_type
969 ac_precious_vars
='build_alias
998 ac_subdirs_all
='testsuite
1001 # Initialize some variables set by options.
1003 ac_init_version
=false
1004 ac_unrecognized_opts
=
1005 ac_unrecognized_sep
=
1006 # The variables have the same names as the options, with
1007 # dashes changed to underlines.
1008 cache_file
=/dev
/null
1015 program_transform_name
=s
,x
,x
,
1023 # Installation directory options.
1024 # These are left unexpanded so users can "make install exec_prefix=/foo"
1025 # and all the variables that are supposed to be based on exec_prefix
1026 # by default will actually change.
1027 # Use braces instead of parens because sh, perl, etc. also accept them.
1028 # (The list follows the same order as the GNU Coding Standards.)
1029 bindir
='${exec_prefix}/bin'
1030 sbindir
='${exec_prefix}/sbin'
1031 libexecdir
='${exec_prefix}/libexec'
1032 datarootdir
='${prefix}/share'
1033 datadir
='${datarootdir}'
1034 sysconfdir
='${prefix}/etc'
1035 sharedstatedir
='${prefix}/com'
1036 localstatedir
='${prefix}/var'
1037 includedir
='${prefix}/include'
1038 oldincludedir
='/usr/include'
1039 docdir
='${datarootdir}/doc/${PACKAGE}'
1040 infodir
='${datarootdir}/info'
1045 libdir
='${exec_prefix}/lib'
1046 localedir
='${datarootdir}/locale'
1047 mandir
='${datarootdir}/man'
1053 # If the previous option needs an argument, assign it.
1054 if test -n "$ac_prev"; then
1055 eval $ac_prev=\
$ac_option
1061 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1066 # Accept the important Cygnus configure options, so we can diagnose typos.
1068 case $ac_dashdash$ac_option in
1072 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1074 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1075 bindir
=$ac_optarg ;;
1077 -build |
--build |
--buil |
--bui |
--bu)
1078 ac_prev
=build_alias
;;
1079 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1080 build_alias
=$ac_optarg ;;
1082 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1083 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1084 ac_prev
=cache_file
;;
1085 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1086 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1087 cache_file
=$ac_optarg ;;
1089 --config-cache |
-C)
1090 cache_file
=config.cache
;;
1092 -datadir |
--datadir |
--datadi |
--datad)
1094 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1095 datadir
=$ac_optarg ;;
1097 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1098 |
--dataroo |
--dataro |
--datar)
1099 ac_prev
=datarootdir
;;
1100 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1101 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1102 datarootdir
=$ac_optarg ;;
1104 -disable-* |
--disable-*)
1105 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1108 as_fn_error $?
"invalid feature name: $ac_useropt"
1109 ac_useropt_orig
=$ac_useropt
1110 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1113 "enable_
$ac_useropt"
1115 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1116 ac_unrecognized_sep
=', ';;
1118 eval enable_
$ac_useropt=no
;;
1120 -docdir |
--docdir |
--docdi |
--doc |
--do)
1122 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1123 docdir
=$ac_optarg ;;
1125 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1127 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1128 dvidir
=$ac_optarg ;;
1130 -enable-* |
--enable-*)
1131 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1132 # Reject names that are not valid shell variable names.
1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1134 as_fn_error $?
"invalid feature name: $ac_useropt"
1135 ac_useropt_orig
=$ac_useropt
1136 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137 case $ac_user_opts in
1139 "enable_
$ac_useropt"
1141 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1142 ac_unrecognized_sep
=', ';;
1144 eval enable_
$ac_useropt=\
$ac_optarg ;;
1146 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1147 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1148 |
--exec |
--exe |
--ex)
1149 ac_prev
=exec_prefix
;;
1150 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1151 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1152 |
--exec=* |
--exe=* |
--ex=*)
1153 exec_prefix
=$ac_optarg ;;
1155 -gas |
--gas |
--ga |
--g)
1156 # Obsolete; use --with-gas.
1159 -help |
--help |
--hel |
--he |
-h)
1160 ac_init_help
=long
;;
1161 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1162 ac_init_help
=recursive
;;
1163 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1164 ac_init_help
=short
;;
1166 -host |
--host |
--hos |
--ho)
1167 ac_prev
=host_alias
;;
1168 -host=* |
--host=* |
--hos=* |
--ho=*)
1169 host_alias
=$ac_optarg ;;
1171 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1173 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1175 htmldir
=$ac_optarg ;;
1177 -includedir |
--includedir |
--includedi |
--included |
--include \
1178 |
--includ |
--inclu |
--incl |
--inc)
1179 ac_prev
=includedir
;;
1180 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1181 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1182 includedir
=$ac_optarg ;;
1184 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1186 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1187 infodir
=$ac_optarg ;;
1189 -libdir |
--libdir |
--libdi |
--libd)
1191 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1192 libdir
=$ac_optarg ;;
1194 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1195 |
--libexe |
--libex |
--libe)
1196 ac_prev
=libexecdir
;;
1197 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1198 |
--libexe=* |
--libex=* |
--libe=*)
1199 libexecdir
=$ac_optarg ;;
1201 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1202 ac_prev
=localedir
;;
1203 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1204 localedir
=$ac_optarg ;;
1206 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1207 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1208 ac_prev
=localstatedir
;;
1209 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1210 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1211 localstatedir
=$ac_optarg ;;
1213 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1215 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1216 mandir
=$ac_optarg ;;
1218 -nfp |
--nfp |
--nf)
1219 # Obsolete; use --without-fp.
1222 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1223 |
--no-cr |
--no-c |
-n)
1226 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1227 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1230 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1231 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1232 |
--oldin |
--oldi |
--old |
--ol |
--o)
1233 ac_prev
=oldincludedir
;;
1234 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1235 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1236 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1237 oldincludedir
=$ac_optarg ;;
1239 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1241 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1242 prefix
=$ac_optarg ;;
1244 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1245 |
--program-pre |
--program-pr |
--program-p)
1246 ac_prev
=program_prefix
;;
1247 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1248 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1249 program_prefix
=$ac_optarg ;;
1251 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1252 |
--program-suf |
--program-su |
--program-s)
1253 ac_prev
=program_suffix
;;
1254 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1255 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1256 program_suffix
=$ac_optarg ;;
1258 -program-transform-name |
--program-transform-name \
1259 |
--program-transform-nam |
--program-transform-na \
1260 |
--program-transform-n |
--program-transform- \
1261 |
--program-transform |
--program-transfor \
1262 |
--program-transfo |
--program-transf \
1263 |
--program-trans |
--program-tran \
1264 |
--progr-tra |
--program-tr |
--program-t)
1265 ac_prev
=program_transform_name
;;
1266 -program-transform-name=* |
--program-transform-name=* \
1267 |
--program-transform-nam=* |
--program-transform-na=* \
1268 |
--program-transform-n=* |
--program-transform-=* \
1269 |
--program-transform=* |
--program-transfor=* \
1270 |
--program-transfo=* |
--program-transf=* \
1271 |
--program-trans=* |
--program-tran=* \
1272 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1273 program_transform_name
=$ac_optarg ;;
1275 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1277 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1278 pdfdir
=$ac_optarg ;;
1280 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1282 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1285 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1286 |
-silent |
--silent |
--silen |
--sile |
--sil)
1289 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1291 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1293 sbindir
=$ac_optarg ;;
1295 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1296 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1297 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1299 ac_prev
=sharedstatedir
;;
1300 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1301 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1302 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1304 sharedstatedir
=$ac_optarg ;;
1306 -site |
--site |
--sit)
1308 -site=* |
--site=* |
--sit=*)
1311 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1313 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1314 srcdir
=$ac_optarg ;;
1316 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1317 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1318 ac_prev
=sysconfdir
;;
1319 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1320 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1321 sysconfdir
=$ac_optarg ;;
1323 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1324 ac_prev
=target_alias
;;
1325 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1326 target_alias
=$ac_optarg ;;
1328 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1331 -version |
--version |
--versio |
--versi |
--vers |
-V)
1332 ac_init_version
=: ;;
1335 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1336 # Reject names that are not valid shell variable names.
1337 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1338 as_fn_error $?
"invalid package name: $ac_useropt"
1339 ac_useropt_orig
=$ac_useropt
1340 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1341 case $ac_user_opts in
1345 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1346 ac_unrecognized_sep
=', ';;
1348 eval with_
$ac_useropt=\
$ac_optarg ;;
1350 -without-* |
--without-*)
1351 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1352 # Reject names that are not valid shell variable names.
1353 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1354 as_fn_error $?
"invalid package name: $ac_useropt"
1355 ac_useropt_orig
=$ac_useropt
1356 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1357 case $ac_user_opts in
1361 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1362 ac_unrecognized_sep
=', ';;
1364 eval with_
$ac_useropt=no
;;
1367 # Obsolete; use --with-x.
1370 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1371 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1372 ac_prev
=x_includes
;;
1373 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1374 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1375 x_includes
=$ac_optarg ;;
1377 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1378 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1379 ac_prev
=x_libraries
;;
1380 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1381 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1382 x_libraries
=$ac_optarg ;;
1384 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1385 Try \`$0 --help' for more information"
1389 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1390 # Reject names that are not valid shell variable names.
1391 case $ac_envvar in #(
1392 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1393 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1395 eval $ac_envvar=\
$ac_optarg
1396 export $ac_envvar ;;
1399 # FIXME: should be removed in autoconf 3.0.
1400 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1401 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1402 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1403 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1409 if test -n "$ac_prev"; then
1410 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1411 as_fn_error $?
"missing argument to $ac_option"
1414 if test -n "$ac_unrecognized_opts"; then
1415 case $enable_option_checking in
1417 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1418 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1422 # Check all directory arguments for consistency.
1423 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1424 datadir sysconfdir sharedstatedir localstatedir includedir \
1425 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1426 libdir localedir mandir
1428 eval ac_val
=\$
$ac_var
1429 # Remove trailing slashes.
1432 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1433 eval $ac_var=\
$ac_val;;
1435 # Be sure to have absolute directory names.
1437 [\\/$
]* | ?
:[\\/]* ) continue;;
1438 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1440 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1443 # There might be people who depend on the old broken behavior: `$host'
1444 # used to hold the argument of --host etc.
1445 # FIXME: To remove some day.
1448 target
=$target_alias
1450 # FIXME: To remove some day.
1451 if test "x$host_alias" != x
; then
1452 if test "x$build_alias" = x
; then
1453 cross_compiling
=maybe
1454 elif test "x$build_alias" != "x$host_alias"; then
1460 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1462 test "$silent" = yes && exec 6>/dev
/null
1465 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1466 ac_ls_di
=`ls -di .` &&
1467 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1468 as_fn_error $?
"working directory cannot be determined"
1469 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1470 as_fn_error $?
"pwd does not report name of working directory"
1473 # Find the source files, if location was not specified.
1474 if test -z "$srcdir"; then
1475 ac_srcdir_defaulted
=yes
1476 # Try the directory containing this script, then the parent directory.
1477 ac_confdir
=`$as_dirname -- "$as_myself" ||
1478 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1479 X"$as_myself" : 'X\(//\)[^/]' \| \
1480 X"$as_myself" : 'X\(//\)$' \| \
1481 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1482 $as_echo X"$as_myself" |
1483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1501 if test ! -r "$srcdir/$ac_unique_file"; then
1505 ac_srcdir_defaulted
=no
1507 if test ! -r "$srcdir/$ac_unique_file"; then
1508 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1509 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1511 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1513 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1515 # When building in place, set srcdir=.
1516 if test "$ac_abs_confdir" = "$ac_pwd"; then
1519 # Remove unnecessary trailing slashes from srcdir.
1520 # Double slashes in file names in object file debugging info
1521 # mess up M-x gdb in Emacs.
1523 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1525 for ac_var
in $ac_precious_vars; do
1526 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1527 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1528 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1529 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1533 # Report the --help message.
1535 if test "$ac_init_help" = "long"; then
1536 # Omit some internal or obsolete options to make the list less imposing.
1537 # This message is too long to be a string in the A/UX 3.1 sh.
1539 \`configure' configures this package to adapt to many kinds of systems.
1541 Usage: $0 [OPTION]... [VAR=VALUE]...
1543 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1544 VAR=VALUE. See below for descriptions of some of the useful variables.
1546 Defaults for the options are specified in brackets.
1549 -h, --help display this help and exit
1550 --help=short display options specific to this package
1551 --help=recursive display the short help of all the included packages
1552 -V, --version display version information and exit
1553 -q, --quiet, --silent do not print \`checking ...' messages
1554 --cache-file=FILE cache test results in FILE [disabled]
1555 -C, --config-cache alias for \`--cache-file=config.cache'
1556 -n, --no-create do not create output files
1557 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1559 Installation directories:
1560 --prefix=PREFIX install architecture-independent files in PREFIX
1561 [$ac_default_prefix]
1562 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1565 By default, \`make install' will install all the files in
1566 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1567 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1568 for instance \`--prefix=\$HOME'.
1570 For better control, use the options below.
1572 Fine tuning of the installation directories:
1573 --bindir=DIR user executables [EPREFIX/bin]
1574 --sbindir=DIR system admin executables [EPREFIX/sbin]
1575 --libexecdir=DIR program executables [EPREFIX/libexec]
1576 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1577 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1578 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1579 --libdir=DIR object code libraries [EPREFIX/lib]
1580 --includedir=DIR C header files [PREFIX/include]
1581 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1582 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1583 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1584 --infodir=DIR info documentation [DATAROOTDIR/info]
1585 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1586 --mandir=DIR man documentation [DATAROOTDIR/man]
1587 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1588 --htmldir=DIR html documentation [DOCDIR]
1589 --dvidir=DIR dvi documentation [DOCDIR]
1590 --pdfdir=DIR pdf documentation [DOCDIR]
1591 --psdir=DIR ps documentation [DOCDIR]
1597 --program-prefix=PREFIX prepend PREFIX to installed program names
1598 --program-suffix=SUFFIX append SUFFIX to installed program names
1599 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1602 --x-includes=DIR X include files are
in DIR
1603 --x-libraries=DIR X library files are
in DIR
1606 --build=BUILD configure
for building on BUILD
[guessed
]
1607 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1608 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1612 if test -n "$ac_init_help"; then
1617 --disable-option-checking ignore unrecognized
--enable/--with options
1618 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1619 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1620 --enable-maintainer-mode
1621 enable make rules and dependencies not useful
(and
1622 sometimes confusing
) to the casual installer
1623 --enable-plugins Enable support
for plugins
1624 --disable-largefile omit support
for large files
1625 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1626 --enable-static[=PKGS
] build static libraries
[default
=yes]
1627 --enable-fast-install[=PKGS
]
1628 optimize
for fast installation
[default
=yes]
1629 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1630 --enable-targets=TARGETS
1631 alternative target configurations
1632 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1633 --enable-tui enable full-screen terminal user interface
(TUI
)
1634 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1635 --enable-profiling enable profiling of GDB
1636 --enable-codesign=CERT sign gdb with
'codesign -s CERT'
1637 --disable-rpath do not hardcode runtime library paths
1638 --enable-source-highlight
1639 enable source-highlight
for source listings
1640 --enable-threading include support
for parallel processing of data
1642 --enable-werror treat compile warnings as errors
1643 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1644 --enable-gdb-build-warnings
1645 enable GDB specific build-time compiler warnings
if
1647 --enable-ubsan enable undefined behavior sanitizer
(auto
/yes
/no
)
1648 --enable-sim link gdb with simulator
1649 --enable-libbacktrace use libbacktrace to
write a backtrace after a fatal
1651 --enable-libctf Handle .ctf type-info sections
[default
=yes]
1652 --enable-unit-tests Enable the inclusion of unit tests when compiling
1656 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1657 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1658 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1660 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1661 --with-separate-debug-dir=PATH
1662 look for global separate debug info
in this path
1664 --with-additional-debug-dirs=PATHs
1665 colon-separated list of additional directories to
1666 search
for separate debug info
1667 --with-gdb-datadir=PATH
look for global separate data files
in this path
1669 --with-relocated-sources=PATH
1670 automatically relocate this path
for source files
1671 --with-auto-load-dir=PATH
1672 directories from
which to load auto-loaded scripts
1673 [$debugdir:$datadir/auto-load
]
1674 --with-auto-load-safe-path=PATH
1675 directories safe to hold auto-loaded files
1676 [--with-auto-load-dir]
1677 --without-auto-load-safe-path
1678 do not restrict auto-loaded files locations
1679 --with-amd-dbgapi support
for the amd-dbgapi target
(yes / no
/ auto
)
1680 --with-debuginfod Enable debuginfo lookups with debuginfod
1682 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1683 --with-curses use the curses library instead of the termcap
1685 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1686 --with-bugurl=URL Direct users to URL to report a bug
1687 --with-system-zlib use installed libz
1688 --with-zstd support zstd compressed debug sections
1690 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1691 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1692 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1693 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1694 --with-iconv-bin=PATH specify where to find the iconv program
1695 --with-system-readline use installed readline library
1696 --with-jit-reader-dir=PATH
1697 directory to load the JIT readers from
1698 --with-expat include expat support (auto/yes/no)
1699 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1700 --without-libexpat-prefix don't search
for libexpat
in includedir and libdir
1701 --with-libexpat-type=TYPE
type of library to search
for (auto
/static
/shared
)
1702 --with-python[=PYTHON
] include python support
1703 (auto
/yes
/no
/<python-program
>)
1704 --with-python-libdir[=DIR
]
1705 search
for python
's libraries in DIR
1706 --with-guile[=GUILE] include guile support
1707 (auto/yes/no/<guile-version>/<pkg-config-program>)
1708 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1709 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1710 --without-libipt-prefix don't search
for libipt
in includedir and libdir
1711 --with-libipt-type=TYPE
type of library to search
for (auto
/static
/shared
)
1712 --with-xxhash use libxxhash
for hashing
(faster
) (auto
/yes
/no
)
1713 --with-libxxhash-prefix[=DIR
] search
for libxxhash
in DIR
/include and DIR
/lib
1714 --without-libxxhash-prefix don
't search for libxxhash in includedir and libdir
1715 --with-libxxhash-type=TYPE type of library to search for (auto/static/shared)
1716 --with-sysroot[=DIR] search for usr/lib et al within DIR
1717 --with-system-gdbinit=PATH
1718 automatically load a system-wide gdbinit file
1719 --with-system-gdbinit-dir=PATH
1720 automatically load system-wide gdbinit files from
1722 --with-lzma support lzma compression (auto/yes/no)
1723 --with-liblzma-prefix[=DIR] search for liblzma in DIR/include and DIR/lib
1724 --without-liblzma-prefix don't search
for liblzma
in includedir and libdir
1725 --with-liblzma-type=TYPE
type of library to search
for (auto
/static
/shared
)
1726 --with-tcl directory containing tcl configuration
(tclConfig.sh
)
1727 --with-tk directory containing tk configuration
(tkConfig.sh
)
1728 --with-x use the X Window System
1729 --with-babeltrace include babeltrace support
(auto
/yes
/no
)
1730 --with-libbabeltrace-prefix[=DIR
] search
for libbabeltrace
in DIR
/include and DIR
/lib
1731 --without-libbabeltrace-prefix don
't search for libbabeltrace in includedir and libdir
1732 --with-libbabeltrace-type=TYPE type of library to search for (auto/static/shared)
1734 Some influential environment variables:
1735 CC C compiler command
1736 CFLAGS C compiler flags
1737 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1738 nonstandard directory <lib dir>
1739 LIBS libraries to pass to the linker, e.g. -l<library>
1740 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1741 you have headers in a nonstandard directory <include dir>
1742 CXX C++ compiler command
1743 CXXFLAGS C++ compiler flags
1745 CXXCPP C++ preprocessor
1746 PKG_CONFIG path to pkg-config utility
1748 directories to add to pkg-config's search path
1750 path overriding pkg-config
's built-in search path
1751 MAKEINFO Parent configure detects if it is of sufficient version.
1753 Parameters for MAKEINFO.
1755 C compiler flags for AMD_DBGAPI, overriding pkg-config
1757 linker flags for AMD_DBGAPI, overriding pkg-config
1759 C compiler flags for DEBUGINFOD, overriding pkg-config
1761 linker flags for DEBUGINFOD, overriding pkg-config
1762 YACC The `Yet Another Compiler Compiler' implementation to use.
1763 Defaults to the first program found out of
: `bison -y', `byacc
',
1765 YFLAGS The list of arguments that will be passed by default to
$YACC.
1766 This
script will default YFLAGS to the empty string to avoid a
1767 default value of
`-d' given by some make applications.
1768 ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1769 ZSTD_LIBS linker flags for ZSTD, overriding pkg-config
1770 GMPLIBS How to link GMP
1771 GMPINC How to find GMP include files
1772 XMKMF Path to xmkmf, Makefile generator for X Window System
1774 Use these variables to override the choices made by `configure
' or to help
1775 it to find libraries and programs with nonstandard names/locations.
1777 Report bugs to the package provider.
1782 if test "$ac_init_help" = "recursive"; then
1783 # If there are subdirs, report their specific --help.
1784 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1785 test -d "$ac_dir" ||
1786 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1791 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1793 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.
[\\/]||
'`
1794 # A ".." for each directory in $ac_dir_suffix.
1795 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|
/[^
\\/]*|
/..|g
;s|
/||
'`
1796 case $ac_top_builddir_sub in
1797 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1798 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1801 ac_abs_top_builddir=$ac_pwd
1802 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1803 # for backward compatibility:
1804 ac_top_builddir=$ac_top_build_prefix
1807 .) # We are building in place.
1809 ac_top_srcdir=$ac_top_builddir_sub
1810 ac_abs_top_srcdir=$ac_pwd ;;
1811 [\\/]* | ?:[\\/]* ) # Absolute name.
1812 ac_srcdir=$srcdir$ac_dir_suffix;
1813 ac_top_srcdir=$srcdir
1814 ac_abs_top_srcdir=$srcdir ;;
1816 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1817 ac_top_srcdir=$ac_top_build_prefix$srcdir
1818 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1820 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1822 cd "$ac_dir" || { ac_status=$?; continue; }
1823 # Check for guested configure.
1824 if test -f "$ac_srcdir/configure.gnu"; then
1826 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1827 elif test -f "$ac_srcdir/configure"; then
1829 $SHELL "$ac_srcdir/configure" --help=recursive
1831 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1833 cd "$ac_pwd" || { ac_status=$?; break; }
1837 test -n "$ac_init_help" && exit $ac_status
1838 if $ac_init_version; then
1841 generated by GNU Autoconf 2.69
1843 Copyright (C) 2012 Free Software Foundation, Inc.
1844 This configure script is free software; the Free Software Foundation
1845 gives unlimited permission to copy, distribute and modify it.
1850 ## ------------------------ ##
1851 ## Autoconf initialization. ##
1852 ## ------------------------ ##
1854 # ac_fn_c_try_compile LINENO
1855 # --------------------------
1856 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1857 ac_fn_c_try_compile ()
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 rm -f conftest.$ac_objext
1861 if { { ac_try="$ac_compile"
1863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864 *) ac_try_echo=$ac_try;;
1866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867 $as_echo "$ac_try_echo"; } >&5
1868 (eval "$ac_compile") 2>conftest.err
1870 if test -s conftest.err; then
1871 grep -v '^
*+' conftest.err >conftest.er1
1872 cat conftest.er1 >&5
1873 mv -f conftest.er1 conftest.err
1875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876 test $ac_status = 0; } && {
1877 test -z "$ac_c_werror_flag" ||
1878 test ! -s conftest.err
1879 } && test -s conftest.$ac_objext; then :
1882 $as_echo "$as_me: failed program was:" >&5
1883 sed 's
/^
/|
/' conftest.$ac_ext >&5
1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888 as_fn_set_status $ac_retval
1890 } # ac_fn_c_try_compile
1892 # ac_fn_cxx_try_compile LINENO
1893 # ----------------------------
1894 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1895 ac_fn_cxx_try_compile ()
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 rm -f conftest.$ac_objext
1899 if { { ac_try="$ac_compile"
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_compile") 2>conftest.err
1908 if test -s conftest.err; then
1909 grep -v '^
*+' conftest.err >conftest.er1
1910 cat conftest.er1 >&5
1911 mv -f conftest.er1 conftest.err
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } && {
1915 test -z "$ac_cxx_werror_flag" ||
1916 test ! -s conftest.err
1917 } && test -s conftest.$ac_objext; then :
1920 $as_echo "$as_me: failed program was:" >&5
1921 sed 's
/^
/|
/' conftest.$ac_ext >&5
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926 as_fn_set_status $ac_retval
1928 } # ac_fn_cxx_try_compile
1930 # ac_fn_c_try_cpp LINENO
1931 # ----------------------
1932 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 if { { ac_try="$ac_cpp conftest.$ac_ext"
1938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1939 *) ac_try_echo=$ac_try;;
1941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1942 $as_echo "$ac_try_echo"; } >&5
1943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1945 if test -s conftest.err; then
1946 grep -v '^
*+' conftest.err >conftest.er1
1947 cat conftest.er1 >&5
1948 mv -f conftest.er1 conftest.err
1950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1951 test $ac_status = 0; } > conftest.i && {
1952 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1953 test ! -s conftest.err
1957 $as_echo "$as_me: failed program was:" >&5
1958 sed 's
/^
/|
/' conftest.$ac_ext >&5
1962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963 as_fn_set_status $ac_retval
1967 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1968 # -------------------------------------------------------
1969 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1970 # the include files in INCLUDES and setting the cache variable VAR
1972 ac_fn_c_check_header_mongrel ()
1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975 if eval \${$3+:} false; then :
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1977 $as_echo_n "checking for $2... " >&6; }
1978 if eval \${$3+:} false; then :
1979 $as_echo_n "(cached) " >&6
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 $as_echo "$ac_res" >&6; }
1985 # Is the header compilable?
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1987 $as_echo_n "checking $2 usability... " >&6; }
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
1993 if ac_fn_c_try_compile "$LINENO"; then :
1994 ac_header_compiler=yes
1996 ac_header_compiler=no
1998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2000 $as_echo "$ac_header_compiler" >&6; }
2002 # Is the header present?
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2004 $as_echo_n "checking $2 presence... " >&6; }
2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006 /* end confdefs.h. */
2009 if ac_fn_c_try_cpp "$LINENO"; then :
2010 ac_header_preproc=yes
2012 ac_header_preproc=no
2014 rm -f conftest.err conftest.i conftest.$ac_ext
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2016 $as_echo "$ac_header_preproc" >&6; }
2018 # So? What about this header?
2019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2022 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
2024 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2028 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2030 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2032 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2034 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
2036 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2040 $as_echo_n "checking for $2... " >&6; }
2041 if eval \${$3+:} false; then :
2042 $as_echo_n "(cached) " >&6
2044 eval "$3=\$ac_header_compiler"
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048 $as_echo "$ac_res" >&6; }
2050 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2052 } # ac_fn_c_check_header_mongrel
2054 # ac_fn_c_try_run LINENO
2055 # ----------------------
2056 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2057 # that executables *can* be run.
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 if { { ac_try="$ac_link"
2063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2064 *) ac_try_echo=$ac_try;;
2066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2067 $as_echo "$ac_try_echo"; } >&5
2068 (eval "$ac_link") 2>&5
2070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2071 test $ac_status = 0; } && { ac_try='.
/conftest
$ac_exeext'
2072 { { case "(($ac_try" in
2073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2074 *) ac_try_echo=$ac_try;;
2076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2077 $as_echo "$ac_try_echo"; } >&5
2078 (eval "$ac_try") 2>&5
2080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2081 test $ac_status = 0; }; }; then :
2084 $as_echo "$as_me: program exited with status $ac_status" >&5
2085 $as_echo "$as_me: failed program was:" >&5
2086 sed 's
/^
/|
/' conftest.$ac_ext >&5
2088 ac_retval=$ac_status
2090 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2091 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2092 as_fn_set_status $ac_retval
2096 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2097 # -------------------------------------------------------
2098 # Tests whether HEADER exists and can be compiled using the include files in
2099 # INCLUDES, setting the cache variable VAR accordingly.
2100 ac_fn_c_check_header_compile ()
2102 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2104 $as_echo_n "checking for $2... " >&6; }
2105 if eval \${$3+:} false; then :
2106 $as_echo_n "(cached) " >&6
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2113 if ac_fn_c_try_compile "$LINENO"; then :
2118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2122 $as_echo "$ac_res" >&6; }
2123 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2125 } # ac_fn_c_check_header_compile
2127 # ac_fn_c_try_link LINENO
2128 # -----------------------
2129 # Try to link conftest.$ac_ext, and return whether this succeeded.
2132 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2133 rm -f conftest.$ac_objext conftest$ac_exeext
2134 if { { ac_try="$ac_link"
2136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137 *) ac_try_echo=$ac_try;;
2139 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2140 $as_echo "$ac_try_echo"; } >&5
2141 (eval "$ac_link") 2>conftest.err
2143 if test -s conftest.err; then
2144 grep -v '^
*+' conftest.err >conftest.er1
2145 cat conftest.er1 >&5
2146 mv -f conftest.er1 conftest.err
2148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2149 test $ac_status = 0; } && {
2150 test -z "$ac_c_werror_flag" ||
2151 test ! -s conftest.err
2152 } && test -s conftest$ac_exeext && {
2153 test "$cross_compiling" = yes ||
2154 test -x conftest$ac_exeext
2158 $as_echo "$as_me: failed program was:" >&5
2159 sed 's
/^
/|
/' conftest.$ac_ext >&5
2163 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2164 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2165 # interfere with the next link command; also delete a directory that is
2166 # left behind by Apple's compiler. We
do this before executing the actions.
2167 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2168 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2169 as_fn_set_status
$ac_retval
2171 } # ac_fn_c_try_link
2173 # ac_fn_c_check_func LINENO FUNC VAR
2174 # ----------------------------------
2175 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2176 ac_fn_c_check_func
()
2178 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2180 $as_echo_n "checking for $2... " >&6; }
2181 if eval \
${$3+:} false
; then :
2182 $as_echo_n "(cached) " >&6
2184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h. */
2186 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2188 #define $2 innocuous_$2
2190 /* System header to define __stub macros and hopefully few prototypes,
2191 which can conflict with char $2 (); below.
2192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2193 <limits.h> exists even on freestanding compilers. */
2196 # include <limits.h>
2198 # include <assert.h>
2203 /* Override any GCC internal prototype to avoid an error.
2204 Use char because int might match the return type of a GCC
2205 builtin and then its argument prototype would still apply. */
2210 /* The GNU C library defines this for functions which it implements
2211 to always fail with ENOSYS. Some functions are actually named
2212 something starting with __ and the normal name is an alias. */
2213 #if defined __stub_$2 || defined __stub___$2
2225 if ac_fn_c_try_link
"$LINENO"; then :
2230 rm -f core conftest.err conftest.
$ac_objext \
2231 conftest
$ac_exeext conftest.
$ac_ext
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2235 $as_echo "$ac_res" >&6; }
2236 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2238 } # ac_fn_c_check_func
2240 # ac_fn_cxx_try_cpp LINENO
2241 # ------------------------
2242 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2243 ac_fn_cxx_try_cpp
()
2245 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2246 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2248 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2249 *) ac_try_echo=$ac_try;;
2251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2252 $as_echo "$ac_try_echo"; } >&5
2253 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2255 if test -s conftest.err; then
2256 grep -v '^ *+' conftest.err >conftest.er1
2257 cat conftest.er1 >&5
2258 mv -f conftest.er1 conftest.err
2260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2261 test $ac_status = 0; } > conftest.i && {
2262 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2263 test ! -s conftest.err
2267 $as_echo "$as_me: failed program was:" >&5
2268 sed 's/^/| /' conftest.$ac_ext >&5
2272 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2273 as_fn_set_status $ac_retval
2275 } # ac_fn_cxx_try_cpp
2277 # ac_fn_cxx_try_link LINENO
2278 # -------------------------
2279 # Try to link conftest.$ac_ext, and return whether this succeeded.
2280 ac_fn_cxx_try_link ()
2282 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2283 rm -f conftest.$ac_objext conftest$ac_exeext
2284 if { { ac_try="$ac_link"
2286 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2287 *) ac_try_echo
=$ac_try;;
2289 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2290 $as_echo "$ac_try_echo"; } >&5
2291 (eval "$ac_link") 2>conftest.err
2293 if test -s conftest.err
; then
2294 grep -v '^ *+' conftest.err
>conftest.er1
2295 cat conftest.er1
>&5
2296 mv -f conftest.er1 conftest.err
2298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2299 test $ac_status = 0; } && {
2300 test -z "$ac_cxx_werror_flag" ||
2301 test ! -s conftest.err
2302 } && test -s conftest
$ac_exeext && {
2303 test "$cross_compiling" = yes ||
2304 test -x conftest
$ac_exeext
2308 $as_echo "$as_me: failed program was:" >&5
2309 sed 's/^/| /' conftest.
$ac_ext >&5
2313 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2314 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2315 # interfere with the next link command; also delete a directory that is
2316 # left behind by Apple's compiler. We do this before executing the actions.
2317 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2318 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2319 as_fn_set_status
$ac_retval
2321 } # ac_fn_cxx_try_link
2323 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2324 # --------------------------------------------
2325 # Tries to find the compile-time value of EXPR in a program that includes
2326 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2328 ac_fn_c_compute_int
()
2330 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2331 if test "$cross_compiling" = yes; then
2332 # Depending upon the size, compute the lo and hi bounds.
2333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2334 /* end confdefs.h. */
2339 static int test_array [1 - 2 * !(($2) >= 0)];
2341 return test_array [0];
2347 if ac_fn_c_try_compile
"$LINENO"; then :
2350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2351 /* end confdefs.h. */
2356 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2358 return test_array [0];
2364 if ac_fn_c_try_compile
"$LINENO"; then :
2365 ac_hi
=$ac_mid; break
2367 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2368 if test $ac_lo -le $ac_mid; then
2372 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2374 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2378 /* end confdefs.h. */
2383 static int test_array [1 - 2 * !(($2) < 0)];
2385 return test_array [0];
2391 if ac_fn_c_try_compile
"$LINENO"; then :
2394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2395 /* end confdefs.h. */
2400 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2402 return test_array [0];
2408 if ac_fn_c_try_compile
"$LINENO"; then :
2409 ac_lo
=$ac_mid; break
2411 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2412 if test $ac_mid -le $ac_hi; then
2416 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2418 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2423 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2425 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2426 # Binary search between lo and hi bounds.
2427 while test "x$ac_lo" != "x$ac_hi"; do
2428 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2430 /* end confdefs.h. */
2435 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2437 return test_array [0];
2443 if ac_fn_c_try_compile
"$LINENO"; then :
2446 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2451 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2456 /* end confdefs.h. */
2458 static long int longval () { return $2; }
2459 static unsigned long int ulongval () { return $2; }
2466 FILE *f = fopen ("conftest.val", "w");
2471 long int i = longval ();
2474 fprintf (f, "%ld", i);
2478 unsigned long int i = ulongval ();
2481 fprintf (f, "%lu", i);
2483 /* Do not output a trailing newline, as this causes \r\n confusion
2484 on some platforms. */
2485 return ferror (f) || fclose (f) != 0;
2491 if ac_fn_c_try_run
"$LINENO"; then :
2492 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2496 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2497 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2501 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2502 as_fn_set_status
$ac_retval
2504 } # ac_fn_c_compute_int
2506 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2507 # -------------------------------------------
2508 # Tests whether TYPE exists after having included INCLUDES, setting cache
2509 # variable VAR accordingly.
2510 ac_fn_c_check_type
()
2512 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2514 $as_echo_n "checking for $2... " >&6; }
2515 if eval \
${$3+:} false
; then :
2516 $as_echo_n "(cached) " >&6
2519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2520 /* end confdefs.h. */
2531 if ac_fn_c_try_compile
"$LINENO"; then :
2532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2533 /* end confdefs.h. */
2544 if ac_fn_c_try_compile
"$LINENO"; then :
2549 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2551 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2555 $as_echo "$ac_res" >&6; }
2556 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2558 } # ac_fn_c_check_type
2560 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2561 # ---------------------------------------------
2562 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2564 ac_fn_c_check_decl
()
2566 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2567 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2568 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2570 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2571 if eval \
${$3+:} false
; then :
2572 $as_echo_n "(cached) " >&6
2574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2575 /* end confdefs.h. */
2580 #ifndef $as_decl_name
2582 (void) $as_decl_use;
2584 (void) $as_decl_name;
2592 if ac_fn_c_try_compile
"$LINENO"; then :
2597 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2601 $as_echo "$ac_res" >&6; }
2602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2604 } # ac_fn_c_check_decl
2606 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2607 # ----------------------------------------------------
2608 # Tries to find if the field MEMBER exists in type AGGR, after including
2609 # INCLUDES, setting cache variable VAR accordingly.
2610 ac_fn_c_check_member
()
2612 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2614 $as_echo_n "checking for $2.$3... " >&6; }
2615 if eval \
${$4+:} false
; then :
2616 $as_echo_n "(cached) " >&6
2618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2619 /* end confdefs.h. */
2631 if ac_fn_c_try_compile
"$LINENO"; then :
2634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2635 /* end confdefs.h. */
2641 if (sizeof ac_aggr.$3)
2647 if ac_fn_c_try_compile
"$LINENO"; then :
2652 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2654 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2658 $as_echo "$ac_res" >&6; }
2659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2661 } # ac_fn_c_check_member
2663 # ac_fn_cxx_check_func LINENO FUNC VAR
2664 # ------------------------------------
2665 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2666 ac_fn_cxx_check_func
()
2668 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2670 $as_echo_n "checking for $2... " >&6; }
2671 if eval \
${$3+:} false
; then :
2672 $as_echo_n "(cached) " >&6
2674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2675 /* end confdefs.h. */
2676 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2678 #define $2 innocuous_$2
2680 /* System header to define __stub macros and hopefully few prototypes,
2681 which can conflict with char $2 (); below.
2682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2683 <limits.h> exists even on freestanding compilers. */
2686 # include <limits.h>
2688 # include <assert.h>
2693 /* Override any GCC internal prototype to avoid an error.
2694 Use char because int might match the return type of a GCC
2695 builtin and then its argument prototype would still apply. */
2700 /* The GNU C library defines this for functions which it implements
2701 to always fail with ENOSYS. Some functions are actually named
2702 something starting with __ and the normal name is an alias. */
2703 #if defined __stub_$2 || defined __stub___$2
2715 if ac_fn_cxx_try_link
"$LINENO"; then :
2720 rm -f core conftest.err conftest.
$ac_objext \
2721 conftest
$ac_exeext conftest.
$ac_ext
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2725 $as_echo "$ac_res" >&6; }
2726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2728 } # ac_fn_cxx_check_func
2729 cat >config.log
<<_ACEOF
2730 This file contains any messages produced by compilers while
2731 running configure, to aid debugging if configure makes a mistake.
2733 It was created by $as_me, which was
2734 generated by GNU Autoconf 2.69. Invocation command line was
2746 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2747 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2748 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2749 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2750 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2752 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2753 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2755 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2756 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2757 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2758 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2759 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2760 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2761 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2765 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2769 test -z "$as_dir" && as_dir
=.
2770 $as_echo "PATH: $as_dir"
2786 # Keep a trace of the command line.
2787 # Strip out --no-create and --no-recursion so they do not pile up.
2788 # Strip out --silent because we don't want to record it for future runs.
2789 # Also quote any args containing shell meta-characters.
2790 # Make two passes to allow for proper duplicate-argument suppression.
2794 ac_must_keep_next
=false
2800 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2801 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2802 |
-silent |
--silent |
--silen |
--sile |
--sil)
2805 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2808 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2810 as_fn_append ac_configure_args1
" '$ac_arg'"
2811 if test $ac_must_keep_next = true
; then
2812 ac_must_keep_next
=false
# Got value, back to normal.
2815 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2816 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2817 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2818 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2819 case "$ac_configure_args0 " in
2820 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2823 -* ) ac_must_keep_next
=true
;;
2826 as_fn_append ac_configure_args
" '$ac_arg'"
2831 { ac_configure_args0
=; unset ac_configure_args0
;}
2832 { ac_configure_args1
=; unset ac_configure_args1
;}
2834 # When interrupted or exit'd, cleanup temporary files, and complete
2835 # config.log. We remove comments because anyway the quotes in there
2836 # would cause problems or look ugly.
2837 # WARNING: Use '\'' to represent an apostrophe within the trap.
2838 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2839 trap 'exit_status=$?
2840 # Save into config.log some information that might help in debugging.
2844 $as_echo "## ---------------- ##
2845 ## Cache variables. ##
2846 ## ---------------- ##"
2848 # The following way of writing the cache mishandles newlines in values,
2850 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2851 eval ac_val=\$$ac_var
2855 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2856 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2859 _ | IFS | as_nl) ;; #(
2860 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2861 *) { eval $ac_var=; unset $ac_var;} ;;
2866 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2867 *${as_nl}ac_space=\ *)
2869 "s/'\''/'\''\\\\'\'''\''/g;
2870 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2873 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2880 $as_echo "## ----------------- ##
2881 ## Output variables. ##
2882 ## ----------------- ##"
2884 for ac_var in $ac_subst_vars
2886 eval ac_val=\$$ac_var
2888 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2890 $as_echo "$ac_var='\''$ac_val'\''"
2894 if test -n "$ac_subst_files"; then
2895 $as_echo "## ------------------- ##
2896 ## File substitutions. ##
2897 ## ------------------- ##"
2899 for ac_var
in $ac_subst_files
2901 eval ac_val
=\$
$ac_var
2903 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2905 $as_echo "$ac_var='\''$ac_val'\''"
2910 if test -s confdefs.h; then
2911 $as_echo "## ----------- ##
2918 test "$ac_signal" != 0 &&
2919 $as_echo "$as_me: caught signal $ac_signal"
2920 $as_echo "$as_me: exit $exit_status"
2922 rm -f core *.core core.conftest.* &&
2923 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2926 for ac_signal
in 1 2 13 15; do
2927 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2931 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2932 rm -f -r conftest
* confdefs.h
2934 $as_echo "/* confdefs.h */" > confdefs.h
2936 # Predefined preprocessor variables.
2938 cat >>confdefs.h
<<_ACEOF
2939 #define PACKAGE_NAME "$PACKAGE_NAME"
2942 cat >>confdefs.h
<<_ACEOF
2943 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2946 cat >>confdefs.h
<<_ACEOF
2947 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2950 cat >>confdefs.h
<<_ACEOF
2951 #define PACKAGE_STRING "$PACKAGE_STRING"
2954 cat >>confdefs.h
<<_ACEOF
2955 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2958 cat >>confdefs.h
<<_ACEOF
2959 #define PACKAGE_URL "$PACKAGE_URL"
2963 # Let the site file select an alternate cache file if it wants to.
2964 # Prefer an explicitly selected file to automatically selected ones.
2967 if test -n "$CONFIG_SITE"; then
2968 # We do not want a PATH search for config.site.
2969 case $CONFIG_SITE in #((
2970 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2971 */*) ac_site_file1
=$CONFIG_SITE;;
2972 *) ac_site_file1
=.
/$CONFIG_SITE;;
2974 elif test "x$prefix" != xNONE
; then
2975 ac_site_file1
=$prefix/share
/config.site
2976 ac_site_file2
=$prefix/etc
/config.site
2978 ac_site_file1
=$ac_default_prefix/share
/config.site
2979 ac_site_file2
=$ac_default_prefix/etc
/config.site
2981 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2983 test "x$ac_site_file" = xNONE
&& continue
2984 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2986 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2987 sed 's/^/| /' "$ac_site_file" >&5
2989 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2991 as_fn_error $?
"failed to load site script $ac_site_file
2992 See \`config.log' for more details" "$LINENO" 5; }
2996 if test -r "$cache_file"; then
2997 # Some versions of bash will fail to source /dev/null (special files
2998 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2999 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3001 $as_echo "$as_me: loading cache $cache_file" >&6;}
3003 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3004 *) .
"./$cache_file";;
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3009 $as_echo "$as_me: creating cache $cache_file" >&6;}
3013 as_fn_append ac_header_list
" stdlib.h"
3014 as_fn_append ac_header_list
" unistd.h"
3015 as_fn_append ac_header_list
" sys/param.h"
3016 # Check that the precious variables saved in the cache have kept the same
3018 ac_cache_corrupted
=false
3019 for ac_var
in $ac_precious_vars; do
3020 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3021 eval ac_new_set
=\
$ac_env_${ac_var}_set
3022 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3023 eval ac_new_val
=\
$ac_env_${ac_var}_value
3024 case $ac_old_set,$ac_new_set in
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3027 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3028 ac_cache_corrupted
=: ;;
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3031 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3032 ac_cache_corrupted
=: ;;
3035 if test "x$ac_old_val" != "x$ac_new_val"; then
3036 # differences in whitespace do not lead to failure.
3037 ac_old_val_w
=`echo x $ac_old_val`
3038 ac_new_val_w
=`echo x $ac_new_val`
3039 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3041 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3042 ac_cache_corrupted
=:
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3045 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3046 eval $ac_var=\
$ac_old_val
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3049 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3051 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3054 # Pass precious variables to config.status.
3055 if test "$ac_new_set" = set; then
3057 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3058 *) ac_arg
=$ac_var=$ac_new_val ;;
3060 case " $ac_configure_args " in
3061 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3062 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3066 if $ac_cache_corrupted; then
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3070 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3071 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3073 ## -------------------- ##
3074 ## Main body of script. ##
3075 ## -------------------- ##
3078 ac_cpp
='$CPP $CPPFLAGS'
3079 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3080 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3081 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3089 ac_config_headers
="$ac_config_headers config.h:config.in"
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3093 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3094 # Check whether --enable-maintainer-mode was given.
3095 if test "${enable_maintainer_mode+set}" = set; then :
3096 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3098 USE_MAINTAINER_MODE
=no
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3102 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3103 if test $USE_MAINTAINER_MODE = yes; then
3104 MAINTAINER_MODE_TRUE
=
3105 MAINTAINER_MODE_FALSE
='#'
3107 MAINTAINER_MODE_TRUE
='#'
3108 MAINTAINER_MODE_FALSE
=
3111 MAINT
=$MAINTAINER_MODE_TRUE
3116 ac_cpp
='$CPP $CPPFLAGS'
3117 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3118 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3119 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3120 if test -n "$ac_tool_prefix"; then
3121 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3122 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124 $as_echo_n "checking for $ac_word... " >&6; }
3125 if ${ac_cv_prog_CC+:} false
; then :
3126 $as_echo_n "(cached) " >&6
3128 if test -n "$CC"; then
3129 ac_cv_prog_CC
="$CC" # Let the user override the test.
3131 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3135 test -z "$as_dir" && as_dir
=.
3136 for ac_exec_ext
in '' $ac_executable_extensions; do
3137 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3138 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3149 if test -n "$CC"; then
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3151 $as_echo "$CC" >&6; }
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154 $as_echo "no" >&6; }
3159 if test -z "$ac_cv_prog_CC"; then
3161 # Extract the first word of "gcc", so it can be a program name with args.
3162 set dummy gcc
; ac_word
=$2
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3164 $as_echo_n "checking for $ac_word... " >&6; }
3165 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3166 $as_echo_n "(cached) " >&6
3168 if test -n "$ac_ct_CC"; then
3169 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3171 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3175 test -z "$as_dir" && as_dir
=.
3176 for ac_exec_ext
in '' $ac_executable_extensions; do
3177 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3178 ac_cv_prog_ac_ct_CC
="gcc"
3179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3188 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3189 if test -n "$ac_ct_CC"; then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3191 $as_echo "$ac_ct_CC" >&6; }
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3194 $as_echo "no" >&6; }
3197 if test "x$ac_ct_CC" = x
; then
3200 case $cross_compiling:$ac_tool_warned in
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3204 ac_tool_warned
=yes ;;
3212 if test -z "$CC"; then
3213 if test -n "$ac_tool_prefix"; then
3214 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3215 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3217 $as_echo_n "checking for $ac_word... " >&6; }
3218 if ${ac_cv_prog_CC+:} false
; then :
3219 $as_echo_n "(cached) " >&6
3221 if test -n "$CC"; then
3222 ac_cv_prog_CC
="$CC" # Let the user override the test.
3224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3228 test -z "$as_dir" && as_dir
=.
3229 for ac_exec_ext
in '' $ac_executable_extensions; do
3230 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3231 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3242 if test -n "$CC"; then
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3244 $as_echo "$CC" >&6; }
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3247 $as_echo "no" >&6; }
3253 if test -z "$CC"; then
3254 # Extract the first word of "cc", so it can be a program name with args.
3255 set dummy cc
; ac_word
=$2
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3257 $as_echo_n "checking for $ac_word... " >&6; }
3258 if ${ac_cv_prog_CC+:} false
; then :
3259 $as_echo_n "(cached) " >&6
3261 if test -n "$CC"; then
3262 ac_cv_prog_CC
="$CC" # Let the user override the test.
3265 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3269 test -z "$as_dir" && as_dir
=.
3270 for ac_exec_ext
in '' $ac_executable_extensions; do
3271 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3272 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3273 ac_prog_rejected
=yes
3277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3284 if test $ac_prog_rejected = yes; then
3285 # We found a bogon in the path, so make sure we never use it.
3286 set dummy
$ac_cv_prog_CC
3288 if test $# != 0; then
3289 # We chose a different compiler from the bogus one.
3290 # However, it has the same basename, so the bogon will be chosen
3291 # first if we set CC to just the basename; use the full file name.
3293 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3299 if test -n "$CC"; then
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3301 $as_echo "$CC" >&6; }
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304 $as_echo "no" >&6; }
3309 if test -z "$CC"; then
3310 if test -n "$ac_tool_prefix"; then
3311 for ac_prog
in cl.exe
3313 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3314 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3316 $as_echo_n "checking for $ac_word... " >&6; }
3317 if ${ac_cv_prog_CC+:} false
; then :
3318 $as_echo_n "(cached) " >&6
3320 if test -n "$CC"; then
3321 ac_cv_prog_CC
="$CC" # Let the user override the test.
3323 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3327 test -z "$as_dir" && as_dir
=.
3328 for ac_exec_ext
in '' $ac_executable_extensions; do
3329 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3330 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3341 if test -n "$CC"; then
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3343 $as_echo "$CC" >&6; }
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3346 $as_echo "no" >&6; }
3350 test -n "$CC" && break
3353 if test -z "$CC"; then
3355 for ac_prog
in cl.exe
3357 # Extract the first word of "$ac_prog", so it can be a program name with args.
3358 set dummy
$ac_prog; ac_word
=$2
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3360 $as_echo_n "checking for $ac_word... " >&6; }
3361 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3362 $as_echo_n "(cached) " >&6
3364 if test -n "$ac_ct_CC"; then
3365 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3367 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3371 test -z "$as_dir" && as_dir
=.
3372 for ac_exec_ext
in '' $ac_executable_extensions; do
3373 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3374 ac_cv_prog_ac_ct_CC
="$ac_prog"
3375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3384 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3385 if test -n "$ac_ct_CC"; then
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3387 $as_echo "$ac_ct_CC" >&6; }
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3390 $as_echo "no" >&6; }
3394 test -n "$ac_ct_CC" && break
3397 if test "x$ac_ct_CC" = x
; then
3400 case $cross_compiling:$ac_tool_warned in
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3404 ac_tool_warned
=yes ;;
3413 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3415 as_fn_error $?
"no acceptable C compiler found in \$PATH
3416 See \`config.log' for more details" "$LINENO" 5; }
3418 # Provide some information about the compiler.
3419 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3422 for ac_option
in --version -v -V -qversion; do
3423 { { ac_try
="$ac_compiler $ac_option >&5"
3425 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3426 *) ac_try_echo=$ac_try;;
3428 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3429 $as_echo "$ac_try_echo"; } >&5
3430 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3432 if test -s conftest.err; then
3434 ... rest of stderr output deleted ...
3435 10q' conftest.err >conftest.er1
3436 cat conftest.er1 >&5
3438 rm -f conftest.er1 conftest.err
3439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3440 test $ac_status = 0; }
3443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3444 /* end confdefs.h. */
3454 ac_clean_files_save=$ac_clean_files
3455 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3456 # Try to create an executable without -o first, disregard a.out.
3457 # It will help us diagnose broken compilers, and finding out an intuition
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3460 $as_echo_n "checking whether the C compiler works... " >&6; }
3461 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3463 # The possible output files:
3464 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3467 for ac_file in $ac_files
3470 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3471 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3476 if { { ac_try="$ac_link_default"
3478 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3479 *) ac_try_echo
=$ac_try;;
3481 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3482 $as_echo "$ac_try_echo"; } >&5
3483 (eval "$ac_link_default") 2>&5
3485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3486 test $ac_status = 0; }; then :
3487 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3488 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3489 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3490 # so that the user can short-circuit this test for compilers unknown to
3492 for ac_file
in $ac_files ''
3494 test -f "$ac_file" ||
continue
3496 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3499 # We found the default executable, but exeext='' is most
3503 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3505 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3507 # We set ac_cv_exeext here because the later test for it is not
3508 # safe: cross compilers may not add the suffix if given an `-o'
3509 # argument, so we may need to know it at that point already.
3510 # Even if this section looks crufty: it has the advantage of
3517 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3522 if test -z "$ac_file"; then :
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3524 $as_echo "no" >&6; }
3525 $as_echo "$as_me: failed program was:" >&5
3526 sed 's/^/| /' conftest.
$ac_ext >&5
3528 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3530 as_fn_error
77 "C compiler cannot create executables
3531 See \`config.log' for more details" "$LINENO" 5; }
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3534 $as_echo "yes" >&6; }
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3537 $as_echo_n "checking for C compiler default output file name... " >&6; }
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3539 $as_echo "$ac_file" >&6; }
3540 ac_exeext
=$ac_cv_exeext
3542 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3543 ac_clean_files
=$ac_clean_files_save
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3545 $as_echo_n "checking for suffix of executables... " >&6; }
3546 if { { ac_try
="$ac_link"
3548 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3552 $as_echo "$ac_try_echo"; } >&5
3553 (eval "$ac_link") 2>&5
3555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3556 test $ac_status = 0; }; then :
3557 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3558 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3559 # work properly (i.e., refer to `conftest.exe'), while it won't with
3561 for ac_file
in conftest.exe conftest conftest.
*; do
3562 test -f "$ac_file" ||
continue
3564 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3565 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3571 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3573 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3574 See \`config.log' for more details" "$LINENO" 5; }
3576 rm -f conftest conftest
$ac_cv_exeext
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3578 $as_echo "$ac_cv_exeext" >&6; }
3580 rm -f conftest.
$ac_ext
3581 EXEEXT
=$ac_cv_exeext
3583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3584 /* end confdefs.h. */
3589 FILE *f = fopen ("conftest.out", "w");
3590 return ferror (f) || fclose (f) != 0;
3596 ac_clean_files
="$ac_clean_files conftest.out"
3597 # Check that the compiler produces executables we can run. If not, either
3598 # the compiler is broken, or we cross compile.
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3600 $as_echo_n "checking whether we are cross compiling... " >&6; }
3601 if test "$cross_compiling" != yes; then
3602 { { ac_try
="$ac_link"
3604 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3608 $as_echo "$ac_try_echo"; } >&5
3609 (eval "$ac_link") 2>&5
3611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3612 test $ac_status = 0; }
3613 if { ac_try='./conftest$ac_cv_exeext'
3614 { { case "(($ac_try" in
3615 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3616 *) ac_try_echo
=$ac_try;;
3618 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3619 $as_echo "$ac_try_echo"; } >&5
3620 (eval "$ac_try") 2>&5
3622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3623 test $ac_status = 0; }; }; then
3626 if test "$cross_compiling" = maybe
; then
3629 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3630 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3631 as_fn_error $?
"cannot run C compiled programs.
3632 If you meant to cross compile, use \`--host'.
3633 See \`config.log' for more details" "$LINENO" 5; }
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3638 $as_echo "$cross_compiling" >&6; }
3640 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3641 ac_clean_files
=$ac_clean_files_save
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3643 $as_echo_n "checking for suffix of object files... " >&6; }
3644 if ${ac_cv_objext+:} false
; then :
3645 $as_echo_n "(cached) " >&6
3647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3648 /* end confdefs.h. */
3658 rm -f conftest.o conftest.obj
3659 if { { ac_try
="$ac_compile"
3661 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3662 *) ac_try_echo=$ac_try;;
3664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3665 $as_echo "$ac_try_echo"; } >&5
3666 (eval "$ac_compile") 2>&5
3668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3669 test $ac_status = 0; }; then :
3670 for ac_file in conftest.o conftest.obj conftest.*; do
3671 test -f "$ac_file" || continue;
3673 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3674 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3679 $as_echo "$as_me: failed program was:" >&5
3680 sed 's/^/| /' conftest.$ac_ext >&5
3682 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3683 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3684 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3685 See \
`config.log' for more details" "$LINENO" 5; }
3687 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3690 $as_echo "$ac_cv_objext" >&6; }
3691 OBJEXT=$ac_cv_objext
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3694 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3695 if ${ac_cv_c_compiler_gnu+:} false; then :
3696 $as_echo_n "(cached) " >&6
3698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699 /* end confdefs.h. */
3712 if ac_fn_c_try_compile "$LINENO"; then :
3717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3718 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3722 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3723 if test $ac_compiler_gnu = yes; then
3728 ac_test_CFLAGS=${CFLAGS+set}
3729 ac_save_CFLAGS=$CFLAGS
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3731 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3732 if ${ac_cv_prog_cc_g+:} false; then :
3733 $as_echo_n "(cached) " >&6
3735 ac_save_c_werror_flag=$ac_c_werror_flag
3736 ac_c_werror_flag=yes
3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h. */
3750 if ac_fn_c_try_compile "$LINENO"; then :
3754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3755 /* end confdefs.h. */
3765 if ac_fn_c_try_compile "$LINENO"; then :
3768 ac_c_werror_flag=$ac_save_c_werror_flag
3770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3771 /* end confdefs.h. */
3781 if ac_fn_c_try_compile "$LINENO"; then :
3784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3789 ac_c_werror_flag=$ac_save_c_werror_flag
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3792 $as_echo "$ac_cv_prog_cc_g" >&6; }
3793 if test "$ac_test_CFLAGS" = set; then
3794 CFLAGS=$ac_save_CFLAGS
3795 elif test $ac_cv_prog_cc_g = yes; then
3796 if test "$GCC" = yes; then
3802 if test "$GCC" = yes; then
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3809 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3810 if ${ac_cv_prog_cc_c89+:} false; then :
3811 $as_echo_n "(cached) " >&6
3813 ac_cv_prog_cc_c89=no
3815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816 /* end confdefs.h. */
3820 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3821 struct buf { int x; };
3822 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3823 static char *e (p, i)
3829 static char *f (char * (*g) (char **, int), char **p, ...)
3834 s = g (p, va_arg (v,int));
3839 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3840 function prototypes and stuff, but not '\xHH' hex character constants.
3841 These don't provoke an error unfortunately, instead are silently treated
3842 as 'x'. The following induces an error, until -std is added to get
3843 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3844 array size at least. It's necessary to write '\x00'==0 to get something
3845 that's true only with -std. */
3846 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3848 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3849 inside strings and character constants. */
3851 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3853 int test (int i, double x);
3854 struct s1 {int (*f) (int a);};
3855 struct s2 {int (*f) (double a);};
3856 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3862 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3867 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3868 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3870 CC="$ac_save_CC $ac_arg"
3871 if ac_fn_c_try_compile "$LINENO"; then :
3872 ac_cv_prog_cc_c89=$ac_arg
3874 rm -f core conftest.err conftest.$ac_objext
3875 test "x$ac_cv_prog_cc_c89" != "xno" && break
3877 rm -f conftest.$ac_ext
3882 case "x$ac_cv_prog_cc_c89" in
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3885 $as_echo "none needed" >&6; } ;;
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3888 $as_echo "unsupported" >&6; } ;;
3890 CC="$CC $ac_cv_prog_cc_c89"
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3892 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3894 if test "x$ac_cv_prog_cc_c89" != xno; then :
3899 ac_cpp='$CPP $CPPFLAGS'
3900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3905 ac_cpp='$CXXCPP $CPPFLAGS'
3906 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3907 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3908 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3909 if test -z "$CXX"; then
3910 if test -n "$CCC"; then
3913 if test -n "$ac_tool_prefix"; then
3914 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3916 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3917 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3919 $as_echo_n "checking for $ac_word... " >&6; }
3920 if ${ac_cv_prog_CXX+:} false; then :
3921 $as_echo_n "(cached) " >&6
3923 if test -n "$CXX"; then
3924 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930 test -z "$as_dir" && as_dir=.
3931 for ac_exec_ext in '' $ac_executable_extensions; do
3932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3933 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3944 if test -n "$CXX"; then
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3946 $as_echo "$CXX" >&6; }
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3949 $as_echo "no" >&6; }
3953 test -n "$CXX" && break
3956 if test -z "$CXX"; then
3958 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3960 # Extract the first word of "$ac_prog", so it can be a program name with args.
3961 set dummy $ac_prog; ac_word=$2
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3963 $as_echo_n "checking for $ac_word... " >&6; }
3964 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3965 $as_echo_n "(cached) " >&6
3967 if test -n "$ac_ct_CXX"; then
3968 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 test -z "$as_dir" && as_dir=.
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3977 ac_cv_prog_ac_ct_CXX="$ac_prog"
3978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3987 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3988 if test -n "$ac_ct_CXX"; then
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3990 $as_echo "$ac_ct_CXX" >&6; }
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3993 $as_echo "no" >&6; }
3997 test -n "$ac_ct_CXX" && break
4000 if test "x$ac_ct_CXX" = x; then
4003 case $cross_compiling:$ac_tool_warned in
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4006 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4007 ac_tool_warned=yes ;;
4015 # Provide some information about the compiler.
4016 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4019 for ac_option in --version -v -V -qversion; do
4020 { { ac_try="$ac_compiler $ac_option >&5"
4022 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4023 *) ac_try_echo
=$ac_try;;
4025 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4026 $as_echo "$ac_try_echo"; } >&5
4027 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4029 if test -s conftest.err
; then
4031 ... rest of stderr output deleted ...
4032 10q' conftest.err
>conftest.er1
4033 cat conftest.er1
>&5
4035 rm -f conftest.er1 conftest.err
4036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4037 test $ac_status = 0; }
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4041 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4042 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4043 $as_echo_n "(cached) " >&6
4045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4059 if ac_fn_cxx_try_compile
"$LINENO"; then :
4064 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4065 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4069 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4070 if test $ac_compiler_gnu = yes; then
4075 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4076 ac_save_CXXFLAGS
=$CXXFLAGS
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4078 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4079 if ${ac_cv_prog_cxx_g+:} false
; then :
4080 $as_echo_n "(cached) " >&6
4082 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4083 ac_cxx_werror_flag
=yes
4086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4097 if ac_fn_cxx_try_compile
"$LINENO"; then :
4098 ac_cv_prog_cxx_g
=yes
4101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h. */
4112 if ac_fn_cxx_try_compile
"$LINENO"; then :
4115 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4128 if ac_fn_cxx_try_compile
"$LINENO"; then :
4129 ac_cv_prog_cxx_g
=yes
4131 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4133 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4135 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4136 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4139 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4140 if test "$ac_test_CXXFLAGS" = set; then
4141 CXXFLAGS
=$ac_save_CXXFLAGS
4142 elif test $ac_cv_prog_cxx_g = yes; then
4143 if test "$GXX" = yes; then
4149 if test "$GXX" = yes; then
4156 ac_cpp
='$CPP $CPPFLAGS'
4157 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4158 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4159 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4164 ac_cpp
='$CPP $CPPFLAGS'
4165 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4166 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4167 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4169 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4170 # On Suns, sometimes $CPP names a directory.
4171 if test -n "$CPP" && test -d "$CPP"; then
4174 if test -z "$CPP"; then
4175 if ${ac_cv_prog_CPP+:} false
; then :
4176 $as_echo_n "(cached) " >&6
4178 # Double quotes because CPP needs to be expanded
4179 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4182 for ac_c_preproc_warn_flag
in '' yes
4184 # Use a header file that comes with gcc, so configuring glibc
4185 # with a fresh cross-compiler works.
4186 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4187 # <limits.h> exists even on freestanding compilers.
4188 # On the NeXT, cc -E runs the code through the compiler's parser,
4189 # not just through cpp. "Syntax error" is here to catch this case.
4190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4191 /* end confdefs.h. */
4193 # include <limits.h>
4195 # include <assert.h>
4199 if ac_fn_c_try_cpp
"$LINENO"; then :
4202 # Broken: fails on valid input.
4205 rm -f conftest.err conftest.i conftest.
$ac_ext
4207 # OK, works on sane cases. Now check whether nonexistent headers
4208 # can be detected and how.
4209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4210 /* end confdefs.h. */
4211 #include <ac_nonexistent.h>
4213 if ac_fn_c_try_cpp
"$LINENO"; then :
4214 # Broken: success on invalid input.
4217 # Passes both tests.
4221 rm -f conftest.err conftest.i conftest.
$ac_ext
4224 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4225 rm -f conftest.i conftest.err conftest.
$ac_ext
4226 if $ac_preproc_ok; then :
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4239 $as_echo "$CPP" >&6; }
4241 for ac_c_preproc_warn_flag
in '' yes
4243 # Use a header file that comes with gcc, so configuring glibc
4244 # with a fresh cross-compiler works.
4245 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4246 # <limits.h> exists even on freestanding compilers.
4247 # On the NeXT, cc -E runs the code through the compiler's parser,
4248 # not just through cpp. "Syntax error" is here to catch this case.
4249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4250 /* end confdefs.h. */
4252 # include <limits.h>
4254 # include <assert.h>
4258 if ac_fn_c_try_cpp
"$LINENO"; then :
4261 # Broken: fails on valid input.
4264 rm -f conftest.err conftest.i conftest.
$ac_ext
4266 # OK, works on sane cases. Now check whether nonexistent headers
4267 # can be detected and how.
4268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h. */
4270 #include <ac_nonexistent.h>
4272 if ac_fn_c_try_cpp
"$LINENO"; then :
4273 # Broken: success on invalid input.
4276 # Passes both tests.
4280 rm -f conftest.err conftest.i conftest.
$ac_ext
4283 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4284 rm -f conftest.i conftest.err conftest.
$ac_ext
4285 if $ac_preproc_ok; then :
4288 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4290 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4291 See \`config.log' for more details" "$LINENO" 5; }
4295 ac_cpp
='$CPP $CPPFLAGS'
4296 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4297 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4298 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4302 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4303 if ${ac_cv_path_GREP+:} false
; then :
4304 $as_echo_n "(cached) " >&6
4306 if test -z "$GREP"; then
4307 ac_path_GREP_found
=false
4308 # Loop through the user's path and test for each of PROGNAME-LIST
4309 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4310 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4313 test -z "$as_dir" && as_dir
=.
4314 for ac_prog
in grep ggrep
; do
4315 for ac_exec_ext
in '' $ac_executable_extensions; do
4316 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4317 as_fn_executable_p
"$ac_path_GREP" ||
continue
4318 # Check for GNU ac_path_GREP and select it if it is found.
4319 # Check for GNU $ac_path_GREP
4320 case `"$ac_path_GREP" --version 2>&1` in
4322 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4325 $as_echo_n 0123456789 >"conftest.in"
4328 cat "conftest.in" "conftest.in" >"conftest.tmp"
4329 mv "conftest.tmp" "conftest.in"
4330 cp "conftest.in" "conftest.nl"
4331 $as_echo 'GREP' >> "conftest.nl"
4332 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4333 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4334 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4335 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4336 # Best one so far, save it but keep looking for a better one
4337 ac_cv_path_GREP
="$ac_path_GREP"
4338 ac_path_GREP_max
=$ac_count
4340 # 10*(2^10) chars as input seems more than enough
4341 test $ac_count -gt 10 && break
4343 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4346 $ac_path_GREP_found && break 3
4351 if test -z "$ac_cv_path_GREP"; then
4352 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4355 ac_cv_path_GREP
=$GREP
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4360 $as_echo "$ac_cv_path_GREP" >&6; }
4361 GREP
="$ac_cv_path_GREP"
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4365 $as_echo_n "checking for egrep... " >&6; }
4366 if ${ac_cv_path_EGREP+:} false
; then :
4367 $as_echo_n "(cached) " >&6
4369 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4370 then ac_cv_path_EGREP
="$GREP -E"
4372 if test -z "$EGREP"; then
4373 ac_path_EGREP_found
=false
4374 # Loop through the user's path and test for each of PROGNAME-LIST
4375 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4376 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4379 test -z "$as_dir" && as_dir
=.
4380 for ac_prog
in egrep; do
4381 for ac_exec_ext
in '' $ac_executable_extensions; do
4382 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4383 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4384 # Check for GNU ac_path_EGREP and select it if it is found.
4385 # Check for GNU $ac_path_EGREP
4386 case `"$ac_path_EGREP" --version 2>&1` in
4388 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4391 $as_echo_n 0123456789 >"conftest.in"
4394 cat "conftest.in" "conftest.in" >"conftest.tmp"
4395 mv "conftest.tmp" "conftest.in"
4396 cp "conftest.in" "conftest.nl"
4397 $as_echo 'EGREP' >> "conftest.nl"
4398 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4399 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4400 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4401 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4402 # Best one so far, save it but keep looking for a better one
4403 ac_cv_path_EGREP
="$ac_path_EGREP"
4404 ac_path_EGREP_max
=$ac_count
4406 # 10*(2^10) chars as input seems more than enough
4407 test $ac_count -gt 10 && break
4409 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4412 $ac_path_EGREP_found && break 3
4417 if test -z "$ac_cv_path_EGREP"; then
4418 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4421 ac_cv_path_EGREP
=$EGREP
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4427 $as_echo "$ac_cv_path_EGREP" >&6; }
4428 EGREP
="$ac_cv_path_EGREP"
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4432 $as_echo_n "checking for ANSI C header files... " >&6; }
4433 if ${ac_cv_header_stdc+:} false
; then :
4434 $as_echo_n "(cached) " >&6
4436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h. */
4451 if ac_fn_c_try_compile
"$LINENO"; then :
4452 ac_cv_header_stdc
=yes
4454 ac_cv_header_stdc
=no
4456 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4458 if test $ac_cv_header_stdc = yes; then
4459 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4461 /* end confdefs.h. */
4465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4466 $EGREP "memchr" >/dev
/null
2>&1; then :
4469 ac_cv_header_stdc
=no
4475 if test $ac_cv_header_stdc = yes; then
4476 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4478 /* end confdefs.h. */
4482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4483 $EGREP "free" >/dev
/null
2>&1; then :
4486 ac_cv_header_stdc
=no
4492 if test $ac_cv_header_stdc = yes; then
4493 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4494 if test "$cross_compiling" = yes; then :
4497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4498 /* end confdefs.h. */
4501 #if ((' ' & 0x0FF) == 0x020)
4502 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4503 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4505 # define ISLOWER(c) \
4506 (('a' <= (c) && (c) <= 'i') \
4507 || ('j' <= (c) && (c) <= 'r') \
4508 || ('s' <= (c) && (c) <= 'z'))
4509 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4512 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4517 for (i = 0; i < 256; i++)
4518 if (XOR (islower (i), ISLOWER (i))
4519 || toupper (i) != TOUPPER (i))
4524 if ac_fn_c_try_run
"$LINENO"; then :
4527 ac_cv_header_stdc
=no
4529 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4530 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4536 $as_echo "$ac_cv_header_stdc" >&6; }
4537 if test $ac_cv_header_stdc = yes; then
4539 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4543 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4544 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4545 inttypes.h stdint.h unistd.h
4547 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4548 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4550 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4551 cat >>confdefs.h
<<_ACEOF
4552 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4561 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4562 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4569 if test "$MINIX" = yes; then
4571 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4574 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4577 $as_echo "#define _MINIX 1" >>confdefs.h
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4583 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4584 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4585 $as_echo_n "(cached) " >&6
4587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4588 /* end confdefs.h. */
4590 # define __EXTENSIONS__ 1
4591 $ac_includes_default
4600 if ac_fn_c_try_compile
"$LINENO"; then :
4601 ac_cv_safe_to_define___extensions__
=yes
4603 ac_cv_safe_to_define___extensions__
=no
4605 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4608 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4609 test $ac_cv_safe_to_define___extensions__ = yes &&
4610 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4612 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4614 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4616 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4618 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4622 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4623 if test -f "$ac_dir/install-sh"; then
4625 ac_install_sh
="$ac_aux_dir/install-sh -c"
4627 elif test -f "$ac_dir/install.sh"; then
4629 ac_install_sh
="$ac_aux_dir/install.sh -c"
4631 elif test -f "$ac_dir/shtool"; then
4633 ac_install_sh
="$ac_aux_dir/shtool install -c"
4637 if test -z "$ac_aux_dir"; then
4638 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4641 # These three variables are undocumented and unsupported,
4642 # and are intended to be withdrawn in a future Autoconf release.
4643 # They can cause serious problems if a builder's source tree is in a directory
4644 # whose full name contains unusual characters.
4645 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4646 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4647 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4650 # Make sure we can run config.sub.
4651 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4652 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4655 $as_echo_n "checking build system type... " >&6; }
4656 if ${ac_cv_build+:} false
; then :
4657 $as_echo_n "(cached) " >&6
4659 ac_build_alias
=$build_alias
4660 test "x$ac_build_alias" = x
&&
4661 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4662 test "x$ac_build_alias" = x
&&
4663 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4664 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4665 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4669 $as_echo "$ac_cv_build" >&6; }
4670 case $ac_cv_build in
4672 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4675 ac_save_IFS
=$IFS; IFS
='-'
4681 # Remember, the first character of IFS is used to create $*,
4682 # except with old shells:
4685 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4689 $as_echo_n "checking host system type... " >&6; }
4690 if ${ac_cv_host+:} false
; then :
4691 $as_echo_n "(cached) " >&6
4693 if test "x$host_alias" = x
; then
4694 ac_cv_host
=$ac_cv_build
4696 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4697 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4702 $as_echo "$ac_cv_host" >&6; }
4705 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4708 ac_save_IFS
=$IFS; IFS
='-'
4714 # Remember, the first character of IFS is used to create $*,
4715 # except with old shells:
4718 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4722 $as_echo_n "checking target system type... " >&6; }
4723 if ${ac_cv_target+:} false
; then :
4724 $as_echo_n "(cached) " >&6
4726 if test "x$target_alias" = x
; then
4727 ac_cv_target
=$ac_cv_host
4729 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4730 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4735 $as_echo "$ac_cv_target" >&6; }
4736 case $ac_cv_target in
4738 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4740 target
=$ac_cv_target
4741 ac_save_IFS
=$IFS; IFS
='-'
4747 # Remember, the first character of IFS is used to create $*,
4748 # except with old shells:
4751 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4754 # The aliases save the names the user supplied, while $host etc.
4755 # will get canonicalized.
4756 test -n "$target_alias" &&
4757 test "$program_prefix$program_suffix$program_transform_name" = \
4759 program_prefix
=${target_alias}-
4761 # The tests for host and target for $enable_largefile require
4766 # As the $enable_largefile decision depends on --enable-plugins we must set it
4767 # even in directories otherwise not depending on the $plugins option.
4771 for ac_header
in dlfcn.h
4773 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4775 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
4776 cat >>confdefs.h
<<_ACEOF
4777 #define HAVE_DLFCN_H 1
4784 for ac_header
in windows.h
4786 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4788 if test "x$ac_cv_header_windows_h" = xyes
; then :
4789 cat >>confdefs.h
<<_ACEOF
4790 #define HAVE_WINDOWS_H 1
4798 # Check whether --enable-plugins was given.
4799 if test "${enable_plugins+set}" = set; then :
4800 enableval
=$enable_plugins; case "${enableval}" in
4803 if test "$maybe_plugins" != "yes" ; then
4804 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4808 plugins
=$maybe_plugins
4812 if test "$plugins" = "yes"; then
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4814 $as_echo_n "checking for library containing dlsym... " >&6; }
4815 if ${ac_cv_search_dlsym+:} false
; then :
4816 $as_echo_n "(cached) " >&6
4818 ac_func_search_save_LIBS
=$LIBS
4819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4820 /* end confdefs.h. */
4822 /* Override any GCC internal prototype to avoid an error.
4823 Use char because int might match the return type of a GCC
4824 builtin and then its argument prototype would still apply. */
4837 for ac_lib
in '' dl
; do
4838 if test -z "$ac_lib"; then
4839 ac_res
="none required"
4842 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4844 if ac_fn_c_try_link
"$LINENO"; then :
4845 ac_cv_search_dlsym
=$ac_res
4847 rm -f core conftest.err conftest.
$ac_objext \
4849 if ${ac_cv_search_dlsym+:} false
; then :
4853 if ${ac_cv_search_dlsym+:} false
; then :
4856 ac_cv_search_dlsym
=no
4859 LIBS
=$ac_func_search_save_LIBS
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4862 $as_echo "$ac_cv_search_dlsym" >&6; }
4863 ac_res
=$ac_cv_search_dlsym
4864 if test "$ac_res" != no
; then :
4865 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4873 sparc-
*-solaris*|i?
86-*-solaris*)
4874 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
4875 # were mutually exclusive until Solaris 11.3. Without procfs support,
4876 # the bfd/ elf module cannot provide certain routines such as
4877 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
4878 # explicitly requested large-file support through the
4879 # --enable-largefile switch, disable large-file support in favor of
4882 # Check if <sys/procfs.h> is incompatible with large-file support.
4883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4884 /* end confdefs.h. */
4885 #define _FILE_OFFSET_BITS 64
4886 #define _STRUCTURED_PROC 1
4887 #include <sys/procfs.h>
4896 if ac_fn_c_try_compile
"$LINENO"; then :
4897 acx_cv_procfs_lfs
=yes
4899 acx_cv_procfs_lfs
=no
4901 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4903 # Forcefully disable large-file support only if necessary, gdb is in
4905 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
4906 -a -d $srcdir/..
/gdb
-a "$enable_gdb" != no
; then
4907 : ${enable_largefile="no"}
4908 if test "$plugins" = yes; then
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
4910 plugin support disabled; require large-file support which is incompatible with GDB." >&5
4911 $as_echo "$as_me: WARNING:
4912 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
4917 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
4918 # benefit of g++ 9+ which predefines it on Solaris.
4919 if test "$enable_largefile" = no
; then
4920 LARGEFILE_CPPFLAGS
="-U_FILE_OFFSET_BITS"
4926 # Check whether --enable-largefile was given.
4927 if test "${enable_largefile+set}" = set; then :
4928 enableval
=$enable_largefile;
4931 if test "$enable_largefile" != no
; then
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4934 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4935 if ${ac_cv_sys_largefile_CC+:} false
; then :
4936 $as_echo_n "(cached) " >&6
4938 ac_cv_sys_largefile_CC
=no
4939 if test "$GCC" != yes; then
4942 # IRIX 6.2 and later do not support large files by default,
4943 # so use the C compiler's -n32 option if that helps.
4944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4945 /* end confdefs.h. */
4946 #include <sys/types.h>
4947 /* Check that off_t can represent 2**63 - 1 correctly.
4948 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4949 since some C++ compilers masquerading as C compilers
4950 incorrectly reject 9223372036854775807. */
4951 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4952 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4953 && LARGE_OFF_T % 2147483647 == 1)
4963 if ac_fn_c_try_compile
"$LINENO"; then :
4966 rm -f core conftest.err conftest.
$ac_objext
4968 if ac_fn_c_try_compile
"$LINENO"; then :
4969 ac_cv_sys_largefile_CC
=' -n32'; break
4971 rm -f core conftest.err conftest.
$ac_objext
4975 rm -f conftest.
$ac_ext
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4979 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4980 if test "$ac_cv_sys_largefile_CC" != no
; then
4981 CC
=$CC$ac_cv_sys_largefile_CC
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4985 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4986 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4987 $as_echo_n "(cached) " >&6
4990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4991 /* end confdefs.h. */
4992 #include <sys/types.h>
4993 /* Check that off_t can represent 2**63 - 1 correctly.
4994 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4995 since some C++ compilers masquerading as C compilers
4996 incorrectly reject 9223372036854775807. */
4997 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4998 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4999 && LARGE_OFF_T % 2147483647 == 1)
5009 if ac_fn_c_try_compile
"$LINENO"; then :
5010 ac_cv_sys_file_offset_bits
=no
; break
5012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5014 /* end confdefs.h. */
5015 #define _FILE_OFFSET_BITS 64
5016 #include <sys/types.h>
5017 /* Check that off_t can represent 2**63 - 1 correctly.
5018 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5019 since some C++ compilers masquerading as C compilers
5020 incorrectly reject 9223372036854775807. */
5021 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5022 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5023 && LARGE_OFF_T % 2147483647 == 1)
5033 if ac_fn_c_try_compile
"$LINENO"; then :
5034 ac_cv_sys_file_offset_bits
=64; break
5036 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5037 ac_cv_sys_file_offset_bits
=unknown
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5042 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5043 case $ac_cv_sys_file_offset_bits in #(
5046 cat >>confdefs.h
<<_ACEOF
5047 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5052 if test $ac_cv_sys_file_offset_bits = unknown
; then
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5054 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5055 if ${ac_cv_sys_large_files+:} false
; then :
5056 $as_echo_n "(cached) " >&6
5059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5060 /* end confdefs.h. */
5061 #include <sys/types.h>
5062 /* Check that off_t can represent 2**63 - 1 correctly.
5063 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5064 since some C++ compilers masquerading as C compilers
5065 incorrectly reject 9223372036854775807. */
5066 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5067 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5068 && LARGE_OFF_T % 2147483647 == 1)
5078 if ac_fn_c_try_compile
"$LINENO"; then :
5079 ac_cv_sys_large_files
=no
; break
5081 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5083 /* end confdefs.h. */
5084 #define _LARGE_FILES 1
5085 #include <sys/types.h>
5086 /* Check that off_t can represent 2**63 - 1 correctly.
5087 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5088 since some C++ compilers masquerading as C compilers
5089 incorrectly reject 9223372036854775807. */
5090 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5091 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5092 && LARGE_OFF_T % 2147483647 == 1)
5102 if ac_fn_c_try_compile
"$LINENO"; then :
5103 ac_cv_sys_large_files
=1; break
5105 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5106 ac_cv_sys_large_files
=unknown
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5111 $as_echo "$ac_cv_sys_large_files" >&6; }
5112 case $ac_cv_sys_large_files in #(
5115 cat >>confdefs.h
<<_ACEOF
5116 #define _LARGE_FILES $ac_cv_sys_large_files
5127 # Expand $ac_aux_dir to an absolute path.
5128 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
5130 if test x
"${install_sh+set}" != xset
; then
5133 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
5135 install_sh
="\${SHELL} $am_aux_dir/install-sh"
5139 # Installed binaries are usually stripped using 'strip' when the user
5140 # run "make install-strip". However 'strip' might not be the right
5141 # tool to use in cross-compilation environments, therefore Automake
5142 # will honor the 'STRIP' environment variable to overrule this program.
5143 if test "$cross_compiling" != no
; then
5144 if test -n "$ac_tool_prefix"; then
5145 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5146 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5148 $as_echo_n "checking for $ac_word... " >&6; }
5149 if ${ac_cv_prog_STRIP+:} false
; then :
5150 $as_echo_n "(cached) " >&6
5152 if test -n "$STRIP"; then
5153 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
5155 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5159 test -z "$as_dir" && as_dir
=.
5160 for ac_exec_ext
in '' $ac_executable_extensions; do
5161 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5162 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
5163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5172 STRIP
=$ac_cv_prog_STRIP
5173 if test -n "$STRIP"; then
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5175 $as_echo "$STRIP" >&6; }
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5178 $as_echo "no" >&6; }
5183 if test -z "$ac_cv_prog_STRIP"; then
5185 # Extract the first word of "strip", so it can be a program name with args.
5186 set dummy strip
; ac_word
=$2
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5188 $as_echo_n "checking for $ac_word... " >&6; }
5189 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
5190 $as_echo_n "(cached) " >&6
5192 if test -n "$ac_ct_STRIP"; then
5193 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5195 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5199 test -z "$as_dir" && as_dir
=.
5200 for ac_exec_ext
in '' $ac_executable_extensions; do
5201 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5202 ac_cv_prog_ac_ct_STRIP
="strip"
5203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5212 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5213 if test -n "$ac_ct_STRIP"; then
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5215 $as_echo "$ac_ct_STRIP" >&6; }
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5218 $as_echo "no" >&6; }
5221 if test "x$ac_ct_STRIP" = x
; then
5224 case $cross_compiling:$ac_tool_warned in
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5228 ac_tool_warned
=yes ;;
5233 STRIP
="$ac_cv_prog_STRIP"
5237 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
5241 for ac_dir
in ..
"$srcdir"/..
; do
5242 if test -f "$ac_dir/install-sh"; then
5244 ac_install_sh
="$ac_aux_dir/install-sh -c"
5246 elif test -f "$ac_dir/install.sh"; then
5248 ac_install_sh
="$ac_aux_dir/install.sh -c"
5250 elif test -f "$ac_dir/shtool"; then
5252 ac_install_sh
="$ac_aux_dir/shtool install -c"
5256 if test -z "$ac_aux_dir"; then
5257 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
5260 # These three variables are undocumented and unsupported,
5261 # and are intended to be withdrawn in a future Autoconf release.
5262 # They can cause serious problems if a builder's source tree is in a directory
5263 # whose full name contains unusual characters.
5264 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5265 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5266 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5270 # Set build, build_cpu, build_vendor and build_os.
5273 # Set host, host_cpu, host_vendor, and host_os.
5276 # Set target, target_cpu, target_vendor, and target_os.
5279 case ${build_alias} in
5280 "") build_noncanonical
=${build} ;;
5281 *) build_noncanonical
=${build_alias} ;;
5284 case ${host_alias} in
5285 "") host_noncanonical
=${build_noncanonical} ;;
5286 *) host_noncanonical
=${host_alias} ;;
5289 case ${target_alias} in
5290 "") target_noncanonical
=${host_noncanonical} ;;
5291 *) target_noncanonical
=${target_alias} ;;
5297 test "$program_prefix" != NONE
&&
5298 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
5299 # Use a double $ so make ignores it.
5300 test "$program_suffix" != NONE
&&
5301 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
5302 # Double any \ or $.
5303 # By default was `s,x,x', remove it if useless.
5304 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
5305 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
5308 # We require libtool to link with the in-tree libtool libraries
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5313 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5318 macro_version
='2.2.7a'
5319 macro_revision
='1.3134'
5333 ltmain
="$ac_aux_dir/ltmain.sh"
5335 # Backslashify metacharacters that are still active within
5336 # double-quoted strings.
5337 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
5339 # Same as above, but do not quote variable references.
5340 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
5342 # Sed substitution to delay expansion of an escaped shell variable in a
5343 # double_quote_subst'ed string.
5344 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
5346 # Sed substitution to delay expansion of an escaped single quote.
5347 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
5349 # Sed substitution to avoid accidental globbing in evaled expressions
5350 no_glob_subst
='s/\*/\\\*/g'
5352 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5353 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5354 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5357 $as_echo_n "checking how to print strings... " >&6; }
5358 # Test print first, because it will be a builtin if present.
5359 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5360 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5362 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5365 # Use this function as a fallback that always works.
5366 func_fallback_echo ()
5368 eval 'cat <<_LTECHO_EOF
5372 ECHO='func_fallback_echo
'
5375 # func_echo_all arg...
5376 # Invoke $ECHO with all args, space-separated.
5383 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5384 $as_echo "printf" >&6; } ;;
5385 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5386 $as_echo "print -r" >&6; } ;;
5387 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5388 $as_echo "cat" >&6; } ;;
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5405 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5406 if ${ac_cv_path_SED+:} false; then :
5407 $as_echo_n "(cached) " >&6
5409 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5410 for ac_i in 1 2 3 4 5 6 7; do
5411 ac_script="$ac_script$as_nl$ac_script"
5413 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5414 { ac_script=; unset ac_script;}
5415 if test -z "$SED"; then
5416 ac_path_SED_found=false
5417 # Loop through the user's path and
test for each of PROGNAME-LIST
5418 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5422 test -z "$as_dir" && as_dir
=.
5423 for ac_prog
in sed gsed
; do
5424 for ac_exec_ext
in '' $ac_executable_extensions; do
5425 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
5426 as_fn_executable_p
"$ac_path_SED" ||
continue
5427 # Check for GNU ac_path_SED and select it if it is found.
5428 # Check for GNU $ac_path_SED
5429 case `"$ac_path_SED" --version 2>&1` in
5431 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
5434 $as_echo_n 0123456789 >"conftest.in"
5437 cat "conftest.in" "conftest.in" >"conftest.tmp"
5438 mv "conftest.tmp" "conftest.in"
5439 cp "conftest.in" "conftest.nl"
5440 $as_echo '' >> "conftest.nl"
5441 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5442 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5443 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5444 if test $ac_count -gt ${ac_path_SED_max-0}; then
5445 # Best one so far, save it but keep looking for a better one
5446 ac_cv_path_SED
="$ac_path_SED"
5447 ac_path_SED_max
=$ac_count
5449 # 10*(2^10) chars as input seems more than enough
5450 test $ac_count -gt 10 && break
5452 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5455 $ac_path_SED_found && break 3
5460 if test -z "$ac_cv_path_SED"; then
5461 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5469 $as_echo "$ac_cv_path_SED" >&6; }
5470 SED
="$ac_cv_path_SED"
5473 test -z "$SED" && SED
=sed
5474 Xsed
="$SED -e 1s/^X//"
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5487 $as_echo_n "checking for fgrep... " >&6; }
5488 if ${ac_cv_path_FGREP+:} false
; then :
5489 $as_echo_n "(cached) " >&6
5491 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
5492 then ac_cv_path_FGREP
="$GREP -F"
5494 if test -z "$FGREP"; then
5495 ac_path_FGREP_found
=false
5496 # Loop through the user's path and test for each of PROGNAME-LIST
5497 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5498 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5501 test -z "$as_dir" && as_dir
=.
5502 for ac_prog
in fgrep
; do
5503 for ac_exec_ext
in '' $ac_executable_extensions; do
5504 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
5505 as_fn_executable_p
"$ac_path_FGREP" ||
continue
5506 # Check for GNU ac_path_FGREP and select it if it is found.
5507 # Check for GNU $ac_path_FGREP
5508 case `"$ac_path_FGREP" --version 2>&1` in
5510 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
5513 $as_echo_n 0123456789 >"conftest.in"
5516 cat "conftest.in" "conftest.in" >"conftest.tmp"
5517 mv "conftest.tmp" "conftest.in"
5518 cp "conftest.in" "conftest.nl"
5519 $as_echo 'FGREP' >> "conftest.nl"
5520 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5521 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5522 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5523 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5524 # Best one so far, save it but keep looking for a better one
5525 ac_cv_path_FGREP
="$ac_path_FGREP"
5526 ac_path_FGREP_max
=$ac_count
5528 # 10*(2^10) chars as input seems more than enough
5529 test $ac_count -gt 10 && break
5531 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5534 $ac_path_FGREP_found && break 3
5539 if test -z "$ac_cv_path_FGREP"; then
5540 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5543 ac_cv_path_FGREP
=$FGREP
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5549 $as_echo "$ac_cv_path_FGREP" >&6; }
5550 FGREP
="$ac_cv_path_FGREP"
5553 test -z "$GREP" && GREP
=grep
5573 # Check whether --with-gnu-ld was given.
5574 if test "${with_gnu_ld+set}" = set; then :
5575 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5581 if test "$GCC" = yes; then
5582 # Check if gcc -print-prog-name=ld gives a path.
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5584 $as_echo_n "checking for ld used by $CC... " >&6; }
5587 # gcc leaves a trailing carriage return which upsets mingw
5588 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5590 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5593 # Accept absolute paths.
5595 re_direlt
='/[^/][^/]*/\.\./'
5596 # Canonicalize the pathname of ld
5597 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5598 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
5599 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5601 test -z "$LD" && LD
="$ac_prog"
5604 # If it fails, then pretend we aren't using GCC.
5608 # If it is relative, then search for the first ld in PATH.
5612 elif test "$with_gnu_ld" = yes; then
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5614 $as_echo_n "checking for GNU ld... " >&6; }
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5617 $as_echo_n "checking for non-GNU ld... " >&6; }
5619 if ${lt_cv_path_LD+:} false
; then :
5620 $as_echo_n "(cached) " >&6
5622 if test -z "$LD"; then
5623 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5624 for ac_dir
in $PATH; do
5626 test -z "$ac_dir" && ac_dir
=.
5627 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5628 lt_cv_path_LD
="$ac_dir/$ac_prog"
5629 # Check to see if the program is GNU ld. I'd rather use --version,
5630 # but apparently some variants of GNU ld only accept -v.
5631 # Break only if it was the GNU/non-GNU ld that we prefer.
5632 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5633 *GNU
* |
*'with BFD'*)
5634 test "$with_gnu_ld" != no
&& break
5637 test "$with_gnu_ld" != yes && break
5644 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
5649 if test -n "$LD"; then
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5651 $as_echo "$LD" >&6; }
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5654 $as_echo "no" >&6; }
5656 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5658 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5659 if ${lt_cv_prog_gnu_ld+:} false
; then :
5660 $as_echo_n "(cached) " >&6
5662 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5663 case `$LD -v 2>&1 </dev/null` in
5664 *GNU
* |
*'with BFD'*)
5665 lt_cv_prog_gnu_ld
=yes
5668 lt_cv_prog_gnu_ld
=no
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5673 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5674 with_gnu_ld
=$lt_cv_prog_gnu_ld
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5685 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5686 if ${lt_cv_path_NM+:} false
; then :
5687 $as_echo_n "(cached) " >&6
5689 if test -n "$NM"; then
5690 # Let the user override the nm to test.
5691 lt_nm_to_check
="$NM"
5693 lt_nm_to_check
="${ac_tool_prefix}nm"
5694 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5695 lt_nm_to_check
="$lt_nm_to_check nm"
5698 for lt_tmp_nm
in "$lt_nm_to_check"; do
5699 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5700 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
5702 test -z "$ac_dir" && ac_dir
=.
5703 # Strip out any user-provided options from the nm to test twice,
5704 # the first time to test to see if nm (rather than its options) has
5705 # an explicit path, the second time to yield a file which can be
5707 tmp_nm_path
="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5708 case "$tmp_nm_path" in
5709 */*|
*\\*) tmp_nm
="$lt_tmp_nm";;
5710 *) tmp_nm
="$ac_dir/$lt_tmp_nm";;
5712 tmp_nm_to_nm
="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5713 if test -f "$tmp_nm_to_nm" ||
test -f "$tmp_nm_to_nm$ac_exeext" ; then
5714 # Check to see if the nm accepts a BSD-compat flag.
5715 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5716 # nm: unknown option "B" ignored
5717 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5718 *$tmp_nm*) lt_cv_path_NM
="$tmp_nm -B"
5722 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5724 lt_cv_path_NM
="$tmp_nm -p"
5728 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5729 continue # so that we can try to find one that supports BSD flags
5738 : ${lt_cv_path_NM=no}
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5741 $as_echo "$lt_cv_path_NM" >&6; }
5742 if test "$lt_cv_path_NM" != "no"; then
5745 # Didn't find any BSD compatible name lister, look for dumpbin.
5746 if test -n "$DUMPBIN"; then :
5747 # Let the user override the test.
5749 if test -n "$ac_tool_prefix"; then
5750 for ac_prog
in dumpbin
"link -dump"
5752 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5753 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5755 $as_echo_n "checking for $ac_word... " >&6; }
5756 if ${ac_cv_prog_DUMPBIN+:} false
; then :
5757 $as_echo_n "(cached) " >&6
5759 if test -n "$DUMPBIN"; then
5760 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
5762 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5766 test -z "$as_dir" && as_dir
=.
5767 for ac_exec_ext
in '' $ac_executable_extensions; do
5768 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5769 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
5770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5779 DUMPBIN
=$ac_cv_prog_DUMPBIN
5780 if test -n "$DUMPBIN"; then
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5782 $as_echo "$DUMPBIN" >&6; }
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785 $as_echo "no" >&6; }
5789 test -n "$DUMPBIN" && break
5792 if test -z "$DUMPBIN"; then
5793 ac_ct_DUMPBIN
=$DUMPBIN
5794 for ac_prog
in dumpbin
"link -dump"
5796 # Extract the first word of "$ac_prog", so it can be a program name with args.
5797 set dummy
$ac_prog; ac_word
=$2
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5799 $as_echo_n "checking for $ac_word... " >&6; }
5800 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
5801 $as_echo_n "(cached) " >&6
5803 if test -n "$ac_ct_DUMPBIN"; then
5804 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
5806 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5810 test -z "$as_dir" && as_dir
=.
5811 for ac_exec_ext
in '' $ac_executable_extensions; do
5812 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5813 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
5814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5823 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
5824 if test -n "$ac_ct_DUMPBIN"; then
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5826 $as_echo "$ac_ct_DUMPBIN" >&6; }
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5829 $as_echo "no" >&6; }
5833 test -n "$ac_ct_DUMPBIN" && break
5836 if test "x$ac_ct_DUMPBIN" = x
; then
5839 case $cross_compiling:$ac_tool_warned in
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5843 ac_tool_warned
=yes ;;
5845 DUMPBIN
=$ac_ct_DUMPBIN
5849 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5851 DUMPBIN
="$DUMPBIN -symbols"
5859 if test "$DUMPBIN" != ":"; then
5863 test -z "$NM" && NM
=nm
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5871 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5872 if ${lt_cv_nm_interface+:} false
; then :
5873 $as_echo_n "(cached) " >&6
5875 lt_cv_nm_interface
="BSD nm"
5876 echo "int some_variable = 0;" > conftest.
$ac_ext
5877 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5878 (eval "$ac_compile" 2>conftest.err
)
5879 cat conftest.err
>&5
5880 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5881 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
5882 cat conftest.err
>&5
5883 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5884 cat conftest.out
>&5
5885 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
5886 lt_cv_nm_interface
="MS dumpbin"
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5891 $as_echo "$lt_cv_nm_interface" >&6; }
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5894 $as_echo_n "checking whether ln -s works... " >&6; }
5896 if test "$LN_S" = "ln -s"; then
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5898 $as_echo "yes" >&6; }
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5901 $as_echo "no, using $LN_S" >&6; }
5904 # find the maximum length of command line arguments
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5906 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5907 if ${lt_cv_sys_max_cmd_len+:} false
; then :
5908 $as_echo_n "(cached) " >&6
5915 # On DJGPP, this test can blow up pretty badly due to problems in libc
5916 # (any single argument exceeding 2000 bytes causes a buffer overrun
5917 # during glob expansion). Even if it were fixed, the result of this
5918 # check would be larger than it should be.
5919 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
5923 # Under GNU Hurd, this test is not required because there is
5924 # no limit to the length of command line arguments.
5925 # Libtool will interpret -1 as no limit whatsoever
5926 lt_cv_sys_max_cmd_len
=-1;
5929 cygwin
* | mingw
* | cegcc
*)
5930 # On Win9x/ME, this test blows up -- it succeeds, but takes
5931 # about 5 minutes as the teststring grows exponentially.
5932 # Worse, since 9x/ME are not pre-emptively multitasking,
5933 # you end up with a "frozen" computer, even though with patience
5934 # the test eventually succeeds (with a max line length of 256k).
5935 # Instead, let's just punt: use the minimum linelength reported by
5936 # all of the supported platforms: 8192 (on NT/2K/XP).
5937 lt_cv_sys_max_cmd_len
=8192;
5941 # On MiNT this can take a long time and run out of memory.
5942 lt_cv_sys_max_cmd_len
=8192;
5946 # On AmigaOS with pdksh, this test takes hours, literally.
5947 # So we just punt and use a minimum line length of 8192.
5948 lt_cv_sys_max_cmd_len
=8192;
5951 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
5952 # This has been around since 386BSD, at least. Likely further.
5953 if test -x /sbin
/sysctl
; then
5954 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
5955 elif test -x /usr
/sbin
/sysctl
; then
5956 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
5958 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
5960 # And add a safety zone
5961 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5962 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5966 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5967 lt_cv_sys_max_cmd_len
=196608
5971 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5972 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5973 # nice to cause kernel panics so lets avoid the loop below.
5974 # First set a reasonable default.
5975 lt_cv_sys_max_cmd_len
=16384
5977 if test -x /sbin
/sysconfig
; then
5978 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5979 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
5984 lt_cv_sys_max_cmd_len
=102400
5986 sysv5
* | sco5v6
* | sysv4.2uw2
*)
5987 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5988 if test -n "$kargmax"; then
5989 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
5991 lt_cv_sys_max_cmd_len
=32768
5995 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
5996 if test -n "$lt_cv_sys_max_cmd_len"; then
5997 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5998 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6000 # Make teststring a little bigger before we do anything with it.
6001 # a 1K string should be a reasonable start.
6002 for i
in 1 2 3 4 5 6 7 8 ; do
6003 teststring
=$teststring$teststring
6005 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6006 # If test is not a shell built-in, we'll probably end up computing a
6007 # maximum length that is only half of the actual maximum length, but
6009 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6010 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
6011 test $i != 17 # 1/2 MB should be enough
6014 teststring
=$teststring$teststring
6016 # Only check the string length outside the loop.
6017 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
6019 # Add a significant safety factor because C++ compilers can tack on
6020 # massive amounts of additional arguments before passing them to the
6021 # linker. It appears as though 1/2 is a usable value.
6022 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6029 if test -n $lt_cv_sys_max_cmd_len ; then
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6031 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6034 $as_echo "none" >&6; }
6036 max_cmd_len
=$lt_cv_sys_max_cmd_len
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6048 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6049 # Try some XSI features
6052 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6054 && eval 'test $(( 1 + 1 )) -eq 2 \
6055 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
6058 $as_echo "$xsi_shell" >&6; }
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
6062 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
6064 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
6066 && lt_shell_append=yes
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
6068 $as_echo "$lt_shell_append" >&6; }
6071 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6081 # test EBCDIC or ASCII
6082 case `echo X|tr X '\101'` in
6083 A) # ASCII based system
6084 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6085 lt_SP2NL='tr \040 \012'
6086 lt_NL2SP='tr \015\012 \040\040'
6088 *) # EBCDIC based system
6089 lt_SP2NL='tr \100 \n'
6090 lt_NL2SP='tr \r\n \100\100'
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
6103 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
6104 if ${lt_cv_ld_reload_flag+:} false; then :
6105 $as_echo_n "(cached
) " >&6
6107 lt_cv_ld_reload_flag='-r'
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
6110 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6111 reload_flag=$lt_cv_ld_reload_flag
6112 case $reload_flag in
6114 *) reload_flag=" $reload_flag" ;;
6116 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6119 if test "$GCC" = yes; then
6120 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6122 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6135 if test -n "$ac_tool_prefix"; then
6136 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
6137 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6139 $as_echo_n "checking
for $ac_word...
" >&6; }
6140 if ${ac_cv_prog_OBJDUMP+:} false; then :
6141 $as_echo_n "(cached
) " >&6
6143 if test -n "$OBJDUMP"; then
6144 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 test -z "$as_dir" && as_dir=.
6151 for ac_exec_ext in '' $ac_executable_extensions; do
6152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6153 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
6154 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6163 OBJDUMP=$ac_cv_prog_OBJDUMP
6164 if test -n "$OBJDUMP"; then
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
6166 $as_echo "$OBJDUMP" >&6; }
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6169 $as_echo "no
" >&6; }
6174 if test -z "$ac_cv_prog_OBJDUMP"; then
6175 ac_ct_OBJDUMP=$OBJDUMP
6176 # Extract the first word of "objdump
", so it can be a program name with args.
6177 set dummy objdump; ac_word=$2
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6179 $as_echo_n "checking
for $ac_word...
" >&6; }
6180 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6181 $as_echo_n "(cached
) " >&6
6183 if test -n "$ac_ct_OBJDUMP"; then
6184 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190 test -z "$as_dir" && as_dir=.
6191 for ac_exec_ext in '' $ac_executable_extensions; do
6192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6193 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
6194 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6203 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6204 if test -n "$ac_ct_OBJDUMP"; then
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
6206 $as_echo "$ac_ct_OBJDUMP" >&6; }
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6209 $as_echo "no
" >&6; }
6212 if test "x
$ac_ct_OBJDUMP" = x; then
6215 case $cross_compiling:$ac_tool_warned in
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6218 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6219 ac_tool_warned=yes ;;
6221 OBJDUMP=$ac_ct_OBJDUMP
6224 OBJDUMP="$ac_cv_prog_OBJDUMP"
6227 test -z "$OBJDUMP" && OBJDUMP=objdump
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
6238 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
6239 if ${lt_cv_deplibs_check_method+:} false; then :
6240 $as_echo_n "(cached
) " >&6
6242 lt_cv_file_magic_cmd='$MAGIC_CMD'
6243 lt_cv_file_magic_test_file=
6244 lt_cv_deplibs_check_method='unknown'
6245 # Need to set the preceding variable on all platforms that support
6246 # interlibrary dependencies.
6247 # 'none' -- dependencies not supported.
6248 # `unknown' -- same as none, but documents that we really don't know.
6249 # 'pass_all' -- all dependencies passed with no checks.
6250 # 'test_compile' -- check by making test program.
6251 # 'file_magic [[regex]]' -- check by looking for files in library path
6252 # which responds to the $file_magic_cmd with a given extended regex.
6253 # If you have `file' or equivalent on your system and you're not sure
6254 # whether `pass_all' will *always* work, you probably want this one.
6258 lt_cv_deplibs_check_method=pass_all
6262 lt_cv_deplibs_check_method=pass_all
6266 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6267 lt_cv_file_magic_cmd='/usr/bin/file -L'
6268 lt_cv_file_magic_test_file=/shlib/libc.so
6272 # func_win32_libid is a shell function defined in ltmain.sh
6273 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6274 lt_cv_file_magic_cmd='func_win32_libid'
6278 # Base MSYS/MinGW do not provide the 'file' command needed by
6279 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6280 # unless we find 'file', for example because we are cross-compiling.
6281 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6282 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
6283 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6284 lt_cv_file_magic_cmd='func_win32_libid'
6286 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6287 lt_cv_file_magic_cmd='$OBJDUMP -f'
6292 # use the weaker test based on 'objdump'. See mingw*.
6293 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6294 lt_cv_file_magic_cmd='$OBJDUMP -f'
6297 darwin* | rhapsody*)
6298 lt_cv_deplibs_check_method=pass_all
6301 freebsd* | dragonfly*)
6302 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6305 # Not sure whether the presence of OpenBSD here was a mistake.
6306 # Let's accept both of them until this is cleared up.
6307 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6308 lt_cv_file_magic_cmd=/usr/bin/file
6309 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6313 lt_cv_deplibs_check_method=pass_all
6318 lt_cv_deplibs_check_method=pass_all
6322 lt_cv_deplibs_check_method=pass_all
6325 hpux10.20* | hpux11*)
6326 lt_cv_file_magic_cmd=/usr/bin/file
6329 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6330 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6333 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]'
6334 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6337 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6338 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6344 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6345 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6348 irix5* | irix6* | nonstopux*)
6350 *-32|*"-32 ") libmagic=32-bit;;
6351 *-n32|*"-n32 ") libmagic=N32;;
6352 *-64|*"-64 ") libmagic=64-bit;;
6353 *) libmagic=never-match;;
6355 lt_cv_deplibs_check_method=pass_all
6358 # This must be Linux ELF.
6359 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6360 lt_cv_deplibs_check_method=pass_all
6364 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6365 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6367 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6372 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6373 lt_cv_file_magic_cmd=/usr/bin/file
6374 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6378 lt_cv_deplibs_check_method=pass_all
6382 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
6383 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6385 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6389 osf3* | osf4* | osf5*)
6390 lt_cv_deplibs_check_method=pass_all
6394 lt_cv_deplibs_check_method=pass_all
6398 lt_cv_deplibs_check_method=pass_all
6401 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6402 lt_cv_deplibs_check_method=pass_all
6406 case $host_vendor in
6408 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]'
6409 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6412 lt_cv_deplibs_check_method=pass_all
6415 lt_cv_file_magic_cmd='/bin/file'
6416 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6419 lt_cv_file_magic_cmd='/bin/file'
6420 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
6421 lt_cv_file_magic_test_file=/lib/libc.so
6424 lt_cv_deplibs_check_method=pass_all
6427 lt_cv_deplibs_check_method=pass_all
6433 lt_cv_deplibs_check_method=pass_all
6436 # Assume VxWorks cross toolchains are built on Linux, possibly
6437 # as canadian for Windows hosts.
6438 lt_cv_deplibs_check_method=pass_all
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
6444 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6445 file_magic_cmd=$lt_cv_file_magic_cmd
6446 deplibs_check_method=$lt_cv_deplibs_check_method
6447 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6461 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll
"
6462 for plugin in $plugin_names; do
6463 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6464 if test x$plugin_so = x$plugin; then
6465 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6467 if test x$plugin_so != x$plugin; then
6468 plugin_option="--plugin $plugin_so"
6473 if test -n "$ac_tool_prefix"; then
6474 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6475 set dummy ${ac_tool_prefix}ar; ac_word=$2
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6477 $as_echo_n "checking
for $ac_word...
" >&6; }
6478 if ${ac_cv_prog_AR+:} false; then :
6479 $as_echo_n "(cached
) " >&6
6481 if test -n "$AR"; then
6482 ac_cv_prog_AR="$AR" # Let the user override the test.
6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488 test -z "$as_dir" && as_dir=.
6489 for ac_exec_ext in '' $ac_executable_extensions; do
6490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6491 ac_cv_prog_AR="${ac_tool_prefix}ar"
6492 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6502 if test -n "$AR"; then
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
6504 $as_echo "$AR" >&6; }
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6507 $as_echo "no
" >&6; }
6512 if test -z "$ac_cv_prog_AR"; then
6514 # Extract the first word of "ar", so it can be a program name with args.
6515 set dummy ar; ac_word=$2
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6517 $as_echo_n "checking
for $ac_word...
" >&6; }
6518 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6519 $as_echo_n "(cached
) " >&6
6521 if test -n "$ac_ct_AR"; then
6522 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528 test -z "$as_dir" && as_dir=.
6529 for ac_exec_ext in '' $ac_executable_extensions; do
6530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6531 ac_cv_prog_ac_ct_AR="ar"
6532 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6541 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6542 if test -n "$ac_ct_AR"; then
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
6544 $as_echo "$ac_ct_AR" >&6; }
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6547 $as_echo "no
" >&6; }
6550 if test "x
$ac_ct_AR" = x; then
6553 case $cross_compiling:$ac_tool_warned in
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6556 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6557 ac_tool_warned=yes ;;
6565 test -z "$AR" && AR=ar
6566 if test -n "$plugin_option"; then
6567 if $AR --help 2>&1 | grep -q "\
--plugin"; then
6569 $AR $plugin_option rc conftest.a conftest.c
6570 if test "$?
" != 0; then
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: Failed
: $AR $plugin_option rc
" >&5
6572 $as_echo "$as_me: WARNING
: Failed
: $AR $plugin_option rc
" >&2;}
6574 AR="$AR $plugin_option"
6579 test -z "$AR_FLAGS" && AR_FLAGS=cru
6591 if test -n "$ac_tool_prefix"; then
6592 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
6593 set dummy ${ac_tool_prefix}strip; ac_word=$2
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6595 $as_echo_n "checking
for $ac_word...
" >&6; }
6596 if ${ac_cv_prog_STRIP+:} false; then :
6597 $as_echo_n "(cached
) " >&6
6599 if test -n "$STRIP"; then
6600 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606 test -z "$as_dir" && as_dir=.
6607 for ac_exec_ext in '' $ac_executable_extensions; do
6608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6609 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
6610 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6619 STRIP=$ac_cv_prog_STRIP
6620 if test -n "$STRIP"; then
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
6622 $as_echo "$STRIP" >&6; }
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6625 $as_echo "no
" >&6; }
6630 if test -z "$ac_cv_prog_STRIP"; then
6632 # Extract the first word of "strip
", so it can be a program name with args.
6633 set dummy strip; ac_word=$2
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6635 $as_echo_n "checking
for $ac_word...
" >&6; }
6636 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6637 $as_echo_n "(cached
) " >&6
6639 if test -n "$ac_ct_STRIP"; then
6640 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6646 test -z "$as_dir" && as_dir=.
6647 for ac_exec_ext in '' $ac_executable_extensions; do
6648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6649 ac_cv_prog_ac_ct_STRIP="strip
"
6650 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6659 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6660 if test -n "$ac_ct_STRIP"; then
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
6662 $as_echo "$ac_ct_STRIP" >&6; }
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6665 $as_echo "no
" >&6; }
6668 if test "x
$ac_ct_STRIP" = x; then
6671 case $cross_compiling:$ac_tool_warned in
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6674 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6675 ac_tool_warned=yes ;;
6680 STRIP="$ac_cv_prog_STRIP"
6683 test -z "$STRIP" && STRIP=:
6690 if test -n "$ac_tool_prefix"; then
6691 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
6692 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6694 $as_echo_n "checking
for $ac_word...
" >&6; }
6695 if ${ac_cv_prog_RANLIB+:} false; then :
6696 $as_echo_n "(cached
) " >&6
6698 if test -n "$RANLIB"; then
6699 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705 test -z "$as_dir" && as_dir=.
6706 for ac_exec_ext in '' $ac_executable_extensions; do
6707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6708 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
6709 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6718 RANLIB=$ac_cv_prog_RANLIB
6719 if test -n "$RANLIB"; then
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
6721 $as_echo "$RANLIB" >&6; }
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6724 $as_echo "no
" >&6; }
6729 if test -z "$ac_cv_prog_RANLIB"; then
6730 ac_ct_RANLIB=$RANLIB
6731 # Extract the first word of "ranlib
", so it can be a program name with args.
6732 set dummy ranlib; ac_word=$2
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6734 $as_echo_n "checking
for $ac_word...
" >&6; }
6735 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6736 $as_echo_n "(cached
) " >&6
6738 if test -n "$ac_ct_RANLIB"; then
6739 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6745 test -z "$as_dir" && as_dir=.
6746 for ac_exec_ext in '' $ac_executable_extensions; do
6747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6748 ac_cv_prog_ac_ct_RANLIB="ranlib
"
6749 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6758 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6759 if test -n "$ac_ct_RANLIB"; then
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
6761 $as_echo "$ac_ct_RANLIB" >&6; }
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6764 $as_echo "no
" >&6; }
6767 if test "x
$ac_ct_RANLIB" = x; then
6770 case $cross_compiling:$ac_tool_warned in
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6773 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6774 ac_tool_warned=yes ;;
6776 RANLIB=$ac_ct_RANLIB
6779 RANLIB="$ac_cv_prog_RANLIB"
6782 test -z "$RANLIB" && RANLIB=:
6783 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6784 if $RANLIB --help 2>&1 | grep -q "\
--plugin"; then
6785 RANLIB="$RANLIB $plugin_option"
6794 # Determine commands to create old-style static archives.
6795 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6796 old_postinstall_cmds='chmod 644 $oldlib'
6797 old_postuninstall_cmds=
6799 if test -n "$RANLIB"; then
6802 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
6805 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
6808 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
6813 lock_old_archive_extraction=yes ;;
6815 lock_old_archive_extraction=no ;;
6838 for ac_prog in gawk mawk nawk awk
6840 # Extract the first word of "$ac_prog", so it can be a program name with args.
6841 set dummy $ac_prog; ac_word=$2
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6843 $as_echo_n "checking
for $ac_word...
" >&6; }
6844 if ${ac_cv_prog_AWK+:} false; then :
6845 $as_echo_n "(cached
) " >&6
6847 if test -n "$AWK"; then
6848 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854 test -z "$as_dir" && as_dir=.
6855 for ac_exec_ext in '' $ac_executable_extensions; do
6856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6857 ac_cv_prog_AWK="$ac_prog"
6858 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6868 if test -n "$AWK"; then
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AWK" >&5
6870 $as_echo "$AWK" >&6; }
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6873 $as_echo "no
" >&6; }
6877 test -n "$AWK" && break
6898 # If no C compiler was specified, use CC.
6901 # If no C compiler flags were specified, use CFLAGS.
6902 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6904 # Allow CC to be a program name with arguments.
6908 # Check for command to grab the raw symbol name followed by C symbol from nm.
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
6910 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
6911 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6912 $as_echo_n "(cached
) " >&6
6915 # These are sane defaults that work on at least a few old systems.
6916 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6918 # Character class describing NM global symbol codes.
6919 symcode='[BCDEGRST]'
6921 # Regexp to match symbols that can be accessed directly from C.
6922 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6924 # Define system-specific variables.
6929 cygwin* | mingw* | pw32* | cegcc*)
6930 symcode='[ABCDGISTW]'
6933 if test "$host_cpu" = ia64; then
6934 symcode='[ABCDEGRST]'
6938 symcode='[BCDEGRST]'
6941 symcode='[BCDEGQRST]'
6952 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6960 # If we're using GNU nm, then use its standard symbol codes.
6961 case `$NM -V 2>&1` in
6962 *GNU* | *'with BFD'*)
6963 symcode='[ABCDGIRSTW]' ;;
6966 # Transform an extracted symbol line into a proper C declaration.
6967 # Some systems (esp. on ia64) link data and code symbols differently,
6968 # so use this general approach.
6969 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6971 # Transform an extracted symbol line into symbol name and symbol address
6972 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6973 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'"
6975 # Handle CRLF in mingw tool chain
6979 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6983 # Try without a prefix underscore, then with it.
6984 for ac_symprfx in "" "_
"; do
6986 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6987 symxfrm="\\1 $ac_symprfx\\2 \\2"
6989 # Write the raw and C identifiers.
6990 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6991 # Fake it for dumpbin and say T for any non-static function
6992 # and D for any global variable.
6993 # Also find C++ and __fastcall symbols from MSVC++,
6994 # which start with @ or ?.
6995 lt_cv_sys_global_symbol_pipe="$AWK '"\
6996 " {last_section=section; section=\$ 3};"\
6997 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6998 " \$ 0!~/External *\|/{next};"\
6999 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7000 " {if(hide[section]) next};"\
7001 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7002 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7003 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7004 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7005 " ' prfx
=^
$ac_symprfx"
7007 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7010 # Check to see that the pipe works correctly.
7014 cat > conftest.$ac_ext <<_LT_EOF
7019 void nm_test_func(void);
7020 void nm_test_func(void){}
7024 int main(){nm_test_var='a';nm_test_func();return(0);}
7027 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7028 (eval $ac_compile) 2>&5
7030 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7031 test $ac_status = 0; }; then
7032 # Now try to grab the symbols.
7034 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
7035 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7037 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7038 test $ac_status = 0; } && test -s "$nlist"; then
7039 # Try sorting and uniquifying the output.
7040 if sort "$nlist" | uniq > "$nlist"T; then
7041 mv -f "$nlist"T "$nlist"
7046 # Make sure that we snagged all the symbols we need.
7047 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7048 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7049 cat <<_LT_EOF > conftest.$ac_ext
7055 # Now generate the symbol file.
7056 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7058 cat <<_LT_EOF >> conftest.$ac_ext
7060 /* The mapping between symbol names and symbols. */
7065 lt__PROGRAM__LTX_preloaded_symbols[] =
7067 { "@PROGRAM@
", (void *) 0 },
7069 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7070 cat <<\_LT_EOF >> conftest.$ac_ext
7074 /* This works around a problem in FreeBSD linker */
7075 #ifdef FREEBSD_WORKAROUND
7076 static const void *lt_preloaded_setup() {
7077 return lt__PROGRAM__LTX_preloaded_symbols;
7085 # Now try linking the two files.
7086 mv conftest.$ac_objext conftstm.$ac_objext
7087 lt_save_LIBS="$LIBS"
7088 lt_save_CFLAGS="$CFLAGS"
7089 LIBS="conftstm.
$ac_objext"
7090 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7091 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7092 (eval $ac_link) 2>&5
7094 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7095 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7098 LIBS="$lt_save_LIBS"
7099 CFLAGS="$lt_save_CFLAGS"
7101 echo "cannot
find nm_test_func
in $nlist" >&5
7104 echo "cannot
find nm_test_var
in $nlist" >&5
7107 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
7110 echo "$progname: failed program was
:" >&5
7111 cat conftest.$ac_ext >&5
7113 rm -rf conftest* conftst*
7115 # Do not use the global_symbol_pipe unless it works.
7116 if test "$pipe_works" = yes; then
7119 lt_cv_sys_global_symbol_pipe=
7125 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7126 lt_cv_sys_global_symbol_to_cdecl=
7128 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
7130 $as_echo "failed
" >&6; }
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
7133 $as_echo "ok
" >&6; }
7157 # Check whether --enable-libtool-lock was given.
7158 if test "${enable_libtool_lock+set}" = set; then :
7159 enableval=$enable_libtool_lock;
7162 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
7164 # Some flags need to be propagated to the compiler or linker for good
7168 # Find out which ABI we are using.
7169 echo 'int i;' > conftest.$ac_ext
7170 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7171 (eval $ac_compile) 2>&5
7173 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7174 test $ac_status = 0; }; then
7175 case `/usr/bin/file conftest.$ac_objext` in
7187 # Find out which ABI we are using.
7188 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
7189 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7190 (eval $ac_compile) 2>&5
7192 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7193 test $ac_status = 0; }; then
7194 if test "$lt_cv_prog_gnu_ld" = yes; then
7195 case `/usr/bin/file conftest.$ac_objext` in
7197 LD="${LD-ld} -melf32bsmip"
7200 LD="${LD-ld} -melf32bmipn32"
7203 LD="${LD-ld} -melf64bmip"
7207 case `/usr/bin/file conftest.$ac_objext` in
7223 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7224 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7225 # Find out which ABI we are using.
7226 echo 'int i;' > conftest.$ac_ext
7227 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7228 (eval $ac_compile) 2>&5
7230 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7231 test $ac_status = 0; }; then
7232 case `/usr/bin/file conftest.o` in
7235 x86_64-*kfreebsd*-gnu)
7236 LD="${LD-ld} -m elf_i386_fbsd
"
7239 case `/usr/bin/file conftest.o` in
7241 LD="${LD-ld} -m elf32_x86_64
"
7244 LD="${LD-ld} -m elf_i386
"
7248 powerpc64le-*linux*)
7249 LD="${LD-ld} -m elf32lppclinux
"
7252 LD="${LD-ld} -m elf32ppclinux
"
7255 LD="${LD-ld} -m elf_s390
"
7258 LD="${LD-ld} -m elf32_sparc
"
7264 x86_64-*kfreebsd*-gnu)
7265 LD="${LD-ld} -m elf_x86_64_fbsd
"
7268 LD="${LD-ld} -m elf_x86_64
"
7271 LD="${LD-ld} -m elf64lppc
"
7274 LD="${LD-ld} -m elf64ppc
"
7276 s390*-*linux*|s390*-*tpf*)
7277 LD="${LD-ld} -m elf64_s390
"
7280 LD="${LD-ld} -m elf64_sparc
"
7290 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7291 SAVE_CFLAGS="$CFLAGS"
7292 CFLAGS="$CFLAGS -belf"
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
7294 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
7295 if ${lt_cv_cc_needs_belf+:} false; then :
7296 $as_echo_n "(cached
) " >&6
7299 ac_cpp='$CPP $CPPFLAGS'
7300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7305 /* end confdefs.h. */
7315 if ac_fn_c_try_link "$LINENO"; then :
7316 lt_cv_cc_needs_belf=yes
7318 lt_cv_cc_needs_belf=no
7320 rm -f core conftest.err conftest.$ac_objext \
7321 conftest$ac_exeext conftest.$ac_ext
7323 ac_cpp='$CPP $CPPFLAGS'
7324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
7330 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7331 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7332 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7333 CFLAGS="$SAVE_CFLAGS"
7337 # Find out which ABI we are using.
7338 echo 'int i;' > conftest.$ac_ext
7339 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7340 (eval $ac_compile) 2>&5
7342 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7343 test $ac_status = 0; }; then
7344 case `/usr/bin/file conftest.o` in
7346 case $lt_cv_prog_gnu_ld in
7347 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
7349 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7361 need_locks="$enable_libtool_lock"
7365 rhapsody* | darwin*)
7366 if test -n "$ac_tool_prefix"; then
7367 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
7368 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7370 $as_echo_n "checking
for $ac_word...
" >&6; }
7371 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7372 $as_echo_n "(cached
) " >&6
7374 if test -n "$DSYMUTIL"; then
7375 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381 test -z "$as_dir" && as_dir=.
7382 for ac_exec_ext in '' $ac_executable_extensions; do
7383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7384 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
7385 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7394 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7395 if test -n "$DSYMUTIL"; then
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
7397 $as_echo "$DSYMUTIL" >&6; }
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7400 $as_echo "no
" >&6; }
7405 if test -z "$ac_cv_prog_DSYMUTIL"; then
7406 ac_ct_DSYMUTIL=$DSYMUTIL
7407 # Extract the first word of "dsymutil
", so it can be a program name with args.
7408 set dummy dsymutil; ac_word=$2
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7410 $as_echo_n "checking
for $ac_word...
" >&6; }
7411 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7412 $as_echo_n "(cached
) " >&6
7414 if test -n "$ac_ct_DSYMUTIL"; then
7415 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421 test -z "$as_dir" && as_dir=.
7422 for ac_exec_ext in '' $ac_executable_extensions; do
7423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7424 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
7425 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7434 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7435 if test -n "$ac_ct_DSYMUTIL"; then
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
7437 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7440 $as_echo "no
" >&6; }
7443 if test "x
$ac_ct_DSYMUTIL" = x; then
7446 case $cross_compiling:$ac_tool_warned in
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7449 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7450 ac_tool_warned=yes ;;
7452 DSYMUTIL=$ac_ct_DSYMUTIL
7455 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7458 if test -n "$ac_tool_prefix"; then
7459 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
7460 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7462 $as_echo_n "checking
for $ac_word...
" >&6; }
7463 if ${ac_cv_prog_NMEDIT+:} false; then :
7464 $as_echo_n "(cached
) " >&6
7466 if test -n "$NMEDIT"; then
7467 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473 test -z "$as_dir" && as_dir=.
7474 for ac_exec_ext in '' $ac_executable_extensions; do
7475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7476 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
7477 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7486 NMEDIT=$ac_cv_prog_NMEDIT
7487 if test -n "$NMEDIT"; then
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
7489 $as_echo "$NMEDIT" >&6; }
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7492 $as_echo "no
" >&6; }
7497 if test -z "$ac_cv_prog_NMEDIT"; then
7498 ac_ct_NMEDIT=$NMEDIT
7499 # Extract the first word of "nmedit
", so it can be a program name with args.
7500 set dummy nmedit; ac_word=$2
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7502 $as_echo_n "checking
for $ac_word...
" >&6; }
7503 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7504 $as_echo_n "(cached
) " >&6
7506 if test -n "$ac_ct_NMEDIT"; then
7507 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513 test -z "$as_dir" && as_dir=.
7514 for ac_exec_ext in '' $ac_executable_extensions; do
7515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7516 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
7517 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7526 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7527 if test -n "$ac_ct_NMEDIT"; then
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
7529 $as_echo "$ac_ct_NMEDIT" >&6; }
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7532 $as_echo "no
" >&6; }
7535 if test "x
$ac_ct_NMEDIT" = x; then
7538 case $cross_compiling:$ac_tool_warned in
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7541 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7542 ac_tool_warned=yes ;;
7544 NMEDIT=$ac_ct_NMEDIT
7547 NMEDIT="$ac_cv_prog_NMEDIT"
7550 if test -n "$ac_tool_prefix"; then
7551 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
7552 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7554 $as_echo_n "checking
for $ac_word...
" >&6; }
7555 if ${ac_cv_prog_LIPO+:} false; then :
7556 $as_echo_n "(cached
) " >&6
7558 if test -n "$LIPO"; then
7559 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565 test -z "$as_dir" && as_dir=.
7566 for ac_exec_ext in '' $ac_executable_extensions; do
7567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7568 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
7569 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7578 LIPO=$ac_cv_prog_LIPO
7579 if test -n "$LIPO"; then
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
7581 $as_echo "$LIPO" >&6; }
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7584 $as_echo "no
" >&6; }
7589 if test -z "$ac_cv_prog_LIPO"; then
7591 # Extract the first word of "lipo
", so it can be a program name with args.
7592 set dummy lipo; ac_word=$2
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7594 $as_echo_n "checking
for $ac_word...
" >&6; }
7595 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7596 $as_echo_n "(cached
) " >&6
7598 if test -n "$ac_ct_LIPO"; then
7599 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605 test -z "$as_dir" && as_dir=.
7606 for ac_exec_ext in '' $ac_executable_extensions; do
7607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7608 ac_cv_prog_ac_ct_LIPO="lipo
"
7609 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7618 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7619 if test -n "$ac_ct_LIPO"; then
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
7621 $as_echo "$ac_ct_LIPO" >&6; }
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7624 $as_echo "no
" >&6; }
7627 if test "x
$ac_ct_LIPO" = x; then
7630 case $cross_compiling:$ac_tool_warned in
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7633 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7634 ac_tool_warned=yes ;;
7639 LIPO="$ac_cv_prog_LIPO"
7642 if test -n "$ac_tool_prefix"; then
7643 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
7644 set dummy ${ac_tool_prefix}otool; ac_word=$2
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7646 $as_echo_n "checking
for $ac_word...
" >&6; }
7647 if ${ac_cv_prog_OTOOL+:} false; then :
7648 $as_echo_n "(cached
) " >&6
7650 if test -n "$OTOOL"; then
7651 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657 test -z "$as_dir" && as_dir=.
7658 for ac_exec_ext in '' $ac_executable_extensions; do
7659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7660 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
7661 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7670 OTOOL=$ac_cv_prog_OTOOL
7671 if test -n "$OTOOL"; then
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
7673 $as_echo "$OTOOL" >&6; }
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7676 $as_echo "no
" >&6; }
7681 if test -z "$ac_cv_prog_OTOOL"; then
7683 # Extract the first word of "otool
", so it can be a program name with args.
7684 set dummy otool; ac_word=$2
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7686 $as_echo_n "checking
for $ac_word...
" >&6; }
7687 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7688 $as_echo_n "(cached
) " >&6
7690 if test -n "$ac_ct_OTOOL"; then
7691 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7697 test -z "$as_dir" && as_dir=.
7698 for ac_exec_ext in '' $ac_executable_extensions; do
7699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7700 ac_cv_prog_ac_ct_OTOOL="otool
"
7701 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7710 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7711 if test -n "$ac_ct_OTOOL"; then
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
7713 $as_echo "$ac_ct_OTOOL" >&6; }
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7716 $as_echo "no
" >&6; }
7719 if test "x
$ac_ct_OTOOL" = x; then
7722 case $cross_compiling:$ac_tool_warned in
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7725 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7726 ac_tool_warned=yes ;;
7731 OTOOL="$ac_cv_prog_OTOOL"
7734 if test -n "$ac_tool_prefix"; then
7735 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
7736 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7738 $as_echo_n "checking
for $ac_word...
" >&6; }
7739 if ${ac_cv_prog_OTOOL64+:} false; then :
7740 $as_echo_n "(cached
) " >&6
7742 if test -n "$OTOOL64"; then
7743 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749 test -z "$as_dir" && as_dir=.
7750 for ac_exec_ext in '' $ac_executable_extensions; do
7751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7752 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
7753 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7762 OTOOL64=$ac_cv_prog_OTOOL64
7763 if test -n "$OTOOL64"; then
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
7765 $as_echo "$OTOOL64" >&6; }
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7768 $as_echo "no
" >&6; }
7773 if test -z "$ac_cv_prog_OTOOL64"; then
7774 ac_ct_OTOOL64=$OTOOL64
7775 # Extract the first word of "otool64
", so it can be a program name with args.
7776 set dummy otool64; ac_word=$2
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7778 $as_echo_n "checking
for $ac_word...
" >&6; }
7779 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7780 $as_echo_n "(cached
) " >&6
7782 if test -n "$ac_ct_OTOOL64"; then
7783 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7789 test -z "$as_dir" && as_dir=.
7790 for ac_exec_ext in '' $ac_executable_extensions; do
7791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7792 ac_cv_prog_ac_ct_OTOOL64="otool64
"
7793 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7802 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7803 if test -n "$ac_ct_OTOOL64"; then
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
7805 $as_echo "$ac_ct_OTOOL64" >&6; }
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7808 $as_echo "no
" >&6; }
7811 if test "x
$ac_ct_OTOOL64" = x; then
7814 case $cross_compiling:$ac_tool_warned in
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7817 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7818 ac_tool_warned=yes ;;
7820 OTOOL64=$ac_ct_OTOOL64
7823 OTOOL64="$ac_cv_prog_OTOOL64"
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
7853 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
7854 if ${lt_cv_apple_cc_single_mod+:} false; then :
7855 $as_echo_n "(cached
) " >&6
7857 lt_cv_apple_cc_single_mod=no
7858 if test -z "${LT_MULTI_MODULE}"; then
7859 # By default we will add the -single_module flag. You can override
7860 # by either setting the environment variable LT_MULTI_MODULE
7861 # non-empty at configure time, or by adding -multi_module to the
7863 rm -rf libconftest.dylib*
7864 echo "int foo
(void
){return 1;}" > conftest.c
7865 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7866 -dynamiclib -Wl,-single_module conftest.c
" >&5
7867 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7868 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7870 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7871 lt_cv_apple_cc_single_mod=yes
7873 cat conftest.err >&5
7875 rm -rf libconftest.dylib*
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
7880 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
7882 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
7883 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7884 $as_echo_n "(cached
) " >&6
7886 lt_cv_ld_exported_symbols_list=no
7887 save_LDFLAGS=$LDFLAGS
7888 echo "_main
" > conftest.sym
7889 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
7890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7891 /* end confdefs.h. */
7901 if ac_fn_c_try_link "$LINENO"; then :
7902 lt_cv_ld_exported_symbols_list=yes
7904 lt_cv_ld_exported_symbols_list=no
7906 rm -f core conftest.err conftest.$ac_objext \
7907 conftest$ac_exeext conftest.$ac_ext
7908 LDFLAGS="$save_LDFLAGS"
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
7912 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
7914 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
7915 if ${lt_cv_ld_force_load+:} false; then :
7916 $as_echo_n "(cached
) " >&6
7918 lt_cv_ld_force_load=no
7919 cat > conftest.c << _LT_EOF
7920 int forced_loaded() { return 2;}
7922 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
7923 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7924 echo "$AR cru libconftest.a conftest.o
" >&5
7925 $AR cru libconftest.a conftest.o 2>&5
7926 cat > conftest.c << _LT_EOF
7927 int main() { return 0;}
7929 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
7930 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7932 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7933 lt_cv_ld_force_load=yes
7935 cat conftest.err >&5
7937 rm -f conftest.err libconftest.a conftest conftest.c
7938 rm -rf conftest.dSYM
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
7942 $as_echo "$lt_cv_ld_force_load" >&6; }
7943 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7944 # build without first building modern cctools / linker.
7945 case $host_cpu-$host_os in
7946 *-rhapsody* | *-darwin1.[012])
7947 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7949 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7951 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7952 # deployment target is forced to an earlier version.
7953 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7954 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7957 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7964 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7965 _lt_dar_single_mod='$single_module'
7967 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7968 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7970 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7972 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
7973 _lt_dsymutil='~$DSYMUTIL $lib || :'
7980 for ac_header in dlfcn.h
7982 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
" "$ac_includes_default
7984 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
7985 cat >>confdefs.h <<_ACEOF
7986 #define HAVE_DLFCN_H 1
8008 # Check whether --enable-shared was given.
8009 if test "${enable_shared+set}" = set; then :
8010 enableval=$enable_shared; p=${PACKAGE-default}
8012 yes) enable_shared=yes ;;
8013 no) enable_shared=no ;;
8016 # Look at the argument we got. We use all the common list separators.
8017 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8018 for pkg in $enableval; do
8020 if test "X
$pkg" = "X
$p"; then
8039 # Check whether --enable-static was given.
8040 if test "${enable_static+set}" = set; then :
8041 enableval=$enable_static; p=${PACKAGE-default}
8043 yes) enable_static=yes ;;
8044 no) enable_static=no ;;
8047 # Look at the argument we got. We use all the common list separators.
8048 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8049 for pkg in $enableval; do
8051 if test "X
$pkg" = "X
$p"; then
8071 # Check whether --with-pic was given.
8072 if test "${with_pic+set}" = set; then :
8073 withval=$with_pic; pic_mode="$withval"
8079 test -z "$pic_mode" && pic_mode=default
8087 # Check whether --enable-fast-install was given.
8088 if test "${enable_fast_install+set}" = set; then :
8089 enableval=$enable_fast_install; p=${PACKAGE-default}
8091 yes) enable_fast_install=yes ;;
8092 no) enable_fast_install=no ;;
8094 enable_fast_install=no
8095 # Look at the argument we got. We use all the common list separators.
8096 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8097 for pkg in $enableval; do
8099 if test "X
$pkg" = "X
$p"; then
8100 enable_fast_install=yes
8107 enable_fast_install=yes
8120 # This can be used to rebuild libtool when needed
8121 LIBTOOL_DEPS="$ltmain"
8123 # Always use our own libtool.
8124 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8151 test -z "$LN_S" && LN_S="ln -s"
8166 if test -n "${ZSH_VERSION+set}" ; then
8167 setopt NO_GLOB_SUBST
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
8171 $as_echo_n "checking
for objdir...
" >&6; }
8172 if ${lt_cv_objdir+:} false; then :
8173 $as_echo_n "(cached
) " >&6
8175 rm -f .libs 2>/dev/null
8176 mkdir .libs 2>/dev/null
8177 if test -d .libs; then
8180 # MS-DOS does not allow filenames that begin with a dot.
8183 rmdir .libs 2>/dev/null
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
8186 $as_echo "$lt_cv_objdir" >&6; }
8187 objdir=$lt_cv_objdir
8193 cat >>confdefs.h <<_ACEOF
8194 #define LT_OBJDIR "$lt_cv_objdir/"
8202 # AIX sometimes has problems with the GCC collect2 program. For some
8203 # reason, if we set the COLLECT_NAMES environment variable, the problems
8204 # vanish in a puff of smoke.
8205 if test "X
${COLLECT_NAMES+set}" != Xset; then
8207 export COLLECT_NAMES
8214 can_build_shared=yes
8216 # All known linkers require a `.a' archive for static linking (except MSVC,
8217 # which needs '.lib').
8220 with_gnu_ld="$lt_cv_prog_gnu_ld"
8223 old_CFLAGS="$CFLAGS"
8225 # Set sane defaults for various variables
8226 test -z "$CC" && CC=cc
8227 test -z "$LTCC" && LTCC=$CC
8228 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8229 test -z "$LD" && LD=ld
8230 test -z "$ac_objext" && ac_objext=o
8232 for cc_temp in $compiler""; do
8234 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8235 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8240 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
8243 # Only perform the check for file, if the check method requires it
8244 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8245 case $deplibs_check_method in
8247 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
8249 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
8250 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8251 $as_echo_n "(cached
) " >&6
8255 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8258 lt_save_MAGIC_CMD="$MAGIC_CMD"
8259 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8260 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
8261 for ac_dir in $ac_dummy; do
8263 test -z "$ac_dir" && ac_dir=.
8264 if test -f $ac_dir/${ac_tool_prefix}file; then
8265 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8266 if test -n "$file_magic_test_file"; then
8267 case $deplibs_check_method in
8269 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
8270 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8271 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8272 $EGREP "$file_magic_regex" > /dev/null; then
8277 *** Warning: the command libtool uses to detect shared libraries,
8278 *** $file_magic_cmd, produces output that libtool cannot recognize.
8279 *** The result is that libtool may fail to recognize shared libraries
8280 *** as such. This will affect the creation of libtool libraries that
8281 *** depend on shared libraries, but programs linked with such libtool
8282 *** libraries will work regardless of this problem. Nevertheless, you
8283 *** may want to report the problem to your system manager and/or to
8284 *** bug-libtool@gnu.org
8294 MAGIC_CMD="$lt_save_MAGIC_CMD"
8299 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8300 if test -n "$MAGIC_CMD"; then
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
8302 $as_echo "$MAGIC_CMD" >&6; }
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8305 $as_echo "no
" >&6; }
8312 if test -z "$lt_cv_path_MAGIC_CMD"; then
8313 if test -n "$ac_tool_prefix"; then
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
8315 $as_echo_n "checking
for file...
" >&6; }
8316 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8317 $as_echo_n "(cached
) " >&6
8321 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8324 lt_save_MAGIC_CMD="$MAGIC_CMD"
8325 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8326 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
8327 for ac_dir in $ac_dummy; do
8329 test -z "$ac_dir" && ac_dir=.
8330 if test -f $ac_dir/file; then
8331 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8332 if test -n "$file_magic_test_file"; then
8333 case $deplibs_check_method in
8335 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
8336 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8337 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8338 $EGREP "$file_magic_regex" > /dev/null; then
8343 *** Warning: the command libtool uses to detect shared libraries,
8344 *** $file_magic_cmd, produces output that libtool cannot recognize.
8345 *** The result is that libtool may fail to recognize shared libraries
8346 *** as such. This will affect the creation of libtool libraries that
8347 *** depend on shared libraries, but programs linked with such libtool
8348 *** libraries will work regardless of this problem. Nevertheless, you
8349 *** may want to report the problem to your system manager and/or to
8350 *** bug-libtool@gnu.org
8360 MAGIC_CMD="$lt_save_MAGIC_CMD"
8365 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8366 if test -n "$MAGIC_CMD"; then
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
8368 $as_echo "$MAGIC_CMD" >&6; }
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8371 $as_echo "no
" >&6; }
8384 # Use C for the default configuration in the libtool script
8388 ac_cpp='$CPP $CPPFLAGS'
8389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8394 # Source file extension for C test sources.
8397 # Object file extension for compiled C test sources.
8401 # Code to be used in simple compile tests
8402 lt_simple_compile_test_code="int some_variable
= 0;"
8404 # Code to be used in simple link tests
8405 lt_simple_link_test_code='int main(){return(0);}'
8413 # If no C compiler was specified, use CC.
8416 # If no C compiler flags were specified, use CFLAGS.
8417 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8419 # Allow CC to be a program name with arguments.
8422 # Save the default compiler, since it gets overwritten when the other
8423 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8424 compiler_DEFAULT=$CC
8426 # save warnings/boilerplate of simple test code
8427 ac_outfile=conftest.$ac_objext
8428 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8429 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8430 _lt_compiler_boilerplate=`cat conftest.err`
8433 ac_outfile=conftest.$ac_objext
8434 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8435 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8436 _lt_linker_boilerplate=`cat conftest.err`
8441 ## There is no encapsulation within the following macros, do not change
8442 ## the running order or otherwise move them around unless you know exactly
8443 ## what you are doing...
8444 if test -n "$compiler"; then
8446 lt_prog_compiler_no_builtin_flag=
8448 if test "$GCC" = yes; then
8449 case $cc_basename in
8451 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8453 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
8457 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
8458 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8459 $as_echo_n "(cached
) " >&6
8461 lt_cv_prog_compiler_rtti_exceptions=no
8462 ac_outfile=conftest.$ac_objext
8463 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8464 lt_compiler_flag="-fno-rtti -fno-exceptions"
8465 # Insert the option either (1) after the last *FLAGS variable, or
8466 # (2) before a word containing "conftest.
", or (3) at the end.
8467 # Note that $ac_compile itself does not contain backslashes and begins
8468 # with a dollar sign (not a hyphen), so the echo should work correctly.
8469 # The option is referenced via a variable to avoid confusing sed.
8470 lt_compile=`echo "$ac_compile" | $SED \
8471 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8472 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8473 -e 's:$: $lt_compiler_flag:'`
8474 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
8475 (eval "$lt_compile" 2>conftest.err)
8477 cat conftest.err >&5
8478 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8479 if (exit $ac_status) && test -s "$ac_outfile"; then
8480 # The compiler can only warn and ignore the option if not recognized
8481 # So say no if there are warnings other than the usual output.
8482 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8483 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8484 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8485 lt_cv_prog_compiler_rtti_exceptions=yes
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
8492 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8494 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8495 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8507 lt_prog_compiler_wl=
8508 lt_prog_compiler_pic=
8509 lt_prog_compiler_static=
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
8512 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
8514 if test "$GCC" = yes; then
8515 lt_prog_compiler_wl='-Wl,'
8516 lt_prog_compiler_static='-static'
8520 # All AIX code is PIC.
8521 if test "$host_cpu" = ia64; then
8522 # AIX 5 now supports IA64 processor
8523 lt_prog_compiler_static='-Bstatic'
8525 lt_prog_compiler_pic='-fPIC'
8531 # see comment about AmigaOS4 .so support
8532 lt_prog_compiler_pic='-fPIC'
8535 # FIXME: we need at least 68020 code to build shared libraries, but
8536 # adding the `-m68020' flag to GCC prevents building anything better,
8538 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8543 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8544 # PIC is the default for these OSes.
8547 mingw* | cygwin* | pw32* | os2* | cegcc*)
8548 # This hack is so that the source file can tell whether it is being
8549 # built for inclusion in a dll (and should export symbols for example).
8550 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8551 # (--disable-auto-import) libraries
8552 lt_prog_compiler_pic='-DDLL_EXPORT'
8555 darwin* | rhapsody*)
8556 # PIC is the default on this platform
8557 # Common symbols not allowed in MH_DYLIB files
8558 lt_prog_compiler_pic='-fno-common'
8562 # PIC is the default for Haiku.
8563 # The "-static" flag exists, but is broken.
8564 lt_prog_compiler_static=
8568 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8569 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8570 # sets the default TLS model and affects inlining.
8576 lt_prog_compiler_pic='-fPIC'
8582 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8583 # Instead, we relocate shared libraries at runtime.
8587 # Just because we use GCC doesn't mean we suddenly get shared libraries
8588 # on systems that don't support them.
8589 lt_prog_compiler_can_build_shared=no
8594 # QNX uses GNU C++, but need to define -shared option too, otherwise
8596 lt_prog_compiler_pic='-fPIC -shared'
8600 if test -d /usr/nec; then
8601 lt_prog_compiler_pic=-Kconform_pic
8606 lt_prog_compiler_pic='-fPIC'
8610 case $cc_basename in
8611 nvcc*) # Cuda Compiler Driver 2.2
8612 lt_prog_compiler_wl='-Xlinker '
8613 lt_prog_compiler_pic='-Xcompiler -fPIC'
8617 # PORTME Check for flag to pass linker flags through the system compiler.
8620 lt_prog_compiler_wl='-Wl,'
8621 if test "$host_cpu" = ia64; then
8622 # AIX 5 now supports IA64 processor
8623 lt_prog_compiler_static='-Bstatic'
8625 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8629 mingw* | cygwin* | pw32* | os2* | cegcc*)
8630 # This hack is so that the source file can tell whether it is being
8631 # built for inclusion in a dll (and should export symbols for example).
8632 lt_prog_compiler_pic='-DDLL_EXPORT'
8635 hpux9* | hpux10* | hpux11*)
8636 lt_prog_compiler_wl='-Wl,'
8637 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8644 lt_prog_compiler_pic='+Z'
8647 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8648 lt_prog_compiler_static='${wl}-a ${wl}archive'
8651 irix5* | irix6* | nonstopux*)
8652 lt_prog_compiler_wl='-Wl,'
8653 # PIC (with -KPIC) is the default.
8654 lt_prog_compiler_static='-non_shared'
8657 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8658 case $cc_basename in
8659 # old Intel for x86_64 which still supported -KPIC.
8661 lt_prog_compiler_wl='-Wl,'
8662 lt_prog_compiler_pic='-KPIC'
8663 lt_prog_compiler_static='-static'
8665 # icc used to be incompatible with GCC.
8666 # ICC 10 doesn't accept -KPIC any more.
8668 lt_prog_compiler_wl='-Wl,'
8669 lt_prog_compiler_pic='-fPIC'
8670 lt_prog_compiler_static='-static'
8672 # Lahey Fortran 8.1.
8674 lt_prog_compiler_wl='-Wl,'
8675 lt_prog_compiler_pic='--shared'
8676 lt_prog_compiler_static='--static'
8678 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8679 # Portland Group compilers (*not* the Pentium gcc compiler,
8680 # which looks to be a dead project)
8681 lt_prog_compiler_wl='-Wl,'
8682 lt_prog_compiler_pic='-fpic'
8683 lt_prog_compiler_static='-Bstatic'
8686 lt_prog_compiler_wl='-Wl,'
8687 # All Alpha code is PIC.
8688 lt_prog_compiler_static='-non_shared'
8690 xl* | bgxl* | bgf* | mpixl*)
8691 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8692 lt_prog_compiler_wl='-Wl,'
8693 lt_prog_compiler_pic='-qpic'
8694 lt_prog_compiler_static='-qstaticlink'
8697 case `$CC -V 2>&1 | sed 5q` in
8698 *Sun\ F* | *Sun*Fortran*)
8699 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8700 lt_prog_compiler_pic='-KPIC'
8701 lt_prog_compiler_static='-Bstatic'
8702 lt_prog_compiler_wl=''
8706 lt_prog_compiler_pic='-KPIC'
8707 lt_prog_compiler_static='-Bstatic'
8708 lt_prog_compiler_wl='-Wl,'
8716 lt_prog_compiler_pic='-KPIC'
8717 lt_prog_compiler_static='-Bstatic'
8721 # QNX uses GNU C++, but need to define -shared option too, otherwise
8723 lt_prog_compiler_pic='-fPIC -shared'
8726 osf3* | osf4* | osf5*)
8727 lt_prog_compiler_wl='-Wl,'
8728 # All OSF/1 code is PIC.
8729 lt_prog_compiler_static='-non_shared'
8733 lt_prog_compiler_static='-non_shared'
8737 lt_prog_compiler_pic='-KPIC'
8738 lt_prog_compiler_static='-Bstatic'
8739 case $cc_basename in
8741 lt_prog_compiler_wl='-Qoption ld ';;
8743 lt_prog_compiler_wl='-Wl,';;
8748 lt_prog_compiler_wl='-Qoption ld '
8749 lt_prog_compiler_pic='-PIC'
8750 lt_prog_compiler_static='-Bstatic'
8753 sysv4 | sysv4.2uw2* | sysv4.3*)
8754 lt_prog_compiler_wl='-Wl,'
8755 lt_prog_compiler_pic='-KPIC'
8756 lt_prog_compiler_static='-Bstatic'
8760 if test -d /usr/nec ;then
8761 lt_prog_compiler_pic='-Kconform_pic'
8762 lt_prog_compiler_static='-Bstatic'
8766 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8767 lt_prog_compiler_wl='-Wl,'
8768 lt_prog_compiler_pic='-KPIC'
8769 lt_prog_compiler_static='-Bstatic'
8773 lt_prog_compiler_wl='-Wl,'
8774 lt_prog_compiler_can_build_shared=no
8778 lt_prog_compiler_pic='-pic'
8779 lt_prog_compiler_static='-Bstatic'
8783 lt_prog_compiler_can_build_shared=no
8789 # For platforms which do not support PIC, -DPIC is meaningless:
8791 lt_prog_compiler_pic=
8794 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
8798 $as_echo "$lt_prog_compiler_pic" >&6; }
8806 # Check to make sure the PIC flag actually works.
8808 if test -n "$lt_prog_compiler_pic"; then
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
8810 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
8811 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8812 $as_echo_n "(cached
) " >&6
8814 lt_cv_prog_compiler_pic_works=no
8815 ac_outfile=conftest.$ac_objext
8816 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8817 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8818 # Insert the option either (1) after the last *FLAGS variable, or
8819 # (2) before a word containing "conftest.
", or (3) at the end.
8820 # Note that $ac_compile itself does not contain backslashes and begins
8821 # with a dollar sign (not a hyphen), so the echo should work correctly.
8822 # The option is referenced via a variable to avoid confusing sed.
8823 lt_compile=`echo "$ac_compile" | $SED \
8824 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8825 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8826 -e 's:$: $lt_compiler_flag:'`
8827 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
8828 (eval "$lt_compile" 2>conftest.err)
8830 cat conftest.err >&5
8831 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8832 if (exit $ac_status) && test -s "$ac_outfile"; then
8833 # The compiler can only warn and ignore the option if not recognized
8834 # So say no if there are warnings other than the usual output.
8835 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8836 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8837 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8838 lt_cv_prog_compiler_pic_works=yes
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
8845 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8847 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8848 case $lt_prog_compiler_pic in
8850 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8853 lt_prog_compiler_pic=
8854 lt_prog_compiler_can_build_shared=no
8865 # Check to make sure the static flag actually works.
8867 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
8869 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
8870 if ${lt_cv_prog_compiler_static_works+:} false; then :
8871 $as_echo_n "(cached
) " >&6
8873 lt_cv_prog_compiler_static_works=no
8874 save_LDFLAGS="$LDFLAGS"
8875 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8876 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8877 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8878 # The linker can only warn and ignore the option if not recognized
8879 # So say no if there are warnings
8880 if test -s conftest.err; then
8881 # Append any errors to the config.log.
8882 cat conftest.err 1>&5
8883 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8884 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8885 if diff conftest.exp conftest.er2 >/dev/null; then
8886 lt_cv_prog_compiler_static_works=yes
8889 lt_cv_prog_compiler_static_works=yes
8893 LDFLAGS="$save_LDFLAGS"
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
8897 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8899 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8902 lt_prog_compiler_static=
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
8912 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
8913 if ${lt_cv_prog_compiler_c_o+:} false; then :
8914 $as_echo_n "(cached
) " >&6
8916 lt_cv_prog_compiler_c_o=no
8917 $RM -r conftest 2>/dev/null
8921 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8923 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
8924 # Insert the option either (1) after the last *FLAGS variable, or
8925 # (2) before a word containing "conftest.
", or (3) at the end.
8926 # Note that $ac_compile itself does not contain backslashes and begins
8927 # with a dollar sign (not a hyphen), so the echo should work correctly.
8928 lt_compile=`echo "$ac_compile" | $SED \
8929 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8930 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8931 -e 's:$: $lt_compiler_flag:'`
8932 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
8933 (eval "$lt_compile" 2>out/conftest.err)
8935 cat out/conftest.err >&5
8936 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8937 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8939 # The compiler can only warn and ignore the option if not recognized
8940 # So say no if there are warnings
8941 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8942 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8943 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8944 lt_cv_prog_compiler_c_o=yes
8949 # SGI C++ compiler will create directory out/ii_files/ for
8950 # template instantiation
8951 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8952 $RM out/* && rmdir out
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
8959 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
8967 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
8968 if ${lt_cv_prog_compiler_c_o+:} false; then :
8969 $as_echo_n "(cached
) " >&6
8971 lt_cv_prog_compiler_c_o=no
8972 $RM -r conftest 2>/dev/null
8976 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8978 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
8979 # Insert the option either (1) after the last *FLAGS variable, or
8980 # (2) before a word containing "conftest.
", or (3) at the end.
8981 # Note that $ac_compile itself does not contain backslashes and begins
8982 # with a dollar sign (not a hyphen), so the echo should work correctly.
8983 lt_compile=`echo "$ac_compile" | $SED \
8984 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8985 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8986 -e 's:$: $lt_compiler_flag:'`
8987 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
8988 (eval "$lt_compile" 2>out/conftest.err)
8990 cat out/conftest.err >&5
8991 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8992 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8994 # The compiler can only warn and ignore the option if not recognized
8995 # So say no if there are warnings
8996 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8997 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8998 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8999 lt_cv_prog_compiler_c_o=yes
9004 # SGI C++ compiler will create directory out/ii_files/ for
9005 # template instantiation
9006 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9007 $RM out/* && rmdir out
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
9014 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9019 hard_links="nottested
"
9020 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9021 # do not overwrite the value of need_locks provided by the user
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
9023 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
9026 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9028 ln conftest.a conftest.b 2>&5 || hard_links=no
9029 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
9031 $as_echo "$hard_links" >&6; }
9032 if test "$hard_links" = no; then
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
9034 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
9047 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
9050 allow_undefined_flag=
9051 always_export_symbols=no
9053 archive_expsym_cmds=
9054 compiler_needs_object=no
9055 enable_shared_with_static_runtimes=no
9056 export_dynamic_flag_spec=
9057 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9058 hardcode_automatic=no
9060 hardcode_direct_absolute=no
9061 hardcode_libdir_flag_spec=
9062 hardcode_libdir_flag_spec_ld=
9063 hardcode_libdir_separator=
9065 hardcode_shlibpath_var=unsupported
9067 link_all_deplibs=unknown
9070 old_archive_from_new_cmds=
9071 old_archive_from_expsyms_cmds=
9072 thread_safe_flag_spec=
9073 whole_archive_flag_spec=
9074 # include_expsyms should be a list of space-separated symbols to be *always*
9075 # included in the symbol list
9077 # exclude_expsyms can be an extended regexp of symbols to exclude
9078 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9079 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9080 # as well as any symbol that contains `d'.
9081 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9082 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9083 # platforms (ab)use it in PIC code, but their linkers get confused if
9084 # the symbol is explicitly referenced. Since portable code cannot
9085 # rely on this symbol name, it's probably fine to never include it in
9086 # preloaded symbol tables.
9087 # Exclude shared library initialization/finalization symbols.
9088 extract_expsyms_cmds=
9091 cygwin* | mingw* | pw32* | cegcc*)
9092 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9093 # When not using gcc, we currently assume that we are using
9094 # Microsoft Visual C++.
9095 if test "$GCC" != yes; then
9100 # we just hope/assume this is gcc and not c89 (= MSVC++)
9110 # On some targets, GNU ld is compatible enough with the native linker
9111 # that we're better off using the native interface for both.
9112 lt_use_gnu_ld_interface=no
9113 if test "$with_gnu_ld" = yes; then
9116 # The AIX port of GNU ld has always aspired to compatibility
9117 # with the native linker. However, as the warning in the GNU ld
9118 # block says, versions before 2.19.5* couldn't really create working
9119 # shared libraries, regardless of the interface used.
9120 case `$LD -v 2>&1` in
9121 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9122 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9123 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9125 lt_use_gnu_ld_interface=yes
9130 lt_use_gnu_ld_interface=yes
9135 if test "$lt_use_gnu_ld_interface" = yes; then
9136 # If archive_cmds runs LD, not CC, wlarc should be empty
9139 # Set some defaults for GNU ld with shared library support. These
9140 # are reset later if shared libraries are not supported. Putting them
9141 # here allows them to be overridden if necessary.
9142 runpath_var=LD_RUN_PATH
9143 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9144 export_dynamic_flag_spec='${wl}--export-dynamic'
9145 # ancient GNU ld didn't support --whole-archive et. al.
9146 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9147 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9149 whole_archive_flag_spec=
9151 supports_anon_versioning=no
9152 case `$LD -v 2>&1` in
9153 *GNU\ gold*) supports_anon_versioning=yes ;;
9154 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9155 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9156 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9157 *\ 2.11.*) ;; # other 2.11 versions
9158 *) supports_anon_versioning=yes ;;
9161 # See if GNU ld supports shared libraries.
9164 # On AIX/PPC, the GNU linker is very broken
9165 if test "$host_cpu" != ia64; then
9169 *** Warning: the GNU linker, at least up to release 2.19, is reported
9170 *** to be unable to reliably create shared libraries on AIX.
9171 *** Therefore, libtool is disabling shared libraries support. If you
9172 *** really care for shared libraries, you may want to install binutils
9173 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9174 *** You will then need to restart the configuration process.
9183 # see comment about AmigaOS4 .so support
9184 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9185 archive_expsym_cmds=''
9188 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)'
9189 hardcode_libdir_flag_spec
='-L$libdir'
9190 hardcode_minus_L
=yes
9196 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9197 allow_undefined_flag
=unsupported
9198 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9199 # support --undefined. This deserves some investigation. FIXME
9200 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9206 cygwin
* | mingw
* | pw32
* | cegcc
*)
9207 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9208 # as there is no search path for DLLs.
9209 hardcode_libdir_flag_spec
='-L$libdir'
9210 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9211 allow_undefined_flag
=unsupported
9212 always_export_symbols
=no
9213 enable_shared_with_static_runtimes
=yes
9214 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9216 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9217 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9218 # If the export-symbols file already is a .def file (1st line
9219 # is EXPORTS), use it as is; otherwise, prepend...
9220 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9221 cp $export_symbols $output_objdir/$soname.def;
9223 echo EXPORTS > $output_objdir/$soname.def;
9224 cat $export_symbols >> $output_objdir/$soname.def;
9226 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9233 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9234 link_all_deplibs
=yes
9239 hardcode_shlibpath_var
=no
9240 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9241 export_dynamic_flag_spec
='${wl}-E'
9242 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9243 # Instead, shared libraries are loaded at an image base (0x10000000 by
9244 # default) and relocated if they conflict, which is a slow very memory
9245 # consuming and fragmenting process. To avoid this, we pick a random,
9246 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9247 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9248 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9249 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'
9252 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
9254 if test "$host_os" = linux-dietlibc
; then
9255 case $cc_basename in
9256 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9259 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9260 && test "$tmp_diet" = no
9262 tmp_addflag
=' $pic_flag'
9263 tmp_sharedflag
='-shared'
9264 case $cc_basename,$host_cpu in
9265 pgcc
*) # Portland Group C compiler
9266 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'
9267 tmp_addflag
=' $pic_flag'
9269 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9270 # Portland Group f77 and f90 compilers
9271 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'
9272 tmp_addflag
=' $pic_flag -Mnomain' ;;
9273 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9274 tmp_addflag
=' -i_dynamic' ;;
9275 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9276 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9277 ifc
* | ifort
*) # Intel Fortran compiler
9278 tmp_addflag
=' -nofor_main' ;;
9279 lf95
*) # Lahey Fortran 8.1
9280 whole_archive_flag_spec
=
9281 tmp_sharedflag
='--shared' ;;
9282 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9283 tmp_sharedflag
='-qmkshrobj'
9285 nvcc
*) # Cuda Compiler Driver 2.2
9286 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'
9287 compiler_needs_object
=yes
9290 case `$CC -V 2>&1 | sed 5q` in
9291 *Sun\ C
*) # Sun C 5.9
9292 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'
9293 compiler_needs_object
=yes
9294 tmp_sharedflag
='-G' ;;
9295 *Sun\ F
*) # Sun Fortran 8.3
9296 tmp_sharedflag
='-G' ;;
9298 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9300 if test "x$supports_anon_versioning" = xyes
; then
9301 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9302 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9303 echo "local: *; };" >> $output_objdir/$libname.ver~
9304 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9307 case $cc_basename in
9308 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9309 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9310 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9311 hardcode_libdir_flag_spec
=
9312 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9313 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9314 if test "x$supports_anon_versioning" = xyes
; then
9315 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9316 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9317 echo "local: *; };" >> $output_objdir/$libname.ver~
9318 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9328 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9329 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9332 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9333 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9338 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9342 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9343 *** create shared libraries on Solaris systems. Therefore, libtool
9344 *** is disabling shared libraries support. We urge you to upgrade GNU
9345 *** binutils to release 2.9.1 or newer. Another option is to modify
9346 *** your PATH or compiler configuration so that the native linker is
9347 *** used, and then restart.
9350 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9351 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9352 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9358 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9359 case `$LD -v 2>&1` in
9360 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9364 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9365 *** reliably create shared libraries on SCO systems. Therefore, libtool
9366 *** is disabling shared libraries support. We urge you to upgrade GNU
9367 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9368 *** your PATH or compiler configuration so that the native linker is
9369 *** used, and then restart.
9374 # For security reasons, it is highly recommended that you always
9375 # use absolute paths for naming shared libraries, and exclude the
9376 # DT_RUNPATH tag from executables and libraries. But doing so
9377 # requires that you compile everything twice, which is a pain.
9378 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9379 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9380 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9381 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9390 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9393 hardcode_shlibpath_var
=no
9397 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9398 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9399 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9406 if test "$ld_shlibs" = no
; then
9408 hardcode_libdir_flag_spec
=
9409 export_dynamic_flag_spec
=
9410 whole_archive_flag_spec
=
9413 # PORTME fill in a description of your system's linker (not GNU ld)
9416 allow_undefined_flag
=unsupported
9417 always_export_symbols
=yes
9418 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'
9419 # Note: this linker hardcodes the directories in LIBPATH if there
9420 # are no directories specified by -L.
9421 hardcode_minus_L
=yes
9422 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9423 # Neither direct hardcoding nor static linking is supported with a
9425 hardcode_direct
=unsupported
9430 if test "$host_cpu" = ia64
; then
9431 # On IA64, the linker does run time linking by default, so we don't
9432 # have to do anything special.
9433 aix_use_runtimelinking
=no
9434 exp_sym_flag
='-Bexport'
9437 # If we're using GNU nm, then we don't want the "-C" option.
9438 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9439 # Also, AIX nm treats weak defined symbols like other global
9440 # defined symbols, whereas GNU nm marks them as "W".
9441 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9442 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'
9444 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'
9446 aix_use_runtimelinking
=no
9448 # Test if we are trying to use run time linking or normal
9449 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9450 # need to do runtime linking.
9451 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9452 for ld_flag
in $LDFLAGS; do
9453 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9454 aix_use_runtimelinking
=yes
9461 exp_sym_flag
='-bexport'
9462 no_entry_flag
='-bnoentry'
9465 # When large executables or shared objects are built, AIX ld can
9466 # have problems creating the table of contents. If linking a library
9467 # or program results in "error TOC overflow" add -mminimal-toc to
9468 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9469 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9473 hardcode_direct_absolute
=yes
9474 hardcode_libdir_separator
=':'
9475 link_all_deplibs
=yes
9476 file_list_spec
='${wl}-f,'
9478 if test "$GCC" = yes; then
9479 case $host_os in aix4.
[012]|aix4.
[012].
*)
9480 # We only want to do this on AIX 4.2 and lower, the check
9481 # below for broken collect2 doesn't work under 4.3+
9482 collect2name
=`${CC} -print-prog-name=collect2`
9483 if test -f "$collect2name" &&
9484 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9486 # We have reworked collect2
9489 # We have old collect2
9490 hardcode_direct
=unsupported
9491 # It fails to find uninstalled libraries when the uninstalled
9492 # path is not listed in the libpath. Setting hardcode_minus_L
9493 # to unsupported forces relinking
9494 hardcode_minus_L
=yes
9495 hardcode_libdir_flag_spec
='-L$libdir'
9496 hardcode_libdir_separator
=
9500 shared_flag
='-shared'
9501 if test "$aix_use_runtimelinking" = yes; then
9502 shared_flag
="$shared_flag "'${wl}-G'
9506 if test "$host_cpu" = ia64
; then
9507 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9508 # chokes on -Wl,-G. The following line is correct:
9511 if test "$aix_use_runtimelinking" = yes; then
9512 shared_flag
='${wl}-G'
9514 shared_flag
='${wl}-bM:SRE'
9519 export_dynamic_flag_spec
='${wl}-bexpall'
9520 # It seems that -bexpall does not export symbols beginning with
9521 # underscore (_), so it is better to generate a list of symbols to export.
9522 always_export_symbols
=yes
9523 if test "$aix_use_runtimelinking" = yes; then
9524 # Warning - without using the other runtime loading flags (-brtl),
9525 # -berok will link without error, but may produce a broken library.
9526 allow_undefined_flag
='-berok'
9527 # Determine the default libpath from the value encoded in an
9529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9530 /* end confdefs.h. */
9540 if ac_fn_c_try_link
"$LINENO"; then :
9542 lt_aix_libpath_sed
='
9543 /Import File Strings/,/^$/ {
9549 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9550 # Check for a 64-bit object if we didn't find anything.
9551 if test -z "$aix_libpath"; then
9552 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9555 rm -f core conftest.err conftest.
$ac_objext \
9556 conftest
$ac_exeext conftest.
$ac_ext
9557 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9559 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9560 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"
9562 if test "$host_cpu" = ia64
; then
9563 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9564 allow_undefined_flag
="-z nodefs"
9565 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"
9567 # Determine the default libpath from the value encoded in an
9569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9570 /* end confdefs.h. */
9580 if ac_fn_c_try_link
"$LINENO"; then :
9582 lt_aix_libpath_sed
='
9583 /Import File Strings/,/^$/ {
9589 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9590 # Check for a 64-bit object if we didn't find anything.
9591 if test -z "$aix_libpath"; then
9592 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9595 rm -f core conftest.err conftest.
$ac_objext \
9596 conftest
$ac_exeext conftest.
$ac_ext
9597 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9599 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9600 # Warning - without using the other run time loading flags,
9601 # -berok will link without error, but may produce a broken library.
9602 no_undefined_flag
=' ${wl}-bernotok'
9603 allow_undefined_flag
=' ${wl}-berok'
9604 if test "$with_gnu_ld" = yes; then
9605 # We only use this code for GNU lds that support --whole-archive.
9606 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9608 # Exported symbols can be pulled into shared objects from archives
9609 whole_archive_flag_spec
='$convenience'
9611 archive_cmds_need_lc
=yes
9612 # This is similar to how AIX traditionally builds its shared libraries.
9613 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'
9621 # see comment about AmigaOS4 .so support
9622 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9623 archive_expsym_cmds
=''
9626 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)'
9627 hardcode_libdir_flag_spec
='-L$libdir'
9628 hardcode_minus_L
=yes
9634 export_dynamic_flag_spec
=-rdynamic
9637 cygwin
* | mingw
* | pw32
* | cegcc
*)
9638 # When not using gcc, we currently assume that we are using
9639 # Microsoft Visual C++.
9640 # hardcode_libdir_flag_spec is actually meaningless, as there is
9641 # no search path for DLLs.
9642 hardcode_libdir_flag_spec
=' '
9643 allow_undefined_flag
=unsupported
9644 # Tell ltmain to make .lib files, not .a files.
9646 # Tell ltmain to make .dll files, not .so files.
9648 # FIXME: Setting linknames here is a bad hack.
9649 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9650 # The linker will automatically build a .lib file if we build a DLL.
9651 old_archive_from_new_cmds
='true'
9652 # FIXME: Should let the user specify the lib program.
9653 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9654 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9655 enable_shared_with_static_runtimes
=yes
9658 darwin
* | rhapsody
*)
9661 archive_cmds_need_lc
=no
9663 hardcode_automatic
=yes
9664 hardcode_shlibpath_var
=unsupported
9665 if test "$lt_cv_ld_force_load" = "yes"; then
9666 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\"`'
9668 whole_archive_flag_spec
=''
9670 link_all_deplibs
=yes
9671 allow_undefined_flag
="$_lt_dar_allow_undefined"
9672 case $cc_basename in
9673 ifort
*) _lt_dar_can_shared
=yes ;;
9674 *) _lt_dar_can_shared
=$GCC ;;
9676 if test "$_lt_dar_can_shared" = "yes"; then
9677 output_verbose_link_cmd
=func_echo_all
9678 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9679 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9680 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}"
9681 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}"
9690 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9691 hardcode_libdir_flag_spec
='-L$libdir'
9692 hardcode_shlibpath_var
=no
9695 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9696 # support. Future versions do this automatically, but an explicit c++rt0.o
9697 # does not break anything, and helps significantly (at the cost of a little
9700 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9701 hardcode_libdir_flag_spec
='-R$libdir'
9703 hardcode_shlibpath_var
=no
9706 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9708 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9710 hardcode_minus_L
=yes
9711 hardcode_shlibpath_var
=no
9714 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9715 freebsd
* | dragonfly
*)
9716 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9717 hardcode_libdir_flag_spec
='-R$libdir'
9719 hardcode_shlibpath_var
=no
9723 if test "$GCC" = yes; then
9724 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'
9726 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'
9728 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9729 hardcode_libdir_separator
=:
9732 # hardcode_minus_L: Not really in the search PATH,
9733 # but as the default location of the library.
9734 hardcode_minus_L
=yes
9735 export_dynamic_flag_spec
='${wl}-E'
9739 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9740 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9742 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9744 if test "$with_gnu_ld" = no
; then
9745 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9746 hardcode_libdir_flag_spec_ld
='+b $libdir'
9747 hardcode_libdir_separator
=:
9749 hardcode_direct_absolute
=yes
9750 export_dynamic_flag_spec
='${wl}-E'
9751 # hardcode_minus_L: Not really in the search PATH,
9752 # but as the default location of the library.
9753 hardcode_minus_L
=yes
9758 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9761 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9764 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9767 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9773 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9776 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9780 # Older versions of the 11.00 compiler do not understand -b yet
9781 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9783 $as_echo_n "checking if $CC understands -b... " >&6; }
9784 if ${lt_cv_prog_compiler__b+:} false
; then :
9785 $as_echo_n "(cached) " >&6
9787 lt_cv_prog_compiler__b
=no
9788 save_LDFLAGS
="$LDFLAGS"
9789 LDFLAGS
="$LDFLAGS -b"
9790 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9791 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9792 # The linker can only warn and ignore the option if not recognized
9793 # So say no if there are warnings
9794 if test -s conftest.err
; then
9795 # Append any errors to the config.log.
9796 cat conftest.err
1>&5
9797 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9798 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9799 if diff conftest.exp conftest.er2
>/dev
/null
; then
9800 lt_cv_prog_compiler__b
=yes
9803 lt_cv_prog_compiler__b
=yes
9807 LDFLAGS
="$save_LDFLAGS"
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9811 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9813 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9814 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9816 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9822 if test "$with_gnu_ld" = no
; then
9823 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9824 hardcode_libdir_separator
=:
9829 hardcode_shlibpath_var
=no
9833 hardcode_direct_absolute
=yes
9834 export_dynamic_flag_spec
='${wl}-E'
9836 # hardcode_minus_L: Not really in the search PATH,
9837 # but as the default location of the library.
9838 hardcode_minus_L
=yes
9844 irix5
* | irix6
* | nonstopux
*)
9845 if test "$GCC" = yes; then
9846 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'
9847 # Try to use the -exported_symbol ld option, if it does not
9848 # work, assume that -exports_file does not work either and
9849 # implicitly export all symbols.
9850 save_LDFLAGS
="$LDFLAGS"
9851 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9853 /* end confdefs.h. */
9856 if ac_fn_c_try_link
"$LINENO"; then :
9857 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'
9860 rm -f core conftest.err conftest.
$ac_objext \
9861 conftest
$ac_exeext conftest.
$ac_ext
9862 LDFLAGS
="$save_LDFLAGS"
9864 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'
9865 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'
9867 archive_cmds_need_lc
='no'
9868 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9869 hardcode_libdir_separator
=:
9871 link_all_deplibs
=yes
9875 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9876 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9878 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9880 hardcode_libdir_flag_spec
='-R$libdir'
9882 hardcode_shlibpath_var
=no
9886 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9888 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9889 hardcode_libdir_separator
=:
9890 hardcode_shlibpath_var
=no
9897 if test -f /usr
/libexec
/ld.so
; then
9899 hardcode_shlibpath_var
=no
9900 hardcode_direct_absolute
=yes
9901 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9902 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9903 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9904 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9905 export_dynamic_flag_spec
='${wl}-E'
9908 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9909 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9910 hardcode_libdir_flag_spec
='-R$libdir'
9913 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9914 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9924 hardcode_libdir_flag_spec
='-L$libdir'
9925 hardcode_minus_L
=yes
9926 allow_undefined_flag
=unsupported
9927 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'
9928 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9932 if test "$GCC" = yes; then
9933 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9934 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'
9936 allow_undefined_flag
=' -expect_unresolved \*'
9937 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'
9939 archive_cmds_need_lc
='no'
9940 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9941 hardcode_libdir_separator
=:
9944 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9945 if test "$GCC" = yes; then
9946 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9947 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'
9948 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9950 allow_undefined_flag
=' -expect_unresolved \*'
9951 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'
9952 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~
9953 $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'
9955 # Both c and cxx compiler support -rpath directly
9956 hardcode_libdir_flag_spec
='-rpath $libdir'
9958 archive_cmds_need_lc
='no'
9959 hardcode_libdir_separator
=:
9963 no_undefined_flag
=' -z defs'
9964 if test "$GCC" = yes; then
9966 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9967 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9968 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9970 case `$CC -V 2>&1` in
9973 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9974 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9975 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9979 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9980 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9981 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9985 hardcode_libdir_flag_spec
='-R$libdir'
9986 hardcode_shlibpath_var
=no
9988 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
9990 # The compiler driver will combine and reorder linker options,
9991 # but understands `-z linker_flag'. GCC discards it without `$wl',
9992 # but is careful enough not to reorder.
9993 # Supported since Solaris 2.6 (maybe 2.5.1?)
9994 if test "$GCC" = yes; then
9995 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9997 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10001 link_all_deplibs
=yes
10005 if test "x$host_vendor" = xsequent
; then
10006 # Use $CC to link under sequent, because it throws in some extra .o
10007 # files that make .init and .fini sections work.
10008 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10010 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10012 hardcode_libdir_flag_spec
='-L$libdir'
10013 hardcode_direct
=yes
10014 hardcode_minus_L
=yes
10015 hardcode_shlibpath_var
=no
10019 case $host_vendor in
10021 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10022 hardcode_direct
=yes # is this really true???
10025 ## LD is ld it makes a PLAMLIB
10026 ## CC just makes a GrossModule.
10027 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10028 reload_cmds
='$CC -r -o $output$reload_objs'
10032 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10033 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10036 runpath_var
='LD_RUN_PATH'
10037 hardcode_shlibpath_var
=no
10041 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10042 hardcode_shlibpath_var
=no
10043 export_dynamic_flag_spec
='-Bexport'
10047 if test -d /usr
/nec
; then
10048 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10049 hardcode_shlibpath_var
=no
10050 runpath_var
=LD_RUN_PATH
10051 hardcode_runpath_var
=yes
10056 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10057 no_undefined_flag
='${wl}-z,text'
10058 archive_cmds_need_lc
=no
10059 hardcode_shlibpath_var
=no
10060 runpath_var
='LD_RUN_PATH'
10062 if test "$GCC" = yes; then
10063 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10064 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10066 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10067 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10071 sysv5
* | sco3.2v5
* | sco5v6
*)
10072 # Note: We can NOT use -z defs as we might desire, because we do not
10073 # link with -lc, and that would cause any symbols used from libc to
10074 # always be unresolved, which means just about no library would
10075 # ever link correctly. If we're not using GNU ld we use -z text
10076 # though, which does catch some bad symbols but isn't as heavy-handed
10078 no_undefined_flag
='${wl}-z,text'
10079 allow_undefined_flag
='${wl}-z,nodefs'
10080 archive_cmds_need_lc
=no
10081 hardcode_shlibpath_var
=no
10082 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10083 hardcode_libdir_separator
=':'
10084 link_all_deplibs
=yes
10085 export_dynamic_flag_spec
='${wl}-Bexport'
10086 runpath_var
='LD_RUN_PATH'
10088 if test "$GCC" = yes; then
10089 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10090 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10092 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10093 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10098 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10099 hardcode_libdir_flag_spec
='-L$libdir'
10100 hardcode_shlibpath_var
=no
10108 if test x
$host_vendor = xsni
; then
10110 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10111 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10118 $as_echo "$ld_shlibs" >&6; }
10119 test "$ld_shlibs" = no
&& can_build_shared
=no
10121 with_gnu_ld
=$with_gnu_ld
10138 # Do we need to explicitly link libc?
10140 case "x$archive_cmds_need_lc" in
10142 # Assume -lc should be added
10143 archive_cmds_need_lc
=yes
10145 if test "$enable_shared" = yes && test "$GCC" = yes; then
10146 case $archive_cmds in
10148 # FIXME: we may have to deal with multi-command sequences.
10151 # Test whether the compiler implicitly links with -lc since on some
10152 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10153 # to ld, don't add -lc before -lgcc.
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10155 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10156 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10157 $as_echo_n "(cached) " >&6
10160 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10162 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10163 (eval $ac_compile) 2>&5
10165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10166 test $ac_status = 0; } 2>conftest.err
; then
10169 libobjs
=conftest.
$ac_objext
10171 wl
=$lt_prog_compiler_wl
10172 pic_flag
=$lt_prog_compiler_pic
10178 lt_save_allow_undefined_flag
=$allow_undefined_flag
10179 allow_undefined_flag
=
10180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10181 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10184 test $ac_status = 0; }
10186 lt_cv_archive_cmds_need_lc
=no
10188 lt_cv_archive_cmds_need_lc
=yes
10190 allow_undefined_flag
=$lt_save_allow_undefined_flag
10192 cat conftest.err
1>&5
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10198 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10199 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10363 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10365 if test "$GCC" = yes; then
10367 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10368 *) lt_awk_arg
="/^libraries:/" ;;
10371 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10372 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10374 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10375 case $lt_search_path_spec in
10377 # if the path contains ";" then we assume it to be the separator
10378 # otherwise default to the standard path separator (i.e. ":") - it is
10379 # assumed that no part of a normal pathname contains ";" but that should
10380 # okay in the real world where ";" in dirpaths is itself problematic.
10381 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10384 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10387 # Ok, now we have the path, separated by spaces, we can step through it
10388 # and add multilib dir if necessary.
10389 lt_tmp_lt_search_path_spec
=
10390 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10391 for lt_sys_path
in $lt_search_path_spec; do
10392 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10393 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10395 test -d "$lt_sys_path" && \
10396 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10399 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10400 BEGIN {RS=" "; FS="/|\n";} {
10403 for (lt_i = NF; lt_i > 0; lt_i--) {
10404 if ($lt_i != "" && $lt_i != ".") {
10405 if ($lt_i == "..") {
10408 if (lt_count == 0) {
10409 lt_foo="/" $lt_i lt_foo;
10416 if (lt_foo != "") { lt_freq[lt_foo]++; }
10417 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10419 # AWK program above erroneously prepends '/' to C:/dos/paths
10422 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10423 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10425 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10427 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10429 library_names_spec
=
10430 libname_spec
='lib$name'
10434 postuninstall_cmds
=
10438 shlibpath_overrides_runpath
=unknown
10440 dynamic_linker
="$host_os ld.so"
10441 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10442 need_lib_prefix
=unknown
10443 hardcode_into_libs
=no
10445 # when you set need_version to no, make sure it does not cause -set_version
10446 # flags to be left without arguments
10447 need_version
=unknown
10452 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10453 shlibpath_var
=LIBPATH
10455 # AIX 3 has no versioning support, so we append a major version to the name.
10456 soname_spec
='${libname}${release}${shared_ext}$major'
10463 hardcode_into_libs
=yes
10464 if test "$host_cpu" = ia64
; then
10465 # AIX 5 supports IA64
10466 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10467 shlibpath_var
=LD_LIBRARY_PATH
10469 # With GCC up to 2.95.x, collect2 would create an import file
10470 # for dependence libraries. The import file would start with
10471 # the line `#! .'. This would cause the generated library to
10472 # depend on `.', always an invalid library. This was fixed in
10473 # development snapshots of GCC prior to 3.0.
10475 aix4 | aix4.
[01] | aix4.
[01].
*)
10476 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10478 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10481 can_build_shared
=no
10485 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10486 # soname into executable. Probably we can add versioning support to
10487 # collect2, so additional links can be useful in future.
10488 if test "$aix_use_runtimelinking" = yes; then
10489 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10490 # instead of lib<name>.a to let people know that these are not
10491 # typical AIX shared libraries.
10492 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10494 # We preserve .a as extension for shared libraries through AIX4.2
10495 # and later when we are not doing run time linking.
10496 library_names_spec
='${libname}${release}.a $libname.a'
10497 soname_spec
='${libname}${release}${shared_ext}$major'
10499 shlibpath_var
=LIBPATH
10506 # Since July 2007 AmigaOS4 officially supports .so libraries.
10507 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10508 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10511 library_names_spec
='$libname.ixlibrary $libname.a'
10512 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10513 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'
10519 library_names_spec
='${libname}${shared_ext}'
10520 dynamic_linker
="$host_os ld.so"
10521 shlibpath_var
=LIBRARY_PATH
10527 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10528 soname_spec
='${libname}${release}${shared_ext}$major'
10529 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10530 shlibpath_var
=LD_LIBRARY_PATH
10531 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10532 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10533 # the default ld.so.conf also contains /usr/contrib/lib and
10534 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10535 # libtool to hard-code these into programs
10538 cygwin
* | mingw
* | pw32
* | cegcc
*)
10539 version_type
=windows
10544 case $GCC,$host_os in
10545 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10546 library_names_spec
='$libname.dll.a'
10547 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10548 postinstall_cmds
='base_file=`basename \${file}`~
10549 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10550 dldir=$destdir/`dirname \$dlpath`~
10551 test -d \$dldir || mkdir -p \$dldir~
10552 $install_prog $dir/$dlname \$dldir/$dlname~
10553 chmod a+x \$dldir/$dlname~
10554 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10555 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10557 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10558 dlpath=$dir/\$dldll~
10560 shlibpath_overrides_runpath
=yes
10564 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10565 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10567 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10570 # MinGW DLLs use traditional 'lib' prefix
10571 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10574 # pw32 DLLs use 'pw' prefix rather than 'lib'
10575 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10581 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10584 dynamic_linker
='Win32 ld.exe'
10585 # FIXME: first we should search . and the directory the executable is in
10589 darwin
* | rhapsody
*)
10590 dynamic_linker
="$host_os dyld"
10591 version_type
=darwin
10594 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10595 soname_spec
='${libname}${release}${major}$shared_ext'
10596 shlibpath_overrides_runpath
=yes
10597 shlibpath_var
=DYLD_LIBRARY_PATH
10598 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10600 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10601 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10608 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10609 soname_spec
='${libname}${release}${shared_ext}$major'
10610 shlibpath_var
=LD_LIBRARY_PATH
10613 freebsd
* | dragonfly
*)
10614 # DragonFly does not have aout. When/if they implement a new
10615 # versioning mechanism, adjust this.
10616 if test -x /usr
/bin
/objformat
; then
10617 objformat
=`/usr/bin/objformat`
10620 freebsd
[23].
*) objformat
=aout
;;
10621 *) objformat
=elf
;;
10624 version_type
=freebsd-
$objformat
10625 case $version_type in
10627 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10632 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10636 shlibpath_var
=LD_LIBRARY_PATH
10639 shlibpath_overrides_runpath
=yes
10641 freebsd3.
[01]* | freebsdelf3.
[01]*)
10642 shlibpath_overrides_runpath
=yes
10643 hardcode_into_libs
=yes
10645 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10646 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10647 shlibpath_overrides_runpath
=no
10648 hardcode_into_libs
=yes
10650 *) # from 4.6 on, and DragonFly
10651 shlibpath_overrides_runpath
=yes
10652 hardcode_into_libs
=yes
10661 dynamic_linker
="$host_os runtime_loader"
10662 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10663 soname_spec
='${libname}${release}${shared_ext}$major'
10664 shlibpath_var
=LIBRARY_PATH
10665 shlibpath_overrides_runpath
=yes
10666 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10667 hardcode_into_libs
=yes
10670 hpux9
* | hpux10
* | hpux11
*)
10671 # Give a soname corresponding to the major version so that dld.sl refuses to
10672 # link against other versions.
10679 hardcode_into_libs
=yes
10680 dynamic_linker
="$host_os dld.so"
10681 shlibpath_var
=LD_LIBRARY_PATH
10682 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10683 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10684 soname_spec
='${libname}${release}${shared_ext}$major'
10685 if test "X$HPUX_IA64_MODE" = X32
; then
10686 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10688 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10690 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10694 hardcode_into_libs
=yes
10695 dynamic_linker
="$host_os dld.sl"
10696 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10697 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10698 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10699 soname_spec
='${libname}${release}${shared_ext}$major'
10700 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10701 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10705 dynamic_linker
="$host_os dld.sl"
10706 shlibpath_var
=SHLIB_PATH
10707 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10708 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10709 soname_spec
='${libname}${release}${shared_ext}$major'
10712 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10713 postinstall_cmds
='chmod 555 $lib'
10714 # or fails outright, so override atomically:
10715 install_override_mode
=555
10722 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10723 soname_spec
='${libname}${release}${shared_ext}$major'
10724 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10725 shlibpath_var
=LD_LIBRARY_PATH
10726 shlibpath_overrides_runpath
=no
10727 hardcode_into_libs
=yes
10730 irix5
* | irix6
* | nonstopux
*)
10732 nonstopux
*) version_type
=nonstopux
;;
10734 if test "$lt_cv_prog_gnu_ld" = yes; then
10742 soname_spec
='${libname}${release}${shared_ext}$major'
10743 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10745 irix5
* | nonstopux
*)
10746 libsuff
= shlibsuff
=
10749 case $LD in # libtool.m4 will add one of these switches to LD
10750 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10751 libsuff
= shlibsuff
= libmagic
=32-bit;;
10752 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10753 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10754 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10755 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10756 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10760 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10761 shlibpath_overrides_runpath
=no
10762 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10763 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10764 hardcode_into_libs
=yes
10767 # No shared lib support for Linux oldld, aout, or coff.
10768 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10772 # This must be Linux ELF.
10774 # uclinux* changes (here and below) have been submitted to the libtool
10775 # project, but have not yet been accepted: they are GCC-local changes
10776 # for the time being. (See
10777 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10778 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
10782 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10783 soname_spec
='${libname}${release}${shared_ext}$major'
10784 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10785 shlibpath_var
=LD_LIBRARY_PATH
10786 shlibpath_overrides_runpath
=no
10788 # Some binutils ld are patched to set DT_RUNPATH
10789 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
10790 $as_echo_n "(cached) " >&6
10792 lt_cv_shlibpath_overrides_runpath
=no
10793 save_LDFLAGS
=$LDFLAGS
10794 save_libdir
=$libdir
10795 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10796 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10798 /* end confdefs.h. */
10808 if ac_fn_c_try_link
"$LINENO"; then :
10809 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10810 lt_cv_shlibpath_overrides_runpath
=yes
10813 rm -f core conftest.err conftest.
$ac_objext \
10814 conftest
$ac_exeext conftest.
$ac_ext
10815 LDFLAGS
=$save_LDFLAGS
10816 libdir
=$save_libdir
10820 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10822 # This implies no fast_install, which is unacceptable.
10823 # Some rework will be needed to allow for fast_install
10824 # before this can be enabled.
10825 hardcode_into_libs
=yes
10827 # Append ld.so.conf contents to the search path
10828 if test -f /etc
/ld.so.conf
; then
10829 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' ' '`
10830 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10833 # We used to test for /lib/ld.so.1 and disable shared libraries on
10834 # powerpc, because MkLinux only supported shared libraries with the
10835 # GNU dynamic linker. Since this was broken with cross compilers,
10836 # most powerpc-linux boxes support dynamic linking these days and
10837 # people can always --disable-shared, the test was removed, and we
10838 # assume the GNU/Linux dynamic linker is in use.
10839 dynamic_linker
='GNU/Linux ld.so'
10846 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10847 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10848 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10849 dynamic_linker
='NetBSD (a.out) ld.so'
10851 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10852 soname_spec
='${libname}${release}${shared_ext}$major'
10853 dynamic_linker
='NetBSD ld.elf_so'
10855 shlibpath_var
=LD_LIBRARY_PATH
10856 shlibpath_overrides_runpath
=yes
10857 hardcode_into_libs
=yes
10862 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10863 shlibpath_var
=LD_LIBRARY_PATH
10864 shlibpath_overrides_runpath
=yes
10871 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10872 soname_spec
='${libname}${release}${shared_ext}$major'
10873 shlibpath_var
=LD_LIBRARY_PATH
10874 shlibpath_overrides_runpath
=no
10875 hardcode_into_libs
=yes
10876 dynamic_linker
='ldqnx.so'
10881 sys_lib_dlsearch_path_spec
="/usr/lib"
10883 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10885 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10886 *) need_version
=no
;;
10888 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10889 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10890 shlibpath_var
=LD_LIBRARY_PATH
10891 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10893 openbsd2.
[89] | openbsd2.
[89].
*)
10894 shlibpath_overrides_runpath
=no
10897 shlibpath_overrides_runpath
=yes
10901 shlibpath_overrides_runpath
=yes
10906 libname_spec
='$name'
10909 library_names_spec
='$libname${shared_ext} $libname.a'
10910 dynamic_linker
='OS/2 ld.exe'
10911 shlibpath_var
=LIBPATH
10914 osf3
* | osf4
* | osf5
*)
10918 soname_spec
='${libname}${release}${shared_ext}$major'
10919 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10920 shlibpath_var
=LD_LIBRARY_PATH
10921 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10922 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10933 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10934 soname_spec
='${libname}${release}${shared_ext}$major'
10935 shlibpath_var
=LD_LIBRARY_PATH
10936 shlibpath_overrides_runpath
=yes
10937 hardcode_into_libs
=yes
10938 # ldd complains unless libraries are executable
10939 postinstall_cmds
='chmod +x $lib'
10944 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10945 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10946 shlibpath_var
=LD_LIBRARY_PATH
10947 shlibpath_overrides_runpath
=yes
10948 if test "$with_gnu_ld" = yes; then
10956 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10957 soname_spec
='${libname}${release}${shared_ext}$major'
10958 shlibpath_var
=LD_LIBRARY_PATH
10959 case $host_vendor in
10961 shlibpath_overrides_runpath
=no
10963 runpath_var
=LD_RUN_PATH
10971 shlibpath_overrides_runpath
=no
10972 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10978 if test -d /usr
/nec
;then
10980 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10981 soname_spec
='$libname${shared_ext}.$major'
10982 shlibpath_var
=LD_LIBRARY_PATH
10986 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10987 version_type
=freebsd-elf
10990 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10991 soname_spec
='${libname}${release}${shared_ext}$major'
10992 shlibpath_var
=LD_LIBRARY_PATH
10993 shlibpath_overrides_runpath
=yes
10994 hardcode_into_libs
=yes
10995 if test "$with_gnu_ld" = yes; then
10996 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10998 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11001 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11005 sys_lib_dlsearch_path_spec
='/usr/lib'
11009 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11013 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11014 shlibpath_var
=LD_LIBRARY_PATH
11015 shlibpath_overrides_runpath
=no
11016 hardcode_into_libs
=yes
11021 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11022 soname_spec
='${libname}${release}${shared_ext}$major'
11023 shlibpath_var
=LD_LIBRARY_PATH
11026 # Shared libraries for VwWorks, >= 7 only at this stage
11027 # and (fpic) still incompatible with "large" code models
11028 # in a few configurations. Only for RTP mode in any case,
11029 # and upon explicit request at configure time.
11032 case ${with_multisubdir}-${enable_shared} in
11039 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11040 soname_spec
='${libname}${release}${shared_ext}$major'
11041 dynamic_linker
="$host_os module_loader"
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11050 $as_echo "$dynamic_linker" >&6; }
11051 test "$dynamic_linker" = no
&& can_build_shared
=no
11053 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11054 if test "$GCC" = yes; then
11055 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11058 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11059 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
11061 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11062 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11157 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11159 if test -n "$hardcode_libdir_flag_spec" ||
11160 test -n "$runpath_var" ||
11161 test "X$hardcode_automatic" = "Xyes" ; then
11163 # We can hardcode non-existent directories.
11164 if test "$hardcode_direct" != no
&&
11165 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11166 # have to relink, otherwise we might link with an installed library
11167 # when we should be linking with a yet-to-be-installed one
11168 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11169 test "$hardcode_minus_L" != no
; then
11170 # Linking always hardcodes the temporary library directory.
11171 hardcode_action
=relink
11173 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11174 hardcode_action
=immediate
11177 # We cannot hardcode anything, or else we can only hardcode existing
11179 hardcode_action
=unsupported
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11182 $as_echo "$hardcode_action" >&6; }
11184 if test "$hardcode_action" = relink ||
11185 test "$inherit_rpath" = yes; then
11186 # Fast installation is not supported
11187 enable_fast_install
=no
11188 elif test "$shlibpath_overrides_runpath" = yes ||
11189 test "$enable_shared" = no
; then
11190 # Fast installation is not necessary
11191 enable_fast_install
=needless
11199 if test "x$enable_dlopen" != xyes
; then
11200 enable_dlopen
=unknown
11201 enable_dlopen_self
=unknown
11202 enable_dlopen_self_static
=unknown
11209 lt_cv_dlopen
="load_add_on"
11211 lt_cv_dlopen_self
=yes
11214 mingw
* | pw32
* | cegcc
*)
11215 lt_cv_dlopen
="LoadLibrary"
11220 lt_cv_dlopen
="dlopen"
11225 # if libdl is installed we need to link against it
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11227 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11228 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11229 $as_echo_n "(cached) " >&6
11231 ac_check_lib_save_LIBS
=$LIBS
11233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11234 /* end confdefs.h. */
11236 /* Override any GCC internal prototype to avoid an error.
11237 Use char because int might match the return type of a GCC
11238 builtin and then its argument prototype would still apply. */
11251 if ac_fn_c_try_link
"$LINENO"; then :
11252 ac_cv_lib_dl_dlopen
=yes
11254 ac_cv_lib_dl_dlopen
=no
11256 rm -f core conftest.err conftest.
$ac_objext \
11257 conftest
$ac_exeext conftest.
$ac_ext
11258 LIBS
=$ac_check_lib_save_LIBS
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11261 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11262 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11263 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11266 lt_cv_dlopen
="dyld"
11268 lt_cv_dlopen_self
=yes
11275 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11276 if test "x$ac_cv_func_shl_load" = xyes
; then :
11277 lt_cv_dlopen
="shl_load"
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11280 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11281 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11282 $as_echo_n "(cached) " >&6
11284 ac_check_lib_save_LIBS
=$LIBS
11286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11287 /* end confdefs.h. */
11289 /* Override any GCC internal prototype to avoid an error.
11290 Use char because int might match the return type of a GCC
11291 builtin and then its argument prototype would still apply. */
11299 return shl_load ();
11304 if ac_fn_c_try_link
"$LINENO"; then :
11305 ac_cv_lib_dld_shl_load
=yes
11307 ac_cv_lib_dld_shl_load
=no
11309 rm -f core conftest.err conftest.
$ac_objext \
11310 conftest
$ac_exeext conftest.
$ac_ext
11311 LIBS
=$ac_check_lib_save_LIBS
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11314 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11315 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11316 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11318 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11319 if test "x$ac_cv_func_dlopen" = xyes
; then :
11320 lt_cv_dlopen
="dlopen"
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11323 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11324 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11325 $as_echo_n "(cached) " >&6
11327 ac_check_lib_save_LIBS
=$LIBS
11329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11330 /* end confdefs.h. */
11332 /* Override any GCC internal prototype to avoid an error.
11333 Use char because int might match the return type of a GCC
11334 builtin and then its argument prototype would still apply. */
11347 if ac_fn_c_try_link
"$LINENO"; then :
11348 ac_cv_lib_dl_dlopen
=yes
11350 ac_cv_lib_dl_dlopen
=no
11352 rm -f core conftest.err conftest.
$ac_objext \
11353 conftest
$ac_exeext conftest.
$ac_ext
11354 LIBS
=$ac_check_lib_save_LIBS
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11357 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11358 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11359 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11362 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11363 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11364 $as_echo_n "(cached) " >&6
11366 ac_check_lib_save_LIBS
=$LIBS
11367 LIBS
="-lsvld $LIBS"
11368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11369 /* end confdefs.h. */
11371 /* Override any GCC internal prototype to avoid an error.
11372 Use char because int might match the return type of a GCC
11373 builtin and then its argument prototype would still apply. */
11386 if ac_fn_c_try_link
"$LINENO"; then :
11387 ac_cv_lib_svld_dlopen
=yes
11389 ac_cv_lib_svld_dlopen
=no
11391 rm -f core conftest.err conftest.
$ac_objext \
11392 conftest
$ac_exeext conftest.
$ac_ext
11393 LIBS
=$ac_check_lib_save_LIBS
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11396 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11397 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11398 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11401 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11402 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11403 $as_echo_n "(cached) " >&6
11405 ac_check_lib_save_LIBS
=$LIBS
11407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11408 /* end confdefs.h. */
11410 /* Override any GCC internal prototype to avoid an error.
11411 Use char because int might match the return type of a GCC
11412 builtin and then its argument prototype would still apply. */
11420 return dld_link ();
11425 if ac_fn_c_try_link
"$LINENO"; then :
11426 ac_cv_lib_dld_dld_link
=yes
11428 ac_cv_lib_dld_dld_link
=no
11430 rm -f core conftest.err conftest.
$ac_objext \
11431 conftest
$ac_exeext conftest.
$ac_ext
11432 LIBS
=$ac_check_lib_save_LIBS
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11435 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11436 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11437 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11458 if test "x$lt_cv_dlopen" != xno
; then
11464 case $lt_cv_dlopen in
11466 save_CPPFLAGS
="$CPPFLAGS"
11467 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11469 save_LDFLAGS
="$LDFLAGS"
11470 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11473 LIBS
="$lt_cv_dlopen_libs $LIBS"
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11476 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11477 if ${lt_cv_dlopen_self+:} false
; then :
11478 $as_echo_n "(cached) " >&6
11480 if test "$cross_compiling" = yes; then :
11481 lt_cv_dlopen_self
=cross
11483 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11484 lt_status
=$lt_dlunknown
11485 cat > conftest.
$ac_ext <<_LT_EOF
11486 #line 11486 "configure"
11487 #include "confdefs.h"
11496 # define LT_DLGLOBAL RTLD_GLOBAL
11499 # define LT_DLGLOBAL DL_GLOBAL
11501 # define LT_DLGLOBAL 0
11505 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11506 find out it does not work in some platform. */
11507 #ifndef LT_DLLAZY_OR_NOW
11509 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11512 # define LT_DLLAZY_OR_NOW DL_LAZY
11515 # define LT_DLLAZY_OR_NOW RTLD_NOW
11518 # define LT_DLLAZY_OR_NOW DL_NOW
11520 # define LT_DLLAZY_OR_NOW 0
11527 /* When -fvisbility=hidden is used, assume the code has been annotated
11528 correspondingly for the symbols needed. */
11529 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11530 void fnord () __attribute__((visibility("default")));
11533 void fnord () { int i=42; }
11536 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11537 int status = $lt_dlunknown;
11541 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11544 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11545 else puts (dlerror ());
11547 /* dlclose (self); */
11555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11556 (eval $ac_link) 2>&5
11558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11559 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11560 (.
/conftest
; exit; ) >&5 2>/dev
/null
11562 case x
$lt_status in
11563 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11564 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11565 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11568 # compilation failed
11569 lt_cv_dlopen_self
=no
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11577 $as_echo "$lt_cv_dlopen_self" >&6; }
11579 if test "x$lt_cv_dlopen_self" = xyes
; then
11580 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11582 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11583 if ${lt_cv_dlopen_self_static+:} false
; then :
11584 $as_echo_n "(cached) " >&6
11586 if test "$cross_compiling" = yes; then :
11587 lt_cv_dlopen_self_static
=cross
11589 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11590 lt_status
=$lt_dlunknown
11591 cat > conftest.
$ac_ext <<_LT_EOF
11592 #line 11592 "configure"
11593 #include "confdefs.h"
11602 # define LT_DLGLOBAL RTLD_GLOBAL
11605 # define LT_DLGLOBAL DL_GLOBAL
11607 # define LT_DLGLOBAL 0
11611 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11612 find out it does not work in some platform. */
11613 #ifndef LT_DLLAZY_OR_NOW
11615 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11618 # define LT_DLLAZY_OR_NOW DL_LAZY
11621 # define LT_DLLAZY_OR_NOW RTLD_NOW
11624 # define LT_DLLAZY_OR_NOW DL_NOW
11626 # define LT_DLLAZY_OR_NOW 0
11633 /* When -fvisbility=hidden is used, assume the code has been annotated
11634 correspondingly for the symbols needed. */
11635 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11636 void fnord () __attribute__((visibility("default")));
11639 void fnord () { int i=42; }
11642 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11643 int status = $lt_dlunknown;
11647 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11650 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11651 else puts (dlerror ());
11653 /* dlclose (self); */
11661 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11662 (eval $ac_link) 2>&5
11664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11665 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11666 (.
/conftest
; exit; ) >&5 2>/dev
/null
11668 case x
$lt_status in
11669 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11670 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11671 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11674 # compilation failed
11675 lt_cv_dlopen_self_static
=no
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11683 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11686 CPPFLAGS
="$save_CPPFLAGS"
11687 LDFLAGS
="$save_LDFLAGS"
11692 case $lt_cv_dlopen_self in
11693 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11694 *) enable_dlopen_self
=unknown
;;
11697 case $lt_cv_dlopen_self_static in
11698 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11699 *) enable_dlopen_self_static
=unknown
;;
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11722 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11723 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11724 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11725 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11727 $as_echo "yes" >&6; }
11729 # FIXME - insert some real tests, host_os isn't really good enough
11732 if test -n "$STRIP" ; then
11733 striplib
="$STRIP -x"
11734 old_striplib
="$STRIP -S"
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11736 $as_echo "yes" >&6; }
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11739 $as_echo "no" >&6; }
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11744 $as_echo "no" >&6; }
11760 # Report which library types will actually be built
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11762 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11764 $as_echo "$can_build_shared" >&6; }
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11767 $as_echo_n "checking whether to build shared libraries... " >&6; }
11768 test "$can_build_shared" = "no" && enable_shared
=no
11770 # On AIX, shared libraries and static libraries use the same namespace, and
11771 # are all built from PIC.
11774 test "$enable_shared" = yes && enable_static
=no
11775 if test -n "$RANLIB"; then
11776 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11777 postinstall_cmds
='$RANLIB $lib'
11782 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11783 test "$enable_shared" = yes && enable_static
=no
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11788 $as_echo "$enable_shared" >&6; }
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11791 $as_echo_n "checking whether to build static libraries... " >&6; }
11792 # Make sure either enable_shared or enable_static is yes.
11793 test "$enable_shared" = yes || enable_static
=yes
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11795 $as_echo "$enable_static" >&6; }
11802 ac_cpp
='$CPP $CPPFLAGS'
11803 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11804 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11805 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11809 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11810 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11811 (test "X$CXX" != "Xg++"))) ; then
11813 ac_cpp
='$CXXCPP $CPPFLAGS'
11814 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11815 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11816 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11818 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11819 if test -z "$CXXCPP"; then
11820 if ${ac_cv_prog_CXXCPP+:} false
; then :
11821 $as_echo_n "(cached) " >&6
11823 # Double quotes because CXXCPP needs to be expanded
11824 for CXXCPP
in "$CXX -E" "/lib/cpp"
11826 ac_preproc_ok
=false
11827 for ac_cxx_preproc_warn_flag
in '' yes
11829 # Use a header file that comes with gcc, so configuring glibc
11830 # with a fresh cross-compiler works.
11831 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11832 # <limits.h> exists even on freestanding compilers.
11833 # On the NeXT, cc -E runs the code through the compiler's parser,
11834 # not just through cpp. "Syntax error" is here to catch this case.
11835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11836 /* end confdefs.h. */
11838 # include <limits.h>
11840 # include <assert.h>
11844 if ac_fn_cxx_try_cpp
"$LINENO"; then :
11847 # Broken: fails on valid input.
11850 rm -f conftest.err conftest.i conftest.
$ac_ext
11852 # OK, works on sane cases. Now check whether nonexistent headers
11853 # can be detected and how.
11854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11855 /* end confdefs.h. */
11856 #include <ac_nonexistent.h>
11858 if ac_fn_cxx_try_cpp
"$LINENO"; then :
11859 # Broken: success on invalid input.
11862 # Passes both tests.
11866 rm -f conftest.err conftest.i conftest.
$ac_ext
11869 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11870 rm -f conftest.i conftest.err conftest.
$ac_ext
11871 if $ac_preproc_ok; then :
11876 ac_cv_prog_CXXCPP
=$CXXCPP
11879 CXXCPP
=$ac_cv_prog_CXXCPP
11881 ac_cv_prog_CXXCPP
=$CXXCPP
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11884 $as_echo "$CXXCPP" >&6; }
11885 ac_preproc_ok
=false
11886 for ac_cxx_preproc_warn_flag
in '' yes
11888 # Use a header file that comes with gcc, so configuring glibc
11889 # with a fresh cross-compiler works.
11890 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11891 # <limits.h> exists even on freestanding compilers.
11892 # On the NeXT, cc -E runs the code through the compiler's parser,
11893 # not just through cpp. "Syntax error" is here to catch this case.
11894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11895 /* end confdefs.h. */
11897 # include <limits.h>
11899 # include <assert.h>
11903 if ac_fn_cxx_try_cpp
"$LINENO"; then :
11906 # Broken: fails on valid input.
11909 rm -f conftest.err conftest.i conftest.
$ac_ext
11911 # OK, works on sane cases. Now check whether nonexistent headers
11912 # can be detected and how.
11913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11914 /* end confdefs.h. */
11915 #include <ac_nonexistent.h>
11917 if ac_fn_cxx_try_cpp
"$LINENO"; then :
11918 # Broken: success on invalid input.
11921 # Passes both tests.
11925 rm -f conftest.err conftest.i conftest.
$ac_ext
11928 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11929 rm -f conftest.i conftest.err conftest.
$ac_ext
11930 if $ac_preproc_ok; then :
11933 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11935 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
11936 See \`config.log' for more details" "$LINENO" 5; }
11940 ac_cpp
='$CPP $CPPFLAGS'
11941 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11942 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11943 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11946 _lt_caught_CXX_error
=yes
11950 ac_cpp
='$CXXCPP $CPPFLAGS'
11951 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11952 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11953 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
11955 archive_cmds_need_lc_CXX
=no
11956 allow_undefined_flag_CXX
=
11957 always_export_symbols_CXX
=no
11958 archive_expsym_cmds_CXX
=
11959 compiler_needs_object_CXX
=no
11960 export_dynamic_flag_spec_CXX
=
11961 hardcode_direct_CXX
=no
11962 hardcode_direct_absolute_CXX
=no
11963 hardcode_libdir_flag_spec_CXX
=
11964 hardcode_libdir_flag_spec_ld_CXX
=
11965 hardcode_libdir_separator_CXX
=
11966 hardcode_minus_L_CXX
=no
11967 hardcode_shlibpath_var_CXX
=unsupported
11968 hardcode_automatic_CXX
=no
11969 inherit_rpath_CXX
=no
11971 module_expsym_cmds_CXX
=
11972 link_all_deplibs_CXX
=unknown
11973 old_archive_cmds_CXX
=$old_archive_cmds
11974 reload_flag_CXX
=$reload_flag
11975 reload_cmds_CXX
=$reload_cmds
11976 no_undefined_flag_CXX
=
11977 whole_archive_flag_spec_CXX
=
11978 enable_shared_with_static_runtimes_CXX
=no
11980 # Source file extension for C++ test sources.
11983 # Object file extension for compiled C++ test sources.
11987 # No sense in running all these tests if we already determined that
11988 # the CXX compiler isn't working. Some variables (like enable_shared)
11989 # are currently assumed to apply to all compilers on this platform,
11990 # and will be corrupted by setting them based on a non-working compiler.
11991 if test "$_lt_caught_CXX_error" != yes; then
11992 # Code to be used in simple compile tests
11993 lt_simple_compile_test_code
="int some_variable = 0;"
11995 # Code to be used in simple link tests
11996 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
11998 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12005 # If no C compiler was specified, use CC.
12008 # If no C compiler flags were specified, use CFLAGS.
12009 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
12011 # Allow CC to be a program name with arguments.
12015 # save warnings/boilerplate of simple test code
12016 ac_outfile
=conftest.
$ac_objext
12017 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
12018 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12019 _lt_compiler_boilerplate
=`cat conftest.err`
12022 ac_outfile
=conftest.
$ac_objext
12023 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
12024 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12025 _lt_linker_boilerplate
=`cat conftest.err`
12029 # Allow CC to be a program name with arguments.
12034 lt_save_with_gnu_ld
=$with_gnu_ld
12035 lt_save_path_LD
=$lt_cv_path_LD
12036 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12037 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
12039 $as_unset lt_cv_prog_gnu_ld
12041 if test -n "${lt_cv_path_LDCXX+set}"; then
12042 lt_cv_path_LD
=$lt_cv_path_LDCXX
12044 $as_unset lt_cv_path_LD
12046 test -z "${LDCXX+set}" || LD
=$LDCXX
12050 for cc_temp
in $compiler""; do
12052 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
12053 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
12058 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12061 if test -n "$compiler"; then
12062 # We don't want -fno-exception when compiling C++ code, so set the
12063 # no_builtin_flag separately
12064 if test "$GXX" = yes; then
12065 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
12067 lt_prog_compiler_no_builtin_flag_CXX
=
12070 if test "$GXX" = yes; then
12071 # Set up default GNU C++ configuration
12075 # Check whether --with-gnu-ld was given.
12076 if test "${with_gnu_ld+set}" = set; then :
12077 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12083 if test "$GCC" = yes; then
12084 # Check if gcc -print-prog-name=ld gives a path.
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12086 $as_echo_n "checking for ld used by $CC... " >&6; }
12089 # gcc leaves a trailing carriage return which upsets mingw
12090 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12092 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12095 # Accept absolute paths.
12097 re_direlt
='/[^/][^/]*/\.\./'
12098 # Canonicalize the pathname of ld
12099 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12100 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12101 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12103 test -z "$LD" && LD
="$ac_prog"
12106 # If it fails, then pretend we aren't using GCC.
12110 # If it is relative, then search for the first ld in PATH.
12111 with_gnu_ld
=unknown
12114 elif test "$with_gnu_ld" = yes; then
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12116 $as_echo_n "checking for GNU ld... " >&6; }
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12119 $as_echo_n "checking for non-GNU ld... " >&6; }
12121 if ${lt_cv_path_LD+:} false
; then :
12122 $as_echo_n "(cached) " >&6
12124 if test -z "$LD"; then
12125 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12126 for ac_dir
in $PATH; do
12128 test -z "$ac_dir" && ac_dir
=.
12129 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12130 lt_cv_path_LD
="$ac_dir/$ac_prog"
12131 # Check to see if the program is GNU ld. I'd rather use --version,
12132 # but apparently some variants of GNU ld only accept -v.
12133 # Break only if it was the GNU/non-GNU ld that we prefer.
12134 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12135 *GNU
* |
*'with BFD'*)
12136 test "$with_gnu_ld" != no
&& break
12139 test "$with_gnu_ld" != yes && break
12146 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12150 LD
="$lt_cv_path_LD"
12151 if test -n "$LD"; then
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12153 $as_echo "$LD" >&6; }
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12156 $as_echo "no" >&6; }
12158 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12160 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12161 if ${lt_cv_prog_gnu_ld+:} false
; then :
12162 $as_echo_n "(cached) " >&6
12164 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12165 case `$LD -v 2>&1 </dev/null` in
12166 *GNU
* |
*'with BFD'*)
12167 lt_cv_prog_gnu_ld
=yes
12170 lt_cv_prog_gnu_ld
=no
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12175 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12176 with_gnu_ld
=$lt_cv_prog_gnu_ld
12184 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12185 # archiving commands below assume that GNU ld is being used.
12186 if test "$with_gnu_ld" = yes; then
12187 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12188 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'
12190 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12191 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12193 # If archive_cmds runs LD, not CC, wlarc should be empty
12194 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12195 # investigate it a little bit more. (MM)
12198 # ancient GNU ld didn't support --whole-archive et. al.
12199 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12200 $GREP 'no-whole-archive' > /dev
/null
; then
12201 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12203 whole_archive_flag_spec_CXX
=
12209 # A generic and very simple default shared library creation
12210 # command for GNU C++ for the case where it uses the native
12211 # linker, instead of GNU ld. If possible, this setting should
12212 # overridden to take advantage of the native linker features on
12213 # the platform it is being used on.
12214 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12217 # Commands to make compiler produce verbose output that lists
12218 # what "hidden" libraries, object files and flags are used when
12219 # linking a shared library.
12220 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12228 # PORTME: fill in a description of your system's C++ link characteristics
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12230 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12234 # FIXME: insert proper C++ library support
12238 if test "$host_cpu" = ia64
; then
12239 # On IA64, the linker does run time linking by default, so we don't
12240 # have to do anything special.
12241 aix_use_runtimelinking
=no
12242 exp_sym_flag
='-Bexport'
12245 aix_use_runtimelinking
=no
12247 # Test if we are trying to use run time linking or normal
12248 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12249 # need to do runtime linking.
12250 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
12251 for ld_flag
in $LDFLAGS; do
12254 aix_use_runtimelinking
=yes
12262 exp_sym_flag
='-bexport'
12263 no_entry_flag
='-bnoentry'
12266 # When large executables or shared objects are built, AIX ld can
12267 # have problems creating the table of contents. If linking a library
12268 # or program results in "error TOC overflow" add -mminimal-toc to
12269 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12270 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12272 archive_cmds_CXX
=''
12273 hardcode_direct_CXX
=yes
12274 hardcode_direct_absolute_CXX
=yes
12275 hardcode_libdir_separator_CXX
=':'
12276 link_all_deplibs_CXX
=yes
12277 file_list_spec_CXX
='${wl}-f,'
12279 if test "$GXX" = yes; then
12280 case $host_os in aix4.
[012]|aix4.
[012].
*)
12281 # We only want to do this on AIX 4.2 and lower, the check
12282 # below for broken collect2 doesn't work under 4.3+
12283 collect2name
=`${CC} -print-prog-name=collect2`
12284 if test -f "$collect2name" &&
12285 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
12287 # We have reworked collect2
12290 # We have old collect2
12291 hardcode_direct_CXX
=unsupported
12292 # It fails to find uninstalled libraries when the uninstalled
12293 # path is not listed in the libpath. Setting hardcode_minus_L
12294 # to unsupported forces relinking
12295 hardcode_minus_L_CXX
=yes
12296 hardcode_libdir_flag_spec_CXX
='-L$libdir'
12297 hardcode_libdir_separator_CXX
=
12300 shared_flag
='-shared'
12301 if test "$aix_use_runtimelinking" = yes; then
12302 shared_flag
="$shared_flag "'${wl}-G'
12306 if test "$host_cpu" = ia64
; then
12307 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12308 # chokes on -Wl,-G. The following line is correct:
12311 if test "$aix_use_runtimelinking" = yes; then
12312 shared_flag
='${wl}-G'
12314 shared_flag
='${wl}-bM:SRE'
12319 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
12320 # It seems that -bexpall does not export symbols beginning with
12321 # underscore (_), so it is better to generate a list of symbols to
12323 always_export_symbols_CXX
=yes
12324 if test "$aix_use_runtimelinking" = yes; then
12325 # Warning - without using the other runtime loading flags (-brtl),
12326 # -berok will link without error, but may produce a broken library.
12327 allow_undefined_flag_CXX
='-berok'
12328 # Determine the default libpath from the value encoded in an empty
12330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12331 /* end confdefs.h. */
12341 if ac_fn_cxx_try_link
"$LINENO"; then :
12343 lt_aix_libpath_sed
='
12344 /Import File Strings/,/^$/ {
12350 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12351 # Check for a 64-bit object if we didn't find anything.
12352 if test -z "$aix_libpath"; then
12353 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12356 rm -f core conftest.err conftest.
$ac_objext \
12357 conftest
$ac_exeext conftest.
$ac_ext
12358 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
12360 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
12362 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"
12364 if test "$host_cpu" = ia64
; then
12365 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
12366 allow_undefined_flag_CXX
="-z nodefs"
12367 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"
12369 # Determine the default libpath from the value encoded in an
12370 # empty executable.
12371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12372 /* end confdefs.h. */
12382 if ac_fn_cxx_try_link
"$LINENO"; then :
12384 lt_aix_libpath_sed
='
12385 /Import File Strings/,/^$/ {
12391 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12392 # Check for a 64-bit object if we didn't find anything.
12393 if test -z "$aix_libpath"; then
12394 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12397 rm -f core conftest.err conftest.
$ac_objext \
12398 conftest
$ac_exeext conftest.
$ac_ext
12399 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
12401 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
12402 # Warning - without using the other run time loading flags,
12403 # -berok will link without error, but may produce a broken library.
12404 no_undefined_flag_CXX
=' ${wl}-bernotok'
12405 allow_undefined_flag_CXX
=' ${wl}-berok'
12406 if test "$with_gnu_ld" = yes; then
12407 # We only use this code for GNU lds that support --whole-archive.
12408 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12410 # Exported symbols can be pulled into shared objects from archives
12411 whole_archive_flag_spec_CXX
='$convenience'
12413 archive_cmds_need_lc_CXX
=yes
12414 # This is similar to how AIX traditionally builds its shared
12416 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'
12422 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12423 allow_undefined_flag_CXX
=unsupported
12424 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12425 # support --undefined. This deserves some investigation. FIXME
12426 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12433 case $cc_basename in
12435 # FIXME: insert proper C++ library support
12441 cygwin
* | mingw
* | pw32
* | cegcc
*)
12442 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12443 # as there is no search path for DLLs.
12444 hardcode_libdir_flag_spec_CXX
='-L$libdir'
12445 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
12446 allow_undefined_flag_CXX
=unsupported
12447 always_export_symbols_CXX
=no
12448 enable_shared_with_static_runtimes_CXX
=yes
12450 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
12451 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'
12452 # If the export-symbols file already is a .def file (1st line
12453 # is EXPORTS), use it as is; otherwise, prepend...
12454 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12455 cp $export_symbols $output_objdir/$soname.def;
12457 echo EXPORTS > $output_objdir/$soname.def;
12458 cat $export_symbols >> $output_objdir/$soname.def;
12460 $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'
12465 darwin
* | rhapsody
*)
12468 archive_cmds_need_lc_CXX
=no
12469 hardcode_direct_CXX
=no
12470 hardcode_automatic_CXX
=yes
12471 hardcode_shlibpath_var_CXX
=unsupported
12472 if test "$lt_cv_ld_force_load" = "yes"; then
12473 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\"`'
12475 whole_archive_flag_spec_CXX
=''
12477 link_all_deplibs_CXX
=yes
12478 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
12479 case $cc_basename in
12480 ifort
*) _lt_dar_can_shared
=yes ;;
12481 *) _lt_dar_can_shared
=$GCC ;;
12483 if test "$_lt_dar_can_shared" = "yes"; then
12484 output_verbose_link_cmd
=func_echo_all
12485 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}"
12486 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12487 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}"
12488 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}"
12489 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12490 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}"
12491 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}"
12501 case $cc_basename in
12503 # FIXME: insert proper C++ library support
12507 # Green Hills C++ Compiler
12508 # FIXME: insert proper C++ library support
12512 # FIXME: insert proper C++ library support
12519 # C++ shared libraries reported to be fairly broken before
12525 archive_cmds_need_lc_CXX
=no
12528 freebsd
* | dragonfly
*)
12529 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12538 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12539 link_all_deplibs_CXX
=yes
12543 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
12544 hardcode_libdir_separator_CXX
=:
12545 export_dynamic_flag_spec_CXX
='${wl}-E'
12546 hardcode_direct_CXX
=yes
12547 hardcode_minus_L_CXX
=yes # Not in the search PATH,
12548 # but as the default
12549 # location of the library.
12551 case $cc_basename in
12553 # FIXME: insert proper C++ library support
12557 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'
12558 # Commands to make compiler produce verbose output that lists
12559 # what "hidden" libraries, object files and flags are used when
12560 # linking a shared library.
12562 # There doesn't appear to be a way to prevent this compiler from
12563 # explicitly linking system object files so we need to strip them
12564 # from the output so that they don't get included in the library
12566 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"'
12569 if test "$GXX" = yes; then
12570 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'
12572 # FIXME: insert proper C++ library support
12580 if test $with_gnu_ld = no
; then
12581 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
12582 hardcode_libdir_separator_CXX
=:
12588 export_dynamic_flag_spec_CXX
='${wl}-E'
12594 hardcode_direct_CXX
=no
12595 hardcode_shlibpath_var_CXX
=no
12598 hardcode_direct_CXX
=yes
12599 hardcode_direct_absolute_CXX
=yes
12600 hardcode_minus_L_CXX
=yes # Not in the search PATH,
12601 # but as the default
12602 # location of the library.
12606 case $cc_basename in
12608 # FIXME: insert proper C++ library support
12614 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12617 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12620 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12623 # Commands to make compiler produce verbose output that lists
12624 # what "hidden" libraries, object files and flags are used when
12625 # linking a shared library.
12627 # There doesn't appear to be a way to prevent this compiler from
12628 # explicitly linking system object files so we need to strip them
12629 # from the output so that they don't get included in the library
12631 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"'
12634 if test "$GXX" = yes; then
12635 if test $with_gnu_ld = no
; then
12638 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12641 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12644 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'
12649 # FIXME: insert proper C++ library support
12657 hardcode_direct_CXX
=no
12658 hardcode_shlibpath_var_CXX
=no
12659 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12660 export_dynamic_flag_spec_CXX
='${wl}-E'
12661 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12662 # Instead, shared libraries are loaded at an image base (0x10000000 by
12663 # default) and relocated if they conflict, which is a slow very memory
12664 # consuming and fragmenting process. To avoid this, we pick a random,
12665 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12666 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12667 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'
12668 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'
12671 case $cc_basename in
12674 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'
12676 # Archives containing C++ object files must be created using
12677 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12678 # necessary to make sure instantiated templates are included
12680 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
12683 if test "$GXX" = yes; then
12684 if test "$with_gnu_ld" = no
; then
12685 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'
12687 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'
12690 link_all_deplibs_CXX
=yes
12693 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12694 hardcode_libdir_separator_CXX
=:
12695 inherit_rpath_CXX
=yes
12698 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12699 case $cc_basename in
12701 # Kuck and Associates, Inc. (KAI) C++ Compiler
12703 # KCC will only create a shared library if the output file
12704 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12705 # to its proper name (with version) after linking.
12706 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'
12707 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'
12708 # Commands to make compiler produce verbose output that lists
12709 # what "hidden" libraries, object files and flags are used when
12710 # linking a shared library.
12712 # There doesn't appear to be a way to prevent this compiler from
12713 # explicitly linking system object files so we need to strip them
12714 # from the output so that they don't get included in the library
12716 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"'
12718 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12719 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12721 # Archives containing C++ object files must be created using
12722 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12723 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
12728 # version 8.0 and above of icpc choke on multiply defined symbols
12729 # if we add $predep_objects and $postdep_objects, however 7.1 and
12730 # earlier do not add the objects themselves.
12731 case `$CC -V 2>&1` in
12733 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12734 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'
12736 *) # Version 8.0 or newer
12739 ia64
*) tmp_idyn
=' -i_dynamic';;
12741 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12742 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'
12745 archive_cmds_need_lc_CXX
=no
12746 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12747 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12748 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12751 # Portland Group C++ compiler
12753 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
12754 prelink_cmds_CXX
='tpldir=Template.dir~
12756 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12757 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12758 old_archive_cmds_CXX
='tpldir=Template.dir~
12760 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12761 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12763 archive_cmds_CXX
='tpldir=Template.dir~
12765 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12766 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12767 archive_expsym_cmds_CXX
='tpldir=Template.dir~
12769 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12770 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12772 *) # Version 6 and above use weak symbols
12773 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12774 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'
12778 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
12779 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12780 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'
12784 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12785 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'
12787 runpath_var
=LD_RUN_PATH
12788 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
12789 hardcode_libdir_separator_CXX
=:
12791 # Commands to make compiler produce verbose output that lists
12792 # what "hidden" libraries, object files and flags are used when
12793 # linking a shared library.
12795 # There doesn't appear to be a way to prevent this compiler from
12796 # explicitly linking system object files so we need to strip them
12797 # from the output so that they don't get included in the library
12799 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'
12801 xl
* | mpixl
* | bgxl
*)
12802 # IBM XL 8.0 on PPC, with GNU ld
12803 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12804 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12805 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12806 if test "x$supports_anon_versioning" = xyes
; then
12807 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
12808 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12809 echo "local: *; };" >> $output_objdir/$libname.ver~
12810 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12814 case `$CC -V 2>&1 | sed 5q` in
12817 no_undefined_flag_CXX
=' -zdefs'
12818 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12819 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'
12820 hardcode_libdir_flag_spec_CXX
='-R$libdir'
12821 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'
12822 compiler_needs_object_CXX
=yes
12824 # Not sure whether something based on
12825 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12827 output_verbose_link_cmd
='func_echo_all'
12829 # Archives containing C++ object files must be created using
12830 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12831 # necessary to make sure instantiated templates are included
12833 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
12841 # FIXME: insert proper C++ library support
12846 # FIXME: insert proper C++ library support
12851 case $cc_basename in
12853 # FIXME: insert proper C++ library support
12857 # FIXME: insert proper C++ library support
12864 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
12865 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12867 hardcode_libdir_flag_spec_CXX
='-R$libdir'
12868 hardcode_direct_CXX
=yes
12869 hardcode_shlibpath_var_CXX
=no
12871 # Workaround some broken pre-1.5 toolchains
12872 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12880 # C++ shared libraries are fairly broken
12885 if test -f /usr
/libexec
/ld.so
; then
12886 hardcode_direct_CXX
=yes
12887 hardcode_shlibpath_var_CXX
=no
12888 hardcode_direct_absolute_CXX
=yes
12889 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12890 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12891 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12892 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12893 export_dynamic_flag_spec_CXX
='${wl}-E'
12894 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12896 output_verbose_link_cmd
=func_echo_all
12902 osf3
* | osf4
* | osf5
*)
12903 case $cc_basename in
12905 # Kuck and Associates, Inc. (KAI) C++ Compiler
12907 # KCC will only create a shared library if the output file
12908 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12909 # to its proper name (with version) after linking.
12910 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'
12912 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12913 hardcode_libdir_separator_CXX
=:
12915 # Archives containing C++ object files must be created using
12916 # the KAI C++ compiler.
12918 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
12919 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
12923 # Rational C++ 2.4.1
12924 # FIXME: insert proper C++ library support
12930 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
12931 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'
12932 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12935 allow_undefined_flag_CXX
=' -expect_unresolved \*'
12936 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'
12937 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12938 echo "-hidden">> $lib.exp~
12939 $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~
12941 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
12945 hardcode_libdir_separator_CXX
=:
12947 # Commands to make compiler produce verbose output that lists
12948 # what "hidden" libraries, object files and flags are used when
12949 # linking a shared library.
12951 # There doesn't appear to be a way to prevent this compiler from
12952 # explicitly linking system object files so we need to strip them
12953 # from the output so that they don't get included in the library
12955 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"'
12958 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
12959 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
12962 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'
12965 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'
12969 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12970 hardcode_libdir_separator_CXX
=:
12972 # Commands to make compiler produce verbose output that lists
12973 # what "hidden" libraries, object files and flags are used when
12974 # linking a shared library.
12975 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12978 # FIXME: insert proper C++ library support
12986 # FIXME: insert proper C++ library support
12991 case $cc_basename in
12994 # FIXME: insert proper C++ library support
12999 # FIXME: insert proper C++ library support
13003 # FIXME: insert proper C++ library support
13010 case $cc_basename in
13012 # Sun C++ 4.2, 5.x and Centerline C++
13013 archive_cmds_need_lc_CXX
=yes
13014 no_undefined_flag_CXX
=' -zdefs'
13015 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13016 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13017 $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'
13019 hardcode_libdir_flag_spec_CXX
='-R$libdir'
13020 hardcode_shlibpath_var_CXX
=no
13022 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13024 # The compiler driver will combine and reorder linker options,
13025 # but understands `-z linker_flag'.
13026 # Supported since Solaris 2.6 (maybe 2.5.1?)
13027 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
13030 link_all_deplibs_CXX
=yes
13032 output_verbose_link_cmd
='func_echo_all'
13034 # Archives containing C++ object files must be created using
13035 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13036 # necessary to make sure instantiated templates are included
13038 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
13041 # Green Hills C++ Compiler
13042 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13044 # The C++ compiler must be used to create the archive.
13045 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13048 # GNU C++ compiler with Solaris linker
13049 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
13050 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
13051 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
13052 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13053 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13054 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13056 # Commands to make compiler produce verbose output that lists
13057 # what "hidden" libraries, object files and flags are used when
13058 # linking a shared library.
13059 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13061 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13063 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13064 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13065 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13067 # Commands to make compiler produce verbose output that lists
13068 # what "hidden" libraries, object files and flags are used when
13069 # linking a shared library.
13070 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13073 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
13075 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13077 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13085 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13086 no_undefined_flag_CXX
='${wl}-z,text'
13087 archive_cmds_need_lc_CXX
=no
13088 hardcode_shlibpath_var_CXX
=no
13089 runpath_var
='LD_RUN_PATH'
13091 case $cc_basename in
13093 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13094 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13097 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13098 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13103 sysv5
* | sco3.2v5
* | sco5v6
*)
13104 # Note: We can NOT use -z defs as we might desire, because we do not
13105 # link with -lc, and that would cause any symbols used from libc to
13106 # always be unresolved, which means just about no library would
13107 # ever link correctly. If we're not using GNU ld we use -z text
13108 # though, which does catch some bad symbols but isn't as heavy-handed
13110 no_undefined_flag_CXX
='${wl}-z,text'
13111 allow_undefined_flag_CXX
='${wl}-z,nodefs'
13112 archive_cmds_need_lc_CXX
=no
13113 hardcode_shlibpath_var_CXX
=no
13114 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
13115 hardcode_libdir_separator_CXX
=':'
13116 link_all_deplibs_CXX
=yes
13117 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
13118 runpath_var
='LD_RUN_PATH'
13120 case $cc_basename in
13122 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13123 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13124 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
13125 '"$old_archive_cmds_CXX"
13126 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
13127 '"$reload_cmds_CXX"
13130 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13131 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13137 case $cc_basename in
13139 # NonStop-UX NCC 3.20
13140 # FIXME: insert proper C++ library support
13144 # FIXME: insert proper C++ library support
13151 # For VxWorks ports, we assume the use of a GNU linker with
13152 # standard elf conventions.
13157 # FIXME: insert proper C++ library support
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13163 $as_echo "$ld_shlibs_CXX" >&6; }
13164 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
13170 ## There is no encapsulation within the following macros, do not change
13171 ## the running order or otherwise move them around unless you know exactly
13172 ## what you are doing...
13173 # Dependencies to place before and after the object being linked:
13174 predep_objects_CXX
=
13175 postdep_objects_CXX
=
13178 compiler_lib_search_path_CXX
=
13180 cat > conftest.
$ac_ext <<_LT_EOF
13184 Foo (void) { a = 0; }
13190 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13191 (eval $ac_compile) 2>&5
13193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13194 test $ac_status = 0; }; then
13195 # Parse the compiler output and extract the necessary
13196 # objects, libraries and library flags.
13198 # Sentinel used to keep track of whether or not we are before
13199 # the conftest object file.
13200 pre_test_object_deps_done
=no
13202 for p
in `eval "$output_verbose_link_cmd"`; do
13206 # Some compilers place space between "-{L,R}" and the path.
13207 # Remove the space.
13208 if test $p = "-L" ||
13209 test $p = "-R"; then
13216 if test "$pre_test_object_deps_done" = no
; then
13219 # Internal compiler library paths should come after those
13220 # provided the user. The postdeps already come after the
13221 # user supplied libs so there is no need to process them.
13222 if test -z "$compiler_lib_search_path_CXX"; then
13223 compiler_lib_search_path_CXX
="${prev}${p}"
13225 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
13228 # The "-l" case would never come before the object being
13229 # linked, so don't bother handling this case.
13232 if test -z "$postdeps_CXX"; then
13233 postdeps_CXX
="${prev}${p}"
13235 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
13241 # This assumes that the test object file only shows up
13242 # once in the compiler output.
13243 if test "$p" = "conftest.$objext"; then
13244 pre_test_object_deps_done
=yes
13248 if test "$pre_test_object_deps_done" = no
; then
13249 if test -z "$predep_objects_CXX"; then
13250 predep_objects_CXX
="$p"
13252 predep_objects_CXX
="$predep_objects_CXX $p"
13255 if test -z "$postdep_objects_CXX"; then
13256 postdep_objects_CXX
="$p"
13258 postdep_objects_CXX
="$postdep_objects_CXX $p"
13263 *) ;; # Ignore the rest.
13271 echo "libtool.m4: error: problem compiling CXX test program"
13274 $RM -f confest.
$objext
13276 # PORTME: override above test on systems where it is broken
13279 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13280 # hack all around it, let's just trust "g++" to DTRT.
13281 predep_objects_CXX
=
13282 postdep_objects_CXX
=
13287 case `$CC -V 2>&1 | sed 5q` in
13291 # The more standards-conforming stlport4 library is
13292 # incompatible with the Cstd library. Avoid specifying
13293 # it if it's in CXXFLAGS. Ignore libCrun as
13294 # -library=stlport4 depends on it.
13295 case " $CXX $CXXFLAGS " in
13296 *" -library=stlport4 "*)
13297 solaris_use_stlport4
=yes
13301 if test "$solaris_use_stlport4" != yes; then
13302 postdeps_CXX
='-library=Cstd -library=Crun'
13309 case $cc_basename in
13311 # The more standards-conforming stlport4 library is
13312 # incompatible with the Cstd library. Avoid specifying
13313 # it if it's in CXXFLAGS. Ignore libCrun as
13314 # -library=stlport4 depends on it.
13315 case " $CXX $CXXFLAGS " in
13316 *" -library=stlport4 "*)
13317 solaris_use_stlport4
=yes
13321 # Adding this requires a known-good setup of shared libraries for
13322 # Sun compiler versions before 5.6, else PIC objects from an old
13323 # archive will be linked into the output, leading to subtle bugs.
13324 if test "$solaris_use_stlport4" != yes; then
13325 postdeps_CXX
='-library=Cstd -library=Crun'
13333 case " $postdeps_CXX " in
13334 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
13336 compiler_lib_search_dirs_CXX
=
13337 if test -n "${compiler_lib_search_path_CXX}"; then
13338 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13371 lt_prog_compiler_wl_CXX
=
13372 lt_prog_compiler_pic_CXX
=
13373 lt_prog_compiler_static_CXX
=
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13376 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13378 # C++ specific cases for pic, static, wl, etc.
13379 if test "$GXX" = yes; then
13380 lt_prog_compiler_wl_CXX
='-Wl,'
13381 lt_prog_compiler_static_CXX
='-static'
13385 # All AIX code is PIC.
13386 if test "$host_cpu" = ia64
; then
13387 # AIX 5 now supports IA64 processor
13388 lt_prog_compiler_static_CXX
='-Bstatic'
13390 lt_prog_compiler_pic_CXX
='-fPIC'
13396 # see comment about AmigaOS4 .so support
13397 lt_prog_compiler_pic_CXX
='-fPIC'
13400 # FIXME: we need at least 68020 code to build shared libraries, but
13401 # adding the `-m68020' flag to GCC prevents building anything better,
13403 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
13408 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
13409 # PIC is the default for these OSes.
13411 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
13412 # This hack is so that the source file can tell whether it is being
13413 # built for inclusion in a dll (and should export symbols for example).
13414 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13415 # (--disable-auto-import) libraries
13416 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
13418 darwin
* | rhapsody
*)
13419 # PIC is the default on this platform
13420 # Common symbols not allowed in MH_DYLIB files
13421 lt_prog_compiler_pic_CXX
='-fno-common'
13424 # DJGPP does not support shared libraries at all
13425 lt_prog_compiler_pic_CXX
=
13428 # PIC is the default for Haiku.
13429 # The "-static" flag exists, but is broken.
13430 lt_prog_compiler_static_CXX
=
13433 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13434 # Instead, we relocate shared libraries at runtime.
13437 if test -d /usr
/nec
; then
13438 lt_prog_compiler_pic_CXX
=-Kconform_pic
13442 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13443 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13444 # sets the default TLS model and affects inlining.
13449 lt_prog_compiler_pic_CXX
='-fPIC'
13454 # QNX uses GNU C++, but need to define -shared option too, otherwise
13455 # it will coredump.
13456 lt_prog_compiler_pic_CXX
='-fPIC -shared'
13459 lt_prog_compiler_pic_CXX
='-fPIC'
13465 # All AIX code is PIC.
13466 if test "$host_cpu" = ia64
; then
13467 # AIX 5 now supports IA64 processor
13468 lt_prog_compiler_static_CXX
='-Bstatic'
13470 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
13474 case $cc_basename in
13476 # Green Hills C++ Compiler
13477 # _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"
13482 case $cc_basename in
13484 lt_prog_compiler_pic_CXX
='-KPIC'
13487 # Green Hills C++ Compiler
13488 lt_prog_compiler_pic_CXX
='-pic'
13494 freebsd
* | dragonfly
*)
13495 # FreeBSD uses GNU C++
13497 hpux9
* | hpux10
* | hpux11
*)
13498 case $cc_basename in
13500 lt_prog_compiler_wl_CXX
='-Wl,'
13501 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
13502 if test "$host_cpu" != ia64
; then
13503 lt_prog_compiler_pic_CXX
='+Z'
13507 lt_prog_compiler_wl_CXX
='-Wl,'
13508 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
13514 lt_prog_compiler_pic_CXX
='+Z'
13523 # This is c89, which is MS Visual C++ (no shared libs)
13524 # Anyone wants to do a port?
13526 irix5
* | irix6
* | nonstopux
*)
13527 case $cc_basename in
13529 lt_prog_compiler_wl_CXX
='-Wl,'
13530 lt_prog_compiler_static_CXX
='-non_shared'
13531 # CC pic flag -KPIC is the default.
13537 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
13538 case $cc_basename in
13541 lt_prog_compiler_wl_CXX
='--backend -Wl,'
13542 lt_prog_compiler_pic_CXX
='-fPIC'
13545 # old Intel C++ for x86_64 which still supported -KPIC.
13546 lt_prog_compiler_wl_CXX
='-Wl,'
13547 lt_prog_compiler_pic_CXX
='-KPIC'
13548 lt_prog_compiler_static_CXX
='-static'
13551 # Intel C++, used to be incompatible with GCC.
13552 # ICC 10 doesn't accept -KPIC any more.
13553 lt_prog_compiler_wl_CXX
='-Wl,'
13554 lt_prog_compiler_pic_CXX
='-fPIC'
13555 lt_prog_compiler_static_CXX
='-static'
13558 # Portland Group C++ compiler
13559 lt_prog_compiler_wl_CXX
='-Wl,'
13560 lt_prog_compiler_pic_CXX
='-fpic'
13561 lt_prog_compiler_static_CXX
='-Bstatic'
13565 # Make sure the PIC flag is empty. It appears that all Alpha
13566 # Linux and Compaq Tru64 Unix objects are PIC.
13567 lt_prog_compiler_pic_CXX
=
13568 lt_prog_compiler_static_CXX
='-non_shared'
13570 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
13571 # IBM XL 8.0, 9.0 on PPC and BlueGene
13572 lt_prog_compiler_wl_CXX
='-Wl,'
13573 lt_prog_compiler_pic_CXX
='-qpic'
13574 lt_prog_compiler_static_CXX
='-qstaticlink'
13577 case `$CC -V 2>&1 | sed 5q` in
13580 lt_prog_compiler_pic_CXX
='-KPIC'
13581 lt_prog_compiler_static_CXX
='-Bstatic'
13582 lt_prog_compiler_wl_CXX
='-Qoption ld '
13593 case $cc_basename in
13595 lt_prog_compiler_pic_CXX
='-W c,exportall'
13604 # QNX uses GNU C++, but need to define -shared option too, otherwise
13605 # it will coredump.
13606 lt_prog_compiler_pic_CXX
='-fPIC -shared'
13608 osf3
* | osf4
* | osf5
*)
13609 case $cc_basename in
13611 lt_prog_compiler_wl_CXX
='--backend -Wl,'
13614 # Rational C++ 2.4.1
13615 lt_prog_compiler_pic_CXX
='-pic'
13618 # Digital/Compaq C++
13619 lt_prog_compiler_wl_CXX
='-Wl,'
13620 # Make sure the PIC flag is empty. It appears that all Alpha
13621 # Linux and Compaq Tru64 Unix objects are PIC.
13622 lt_prog_compiler_pic_CXX
=
13623 lt_prog_compiler_static_CXX
='-non_shared'
13632 case $cc_basename in
13634 # Sun C++ 4.2, 5.x and Centerline C++
13635 lt_prog_compiler_pic_CXX
='-KPIC'
13636 lt_prog_compiler_static_CXX
='-Bstatic'
13637 lt_prog_compiler_wl_CXX
='-Qoption ld '
13640 # Green Hills C++ Compiler
13641 lt_prog_compiler_pic_CXX
='-PIC'
13648 case $cc_basename in
13651 lt_prog_compiler_pic_CXX
='-pic'
13652 lt_prog_compiler_static_CXX
='-Bstatic'
13656 lt_prog_compiler_pic_CXX
='-pic'
13662 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
13663 case $cc_basename in
13665 lt_prog_compiler_wl_CXX
='-Wl,'
13666 lt_prog_compiler_pic_CXX
='-KPIC'
13667 lt_prog_compiler_static_CXX
='-Bstatic'
13672 case $cc_basename in
13674 # NonStop-UX NCC 3.20
13675 lt_prog_compiler_pic_CXX
='-KPIC'
13684 lt_prog_compiler_can_build_shared_CXX
=no
13690 # For platforms which do not support PIC, -DPIC is meaningless:
13692 lt_prog_compiler_pic_CXX
=
13695 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13699 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13704 # Check to make sure the PIC flag actually works.
13706 if test -n "$lt_prog_compiler_pic_CXX"; then
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13708 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13709 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
13710 $as_echo_n "(cached) " >&6
13712 lt_cv_prog_compiler_pic_works_CXX
=no
13713 ac_outfile
=conftest.
$ac_objext
13714 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13715 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
13716 # Insert the option either (1) after the last *FLAGS variable, or
13717 # (2) before a word containing "conftest.", or (3) at the end.
13718 # Note that $ac_compile itself does not contain backslashes and begins
13719 # with a dollar sign (not a hyphen), so the echo should work correctly.
13720 # The option is referenced via a variable to avoid confusing sed.
13721 lt_compile
=`echo "$ac_compile" | $SED \
13722 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13723 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13724 -e 's:$: $lt_compiler_flag:'`
13725 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13726 (eval "$lt_compile" 2>conftest.err
)
13728 cat conftest.err
>&5
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 if (exit $ac_status) && test -s "$ac_outfile"; then
13731 # The compiler can only warn and ignore the option if not recognized
13732 # So say no if there are warnings other than the usual output.
13733 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
13734 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
13735 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
13736 lt_cv_prog_compiler_pic_works_CXX
=yes
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13743 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13745 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
13746 case $lt_prog_compiler_pic_CXX in
13748 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
13751 lt_prog_compiler_pic_CXX
=
13752 lt_prog_compiler_can_build_shared_CXX
=no
13760 # Check to make sure the static flag actually works.
13762 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13764 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13765 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
13766 $as_echo_n "(cached) " >&6
13768 lt_cv_prog_compiler_static_works_CXX
=no
13769 save_LDFLAGS
="$LDFLAGS"
13770 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
13771 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
13772 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
13773 # The linker can only warn and ignore the option if not recognized
13774 # So say no if there are warnings
13775 if test -s conftest.err
; then
13776 # Append any errors to the config.log.
13777 cat conftest.err
1>&5
13778 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
13779 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
13780 if diff conftest.exp conftest.er2
>/dev
/null
; then
13781 lt_cv_prog_compiler_static_works_CXX
=yes
13784 lt_cv_prog_compiler_static_works_CXX
=yes
13788 LDFLAGS
="$save_LDFLAGS"
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13792 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13794 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
13797 lt_prog_compiler_static_CXX
=
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13804 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13805 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
13806 $as_echo_n "(cached) " >&6
13808 lt_cv_prog_compiler_c_o_CXX
=no
13809 $RM -r conftest
2>/dev
/null
13813 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13815 lt_compiler_flag
="-o out/conftest2.$ac_objext"
13816 # Insert the option either (1) after the last *FLAGS variable, or
13817 # (2) before a word containing "conftest.", or (3) at the end.
13818 # Note that $ac_compile itself does not contain backslashes and begins
13819 # with a dollar sign (not a hyphen), so the echo should work correctly.
13820 lt_compile
=`echo "$ac_compile" | $SED \
13821 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13822 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13823 -e 's:$: $lt_compiler_flag:'`
13824 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13825 (eval "$lt_compile" 2>out
/conftest.err
)
13827 cat out
/conftest.err
>&5
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
13831 # The compiler can only warn and ignore the option if not recognized
13832 # So say no if there are warnings
13833 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
13834 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
13835 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
13836 lt_cv_prog_compiler_c_o_CXX
=yes
13841 # SGI C++ compiler will create directory out/ii_files/ for
13842 # template instantiation
13843 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
13844 $RM out
/* && rmdir out
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13851 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13856 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13857 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
13858 $as_echo_n "(cached) " >&6
13860 lt_cv_prog_compiler_c_o_CXX
=no
13861 $RM -r conftest
2>/dev
/null
13865 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13867 lt_compiler_flag
="-o out/conftest2.$ac_objext"
13868 # Insert the option either (1) after the last *FLAGS variable, or
13869 # (2) before a word containing "conftest.", or (3) at the end.
13870 # Note that $ac_compile itself does not contain backslashes and begins
13871 # with a dollar sign (not a hyphen), so the echo should work correctly.
13872 lt_compile
=`echo "$ac_compile" | $SED \
13873 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13874 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13875 -e 's:$: $lt_compiler_flag:'`
13876 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13877 (eval "$lt_compile" 2>out
/conftest.err
)
13879 cat out
/conftest.err
>&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
13883 # The compiler can only warn and ignore the option if not recognized
13884 # So say no if there are warnings
13885 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
13886 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
13887 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
13888 lt_cv_prog_compiler_c_o_CXX
=yes
13893 # SGI C++ compiler will create directory out/ii_files/ for
13894 # template instantiation
13895 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
13896 $RM out
/* && rmdir out
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13903 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13908 hard_links
="nottested"
13909 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
13910 # do not overwrite the value of need_locks provided by the user
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13912 $as_echo_n "checking if we can lock with hard links... " >&6; }
13915 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13917 ln conftest.a conftest.b
2>&5 || hard_links
=no
13918 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13920 $as_echo "$hard_links" >&6; }
13921 if test "$hard_links" = no
; then
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13923 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13933 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13935 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13938 # If we're using GNU nm, then we don't want the "-C" option.
13939 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13940 # Also, AIX nm treats weak defined symbols like other global defined
13941 # symbols, whereas GNU nm marks them as "W".
13942 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
13943 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'
13945 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'
13949 export_symbols_cmds_CXX
="$ltdll_cmds"
13951 cygwin
* | mingw
* | cegcc
*)
13952 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'
13955 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13958 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13961 $as_echo "$ld_shlibs_CXX" >&6; }
13962 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
13964 with_gnu_ld_CXX
=$with_gnu_ld
13972 # Do we need to explicitly link libc?
13974 case "x$archive_cmds_need_lc_CXX" in
13976 # Assume -lc should be added
13977 archive_cmds_need_lc_CXX
=yes
13979 if test "$enable_shared" = yes && test "$GCC" = yes; then
13980 case $archive_cmds_CXX in
13982 # FIXME: we may have to deal with multi-command sequences.
13985 # Test whether the compiler implicitly links with -lc since on some
13986 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13987 # to ld, don't add -lc before -lgcc.
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13989 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13990 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
13991 $as_echo_n "(cached) " >&6
13994 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13996 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13997 (eval $ac_compile) 2>&5
13999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14000 test $ac_status = 0; } 2>conftest.err
; then
14003 libobjs
=conftest.
$ac_objext
14005 wl
=$lt_prog_compiler_wl_CXX
14006 pic_flag
=$lt_prog_compiler_pic_CXX
14012 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
14013 allow_undefined_flag_CXX
=
14014 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14015 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
14017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14018 test $ac_status = 0; }
14020 lt_cv_archive_cmds_need_lc_CXX
=no
14022 lt_cv_archive_cmds_need_lc_CXX
=yes
14024 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
14026 cat conftest.err
1>&5
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14032 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14033 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14104 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14106 library_names_spec
=
14107 libname_spec
='lib$name'
14111 postuninstall_cmds
=
14115 shlibpath_overrides_runpath
=unknown
14117 dynamic_linker
="$host_os ld.so"
14118 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
14119 need_lib_prefix
=unknown
14120 hardcode_into_libs
=no
14122 # when you set need_version to no, make sure it does not cause -set_version
14123 # flags to be left without arguments
14124 need_version
=unknown
14129 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
14130 shlibpath_var
=LIBPATH
14132 # AIX 3 has no versioning support, so we append a major version to the name.
14133 soname_spec
='${libname}${release}${shared_ext}$major'
14140 hardcode_into_libs
=yes
14141 if test "$host_cpu" = ia64
; then
14142 # AIX 5 supports IA64
14143 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14144 shlibpath_var
=LD_LIBRARY_PATH
14146 # With GCC up to 2.95.x, collect2 would create an import file
14147 # for dependence libraries. The import file would start with
14148 # the line `#! .'. This would cause the generated library to
14149 # depend on `.', always an invalid library. This was fixed in
14150 # development snapshots of GCC prior to 3.0.
14152 aix4 | aix4.
[01] | aix4.
[01].
*)
14153 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14155 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
14158 can_build_shared
=no
14162 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14163 # soname into executable. Probably we can add versioning support to
14164 # collect2, so additional links can be useful in future.
14165 if test "$aix_use_runtimelinking" = yes; then
14166 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14167 # instead of lib<name>.a to let people know that these are not
14168 # typical AIX shared libraries.
14169 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14171 # We preserve .a as extension for shared libraries through AIX4.2
14172 # and later when we are not doing run time linking.
14173 library_names_spec
='${libname}${release}.a $libname.a'
14174 soname_spec
='${libname}${release}${shared_ext}$major'
14176 shlibpath_var
=LIBPATH
14183 # Since July 2007 AmigaOS4 officially supports .so libraries.
14184 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14185 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14188 library_names_spec
='$libname.ixlibrary $libname.a'
14189 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14190 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'
14196 library_names_spec
='${libname}${shared_ext}'
14197 dynamic_linker
="$host_os ld.so"
14198 shlibpath_var
=LIBRARY_PATH
14204 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14205 soname_spec
='${libname}${release}${shared_ext}$major'
14206 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
14207 shlibpath_var
=LD_LIBRARY_PATH
14208 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14209 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
14210 # the default ld.so.conf also contains /usr/contrib/lib and
14211 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14212 # libtool to hard-code these into programs
14215 cygwin
* | mingw
* | pw32
* | cegcc
*)
14216 version_type
=windows
14221 case $GCC,$host_os in
14222 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
14223 library_names_spec
='$libname.dll.a'
14224 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14225 postinstall_cmds
='base_file=`basename \${file}`~
14226 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14227 dldir=$destdir/`dirname \$dlpath`~
14228 test -d \$dldir || mkdir -p \$dldir~
14229 $install_prog $dir/$dlname \$dldir/$dlname~
14230 chmod a+x \$dldir/$dlname~
14231 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14232 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14234 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14235 dlpath=$dir/\$dldll~
14237 shlibpath_overrides_runpath
=yes
14241 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14242 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14246 # MinGW DLLs use traditional 'lib' prefix
14247 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14250 # pw32 DLLs use 'pw' prefix rather than 'lib'
14251 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14257 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14260 dynamic_linker
='Win32 ld.exe'
14261 # FIXME: first we should search . and the directory the executable is in
14265 darwin
* | rhapsody
*)
14266 dynamic_linker
="$host_os dyld"
14267 version_type
=darwin
14270 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14271 soname_spec
='${libname}${release}${major}$shared_ext'
14272 shlibpath_overrides_runpath
=yes
14273 shlibpath_var
=DYLD_LIBRARY_PATH
14274 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
14276 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
14283 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14284 soname_spec
='${libname}${release}${shared_ext}$major'
14285 shlibpath_var
=LD_LIBRARY_PATH
14288 freebsd
* | dragonfly
*)
14289 # DragonFly does not have aout. When/if they implement a new
14290 # versioning mechanism, adjust this.
14291 if test -x /usr
/bin
/objformat
; then
14292 objformat
=`/usr/bin/objformat`
14295 freebsd
[23].
*) objformat
=aout
;;
14296 *) objformat
=elf
;;
14299 version_type
=freebsd-
$objformat
14300 case $version_type in
14302 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14307 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14311 shlibpath_var
=LD_LIBRARY_PATH
14314 shlibpath_overrides_runpath
=yes
14316 freebsd3.
[01]* | freebsdelf3.
[01]*)
14317 shlibpath_overrides_runpath
=yes
14318 hardcode_into_libs
=yes
14320 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
14321 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
14322 shlibpath_overrides_runpath
=no
14323 hardcode_into_libs
=yes
14325 *) # from 4.6 on, and DragonFly
14326 shlibpath_overrides_runpath
=yes
14327 hardcode_into_libs
=yes
14336 dynamic_linker
="$host_os runtime_loader"
14337 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14338 soname_spec
='${libname}${release}${shared_ext}$major'
14339 shlibpath_var
=LIBRARY_PATH
14340 shlibpath_overrides_runpath
=yes
14341 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14342 hardcode_into_libs
=yes
14345 hpux9
* | hpux10
* | hpux11
*)
14346 # Give a soname corresponding to the major version so that dld.sl refuses to
14347 # link against other versions.
14354 hardcode_into_libs
=yes
14355 dynamic_linker
="$host_os dld.so"
14356 shlibpath_var
=LD_LIBRARY_PATH
14357 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14358 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14359 soname_spec
='${libname}${release}${shared_ext}$major'
14360 if test "X$HPUX_IA64_MODE" = X32
; then
14361 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14363 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
14365 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14369 hardcode_into_libs
=yes
14370 dynamic_linker
="$host_os dld.sl"
14371 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
14372 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14373 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14374 soname_spec
='${libname}${release}${shared_ext}$major'
14375 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14376 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14380 dynamic_linker
="$host_os dld.sl"
14381 shlibpath_var
=SHLIB_PATH
14382 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
14383 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14384 soname_spec
='${libname}${release}${shared_ext}$major'
14387 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14388 postinstall_cmds
='chmod 555 $lib'
14389 # or fails outright, so override atomically:
14390 install_override_mode
=555
14397 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14398 soname_spec
='${libname}${release}${shared_ext}$major'
14399 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
14400 shlibpath_var
=LD_LIBRARY_PATH
14401 shlibpath_overrides_runpath
=no
14402 hardcode_into_libs
=yes
14405 irix5
* | irix6
* | nonstopux
*)
14407 nonstopux
*) version_type
=nonstopux
;;
14409 if test "$lt_cv_prog_gnu_ld" = yes; then
14417 soname_spec
='${libname}${release}${shared_ext}$major'
14418 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14420 irix5
* | nonstopux
*)
14421 libsuff
= shlibsuff
=
14424 case $LD in # libtool.m4 will add one of these switches to LD
14425 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
14426 libsuff
= shlibsuff
= libmagic
=32-bit;;
14427 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
14428 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
14429 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
14430 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
14431 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
14435 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
14436 shlibpath_overrides_runpath
=no
14437 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14438 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
14439 hardcode_into_libs
=yes
14442 # No shared lib support for Linux oldld, aout, or coff.
14443 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
14447 # This must be Linux ELF.
14449 # uclinux* changes (here and below) have been submitted to the libtool
14450 # project, but have not yet been accepted: they are GCC-local changes
14451 # for the time being. (See
14452 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14453 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
14457 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14458 soname_spec
='${libname}${release}${shared_ext}$major'
14459 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14460 shlibpath_var
=LD_LIBRARY_PATH
14461 shlibpath_overrides_runpath
=no
14463 # Some binutils ld are patched to set DT_RUNPATH
14464 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
14465 $as_echo_n "(cached) " >&6
14467 lt_cv_shlibpath_overrides_runpath
=no
14468 save_LDFLAGS
=$LDFLAGS
14469 save_libdir
=$libdir
14470 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14471 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14473 /* end confdefs.h. */
14483 if ac_fn_cxx_try_link
"$LINENO"; then :
14484 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
14485 lt_cv_shlibpath_overrides_runpath
=yes
14488 rm -f core conftest.err conftest.
$ac_objext \
14489 conftest
$ac_exeext conftest.
$ac_ext
14490 LDFLAGS
=$save_LDFLAGS
14491 libdir
=$save_libdir
14495 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
14497 # This implies no fast_install, which is unacceptable.
14498 # Some rework will be needed to allow for fast_install
14499 # before this can be enabled.
14500 hardcode_into_libs
=yes
14502 # Append ld.so.conf contents to the search path
14503 if test -f /etc
/ld.so.conf
; then
14504 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' ' '`
14505 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
14508 # We used to test for /lib/ld.so.1 and disable shared libraries on
14509 # powerpc, because MkLinux only supported shared libraries with the
14510 # GNU dynamic linker. Since this was broken with cross compilers,
14511 # most powerpc-linux boxes support dynamic linking these days and
14512 # people can always --disable-shared, the test was removed, and we
14513 # assume the GNU/Linux dynamic linker is in use.
14514 dynamic_linker
='GNU/Linux ld.so'
14521 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
14522 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14523 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14524 dynamic_linker
='NetBSD (a.out) ld.so'
14526 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14527 soname_spec
='${libname}${release}${shared_ext}$major'
14528 dynamic_linker
='NetBSD ld.elf_so'
14530 shlibpath_var
=LD_LIBRARY_PATH
14531 shlibpath_overrides_runpath
=yes
14532 hardcode_into_libs
=yes
14537 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14538 shlibpath_var
=LD_LIBRARY_PATH
14539 shlibpath_overrides_runpath
=yes
14546 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14547 soname_spec
='${libname}${release}${shared_ext}$major'
14548 shlibpath_var
=LD_LIBRARY_PATH
14549 shlibpath_overrides_runpath
=no
14550 hardcode_into_libs
=yes
14551 dynamic_linker
='ldqnx.so'
14556 sys_lib_dlsearch_path_spec
="/usr/lib"
14558 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14560 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
14561 *) need_version
=no
;;
14563 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14564 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14565 shlibpath_var
=LD_LIBRARY_PATH
14566 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14568 openbsd2.
[89] | openbsd2.
[89].
*)
14569 shlibpath_overrides_runpath
=no
14572 shlibpath_overrides_runpath
=yes
14576 shlibpath_overrides_runpath
=yes
14581 libname_spec
='$name'
14584 library_names_spec
='$libname${shared_ext} $libname.a'
14585 dynamic_linker
='OS/2 ld.exe'
14586 shlibpath_var
=LIBPATH
14589 osf3
* | osf4
* | osf5
*)
14593 soname_spec
='${libname}${release}${shared_ext}$major'
14594 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14595 shlibpath_var
=LD_LIBRARY_PATH
14596 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14597 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
14608 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14609 soname_spec
='${libname}${release}${shared_ext}$major'
14610 shlibpath_var
=LD_LIBRARY_PATH
14611 shlibpath_overrides_runpath
=yes
14612 hardcode_into_libs
=yes
14613 # ldd complains unless libraries are executable
14614 postinstall_cmds
='chmod +x $lib'
14619 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14620 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14621 shlibpath_var
=LD_LIBRARY_PATH
14622 shlibpath_overrides_runpath
=yes
14623 if test "$with_gnu_ld" = yes; then
14631 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14632 soname_spec
='${libname}${release}${shared_ext}$major'
14633 shlibpath_var
=LD_LIBRARY_PATH
14634 case $host_vendor in
14636 shlibpath_overrides_runpath
=no
14638 runpath_var
=LD_RUN_PATH
14646 shlibpath_overrides_runpath
=no
14647 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
14653 if test -d /usr
/nec
;then
14655 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14656 soname_spec
='$libname${shared_ext}.$major'
14657 shlibpath_var
=LD_LIBRARY_PATH
14661 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
14662 version_type
=freebsd-elf
14665 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14666 soname_spec
='${libname}${release}${shared_ext}$major'
14667 shlibpath_var
=LD_LIBRARY_PATH
14668 shlibpath_overrides_runpath
=yes
14669 hardcode_into_libs
=yes
14670 if test "$with_gnu_ld" = yes; then
14671 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14673 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
14676 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
14680 sys_lib_dlsearch_path_spec
='/usr/lib'
14684 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14688 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14689 shlibpath_var
=LD_LIBRARY_PATH
14690 shlibpath_overrides_runpath
=no
14691 hardcode_into_libs
=yes
14696 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14697 soname_spec
='${libname}${release}${shared_ext}$major'
14698 shlibpath_var
=LD_LIBRARY_PATH
14701 # Shared libraries for VwWorks, >= 7 only at this stage
14702 # and (fpic) still incompatible with "large" code models
14703 # in a few configurations. Only for RTP mode in any case,
14704 # and upon explicit request at configure time.
14707 case ${with_multisubdir}-${enable_shared} in
14714 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14715 soname_spec
='${libname}${release}${shared_ext}$major'
14716 dynamic_linker
="$host_os module_loader"
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14725 $as_echo "$dynamic_linker" >&6; }
14726 test "$dynamic_linker" = no
&& can_build_shared
=no
14728 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
14729 if test "$GCC" = yes; then
14730 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14733 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14734 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
14736 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14737 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14778 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14779 hardcode_action_CXX
=
14780 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14781 test -n "$runpath_var_CXX" ||
14782 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14784 # We can hardcode non-existent directories.
14785 if test "$hardcode_direct_CXX" != no
&&
14786 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14787 # have to relink, otherwise we might link with an installed library
14788 # when we should be linking with a yet-to-be-installed one
14789 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14790 test "$hardcode_minus_L_CXX" != no
; then
14791 # Linking always hardcodes the temporary library directory.
14792 hardcode_action_CXX
=relink
14794 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14795 hardcode_action_CXX
=immediate
14798 # We cannot hardcode anything, or else we can only hardcode existing
14800 hardcode_action_CXX
=unsupported
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14803 $as_echo "$hardcode_action_CXX" >&6; }
14805 if test "$hardcode_action_CXX" = relink ||
14806 test "$inherit_rpath_CXX" = yes; then
14807 # Fast installation is not supported
14808 enable_fast_install
=no
14809 elif test "$shlibpath_overrides_runpath" = yes ||
14810 test "$enable_shared" = no
; then
14811 # Fast installation is not necessary
14812 enable_fast_install
=needless
14821 fi # test -n "$compiler"
14827 with_gnu_ld
=$lt_save_with_gnu_ld
14828 lt_cv_path_LDCXX
=$lt_cv_path_LD
14829 lt_cv_path_LD
=$lt_save_path_LD
14830 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
14831 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
14832 fi # test "$_lt_caught_CXX_error" != yes
14835 ac_cpp
='$CPP $CPPFLAGS'
14836 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14837 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14838 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14852 ac_config_commands
="$ac_config_commands libtool"
14857 # Only expand once:
14860 # ... and we need it soon, since it is used by some of the
14861 # link tests in the configure script.
14862 : ${CONFIG_LT=./config.lt}
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
14864 $as_echo "$as_me: creating $CONFIG_LT" >&6;}
14866 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
14868 # Generated by $as_me.
14869 # Run this file to recreate a libtool stub with the current configuration.
14870 SHELL=\${CONFIG_SHELL-$SHELL}
14873 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail
=1
14874 ## -------------------- ##
14875 ## M4sh Initialization. ##
14876 ## -------------------- ##
14878 # Be more Bourne compatible
14879 DUALCASE
=1; export DUALCASE
# for MKS sh
14880 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
14883 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14884 # is contrary to our usage. Disable this feature.
14885 alias -g '${1+"$@"}'='"$@"'
14886 setopt NO_GLOB_SUBST
14888 case `(set -o) 2>/dev/null` in #(
14900 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14901 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14902 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14903 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14904 # Prefer a ksh shell builtin over an external printf program on Solaris,
14905 # but without wasting forks for bash or zsh.
14906 if test -z "$BASH_VERSION$ZSH_VERSION" \
14907 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14908 as_echo='print
-r --'
14909 as_echo_n='print
-rn --'
14910 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14911 as_echo='printf %s
\n'
14912 as_echo_n='printf %s
'
14914 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14915 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
14916 as_echo_n='/usr
/ucb
/echo -n'
14918 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14919 as_echo_n_body='eval
14923 expr "X$arg" : "X\\(.*\\)$as_nl";
14924 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14926 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
14928 export as_echo_n_body
14929 as_echo_n='sh
-c $as_echo_n_body as_echo
'
14931 export as_echo_body
14932 as_echo='sh
-c $as_echo_body as_echo
'
14935 # The user is always right.
14936 if test "${PATH_SEPARATOR+set}" != set; then
14938 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14939 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14946 # We need space, tab and new line, in precisely that order. Quoting is
14947 # there to prevent editors from complaining about space-tab.
14948 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14949 # splitting by setting IFS to empty value.)
14952 # Find who we are. Look in the path if we contain no directory separator.
14955 *[\\/]* ) as_myself=$0 ;;
14956 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14957 for as_dir in $PATH
14960 test -z "$as_dir" && as_dir=.
14961 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14967 # We did not find ourselves, most probably we were run as `sh COMMAND'
14968 # in which case we are not to be found in the path.
14969 if test "x$as_myself" = x
; then
14972 if test ! -f "$as_myself"; then
14973 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14977 # Unset variables that we do not need and which cause bugs (e.g. in
14978 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14979 # suppresses any "Segmentation fault" message there. '((' could
14980 # trigger a bug in pdksh 5.2.14.
14981 for as_var
in BASH_ENV ENV MAIL MAILPATH
14982 do eval test x\
${$as_var+set} = xset \
14983 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
14996 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
14999 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15000 # ----------------------------------------
15001 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15002 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15003 # script with STATUS, using 1 if that was 0.
15006 as_status
=$1; test $as_status -eq 0 && as_status
=1
15008 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15009 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15011 $as_echo "$as_me: error: $2" >&2
15012 as_fn_exit
$as_status
15016 # as_fn_set_status STATUS
15017 # -----------------------
15018 # Set $? to STATUS, without forking.
15019 as_fn_set_status
()
15022 } # as_fn_set_status
15024 # as_fn_exit STATUS
15025 # -----------------
15026 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15030 as_fn_set_status
$1
15036 # Portably unset VAR.
15039 { eval $1=; unset $1;}
15041 as_unset
=as_fn_unset
15042 # as_fn_append VAR VALUE
15043 # ----------------------
15044 # Append the text in VALUE to the end of the definition contained in VAR. Take
15045 # advantage of any shell optimizations that allow amortized linear growth over
15046 # repeated appends, instead of the typical quadratic growth present in naive
15048 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15049 eval 'as_fn_append ()
15060 # as_fn_arith ARG...
15061 # ------------------
15062 # Perform arithmetic evaluation on the ARGs, and store the result in the
15063 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15064 # must be portable across $(()) and expr.
15065 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15066 eval 'as_fn_arith ()
15073 as_val
=`expr "$@" || test $? -eq 1`
15078 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15079 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15085 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15086 as_basename
=basename
15091 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15097 as_me
=`$as_basename -- "$0" ||
15098 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15099 X"$0" : 'X\(//\)$' \| \
15100 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15102 sed '/^.*\/\([^/][^/]*\)\/*$/{
15116 # Avoid depending upon Character Ranges.
15117 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15118 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15119 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15120 as_cr_digits
='0123456789'
15121 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15123 ECHO_C
= ECHO_N
= ECHO_T
=
15124 case `echo -n x` in #(((((
15126 case `echo 'xy\c'` in
15127 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15129 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15136 rm -f conf$$ conf$$.exe conf$$.
file
15137 if test -d conf$$.dir
; then
15138 rm -f conf$$.dir
/conf$$.
file
15141 mkdir conf$$.dir
2>/dev
/null
15143 if (echo >conf$$.
file) 2>/dev
/null
; then
15144 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15146 # ... but there are two gotchas:
15147 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15148 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15149 # In both cases, we have to default to `cp -pR'.
15150 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15152 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15160 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15161 rmdir conf$$.dir
2>/dev
/null
15166 # Create "$as_dir" as a directory, including parents if necessary.
15171 -*) as_dir
=.
/$as_dir;;
15173 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15177 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15178 *) as_qdir
=$as_dir;;
15180 as_dirs
="'$as_qdir' $as_dirs"
15181 as_dir
=`$as_dirname -- "$as_dir" ||
15182 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15183 X"$as_dir" : 'X\(//\)[^/]' \| \
15184 X"$as_dir" : 'X\(//\)$' \| \
15185 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15186 $as_echo X"$as_dir" |
15187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15191 /^X\(\/\/\)[^/].*/{
15204 test -d "$as_dir" && break
15206 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15207 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
15211 if mkdir
-p .
2>/dev
/null
; then
15212 as_mkdir_p
='mkdir -p "$as_dir"'
15214 test -d .
/-p && rmdir .
/-p
15219 # as_fn_executable_p FILE
15220 # -----------------------
15221 # Test if FILE is an executable regular file.
15222 as_fn_executable_p
()
15224 test -f "$1" && test -x "$1"
15225 } # as_fn_executable_p
15226 as_test_x
='test -x'
15227 as_executable_p
=as_fn_executable_p
15229 # Sed expression to map a string onto a valid CPP name.
15230 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15232 # Sed expression to map a string onto a valid variable name.
15233 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15237 ## --------------------------------- ##
15238 ## Main body of "$CONFIG_LT" script. ##
15239 ## --------------------------------- ##
15241 test $as_write_fail = 0 && chmod +x
"$CONFIG_LT"
15243 cat >>"$CONFIG_LT" <<\_LTEOF
15248 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15249 ## Running $as_me. ##
15254 \`$as_me' creates a local libtool stub from the current configuration,
15255 for use in further configure time tests before the real libtool is
15258 Usage: $0 [OPTIONS]
15260 -h, --help print this help, then exit
15261 -V, --version print version number, then exit
15262 -q, --quiet do not print progress messages
15263 -d, --debug don't remove temporary files
15265 Report bugs to <bug-libtool@gnu.org>."
15269 configured by $0, generated by GNU Autoconf 2.69.
15271 Copyright (C) 2009 Free Software Foundation, Inc.
15272 This config.lt script is free software; the Free Software Foundation
15273 gives unlimited permision to copy, distribute and modify it."
15278 --version |
--v* |
-V )
15279 echo "$lt_cl_version"; exit 0 ;;
15280 --help |
--h* |
-h )
15281 echo "$lt_cl_help"; exit 0 ;;
15282 --debug |
--d* |
-d )
15284 --quiet |
--q* |
--silent |
--s* |
-q )
15287 -*) as_fn_error $?
"unrecognized option: $1
15288 Try \`$0 --help' for more information." "$LINENO" 5 ;;
15290 *) as_fn_error $?
"unrecognized argument: $1
15291 Try \`$0 --help' for more information." "$LINENO" 5 ;;
15296 if $lt_cl_silent; then
15301 cat >>"$CONFIG_LT" <<_LTEOF
15304 # The HP-UX ksh and POSIX shell print the target directory to stdout
15305 # if CDPATH is set.
15306 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15308 sed_quote_subst='$sed_quote_subst'
15309 double_quote_subst='$double_quote_subst'
15310 delay_variable_subst='$delay_variable_subst'
15311 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15312 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15313 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15314 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15315 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15316 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15317 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15318 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15319 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15320 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15321 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15322 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15323 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15324 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15325 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15326 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15327 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15328 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15329 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15330 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15331 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15332 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15333 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15334 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15335 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15336 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15337 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15338 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15339 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15340 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15341 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15342 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15343 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15344 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15345 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15346 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15347 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15348 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15349 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15350 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15351 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15352 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15353 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15354 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15355 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15356 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15357 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15358 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15359 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"`'
15360 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15361 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15362 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15363 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15364 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15365 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15366 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15367 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15368 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15369 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15370 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15371 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15372 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15373 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15374 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15375 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15376 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15377 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15378 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15379 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15380 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15381 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15382 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15383 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15384 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15385 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15386 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15387 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15388 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15389 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15390 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15391 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15392 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15393 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15394 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15395 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15396 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15397 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15398 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15399 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15400 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15401 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15402 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15403 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15404 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15405 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15406 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15407 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15408 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15409 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15410 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15411 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15412 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15413 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15414 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15415 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15416 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15417 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15418 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15419 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15420 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15421 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15422 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15423 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15424 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15425 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15426 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15427 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15428 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15429 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15430 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15431 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15432 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15433 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15434 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15435 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15436 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15437 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15438 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15439 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15440 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15441 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15442 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15443 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15444 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15445 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15446 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15447 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15448 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15449 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15450 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15451 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15452 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15453 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15454 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15455 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15456 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15457 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15458 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15459 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15460 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15461 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15462 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15463 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15464 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15465 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15466 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15467 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15468 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15469 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15470 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15471 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15472 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15473 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15474 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15475 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15476 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15477 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15478 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15479 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15480 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15481 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15482 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15483 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15484 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15485 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15488 LTCFLAGS='$LTCFLAGS'
15489 compiler='$compiler_DEFAULT'
15491 # A function that is used when there is no print builtin or printf.
15492 func_fallback_echo ()
15494 eval 'cat <<_LTECHO_EOF
15499 # Quote evaled strings.
15513 deplibs_check_method \
15522 lt_cv_sys_global_symbol_pipe \
15523 lt_cv_sys_global_symbol_to_cdecl \
15524 lt_cv_sys_global_symbol_to_c_name_address \
15525 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15526 lt_prog_compiler_no_builtin_flag \
15527 lt_prog_compiler_wl \
15528 lt_prog_compiler_pic \
15529 lt_prog_compiler_static \
15530 lt_cv_prog_compiler_c_o \
15538 export_dynamic_flag_spec \
15539 whole_archive_flag_spec \
15540 compiler_needs_object \
15542 allow_undefined_flag \
15543 no_undefined_flag \
15544 hardcode_libdir_flag_spec \
15545 hardcode_libdir_flag_spec_ld \
15546 hardcode_libdir_separator \
15551 variables_saved_for_relink \
15553 library_names_spec \
15555 install_override_mode \
15559 compiler_lib_search_dirs \
15564 compiler_lib_search_path \
15568 lt_prog_compiler_no_builtin_flag_CXX \
15569 lt_prog_compiler_wl_CXX \
15570 lt_prog_compiler_pic_CXX \
15571 lt_prog_compiler_static_CXX \
15572 lt_cv_prog_compiler_c_o_CXX \
15573 export_dynamic_flag_spec_CXX \
15574 whole_archive_flag_spec_CXX \
15575 compiler_needs_object_CXX \
15577 allow_undefined_flag_CXX \
15578 no_undefined_flag_CXX \
15579 hardcode_libdir_flag_spec_CXX \
15580 hardcode_libdir_flag_spec_ld_CXX \
15581 hardcode_libdir_separator_CXX \
15582 fix_srcfile_path_CXX \
15583 exclude_expsyms_CXX \
15584 include_expsyms_CXX \
15585 file_list_spec_CXX \
15586 compiler_lib_search_dirs_CXX \
15587 predep_objects_CXX \
15588 postdep_objects_CXX \
15591 compiler_lib_search_path_CXX; do
15592 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15593 *[\\\\\\\`\\"\\\$]*)
15594 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15597 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15602 # Double-quote double-evaled strings.
15603 for var in reload_cmds \
15604 old_postinstall_cmds \
15605 old_postuninstall_cmds \
15607 extract_expsyms_cmds \
15608 old_archive_from_new_cmds \
15609 old_archive_from_expsyms_cmds \
15611 archive_expsym_cmds \
15613 module_expsym_cmds \
15614 export_symbols_cmds \
15617 postuninstall_cmds \
15619 sys_lib_search_path_spec \
15620 sys_lib_dlsearch_path_spec \
15622 old_archive_cmds_CXX \
15623 old_archive_from_new_cmds_CXX \
15624 old_archive_from_expsyms_cmds_CXX \
15626 archive_expsym_cmds_CXX \
15628 module_expsym_cmds_CXX \
15629 export_symbols_cmds_CXX \
15630 prelink_cmds_CXX; do
15631 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15632 *[\\\\\\\`\\"\\\$]*)
15633 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15636 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15641 ac_aux_dir='$ac_aux_dir'
15642 xsi_shell='$xsi_shell'
15643 lt_shell_append='$lt_shell_append'
15645 # See if we are running on zsh, and set the options which allow our
15646 # commands through without removal of \ escapes INIT.
15647 if test -n "\${ZSH_VERSION+set}" ; then
15648 setopt NO_GLOB_SUBST
15654 TIMESTAMP='$TIMESTAMP'
15664 cat >>"$CONFIG_LT" <<\_LTEOF
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
15666 $as_echo "$as_me: creating $ofile" >&6;}
15669 # See if we are running on zsh, and set the options which allow our
15670 # commands through without removal of \ escapes.
15671 if test -n "${ZSH_VERSION+set}" ; then
15672 setopt NO_GLOB_SUBST
15675 cfgfile
="${ofile}T"
15676 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15679 cat <<_LT_EOF >> "$cfgfile"
15682 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15683 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15684 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15685 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15687 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15688 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15689 # Written by Gordon Matzigkeit, 1996
15691 # This file is part of GNU Libtool.
15693 # GNU Libtool is free software; you can redistribute it and/or
15694 # modify it under the terms of the GNU General Public License as
15695 # published by the Free Software Foundation; either version 2 of
15696 # the License, or (at your option) any later version.
15698 # As a special exception to the GNU General Public License,
15699 # if you distribute this file as part of a program or library that
15700 # is built using GNU Libtool, you may include this file under the
15701 # same distribution terms that you use for the rest of that program.
15703 # GNU Libtool is distributed in the hope that it will be useful,
15704 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15705 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15706 # GNU General Public License for more details.
15708 # You should have received a copy of the GNU General Public License
15709 # along with GNU Libtool; see the file COPYING. If not, a copy
15710 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15711 # obtained by writing to the Free Software Foundation, Inc.,
15712 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15715 # The names of the tagged configurations supported by this script.
15716 available_tags="CXX "
15718 # ### BEGIN LIBTOOL CONFIG
15720 # Which release of libtool.m4 was used?
15721 macro_version=$macro_version
15722 macro_revision=$macro_revision
15724 # Whether or not to build shared libraries.
15725 build_libtool_libs=$enable_shared
15727 # Whether or not to build static libraries.
15728 build_old_libs=$enable_static
15730 # What type of objects to build.
15733 # Whether or not to optimize for fast installation.
15734 fast_install=$enable_fast_install
15736 # Shell to use when invoking shell scripts.
15739 # An echo program that protects backslashes.
15743 host_alias=$host_alias
15747 # The build system.
15748 build_alias=$build_alias
15752 # A sed program that does not truncate output.
15755 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15756 Xsed="\$SED -e 1s/^X//"
15758 # A grep program that handles long lines.
15764 # A literal string matcher.
15767 # A BSD- or MS-compatible name lister.
15770 # Whether we need soft or hard links.
15773 # What is the maximum length of a command?
15774 max_cmd_len=$max_cmd_len
15776 # Object file suffix (normally "o").
15779 # Executable file suffix (normally "").
15782 # whether the shell understands "unset".
15785 # turn spaces into newlines.
15788 # turn newlines into spaces.
15791 # An object symbol dumper.
15792 OBJDUMP=$lt_OBJDUMP
15794 # Method to check whether dependent libraries are shared objects.
15795 deplibs_check_method=$lt_deplibs_check_method
15797 # Command to use when deplibs_check_method == "file_magic".
15798 file_magic_cmd=$lt_file_magic_cmd
15802 AR_FLAGS=$lt_AR_FLAGS
15804 # A symbol stripping program.
15807 # Commands used to install an old-style archive.
15809 old_postinstall_cmds=$lt_old_postinstall_cmds
15810 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15812 # Whether to use a lock for old archive extraction.
15813 lock_old_archive_extraction=$lock_old_archive_extraction
15818 # LTCC compiler flags.
15819 LTCFLAGS=$lt_CFLAGS
15821 # Take the output of nm and produce a listing of raw symbols and C names.
15822 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15824 # Transform the output of nm in a proper C declaration.
15825 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15827 # Transform the output of nm in a C name address pair.
15828 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15830 # Transform the output of nm in a C name address pair when lib prefix is needed.
15831 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15833 # The name of the directory that contains temporary libtool files.
15836 # Used to examine libraries when file_magic_cmd begins with "file".
15837 MAGIC_CMD=$MAGIC_CMD
15839 # Must we lock files when doing compilation?
15840 need_locks=$lt_need_locks
15842 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15843 DSYMUTIL=$lt_DSYMUTIL
15845 # Tool to change global to local symbols on Mac OS X.
15848 # Tool to manipulate fat objects and archives on Mac OS X.
15851 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15854 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15855 OTOOL64=$lt_OTOOL64
15857 # Old archive suffix (normally "a").
15860 # Shared library suffix (normally ".so").
15861 shrext_cmds=$lt_shrext_cmds
15863 # The commands to extract the exported symbol list from a shared archive.
15864 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15866 # Variables whose values should be saved in libtool wrapper scripts and
15867 # restored at link time.
15868 variables_saved_for_relink=$lt_variables_saved_for_relink
15870 # Do we need the "lib" prefix for modules?
15871 need_lib_prefix=$need_lib_prefix
15873 # Do we need a version for libraries?
15874 need_version=$need_version
15876 # Library versioning type.
15877 version_type=$version_type
15879 # Shared library runtime path variable.
15880 runpath_var=$runpath_var
15882 # Shared library path variable.
15883 shlibpath_var=$shlibpath_var
15885 # Is shlibpath searched before the hard-coded library search path?
15886 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15888 # Format of library name prefix.
15889 libname_spec=$lt_libname_spec
15891 # List of archive names. First name is the real one, the rest are links.
15892 # The last name is the one that the linker finds with -lNAME
15893 library_names_spec=$lt_library_names_spec
15895 # The coded name of the library, if different from the real name.
15896 soname_spec=$lt_soname_spec
15898 # Permission mode override for installation of shared libraries.
15899 install_override_mode=$lt_install_override_mode
15901 # Command to use after installation of a shared archive.
15902 postinstall_cmds=$lt_postinstall_cmds
15904 # Command to use after uninstallation of a shared archive.
15905 postuninstall_cmds=$lt_postuninstall_cmds
15907 # Commands used to finish a libtool library installation in a directory.
15908 finish_cmds=$lt_finish_cmds
15910 # As "finish_cmds", except a single script fragment to be evaled but
15912 finish_eval=$lt_finish_eval
15914 # Whether we should hardcode library paths into libraries.
15915 hardcode_into_libs=$hardcode_into_libs
15917 # Compile-time system search path for libraries.
15918 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15920 # Run-time system search path for libraries.
15921 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15923 # Whether dlopen is supported.
15924 dlopen_support=$enable_dlopen
15926 # Whether dlopen of programs is supported.
15927 dlopen_self=$enable_dlopen_self
15929 # Whether dlopen of statically linked programs is supported.
15930 dlopen_self_static=$enable_dlopen_self_static
15932 # Commands to strip libraries.
15933 old_striplib=$lt_old_striplib
15934 striplib=$lt_striplib
15937 # The linker used to build libraries.
15940 # How to create reloadable object files.
15941 reload_flag=$lt_reload_flag
15942 reload_cmds=$lt_reload_cmds
15944 # Commands used to build an old-style archive.
15945 old_archive_cmds=$lt_old_archive_cmds
15947 # A language specific compiler.
15950 # Is the compiler the GNU compiler?
15953 # Compiler flag to turn off builtin functions.
15954 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15956 # How to pass a linker flag through the compiler.
15957 wl=$lt_lt_prog_compiler_wl
15959 # Additional compiler flags for building library objects.
15960 pic_flag=$lt_lt_prog_compiler_pic
15962 # Compiler flag to prevent dynamic linking.
15963 link_static_flag=$lt_lt_prog_compiler_static
15965 # Does compiler simultaneously support -c and -o options?
15966 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15968 # Whether or not to add -lc for building shared libraries.
15969 build_libtool_need_lc=$archive_cmds_need_lc
15971 # Whether or not to disallow shared libs when runtime libs are static.
15972 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15974 # Compiler flag to allow reflexive dlopens.
15975 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15977 # Compiler flag to generate shared objects directly from archives.
15978 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15980 # Whether the compiler copes with passing no objects directly.
15981 compiler_needs_object=$lt_compiler_needs_object
15983 # Create an old-style archive from a shared archive.
15984 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15986 # Create a temporary old-style archive to link instead of a shared archive.
15987 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15989 # Commands used to build a shared archive.
15990 archive_cmds=$lt_archive_cmds
15991 archive_expsym_cmds=$lt_archive_expsym_cmds
15993 # Commands used to build a loadable module if different from building
15994 # a shared archive.
15995 module_cmds=$lt_module_cmds
15996 module_expsym_cmds=$lt_module_expsym_cmds
15998 # Whether we are building with GNU ld or not.
15999 with_gnu_ld=$lt_with_gnu_ld
16001 # Flag that allows shared libraries with undefined symbols to be built.
16002 allow_undefined_flag=$lt_allow_undefined_flag
16004 # Flag that enforces no undefined symbols.
16005 no_undefined_flag=$lt_no_undefined_flag
16007 # Flag to hardcode \$libdir into a binary during linking.
16008 # This must work even if \$libdir does not exist
16009 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16011 # If ld is used when linking, flag to hardcode \$libdir into a binary
16012 # during linking. This must work even if \$libdir does not exist.
16013 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16015 # Whether we need a single "-rpath" flag with a separated argument.
16016 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16018 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16019 # DIR into the resulting binary.
16020 hardcode_direct=$hardcode_direct
16022 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16023 # DIR into the resulting binary and the resulting library dependency is
16024 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16025 # library is relocated.
16026 hardcode_direct_absolute=$hardcode_direct_absolute
16028 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16029 # into the resulting binary.
16030 hardcode_minus_L=$hardcode_minus_L
16032 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16033 # into the resulting binary.
16034 hardcode_shlibpath_var=$hardcode_shlibpath_var
16036 # Set to "yes" if building a shared library automatically hardcodes DIR
16037 # into the library and all subsequent libraries and executables linked
16039 hardcode_automatic=$hardcode_automatic
16041 # Set to yes if linker adds runtime paths of dependent libraries
16042 # to runtime path list.
16043 inherit_rpath=$inherit_rpath
16045 # Whether libtool must link a program against all its dependency libraries.
16046 link_all_deplibs=$link_all_deplibs
16048 # Fix the shell variable \$srcfile for the compiler.
16049 fix_srcfile_path=$lt_fix_srcfile_path
16051 # Set to "yes" if exported symbols are required.
16052 always_export_symbols=$always_export_symbols
16054 # The commands to list exported symbols.
16055 export_symbols_cmds=$lt_export_symbols_cmds
16057 # Symbols that should not be listed in the preloaded symbols.
16058 exclude_expsyms=$lt_exclude_expsyms
16060 # Symbols that must always be exported.
16061 include_expsyms=$lt_include_expsyms
16063 # Commands necessary for linking programs (against libraries) with templates.
16064 prelink_cmds=$lt_prelink_cmds
16066 # Specify filename containing input files.
16067 file_list_spec=$lt_file_list_spec
16069 # How to hardcode a shared library path into an executable.
16070 hardcode_action=$hardcode_action
16072 # The directories searched by this compiler when creating a shared library.
16073 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16075 # Dependencies to place before and after the objects being linked to
16076 # create a shared library.
16077 predep_objects=$lt_predep_objects
16078 postdep_objects=$lt_postdep_objects
16079 predeps=$lt_predeps
16080 postdeps=$lt_postdeps
16082 # The library search path used internally by the compiler when linking
16083 # a shared library.
16084 compiler_lib_search_path=$lt_compiler_lib_search_path
16086 # ### END LIBTOOL CONFIG
16092 cat <<\_LT_EOF
>> "$cfgfile"
16093 # AIX sometimes has problems with the GCC collect2 program. For some
16094 # reason, if we set the COLLECT_NAMES environment variable, the problems
16095 # vanish in a puff of smoke.
16096 if test "X${COLLECT_NAMES+set}" != Xset
; then
16098 export COLLECT_NAMES
16105 ltmain
="$ac_aux_dir/ltmain.sh"
16108 # We use sed instead of cat because bash on DJGPP gets confused if
16109 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16110 # text mode, it properly converts lines to CR/LF. This bash problem
16111 # is reportedly fixed, but why not run on old versions too?
16112 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16113 ||
(rm -f "$cfgfile"; exit 1)
16117 cat << \_LT_EOF
>> "$cfgfile"
16119 # func_dirname file append nondir_replacement
16120 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16121 # otherwise set result to NONDIR_REPLACEMENT.
16125 */*) func_dirname_result
="${1%/*}${2}" ;;
16126 * ) func_dirname_result
="${3}" ;;
16130 # func_basename file
16133 func_basename_result
="${1##*/}"
16136 # func_dirname_and_basename file append nondir_replacement
16137 # perform func_basename and func_dirname in a single function
16139 # dirname: Compute the dirname of FILE. If nonempty,
16140 # add APPEND to the result, otherwise set result
16141 # to NONDIR_REPLACEMENT.
16142 # value returned in "$func_dirname_result"
16143 # basename: Compute filename of FILE.
16144 # value retuned in "$func_basename_result"
16145 # Implementation must be kept synchronized with func_dirname
16146 # and func_basename. For efficiency, we do not delegate to
16147 # those functions but instead duplicate the functionality here.
16148 func_dirname_and_basename
()
16151 */*) func_dirname_result
="${1%/*}${2}" ;;
16152 * ) func_dirname_result
="${3}" ;;
16154 func_basename_result
="${1##*/}"
16157 # func_stripname prefix suffix name
16158 # strip PREFIX and SUFFIX off of NAME.
16159 # PREFIX and SUFFIX must not contain globbing or regex special
16160 # characters, hashes, percent signs, but SUFFIX may contain a leading
16161 # dot (in which case that matches only a dot).
16164 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16165 # positional parameters, so assign one to ordinary parameter first.
16166 func_stripname_result
=${3}
16167 func_stripname_result
=${func_stripname_result#"${1}"}
16168 func_stripname_result
=${func_stripname_result%"${2}"}
16174 func_opt_split_opt
=${1%%=*}
16175 func_opt_split_arg
=${1#*=}
16182 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
16183 *) func_lo2o_result
=${1} ;;
16187 # func_xform libobj-or-source
16190 func_xform_result
=${1%.*}.lo
16193 # func_arith arithmetic-term...
16196 func_arith_result
=$
(( $
* ))
16200 # STRING may not start with a hyphen.
16203 func_len_result
=${#1}
16208 *) # Bourne compatible functions.
16209 cat << \_LT_EOF
>> "$cfgfile"
16211 # func_dirname file append nondir_replacement
16212 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16213 # otherwise set result to NONDIR_REPLACEMENT.
16216 # Extract subdirectory from the argument.
16217 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
16218 if test "X$func_dirname_result" = "X${1}"; then
16219 func_dirname_result
="${3}"
16221 func_dirname_result
="$func_dirname_result${2}"
16225 # func_basename file
16228 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
16232 # func_stripname prefix suffix name
16233 # strip PREFIX and SUFFIX off of NAME.
16234 # PREFIX and SUFFIX must not contain globbing or regex special
16235 # characters, hashes, percent signs, but SUFFIX may contain a leading
16236 # dot (in which case that matches only a dot).
16237 # func_strip_suffix prefix name
16241 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16242 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16247 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
16248 my_sed_long_arg
='1s/^-[^=]*=//'
16253 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16254 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16260 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
16263 # func_xform libobj-or-source
16266 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16269 # func_arith arithmetic-term...
16272 func_arith_result
=`expr "$@"`
16276 # STRING may not start with a hyphen.
16279 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16285 case $lt_shell_append in
16287 cat << \_LT_EOF
>> "$cfgfile"
16289 # func_append var value
16290 # Append VALUE to the end of shell variable VAR.
16298 cat << \_LT_EOF
>> "$cfgfile"
16300 # func_append var value
16301 # Append VALUE to the end of shell variable VAR.
16312 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16313 ||
(rm -f "$cfgfile"; exit 1)
16315 mv -f "$cfgfile" "$ofile" ||
16316 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16320 cat <<_LT_EOF >> "$ofile"
16322 # ### BEGIN LIBTOOL TAG CONFIG: CXX
16324 # The linker used to build libraries.
16327 # How to create reloadable object files.
16328 reload_flag=$lt_reload_flag_CXX
16329 reload_cmds=$lt_reload_cmds_CXX
16331 # Commands used to build an old-style archive.
16332 old_archive_cmds=$lt_old_archive_cmds_CXX
16334 # A language specific compiler.
16335 CC=$lt_compiler_CXX
16337 # Is the compiler the GNU compiler?
16340 # Compiler flag to turn off builtin functions.
16341 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16343 # How to pass a linker flag through the compiler.
16344 wl=$lt_lt_prog_compiler_wl_CXX
16346 # Additional compiler flags for building library objects.
16347 pic_flag=$lt_lt_prog_compiler_pic_CXX
16349 # Compiler flag to prevent dynamic linking.
16350 link_static_flag=$lt_lt_prog_compiler_static_CXX
16352 # Does compiler simultaneously support -c and -o options?
16353 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16355 # Whether or not to add -lc for building shared libraries.
16356 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16358 # Whether or not to disallow shared libs when runtime libs are static.
16359 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16361 # Compiler flag to allow reflexive dlopens.
16362 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16364 # Compiler flag to generate shared objects directly from archives.
16365 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16367 # Whether the compiler copes with passing no objects directly.
16368 compiler_needs_object=$lt_compiler_needs_object_CXX
16370 # Create an old-style archive from a shared archive.
16371 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16373 # Create a temporary old-style archive to link instead of a shared archive.
16374 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16376 # Commands used to build a shared archive.
16377 archive_cmds=$lt_archive_cmds_CXX
16378 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16380 # Commands used to build a loadable module if different from building
16381 # a shared archive.
16382 module_cmds=$lt_module_cmds_CXX
16383 module_expsym_cmds=$lt_module_expsym_cmds_CXX
16385 # Whether we are building with GNU ld or not.
16386 with_gnu_ld=$lt_with_gnu_ld_CXX
16388 # Flag that allows shared libraries with undefined symbols to be built.
16389 allow_undefined_flag=$lt_allow_undefined_flag_CXX
16391 # Flag that enforces no undefined symbols.
16392 no_undefined_flag=$lt_no_undefined_flag_CXX
16394 # Flag to hardcode \$libdir into a binary during linking.
16395 # This must work even if \$libdir does not exist
16396 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16398 # If ld is used when linking, flag to hardcode \$libdir into a binary
16399 # during linking. This must work even if \$libdir does not exist.
16400 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16402 # Whether we need a single "-rpath" flag with a separated argument.
16403 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16405 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16406 # DIR into the resulting binary.
16407 hardcode_direct=$hardcode_direct_CXX
16409 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16410 # DIR into the resulting binary and the resulting library dependency is
16411 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16412 # library is relocated.
16413 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
16415 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16416 # into the resulting binary.
16417 hardcode_minus_L=$hardcode_minus_L_CXX
16419 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16420 # into the resulting binary.
16421 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16423 # Set to "yes" if building a shared library automatically hardcodes DIR
16424 # into the library and all subsequent libraries and executables linked
16426 hardcode_automatic=$hardcode_automatic_CXX
16428 # Set to yes if linker adds runtime paths of dependent libraries
16429 # to runtime path list.
16430 inherit_rpath=$inherit_rpath_CXX
16432 # Whether libtool must link a program against all its dependency libraries.
16433 link_all_deplibs=$link_all_deplibs_CXX
16435 # Fix the shell variable \$srcfile for the compiler.
16436 fix_srcfile_path=$lt_fix_srcfile_path_CXX
16438 # Set to "yes" if exported symbols are required.
16439 always_export_symbols=$always_export_symbols_CXX
16441 # The commands to list exported symbols.
16442 export_symbols_cmds=$lt_export_symbols_cmds_CXX
16444 # Symbols that should not be listed in the preloaded symbols.
16445 exclude_expsyms=$lt_exclude_expsyms_CXX
16447 # Symbols that must always be exported.
16448 include_expsyms=$lt_include_expsyms_CXX
16450 # Commands necessary for linking programs (against libraries) with templates.
16451 prelink_cmds=$lt_prelink_cmds_CXX
16453 # Specify filename containing input files.
16454 file_list_spec=$lt_file_list_spec_CXX
16456 # How to hardcode a shared library path into an executable.
16457 hardcode_action=$hardcode_action_CXX
16459 # The directories searched by this compiler when creating a shared library.
16460 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16462 # Dependencies to place before and after the objects being linked to
16463 # create a shared library.
16464 predep_objects=$lt_predep_objects_CXX
16465 postdep_objects=$lt_postdep_objects_CXX
16466 predeps=$lt_predeps_CXX
16467 postdeps=$lt_postdeps_CXX
16469 # The library search path used internally by the compiler when linking
16470 # a shared library.
16471 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16473 # ### END LIBTOOL TAG CONFIG: CXX
16479 chmod +x
"$CONFIG_LT"
16481 # configure is writing to config.log, but config.lt does its own redirection,
16482 # appending to config.log, which fails on DOS, as config.log is still kept
16483 # open by configure. Here we exec the FD to /dev/null, effectively closing
16484 # config.log, so it can be properly (re)opened and appended to by config.lt.
16486 test "$silent" = yes &&
16487 lt_config_lt_args
="$lt_config_lt_args --quiet"
16489 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success
=false
16491 $lt_cl_success || as_fn_exit
1
16494 # We require a C++17 compiler. Check if one is available, and if
16495 # necessary, set CXX_DIALECT to some -std=xxx switch.
16496 ax_cxx_compile_alternatives
="17 1z" ax_cxx_compile_cxx17_required
=true
16498 ac_cpp
='$CXXCPP $CPPFLAGS'
16499 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16500 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16501 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features by default" >&5
16506 $as_echo_n "checking whether $CXX supports C++17 features by default... " >&6; }
16507 if ${ax_cv_cxx_compile_cxx17+:} false
; then :
16508 $as_echo_n "(cached) " >&6
16510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16511 /* end confdefs.h. */
16514 // If the compiler admits that it is not ready for C++11, why torture it?
16515 // Hopefully, this will speed up the test.
16517 #ifndef __cplusplus
16519 #error "This is not a C++ compiler"
16521 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
16522 // only set it correctly if /Zc:__cplusplus is specified as well as a
16523 // /std:c++NN switch:
16524 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
16525 #elif __cplusplus < 201103L && !defined _MSC_VER
16527 #error "This is not a C++11 compiler"
16534 namespace test_static_assert
16537 template <typename T>
16540 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16545 namespace test_final_override
16551 virtual void f() {}
16554 struct Derived : public Base
16556 virtual ~Derived() override {}
16557 virtual void f() override {}
16562 namespace test_double_right_angle_brackets
16565 template < typename T >
16568 typedef check<void> single_type;
16569 typedef check<check<void>> double_type;
16570 typedef check<check<check<void>>> triple_type;
16571 typedef check<check<check<check<void>>>> quadruple_type;
16575 namespace test_decltype
16588 namespace test_type_deduction
16591 template < typename T1, typename T2 >
16594 static const bool value = false;
16597 template < typename T >
16598 struct is_same<T, T>
16600 static const bool value = true;
16603 template < typename T1, typename T2 >
16605 add(T1 a1, T2 a2) -> decltype(a1 + a2)
16611 test(const int c, volatile int v)
16613 static_assert(is_same<int, decltype(0)>::value == true, "");
16614 static_assert(is_same<int, decltype(c)>::value == false, "");
16615 static_assert(is_same<int, decltype(v)>::value == false, "");
16618 auto sumi = ac + av + 'x';
16619 auto sumf = ac + av + 1.0;
16620 static_assert(is_same<int, decltype(ac)>::value == true, "");
16621 static_assert(is_same<int, decltype(av)>::value == true, "");
16622 static_assert(is_same<int, decltype(sumi)>::value == true, "");
16623 static_assert(is_same<int, decltype(sumf)>::value == false, "");
16624 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
16625 return (sumf > 0.0) ? sumi : add(c, v);
16630 namespace test_noexcept
16633 int f() { return 0; }
16634 int g() noexcept { return 0; }
16636 static_assert(noexcept(f()) == false, "");
16637 static_assert(noexcept(g()) == true, "");
16641 namespace test_constexpr
16644 template < typename CharT >
16645 unsigned long constexpr
16646 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
16648 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
16651 template < typename CharT >
16652 unsigned long constexpr
16653 strlen_c(const CharT *const s) noexcept
16655 return strlen_c_r(s, 0UL);
16658 static_assert(strlen_c("") == 0UL, "");
16659 static_assert(strlen_c("1") == 1UL, "");
16660 static_assert(strlen_c("example") == 7UL, "");
16661 static_assert(strlen_c("another\0example") == 7UL, "");
16665 namespace test_rvalue_references
16671 static constexpr int value = N;
16674 answer<1> f(int&) { return answer<1>(); }
16675 answer<2> f(const int&) { return answer<2>(); }
16676 answer<3> f(int&&) { return answer<3>(); }
16683 static_assert(decltype(f(i))::value == 1, "");
16684 static_assert(decltype(f(c))::value == 2, "");
16685 static_assert(decltype(f(0))::value == 3, "");
16690 namespace test_uniform_initialization
16695 static const int zero {};
16696 static const int one {1};
16699 static_assert(test::zero == 0, "");
16700 static_assert(test::one == 1, "");
16704 namespace test_lambdas
16710 auto lambda1 = [](){};
16711 auto lambda2 = lambda1;
16719 auto a = [](int i, int j){ return i + j; }(1, 2);
16720 auto b = []() -> int { return '0'; }();
16721 auto c = [=](){ return a + b; }();
16722 auto d = [&](){ return c; }();
16723 auto e = [a, &b](int x) mutable {
16724 const auto identity = [](int y){ return y; };
16725 for (auto i = 0; i < a; ++i)
16727 return x + identity(a + b);
16729 return a + b + c + d + e;
16735 const auto nullary = [](){ return 0; };
16736 const auto unary = [](int x){ return x; };
16737 using nullary_t = decltype(nullary);
16738 using unary_t = decltype(unary);
16739 const auto higher1st = [](nullary_t f){ return f(); };
16740 const auto higher2nd = [unary](nullary_t f1){
16741 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
16743 return higher1st(nullary) + higher2nd(nullary)(unary);
16748 namespace test_variadic_templates
16754 template <int N0, int... N1toN>
16755 struct sum<N0, N1toN...>
16757 static constexpr auto value = N0 + sum<N1toN...>::value;
16763 static constexpr auto value = 0;
16766 static_assert(sum<>::value == 0, "");
16767 static_assert(sum<1>::value == 1, "");
16768 static_assert(sum<23>::value == 23, "");
16769 static_assert(sum<1, 2>::value == 3, "");
16770 static_assert(sum<5, 5, 11>::value == 21, "");
16771 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
16775 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
16776 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
16777 // because of this.
16778 namespace test_template_alias_sfinae
16783 template<typename T>
16784 using member = typename T::member_type;
16786 template<typename T>
16789 template<typename T>
16790 void func(member<T>*) {}
16794 void test() { func<foo>(0); }
16798 } // namespace cxx11
16800 #endif // __cplusplus >= 201103L
16805 // If the compiler admits that it is not ready for C++14, why torture it?
16806 // Hopefully, this will speed up the test.
16808 #ifndef __cplusplus
16810 #error "This is not a C++ compiler"
16812 #elif __cplusplus < 201402L && !defined _MSC_VER
16814 #error "This is not a C++14 compiler"
16821 namespace test_polymorphic_lambdas
16827 const auto lambda = [](auto&&... args){
16828 const auto istiny = [](auto x){
16829 return (sizeof(x) == 1UL) ? 1 : 0;
16831 const int aretiny[] = { istiny(args)... };
16834 return lambda(1, 1L, 1.0f, '1');
16839 namespace test_binary_literals
16842 constexpr auto ivii = 0b0000000000101010;
16843 static_assert(ivii == 42, "wrong value");
16847 namespace test_generalized_constexpr
16850 template < typename CharT >
16851 constexpr unsigned long
16852 strlen_c(const CharT *const s) noexcept
16855 for (auto p = s; *p; ++p)
16860 static_assert(strlen_c("") == 0UL, "");
16861 static_assert(strlen_c("x") == 1UL, "");
16862 static_assert(strlen_c("test") == 4UL, "");
16863 static_assert(strlen_c("another\0test") == 7UL, "");
16867 namespace test_lambda_init_capture
16874 const auto lambda1 = [a = x](int b){ return a + b; };
16875 const auto lambda2 = [a = lambda1(x)](){ return a; };
16881 namespace test_digit_separators
16884 constexpr auto ten_million = 100'000'000;
16885 static_assert(ten_million == 100000000, "");
16889 namespace test_return_type_deduction
16892 auto f(int& x) { return x; }
16893 decltype(auto) g(int& x) { return x; }
16895 template < typename T1, typename T2 >
16898 static constexpr auto value = false;
16901 template < typename T >
16902 struct is_same<T, T>
16904 static constexpr auto value = true;
16911 static_assert(is_same<int, decltype(f(x))>::value, "");
16912 static_assert(is_same<int&, decltype(g(x))>::value, "");
16918 } // namespace cxx14
16920 #endif // __cplusplus >= 201402L
16925 // If the compiler admits that it is not ready for C++17, why torture it?
16926 // Hopefully, this will speed up the test.
16928 #ifndef __cplusplus
16930 #error "This is not a C++ compiler"
16932 #elif __cplusplus < 201703L && !defined _MSC_VER
16934 #error "This is not a C++17 compiler"
16938 #include <initializer_list>
16940 #include <type_traits>
16945 namespace test_constexpr_lambdas
16948 constexpr int foo = [](){return 42;}();
16952 namespace test::nested_namespace::definitions
16957 namespace test_fold_expression
16960 template<typename... Args>
16961 int multiply(Args... args)
16963 return (args * ... * 1);
16966 template<typename... Args>
16967 bool all(Args... args)
16969 return (args && ...);
16974 namespace test_extended_static_assert
16977 static_assert (true);
16981 namespace test_auto_brace_init_list
16987 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
16988 static_assert(std::is_same<int, decltype(bar)>::value);
16991 namespace test_typename_in_template_template_parameter
16994 template<template<typename> typename X> struct D;
16998 namespace test_fallthrough_nodiscard_maybe_unused_attributes
17006 [[nodiscard]] int f2()
17008 [[maybe_unused]] auto unused = f1();
17023 namespace test_extended_aggregate_initialization
17039 struct derived : base1, base2
17044 derived d1 {{1, 2}, {}, 4}; // full initialization
17045 derived d2 {{}, {}, 4}; // value-initialized bases
17049 namespace test_general_range_based_for_loop
17061 const int& operator* () const
17078 bool operator== (const iter& i, const sentinel& s)
17083 bool operator!= (const iter& i, const sentinel& s)
17095 sentinel end() const
17107 [[maybe_unused]] auto v = i;
17113 namespace test_lambda_capture_asterisk_this_by_value
17130 namespace test_enum_class_construction
17133 enum class byte : unsigned char
17140 namespace test_constexpr_if
17143 template <bool cond>
17158 namespace test_selection_statement_with_initializer
17168 if (auto i = f(); i > 0)
17173 switch (auto i = f(); i + 4)
17185 namespace test_template_argument_deduction_for_class_templates
17188 template <typename T1, typename T2>
17191 pair (T1 p1, T2 p2)
17202 [[maybe_unused]] auto p = pair{13, 42u};
17207 namespace test_non_type_auto_template_parameters
17219 namespace test_structured_bindings
17222 int arr[2] = { 1, 2 };
17223 std::pair<int, int> pr = { 1, 2 };
17225 auto f1() -> int(&)[2]
17230 auto f2() -> std::pair<int, int>&
17238 volatile double y1;
17246 auto [ x1, y1 ] = f1();
17247 auto& [ xr1, yr1 ] = f1();
17248 auto [ x2, y2 ] = f2();
17249 auto& [ xr2, yr2 ] = f2();
17250 const auto [ x3, y3 ] = f3();
17254 namespace test_exception_spec_type_system
17260 void g1() noexcept;
17263 template<typename T>
17267 template<typename T1, typename T2>
17271 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
17275 namespace test_inline_variables
17278 template<class T> void f(T)
17281 template<class T> inline T g(T)
17286 template<> inline void f<>(int)
17289 template<> int g<>(int)
17296 } // namespace cxx17
17298 #endif // __cplusplus < 201703L && !defined _MSC_VER
17303 if ac_fn_cxx_try_compile
"$LINENO"; then :
17304 ax_cv_cxx_compile_cxx17
=yes
17306 ax_cv_cxx_compile_cxx17
=no
17308 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx17" >&5
17311 $as_echo "$ax_cv_cxx_compile_cxx17" >&6; }
17312 if test x
$ax_cv_cxx_compile_cxx17 = xyes
; then
17316 if test x
$ac_success = xno
; then
17317 for alternative
in ${ax_cxx_compile_alternatives}; do
17318 switch
="-std=gnu++${alternative}"
17319 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh`
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5
17321 $as_echo_n "checking whether $CXX supports C++17 features with $switch... " >&6; }
17322 if eval \
${$cachevar+:} false
; then :
17323 $as_echo_n "(cached) " >&6
17327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17328 /* end confdefs.h. */
17331 // If the compiler admits that it is not ready for C++11, why torture it?
17332 // Hopefully, this will speed up the test.
17334 #ifndef __cplusplus
17336 #error "This is not a C++ compiler"
17338 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
17339 // only set it correctly if /Zc:__cplusplus is specified as well as a
17340 // /std:c++NN switch:
17341 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
17342 #elif __cplusplus < 201103L && !defined _MSC_VER
17344 #error "This is not a C++11 compiler"
17351 namespace test_static_assert
17354 template <typename T>
17357 static_assert(sizeof(int) <= sizeof(T), "not big enough");
17362 namespace test_final_override
17368 virtual void f() {}
17371 struct Derived : public Base
17373 virtual ~Derived() override {}
17374 virtual void f() override {}
17379 namespace test_double_right_angle_brackets
17382 template < typename T >
17385 typedef check<void> single_type;
17386 typedef check<check<void>> double_type;
17387 typedef check<check<check<void>>> triple_type;
17388 typedef check<check<check<check<void>>>> quadruple_type;
17392 namespace test_decltype
17405 namespace test_type_deduction
17408 template < typename T1, typename T2 >
17411 static const bool value = false;
17414 template < typename T >
17415 struct is_same<T, T>
17417 static const bool value = true;
17420 template < typename T1, typename T2 >
17422 add(T1 a1, T2 a2) -> decltype(a1 + a2)
17428 test(const int c, volatile int v)
17430 static_assert(is_same<int, decltype(0)>::value == true, "");
17431 static_assert(is_same<int, decltype(c)>::value == false, "");
17432 static_assert(is_same<int, decltype(v)>::value == false, "");
17435 auto sumi = ac + av + 'x';
17436 auto sumf = ac + av + 1.0;
17437 static_assert(is_same<int, decltype(ac)>::value == true, "");
17438 static_assert(is_same<int, decltype(av)>::value == true, "");
17439 static_assert(is_same<int, decltype(sumi)>::value == true, "");
17440 static_assert(is_same<int, decltype(sumf)>::value == false, "");
17441 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
17442 return (sumf > 0.0) ? sumi : add(c, v);
17447 namespace test_noexcept
17450 int f() { return 0; }
17451 int g() noexcept { return 0; }
17453 static_assert(noexcept(f()) == false, "");
17454 static_assert(noexcept(g()) == true, "");
17458 namespace test_constexpr
17461 template < typename CharT >
17462 unsigned long constexpr
17463 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
17465 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
17468 template < typename CharT >
17469 unsigned long constexpr
17470 strlen_c(const CharT *const s) noexcept
17472 return strlen_c_r(s, 0UL);
17475 static_assert(strlen_c("") == 0UL, "");
17476 static_assert(strlen_c("1") == 1UL, "");
17477 static_assert(strlen_c("example") == 7UL, "");
17478 static_assert(strlen_c("another\0example") == 7UL, "");
17482 namespace test_rvalue_references
17488 static constexpr int value = N;
17491 answer<1> f(int&) { return answer<1>(); }
17492 answer<2> f(const int&) { return answer<2>(); }
17493 answer<3> f(int&&) { return answer<3>(); }
17500 static_assert(decltype(f(i))::value == 1, "");
17501 static_assert(decltype(f(c))::value == 2, "");
17502 static_assert(decltype(f(0))::value == 3, "");
17507 namespace test_uniform_initialization
17512 static const int zero {};
17513 static const int one {1};
17516 static_assert(test::zero == 0, "");
17517 static_assert(test::one == 1, "");
17521 namespace test_lambdas
17527 auto lambda1 = [](){};
17528 auto lambda2 = lambda1;
17536 auto a = [](int i, int j){ return i + j; }(1, 2);
17537 auto b = []() -> int { return '0'; }();
17538 auto c = [=](){ return a + b; }();
17539 auto d = [&](){ return c; }();
17540 auto e = [a, &b](int x) mutable {
17541 const auto identity = [](int y){ return y; };
17542 for (auto i = 0; i < a; ++i)
17544 return x + identity(a + b);
17546 return a + b + c + d + e;
17552 const auto nullary = [](){ return 0; };
17553 const auto unary = [](int x){ return x; };
17554 using nullary_t = decltype(nullary);
17555 using unary_t = decltype(unary);
17556 const auto higher1st = [](nullary_t f){ return f(); };
17557 const auto higher2nd = [unary](nullary_t f1){
17558 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
17560 return higher1st(nullary) + higher2nd(nullary)(unary);
17565 namespace test_variadic_templates
17571 template <int N0, int... N1toN>
17572 struct sum<N0, N1toN...>
17574 static constexpr auto value = N0 + sum<N1toN...>::value;
17580 static constexpr auto value = 0;
17583 static_assert(sum<>::value == 0, "");
17584 static_assert(sum<1>::value == 1, "");
17585 static_assert(sum<23>::value == 23, "");
17586 static_assert(sum<1, 2>::value == 3, "");
17587 static_assert(sum<5, 5, 11>::value == 21, "");
17588 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
17592 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
17593 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
17594 // because of this.
17595 namespace test_template_alias_sfinae
17600 template<typename T>
17601 using member = typename T::member_type;
17603 template<typename T>
17606 template<typename T>
17607 void func(member<T>*) {}
17611 void test() { func<foo>(0); }
17615 } // namespace cxx11
17617 #endif // __cplusplus >= 201103L
17622 // If the compiler admits that it is not ready for C++14, why torture it?
17623 // Hopefully, this will speed up the test.
17625 #ifndef __cplusplus
17627 #error "This is not a C++ compiler"
17629 #elif __cplusplus < 201402L && !defined _MSC_VER
17631 #error "This is not a C++14 compiler"
17638 namespace test_polymorphic_lambdas
17644 const auto lambda = [](auto&&... args){
17645 const auto istiny = [](auto x){
17646 return (sizeof(x) == 1UL) ? 1 : 0;
17648 const int aretiny[] = { istiny(args)... };
17651 return lambda(1, 1L, 1.0f, '1');
17656 namespace test_binary_literals
17659 constexpr auto ivii = 0b0000000000101010;
17660 static_assert(ivii == 42, "wrong value");
17664 namespace test_generalized_constexpr
17667 template < typename CharT >
17668 constexpr unsigned long
17669 strlen_c(const CharT *const s) noexcept
17672 for (auto p = s; *p; ++p)
17677 static_assert(strlen_c("") == 0UL, "");
17678 static_assert(strlen_c("x") == 1UL, "");
17679 static_assert(strlen_c("test") == 4UL, "");
17680 static_assert(strlen_c("another\0test") == 7UL, "");
17684 namespace test_lambda_init_capture
17691 const auto lambda1 = [a = x](int b){ return a + b; };
17692 const auto lambda2 = [a = lambda1(x)](){ return a; };
17698 namespace test_digit_separators
17701 constexpr auto ten_million = 100'000'000;
17702 static_assert(ten_million == 100000000, "");
17706 namespace test_return_type_deduction
17709 auto f(int& x) { return x; }
17710 decltype(auto) g(int& x) { return x; }
17712 template < typename T1, typename T2 >
17715 static constexpr auto value = false;
17718 template < typename T >
17719 struct is_same<T, T>
17721 static constexpr auto value = true;
17728 static_assert(is_same<int, decltype(f(x))>::value, "");
17729 static_assert(is_same<int&, decltype(g(x))>::value, "");
17735 } // namespace cxx14
17737 #endif // __cplusplus >= 201402L
17742 // If the compiler admits that it is not ready for C++17, why torture it?
17743 // Hopefully, this will speed up the test.
17745 #ifndef __cplusplus
17747 #error "This is not a C++ compiler"
17749 #elif __cplusplus < 201703L && !defined _MSC_VER
17751 #error "This is not a C++17 compiler"
17755 #include <initializer_list>
17757 #include <type_traits>
17762 namespace test_constexpr_lambdas
17765 constexpr int foo = [](){return 42;}();
17769 namespace test::nested_namespace::definitions
17774 namespace test_fold_expression
17777 template<typename... Args>
17778 int multiply(Args... args)
17780 return (args * ... * 1);
17783 template<typename... Args>
17784 bool all(Args... args)
17786 return (args && ...);
17791 namespace test_extended_static_assert
17794 static_assert (true);
17798 namespace test_auto_brace_init_list
17804 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
17805 static_assert(std::is_same<int, decltype(bar)>::value);
17808 namespace test_typename_in_template_template_parameter
17811 template<template<typename> typename X> struct D;
17815 namespace test_fallthrough_nodiscard_maybe_unused_attributes
17823 [[nodiscard]] int f2()
17825 [[maybe_unused]] auto unused = f1();
17840 namespace test_extended_aggregate_initialization
17856 struct derived : base1, base2
17861 derived d1 {{1, 2}, {}, 4}; // full initialization
17862 derived d2 {{}, {}, 4}; // value-initialized bases
17866 namespace test_general_range_based_for_loop
17878 const int& operator* () const
17895 bool operator== (const iter& i, const sentinel& s)
17900 bool operator!= (const iter& i, const sentinel& s)
17912 sentinel end() const
17924 [[maybe_unused]] auto v = i;
17930 namespace test_lambda_capture_asterisk_this_by_value
17947 namespace test_enum_class_construction
17950 enum class byte : unsigned char
17957 namespace test_constexpr_if
17960 template <bool cond>
17975 namespace test_selection_statement_with_initializer
17985 if (auto i = f(); i > 0)
17990 switch (auto i = f(); i + 4)
18002 namespace test_template_argument_deduction_for_class_templates
18005 template <typename T1, typename T2>
18008 pair (T1 p1, T2 p2)
18019 [[maybe_unused]] auto p = pair{13, 42u};
18024 namespace test_non_type_auto_template_parameters
18036 namespace test_structured_bindings
18039 int arr[2] = { 1, 2 };
18040 std::pair<int, int> pr = { 1, 2 };
18042 auto f1() -> int(&)[2]
18047 auto f2() -> std::pair<int, int>&
18055 volatile double y1;
18063 auto [ x1, y1 ] = f1();
18064 auto& [ xr1, yr1 ] = f1();
18065 auto [ x2, y2 ] = f2();
18066 auto& [ xr2, yr2 ] = f2();
18067 const auto [ x3, y3 ] = f3();
18071 namespace test_exception_spec_type_system
18077 void g1() noexcept;
18080 template<typename T>
18084 template<typename T1, typename T2>
18088 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
18092 namespace test_inline_variables
18095 template<class T> void f(T)
18098 template<class T> inline T g(T)
18103 template<> inline void f<>(int)
18106 template<> int g<>(int)
18113 } // namespace cxx17
18115 #endif // __cplusplus < 201703L && !defined _MSC_VER
18120 if ac_fn_cxx_try_compile
"$LINENO"; then :
18125 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18128 eval ac_res
=\$
$cachevar
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18130 $as_echo "$ac_res" >&6; }
18131 if eval test x\$
$cachevar = xyes
; then
18132 CXX_DIALECT
="$switch"
18134 if test -n "$CXXCPP" ; then
18135 CXXCPP
="$CXXCPP $switch"
18143 if test x
$ac_success = xno
; then
18144 for alternative
in ${ax_cxx_compile_alternatives}; do
18145 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}" MSVC; do
18146 if test x"$switch" = xMSVC; then
18147 switch=-std:c++${alternative}
18148 cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_
${switch}_MSVC
" | $as_tr_sh`
18150 cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_
$switch" | $as_tr_sh`
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++17 features with
$switch" >&5
18153 $as_echo_n "checking whether
$CXX supports C
++17 features with
$switch...
" >&6; }
18154 if eval \${$cachevar+:} false; then :
18155 $as_echo_n "(cached
) " >&6
18159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18160 /* end confdefs.h. */
18163 // If the compiler admits that it is not ready for C++11, why torture it?
18164 // Hopefully, this will speed up the test.
18166 #ifndef __cplusplus
18168 #error "This is not a C
++ compiler
"
18170 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
18171 // only set it correctly if /Zc:__cplusplus is specified as well as a
18172 // /std:c++NN switch:
18173 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
18174 #elif __cplusplus < 201103L && !defined _MSC_VER
18176 #error "This is not a C
++11 compiler
"
18183 namespace test_static_assert
18186 template <typename T>
18189 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
18194 namespace test_final_override
18200 virtual void f() {}
18203 struct Derived : public Base
18205 virtual ~Derived() override {}
18206 virtual void f() override {}
18211 namespace test_double_right_angle_brackets
18214 template < typename T >
18217 typedef check<void> single_type;
18218 typedef check<check<void>> double_type;
18219 typedef check<check<check<void>>> triple_type;
18220 typedef check<check<check<check<void>>>> quadruple_type;
18224 namespace test_decltype
18237 namespace test_type_deduction
18240 template < typename T1, typename T2 >
18243 static const bool value = false;
18246 template < typename T >
18247 struct is_same<T, T>
18249 static const bool value = true;
18252 template < typename T1, typename T2 >
18254 add(T1 a1, T2 a2) -> decltype(a1 + a2)
18260 test(const int c, volatile int v)
18262 static_assert(is_same<int, decltype(0)>::value == true, "");
18263 static_assert(is_same<int, decltype(c)>::value == false, "");
18264 static_assert(is_same<int, decltype(v)>::value == false, "");
18267 auto sumi = ac + av + 'x';
18268 auto sumf = ac + av + 1.0;
18269 static_assert(is_same<int, decltype(ac)>::value == true, "");
18270 static_assert(is_same<int, decltype(av)>::value == true, "");
18271 static_assert(is_same<int, decltype(sumi)>::value == true, "");
18272 static_assert(is_same<int, decltype(sumf)>::value == false, "");
18273 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18274 return (sumf > 0.0) ? sumi : add(c, v);
18279 namespace test_noexcept
18282 int f() { return 0; }
18283 int g() noexcept { return 0; }
18285 static_assert(noexcept(f()) == false, "");
18286 static_assert(noexcept(g()) == true, "");
18290 namespace test_constexpr
18293 template < typename CharT >
18294 unsigned long constexpr
18295 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18297 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18300 template < typename CharT >
18301 unsigned long constexpr
18302 strlen_c(const CharT *const s) noexcept
18304 return strlen_c_r(s, 0UL);
18307 static_assert(strlen_c("") == 0UL, "");
18308 static_assert(strlen_c("1") == 1UL, "");
18309 static_assert(strlen_c("example
") == 7UL, "");
18310 static_assert(strlen_c("another\
0example
") == 7UL, "");
18314 namespace test_rvalue_references
18320 static constexpr int value = N;
18323 answer<1> f(int&) { return answer<1>(); }
18324 answer<2> f(const int&) { return answer<2>(); }
18325 answer<3> f(int&&) { return answer<3>(); }
18332 static_assert(decltype(f(i))::value == 1, "");
18333 static_assert(decltype(f(c))::value == 2, "");
18334 static_assert(decltype(f(0))::value == 3, "");
18339 namespace test_uniform_initialization
18344 static const int zero {};
18345 static const int one {1};
18348 static_assert(test::zero == 0, "");
18349 static_assert(test::one == 1, "");
18353 namespace test_lambdas
18359 auto lambda1 = [](){};
18360 auto lambda2 = lambda1;
18368 auto a = [](int i, int j){ return i + j; }(1, 2);
18369 auto b = []() -> int { return '0'; }();
18370 auto c = [=](){ return a + b; }();
18371 auto d = [&](){ return c; }();
18372 auto e = [a, &b](int x) mutable {
18373 const auto identity = [](int y){ return y; };
18374 for (auto i = 0; i < a; ++i)
18376 return x + identity(a + b);
18378 return a + b + c + d + e;
18384 const auto nullary = [](){ return 0; };
18385 const auto unary = [](int x){ return x; };
18386 using nullary_t = decltype(nullary);
18387 using unary_t = decltype(unary);
18388 const auto higher1st = [](nullary_t f){ return f(); };
18389 const auto higher2nd = [unary](nullary_t f1){
18390 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18392 return higher1st(nullary) + higher2nd(nullary)(unary);
18397 namespace test_variadic_templates
18403 template <int N0, int... N1toN>
18404 struct sum<N0, N1toN...>
18406 static constexpr auto value = N0 + sum<N1toN...>::value;
18412 static constexpr auto value = 0;
18415 static_assert(sum<>::value == 0, "");
18416 static_assert(sum<1>::value == 1, "");
18417 static_assert(sum<23>::value == 23, "");
18418 static_assert(sum<1, 2>::value == 3, "");
18419 static_assert(sum<5, 5, 11>::value == 21, "");
18420 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18424 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18425 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18426 // because of this.
18427 namespace test_template_alias_sfinae
18432 template<typename T>
18433 using member = typename T::member_type;
18435 template<typename T>
18438 template<typename T>
18439 void func(member<T>*) {}
18443 void test() { func<foo>(0); }
18447 } // namespace cxx11
18449 #endif // __cplusplus >= 201103L
18454 // If the compiler admits that it is not ready for C++14, why torture it?
18455 // Hopefully, this will speed up the test.
18457 #ifndef __cplusplus
18459 #error "This is not a C
++ compiler
"
18461 #elif __cplusplus < 201402L && !defined _MSC_VER
18463 #error "This is not a C
++14 compiler
"
18470 namespace test_polymorphic_lambdas
18476 const auto lambda = [](auto&&... args){
18477 const auto istiny = [](auto x){
18478 return (sizeof(x) == 1UL) ? 1 : 0;
18480 const int aretiny[] = { istiny(args)... };
18483 return lambda(1, 1L, 1.0f, '1');
18488 namespace test_binary_literals
18491 constexpr auto ivii = 0b0000000000101010;
18492 static_assert(ivii == 42, "wrong value
");
18496 namespace test_generalized_constexpr
18499 template < typename CharT >
18500 constexpr unsigned long
18501 strlen_c(const CharT *const s) noexcept
18504 for (auto p = s; *p; ++p)
18509 static_assert(strlen_c("") == 0UL, "");
18510 static_assert(strlen_c("x
") == 1UL, "");
18511 static_assert(strlen_c("test") == 4UL, "");
18512 static_assert(strlen_c("another\
0test") == 7UL, "");
18516 namespace test_lambda_init_capture
18523 const auto lambda1 = [a = x](int b){ return a + b; };
18524 const auto lambda2 = [a = lambda1(x)](){ return a; };
18530 namespace test_digit_separators
18533 constexpr auto ten_million = 100'000'000;
18534 static_assert(ten_million == 100000000, "");
18538 namespace test_return_type_deduction
18541 auto f(int& x) { return x; }
18542 decltype(auto) g(int& x) { return x; }
18544 template < typename T1, typename T2 >
18547 static constexpr auto value = false;
18550 template < typename T >
18551 struct is_same<T, T>
18553 static constexpr auto value = true;
18560 static_assert(is_same<int, decltype(f(x))>::value, "");
18561 static_assert(is_same<int&, decltype(g(x))>::value, "");
18567 } // namespace cxx14
18569 #endif // __cplusplus >= 201402L
18574 // If the compiler admits that it is not ready for C++17, why torture it?
18575 // Hopefully, this will speed up the test.
18577 #ifndef __cplusplus
18579 #error "This is not a C
++ compiler
"
18581 #elif __cplusplus < 201703L && !defined _MSC_VER
18583 #error "This is not a C
++17 compiler
"
18587 #include <initializer_list>
18589 #include <type_traits>
18594 namespace test_constexpr_lambdas
18597 constexpr int foo = [](){return 42;}();
18601 namespace test::nested_namespace::definitions
18606 namespace test_fold_expression
18609 template<typename... Args>
18610 int multiply(Args... args)
18612 return (args * ... * 1);
18615 template<typename... Args>
18616 bool all(Args... args)
18618 return (args && ...);
18623 namespace test_extended_static_assert
18626 static_assert (true);
18630 namespace test_auto_brace_init_list
18636 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
18637 static_assert(std::is_same<int, decltype(bar)>::value);
18640 namespace test_typename_in_template_template_parameter
18643 template<template<typename> typename X> struct D;
18647 namespace test_fallthrough_nodiscard_maybe_unused_attributes
18655 [[nodiscard]] int f2()
18657 [[maybe_unused]] auto unused = f1();
18672 namespace test_extended_aggregate_initialization
18688 struct derived : base1, base2
18693 derived d1 {{1, 2}, {}, 4}; // full initialization
18694 derived d2 {{}, {}, 4}; // value-initialized bases
18698 namespace test_general_range_based_for_loop
18710 const int& operator* () const
18727 bool operator== (const iter& i, const sentinel& s)
18732 bool operator!= (const iter& i, const sentinel& s)
18744 sentinel end() const
18756 [[maybe_unused]] auto v = i;
18762 namespace test_lambda_capture_asterisk_this_by_value
18779 namespace test_enum_class_construction
18782 enum class byte : unsigned char
18789 namespace test_constexpr_if
18792 template <bool cond>
18807 namespace test_selection_statement_with_initializer
18817 if (auto i = f(); i > 0)
18822 switch (auto i = f(); i + 4)
18834 namespace test_template_argument_deduction_for_class_templates
18837 template <typename T1, typename T2>
18840 pair (T1 p1, T2 p2)
18851 [[maybe_unused]] auto p = pair{13, 42u};
18856 namespace test_non_type_auto_template_parameters
18868 namespace test_structured_bindings
18871 int arr[2] = { 1, 2 };
18872 std::pair<int, int> pr = { 1, 2 };
18874 auto f1() -> int(&)[2]
18879 auto f2() -> std::pair<int, int>&
18887 volatile double y1;
18895 auto [ x1, y1 ] = f1();
18896 auto& [ xr1, yr1 ] = f1();
18897 auto [ x2, y2 ] = f2();
18898 auto& [ xr2, yr2 ] = f2();
18899 const auto [ x3, y3 ] = f3();
18903 namespace test_exception_spec_type_system
18909 void g1() noexcept;
18912 template<typename T>
18916 template<typename T1, typename T2>
18920 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
18924 namespace test_inline_variables
18927 template<class T> void f(T)
18930 template<class T> inline T g(T)
18935 template<> inline void f<>(int)
18938 template<> int g<>(int)
18945 } // namespace cxx17
18947 #endif // __cplusplus < 201703L && !defined _MSC_VER
18952 if ac_fn_cxx_try_compile "$LINENO"; then :
18957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18960 eval ac_res=\$$cachevar
18961 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
18962 $as_echo "$ac_res" >&6; }
18963 if eval test x\$$cachevar = xyes; then
18964 CXX_DIALECT="$switch"
18966 if test -n "$CXXCPP" ; then
18967 CXXCPP="$CXXCPP $switch"
18973 if test x$ac_success = xyes; then
18979 ac_cpp='$CPP $CPPFLAGS'
18980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18984 if test x$ax_cxx_compile_cxx17_required = xtrue; then
18985 if test x$ac_success = xno; then
18986 as_fn_error $? "*** A compiler with support
for C
++17 language features is required.
" "$LINENO" 5
18989 if test x$ac_success = xno; then
18991 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++17 support was found
" >&5
18992 $as_echo "$as_me: No compiler with C
++17 support was found
" >&6;}
18996 $as_echo "#define HAVE_CXX17 1" >>confdefs.h
19003 # Dependency checking.
19004 rm -rf .tst
2>/dev
/null
19005 mkdir .tst
2>/dev
/null
19006 if test -d .tst
; then
19011 rmdir .tst
2>/dev
/null
19013 DEPDIR
="${am__leading_dot}deps"
19015 ac_config_commands
="$ac_config_commands depdir"
19018 depcc
="$CC" am_compiler_list
=
19020 am_depcomp
=$ac_aux_dir/depcomp
19021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
19022 $as_echo_n "checking dependency style of $depcc... " >&6; }
19023 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
19024 $as_echo_n "(cached) " >&6
19026 if test -f "$am_depcomp"; then
19027 # We make a subdir and do the tests there. Otherwise we can end up
19028 # making bogus files that we don't know about and never remove. For
19029 # instance it was reported that on HP-UX the gcc test will end up
19030 # making a dummy file named `D' -- because `-MD' means `put the output
19033 # Copy depcomp to subdir because otherwise we won't find it if we're
19034 # using a relative directory.
19035 cp "$am_depcomp" conftest.dir
19037 # We will build objects and dependencies in a subdirectory because
19038 # it helps to detect inapplicable dependency modes. For instance
19039 # both Tru64's cc and ICC support -MD to output dependencies as a
19040 # side effect of compilation, but ICC will put the dependencies in
19041 # the current directory while Tru64 will put them in the object
19045 am_cv_CC_dependencies_compiler_type
=none
19046 if test "$am_compiler_list" = ""; then
19047 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19049 for depmode
in $am_compiler_list; do
19050 if test $depmode = none
; then break; fi
19052 $as_echo "$as_me:$LINENO: trying $depmode" >&5
19053 # Setup a source with many dependencies, because some compilers
19054 # like to wrap large dependency lists on column 80 (with \), and
19055 # we should not choose a depcomp mode which is confused by this.
19057 # We need to recreate these files for each test, as the compiler may
19058 # overwrite some of them when testing with obscure command lines.
19059 # This happens at least with the AIX C compiler.
19061 for i
in 1 2 3 4 5 6; do
19062 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
19063 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19064 # Solaris 8's {/usr,}/bin/sh.
19065 touch sub
/conftst
$i.h
19067 echo "include sub/conftest.Po" > confmf
19069 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19070 # mode. It turns out that the SunPro C++ compiler does not properly
19071 # handle `-M -o', and we need to detect this.
19072 depcmd
="depmode=$depmode \
19073 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19074 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19075 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
19076 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
19077 if env
$depcmd > conftest.err
2>&1 &&
19078 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
19079 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
19080 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
19081 # icc doesn't choke on unknown options, it will just issue warnings
19082 # or remarks (even with -Werror). So we grep stderr for any message
19083 # that says an option was ignored or not supported.
19084 # When given -MP, icc 7.0 and 7.1 complain thusly:
19085 # icc: Command line warning: ignoring option '-M'; no argument required
19086 # The diagnosis changed in icc 8.0:
19087 # icc: Command line remark: option '-MP' not supported
19088 if (grep 'ignoring option' conftest.err ||
19089 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
19090 am_cv_CC_dependencies_compiler_type
=$depmode
19091 $as_echo "$as_me:$LINENO: success" >&5
19095 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
19096 sed -e 's/^/| /' < conftest.err
>&5
19100 rm -rf conftest.dir
19102 am_cv_CC_dependencies_compiler_type
=none
19106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
19107 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
19108 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
19109 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
19110 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
19115 # Since the first call to PKG_CHECK_MODULES may not happen (is guarded by
19116 # a condition), we must call PKG_PROG_PKG_CONFIG explicitly to probe for
19125 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19126 if test -n "$ac_tool_prefix"; then
19127 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19128 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
19129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19130 $as_echo_n "checking for $ac_word... " >&6; }
19131 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
19132 $as_echo_n "(cached) " >&6
19134 case $PKG_CONFIG in
19136 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
19139 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19140 for as_dir
in $PATH
19143 test -z "$as_dir" && as_dir
=.
19144 for ac_exec_ext
in '' $ac_executable_extensions; do
19145 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19146 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
19147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19157 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
19158 if test -n "$PKG_CONFIG"; then
19159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19160 $as_echo "$PKG_CONFIG" >&6; }
19162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19163 $as_echo "no" >&6; }
19168 if test -z "$ac_cv_path_PKG_CONFIG"; then
19169 ac_pt_PKG_CONFIG
=$PKG_CONFIG
19170 # Extract the first word of "pkg-config", so it can be a program name with args.
19171 set dummy pkg-config
; ac_word
=$2
19172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19173 $as_echo_n "checking for $ac_word... " >&6; }
19174 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
19175 $as_echo_n "(cached) " >&6
19177 case $ac_pt_PKG_CONFIG in
19179 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19182 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19183 for as_dir
in $PATH
19186 test -z "$as_dir" && as_dir
=.
19187 for ac_exec_ext
in '' $ac_executable_extensions; do
19188 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19189 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
19190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19200 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
19201 if test -n "$ac_pt_PKG_CONFIG"; then
19202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19203 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19206 $as_echo "no" >&6; }
19209 if test "x$ac_pt_PKG_CONFIG" = x
; then
19212 case $cross_compiling:$ac_tool_warned in
19214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19216 ac_tool_warned
=yes ;;
19218 PKG_CONFIG
=$ac_pt_PKG_CONFIG
19221 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
19225 if test -n "$PKG_CONFIG"; then
19226 _pkg_min_version
=0.9.0
19227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19228 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19229 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19231 $as_echo "yes" >&6; }
19233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19234 $as_echo "no" >&6; }
19250 # If we haven't got the data from the intl directory,
19251 # assume NLS is disabled.
19260 if test -f ..
/intl
/config.intl
; then
19261 . ..
/intl
/config.intl
19263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
19264 $as_echo_n "checking whether NLS is requested... " >&6; }
19265 if test x
"$USE_NLS" != xyes
; then
19266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19267 $as_echo "no" >&6; }
19269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19270 $as_echo "yes" >&6; }
19272 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
19275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
19276 $as_echo_n "checking for catalogs to be installed... " >&6; }
19277 # Look for .po and .gmo files in the source directory.
19280 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
19281 # If there aren't any .gmo files the shell will give us the
19282 # literal string "../path/to/srcdir/po/*.gmo" which has to be
19284 case "$cat" in *\
**)
19287 # The quadruple backslash is collapsed to a double backslash
19288 # by the backticks, then collapsed again by the double quotes,
19289 # leaving us with one backslash in the sed expression (right
19290 # before the dot that mustn't act as a wildcard).
19291 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
19292 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
19293 # The user is allowed to set LINGUAS to a list of languages to
19294 # install catalogs for. If it's empty that means "all of them."
19295 if test "x$LINGUAS" = x
; then
19296 CATALOGS
="$CATALOGS $cat"
19297 XLINGUAS
="$XLINGUAS $lang"
19299 case "$LINGUAS" in *$lang*)
19300 CATALOGS
="$CATALOGS $cat"
19301 XLINGUAS
="$XLINGUAS $lang"
19306 LINGUAS
="$XLINGUAS"
19307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
19308 $as_echo "$LINGUAS" >&6; }
19321 localedir
='${datadir}/locale'
19324 if test x
"$USE_NLS" = xyes
; then
19325 CONFIG_ALL
="$CONFIG_ALL all-po"
19326 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
19327 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
19328 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
19333 cat >>confdefs.h
<<_ACEOF
19334 #define PACKAGE "$PACKAGE"
19339 # We never need to detect it in this sub-configure.
19340 # But preserve it for config.status --recheck.
19344 MAKEINFO_EXTRA_FLAGS
=""
19345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
19346 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
19347 if ${gdb_cv_have_makeinfo_click+:} false
; then :
19348 $as_echo_n "(cached) " >&6
19350 echo '@clicksequence{a @click{} b}' >conftest.texinfo
19351 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
19352 gdb_cv_have_makeinfo_click
=yes
19354 gdb_cv_have_makeinfo_click
=no
19357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
19358 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
19359 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
19360 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
19366 # Check whether --with-separate-debug-dir was given.
19367 if test "${with_separate_debug_dir+set}" = set; then :
19368 withval
=$with_separate_debug_dir;
19371 DEBUGDIR
=${libdir}/debug
19375 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
19376 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19377 ac_define_dir
=`eval echo $DEBUGDIR`
19378 ac_define_dir
=`eval echo $ac_define_dir`
19380 cat >>confdefs.h
<<_ACEOF
19381 #define DEBUGDIR "$ac_define_dir"
19387 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
19388 if test "x$prefix" = xNONE
; then
19389 test_prefix
=/usr
/local
19391 test_prefix
=$prefix
19394 test_prefix
=$exec_prefix
19397 case ${ac_define_dir} in
19398 "${test_prefix}"|
"${test_prefix}/"*|\
19399 '${exec_prefix}'|
'${exec_prefix}/'*)
19404 cat >>confdefs.h
<<_ACEOF
19405 #define DEBUGDIR_RELOCATABLE $value
19412 # Check whether --with-additional-debug-dirs was given.
19413 if test "${with_additional_debug_dirs+set}" = set; then :
19414 withval
=$with_additional_debug_dirs;
19415 cat >>confdefs.h
<<_ACEOF
19416 #define ADDITIONAL_DEBUG_DIRS "${withval}"
19422 # We can't pass paths as command line arguments.
19423 # Mingw32 tries to be clever and will convert the paths for us.
19424 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
19425 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
19426 # This breaks GDB's relocatable path conversions since paths passed in
19427 # config.h would not get so translated, the path prefixes no longer match.
19429 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
19430 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19431 ac_define_dir
=`eval echo $bindir`
19432 ac_define_dir
=`eval echo $ac_define_dir`
19434 cat >>confdefs.h
<<_ACEOF
19435 #define BINDIR "$ac_define_dir"
19440 # GDB's datadir relocation
19444 # Check whether --with-gdb-datadir was given.
19445 if test "${with_gdb_datadir+set}" = set; then :
19446 withval
=$with_gdb_datadir;
19447 GDB_DATADIR
=$withval
19449 GDB_DATADIR
=${datadir}/gdb
19453 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
19454 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19455 ac_define_dir
=`eval echo $GDB_DATADIR`
19456 ac_define_dir
=`eval echo $ac_define_dir`
19458 cat >>confdefs.h
<<_ACEOF
19459 #define GDB_DATADIR "$ac_define_dir"
19465 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
19466 if test "x$prefix" = xNONE
; then
19467 test_prefix
=/usr
/local
19469 test_prefix
=$prefix
19472 test_prefix
=$exec_prefix
19475 case ${ac_define_dir} in
19476 "${test_prefix}"|
"${test_prefix}/"*|\
19477 '${exec_prefix}'|
'${exec_prefix}/'*)
19482 cat >>confdefs.h
<<_ACEOF
19483 #define GDB_DATADIR_RELOCATABLE $value
19490 # Check whether --with-relocated-sources was given.
19491 if test "${with_relocated_sources+set}" = set; then :
19492 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
19494 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
19495 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19496 ac_define_dir
=`eval echo $reloc_srcdir`
19497 ac_define_dir
=`eval echo $ac_define_dir`
19499 cat >>confdefs.h
<<_ACEOF
19500 #define RELOC_SRCDIR "$ac_define_dir"
19508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
19509 $as_echo_n "checking for default auto-load directory... " >&6; }
19511 # Check whether --with-auto-load-dir was given.
19512 if test "${with_auto_load_dir+set}" = set; then :
19513 withval
=$with_auto_load_dir;
19515 with_auto_load_dir
='$debugdir:$datadir/auto-load'
19518 escape_dir
=`echo $with_auto_load_dir | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
19520 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
19521 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19522 ac_define_dir
=`eval echo $escape_dir`
19523 ac_define_dir
=`eval echo $ac_define_dir`
19525 cat >>confdefs.h
<<_ACEOF
19526 #define AUTO_LOAD_DIR "$ac_define_dir"
19530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
19531 $as_echo "$with_auto_load_dir" >&6; }
19533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
19534 $as_echo_n "checking for default auto-load safe-path... " >&6; }
19536 # Check whether --with-auto-load-safe-path was given.
19537 if test "${with_auto_load_safe_path+set}" = set; then :
19538 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
19539 with_auto_load_safe_path
="/"
19542 with_auto_load_safe_path
="$with_auto_load_dir"
19545 escape_dir
=`echo $with_auto_load_safe_path | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
19547 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
19548 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19549 ac_define_dir
=`eval echo $escape_dir`
19550 ac_define_dir
=`eval echo $ac_define_dir`
19552 cat >>confdefs.h
<<_ACEOF
19553 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
19557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
19558 $as_echo "$with_auto_load_safe_path" >&6; }
19562 subdirs
="$subdirs testsuite"
19565 # Check whether to support alternative target configurations
19566 # Check whether --enable-targets was given.
19567 if test "${enable_targets+set}" = set; then :
19568 enableval
=$enable_targets; case "${enableval}" in
19569 yes |
"") as_fn_error $?
"enable-targets option must specify target names or 'all'" "$LINENO" 5
19571 no
) enable_targets
= ;;
19572 *) enable_targets
=$enableval ;;
19577 # Check whether --enable-64-bit-bfd was given.
19578 if test "${enable_64_bit_bfd+set}" = set; then :
19579 enableval
=$enable_64_bit_bfd; case $enableval in #(
19583 as_fn_error $?
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; #(
19588 enable_64_bit_bfd
=no
19592 if test "x$enable_64_bit_bfd" = "xno"; then :
19593 # The cast to long int works around a bug in the HP C Compiler
19594 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19595 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19596 # This bug is HP SR number 8606223364.
19597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
19598 $as_echo_n "checking size of void *... " >&6; }
19599 if ${ac_cv_sizeof_void_p+:} false
; then :
19600 $as_echo_n "(cached) " >&6
19602 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
19605 if test "$ac_cv_type_void_p" = yes; then
19606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19608 as_fn_error
77 "cannot compute sizeof (void *)
19609 See \`config.log' for more details" "$LINENO" 5; }
19611 ac_cv_sizeof_void_p
=0
19616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
19617 $as_echo "$ac_cv_sizeof_void_p" >&6; }
19621 cat >>confdefs.h
<<_ACEOF
19622 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
19626 if test "x$ac_cv_sizeof_void_p" = "x8"; then :
19627 enable_64_bit_bfd
=yes
19632 if test "x$enable_64_bit_bfd" = "xyes"; then
19633 ENABLE_BFD_64_BIT_TRUE
=
19634 ENABLE_BFD_64_BIT_FALSE
='#'
19636 ENABLE_BFD_64_BIT_TRUE
='#'
19637 ENABLE_BFD_64_BIT_FALSE
=
19642 # Provide defaults for some variables set by the per-host and per-target
19644 gdb_host_obs
=posix-hdep.o
19646 if test "${target}" = "${host}"; then
19652 .
$srcdir/configure.
host
19654 # Accumulate some settings from configure.tgt over all enabled targets
19658 HAVE_NATIVE_GCORE_TARGET
=
19660 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
19662 if test "$targ_alias" = "all"; then
19665 # Canonicalize the secondary target names.
19666 result
=`$ac_config_sub $targ_alias 2>/dev/null`
19667 if test -n "$result"; then
19673 .
${srcdir}/configure.tgt
19675 if test -z "${gdb_target_obs}"; then :
19676 as_fn_error $?
"configuration ${targ} is unsupported." "$LINENO" 5
19679 # Target-specific object files
19680 for i
in ${gdb_target_obs}; do
19681 case " $TARGET_OBS " in
19684 TARGET_OBS
="$TARGET_OBS ${i}"
19689 # Check whether this target needs 64-bit CORE_ADDR
19690 if test x
${enable_64_bit_bfd} = xno
; then
19691 .
${srcdir}/..
/bfd
/config.bfd
19694 # Check whether this target is native and supports gcore.
19695 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
19696 && $gdb_have_gcore; then
19697 HAVE_NATIVE_GCORE_TARGET
=1
19702 if test x
${all_targets} = xtrue
; then
19703 if test x
${enable_64_bit_bfd} = xyes
; then
19704 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
19706 TARGET_OBS
='$(ALL_TARGET_OBS)'
19710 # AMD debugger API support.
19713 # Check whether --with-amd-dbgapi was given.
19714 if test "${with_amd_dbgapi+set}" = set; then :
19715 withval
=$with_amd_dbgapi;
19720 as_fn_error $?
"bad value $withval for --with-amd-dbgapi" "$LINENO" 5
19725 with_amd_dbgapi
=auto
19729 # If the user passes --without-amd-dbgapi but also explicitly enables a target
19730 # that requires amd-dbgapi, it is an error.
19731 if test "$with_amd_dbgapi" = no
-a "$gdb_require_amd_dbgapi" = true
; then
19732 as_fn_error $?
"an explicitly enabled target requires amd-dbgapi, but amd-dbgapi is explicitly disabled" "$LINENO" 5
19735 # Look for amd-dbgapi if:
19737 # - a target architecture requiring it has explicitly been enabled, or
19738 # - --enable-targets=all was provided and the user did not explicitly disable
19739 # amd-dbgapi support
19740 if test "$gdb_require_amd_dbgapi" = true \
19741 -o \
( "$all_targets" = true
-a "$with_amd_dbgapi" != no \
); then
19742 # amd-dbgapi version 0.68 is part of ROCm 5.4. There is no guarantee of API
19743 # stability until amd-dbgapi hits 1.0, but for convenience, still check for
19744 # greater or equal that version. It can be handy when testing with a newer
19745 # version of the library.
19748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for amd-dbgapi >= 0.68.0" >&5
19749 $as_echo_n "checking for amd-dbgapi >= 0.68.0... " >&6; }
19751 if test -n "$AMD_DBGAPI_CFLAGS"; then
19752 pkg_cv_AMD_DBGAPI_CFLAGS
="$AMD_DBGAPI_CFLAGS"
19753 elif test -n "$PKG_CONFIG"; then
19754 if test -n "$PKG_CONFIG" && \
19755 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"amd-dbgapi >= 0.68.0\""; } >&5
19756 ($PKG_CONFIG --exists --print-errors "amd-dbgapi >= 0.68.0") 2>&5
19758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19759 test $ac_status = 0; }; then
19760 pkg_cv_AMD_DBGAPI_CFLAGS
=`$PKG_CONFIG --cflags "amd-dbgapi >= 0.68.0" 2>/dev/null`
19761 test "x$?" != "x0" && pkg_failed
=yes
19768 if test -n "$AMD_DBGAPI_LIBS"; then
19769 pkg_cv_AMD_DBGAPI_LIBS
="$AMD_DBGAPI_LIBS"
19770 elif test -n "$PKG_CONFIG"; then
19771 if test -n "$PKG_CONFIG" && \
19772 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"amd-dbgapi >= 0.68.0\""; } >&5
19773 ($PKG_CONFIG --exists --print-errors "amd-dbgapi >= 0.68.0") 2>&5
19775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19776 test $ac_status = 0; }; then
19777 pkg_cv_AMD_DBGAPI_LIBS
=`$PKG_CONFIG --libs "amd-dbgapi >= 0.68.0" 2>/dev/null`
19778 test "x$?" != "x0" && pkg_failed
=yes
19786 if test $pkg_failed = no
; then
19787 pkg_save_LDFLAGS
="$LDFLAGS"
19788 LDFLAGS
="$LDFLAGS $pkg_cv_AMD_DBGAPI_LIBS"
19789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19790 /* end confdefs.h. */
19800 if ac_fn_c_try_link
"$LINENO"; then :
19805 rm -f core conftest.err conftest.
$ac_objext \
19806 conftest
$ac_exeext conftest.
$ac_ext
19807 LDFLAGS
=$pkg_save_LDFLAGS
19812 if test $pkg_failed = yes; then
19813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19814 $as_echo "no" >&6; }
19816 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19817 _pkg_short_errors_supported
=yes
19819 _pkg_short_errors_supported
=no
19821 if test $_pkg_short_errors_supported = yes; then
19822 AMD_DBGAPI_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "amd-dbgapi >= 0.68.0" 2>&1`
19824 AMD_DBGAPI_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "amd-dbgapi >= 0.68.0" 2>&1`
19826 # Put the nasty error message in config.log where it belongs
19827 echo "$AMD_DBGAPI_PKG_ERRORS" >&5
19830 elif test $pkg_failed = untried
; then
19831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19832 $as_echo "no" >&6; }
19835 AMD_DBGAPI_CFLAGS
=$pkg_cv_AMD_DBGAPI_CFLAGS
19836 AMD_DBGAPI_LIBS
=$pkg_cv_AMD_DBGAPI_LIBS
19837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19838 $as_echo "yes" >&6; }
19842 if test "$has_amd_dbgapi" = "yes"; then
19844 $as_echo "#define HAVE_AMD_DBGAPI 1" >>confdefs.h
19846 TARGET_OBS
="$TARGET_OBS amd-dbgapi-target.o"
19848 # If --enable-targets=all was provided, use the list of all files depending
19849 # on amd-dbgapi that is hardcoded in the Makefile. Else, the appropriate
19850 # architecture entry in configure.tgt will have added the files to
19852 if test "$all_targets" = true
; then
19853 TARGET_OBS
="$TARGET_OBS \$(ALL_AMD_DBGAPI_TARGET_OBS)"
19855 elif test "$gdb_require_amd_dbgapi" = true
-o "$with_amd_dbgapi" = yes; then
19856 # amd-dbgapi was not found and...
19858 # - a target requiring it was explicitly enabled, or
19859 # - the user explicitly wants to enable amd-dbgapi
19860 as_fn_error $?
"amd-dbgapi is required, but cannot find an appropriate version: $AMD_DBGAPI_PKG_ERRORS" "$LINENO" 5
19867 # For other settings, only the main target counts.
19870 targ
=$target; .
${srcdir}/configure.tgt
19872 # Fetch the default architecture and default target vector from BFD.
19873 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
19875 # We only want the first architecture, so strip off the others if
19876 # there is more than one.
19877 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
19879 if test "x$targ_archs" != x
; then
19881 cat >>confdefs.h
<<_ACEOF
19882 #define DEFAULT_BFD_ARCH $targ_archs
19886 if test "x$targ_defvec" != x
; then
19888 cat >>confdefs.h
<<_ACEOF
19889 #define DEFAULT_BFD_VEC $targ_defvec
19895 # Check whether --enable-tui was given.
19896 if test "${enable_tui+set}" = set; then :
19897 enableval
=$enable_tui;
19902 as_fn_error $?
"bad value $enableval for --enable-tui" "$LINENO" 5
19912 # Check whether --enable-gdbtk was given.
19913 if test "${enable_gdbtk+set}" = set; then :
19914 enableval
=$enable_gdbtk;
19919 as_fn_error $?
"bad value $enableval for --enable-gdbtk" "$LINENO" 5
19924 if test -d "$srcdir/gdbtk"; then
19931 # We unconditionally disable gdbtk tests on selected platforms.
19934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
19935 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
19939 # Handle optional debuginfod support
19941 # Handle optional debuginfod support as well as optional section
19942 # downloading support.
19944 # Define HAVE_LIBDEBUGINFOD if libdebuginfod is found with version >= 0.179.
19946 # Define HAVE_LIBDEBUGINFOD_FIND_SECTION if libdebuginfod is found with
19947 # version >= 0.188.
19949 # Check whether --with-debuginfod was given.
19950 if test "${with_debuginfod+set}" = set; then :
19951 withval
=$with_debuginfod;
19953 with_debuginfod
=auto
19956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
19957 $as_echo_n "checking whether to use debuginfod... " >&6; }
19958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
19959 $as_echo "$with_debuginfod" >&6; }
19961 if test "x$with_debuginfod" != xno
; then
19964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.188" >&5
19965 $as_echo_n "checking for libdebuginfod >= 0.188... " >&6; }
19967 if test -n "$DEBUGINFOD_CFLAGS"; then
19968 pkg_cv_DEBUGINFOD_CFLAGS
="$DEBUGINFOD_CFLAGS"
19969 elif test -n "$PKG_CONFIG"; then
19970 if test -n "$PKG_CONFIG" && \
19971 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.188\""; } >&5
19972 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.188") 2>&5
19974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19975 test $ac_status = 0; }; then
19976 pkg_cv_DEBUGINFOD_CFLAGS
=`$PKG_CONFIG --cflags "libdebuginfod >= 0.188" 2>/dev/null`
19977 test "x$?" != "x0" && pkg_failed
=yes
19984 if test -n "$DEBUGINFOD_LIBS"; then
19985 pkg_cv_DEBUGINFOD_LIBS
="$DEBUGINFOD_LIBS"
19986 elif test -n "$PKG_CONFIG"; then
19987 if test -n "$PKG_CONFIG" && \
19988 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.188\""; } >&5
19989 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.188") 2>&5
19991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19992 test $ac_status = 0; }; then
19993 pkg_cv_DEBUGINFOD_LIBS
=`$PKG_CONFIG --libs "libdebuginfod >= 0.188" 2>/dev/null`
19994 test "x$?" != "x0" && pkg_failed
=yes
20002 if test $pkg_failed = no
; then
20003 pkg_save_LDFLAGS
="$LDFLAGS"
20004 LDFLAGS
="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
20005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20006 /* end confdefs.h. */
20016 if ac_fn_c_try_link
"$LINENO"; then :
20021 rm -f core conftest.err conftest.
$ac_objext \
20022 conftest
$ac_exeext conftest.
$ac_ext
20023 LDFLAGS
=$pkg_save_LDFLAGS
20028 if test $pkg_failed = yes; then
20029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20030 $as_echo "no" >&6; }
20032 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20033 _pkg_short_errors_supported
=yes
20035 _pkg_short_errors_supported
=no
20037 if test $_pkg_short_errors_supported = yes; then
20038 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.188" 2>&1`
20040 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.188" 2>&1`
20042 # Put the nasty error message in config.log where it belongs
20043 echo "$DEBUGINFOD_PKG_ERRORS" >&5
20045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or some features may be unavailable." >&5
20046 $as_echo "$as_me: WARNING: libdebuginfod is missing or some features may be unavailable." >&2;}
20047 elif test $pkg_failed = untried
; then
20048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20049 $as_echo "no" >&6; }
20050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or some features may be unavailable." >&5
20051 $as_echo "$as_me: WARNING: libdebuginfod is missing or some features may be unavailable." >&2;}
20053 DEBUGINFOD_CFLAGS
=$pkg_cv_DEBUGINFOD_CFLAGS
20054 DEBUGINFOD_LIBS
=$pkg_cv_DEBUGINFOD_LIBS
20055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20056 $as_echo "yes" >&6; }
20058 $as_echo "#define HAVE_LIBDEBUGINFOD_FIND_SECTION 1" >>confdefs.h
20064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5
20065 $as_echo_n "checking for libdebuginfod >= 0.179... " >&6; }
20067 if test -n "$DEBUGINFOD_CFLAGS"; then
20068 pkg_cv_DEBUGINFOD_CFLAGS
="$DEBUGINFOD_CFLAGS"
20069 elif test -n "$PKG_CONFIG"; then
20070 if test -n "$PKG_CONFIG" && \
20071 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
20072 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
20074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20075 test $ac_status = 0; }; then
20076 pkg_cv_DEBUGINFOD_CFLAGS
=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
20077 test "x$?" != "x0" && pkg_failed
=yes
20084 if test -n "$DEBUGINFOD_LIBS"; then
20085 pkg_cv_DEBUGINFOD_LIBS
="$DEBUGINFOD_LIBS"
20086 elif test -n "$PKG_CONFIG"; then
20087 if test -n "$PKG_CONFIG" && \
20088 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
20089 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
20091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20092 test $ac_status = 0; }; then
20093 pkg_cv_DEBUGINFOD_LIBS
=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
20094 test "x$?" != "x0" && pkg_failed
=yes
20102 if test $pkg_failed = no
; then
20103 pkg_save_LDFLAGS
="$LDFLAGS"
20104 LDFLAGS
="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
20105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20106 /* end confdefs.h. */
20116 if ac_fn_c_try_link
"$LINENO"; then :
20121 rm -f core conftest.err conftest.
$ac_objext \
20122 conftest
$ac_exeext conftest.
$ac_ext
20123 LDFLAGS
=$pkg_save_LDFLAGS
20128 if test $pkg_failed = yes; then
20129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20130 $as_echo "no" >&6; }
20132 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20133 _pkg_short_errors_supported
=yes
20135 _pkg_short_errors_supported
=no
20137 if test $_pkg_short_errors_supported = yes; then
20138 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
20140 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
20142 # Put the nasty error message in config.log where it belongs
20143 echo "$DEBUGINFOD_PKG_ERRORS" >&5
20145 if test "x$with_debuginfod" = xyes
; then
20146 as_fn_error $?
"\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
20148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
20149 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
20151 elif test $pkg_failed = untried
; then
20152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20153 $as_echo "no" >&6; }
20154 if test "x$with_debuginfod" = xyes
; then
20155 as_fn_error $?
"\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
20157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
20158 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
20161 DEBUGINFOD_CFLAGS
=$pkg_cv_DEBUGINFOD_CFLAGS
20162 DEBUGINFOD_LIBS
=$pkg_cv_DEBUGINFOD_LIBS
20163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20164 $as_echo "yes" >&6; }
20166 $as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
20170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
20171 $as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
20175 # Libunwind support for ia64.
20177 # Check whether --with-libunwind-ia64 was given.
20178 if test "${with_libunwind_ia64+set}" = set; then :
20179 withval
=$with_libunwind_ia64;
20181 with_libunwind_ia64
=auto
20185 # Backward compatibility option.
20186 if test "${with_libunwind+set}" = set; then
20187 if test x
"$with_libunwind_ia64" != xauto
; then
20188 as_fn_error $?
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
20190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
20191 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
20192 with_libunwind_ia64
="$with_libunwind"
20195 case "$with_libunwind_ia64" in
20199 for ac_header
in libunwind-ia64.h
20201 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
20202 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
20203 cat >>confdefs.h
<<_ACEOF
20204 #define HAVE_LIBUNWIND_IA64_H 1
20211 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
20214 as_fn_error $?
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
20218 if test x
"$with_libunwind_ia64" = xyes
; then
20219 for ac_header
in libunwind-ia64.h
20221 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
20222 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
20223 cat >>confdefs.h
<<_ACEOF
20224 #define HAVE_LIBUNWIND_IA64_H 1
20231 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
20232 as_fn_error $?
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
20234 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
20235 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
20236 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
20241 # Check whether --with-curses was given.
20242 if test "${with_curses+set}" = set; then :
20243 withval
=$with_curses; opt_curses
=$withval
20248 if test "$opt_curses" = "yes"; then
20252 # Profiling support.
20253 # Check whether --enable-profiling was given.
20254 if test "${enable_profiling+set}" = set; then :
20255 enableval
=$enable_profiling;
20260 as_fn_error $?
"bad value $enableval for --enable-profiling" "$LINENO" 5
20265 enable_profiling
=no
20269 for ac_func
in monstartup _mcleanup
20271 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20272 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
20273 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
20274 cat >>confdefs.h
<<_ACEOF
20275 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
20282 $as_echo_n "checking for _etext... " >&6; }
20283 if ${ac_cv_var__etext+:} false
; then :
20284 $as_echo_n "(cached) " >&6
20286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20287 /* end confdefs.h. */
20288 #include <stdlib.h>
20289 extern char _etext;
20299 if ac_fn_c_try_link
"$LINENO"; then :
20300 ac_cv_var__etext
=yes
20302 ac_cv_var__etext
=no
20305 rm -f core conftest.err conftest.
$ac_objext \
20306 conftest
$ac_exeext conftest.
$ac_ext
20309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
20310 $as_echo "$ac_cv_var__etext" >&6; }
20311 if test "$ac_cv_var__etext" = yes; then
20313 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
20316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
20317 $as_echo_n "checking for etext... " >&6; }
20318 if ${ac_cv_var_etext+:} false
; then :
20319 $as_echo_n "(cached) " >&6
20321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20322 /* end confdefs.h. */
20323 #include <stdlib.h>
20334 if ac_fn_c_try_link
"$LINENO"; then :
20335 ac_cv_var_etext
=yes
20340 rm -f core conftest.err conftest.
$ac_objext \
20341 conftest
$ac_exeext conftest.
$ac_ext
20344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
20345 $as_echo "$ac_cv_var_etext" >&6; }
20346 if test "$ac_cv_var_etext" = yes; then
20348 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
20351 if test "$enable_profiling" = yes ; then
20352 if test "$ac_cv_func_monstartup" = no ||
test "$ac_cv_func__mcleanup" = no
; then
20353 as_fn_error $?
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
20356 OLD_CFLAGS
="$CFLAGS"
20357 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
20359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
20360 $as_echo_n "checking whether $CC supports -pg... " >&6; }
20361 if ${ac_cv_cc_supports_pg+:} false
; then :
20362 $as_echo_n "(cached) " >&6
20364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20365 /* end confdefs.h. */
20375 if ac_fn_c_try_compile
"$LINENO"; then :
20376 ac_cv_cc_supports_pg
=yes
20378 ac_cv_cc_supports_pg
=no
20381 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
20385 $as_echo "$ac_cv_cc_supports_pg" >&6; }
20387 if test "$ac_cv_cc_supports_pg" = no
; then
20388 as_fn_error $?
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
20391 CFLAGS
="$OLD_CFLAGS"
20395 # Check whether --enable-codesign was given.
20396 if test "${enable_codesign+set}" = set; then :
20397 enableval
=$enable_codesign; CODESIGN_CERT
=$enableval
20404 # Check whether --with-pkgversion was given.
20405 if test "${with_pkgversion+set}" = set; then :
20406 withval
=$with_pkgversion; case "$withval" in
20407 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
20409 *) PKGVERSION
="($withval) " ;;
20412 PKGVERSION
="(GDB) "
20420 # Check whether --with-bugurl was given.
20421 if test "${with_bugurl+set}" = set; then :
20422 withval
=$with_bugurl; case "$withval" in
20423 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
20426 *) BUGURL
="$withval"
20430 BUGURL
="https://www.gnu.org/software/gdb/bugs/"
20440 REPORT_BUGS_TO
="<$BUGURL>"
20441 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
20448 cat >>confdefs.h
<<_ACEOF
20449 #define PKGVERSION "$PKGVERSION"
20453 cat >>confdefs.h
<<_ACEOF
20454 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
20458 # --------------------- #
20459 # Checks for programs. #
20460 # --------------------- #
20462 for ac_prog
in gawk mawk nawk
awk
20464 # Extract the first word of "$ac_prog", so it can be a program name with args.
20465 set dummy
$ac_prog; ac_word
=$2
20466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20467 $as_echo_n "checking for $ac_word... " >&6; }
20468 if ${ac_cv_prog_AWK+:} false
; then :
20469 $as_echo_n "(cached) " >&6
20471 if test -n "$AWK"; then
20472 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
20474 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20475 for as_dir
in $PATH
20478 test -z "$as_dir" && as_dir
=.
20479 for ac_exec_ext
in '' $ac_executable_extensions; do
20480 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
20481 ac_cv_prog_AWK
="$ac_prog"
20482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20491 AWK
=$ac_cv_prog_AWK
20492 if test -n "$AWK"; then
20493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
20494 $as_echo "$AWK" >&6; }
20496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20497 $as_echo "no" >&6; }
20501 test -n "$AWK" && break
20504 # Find a good install program. We prefer a C program (faster),
20505 # so one script is as good as another. But avoid the broken or
20506 # incompatible versions:
20507 # SysV /etc/install, /usr/sbin/install
20508 # SunOS /usr/etc/install
20509 # IRIX /sbin/install
20511 # AmigaOS /C/install, which installs bootblocks on floppy discs
20512 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
20513 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
20514 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
20515 # OS/2's system install, which has a completely different semantic
20516 # ./install, which can be erroneously created by make from ./install.sh.
20517 # Reject install programs that cannot install multiple files.
20518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
20519 $as_echo_n "checking for a BSD-compatible install... " >&6; }
20520 if test -z "$INSTALL"; then
20521 if ${ac_cv_path_install+:} false
; then :
20522 $as_echo_n "(cached) " >&6
20524 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20525 for as_dir
in $PATH
20528 test -z "$as_dir" && as_dir
=.
20529 # Account for people who put trailing slashes in PATH elements.
20530 case $as_dir/ in #((
20531 .
/ | .
// |
/[cC
]/* | \
20532 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
20533 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
20536 # OSF1 and SCO ODT 3.0 have their own names for install.
20537 # Don't use installbsd from OSF since it installs stuff as root
20539 for ac_prog
in ginstall scoinst
install; do
20540 for ac_exec_ext
in '' $ac_executable_extensions; do
20541 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
20542 if test $ac_prog = install &&
20543 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
20544 # AIX install. It has an incompatible calling convention.
20546 elif test $ac_prog = install &&
20547 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
20548 # program-specific install script used by HP pwplus--don't use.
20551 rm -rf conftest.one conftest.two conftest.dir
20552 echo one
> conftest.one
20553 echo two
> conftest.two
20555 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
20556 test -s conftest.one
&& test -s conftest.two
&&
20557 test -s conftest.dir
/conftest.one
&&
20558 test -s conftest.dir
/conftest.two
20560 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
20573 rm -rf conftest.one conftest.two conftest.dir
20576 if test "${ac_cv_path_install+set}" = set; then
20577 INSTALL
=$ac_cv_path_install
20579 # As a last resort, use the slow shell script. Don't cache a
20580 # value for INSTALL within a source directory, because that will
20581 # break other packages using the cache if that directory is
20582 # removed, or if the value is a relative name.
20583 INSTALL
=$ac_install_sh
20586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
20587 $as_echo "$INSTALL" >&6; }
20589 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
20590 # It thinks the first close brace ends the variable substitution.
20591 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
20593 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
20595 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
20597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
20598 $as_echo_n "checking whether ln -s works... " >&6; }
20600 if test "$LN_S" = "ln -s"; then
20601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20602 $as_echo "yes" >&6; }
20604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
20605 $as_echo "no, using $LN_S" >&6; }
20608 if test -n "$ac_tool_prefix"; then
20609 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
20610 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
20611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20612 $as_echo_n "checking for $ac_word... " >&6; }
20613 if ${ac_cv_prog_RANLIB+:} false
; then :
20614 $as_echo_n "(cached) " >&6
20616 if test -n "$RANLIB"; then
20617 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
20619 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20620 for as_dir
in $PATH
20623 test -z "$as_dir" && as_dir
=.
20624 for ac_exec_ext
in '' $ac_executable_extensions; do
20625 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
20626 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
20627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20636 RANLIB
=$ac_cv_prog_RANLIB
20637 if test -n "$RANLIB"; then
20638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
20639 $as_echo "$RANLIB" >&6; }
20641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20642 $as_echo "no" >&6; }
20647 if test -z "$ac_cv_prog_RANLIB"; then
20648 ac_ct_RANLIB
=$RANLIB
20649 # Extract the first word of "ranlib", so it can be a program name with args.
20650 set dummy ranlib
; ac_word
=$2
20651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20652 $as_echo_n "checking for $ac_word... " >&6; }
20653 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
20654 $as_echo_n "(cached) " >&6
20656 if test -n "$ac_ct_RANLIB"; then
20657 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
20659 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20660 for as_dir
in $PATH
20663 test -z "$as_dir" && as_dir
=.
20664 for ac_exec_ext
in '' $ac_executable_extensions; do
20665 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
20666 ac_cv_prog_ac_ct_RANLIB
="ranlib"
20667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20676 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
20677 if test -n "$ac_ct_RANLIB"; then
20678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
20679 $as_echo "$ac_ct_RANLIB" >&6; }
20681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20682 $as_echo "no" >&6; }
20685 if test "x$ac_ct_RANLIB" = x
; then
20688 case $cross_compiling:$ac_tool_warned in
20690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20692 ac_tool_warned
=yes ;;
20694 RANLIB
=$ac_ct_RANLIB
20697 RANLIB
="$ac_cv_prog_RANLIB"
20700 for ac_prog
in 'bison -y' byacc
20702 # Extract the first word of "$ac_prog", so it can be a program name with args.
20703 set dummy
$ac_prog; ac_word
=$2
20704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20705 $as_echo_n "checking for $ac_word... " >&6; }
20706 if ${ac_cv_prog_YACC+:} false
; then :
20707 $as_echo_n "(cached) " >&6
20709 if test -n "$YACC"; then
20710 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
20712 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20713 for as_dir
in $PATH
20716 test -z "$as_dir" && as_dir
=.
20717 for ac_exec_ext
in '' $ac_executable_extensions; do
20718 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
20719 ac_cv_prog_YACC
="$ac_prog"
20720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20729 YACC
=$ac_cv_prog_YACC
20730 if test -n "$YACC"; then
20731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
20732 $as_echo "$YACC" >&6; }
20734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20735 $as_echo "no" >&6; }
20739 test -n "$YACC" && break
20741 test -n "$YACC" || YACC
="yacc"
20744 if test -n "$ac_tool_prefix"; then
20745 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
20746 set dummy
${ac_tool_prefix}ar; ac_word
=$2
20747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20748 $as_echo_n "checking for $ac_word... " >&6; }
20749 if ${ac_cv_prog_AR+:} false
; then :
20750 $as_echo_n "(cached) " >&6
20752 if test -n "$AR"; then
20753 ac_cv_prog_AR
="$AR" # Let the user override the test.
20755 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20756 for as_dir
in $PATH
20759 test -z "$as_dir" && as_dir
=.
20760 for ac_exec_ext
in '' $ac_executable_extensions; do
20761 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
20762 ac_cv_prog_AR
="${ac_tool_prefix}ar"
20763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20773 if test -n "$AR"; then
20774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
20775 $as_echo "$AR" >&6; }
20777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20778 $as_echo "no" >&6; }
20783 if test -z "$ac_cv_prog_AR"; then
20785 # Extract the first word of "ar", so it can be a program name with args.
20786 set dummy
ar; ac_word
=$2
20787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20788 $as_echo_n "checking for $ac_word... " >&6; }
20789 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
20790 $as_echo_n "(cached) " >&6
20792 if test -n "$ac_ct_AR"; then
20793 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
20795 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20796 for as_dir
in $PATH
20799 test -z "$as_dir" && as_dir
=.
20800 for ac_exec_ext
in '' $ac_executable_extensions; do
20801 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
20802 ac_cv_prog_ac_ct_AR
="ar"
20803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20812 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
20813 if test -n "$ac_ct_AR"; then
20814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
20815 $as_echo "$ac_ct_AR" >&6; }
20817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20818 $as_echo "no" >&6; }
20821 if test "x$ac_ct_AR" = x
; then
20824 case $cross_compiling:$ac_tool_warned in
20826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20828 ac_tool_warned
=yes ;;
20833 AR
="$ac_cv_prog_AR"
20836 if test -n "$ac_tool_prefix"; then
20837 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
20838 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
20839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20840 $as_echo_n "checking for $ac_word... " >&6; }
20841 if ${ac_cv_prog_DLLTOOL+:} false
; then :
20842 $as_echo_n "(cached) " >&6
20844 if test -n "$DLLTOOL"; then
20845 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
20847 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20848 for as_dir
in $PATH
20851 test -z "$as_dir" && as_dir
=.
20852 for ac_exec_ext
in '' $ac_executable_extensions; do
20853 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
20854 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
20855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20864 DLLTOOL
=$ac_cv_prog_DLLTOOL
20865 if test -n "$DLLTOOL"; then
20866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
20867 $as_echo "$DLLTOOL" >&6; }
20869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20870 $as_echo "no" >&6; }
20875 if test -z "$ac_cv_prog_DLLTOOL"; then
20876 ac_ct_DLLTOOL
=$DLLTOOL
20877 # Extract the first word of "dlltool", so it can be a program name with args.
20878 set dummy dlltool
; ac_word
=$2
20879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20880 $as_echo_n "checking for $ac_word... " >&6; }
20881 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
20882 $as_echo_n "(cached) " >&6
20884 if test -n "$ac_ct_DLLTOOL"; then
20885 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
20887 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20888 for as_dir
in $PATH
20891 test -z "$as_dir" && as_dir
=.
20892 for ac_exec_ext
in '' $ac_executable_extensions; do
20893 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
20894 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
20895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20904 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
20905 if test -n "$ac_ct_DLLTOOL"; then
20906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
20907 $as_echo "$ac_ct_DLLTOOL" >&6; }
20909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20910 $as_echo "no" >&6; }
20913 if test "x$ac_ct_DLLTOOL" = x
; then
20916 case $cross_compiling:$ac_tool_warned in
20918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20920 ac_tool_warned
=yes ;;
20922 DLLTOOL
=$ac_ct_DLLTOOL
20925 DLLTOOL
="$ac_cv_prog_DLLTOOL"
20928 if test -n "$ac_tool_prefix"; then
20929 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
20930 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
20931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20932 $as_echo_n "checking for $ac_word... " >&6; }
20933 if ${ac_cv_prog_WINDRES+:} false
; then :
20934 $as_echo_n "(cached) " >&6
20936 if test -n "$WINDRES"; then
20937 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
20939 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20940 for as_dir
in $PATH
20943 test -z "$as_dir" && as_dir
=.
20944 for ac_exec_ext
in '' $ac_executable_extensions; do
20945 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
20946 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
20947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20956 WINDRES
=$ac_cv_prog_WINDRES
20957 if test -n "$WINDRES"; then
20958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
20959 $as_echo "$WINDRES" >&6; }
20961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20962 $as_echo "no" >&6; }
20967 if test -z "$ac_cv_prog_WINDRES"; then
20968 ac_ct_WINDRES
=$WINDRES
20969 # Extract the first word of "windres", so it can be a program name with args.
20970 set dummy windres
; ac_word
=$2
20971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20972 $as_echo_n "checking for $ac_word... " >&6; }
20973 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
20974 $as_echo_n "(cached) " >&6
20976 if test -n "$ac_ct_WINDRES"; then
20977 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
20979 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20980 for as_dir
in $PATH
20983 test -z "$as_dir" && as_dir
=.
20984 for ac_exec_ext
in '' $ac_executable_extensions; do
20985 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
20986 ac_cv_prog_ac_ct_WINDRES
="windres"
20987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20996 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
20997 if test -n "$ac_ct_WINDRES"; then
20998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
20999 $as_echo "$ac_ct_WINDRES" >&6; }
21001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21002 $as_echo "no" >&6; }
21005 if test "x$ac_ct_WINDRES" = x
; then
21008 case $cross_compiling:$ac_tool_warned in
21010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21012 ac_tool_warned
=yes ;;
21014 WINDRES
=$ac_ct_WINDRES
21017 WINDRES
="$ac_cv_prog_WINDRES"
21023 # Needed for GNU Hurd hosts.
21024 if test -n "$ac_tool_prefix"; then
21025 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
21026 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
21027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21028 $as_echo_n "checking for $ac_word... " >&6; }
21029 if ${ac_cv_prog_MIG+:} false
; then :
21030 $as_echo_n "(cached) " >&6
21032 if test -n "$MIG"; then
21033 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
21035 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21036 for as_dir
in $PATH
21039 test -z "$as_dir" && as_dir
=.
21040 for ac_exec_ext
in '' $ac_executable_extensions; do
21041 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
21042 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
21043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21052 MIG
=$ac_cv_prog_MIG
21053 if test -n "$MIG"; then
21054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
21055 $as_echo "$MIG" >&6; }
21057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21058 $as_echo "no" >&6; }
21063 if test -z "$ac_cv_prog_MIG"; then
21065 # Extract the first word of "mig", so it can be a program name with args.
21066 set dummy mig
; ac_word
=$2
21067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21068 $as_echo_n "checking for $ac_word... " >&6; }
21069 if ${ac_cv_prog_ac_ct_MIG+:} false
; then :
21070 $as_echo_n "(cached) " >&6
21072 if test -n "$ac_ct_MIG"; then
21073 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
21075 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21076 for as_dir
in $PATH
21079 test -z "$as_dir" && as_dir
=.
21080 for ac_exec_ext
in '' $ac_executable_extensions; do
21081 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
21082 ac_cv_prog_ac_ct_MIG
="mig"
21083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21092 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
21093 if test -n "$ac_ct_MIG"; then
21094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
21095 $as_echo "$ac_ct_MIG" >&6; }
21097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21098 $as_echo "no" >&6; }
21101 if test "x$ac_ct_MIG" = x
; then
21104 case $cross_compiling:$ac_tool_warned in
21106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21108 ac_tool_warned
=yes ;;
21113 MIG
="$ac_cv_prog_MIG"
21116 if test x
"$MIG" = x
; then
21117 as_fn_error $?
"MIG not found but required for $host hosts" "$LINENO" 5
21122 # ---------------------- #
21123 # Checks for libraries. #
21124 # ---------------------- #
21126 # We might need to link with -lm; most simulators need it.
21127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
21128 $as_echo_n "checking for main in -lm... " >&6; }
21129 if ${ac_cv_lib_m_main+:} false
; then :
21130 $as_echo_n "(cached) " >&6
21132 ac_check_lib_save_LIBS
=$LIBS
21134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21135 /* end confdefs.h. */
21146 if ac_fn_c_try_link
"$LINENO"; then :
21147 ac_cv_lib_m_main
=yes
21149 ac_cv_lib_m_main
=no
21151 rm -f core conftest.err conftest.
$ac_objext \
21152 conftest
$ac_exeext conftest.
$ac_ext
21153 LIBS
=$ac_check_lib_save_LIBS
21155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
21156 $as_echo "$ac_cv_lib_m_main" >&6; }
21157 if test "x$ac_cv_lib_m_main" = xyes
; then :
21158 cat >>confdefs.h
<<_ACEOF
21159 #define HAVE_LIBM 1
21167 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
21168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
21169 $as_echo_n "checking for library containing gethostbyname... " >&6; }
21170 if ${ac_cv_search_gethostbyname+:} false
; then :
21171 $as_echo_n "(cached) " >&6
21173 ac_func_search_save_LIBS
=$LIBS
21174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21175 /* end confdefs.h. */
21177 /* Override any GCC internal prototype to avoid an error.
21178 Use char because int might match the return type of a GCC
21179 builtin and then its argument prototype would still apply. */
21183 char gethostbyname ();
21187 return gethostbyname ();
21192 for ac_lib
in '' nsl
; do
21193 if test -z "$ac_lib"; then
21194 ac_res
="none required"
21197 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
21199 if ac_fn_c_try_link
"$LINENO"; then :
21200 ac_cv_search_gethostbyname
=$ac_res
21202 rm -f core conftest.err conftest.
$ac_objext \
21204 if ${ac_cv_search_gethostbyname+:} false
; then :
21208 if ${ac_cv_search_gethostbyname+:} false
; then :
21211 ac_cv_search_gethostbyname
=no
21213 rm conftest.
$ac_ext
21214 LIBS
=$ac_func_search_save_LIBS
21216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
21217 $as_echo "$ac_cv_search_gethostbyname" >&6; }
21218 ac_res
=$ac_cv_search_gethostbyname
21219 if test "$ac_res" != no
; then :
21220 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
21225 # Link in zlib/zstd if we can. This allows us to read compressed debug
21228 # Use the system's zlib library.
21229 zlibdir
="-L\$(top_builddir)/../zlib"
21230 zlibinc
="-I\$(top_srcdir)/../zlib"
21232 # Check whether --with-system-zlib was given.
21233 if test "${with_system_zlib+set}" = set; then :
21234 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
21246 # Check whether --with-zstd was given.
21247 if test "${with_zstd+set}" = set; then :
21248 withval
=$with_zstd;
21254 if test "$with_zstd" != no
; then :
21257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
21258 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
21260 if test -n "$ZSTD_CFLAGS"; then
21261 pkg_cv_ZSTD_CFLAGS
="$ZSTD_CFLAGS"
21262 elif test -n "$PKG_CONFIG"; then
21263 if test -n "$PKG_CONFIG" && \
21264 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
21265 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
21267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21268 test $ac_status = 0; }; then
21269 pkg_cv_ZSTD_CFLAGS
=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
21270 test "x$?" != "x0" && pkg_failed
=yes
21277 if test -n "$ZSTD_LIBS"; then
21278 pkg_cv_ZSTD_LIBS
="$ZSTD_LIBS"
21279 elif test -n "$PKG_CONFIG"; then
21280 if test -n "$PKG_CONFIG" && \
21281 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
21282 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
21284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21285 test $ac_status = 0; }; then
21286 pkg_cv_ZSTD_LIBS
=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
21287 test "x$?" != "x0" && pkg_failed
=yes
21295 if test $pkg_failed = no
; then
21296 pkg_save_LDFLAGS
="$LDFLAGS"
21297 LDFLAGS
="$LDFLAGS $pkg_cv_ZSTD_LIBS"
21298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21299 /* end confdefs.h. */
21309 if ac_fn_c_try_link
"$LINENO"; then :
21314 rm -f core conftest.err conftest.
$ac_objext \
21315 conftest
$ac_exeext conftest.
$ac_ext
21316 LDFLAGS
=$pkg_save_LDFLAGS
21321 if test $pkg_failed = yes; then
21322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21323 $as_echo "no" >&6; }
21325 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21326 _pkg_short_errors_supported
=yes
21328 _pkg_short_errors_supported
=no
21330 if test $_pkg_short_errors_supported = yes; then
21331 ZSTD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
21333 ZSTD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
21335 # Put the nasty error message in config.log where it belongs
21336 echo "$ZSTD_PKG_ERRORS" >&5
21339 if test "$with_zstd" = yes; then
21340 as_fn_error $?
"--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
21343 elif test $pkg_failed = untried
; then
21344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21345 $as_echo "no" >&6; }
21347 if test "$with_zstd" = yes; then
21348 as_fn_error $?
"--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
21352 ZSTD_CFLAGS
=$pkg_cv_ZSTD_CFLAGS
21353 ZSTD_LIBS
=$pkg_cv_ZSTD_LIBS
21354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21355 $as_echo "yes" >&6; }
21358 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
21367 if test "X$prefix" = "XNONE"; then
21368 acl_final_prefix
="$ac_default_prefix"
21370 acl_final_prefix
="$prefix"
21372 if test "X$exec_prefix" = "XNONE"; then
21373 acl_final_exec_prefix
='${prefix}'
21375 acl_final_exec_prefix
="$exec_prefix"
21377 acl_save_prefix
="$prefix"
21378 prefix
="$acl_final_prefix"
21379 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
21380 prefix
="$acl_save_prefix"
21383 # Check whether --with-gnu-ld was given.
21384 if test "${with_gnu_ld+set}" = set; then :
21385 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
21390 # Prepare PATH_SEPARATOR.
21391 # The user is always right.
21392 if test "${PATH_SEPARATOR+set}" != set; then
21393 echo "#! /bin/sh" >conf$$.sh
21394 echo "exit 0" >>conf$$.sh
21396 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
21404 if test "$GCC" = yes; then
21405 # Check if gcc -print-prog-name=ld gives a path.
21406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
21407 $as_echo_n "checking for ld used by GCC... " >&6; }
21410 # gcc leaves a trailing carriage return which upsets mingw
21411 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21413 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
21416 # Accept absolute paths.
21417 [\\/]* |
[A-Za-z
]:[\\/]*)
21418 re_direlt
='/[^/][^/]*/\.\./'
21419 # Canonicalize the path of ld
21420 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
21421 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
21422 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
21424 test -z "$LD" && LD
="$ac_prog"
21427 # If it fails, then pretend we aren't using GCC.
21431 # If it is relative, then search for the first ld in PATH.
21432 with_gnu_ld
=unknown
21435 elif test "$with_gnu_ld" = yes; then
21436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
21437 $as_echo_n "checking for GNU ld... " >&6; }
21439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
21440 $as_echo_n "checking for non-GNU ld... " >&6; }
21442 if ${acl_cv_path_LD+:} false
; then :
21443 $as_echo_n "(cached) " >&6
21445 if test -z "$LD"; then
21446 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21447 for ac_dir
in $PATH; do
21448 test -z "$ac_dir" && ac_dir
=.
21449 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
21450 acl_cv_path_LD
="$ac_dir/$ac_prog"
21451 # Check to see if the program is GNU ld. I'd rather use --version,
21452 # but apparently some GNU ld's only accept -v.
21453 # Break only if it was the GNU/non-GNU ld that we prefer.
21454 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
$EGREP '(GNU|with BFD)' > /dev
/null
; then
21455 test "$with_gnu_ld" != no
&& break
21457 test "$with_gnu_ld" != yes && break
21463 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
21467 LD
="$acl_cv_path_LD"
21468 if test -n "$LD"; then
21469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
21470 $as_echo "$LD" >&6; }
21472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21473 $as_echo "no" >&6; }
21475 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
21476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
21477 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
21478 if ${acl_cv_prog_gnu_ld+:} false
; then :
21479 $as_echo_n "(cached) " >&6
21481 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21482 if $LD -v 2>&1 </dev
/null |
$EGREP '(GNU|with BFD)' 1>&5; then
21483 acl_cv_prog_gnu_ld
=yes
21485 acl_cv_prog_gnu_ld
=no
21488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
21489 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
21490 with_gnu_ld
=$acl_cv_prog_gnu_ld
21494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
21495 $as_echo_n "checking for shared library run path origin... " >&6; }
21496 if ${acl_cv_rpath+:} false
; then :
21497 $as_echo_n "(cached) " >&6
21500 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
21501 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21503 rm -f .
/conftest.sh
21507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
21508 $as_echo "$acl_cv_rpath" >&6; }
21510 libext
="$acl_cv_libext"
21511 shlibext
="$acl_cv_shlibext"
21512 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
21513 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
21514 hardcode_direct
="$acl_cv_hardcode_direct"
21515 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
21516 # Check whether --enable-rpath was given.
21517 if test "${enable_rpath+set}" = set; then :
21518 enableval
=$enable_rpath; :
21532 acl_save_prefix
="$prefix"
21533 prefix
="$acl_final_prefix"
21534 acl_save_exec_prefix
="$exec_prefix"
21535 exec_prefix
="$acl_final_exec_prefix"
21537 eval additional_includedir
=\"$includedir\"
21538 eval additional_libdir
=\"$libdir\"
21540 exec_prefix
="$acl_save_exec_prefix"
21541 prefix
="$acl_save_prefix"
21544 # Check whether --with-libiconv-prefix was given.
21545 if test "${with_libiconv_prefix+set}" = set; then :
21546 withval
=$with_libiconv_prefix;
21547 if test "X$withval" = "Xno"; then
21550 if test "X$withval" = "X"; then
21552 acl_save_prefix
="$prefix"
21553 prefix
="$acl_final_prefix"
21554 acl_save_exec_prefix
="$exec_prefix"
21555 exec_prefix
="$acl_final_exec_prefix"
21557 eval additional_includedir
=\"$includedir\"
21558 eval additional_libdir
=\"$libdir\"
21560 exec_prefix
="$acl_save_exec_prefix"
21561 prefix
="$acl_save_prefix"
21564 additional_includedir
="$withval/include"
21565 additional_libdir
="$withval/lib"
21572 # Check whether --with-libiconv-type was given.
21573 if test "${with_libiconv_type+set}" = set; then :
21574 withval
=$with_libiconv_type; with_libiconv_type
=$withval
21576 with_libiconv_type
=auto
21579 lib_type
=`eval echo \$with_libiconv_type`
21586 names_already_handled
=
21587 names_next_round
='iconv '
21588 while test -n "$names_next_round"; do
21589 names_this_round
="$names_next_round"
21591 for name
in $names_this_round; do
21593 for n
in $names_already_handled; do
21594 if test "$n" = "$name"; then
21595 already_handled
=yes
21599 if test -z "$already_handled"; then
21600 names_already_handled
="$names_already_handled $name"
21601 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21602 eval value
=\"\
$HAVE_LIB$uppername\"
21603 if test -n "$value"; then
21604 if test "$value" = yes; then
21605 eval value
=\"\
$LIB$uppername\"
21606 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
21607 eval value
=\"\
$LTLIB$uppername\"
21608 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
21617 if test $use_additional = yes; then
21618 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
21619 found_dir
="$additional_libdir"
21620 found_so
="$additional_libdir/lib$name.$shlibext"
21621 if test -f "$additional_libdir/lib$name.la"; then
21622 found_la
="$additional_libdir/lib$name.la"
21624 elif test x
$lib_type != xshared
; then
21625 if test -f "$additional_libdir/lib$name.$libext"; then
21626 found_dir
="$additional_libdir"
21627 found_a
="$additional_libdir/lib$name.$libext"
21628 if test -f "$additional_libdir/lib$name.la"; then
21629 found_la
="$additional_libdir/lib$name.la"
21634 if test "X$found_dir" = "X"; then
21635 for x
in $LDFLAGS $LTLIBICONV; do
21637 acl_save_prefix
="$prefix"
21638 prefix
="$acl_final_prefix"
21639 acl_save_exec_prefix
="$exec_prefix"
21640 exec_prefix
="$acl_final_exec_prefix"
21642 exec_prefix
="$acl_save_exec_prefix"
21643 prefix
="$acl_save_prefix"
21647 dir
=`echo "X$x" | sed -e 's/^X-L//'`
21648 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
21650 found_so
="$dir/lib$name.$shlibext"
21651 if test -f "$dir/lib$name.la"; then
21652 found_la
="$dir/lib$name.la"
21654 elif test x
$lib_type != xshared
; then
21655 if test -f "$dir/lib$name.$libext"; then
21657 found_a
="$dir/lib$name.$libext"
21658 if test -f "$dir/lib$name.la"; then
21659 found_la
="$dir/lib$name.la"
21665 if test "X$found_dir" != "X"; then
21670 if test "X$found_dir" != "X"; then
21671 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21672 if test "X$found_so" != "X"; then
21673 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
21674 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
21677 for x
in $ltrpathdirs; do
21678 if test "X$x" = "X$found_dir"; then
21683 if test -z "$haveit"; then
21684 ltrpathdirs
="$ltrpathdirs $found_dir"
21686 if test "$hardcode_direct" = yes; then
21687 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
21689 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
21690 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
21692 for x
in $rpathdirs; do
21693 if test "X$x" = "X$found_dir"; then
21698 if test -z "$haveit"; then
21699 rpathdirs
="$rpathdirs $found_dir"
21703 for x
in $LDFLAGS $LIBICONV; do
21705 acl_save_prefix
="$prefix"
21706 prefix
="$acl_final_prefix"
21707 acl_save_exec_prefix
="$exec_prefix"
21708 exec_prefix
="$acl_final_exec_prefix"
21710 exec_prefix
="$acl_save_exec_prefix"
21711 prefix
="$acl_save_prefix"
21713 if test "X$x" = "X-L$found_dir"; then
21718 if test -z "$haveit"; then
21719 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21721 if test "$hardcode_minus_L" != no
; then
21722 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
21724 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
21730 if test "X$found_a" != "X"; then
21731 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
21733 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21736 additional_includedir
=
21737 case "$found_dir" in
21739 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21740 additional_includedir
="$basedir/include"
21743 if test "X$additional_includedir" != "X"; then
21744 if test "X$additional_includedir" != "X/usr/include"; then
21746 if test "X$additional_includedir" = "X/usr/local/include"; then
21747 if test -n "$GCC"; then
21749 linux
*) haveit
=yes;;
21753 if test -z "$haveit"; then
21754 for x
in $CPPFLAGS $INCICONV; do
21756 acl_save_prefix
="$prefix"
21757 prefix
="$acl_final_prefix"
21758 acl_save_exec_prefix
="$exec_prefix"
21759 exec_prefix
="$acl_final_exec_prefix"
21761 exec_prefix
="$acl_save_exec_prefix"
21762 prefix
="$acl_save_prefix"
21764 if test "X$x" = "X-I$additional_includedir"; then
21769 if test -z "$haveit"; then
21770 if test -d "$additional_includedir"; then
21771 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21777 if test -n "$found_la"; then
21778 save_libdir
="$libdir"
21779 case "$found_la" in
21780 */* |
*\\*) .
"$found_la" ;;
21781 *) .
"./$found_la" ;;
21783 libdir
="$save_libdir"
21784 for dep
in $dependency_libs; do
21787 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
21788 if test "X$additional_libdir" != "X/usr/lib"; then
21790 if test "X$additional_libdir" = "X/usr/local/lib"; then
21791 if test -n "$GCC"; then
21793 linux
*) haveit
=yes;;
21797 if test -z "$haveit"; then
21799 for x
in $LDFLAGS $LIBICONV; do
21801 acl_save_prefix
="$prefix"
21802 prefix
="$acl_final_prefix"
21803 acl_save_exec_prefix
="$exec_prefix"
21804 exec_prefix
="$acl_final_exec_prefix"
21806 exec_prefix
="$acl_save_exec_prefix"
21807 prefix
="$acl_save_prefix"
21809 if test "X$x" = "X-L$additional_libdir"; then
21814 if test -z "$haveit"; then
21815 if test -d "$additional_libdir"; then
21816 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21820 for x
in $LDFLAGS $LTLIBICONV; do
21822 acl_save_prefix
="$prefix"
21823 prefix
="$acl_final_prefix"
21824 acl_save_exec_prefix
="$exec_prefix"
21825 exec_prefix
="$acl_final_exec_prefix"
21827 exec_prefix
="$acl_save_exec_prefix"
21828 prefix
="$acl_save_prefix"
21830 if test "X$x" = "X-L$additional_libdir"; then
21835 if test -z "$haveit"; then
21836 if test -d "$additional_libdir"; then
21837 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21844 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
21845 if test "$enable_rpath" != no
; then
21847 for x
in $rpathdirs; do
21848 if test "X$x" = "X$dir"; then
21853 if test -z "$haveit"; then
21854 rpathdirs
="$rpathdirs $dir"
21857 for x
in $ltrpathdirs; do
21858 if test "X$x" = "X$dir"; then
21863 if test -z "$haveit"; then
21864 ltrpathdirs
="$ltrpathdirs $dir"
21869 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21872 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21875 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
21876 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21882 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
21883 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
21884 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21886 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
21887 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
21894 if test "X$rpathdirs" != "X"; then
21895 if test -n "$hardcode_libdir_separator"; then
21897 for found_dir
in $rpathdirs; do
21898 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21900 acl_save_libdir
="$libdir"
21902 eval flag
=\"$hardcode_libdir_flag_spec\"
21903 libdir
="$acl_save_libdir"
21904 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
21906 for found_dir
in $rpathdirs; do
21907 acl_save_libdir
="$libdir"
21908 libdir
="$found_dir"
21909 eval flag
=\"$hardcode_libdir_flag_spec\"
21910 libdir
="$acl_save_libdir"
21911 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
21915 if test "X$ltrpathdirs" != "X"; then
21916 for found_dir
in $ltrpathdirs; do
21917 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
21928 $as_echo_n "checking for iconv... " >&6; }
21929 if ${am_cv_func_iconv+:} false
; then :
21930 $as_echo_n "(cached) " >&6
21933 am_cv_func_iconv
="no, consider installing GNU libiconv"
21935 am_save_CPPFLAGS
="$CPPFLAGS"
21936 CPPFLAGS
="$CPPFLAGS $INCICONV"
21937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21938 /* end confdefs.h. */
21939 #include <stdlib.h>
21944 iconv_t cd = iconv_open("","");
21945 iconv(cd,NULL,NULL,NULL,NULL);
21951 if ac_fn_c_try_link
"$LINENO"; then :
21952 am_cv_func_iconv
=yes
21954 rm -f core conftest.err conftest.
$ac_objext \
21955 conftest
$ac_exeext conftest.
$ac_ext
21956 CPPFLAGS
="$am_save_CPPFLAGS"
21958 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
21959 for _libs
in .libs _libs
; do
21960 am_save_CPPFLAGS
="$CPPFLAGS"
21961 am_save_LIBS
="$LIBS"
21962 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
21963 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
21964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21965 /* end confdefs.h. */
21966 #include <stdlib.h>
21971 iconv_t cd = iconv_open("","");
21972 iconv(cd,NULL,NULL,NULL,NULL);
21978 if ac_fn_c_try_link
"$LINENO"; then :
21979 INCICONV
="-I../libiconv/include"
21980 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
21981 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
21982 am_cv_lib_iconv
=yes
21983 am_cv_func_iconv
=yes
21985 rm -f core conftest.err conftest.
$ac_objext \
21986 conftest
$ac_exeext conftest.
$ac_ext
21987 CPPFLAGS
="$am_save_CPPFLAGS"
21988 LIBS
="$am_save_LIBS"
21989 if test "$am_cv_func_iconv" = "yes"; then
21995 if test "$am_cv_func_iconv" != yes; then
21996 am_save_CPPFLAGS
="$CPPFLAGS"
21997 am_save_LIBS
="$LIBS"
21998 CPPFLAGS
="$CPPFLAGS $INCICONV"
21999 LIBS
="$LIBS $LIBICONV"
22000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22001 /* end confdefs.h. */
22002 #include <stdlib.h>
22007 iconv_t cd = iconv_open("","");
22008 iconv(cd,NULL,NULL,NULL,NULL);
22014 if ac_fn_c_try_link
"$LINENO"; then :
22015 am_cv_lib_iconv
=yes
22016 am_cv_func_iconv
=yes
22018 rm -f core conftest.err conftest.
$ac_objext \
22019 conftest
$ac_exeext conftest.
$ac_ext
22020 CPPFLAGS
="$am_save_CPPFLAGS"
22021 LIBS
="$am_save_LIBS"
22025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
22026 $as_echo "$am_cv_func_iconv" >&6; }
22027 if test "$am_cv_func_iconv" = yes; then
22029 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
22032 if test "$am_cv_lib_iconv" = yes; then
22034 for element
in $INCICONV; do
22036 for x
in $CPPFLAGS; do
22038 acl_save_prefix
="$prefix"
22039 prefix
="$acl_final_prefix"
22040 acl_save_exec_prefix
="$exec_prefix"
22041 exec_prefix
="$acl_final_exec_prefix"
22043 exec_prefix
="$acl_save_exec_prefix"
22044 prefix
="$acl_save_prefix"
22046 if test "X$x" = "X$element"; then
22051 if test -z "$haveit"; then
22052 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
22056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
22057 $as_echo_n "checking how to link with libiconv... " >&6; }
22058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
22059 $as_echo "$LIBICONV" >&6; }
22067 if test "$am_cv_func_iconv" = yes; then
22068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
22069 $as_echo_n "checking for iconv declaration... " >&6; }
22070 if ${am_cv_proto_iconv+:} false
; then :
22071 $as_echo_n "(cached) " >&6
22074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22075 /* end confdefs.h. */
22077 #include <stdlib.h>
22083 #if defined(__STDC__) || defined(__cplusplus)
22084 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22097 if ac_fn_c_try_compile
"$LINENO"; then :
22098 am_cv_proto_iconv_arg1
=""
22100 am_cv_proto_iconv_arg1
="const"
22102 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22103 am_cv_proto_iconv
="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
22106 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
22108 }$am_cv_proto_iconv" >&5
22110 }$am_cv_proto_iconv" >&6; }
22112 cat >>confdefs.h
<<_ACEOF
22113 #define ICONV_CONST $am_cv_proto_iconv_arg1
22119 # GDB may fork/exec the iconv program to get the list of supported character
22120 # sets. Allow the user to specify where to find it.
22121 # There are several factors affecting the choice of option name:
22122 # - There is already --with-libiconv-prefix but we can't use it, it specifies
22123 # the build-time location of libiconv files.
22124 # - The program we need to find is iconv, which comes with glibc. The user
22125 # doesn't necessarily have libiconv installed. Therefore naming this
22126 # --with-libiconv-foo feels wrong.
22127 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
22128 # defined to work on directories not files (though it really doesn't know
22130 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
22131 # with --with-libiconv-prefix.
22132 # Putting these together is why the option name is --with-iconv-bin.
22135 # Check whether --with-iconv-bin was given.
22136 if test "${with_iconv_bin+set}" = set; then :
22137 withval
=$with_iconv_bin; iconv_bin
="${withval}"
22139 cat >>confdefs.h
<<_ACEOF
22140 #define ICONV_BIN "${iconv_bin}"
22144 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
22145 if test "x$prefix" = xNONE
; then
22146 test_prefix
=/usr
/local
22148 test_prefix
=$prefix
22151 test_prefix
=$exec_prefix
22154 case ${iconv_bin} in
22155 "${test_prefix}"|
"${test_prefix}/"*|\
22156 '${exec_prefix}'|
'${exec_prefix}/'*)
22161 cat >>confdefs.h
<<_ACEOF
22162 #define ICONV_BIN_RELOCATABLE $value
22170 # For the TUI, we need enhanced curses functionality.
22171 if test x
"$enable_tui" != xno
; then
22176 if test x
"$prefer_curses" = xyes
; then
22177 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
22178 # curses library because the latter might not provide all the
22179 # functionality we need. However, this leads to problems on systems
22180 # where the linker searches /usr/local/lib, but the compiler doesn't
22181 # search /usr/local/include, if ncurses is installed in /usr/local. A
22182 # default installation of ncurses on alpha*-dec-osf* will lead to such
22184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
22185 $as_echo_n "checking for library containing waddstr... " >&6; }
22186 if ${ac_cv_search_waddstr+:} false
; then :
22187 $as_echo_n "(cached) " >&6
22189 ac_func_search_save_LIBS
=$LIBS
22190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22191 /* end confdefs.h. */
22193 /* Override any GCC internal prototype to avoid an error.
22194 Use char because int might match the return type of a GCC
22195 builtin and then its argument prototype would still apply. */
22208 for ac_lib
in '' ncursesw ncurses cursesX curses
; do
22209 if test -z "$ac_lib"; then
22210 ac_res
="none required"
22213 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
22215 if ac_fn_c_try_link
"$LINENO"; then :
22216 ac_cv_search_waddstr
=$ac_res
22218 rm -f core conftest.err conftest.
$ac_objext \
22220 if ${ac_cv_search_waddstr+:} false
; then :
22224 if ${ac_cv_search_waddstr+:} false
; then :
22227 ac_cv_search_waddstr
=no
22229 rm conftest.
$ac_ext
22230 LIBS
=$ac_func_search_save_LIBS
22232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
22233 $as_echo "$ac_cv_search_waddstr" >&6; }
22234 ac_res
=$ac_cv_search_waddstr
22235 if test "$ac_res" != no
; then :
22236 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
22239 $as_echo "#define HAVE_LIBCURSES 1" >>confdefs.h
22246 # Check whether we should enable the TUI, but only do so if we really
22248 if test x
"$enable_tui" != xno
; then
22249 if test "$curses_found" != no
; then
22250 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
22251 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
22252 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
22253 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
22255 if test x
"$enable_tui" = xyes
; then
22256 as_fn_error $?
"no enhanced curses library found; disable TUI" "$LINENO" 5
22258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
22259 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
22264 # Since GDB uses Readline, we need termcap functionality. In many
22265 # cases this will be provided by the curses library, but some systems
22266 # have a separate termcap library, or no curses library at all.
22270 if test -d "$srcdir/libtermcap"; then
22271 LIBS
="../libtermcap/libtermcap.a $LIBS"
22272 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
22275 ac_cv_search_tgetent
="none required"
22279 # These are the libraries checked by Readline.
22280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
22281 $as_echo_n "checking for library containing tgetent... " >&6; }
22282 if ${ac_cv_search_tgetent+:} false
; then :
22283 $as_echo_n "(cached) " >&6
22285 ac_func_search_save_LIBS
=$LIBS
22286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22287 /* end confdefs.h. */
22289 /* Override any GCC internal prototype to avoid an error.
22290 Use char because int might match the return type of a GCC
22291 builtin and then its argument prototype would still apply. */
22304 for ac_lib
in '' termcap tinfow tinfo curses ncursesw ncurses
; do
22305 if test -z "$ac_lib"; then
22306 ac_res
="none required"
22309 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
22311 if ac_fn_c_try_link
"$LINENO"; then :
22312 ac_cv_search_tgetent
=$ac_res
22314 rm -f core conftest.err conftest.
$ac_objext \
22316 if ${ac_cv_search_tgetent+:} false
; then :
22320 if ${ac_cv_search_tgetent+:} false
; then :
22323 ac_cv_search_tgetent
=no
22325 rm conftest.
$ac_ext
22326 LIBS
=$ac_func_search_save_LIBS
22328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
22329 $as_echo "$ac_cv_search_tgetent" >&6; }
22330 ac_res
=$ac_cv_search_tgetent
22331 if test "$ac_res" != no
; then :
22332 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
22337 if test "$ac_cv_search_tgetent" = no
; then
22338 CONFIG_OBS
="$CONFIG_OBS stub-termcap.o"
22342 # Check whether --with-system-readline was given.
22343 if test "${with_system_readline+set}" = set; then :
22344 withval
=$with_system_readline;
22348 if test "$with_system_readline" = yes; then
22349 for ac_header
in readline
/readline.h
22351 ac_fn_c_check_header_mongrel
"$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
22352 if test "x$ac_cv_header_readline_readline_h" = xyes
; then :
22353 cat >>confdefs.h
<<_ACEOF
22354 #define HAVE_READLINE_READLINE_H 1
22363 if test "$readline_h" = "no"; then
22364 as_fn_error $?
"readline development packages are probably missing" "$LINENO" 5
22366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system readline is new enough" >&5
22367 $as_echo_n "checking whether system readline is new enough... " >&6; }
22368 if ${gdb_cv_readline_ok+:} false
; then :
22369 $as_echo_n "(cached) " >&6
22371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22372 /* end confdefs.h. */
22374 #include <readline/readline.h>
22378 #if RL_VERSION_MAJOR < 7
22379 # error "readline version 7 required"
22386 if ac_fn_c_try_compile
"$LINENO"; then :
22387 gdb_cv_readline_ok
=yes
22389 gdb_cv_readline_ok
=no
22392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_readline_ok" >&5
22396 $as_echo "$gdb_cv_readline_ok" >&6; }
22397 if test "$gdb_cv_readline_ok" != yes; then
22398 as_fn_error $?
"system readline is not new enough" "$LINENO" 5
22401 READLINE
=-lreadline
22404 READLINE_TEXI_INCFLAG
=
22405 READLINE_DOC_SOURCE_INCLUDES
='$(READLINE_SYSTEM_DOC_INCLUDES)'
22407 READLINE
='$(READLINE_DIR)/libreadline.a'
22408 READLINE_DEPS
='$(READLINE)'
22409 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
22410 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
22411 READLINE_DOC_SOURCE_INCLUDES
='$(READLINE_INTREE_DOC_INCLUDES)'
22419 # Generate jit-reader.h
22421 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
22424 # The cast to long int works around a bug in the HP C Compiler
22425 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22426 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22427 # This bug is HP SR number 8606223364.
22428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
22429 $as_echo_n "checking size of unsigned long long... " >&6; }
22430 if ${ac_cv_sizeof_unsigned_long_long+:} false
; then :
22431 $as_echo_n "(cached) " >&6
22433 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
22436 if test "$ac_cv_type_unsigned_long_long" = yes; then
22437 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22439 as_fn_error
77 "cannot compute sizeof (unsigned long long)
22440 See \`config.log' for more details" "$LINENO" 5; }
22442 ac_cv_sizeof_unsigned_long_long
=0
22447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
22448 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
22452 cat >>confdefs.h
<<_ACEOF
22453 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
22457 # The cast to long int works around a bug in the HP C Compiler
22458 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22459 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22460 # This bug is HP SR number 8606223364.
22461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
22462 $as_echo_n "checking size of unsigned long... " >&6; }
22463 if ${ac_cv_sizeof_unsigned_long+:} false
; then :
22464 $as_echo_n "(cached) " >&6
22466 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
22469 if test "$ac_cv_type_unsigned_long" = yes; then
22470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22472 as_fn_error
77 "cannot compute sizeof (unsigned long)
22473 See \`config.log' for more details" "$LINENO" 5; }
22475 ac_cv_sizeof_unsigned_long
=0
22480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
22481 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
22485 cat >>confdefs.h
<<_ACEOF
22486 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
22490 # The cast to long int works around a bug in the HP C Compiler
22491 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22492 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22493 # This bug is HP SR number 8606223364.
22494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
22495 $as_echo_n "checking size of unsigned __int128... " >&6; }
22496 if ${ac_cv_sizeof_unsigned___int128+:} false
; then :
22497 $as_echo_n "(cached) " >&6
22499 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
22502 if test "$ac_cv_type_unsigned___int128" = yes; then
22503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22505 as_fn_error
77 "cannot compute sizeof (unsigned __int128)
22506 See \`config.log' for more details" "$LINENO" 5; }
22508 ac_cv_sizeof_unsigned___int128
=0
22513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
22514 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
22518 cat >>confdefs.h
<<_ACEOF
22519 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
22524 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
22525 TARGET_PTR
="unsigned long"
22526 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
22527 TARGET_PTR
="unsigned long long"
22528 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
22529 TARGET_PTR
="unsigned __int128"
22531 TARGET_PTR
="unsigned long"
22535 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
22538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
22539 $as_echo_n "checking for library containing dlopen... " >&6; }
22540 if ${ac_cv_search_dlopen+:} false
; then :
22541 $as_echo_n "(cached) " >&6
22543 ac_func_search_save_LIBS
=$LIBS
22544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22545 /* end confdefs.h. */
22547 /* Override any GCC internal prototype to avoid an error.
22548 Use char because int might match the return type of a GCC
22549 builtin and then its argument prototype would still apply. */
22562 for ac_lib
in '' dl
; do
22563 if test -z "$ac_lib"; then
22564 ac_res
="none required"
22567 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
22569 if ac_fn_c_try_link
"$LINENO"; then :
22570 ac_cv_search_dlopen
=$ac_res
22572 rm -f core conftest.err conftest.
$ac_objext \
22574 if ${ac_cv_search_dlopen+:} false
; then :
22578 if ${ac_cv_search_dlopen+:} false
; then :
22581 ac_cv_search_dlopen
=no
22583 rm conftest.
$ac_ext
22584 LIBS
=$ac_func_search_save_LIBS
22586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
22587 $as_echo "$ac_cv_search_dlopen" >&6; }
22588 ac_res
=$ac_cv_search_dlopen
22589 if test "$ac_res" != no
; then :
22590 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
22597 # Check whether --with-jit-reader-dir was given.
22598 if test "${with_jit_reader_dir+set}" = set; then :
22599 withval
=$with_jit_reader_dir;
22600 JIT_READER_DIR
=$withval
22602 JIT_READER_DIR
=${libdir}/gdb
22606 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
22607 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
22608 ac_define_dir
=`eval echo $JIT_READER_DIR`
22609 ac_define_dir
=`eval echo $ac_define_dir`
22611 cat >>confdefs.h
<<_ACEOF
22612 #define JIT_READER_DIR "$ac_define_dir"
22618 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
22619 if test "x$prefix" = xNONE
; then
22620 test_prefix
=/usr
/local
22622 test_prefix
=$prefix
22625 test_prefix
=$exec_prefix
22628 case ${ac_define_dir} in
22629 "${test_prefix}"|
"${test_prefix}/"*|\
22630 '${exec_prefix}'|
'${exec_prefix}/'*)
22635 cat >>confdefs.h
<<_ACEOF
22636 #define JIT_READER_DIR_RELOCATABLE $value
22643 # Check whether --with-expat was given.
22644 if test "${with_expat+set}" = set; then :
22645 withval
=$with_expat;
22650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
22651 $as_echo_n "checking whether to use expat... " >&6; }
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
22653 $as_echo "$with_expat" >&6; }
22655 if test "${with_expat}" = no
; then
22656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
22657 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
22670 acl_save_prefix
="$prefix"
22671 prefix
="$acl_final_prefix"
22672 acl_save_exec_prefix
="$exec_prefix"
22673 exec_prefix
="$acl_final_exec_prefix"
22675 eval additional_includedir
=\"$includedir\"
22676 eval additional_libdir
=\"$libdir\"
22678 exec_prefix
="$acl_save_exec_prefix"
22679 prefix
="$acl_save_prefix"
22682 # Check whether --with-libexpat-prefix was given.
22683 if test "${with_libexpat_prefix+set}" = set; then :
22684 withval
=$with_libexpat_prefix;
22685 if test "X$withval" = "Xno"; then
22688 if test "X$withval" = "X"; then
22690 acl_save_prefix
="$prefix"
22691 prefix
="$acl_final_prefix"
22692 acl_save_exec_prefix
="$exec_prefix"
22693 exec_prefix
="$acl_final_exec_prefix"
22695 eval additional_includedir
=\"$includedir\"
22696 eval additional_libdir
=\"$libdir\"
22698 exec_prefix
="$acl_save_exec_prefix"
22699 prefix
="$acl_save_prefix"
22702 additional_includedir
="$withval/include"
22703 additional_libdir
="$withval/lib"
22710 # Check whether --with-libexpat-type was given.
22711 if test "${with_libexpat_type+set}" = set; then :
22712 withval
=$with_libexpat_type; with_libexpat_type
=$withval
22714 with_libexpat_type
=auto
22717 lib_type
=`eval echo \$with_libexpat_type`
22724 names_already_handled
=
22725 names_next_round
='expat '
22726 while test -n "$names_next_round"; do
22727 names_this_round
="$names_next_round"
22729 for name
in $names_this_round; do
22731 for n
in $names_already_handled; do
22732 if test "$n" = "$name"; then
22733 already_handled
=yes
22737 if test -z "$already_handled"; then
22738 names_already_handled
="$names_already_handled $name"
22739 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
22740 eval value
=\"\
$HAVE_LIB$uppername\"
22741 if test -n "$value"; then
22742 if test "$value" = yes; then
22743 eval value
=\"\
$LIB$uppername\"
22744 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
22745 eval value
=\"\
$LTLIB$uppername\"
22746 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
22755 if test $use_additional = yes; then
22756 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
22757 found_dir
="$additional_libdir"
22758 found_so
="$additional_libdir/lib$name.$shlibext"
22759 if test -f "$additional_libdir/lib$name.la"; then
22760 found_la
="$additional_libdir/lib$name.la"
22762 elif test x
$lib_type != xshared
; then
22763 if test -f "$additional_libdir/lib$name.$libext"; then
22764 found_dir
="$additional_libdir"
22765 found_a
="$additional_libdir/lib$name.$libext"
22766 if test -f "$additional_libdir/lib$name.la"; then
22767 found_la
="$additional_libdir/lib$name.la"
22772 if test "X$found_dir" = "X"; then
22773 for x
in $LDFLAGS $LTLIBEXPAT; do
22775 acl_save_prefix
="$prefix"
22776 prefix
="$acl_final_prefix"
22777 acl_save_exec_prefix
="$exec_prefix"
22778 exec_prefix
="$acl_final_exec_prefix"
22780 exec_prefix
="$acl_save_exec_prefix"
22781 prefix
="$acl_save_prefix"
22785 dir
=`echo "X$x" | sed -e 's/^X-L//'`
22786 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
22788 found_so
="$dir/lib$name.$shlibext"
22789 if test -f "$dir/lib$name.la"; then
22790 found_la
="$dir/lib$name.la"
22792 elif test x
$lib_type != xshared
; then
22793 if test -f "$dir/lib$name.$libext"; then
22795 found_a
="$dir/lib$name.$libext"
22796 if test -f "$dir/lib$name.la"; then
22797 found_la
="$dir/lib$name.la"
22803 if test "X$found_dir" != "X"; then
22808 if test "X$found_dir" != "X"; then
22809 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
22810 if test "X$found_so" != "X"; then
22811 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
22812 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
22815 for x
in $ltrpathdirs; do
22816 if test "X$x" = "X$found_dir"; then
22821 if test -z "$haveit"; then
22822 ltrpathdirs
="$ltrpathdirs $found_dir"
22824 if test "$hardcode_direct" = yes; then
22825 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
22827 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
22828 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
22830 for x
in $rpathdirs; do
22831 if test "X$x" = "X$found_dir"; then
22836 if test -z "$haveit"; then
22837 rpathdirs
="$rpathdirs $found_dir"
22841 for x
in $LDFLAGS $LIBEXPAT; do
22843 acl_save_prefix
="$prefix"
22844 prefix
="$acl_final_prefix"
22845 acl_save_exec_prefix
="$exec_prefix"
22846 exec_prefix
="$acl_final_exec_prefix"
22848 exec_prefix
="$acl_save_exec_prefix"
22849 prefix
="$acl_save_prefix"
22851 if test "X$x" = "X-L$found_dir"; then
22856 if test -z "$haveit"; then
22857 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
22859 if test "$hardcode_minus_L" != no
; then
22860 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
22862 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
22868 if test "X$found_a" != "X"; then
22869 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
22871 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
22874 additional_includedir
=
22875 case "$found_dir" in
22877 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
22878 additional_includedir
="$basedir/include"
22881 if test "X$additional_includedir" != "X"; then
22882 if test "X$additional_includedir" != "X/usr/include"; then
22884 if test "X$additional_includedir" = "X/usr/local/include"; then
22885 if test -n "$GCC"; then
22887 linux
*) haveit
=yes;;
22891 if test -z "$haveit"; then
22892 for x
in $CPPFLAGS $INCEXPAT; do
22894 acl_save_prefix
="$prefix"
22895 prefix
="$acl_final_prefix"
22896 acl_save_exec_prefix
="$exec_prefix"
22897 exec_prefix
="$acl_final_exec_prefix"
22899 exec_prefix
="$acl_save_exec_prefix"
22900 prefix
="$acl_save_prefix"
22902 if test "X$x" = "X-I$additional_includedir"; then
22907 if test -z "$haveit"; then
22908 if test -d "$additional_includedir"; then
22909 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
22915 if test -n "$found_la"; then
22916 save_libdir
="$libdir"
22917 case "$found_la" in
22918 */* |
*\\*) .
"$found_la" ;;
22919 *) .
"./$found_la" ;;
22921 libdir
="$save_libdir"
22922 for dep
in $dependency_libs; do
22925 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
22926 if test "X$additional_libdir" != "X/usr/lib"; then
22928 if test "X$additional_libdir" = "X/usr/local/lib"; then
22929 if test -n "$GCC"; then
22931 linux
*) haveit
=yes;;
22935 if test -z "$haveit"; then
22937 for x
in $LDFLAGS $LIBEXPAT; do
22939 acl_save_prefix
="$prefix"
22940 prefix
="$acl_final_prefix"
22941 acl_save_exec_prefix
="$exec_prefix"
22942 exec_prefix
="$acl_final_exec_prefix"
22944 exec_prefix
="$acl_save_exec_prefix"
22945 prefix
="$acl_save_prefix"
22947 if test "X$x" = "X-L$additional_libdir"; then
22952 if test -z "$haveit"; then
22953 if test -d "$additional_libdir"; then
22954 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
22958 for x
in $LDFLAGS $LTLIBEXPAT; do
22960 acl_save_prefix
="$prefix"
22961 prefix
="$acl_final_prefix"
22962 acl_save_exec_prefix
="$exec_prefix"
22963 exec_prefix
="$acl_final_exec_prefix"
22965 exec_prefix
="$acl_save_exec_prefix"
22966 prefix
="$acl_save_prefix"
22968 if test "X$x" = "X-L$additional_libdir"; then
22973 if test -z "$haveit"; then
22974 if test -d "$additional_libdir"; then
22975 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
22982 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
22983 if test "$enable_rpath" != no
; then
22985 for x
in $rpathdirs; do
22986 if test "X$x" = "X$dir"; then
22991 if test -z "$haveit"; then
22992 rpathdirs
="$rpathdirs $dir"
22995 for x
in $ltrpathdirs; do
22996 if test "X$x" = "X$dir"; then
23001 if test -z "$haveit"; then
23002 ltrpathdirs
="$ltrpathdirs $dir"
23007 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23010 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23013 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
23014 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
23020 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
23021 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
23022 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
23024 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l:lib$name.$libext"
23025 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l:lib$name.$libext"
23032 if test "X$rpathdirs" != "X"; then
23033 if test -n "$hardcode_libdir_separator"; then
23035 for found_dir
in $rpathdirs; do
23036 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23038 acl_save_libdir
="$libdir"
23040 eval flag
=\"$hardcode_libdir_flag_spec\"
23041 libdir
="$acl_save_libdir"
23042 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
23044 for found_dir
in $rpathdirs; do
23045 acl_save_libdir
="$libdir"
23046 libdir
="$found_dir"
23047 eval flag
=\"$hardcode_libdir_flag_spec\"
23048 libdir
="$acl_save_libdir"
23049 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
23053 if test "X$ltrpathdirs" != "X"; then
23054 for found_dir
in $ltrpathdirs; do
23055 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
23060 ac_save_CPPFLAGS
="$CPPFLAGS"
23062 for element
in $INCEXPAT; do
23064 for x
in $CPPFLAGS; do
23066 acl_save_prefix
="$prefix"
23067 prefix
="$acl_final_prefix"
23068 acl_save_exec_prefix
="$exec_prefix"
23069 exec_prefix
="$acl_final_exec_prefix"
23071 exec_prefix
="$acl_save_exec_prefix"
23072 prefix
="$acl_save_prefix"
23074 if test "X$x" = "X$element"; then
23079 if test -z "$haveit"; then
23080 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
23085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
23086 $as_echo_n "checking for libexpat... " >&6; }
23087 if ${ac_cv_libexpat+:} false
; then :
23088 $as_echo_n "(cached) " >&6
23091 ac_save_LIBS
="$LIBS"
23092 LIBS
="$LIBS $LIBEXPAT"
23093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23094 /* end confdefs.h. */
23099 XML_Parser p = XML_ParserCreate (0);
23104 if ac_fn_c_try_link
"$LINENO"; then :
23109 rm -f core conftest.err conftest.
$ac_objext \
23110 conftest
$ac_exeext conftest.
$ac_ext
23111 LIBS
="$ac_save_LIBS"
23114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
23115 $as_echo "$ac_cv_libexpat" >&6; }
23116 if test "$ac_cv_libexpat" = yes; then
23119 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
23121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
23122 $as_echo_n "checking how to link with libexpat... " >&6; }
23123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
23124 $as_echo "$LIBEXPAT" >&6; }
23127 CPPFLAGS
="$ac_save_CPPFLAGS"
23137 if test "$HAVE_LIBEXPAT" != yes; then
23138 if test "$with_expat" = yes; then
23139 as_fn_error $?
"expat is missing or unusable" "$LINENO" 5
23141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
23142 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
23146 LIBS
="$LIBS $LIBEXPAT"
23147 for ac_func
in XML_StopParser
23149 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
23150 if test "x$ac_cv_func_XML_StopParser" = xyes
; then :
23151 cat >>confdefs.h
<<_ACEOF
23152 #define HAVE_XML_STOPPARSER 1
23165 # --------------------- #
23166 # Check for libpython. #
23167 # --------------------- #
23174 # Check whether --with-python was given.
23175 if test "${with_python+set}" = set; then :
23176 withval
=$with_python;
23181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
23182 $as_echo_n "checking whether to use python... " >&6; }
23183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
23184 $as_echo "$with_python" >&6; }
23186 if test "${with_python}" = no
; then
23187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
23188 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
23191 case "${with_python}" in
23193 if test -d "${with_python}"; then
23194 # Assume the python binary is ${with_python}/bin/python.
23195 python_prog
="${with_python}/bin/python"
23197 # If python does not exit ${with_python}/bin, then try in
23198 # ${with_python}. On Windows/MinGW, this is where the Python
23200 if test ! -x "${python_prog}"; then
23201 python_prog
="${with_python}/python"
23204 if test ! -x "${python_prog}"; then
23205 # Fall back to gdb 7.0/7.1 behaviour.
23206 python_prog
=missing
23207 python_prefix
=${with_python}
23209 elif test -x "${with_python}"; then
23210 # While we can't run python compiled for $host (unless host == build),
23211 # the user could write a script that provides the needed information,
23212 # so we support that.
23213 python_prog
=${with_python}
23216 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
23220 # Disallow --with-python=foo/bar.
23221 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
23224 # The user has either specified auto, yes, or the name of the python
23225 # program assumed to be in $PATH.
23227 case "${with_python}" in
23229 if test "${build}" = "${host}"; then
23230 # Look first for 'python', then 'python3'.
23231 for ac_prog
in python python3
23233 # Extract the first word of "$ac_prog", so it can be a program name with args.
23234 set dummy
$ac_prog; ac_word
=$2
23235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23236 $as_echo_n "checking for $ac_word... " >&6; }
23237 if ${ac_cv_path_python_prog_path+:} false
; then :
23238 $as_echo_n "(cached) " >&6
23240 case $python_prog_path in
23242 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
23245 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23246 for as_dir
in $PATH
23249 test -z "$as_dir" && as_dir
=.
23250 for ac_exec_ext
in '' $ac_executable_extensions; do
23251 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23252 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
23253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23263 python_prog_path
=$ac_cv_path_python_prog_path
23264 if test -n "$python_prog_path"; then
23265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
23266 $as_echo "$python_prog_path" >&6; }
23268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23269 $as_echo "no" >&6; }
23273 test -n "$python_prog_path" && break
23275 test -n "$python_prog_path" || python_prog_path
="missing"
23277 if test "${python_prog_path}" = missing
; then
23278 python_prog
=missing
23280 python_prog
=${python_prog_path}
23283 # Not much we can do except assume the cross-compiler will find the
23285 python_prog
=missing
23289 # While we can't run python compiled for $host (unless host == build),
23290 # the user could write a script that provides the needed information,
23291 # so we support that.
23292 python_prog
="${with_python}"
23293 # Extract the first word of "${python_prog}", so it can be a program name with args.
23294 set dummy
${python_prog}; ac_word
=$2
23295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23296 $as_echo_n "checking for $ac_word... " >&6; }
23297 if ${ac_cv_path_python_prog_path+:} false
; then :
23298 $as_echo_n "(cached) " >&6
23300 case $python_prog_path in
23302 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
23305 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23306 for as_dir
in $PATH
23309 test -z "$as_dir" && as_dir
=.
23310 for ac_exec_ext
in '' $ac_executable_extensions; do
23311 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23312 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
23313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23320 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
23324 python_prog_path
=$ac_cv_path_python_prog_path
23325 if test -n "$python_prog_path"; then
23326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
23327 $as_echo "$python_prog_path" >&6; }
23329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23330 $as_echo "no" >&6; }
23334 if test "${python_prog_path}" = missing
; then
23335 as_fn_error $?
"unable to find python program ${python_prog}" "$LINENO" 5
23341 if test "${python_prog}" != missing
; then
23342 # We have a python program to use, but it may be too old.
23343 # Don't flag an error for --with-python=auto (the default).
23344 have_python_config
=yes
23345 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
23346 if test $?
!= 0; then
23347 have_python_config
=failed
23348 if test "${with_python}" != auto
; then
23349 as_fn_error $?
"failure running python-config --includes" "$LINENO" 5
23352 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
23353 if test $?
!= 0; then
23354 have_python_config
=failed
23355 if test "${with_python}" != auto
; then
23356 as_fn_error $?
"failure running python-config --ldflags" "$LINENO" 5
23359 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
23360 if test $?
!= 0; then
23361 have_python_config
=failed
23362 if test "${with_python}" != auto
; then
23363 as_fn_error $?
"failure running python-config --exec-prefix" "$LINENO" 5
23367 # We do not have a python executable we can use to determine where
23368 # to find the Python headers and libs. We cannot guess the include
23369 # path from the python_prefix either, because that include path
23370 # depends on the Python version. So, there is nothing much we can
23371 # do except assume that the compiler will be able to find those files.
23374 have_python_config
=no
23377 # If we have python-config, only try the configuration it provides.
23378 # Otherwise fallback on the old way of trying different versions of
23382 if test "${have_python_config}" = yes; then
23385 new_CPPFLAGS
=${python_includes}
23386 new_LIBS
=${python_libs}
23387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
23388 $as_echo_n "checking for python... " >&6; }
23389 save_CPPFLAGS
=$CPPFLAGS
23391 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
23392 LIBS
="$new_LIBS $LIBS"
23393 found_usable_python
=no
23394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23395 /* end confdefs.h. */
23396 #include "Python.h"
23401 #if PY_MAJOR_VERSION != 3
23402 # error "We only support Python 3"
23410 if ac_fn_c_try_link
"$LINENO"; then :
23412 found_usable_python
=yes
23413 PYTHON_CPPFLAGS
=$new_CPPFLAGS
23414 PYTHON_LIBS
=$new_LIBS
23416 rm -f core conftest.err conftest.
$ac_objext \
23417 conftest
$ac_exeext conftest.
$ac_ext
23418 CPPFLAGS
=$save_CPPFLAGS
23420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
23421 $as_echo "${found_usable_python}" >&6; }
23425 if test "${have_libpython}" = no
; then
23426 case "${with_python}" in
23428 as_fn_error $?
"python is missing or unusable" "$LINENO" 5
23431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
23432 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
23435 as_fn_error $?
"no usable python found at ${with_python}" "$LINENO" 5
23439 if test -n "${python_prefix}"; then
23441 cat >>confdefs.h
<<_ACEOF
23442 #define WITH_PYTHON_PATH "${python_prefix}"
23446 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
23447 if test "x$prefix" = xNONE
; then
23448 test_prefix
=/usr
/local
23450 test_prefix
=$prefix
23453 test_prefix
=$exec_prefix
23456 case ${python_prefix} in
23457 "${test_prefix}"|
"${test_prefix}/"*|\
23458 '${exec_prefix}'|
'${exec_prefix}/'*)
23463 cat >>confdefs.h
<<_ACEOF
23464 #define PYTHON_PATH_RELOCATABLE $value
23473 # Check whether --with-python-libdir was given.
23474 if test "${with_python_libdir+set}" = set; then :
23475 withval
=$with_python_libdir;
23478 # If no python libdir is specified then select one based on
23479 # python's prefix path.
23480 if test -n "${python_prefix}"; then
23481 with_python_libdir
=${python_prefix}/lib
23487 if test "${have_libpython}" != no
; then
23489 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
23491 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
23492 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
23493 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
23494 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
23495 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
23497 if test -n "${with_python_libdir}"; then
23499 cat >>confdefs.h
<<_ACEOF
23500 #define WITH_PYTHON_LIBDIR "${with_python_libdir}"
23504 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
23505 if test "x$prefix" = xNONE
; then
23506 test_prefix
=/usr
/local
23508 test_prefix
=$prefix
23511 test_prefix
=$exec_prefix
23514 case ${with_python_libdir} in
23515 "${test_prefix}"|
"${test_prefix}/"*|\
23516 '${exec_prefix}'|
'${exec_prefix}/'*)
23521 cat >>confdefs.h
<<_ACEOF
23522 #define PYTHON_LIBDIR_RELOCATABLE $value
23528 # Flags needed to compile Python code (taken from python-config --cflags).
23529 # We cannot call python-config directly because it will output whatever was
23530 # used when compiling the Python interpreter itself, including flags which
23531 # would make the python-related objects be compiled differently from the
23532 # rest of GDB (e.g., -O2 and -fPIC).
23533 if test "${GCC}" = yes; then
23534 tentative_python_cflags
="-fno-strict-aliasing -fwrapv"
23535 # Python headers recommend -DNDEBUG, but it's unclear if that just
23536 # refers to building Python itself. In release mode, though, it
23537 # doesn't hurt for the Python code in gdb to follow.
23538 $development || tentative_python_cflags
="$tentative_python_cflags -DNDEBUG"
23541 if test "x${tentative_python_cflags}" != x
; then
23542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
23543 $as_echo_n "checking compiler flags for python code... " >&6; }
23544 for flag
in ${tentative_python_cflags}; do
23545 # Check that the compiler accepts it
23546 saved_CFLAGS
="$CFLAGS"
23547 CFLAGS
="$CFLAGS $flag"
23548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23549 /* end confdefs.h. */
23559 if ac_fn_c_try_compile
"$LINENO"; then :
23560 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
23562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23563 CFLAGS
="$saved_CFLAGS"
23565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
23566 $as_echo "${PYTHON_CFLAGS}" >&6; }
23569 # On x64 Windows, Python's include headers, and pyconfig.h in
23570 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
23571 # version of Windows. Unfortunately, MS_WIN64 is only defined if
23572 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
23573 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
23574 # The issue was reported to the Python community, but still isn't
23575 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
23577 case "$gdb_host" in
23579 if test "${GCC}" = yes; then
23580 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
23585 # Even if Python support is not compiled in, we need to have this file
23586 # included so that the "python" command, et.al., still exists.
23587 CONFIG_OBS
="$CONFIG_OBS python/python.o"
23588 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
23591 # Work around Python http://bugs.python.org/issue10112. See also
23592 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
23593 # no effect. Note that the only test after this that uses Python is
23594 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
23595 # run without -export-dynamic too.
23596 PYTHON_LIBS
=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
23601 if test "${have_libpython}" != no
; then
23603 HAVE_PYTHON_FALSE
='#'
23605 HAVE_PYTHON_TRUE
='#'
23610 # -------------------- #
23611 # Check for libguile. #
23612 # -------------------- #
23619 # Check whether --with-guile was given.
23620 if test "${with_guile+set}" = set; then :
23621 withval
=$with_guile;
23626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
23627 $as_echo_n "checking whether to use guile... " >&6; }
23628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
23629 $as_echo "$with_guile" >&6; }
23631 # Extract the first word of "pkg-config", so it can be a program name with args.
23632 set dummy pkg-config
; ac_word
=$2
23633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23634 $as_echo_n "checking for $ac_word... " >&6; }
23635 if ${ac_cv_path_pkg_config_prog_path+:} false
; then :
23636 $as_echo_n "(cached) " >&6
23638 case $pkg_config_prog_path in
23640 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
23643 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23644 for as_dir
in $PATH
23647 test -z "$as_dir" && as_dir
=.
23648 for ac_exec_ext
in '' $ac_executable_extensions; do
23649 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23650 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
23651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23658 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
23662 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
23663 if test -n "$pkg_config_prog_path"; then
23664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
23665 $as_echo "$pkg_config_prog_path" >&6; }
23667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23668 $as_echo "no" >&6; }
23673 try_guile_versions
="guile-3.0 guile-2.2 guile-2.0"
23675 case "${with_guile}" in
23677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
23678 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
23681 if test "${pkg_config_prog_path}" = "missing"; then
23682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
23683 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
23686 pkg_config
=${pkg_config_prog_path}
23687 guile_version_list
=${try_guile_versions}
23690 found_usable_guile
=checking
23691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
23692 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
23693 for guile_version
in ${guile_version_list}; do
23694 ${pkg_config} --exists ${guile_version} 2>/dev
/null
23695 if test $?
!= 0; then
23698 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
23699 if test $?
!= 0; then
23700 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
23702 new_LIBS
=`${pkg_config} --libs ${guile_version}`
23703 if test $?
!= 0; then
23704 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
23706 found_usable_guile
=${guile_version}
23709 if test "${found_usable_guile}" = "checking"; then
23710 if test "${flag_errors}" = "yes"; then
23711 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
23713 found_usable_guile
=no
23716 if test "${found_usable_guile}" != no
; then
23717 save_CPPFLAGS
=$CPPFLAGS
23719 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
23720 LIBS
="$LIBS $new_LIBS"
23721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23722 /* end confdefs.h. */
23723 #include "libguile.h"
23732 if ac_fn_c_try_link
"$LINENO"; then :
23734 GUILE_CPPFLAGS
=$new_CPPFLAGS
23735 GUILE_LIBS
=$new_LIBS
23737 found_usable_guile
=no
23739 rm -f core conftest.err conftest.
$ac_objext \
23740 conftest
$ac_exeext conftest.
$ac_ext
23741 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
23742 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
23744 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
23749 CPPFLAGS
=$save_CPPFLAGS
23751 if test "${found_usable_guile}" = no
; then
23752 if test "${flag_errors}" = yes; then
23753 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23755 as_fn_error $?
"linking guile version ${guile_version} test program failed
23756 See \`config.log' for more details" "$LINENO" 5; }
23760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
23761 $as_echo "${found_usable_guile}" >&6; }
23766 if test "${pkg_config_prog_path}" = "missing"; then
23767 as_fn_error $?
"pkg-config not found" "$LINENO" 5
23770 pkg_config
=${pkg_config_prog_path}
23771 guile_version_list
=${try_guile_versions}
23774 found_usable_guile
=checking
23775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
23776 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
23777 for guile_version
in ${guile_version_list}; do
23778 ${pkg_config} --exists ${guile_version} 2>/dev
/null
23779 if test $?
!= 0; then
23782 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
23783 if test $?
!= 0; then
23784 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
23786 new_LIBS
=`${pkg_config} --libs ${guile_version}`
23787 if test $?
!= 0; then
23788 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
23790 found_usable_guile
=${guile_version}
23793 if test "${found_usable_guile}" = "checking"; then
23794 if test "${flag_errors}" = "yes"; then
23795 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
23797 found_usable_guile
=no
23800 if test "${found_usable_guile}" != no
; then
23801 save_CPPFLAGS
=$CPPFLAGS
23803 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
23804 LIBS
="$LIBS $new_LIBS"
23805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23806 /* end confdefs.h. */
23807 #include "libguile.h"
23816 if ac_fn_c_try_link
"$LINENO"; then :
23818 GUILE_CPPFLAGS
=$new_CPPFLAGS
23819 GUILE_LIBS
=$new_LIBS
23821 found_usable_guile
=no
23823 rm -f core conftest.err conftest.
$ac_objext \
23824 conftest
$ac_exeext conftest.
$ac_ext
23825 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
23826 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
23828 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
23833 CPPFLAGS
=$save_CPPFLAGS
23835 if test "${found_usable_guile}" = no
; then
23836 if test "${flag_errors}" = yes; then
23837 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23839 as_fn_error $?
"linking guile version ${guile_version} test program failed
23840 See \`config.log' for more details" "$LINENO" 5; }
23844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
23845 $as_echo "${found_usable_guile}" >&6; }
23849 if test -x "${with_guile}"; then
23851 pkg_config
=${with_guile}
23852 guile_version_list
=${try_guile_versions}
23855 found_usable_guile
=checking
23856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
23857 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
23858 for guile_version
in ${guile_version_list}; do
23859 ${pkg_config} --exists ${guile_version} 2>/dev
/null
23860 if test $?
!= 0; then
23863 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
23864 if test $?
!= 0; then
23865 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
23867 new_LIBS
=`${pkg_config} --libs ${guile_version}`
23868 if test $?
!= 0; then
23869 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
23871 found_usable_guile
=${guile_version}
23874 if test "${found_usable_guile}" = "checking"; then
23875 if test "${flag_errors}" = "yes"; then
23876 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
23878 found_usable_guile
=no
23881 if test "${found_usable_guile}" != no
; then
23882 save_CPPFLAGS
=$CPPFLAGS
23884 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
23885 LIBS
="$LIBS $new_LIBS"
23886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23887 /* end confdefs.h. */
23888 #include "libguile.h"
23897 if ac_fn_c_try_link
"$LINENO"; then :
23899 GUILE_CPPFLAGS
=$new_CPPFLAGS
23900 GUILE_LIBS
=$new_LIBS
23902 found_usable_guile
=no
23904 rm -f core conftest.err conftest.
$ac_objext \
23905 conftest
$ac_exeext conftest.
$ac_ext
23906 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
23907 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
23909 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
23914 CPPFLAGS
=$save_CPPFLAGS
23916 if test "${found_usable_guile}" = no
; then
23917 if test "${flag_errors}" = yes; then
23918 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23920 as_fn_error $?
"linking guile version ${guile_version} test program failed
23921 See \`config.log' for more details" "$LINENO" 5; }
23925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
23926 $as_echo "${found_usable_guile}" >&6; }
23929 as_fn_error $?
"Guile config program not executable: ${with_guile}" "$LINENO" 5
23933 # Disallow --with=guile="" and --with-guile=foo/bar.
23934 as_fn_error $?
"invalid value for --with-guile" "$LINENO" 5
23937 # A space separate list of guile versions to try, in order.
23938 if test "${pkg_config_prog_path}" = "missing"; then
23939 as_fn_error $?
"pkg-config not found" "$LINENO" 5
23942 pkg_config
=${pkg_config_prog_path}
23943 guile_version_list
=${with_guile}
23946 found_usable_guile
=checking
23947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
23948 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
23949 for guile_version
in ${guile_version_list}; do
23950 ${pkg_config} --exists ${guile_version} 2>/dev
/null
23951 if test $?
!= 0; then
23954 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
23955 if test $?
!= 0; then
23956 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
23958 new_LIBS
=`${pkg_config} --libs ${guile_version}`
23959 if test $?
!= 0; then
23960 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
23962 found_usable_guile
=${guile_version}
23965 if test "${found_usable_guile}" = "checking"; then
23966 if test "${flag_errors}" = "yes"; then
23967 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
23969 found_usable_guile
=no
23972 if test "${found_usable_guile}" != no
; then
23973 save_CPPFLAGS
=$CPPFLAGS
23975 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
23976 LIBS
="$LIBS $new_LIBS"
23977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23978 /* end confdefs.h. */
23979 #include "libguile.h"
23988 if ac_fn_c_try_link
"$LINENO"; then :
23990 GUILE_CPPFLAGS
=$new_CPPFLAGS
23991 GUILE_LIBS
=$new_LIBS
23993 found_usable_guile
=no
23995 rm -f core conftest.err conftest.
$ac_objext \
23996 conftest
$ac_exeext conftest.
$ac_ext
23997 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
23998 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
24000 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
24005 CPPFLAGS
=$save_CPPFLAGS
24007 if test "${found_usable_guile}" = no
; then
24008 if test "${flag_errors}" = yes; then
24009 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24011 as_fn_error $?
"linking guile version ${guile_version} test program failed
24012 See \`config.log' for more details" "$LINENO" 5; }
24016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
24017 $as_echo "${found_usable_guile}" >&6; }
24022 if test "${have_libguile}" != no
; then
24023 case "${with_guile}" in
24026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
24027 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
24028 if ${ac_cv_guild_program_name+:} false
; then :
24029 $as_echo_n "(cached) " >&6
24031 ac_cv_guild_program_name
="`"${with_guile}" --variable guild "${guile_version}"`"
24033 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
24034 # the 'guild' and 'bindir' variables. In that case, try to guess
24035 # what the program name is, at the risk of getting it wrong if
24036 # Guile was configured with '--program-suffix' or similar.
24037 if test "x$ac_cv_guild_program_name" = "x"; then
24038 guile_exec_prefix
="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
24039 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
24043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
24044 $as_echo "$ac_cv_guild_program_name" >&6; }
24046 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
24047 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
24050 GUILD
="$ac_cv_guild_program_name"
24056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
24057 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
24058 if ${ac_cv_guild_program_name+:} false
; then :
24059 $as_echo_n "(cached) " >&6
24061 ac_cv_guild_program_name
="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
24063 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
24064 # the 'guild' and 'bindir' variables. In that case, try to guess
24065 # what the program name is, at the risk of getting it wrong if
24066 # Guile was configured with '--program-suffix' or similar.
24067 if test "x$ac_cv_guild_program_name" = "x"; then
24068 guile_exec_prefix
="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
24069 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
24073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
24074 $as_echo "$ac_cv_guild_program_name" >&6; }
24076 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
24077 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
24080 GUILD
="$ac_cv_guild_program_name"
24087 if test "$cross_compiling" = no
; then
24090 GUILD_TARGET_FLAG
="--target=$host"
24096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
24097 $as_echo_n "checking whether guild supports this host... " >&6; }
24098 if ${ac_cv_guild_ok+:} false
; then :
24099 $as_echo_n "(cached) " >&6
24101 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
24102 if "$ac_cv_guild_program_name" compile
$GUILD_TARGET_FLAG -o conftest.go
"$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
24108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
24109 $as_echo "$ac_cv_guild_ok" >&6; }
24111 if test "$ac_cv_guild_ok" = no
; then
24113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
24114 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
24118 if test "${have_libguile}" != no
; then
24120 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
24122 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
24123 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
24124 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
24125 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
24126 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
24129 save_CPPFLAGS
="$CPPFLAGS"
24131 CPPFLAGS
="$GUILE_CPPFLAGS"
24132 for ac_func
in scm_new_smob
24134 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
24135 if test "x$ac_cv_func_scm_new_smob" = xyes
; then :
24136 cat >>confdefs.h
<<_ACEOF
24137 #define HAVE_SCM_NEW_SMOB 1
24144 CPPFLAGS
="$save_CPPFLAGS"
24146 # Even if Guile support is not compiled in, we need to have these files
24148 CONFIG_OBS
="$CONFIG_OBS guile/guile.o"
24149 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
24153 if test "${have_libguile}" != no
; then
24155 HAVE_GUILE_FALSE
='#'
24157 HAVE_GUILE_TRUE
='#'
24162 # ---------------------------- #
24163 # Check for source highlight. #
24164 # ---------------------------- #
24169 # Check whether --enable-source-highlight was given.
24170 if test "${enable_source_highlight+set}" = set; then :
24171 enableval
=$enable_source_highlight;
24176 as_fn_error $?
"bad value $enableval for --enable-source-highlight" "$LINENO" 5
24181 enable_source_highlight
=auto
24185 if test "${enable_source_highlight}" != "no"; then
24186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the source-highlight library" >&5
24187 $as_echo_n "checking for the source-highlight library... " >&6; }
24188 if test "${pkg_config_prog_path}" = "missing"; then
24189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - pkg-config not found" >&5
24190 $as_echo "no - pkg-config not found" >&6; }
24191 if test "${enable_source_highlight}" = "yes"; then
24192 as_fn_error $?
"pkg-config was not found in your system" "$LINENO" 5
24195 if ${pkg_config_prog_path} --exists source-highlight
; then
24198 as_fn_error $?
"source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5
24202 srchigh_pkg_cflags
=`${pkg_config_prog_path} --cflags source-highlight`
24203 srchigh_pkg_libs
=`${pkg_config_prog_path} --libs source-highlight`
24205 # Now that we have found a source-highlight library, check if we can use
24206 # it. In particular, we're trying to detect the situation that the
24207 # library is using the new libstdc++ library abi ( see
24208 # https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html )
24209 # while the compiler being used to compile gdb is using the old abi.
24210 # Such a situation will result in an undefined reference to
24211 # srchilite::SourceHighlight::SourceHighlight(std::string const&).
24212 # This situation can occur for instance when using a source highlight
24213 # library compiled with g++ 7.5.0 while building gdb with g++ 4.8.5.
24215 ac_cpp
='$CXXCPP $CPPFLAGS'
24216 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24217 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24218 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
24220 save_CXXFLAGS
="$CXXFLAGS"
24222 CXXFLAGS
="$CXXFLAGS $srchigh_pkg_cflags"
24223 LIBS
="$LIBS $srchigh_pkg_libs"
24224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24225 /* end confdefs.h. */
24226 #include <srchilite/sourcehighlight.h>
24230 std::string outlang = "esc.outlang";
24231 new srchilite::SourceHighlight (outlang);
24237 if ac_fn_cxx_try_link
"$LINENO"; then :
24238 have_usable_source_highlight
=yes
24240 have_usable_source_highlight
=no
24243 rm -f core conftest.err conftest.
$ac_objext \
24244 conftest
$ac_exeext conftest.
$ac_ext
24245 CXXFLAGS
="$save_CXXFLAGS"
24248 ac_cpp
='$CPP $CPPFLAGS'
24249 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24250 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24251 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
24254 if test "${have_usable_source_highlight}" = "yes"; then
24256 $as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h
24258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24259 $as_echo "yes" >&6; }
24260 SRCHIGH_CFLAGS
="$srchigh_pkg_cflags"
24261 SRCHIGH_LIBS
="$srchigh_pkg_libs"
24263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24264 $as_echo "no" >&6; }
24265 if test "${enable_source_highlight}" = "yes"; then
24266 as_fn_error $?
"source-highlight in your system could not be used" "$LINENO" 5
24270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24271 $as_echo "no" >&6; }
24272 if test "${enable_source_highlight}" = "yes"; then
24273 as_fn_error $?
"source-highlight was not found in your system" "$LINENO" 5
24281 # ------------------------- #
24282 # Checks for header files. #
24283 # ------------------------- #
24285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
24286 $as_echo_n "checking for ANSI C header files... " >&6; }
24287 if ${ac_cv_header_stdc+:} false
; then :
24288 $as_echo_n "(cached) " >&6
24290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24291 /* end confdefs.h. */
24292 #include <stdlib.h>
24293 #include <stdarg.h>
24294 #include <string.h>
24305 if ac_fn_c_try_compile
"$LINENO"; then :
24306 ac_cv_header_stdc
=yes
24308 ac_cv_header_stdc
=no
24310 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24312 if test $ac_cv_header_stdc = yes; then
24313 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
24314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24315 /* end confdefs.h. */
24316 #include <string.h>
24319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24320 $EGREP "memchr" >/dev
/null
2>&1; then :
24323 ac_cv_header_stdc
=no
24329 if test $ac_cv_header_stdc = yes; then
24330 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
24331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24332 /* end confdefs.h. */
24333 #include <stdlib.h>
24336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24337 $EGREP "free" >/dev
/null
2>&1; then :
24340 ac_cv_header_stdc
=no
24346 if test $ac_cv_header_stdc = yes; then
24347 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
24348 if test "$cross_compiling" = yes; then :
24351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24352 /* end confdefs.h. */
24354 #include <stdlib.h>
24355 #if ((' ' & 0x0FF) == 0x020)
24356 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
24357 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
24359 # define ISLOWER(c) \
24360 (('a' <= (c) && (c) <= 'i') \
24361 || ('j' <= (c) && (c) <= 'r') \
24362 || ('s' <= (c) && (c) <= 'z'))
24363 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
24366 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
24371 for (i = 0; i < 256; i++)
24372 if (XOR (islower (i), ISLOWER (i))
24373 || toupper (i) != TOUPPER (i))
24378 if ac_fn_c_try_run
"$LINENO"; then :
24381 ac_cv_header_stdc
=no
24383 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24384 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
24390 $as_echo "$ac_cv_header_stdc" >&6; }
24391 if test $ac_cv_header_stdc = yes; then
24393 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
24397 # elf_hp.h is for HP/UX 64-bit shared library support.
24398 for ac_header
in nlist.h machine
/reg.h \
24400 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
24401 sys
/procctl.h sys
/resource.h sys
/ptrace.h ptrace.h \
24402 sys
/reg.h sys
/debugreg.h \
24405 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24406 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24407 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
24408 cat >>confdefs.h
<<_ACEOF
24409 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24416 for ac_header
in sys
/user.h
24418 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
24419 # include <sys/param.h>
24423 if test "x$ac_cv_header_sys_user_h" = xyes
; then :
24424 cat >>confdefs.h
<<_ACEOF
24425 #define HAVE_SYS_USER_H 1
24433 for ac_header
in curses.h cursesX.h ncurses.h ncursesw
/ncurses.h ncurses
/ncurses.h ncurses
/term.h
24435 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24436 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24437 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
24438 cat >>confdefs.h
<<_ACEOF
24439 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24446 for ac_header
in term.h
24448 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
24449 # include <curses.h>
24453 if test "x$ac_cv_header_term_h" = xyes
; then :
24454 cat >>confdefs.h
<<_ACEOF
24455 #define HAVE_TERM_H 1
24463 for ac_header
in sys
/socket.h
24465 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
24466 if test "x$ac_cv_header_sys_socket_h" = xyes
; then :
24467 cat >>confdefs.h
<<_ACEOF
24468 #define HAVE_SYS_SOCKET_H 1
24475 for ac_header
in ws2tcpip.h
24477 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
24478 if test "x$ac_cv_header_ws2tcpip_h" = xyes
; then :
24479 cat >>confdefs.h
<<_ACEOF
24480 #define HAVE_WS2TCPIP_H 1
24487 for ac_header
in execinfo.h
24489 ac_fn_c_check_header_mongrel
"$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
24490 if test "x$ac_cv_header_execinfo_h" = xyes
; then :
24491 cat >>confdefs.h
<<_ACEOF
24492 #define HAVE_EXECINFO_H 1
24500 # ------------------------- #
24501 # Checks for declarations. #
24502 # ------------------------- #
24505 # Check for presence and size of long long.
24506 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
24507 if test "x$ac_cv_type_long_long" = xyes
; then :
24509 cat >>confdefs.h
<<_ACEOF
24510 #define HAVE_LONG_LONG 1
24513 # The cast to long int works around a bug in the HP C Compiler
24514 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24515 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24516 # This bug is HP SR number 8606223364.
24517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
24518 $as_echo_n "checking size of long long... " >&6; }
24519 if ${ac_cv_sizeof_long_long+:} false
; then :
24520 $as_echo_n "(cached) " >&6
24522 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
24525 if test "$ac_cv_type_long_long" = yes; then
24526 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24528 as_fn_error
77 "cannot compute sizeof (long long)
24529 See \`config.log' for more details" "$LINENO" 5; }
24531 ac_cv_sizeof_long_long
=0
24536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
24537 $as_echo "$ac_cv_sizeof_long_long" >&6; }
24541 cat >>confdefs.h
<<_ACEOF
24542 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24549 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
24550 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
24551 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
24557 cat >>confdefs.h
<<_ACEOF
24558 #define HAVE_DECL_BASENAME $ac_have_decl
24560 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
24561 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
24567 cat >>confdefs.h
<<_ACEOF
24568 #define HAVE_DECL_FFS $ac_have_decl
24570 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
24571 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
24577 cat >>confdefs.h
<<_ACEOF
24578 #define HAVE_DECL_ASPRINTF $ac_have_decl
24580 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
24581 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
24587 cat >>confdefs.h
<<_ACEOF
24588 #define HAVE_DECL_VASPRINTF $ac_have_decl
24590 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
24591 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
24597 cat >>confdefs.h
<<_ACEOF
24598 #define HAVE_DECL_SNPRINTF $ac_have_decl
24600 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
24601 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
24607 cat >>confdefs.h
<<_ACEOF
24608 #define HAVE_DECL_VSNPRINTF $ac_have_decl
24611 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
24612 if test "x$ac_cv_have_decl_strtol" = xyes
; then :
24618 cat >>confdefs.h
<<_ACEOF
24619 #define HAVE_DECL_STRTOL $ac_have_decl
24621 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
24622 if test "x$ac_cv_have_decl_strtoul" = xyes
; then :
24628 cat >>confdefs.h
<<_ACEOF
24629 #define HAVE_DECL_STRTOUL $ac_have_decl
24631 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
24632 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
24638 cat >>confdefs.h
<<_ACEOF
24639 #define HAVE_DECL_STRTOLL $ac_have_decl
24641 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
24642 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
24648 cat >>confdefs.h
<<_ACEOF
24649 #define HAVE_DECL_STRTOULL $ac_have_decl
24652 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
24653 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
24659 cat >>confdefs.h
<<_ACEOF
24660 #define HAVE_DECL_STRVERSCMP $ac_have_decl
24665 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
24666 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
24672 cat >>confdefs.h
<<_ACEOF
24673 #define HAVE_DECL_SNPRINTF $ac_have_decl
24677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
24678 $as_echo_n "checking for LC_MESSAGES... " >&6; }
24679 if ${am_cv_val_LC_MESSAGES+:} false
; then :
24680 $as_echo_n "(cached) " >&6
24682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24683 /* end confdefs.h. */
24684 #include <locale.h>
24693 if ac_fn_c_try_link
"$LINENO"; then :
24694 am_cv_val_LC_MESSAGES
=yes
24696 am_cv_val_LC_MESSAGES
=no
24698 rm -f core conftest.err conftest.
$ac_objext \
24699 conftest
$ac_exeext conftest.
$ac_ext
24701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
24702 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
24703 if test $am_cv_val_LC_MESSAGES = yes; then
24705 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
24710 # ------------------ #
24711 # Checks for types. #
24712 # ------------------ #
24714 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
24715 #if HAVE_SYS_SOCKET_H
24716 # include <sys/socket.h>
24717 #elif HAVE_WS2TCPIP_H
24718 # include <ws2tcpip.h>
24722 if test "x$ac_cv_type_socklen_t" = xyes
; then :
24724 cat >>confdefs.h
<<_ACEOF
24725 #define HAVE_SOCKLEN_T 1
24732 # ------------------------------------- #
24733 # Checks for compiler characteristics. #
24734 # ------------------------------------- #
24736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
24737 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
24738 if ${ac_cv_c_const+:} false
; then :
24739 $as_echo_n "(cached) " >&6
24741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24742 /* end confdefs.h. */
24748 #ifndef __cplusplus
24749 /* Ultrix mips cc rejects this sort of thing. */
24750 typedef int charset[2];
24751 const charset cs = { 0, 0 };
24752 /* SunOS 4.1.1 cc rejects this. */
24753 char const *const *pcpcc;
24755 /* NEC SVR4.0.2 mips cc rejects this. */
24756 struct point {int x, y;};
24757 static struct point const zero = {0,0};
24758 /* AIX XL C 1.02.0.0 rejects this.
24759 It does not let you subtract one const X* pointer from another in
24760 an arm of an if-expression whose if-part is not a constant
24762 const char *g = "string";
24763 pcpcc = &g + (g ? g-g : 0);
24764 /* HPUX 7.0 cc rejects these. */
24766 ppc = (char**) pcpcc;
24767 pcpcc = (char const *const *) ppc;
24768 { /* SCO 3.2v4 cc rejects this sort of thing. */
24771 char const *s = 0 ? (char *) 0 : (char const *) 0;
24776 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
24777 int x[] = {25, 17};
24778 const int *foo = &x[0];
24781 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24782 typedef const int *iptr;
24786 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
24787 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24788 struct s { int j; const int *ap[3]; } bx;
24789 struct s *b = &bx; b->j = 5;
24791 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24792 const int foo = 10;
24793 if (!foo) return 0;
24795 return !cs[0] && !zero.x;
24802 if ac_fn_c_try_compile
"$LINENO"; then :
24807 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
24810 $as_echo "$ac_cv_c_const" >&6; }
24811 if test $ac_cv_c_const = no
; then
24813 $as_echo "#define const /**/" >>confdefs.h
24817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
24818 $as_echo_n "checking for inline... " >&6; }
24819 if ${ac_cv_c_inline+:} false
; then :
24820 $as_echo_n "(cached) " >&6
24823 for ac_kw
in inline __inline__ __inline
; do
24824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24825 /* end confdefs.h. */
24826 #ifndef __cplusplus
24828 static $ac_kw foo_t static_foo () {return 0; }
24829 $ac_kw foo_t foo () {return 0; }
24833 if ac_fn_c_try_compile
"$LINENO"; then :
24834 ac_cv_c_inline
=$ac_kw
24836 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24837 test "$ac_cv_c_inline" != no
&& break
24841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
24842 $as_echo "$ac_cv_c_inline" >&6; }
24844 case $ac_cv_c_inline in
24847 case $ac_cv_c_inline in
24849 *) ac_val
=$ac_cv_c_inline;;
24851 cat >>confdefs.h
<<_ACEOF
24852 #ifndef __cplusplus
24853 #define inline $ac_val
24859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
24860 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
24861 if ${ac_cv_c_bigendian+:} false
; then :
24862 $as_echo_n "(cached) " >&6
24864 ac_cv_c_bigendian
=unknown
24865 # See if we're dealing with a universal compiler.
24866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24867 /* end confdefs.h. */
24868 #ifndef __APPLE_CC__
24869 not a universal capable compiler
24874 if ac_fn_c_try_compile
"$LINENO"; then :
24876 # Check for potential -arch flags. It is not universal unless
24877 # there are at least two -arch flags with different values.
24880 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
24881 if test -n "$ac_prev"; then
24883 i?
86 | x86_64 | ppc | ppc64
)
24884 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
24887 ac_cv_c_bigendian
=universal
24893 elif test "x$ac_word" = "x-arch"; then
24898 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24899 if test $ac_cv_c_bigendian = unknown
; then
24900 # See if sys/param.h defines the BYTE_ORDER macro.
24901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24902 /* end confdefs.h. */
24903 #include <sys/types.h>
24904 #include <sys/param.h>
24909 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
24910 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
24912 bogus endian macros
24919 if ac_fn_c_try_compile
"$LINENO"; then :
24920 # It does; now see whether it defined to BIG_ENDIAN or not.
24921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24922 /* end confdefs.h. */
24923 #include <sys/types.h>
24924 #include <sys/param.h>
24929 #if BYTE_ORDER != BIG_ENDIAN
24937 if ac_fn_c_try_compile
"$LINENO"; then :
24938 ac_cv_c_bigendian
=yes
24940 ac_cv_c_bigendian
=no
24942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24946 if test $ac_cv_c_bigendian = unknown
; then
24947 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
24948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24949 /* end confdefs.h. */
24950 #include <limits.h>
24955 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
24956 bogus endian macros
24963 if ac_fn_c_try_compile
"$LINENO"; then :
24964 # It does; now see whether it defined to _BIG_ENDIAN or not.
24965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24966 /* end confdefs.h. */
24967 #include <limits.h>
24972 #ifndef _BIG_ENDIAN
24980 if ac_fn_c_try_compile
"$LINENO"; then :
24981 ac_cv_c_bigendian
=yes
24983 ac_cv_c_bigendian
=no
24985 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24987 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24989 if test $ac_cv_c_bigendian = unknown
; then
24990 # Compile a test program.
24991 if test "$cross_compiling" = yes; then :
24992 # Try to guess by grepping values from an object file.
24993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24994 /* end confdefs.h. */
24995 short int ascii_mm[] =
24996 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24997 short int ascii_ii[] =
24998 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24999 int use_ascii (int i) {
25000 return ascii_mm[i] + ascii_ii[i];
25002 short int ebcdic_ii[] =
25003 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
25004 short int ebcdic_mm[] =
25005 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
25006 int use_ebcdic (int i) {
25007 return ebcdic_mm[i] + ebcdic_ii[i];
25014 return use_ascii (foo) == use_ebcdic (foo);
25019 if ac_fn_c_try_compile
"$LINENO"; then :
25020 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
25021 ac_cv_c_bigendian
=yes
25023 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
25024 if test "$ac_cv_c_bigendian" = unknown
; then
25025 ac_cv_c_bigendian
=no
25027 # finding both strings is unlikely to happen, but who knows?
25028 ac_cv_c_bigendian
=unknown
25032 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25035 /* end confdefs.h. */
25036 $ac_includes_default
25041 /* Are we little or big endian? From Harbison&Steele. */
25045 char c[sizeof (long int)];
25048 return u.c[sizeof (long int) - 1] == 1;
25054 if ac_fn_c_try_run
"$LINENO"; then :
25055 ac_cv_c_bigendian
=no
25057 ac_cv_c_bigendian
=yes
25059 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25060 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
25066 $as_echo "$ac_cv_c_bigendian" >&6; }
25067 case $ac_cv_c_bigendian in #(
25069 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
25075 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
25079 as_fn_error $?
"unknown endianness
25080 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
25084 # ------------------------------ #
25085 # Checks for library functions. #
25086 # ------------------------------ #
25088 for ac_func
in getuid getgid \
25089 pread pread64 pwrite resize_term \
25092 ttrace wresize setlocale iconvlist libiconvlist btowc \
25093 setrlimit getrlimit posix_madvise waitpid \
25096 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25097 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
25098 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
25099 cat >>confdefs.h
<<_ACEOF
25100 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
25108 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
25109 if ${am_cv_langinfo_codeset+:} false
; then :
25110 $as_echo_n "(cached) " >&6
25112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25113 /* end confdefs.h. */
25114 #include <langinfo.h>
25118 char* cs = nl_langinfo(CODESET);
25123 if ac_fn_c_try_link
"$LINENO"; then :
25124 am_cv_langinfo_codeset
=yes
25126 am_cv_langinfo_codeset
=no
25128 rm -f core conftest.err conftest.
$ac_objext \
25129 conftest
$ac_exeext conftest.
$ac_ext
25132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
25133 $as_echo "$am_cv_langinfo_codeset" >&6; }
25134 if test $am_cv_langinfo_codeset = yes; then
25136 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
25140 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
25141 if test "x$ac_cv_type_size_t" = xyes
; then :
25145 cat >>confdefs.h
<<_ACEOF
25146 #define size_t unsigned int
25154 for ac_header
in $ac_header_list
25156 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25157 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
25159 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
25160 cat >>confdefs.h
<<_ACEOF
25161 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25174 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
25175 if test "x$ac_cv_type_pid_t" = xyes
; then :
25179 cat >>confdefs.h
<<_ACEOF
25186 # Set the 'development' global.
25187 .
$srcdir/..
/bfd
/development.sh
25189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25190 $as_echo_n "checking for ANSI C header files... " >&6; }
25191 if ${ac_cv_header_stdc+:} false
; then :
25192 $as_echo_n "(cached) " >&6
25194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25195 /* end confdefs.h. */
25196 #include <stdlib.h>
25197 #include <stdarg.h>
25198 #include <string.h>
25209 if ac_fn_c_try_compile
"$LINENO"; then :
25210 ac_cv_header_stdc
=yes
25212 ac_cv_header_stdc
=no
25214 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25216 if test $ac_cv_header_stdc = yes; then
25217 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25219 /* end confdefs.h. */
25220 #include <string.h>
25223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25224 $EGREP "memchr" >/dev
/null
2>&1; then :
25227 ac_cv_header_stdc
=no
25233 if test $ac_cv_header_stdc = yes; then
25234 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25236 /* end confdefs.h. */
25237 #include <stdlib.h>
25240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25241 $EGREP "free" >/dev
/null
2>&1; then :
25244 ac_cv_header_stdc
=no
25250 if test $ac_cv_header_stdc = yes; then
25251 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25252 if test "$cross_compiling" = yes; then :
25255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25256 /* end confdefs.h. */
25258 #include <stdlib.h>
25259 #if ((' ' & 0x0FF) == 0x020)
25260 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25261 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25263 # define ISLOWER(c) \
25264 (('a' <= (c) && (c) <= 'i') \
25265 || ('j' <= (c) && (c) <= 'r') \
25266 || ('s' <= (c) && (c) <= 'z'))
25267 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25270 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25275 for (i = 0; i < 256; i++)
25276 if (XOR (islower (i), ISLOWER (i))
25277 || toupper (i) != TOUPPER (i))
25282 if ac_fn_c_try_run
"$LINENO"; then :
25285 ac_cv_header_stdc
=no
25287 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25288 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25294 $as_echo "$ac_cv_header_stdc" >&6; }
25295 if test $ac_cv_header_stdc = yes; then
25297 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25301 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
25302 # for constant arguments. Useless!
25303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
25304 $as_echo_n "checking for working alloca.h... " >&6; }
25305 if ${ac_cv_working_alloca_h+:} false
; then :
25306 $as_echo_n "(cached) " >&6
25308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25309 /* end confdefs.h. */
25310 #include <alloca.h>
25314 char *p = (char *) alloca (2 * sizeof (int));
25320 if ac_fn_c_try_link
"$LINENO"; then :
25321 ac_cv_working_alloca_h
=yes
25323 ac_cv_working_alloca_h
=no
25325 rm -f core conftest.err conftest.
$ac_objext \
25326 conftest
$ac_exeext conftest.
$ac_ext
25328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
25329 $as_echo "$ac_cv_working_alloca_h" >&6; }
25330 if test $ac_cv_working_alloca_h = yes; then
25332 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
25336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
25337 $as_echo_n "checking for alloca... " >&6; }
25338 if ${ac_cv_func_alloca_works+:} false
; then :
25339 $as_echo_n "(cached) " >&6
25341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25342 /* end confdefs.h. */
25344 # define alloca __builtin_alloca
25347 # include <malloc.h>
25348 # define alloca _alloca
25350 # ifdef HAVE_ALLOCA_H
25351 # include <alloca.h>
25356 # ifndef alloca /* predefined by HP cc +Olibcalls */
25357 void *alloca (size_t);
25367 char *p = (char *) alloca (1);
25373 if ac_fn_c_try_link
"$LINENO"; then :
25374 ac_cv_func_alloca_works
=yes
25376 ac_cv_func_alloca_works
=no
25378 rm -f core conftest.err conftest.
$ac_objext \
25379 conftest
$ac_exeext conftest.
$ac_ext
25381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
25382 $as_echo "$ac_cv_func_alloca_works" >&6; }
25384 if test $ac_cv_func_alloca_works = yes; then
25386 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
25389 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
25390 # that cause trouble. Some versions do not even contain alloca or
25391 # contain a buggy version. If you still want to use their alloca,
25392 # use ar to extract alloca.o from them instead of compiling alloca.c.
25394 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
25396 $as_echo "#define C_ALLOCA 1" >>confdefs.h
25399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
25400 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
25401 if ${ac_cv_os_cray+:} false
; then :
25402 $as_echo_n "(cached) " >&6
25404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25405 /* end confdefs.h. */
25406 #if defined CRAY && ! defined CRAY2
25413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25414 $EGREP "webecray" >/dev
/null
2>&1; then :
25422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
25423 $as_echo "$ac_cv_os_cray" >&6; }
25424 if test $ac_cv_os_cray = yes; then
25425 for ac_func
in _getb67 GETB67 getb67
; do
25426 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25427 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
25428 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
25430 cat >>confdefs.h
<<_ACEOF
25431 #define CRAY_STACKSEG_END $ac_func
25440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
25441 $as_echo_n "checking stack direction for C alloca... " >&6; }
25442 if ${ac_cv_c_stack_direction+:} false
; then :
25443 $as_echo_n "(cached) " >&6
25445 if test "$cross_compiling" = yes; then :
25446 ac_cv_c_stack_direction
=0
25448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25449 /* end confdefs.h. */
25450 $ac_includes_default
25452 find_stack_direction (int *addr, int depth)
25454 int dir, dummy = 0;
25457 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
25458 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
25459 return dir + dummy;
25463 main (int argc, char **argv)
25465 return find_stack_direction (0, argc + !argv + 20) < 0;
25468 if ac_fn_c_try_run
"$LINENO"; then :
25469 ac_cv_c_stack_direction
=1
25471 ac_cv_c_stack_direction
=-1
25473 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25474 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
25479 $as_echo "$ac_cv_c_stack_direction" >&6; }
25480 cat >>confdefs.h
<<_ACEOF
25481 #define STACK_DIRECTION $ac_cv_c_stack_direction
25492 $as_echo "#define USE_WIN32API 1" >>confdefs.h
25494 WIN32APILIBS
="-lws2_32"
25499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
25500 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
25501 if ${am_cv_langinfo_codeset+:} false
; then :
25502 $as_echo_n "(cached) " >&6
25504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25505 /* end confdefs.h. */
25506 #include <langinfo.h>
25510 char* cs = nl_langinfo(CODESET);
25515 if ac_fn_c_try_link
"$LINENO"; then :
25516 am_cv_langinfo_codeset
=yes
25518 am_cv_langinfo_codeset
=no
25520 rm -f core conftest.err conftest.
$ac_objext \
25521 conftest
$ac_exeext conftest.
$ac_ext
25524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
25525 $as_echo "$am_cv_langinfo_codeset" >&6; }
25526 if test $am_cv_langinfo_codeset = yes; then
25528 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
25533 for ac_header
in linux
/perf_event.h locale.h memory.h signal.h sys
/resource.h sys
/socket.h sys
/un.h sys
/wait.h thread_db.h
wait.h termios.h dlfcn.h linux
/elf.h proc_service.h poll.h sys
/poll.h sys
/select.h
25535 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25536 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25537 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
25538 cat >>confdefs.h
<<_ACEOF
25539 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25548 for ac_func
in getpagesize
25550 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
25551 if test "x$ac_cv_func_getpagesize" = xyes
; then :
25552 cat >>confdefs.h
<<_ACEOF
25553 #define HAVE_GETPAGESIZE 1
25559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
25560 $as_echo_n "checking for working mmap... " >&6; }
25561 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
25562 $as_echo_n "(cached) " >&6
25564 if test "$cross_compiling" = yes; then :
25565 ac_cv_func_mmap_fixed_mapped
=no
25567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25568 /* end confdefs.h. */
25569 $ac_includes_default
25570 /* malloc might have been renamed as rpl_malloc. */
25573 /* Thanks to Mike Haertel and Jim Avera for this test.
25574 Here is a matrix of mmap possibilities:
25575 mmap private not fixed
25576 mmap private fixed at somewhere currently unmapped
25577 mmap private fixed at somewhere already mapped
25578 mmap shared not fixed
25579 mmap shared fixed at somewhere currently unmapped
25580 mmap shared fixed at somewhere already mapped
25581 For private mappings, we should verify that changes cannot be read()
25582 back from the file, nor mmap's back from the file at a different
25583 address. (There have been systems where private was not correctly
25584 implemented like the infamous i386 svr4.0, and systems where the
25585 VM page cache was not coherent with the file system buffer cache
25586 like early versions of FreeBSD and possibly contemporary NetBSD.)
25587 For shared mappings, we should conversely verify that changes get
25588 propagated back to all the places they're supposed to be.
25590 Grep wants private fixed already mapped.
25591 The main things grep needs to know about mmap are:
25592 * does it exist and is it safe to write into the mmap'd area
25593 * how to use it (BSD variants) */
25596 #include <sys/mman.h>
25598 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
25602 /* This mess was copied from the GNU getpagesize.h. */
25603 #ifndef HAVE_GETPAGESIZE
25604 # ifdef _SC_PAGESIZE
25605 # define getpagesize() sysconf(_SC_PAGESIZE)
25606 # else /* no _SC_PAGESIZE */
25607 # ifdef HAVE_SYS_PARAM_H
25608 # include <sys/param.h>
25609 # ifdef EXEC_PAGESIZE
25610 # define getpagesize() EXEC_PAGESIZE
25611 # else /* no EXEC_PAGESIZE */
25613 # define getpagesize() NBPG * CLSIZE
25616 # endif /* no CLSIZE */
25617 # else /* no NBPG */
25619 # define getpagesize() NBPC
25620 # else /* no NBPC */
25622 # define getpagesize() PAGESIZE
25623 # endif /* PAGESIZE */
25624 # endif /* no NBPC */
25625 # endif /* no NBPG */
25626 # endif /* no EXEC_PAGESIZE */
25627 # else /* no HAVE_SYS_PARAM_H */
25628 # define getpagesize() 8192 /* punt totally */
25629 # endif /* no HAVE_SYS_PARAM_H */
25630 # endif /* no _SC_PAGESIZE */
25632 #endif /* no HAVE_GETPAGESIZE */
25637 char *data, *data2, *data3;
25638 const char *cdata2;
25642 pagesize = getpagesize ();
25644 /* First, make a file with some known garbage in it. */
25645 data = (char *) malloc (pagesize);
25648 for (i = 0; i < pagesize; ++i)
25649 *(data + i) = rand ();
25651 fd = creat ("conftest.mmap", 0600);
25654 if (write (fd, data, pagesize) != pagesize)
25658 /* Next, check that the tail of a page is zero-filled. File must have
25659 non-zero length, otherwise we risk SIGBUS for entire page. */
25660 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
25664 if (write (fd2, cdata2, 1) != 1)
25666 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
25667 if (data2 == MAP_FAILED)
25669 for (i = 0; i < pagesize; ++i)
25673 if (munmap (data2, pagesize))
25676 /* Next, try to mmap the file at a fixed address which already has
25677 something else allocated at it. If we can, also make sure that
25678 we see the same garbage. */
25679 fd = open ("conftest.mmap", O_RDWR);
25682 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
25683 MAP_PRIVATE | MAP_FIXED, fd, 0L))
25685 for (i = 0; i < pagesize; ++i)
25686 if (*(data + i) != *(data2 + i))
25689 /* Finally, make sure that changes to the mapped area do not
25690 percolate back to the file as seen by read(). (This is a bug on
25691 some variants of i386 svr4.0.) */
25692 for (i = 0; i < pagesize; ++i)
25693 *(data2 + i) = *(data2 + i) + 1;
25694 data3 = (char *) malloc (pagesize);
25697 if (read (fd, data3, pagesize) != pagesize)
25699 for (i = 0; i < pagesize; ++i)
25700 if (*(data + i) != *(data3 + i))
25706 if ac_fn_c_try_run
"$LINENO"; then :
25707 ac_cv_func_mmap_fixed_mapped
=yes
25709 ac_cv_func_mmap_fixed_mapped
=no
25711 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25712 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
25717 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
25718 if test $ac_cv_func_mmap_fixed_mapped = yes; then
25720 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
25723 rm -f conftest.mmap conftest.txt
25725 for ac_header
in vfork.h
25727 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
25728 if test "x$ac_cv_header_vfork_h" = xyes
; then :
25729 cat >>confdefs.h
<<_ACEOF
25730 #define HAVE_VFORK_H 1
25737 for ac_func
in fork vfork
25739 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25740 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
25741 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
25742 cat >>confdefs.h
<<_ACEOF
25743 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25749 if test "x$ac_cv_func_fork" = xyes
; then
25750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
25751 $as_echo_n "checking for working fork... " >&6; }
25752 if ${ac_cv_func_fork_works+:} false
; then :
25753 $as_echo_n "(cached) " >&6
25755 if test "$cross_compiling" = yes; then :
25756 ac_cv_func_fork_works
=cross
25758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25759 /* end confdefs.h. */
25760 $ac_includes_default
25765 /* By Ruediger Kuhlmann. */
25766 return fork () < 0;
25772 if ac_fn_c_try_run
"$LINENO"; then :
25773 ac_cv_func_fork_works
=yes
25775 ac_cv_func_fork_works
=no
25777 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25778 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
25783 $as_echo "$ac_cv_func_fork_works" >&6; }
25786 ac_cv_func_fork_works
=$ac_cv_func_fork
25788 if test "x$ac_cv_func_fork_works" = xcross
; then
25790 *-*-amigaos* |
*-*-msdosdjgpp*)
25791 # Override, as these systems have only a dummy fork() stub
25792 ac_cv_func_fork_works
=no
25795 ac_cv_func_fork_works
=yes
25798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25799 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25801 ac_cv_func_vfork_works
=$ac_cv_func_vfork
25802 if test "x$ac_cv_func_vfork" = xyes
; then
25803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
25804 $as_echo_n "checking for working vfork... " >&6; }
25805 if ${ac_cv_func_vfork_works+:} false
; then :
25806 $as_echo_n "(cached) " >&6
25808 if test "$cross_compiling" = yes; then :
25809 ac_cv_func_vfork_works
=cross
25811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25812 /* end confdefs.h. */
25813 /* Thanks to Paul Eggert for this test. */
25814 $ac_includes_default
25815 #include <sys/wait.h>
25816 #ifdef HAVE_VFORK_H
25817 # include <vfork.h>
25819 /* On some sparc systems, changes by the child to local and incoming
25820 argument registers are propagated back to the parent. The compiler
25821 is told about this with #include <vfork.h>, but some compilers
25822 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25823 static variable whose address is put into a register that is
25824 clobbered by the vfork. */
25827 sparc_address_test (int arg)
25829 sparc_address_test (arg) int arg;
25832 static pid_t child;
25850 pid_t parent = getpid ();
25853 sparc_address_test (0);
25858 /* Here is another test for sparc vfork register problems. This
25859 test uses lots of local variables, at least as many local
25860 variables as main has allocated so far including compiler
25861 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25862 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25863 reuse the register of parent for one of the local variables,
25864 since it will think that parent can't possibly be used any more
25865 in this routine. Assigning to the local variable will thus
25866 munge parent in the parent process. */
25868 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25869 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25870 /* Convince the compiler that p..p7 are live; otherwise, it might
25871 use the same hardware register for all 8 local variables. */
25872 if (p != p1 || p != p2 || p != p3 || p != p4
25873 || p != p5 || p != p6 || p != p7)
25876 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25877 from child file descriptors. If the child closes a descriptor
25878 before it execs or exits, this munges the parent's descriptor
25879 as well. Test for this by closing stdout in the child. */
25880 _exit(close(fileno(stdout)) != 0);
25885 while (wait(&status) != child)
25888 /* Was there some problem with vforking? */
25891 /* Did the child fail? (This shouldn't happen.) */
25894 /* Did the vfork/compiler bug occur? */
25895 || parent != getpid()
25897 /* Did the file descriptor bug occur? */
25898 || fstat(fileno(stdout), &st) != 0
25903 if ac_fn_c_try_run
"$LINENO"; then :
25904 ac_cv_func_vfork_works
=yes
25906 ac_cv_func_vfork_works
=no
25908 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25909 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
25914 $as_echo "$ac_cv_func_vfork_works" >&6; }
25917 if test "x$ac_cv_func_fork_works" = xcross
; then
25918 ac_cv_func_vfork_works
=$ac_cv_func_vfork
25919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25920 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25923 if test "x$ac_cv_func_vfork_works" = xyes
; then
25925 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
25929 $as_echo "#define vfork fork" >>confdefs.h
25932 if test "x$ac_cv_func_fork_works" = xyes
; then
25934 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
25938 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
25939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
25940 $as_echo_n "checking for library containing socketpair... " >&6; }
25941 if ${ac_cv_search_socketpair+:} false
; then :
25942 $as_echo_n "(cached) " >&6
25944 ac_func_search_save_LIBS
=$LIBS
25945 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25946 /* end confdefs.h. */
25948 /* Override any GCC internal prototype to avoid an error.
25949 Use char because int might match the return type of a GCC
25950 builtin and then its argument prototype would still apply. */
25954 char socketpair ();
25958 return socketpair ();
25963 for ac_lib
in '' socket
; do
25964 if test -z "$ac_lib"; then
25965 ac_res
="none required"
25968 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
25970 if ac_fn_c_try_link
"$LINENO"; then :
25971 ac_cv_search_socketpair
=$ac_res
25973 rm -f core conftest.err conftest.
$ac_objext \
25975 if ${ac_cv_search_socketpair+:} false
; then :
25979 if ${ac_cv_search_socketpair+:} false
; then :
25982 ac_cv_search_socketpair
=no
25984 rm conftest.
$ac_ext
25985 LIBS
=$ac_func_search_save_LIBS
25987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
25988 $as_echo "$ac_cv_search_socketpair" >&6; }
25989 ac_res
=$ac_cv_search_socketpair
25990 if test "$ac_res" != no
; then :
25991 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
25995 for ac_func
in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
25996 ptrace64 sbrk setns sigaltstack sigprocmask \
25997 setpgid setpgrp getrusage getauxval sigtimedwait
25999 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26000 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
26001 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
26002 cat >>confdefs.h
<<_ACEOF
26003 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26010 # This is needed for RHEL 5 and uclibc-ng < 1.0.39.
26011 # These did not define ADDR_NO_RANDOMIZE in sys/personality.h,
26012 # only in linux/personality.h.
26013 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
26015 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
26021 cat >>confdefs.h
<<_ACEOF
26022 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
26026 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
26027 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
26033 cat >>confdefs.h
<<_ACEOF
26034 #define HAVE_DECL_STRSTR $ac_have_decl
26038 # ----------------------- #
26039 # Checks for structures. #
26040 # ----------------------- #
26042 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26043 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
26045 cat >>confdefs.h
<<_ACEOF
26046 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26051 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26052 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
26054 cat >>confdefs.h
<<_ACEOF
26055 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26062 # On FreeBSD we need libutil for the kinfo_get* functions. On
26063 # GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
26064 # Figure out which one to use.
26065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
26066 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
26067 if ${ac_cv_search_kinfo_getfile+:} false
; then :
26068 $as_echo_n "(cached) " >&6
26070 ac_func_search_save_LIBS
=$LIBS
26071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26072 /* end confdefs.h. */
26074 /* Override any GCC internal prototype to avoid an error.
26075 Use char because int might match the return type of a GCC
26076 builtin and then its argument prototype would still apply. */
26080 char kinfo_getfile ();
26084 return kinfo_getfile ();
26089 for ac_lib
in '' util util-freebsd
; do
26090 if test -z "$ac_lib"; then
26091 ac_res
="none required"
26094 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26096 if ac_fn_c_try_link
"$LINENO"; then :
26097 ac_cv_search_kinfo_getfile
=$ac_res
26099 rm -f core conftest.err conftest.
$ac_objext \
26101 if ${ac_cv_search_kinfo_getfile+:} false
; then :
26105 if ${ac_cv_search_kinfo_getfile+:} false
; then :
26108 ac_cv_search_kinfo_getfile
=no
26110 rm conftest.
$ac_ext
26111 LIBS
=$ac_func_search_save_LIBS
26113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
26114 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
26115 ac_res
=$ac_cv_search_kinfo_getfile
26116 if test "$ac_res" != no
; then :
26117 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26122 # Define HAVE_KINFO_GETFILE if kinfo_getfile is available.
26123 for ac_func
in kinfo_getfile
26125 ac_fn_c_check_func
"$LINENO" "kinfo_getfile" "ac_cv_func_kinfo_getfile"
26126 if test "x$ac_cv_func_kinfo_getfile" = xyes
; then :
26127 cat >>confdefs.h
<<_ACEOF
26128 #define HAVE_KINFO_GETFILE 1
26135 # ----------------------- #
26136 # Check for threading. #
26137 # ----------------------- #
26139 # Check whether --enable-threading was given.
26140 if test "${enable_threading+set}" = set; then :
26141 enableval
=$enable_threading; case "$enableval" in
26142 yes) want_threading
=yes ;;
26143 no
) want_threading
=no
;;
26144 *) as_fn_error $?
"bad value $enableval for threading" "$LINENO" 5 ;;
26151 # Check for std::thread. This does not work on some platforms, like
26154 ac_cpp
='$CXXCPP $CPPFLAGS'
26155 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26156 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26157 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
26164 ac_cpp
='$CPP $CPPFLAGS'
26165 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26166 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26167 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
26171 # We used to check for pthread.h first, but this fails if pthread.h
26172 # requires special compiler flags (e.g. on Tru64 or Sequent).
26173 # It gets checked for in the link test anyway.
26175 # First of all, check if the user has set any of the PTHREAD_LIBS,
26176 # etcetera environment variables, and if threads linking works using
26178 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
26179 ax_pthread_save_CC
="$CC"
26180 ax_pthread_save_CFLAGS
="$CFLAGS"
26181 ax_pthread_save_LIBS
="$LIBS"
26182 if test "x$PTHREAD_CC" != "x"; then :
26185 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
26186 LIBS
="$PTHREAD_LIBS $LIBS"
26187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
26188 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
26189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26190 /* end confdefs.h. */
26192 /* Override any GCC internal prototype to avoid an error.
26193 Use char because int might match the return type of a GCC
26194 builtin and then its argument prototype would still apply. */
26198 char pthread_join ();
26202 return pthread_join ();
26207 if ac_fn_c_try_link
"$LINENO"; then :
26210 rm -f core conftest.err conftest.
$ac_objext \
26211 conftest
$ac_exeext conftest.
$ac_ext
26212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
26213 $as_echo "$ax_pthread_ok" >&6; }
26214 if test "x$ax_pthread_ok" = "xno"; then
26218 CC
="$ax_pthread_save_CC"
26219 CFLAGS
="$ax_pthread_save_CFLAGS"
26220 LIBS
="$ax_pthread_save_LIBS"
26223 # We must check for the threads library under a number of different
26224 # names; the ordering is very important because some systems
26225 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
26226 # libraries is broken (non-POSIX).
26228 # Create a list of thread flags to try. Items starting with a "-" are
26229 # C compiler flags, and other items are library names, except for "none"
26230 # which indicates that we try without any flags at all, and "pthread-config"
26231 # which is a program returning the flags for the Pth emulation library.
26233 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
26235 # The ordering *is* (sometimes) important. Some notes on the
26236 # individual items follow:
26238 # pthreads: AIX (must check this before -lpthread)
26239 # none: in case threads are in libc; should be tried before -Kthread and
26240 # other compiler flags to prevent continual compiler warnings
26241 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
26242 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
26243 # (Note: HP C rejects this with "bad form for `-t' option")
26244 # -pthreads: Solaris/gcc (Note: HP C also rejects)
26245 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
26246 # doesn't hurt to check since this sometimes defines pthreads and
26247 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
26248 # is present but should not be used directly; and before -mthreads,
26249 # because the compiler interprets this as "-mt" + "-hreads")
26250 # -mthreads: Mingw32/gcc, Lynx/gcc
26251 # pthread: Linux, etcetera
26252 # --thread-safe: KAI C++
26253 # pthread-config: use pthread-config program (for GNU Pth library)
26259 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
26260 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
26262 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
26267 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
26268 # multi-threading and also sets -lpthread."
26270 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
26275 # IBM z/OS requires a feature-test macro to be defined in order to
26276 # enable POSIX threads at all, so give the user a hint if this is
26277 # not set. (We don't define these ourselves, as they can affect
26278 # other portions of the system API in unpredictable ways.)
26280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26281 /* end confdefs.h. */
26283 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
26284 AX_PTHREAD_ZOS_MISSING
26288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26289 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
26290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
26291 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
26299 # On Solaris (at least, for some versions), libc contains stubbed
26300 # (non-functional) versions of the pthreads routines, so link-based
26301 # tests will erroneously succeed. (N.B.: The stubs are missing
26302 # pthread_cleanup_push, or rather a function called by this macro,
26303 # so we could check for that, but who knows whether they'll stub
26304 # that too in a future libc.) So we'll check first for the
26305 # standard Solaris way of linking pthreads (-mt -lpthread).
26307 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
26311 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
26313 if test "x$GCC" = "xyes"; then :
26314 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
26317 # The presence of a feature test macro requesting re-entrant function
26318 # definitions is, on some systems, a strong hint that pthreads support is
26319 # correctly enabled
26322 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
26323 ax_pthread_check_macro
="_REENTRANT"
26327 ax_pthread_check_macro
="_THREAD_SAFE"
26331 ax_pthread_check_macro
="--"
26334 if test "x$ax_pthread_check_macro" = "x--"; then :
26335 ax_pthread_check_cond
=0
26337 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
26340 # Are we compiling with Clang?
26342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
26343 $as_echo_n "checking whether $CC is Clang... " >&6; }
26344 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
26345 $as_echo_n "(cached) " >&6
26347 ax_cv_PTHREAD_CLANG
=no
26348 # Note that Autoconf sets GCC=yes for Clang as well as GCC
26349 if test "x$GCC" = "xyes"; then
26350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26351 /* end confdefs.h. */
26352 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
26353 # if defined(__clang__) && defined(__llvm__)
26354 AX_PTHREAD_CC_IS_CLANG
26358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26359 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
26360 ax_cv_PTHREAD_CLANG
=yes
26367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
26368 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
26369 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
26371 ax_pthread_clang_warning
=no
26373 # Clang needs special handling, because older versions handle the -pthread
26374 # option in a rather... idiosyncratic way
26376 if test "x$ax_pthread_clang" = "xyes"; then
26378 # Clang takes -pthread; it has never supported any other flag
26380 # (Note 1: This will need to be revisited if a system that Clang
26381 # supports has POSIX threads in a separate library. This tends not
26382 # to be the way of modern systems, but it's conceivable.)
26384 # (Note 2: On some systems, notably Darwin, -pthread is not needed
26385 # to get POSIX threads support; the API is always present and
26386 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
26387 # -pthread does define _REENTRANT, and while the Darwin headers
26388 # ignore this macro, third-party headers might not.)
26390 PTHREAD_CFLAGS
="-pthread"
26395 # However, older versions of Clang make a point of warning the user
26396 # that, in an invocation where only linking and no compilation is
26397 # taking place, the -pthread option has no effect ("argument unused
26398 # during compilation"). They expect -pthread to be passed in only
26399 # when source code is being compiled.
26401 # Problem is, this is at odds with the way Automake and most other
26402 # C build frameworks function, which is that the same flags used in
26403 # compilation (CFLAGS) are also used in linking. Many systems
26404 # supported by AX_PTHREAD require exactly this for POSIX threads
26405 # support, and in fact it is often not straightforward to specify a
26406 # flag that is used only in the compilation phase and not in
26407 # linking. Such a scenario is extremely rare in practice.
26409 # Even though use of the -pthread flag in linking would only print
26410 # a warning, this can be a nuisance for well-run software projects
26411 # that build with -Werror. So if the active version of Clang has
26412 # this misfeature, we search for an option to squash it.
26414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
26415 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
26416 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
26417 $as_echo_n "(cached) " >&6
26419 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
26420 # Create an alternate version of $ac_link that compiles and
26421 # links in two steps (.c -> .o, .o -> exe) instead of one
26422 # (.c -> exe), because the warning occurs only in the second
26424 ax_pthread_save_ac_link
="$ac_link"
26425 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
26426 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
26427 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
26428 ax_pthread_save_CFLAGS
="$CFLAGS"
26429 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
26430 if test "x$ax_pthread_try" = "xunknown"; then :
26433 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
26434 ac_link
="$ax_pthread_save_ac_link"
26435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26436 /* end confdefs.h. */
26437 int main(void){return 0;}
26439 if ac_fn_c_try_link
"$LINENO"; then :
26440 ac_link
="$ax_pthread_2step_ac_link"
26441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26442 /* end confdefs.h. */
26443 int main(void){return 0;}
26445 if ac_fn_c_try_link
"$LINENO"; then :
26448 rm -f core conftest.err conftest.
$ac_objext \
26449 conftest
$ac_exeext conftest.
$ac_ext
26452 rm -f core conftest.err conftest.
$ac_objext \
26453 conftest
$ac_exeext conftest.
$ac_ext
26455 ac_link
="$ax_pthread_save_ac_link"
26456 CFLAGS
="$ax_pthread_save_CFLAGS"
26457 if test "x$ax_pthread_try" = "x"; then :
26460 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
26463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
26464 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
26466 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
26468 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
26471 fi # $ax_pthread_clang = yes
26473 if test "x$ax_pthread_ok" = "xno"; then
26474 for ax_pthread_try_flag
in $ax_pthread_flags; do
26476 case $ax_pthread_try_flag in
26478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
26479 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
26483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
26484 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
26485 PTHREAD_CFLAGS
="-mt"
26486 PTHREAD_LIBS
="-lpthread"
26490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
26491 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
26492 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
26496 # Extract the first word of "pthread-config", so it can be a program name with args.
26497 set dummy pthread-config
; ac_word
=$2
26498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26499 $as_echo_n "checking for $ac_word... " >&6; }
26500 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
26501 $as_echo_n "(cached) " >&6
26503 if test -n "$ax_pthread_config"; then
26504 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
26506 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26507 for as_dir
in $PATH
26510 test -z "$as_dir" && as_dir
=.
26511 for ac_exec_ext
in '' $ac_executable_extensions; do
26512 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
26513 ac_cv_prog_ax_pthread_config
="yes"
26514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26521 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
26524 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
26525 if test -n "$ax_pthread_config"; then
26526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
26527 $as_echo "$ax_pthread_config" >&6; }
26529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26530 $as_echo "no" >&6; }
26534 if test "x$ax_pthread_config" = "xno"; then :
26537 PTHREAD_CFLAGS
="`pthread-config --cflags`"
26538 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
26542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
26543 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
26544 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
26548 ax_pthread_save_CFLAGS
="$CFLAGS"
26549 ax_pthread_save_LIBS
="$LIBS"
26550 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
26551 LIBS
="$PTHREAD_LIBS $LIBS"
26553 # Check for various functions. We must include pthread.h,
26554 # since some functions may be macros. (On the Sequent, we
26555 # need a special flag -Kthread to make this header compile.)
26556 # We check for pthread_join because it is in -lpthread on IRIX
26557 # while pthread_create is in libc. We check for pthread_attr_init
26558 # due to DEC craziness with -lpthreads. We check for
26559 # pthread_cleanup_push because it is one of the few pthread
26560 # functions on Solaris that doesn't have a non-functional libc stub.
26561 # We try pthread_create on general principles.
26563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26564 /* end confdefs.h. */
26565 #include <pthread.h>
26566 # if $ax_pthread_check_cond
26567 # error "$ax_pthread_check_macro must be defined"
26569 static void routine(void *a) { a = 0; }
26570 static void *start_routine(void *a) { return a; }
26574 pthread_t th; pthread_attr_t attr;
26575 pthread_create(&th, 0, start_routine, 0);
26576 pthread_join(th, 0);
26577 pthread_attr_init(&attr);
26578 pthread_cleanup_push(routine, 0);
26579 pthread_cleanup_pop(0) /* ; */
26584 if ac_fn_c_try_link
"$LINENO"; then :
26587 rm -f core conftest.err conftest.
$ac_objext \
26588 conftest
$ac_exeext conftest.
$ac_ext
26590 CFLAGS
="$ax_pthread_save_CFLAGS"
26591 LIBS
="$ax_pthread_save_LIBS"
26593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
26594 $as_echo "$ax_pthread_ok" >&6; }
26595 if test "x$ax_pthread_ok" = "xyes"; then :
26604 # Various other checks:
26605 if test "x$ax_pthread_ok" = "xyes"; then
26606 ax_pthread_save_CFLAGS
="$CFLAGS"
26607 ax_pthread_save_LIBS
="$LIBS"
26608 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
26609 LIBS
="$PTHREAD_LIBS $LIBS"
26611 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
26612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
26613 $as_echo_n "checking for joinable pthread attribute... " >&6; }
26614 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
26615 $as_echo_n "(cached) " >&6
26617 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
26618 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
26619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26620 /* end confdefs.h. */
26621 #include <pthread.h>
26625 int attr = $ax_pthread_attr; return attr /* ; */
26630 if ac_fn_c_try_link
"$LINENO"; then :
26631 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
26633 rm -f core conftest.err conftest.
$ac_objext \
26634 conftest
$ac_exeext conftest.
$ac_ext
26638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
26639 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
26640 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
26641 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
26642 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
26644 cat >>confdefs.h
<<_ACEOF
26645 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
26648 ax_pthread_joinable_attr_defined
=yes
26652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
26653 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
26654 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
26655 $as_echo_n "(cached) " >&6
26657 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
26660 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
26665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
26666 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
26667 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
26668 test "x$ax_pthread_special_flags_added" != "xyes"; then :
26669 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
26670 ax_pthread_special_flags_added
=yes
26673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
26674 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
26675 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
26676 $as_echo_n "(cached) " >&6
26678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26679 /* end confdefs.h. */
26680 #include <pthread.h>
26684 int i = PTHREAD_PRIO_INHERIT;
26689 if ac_fn_c_try_link
"$LINENO"; then :
26690 ax_cv_PTHREAD_PRIO_INHERIT
=yes
26692 ax_cv_PTHREAD_PRIO_INHERIT
=no
26694 rm -f core conftest.err conftest.
$ac_objext \
26695 conftest
$ac_exeext conftest.
$ac_ext
26698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
26699 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
26700 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
26701 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
26703 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
26705 ax_pthread_prio_inherit_defined
=yes
26709 CFLAGS
="$ax_pthread_save_CFLAGS"
26710 LIBS
="$ax_pthread_save_LIBS"
26712 # More AIX lossage: compile with *_r variant
26713 if test "x$GCC" != "xyes"; then
26717 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
26718 #handle absolute path differently from PATH based program lookup
26721 if as_fn_executable_p
${CC}_r
; then :
26722 PTHREAD_CC
="${CC}_r"
26725 for ac_prog
in ${CC}_r
26727 # Extract the first word of "$ac_prog", so it can be a program name with args.
26728 set dummy
$ac_prog; ac_word
=$2
26729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26730 $as_echo_n "checking for $ac_word... " >&6; }
26731 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
26732 $as_echo_n "(cached) " >&6
26734 if test -n "$PTHREAD_CC"; then
26735 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
26737 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26738 for as_dir
in $PATH
26741 test -z "$as_dir" && as_dir
=.
26742 for ac_exec_ext
in '' $ac_executable_extensions; do
26743 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
26744 ac_cv_prog_PTHREAD_CC
="$ac_prog"
26745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26754 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
26755 if test -n "$PTHREAD_CC"; then
26756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
26757 $as_echo "$PTHREAD_CC" >&6; }
26759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26760 $as_echo "no" >&6; }
26764 test -n "$PTHREAD_CC" && break
26766 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
26777 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
26783 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
26784 if test "x$ax_pthread_ok" = "xyes"; then
26792 ac_cpp
='$CXXCPP $CPPFLAGS'
26793 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26794 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26795 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
26799 LIBS
="$PTHREAD_LIBS $LIBS"
26800 save_CXXFLAGS
="$CXXFLAGS"
26801 CXXFLAGS
="$PTHREAD_CFLAGS $save_CXXFLAGS"
26802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
26803 $as_echo_n "checking for std::thread... " >&6; }
26804 if ${gdb_cv_cxx_std_thread+:} false
; then :
26805 $as_echo_n "(cached) " >&6
26807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26808 /* end confdefs.h. */
26809 #if defined (__MINGW32__) || defined (__CYGWIN__)
26810 # ifdef _WIN32_WINNT
26811 # if _WIN32_WINNT < 0x0501
26812 # undef _WIN32_WINNT
26813 # define _WIN32_WINNT 0x0501
26816 # define _WIN32_WINNT 0x0501
26818 #endif /* __MINGW32__ || __CYGWIN__ */
26820 void callback() { }
26824 std::thread t(callback);
26829 if ac_fn_cxx_try_compile
"$LINENO"; then :
26830 gdb_cv_cxx_std_thread
=yes
26832 gdb_cv_cxx_std_thread
=no
26834 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
26837 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
26839 if test "$threads" = "yes"; then
26840 # This check must be here, while LIBS includes any necessary
26841 # threading library.
26842 for ac_func
in pthread_sigmask pthread_setname_np
26844 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26845 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
26846 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
26847 cat >>confdefs.h
<<_ACEOF
26848 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26856 CXXFLAGS
="$save_CXXFLAGS"
26858 if test "$want_threading" = "yes"; then
26859 if test "$gdb_cv_cxx_std_thread" = "yes"; then
26861 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
26866 ac_cpp
='$CPP $CPPFLAGS'
26867 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26868 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26869 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
26872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
26873 $as_echo_n "checking for sigsetjmp... " >&6; }
26874 if ${gdb_cv_func_sigsetjmp+:} false
; then :
26875 $as_echo_n "(cached) " >&6
26877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26878 /* end confdefs.h. */
26879 #include <setjmp.h>
26884 while (! sigsetjmp (env, 1))
26885 siglongjmp (env, 1);
26891 if ac_fn_c_try_compile
"$LINENO"; then :
26892 gdb_cv_func_sigsetjmp
=yes
26894 gdb_cv_func_sigsetjmp
=no
26897 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
26901 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
26902 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
26904 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
26909 # Check whether --with-intel_pt was given.
26910 if test "${with_intel_pt+set}" = set; then :
26911 withval
=$with_intel_pt;
26916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
26917 $as_echo_n "checking whether to use intel pt... " >&6; }
26918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
26919 $as_echo "$with_intel_pt" >&6; }
26921 if test "${with_intel_pt}" = no
; then
26922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
26923 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
26926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26927 /* end confdefs.h. */
26929 #include <linux/perf_event.h>
26930 #ifndef PERF_ATTR_SIZE_VER5
26935 if ac_fn_c_try_cpp
"$LINENO"; then :
26940 rm -f conftest.err conftest.i conftest.
$ac_ext
26941 if test "$perf_event" != yes; then
26942 if test "$with_intel_pt" = yes; then
26943 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
26945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
26946 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
26960 acl_save_prefix
="$prefix"
26961 prefix
="$acl_final_prefix"
26962 acl_save_exec_prefix
="$exec_prefix"
26963 exec_prefix
="$acl_final_exec_prefix"
26965 eval additional_includedir
=\"$includedir\"
26966 eval additional_libdir
=\"$libdir\"
26968 exec_prefix
="$acl_save_exec_prefix"
26969 prefix
="$acl_save_prefix"
26972 # Check whether --with-libipt-prefix was given.
26973 if test "${with_libipt_prefix+set}" = set; then :
26974 withval
=$with_libipt_prefix;
26975 if test "X$withval" = "Xno"; then
26978 if test "X$withval" = "X"; then
26980 acl_save_prefix
="$prefix"
26981 prefix
="$acl_final_prefix"
26982 acl_save_exec_prefix
="$exec_prefix"
26983 exec_prefix
="$acl_final_exec_prefix"
26985 eval additional_includedir
=\"$includedir\"
26986 eval additional_libdir
=\"$libdir\"
26988 exec_prefix
="$acl_save_exec_prefix"
26989 prefix
="$acl_save_prefix"
26992 additional_includedir
="$withval/include"
26993 additional_libdir
="$withval/lib"
27000 # Check whether --with-libipt-type was given.
27001 if test "${with_libipt_type+set}" = set; then :
27002 withval
=$with_libipt_type; with_libipt_type
=$withval
27004 with_libipt_type
=auto
27007 lib_type
=`eval echo \$with_libipt_type`
27014 names_already_handled
=
27015 names_next_round
='ipt '
27016 while test -n "$names_next_round"; do
27017 names_this_round
="$names_next_round"
27019 for name
in $names_this_round; do
27021 for n
in $names_already_handled; do
27022 if test "$n" = "$name"; then
27023 already_handled
=yes
27027 if test -z "$already_handled"; then
27028 names_already_handled
="$names_already_handled $name"
27029 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
27030 eval value
=\"\
$HAVE_LIB$uppername\"
27031 if test -n "$value"; then
27032 if test "$value" = yes; then
27033 eval value
=\"\
$LIB$uppername\"
27034 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
27035 eval value
=\"\
$LTLIB$uppername\"
27036 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
27045 if test $use_additional = yes; then
27046 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
27047 found_dir
="$additional_libdir"
27048 found_so
="$additional_libdir/lib$name.$shlibext"
27049 if test -f "$additional_libdir/lib$name.la"; then
27050 found_la
="$additional_libdir/lib$name.la"
27052 elif test x
$lib_type != xshared
; then
27053 if test -f "$additional_libdir/lib$name.$libext"; then
27054 found_dir
="$additional_libdir"
27055 found_a
="$additional_libdir/lib$name.$libext"
27056 if test -f "$additional_libdir/lib$name.la"; then
27057 found_la
="$additional_libdir/lib$name.la"
27062 if test "X$found_dir" = "X"; then
27063 for x
in $LDFLAGS $LTLIBIPT; do
27065 acl_save_prefix
="$prefix"
27066 prefix
="$acl_final_prefix"
27067 acl_save_exec_prefix
="$exec_prefix"
27068 exec_prefix
="$acl_final_exec_prefix"
27070 exec_prefix
="$acl_save_exec_prefix"
27071 prefix
="$acl_save_prefix"
27075 dir
=`echo "X$x" | sed -e 's/^X-L//'`
27076 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
27078 found_so
="$dir/lib$name.$shlibext"
27079 if test -f "$dir/lib$name.la"; then
27080 found_la
="$dir/lib$name.la"
27082 elif test x
$lib_type != xshared
; then
27083 if test -f "$dir/lib$name.$libext"; then
27085 found_a
="$dir/lib$name.$libext"
27086 if test -f "$dir/lib$name.la"; then
27087 found_la
="$dir/lib$name.la"
27093 if test "X$found_dir" != "X"; then
27098 if test "X$found_dir" != "X"; then
27099 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
27100 if test "X$found_so" != "X"; then
27101 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
27102 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
27105 for x
in $ltrpathdirs; do
27106 if test "X$x" = "X$found_dir"; then
27111 if test -z "$haveit"; then
27112 ltrpathdirs
="$ltrpathdirs $found_dir"
27114 if test "$hardcode_direct" = yes; then
27115 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
27117 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
27118 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
27120 for x
in $rpathdirs; do
27121 if test "X$x" = "X$found_dir"; then
27126 if test -z "$haveit"; then
27127 rpathdirs
="$rpathdirs $found_dir"
27131 for x
in $LDFLAGS $LIBIPT; do
27133 acl_save_prefix
="$prefix"
27134 prefix
="$acl_final_prefix"
27135 acl_save_exec_prefix
="$exec_prefix"
27136 exec_prefix
="$acl_final_exec_prefix"
27138 exec_prefix
="$acl_save_exec_prefix"
27139 prefix
="$acl_save_prefix"
27141 if test "X$x" = "X-L$found_dir"; then
27146 if test -z "$haveit"; then
27147 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
27149 if test "$hardcode_minus_L" != no
; then
27150 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
27152 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
27158 if test "X$found_a" != "X"; then
27159 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
27161 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
27164 additional_includedir
=
27165 case "$found_dir" in
27167 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
27168 additional_includedir
="$basedir/include"
27171 if test "X$additional_includedir" != "X"; then
27172 if test "X$additional_includedir" != "X/usr/include"; then
27174 if test "X$additional_includedir" = "X/usr/local/include"; then
27175 if test -n "$GCC"; then
27177 linux
*) haveit
=yes;;
27181 if test -z "$haveit"; then
27182 for x
in $CPPFLAGS $INCIPT; do
27184 acl_save_prefix
="$prefix"
27185 prefix
="$acl_final_prefix"
27186 acl_save_exec_prefix
="$exec_prefix"
27187 exec_prefix
="$acl_final_exec_prefix"
27189 exec_prefix
="$acl_save_exec_prefix"
27190 prefix
="$acl_save_prefix"
27192 if test "X$x" = "X-I$additional_includedir"; then
27197 if test -z "$haveit"; then
27198 if test -d "$additional_includedir"; then
27199 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
27205 if test -n "$found_la"; then
27206 save_libdir
="$libdir"
27207 case "$found_la" in
27208 */* |
*\\*) .
"$found_la" ;;
27209 *) .
"./$found_la" ;;
27211 libdir
="$save_libdir"
27212 for dep
in $dependency_libs; do
27215 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
27216 if test "X$additional_libdir" != "X/usr/lib"; then
27218 if test "X$additional_libdir" = "X/usr/local/lib"; then
27219 if test -n "$GCC"; then
27221 linux
*) haveit
=yes;;
27225 if test -z "$haveit"; then
27227 for x
in $LDFLAGS $LIBIPT; do
27229 acl_save_prefix
="$prefix"
27230 prefix
="$acl_final_prefix"
27231 acl_save_exec_prefix
="$exec_prefix"
27232 exec_prefix
="$acl_final_exec_prefix"
27234 exec_prefix
="$acl_save_exec_prefix"
27235 prefix
="$acl_save_prefix"
27237 if test "X$x" = "X-L$additional_libdir"; then
27242 if test -z "$haveit"; then
27243 if test -d "$additional_libdir"; then
27244 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
27248 for x
in $LDFLAGS $LTLIBIPT; do
27250 acl_save_prefix
="$prefix"
27251 prefix
="$acl_final_prefix"
27252 acl_save_exec_prefix
="$exec_prefix"
27253 exec_prefix
="$acl_final_exec_prefix"
27255 exec_prefix
="$acl_save_exec_prefix"
27256 prefix
="$acl_save_prefix"
27258 if test "X$x" = "X-L$additional_libdir"; then
27263 if test -z "$haveit"; then
27264 if test -d "$additional_libdir"; then
27265 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
27272 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
27273 if test "$enable_rpath" != no
; then
27275 for x
in $rpathdirs; do
27276 if test "X$x" = "X$dir"; then
27281 if test -z "$haveit"; then
27282 rpathdirs
="$rpathdirs $dir"
27285 for x
in $ltrpathdirs; do
27286 if test "X$x" = "X$dir"; then
27291 if test -z "$haveit"; then
27292 ltrpathdirs
="$ltrpathdirs $dir"
27297 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
27300 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
27303 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
27304 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
27310 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
27311 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
27312 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
27314 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
27315 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
27322 if test "X$rpathdirs" != "X"; then
27323 if test -n "$hardcode_libdir_separator"; then
27325 for found_dir
in $rpathdirs; do
27326 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
27328 acl_save_libdir
="$libdir"
27330 eval flag
=\"$hardcode_libdir_flag_spec\"
27331 libdir
="$acl_save_libdir"
27332 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
27334 for found_dir
in $rpathdirs; do
27335 acl_save_libdir
="$libdir"
27336 libdir
="$found_dir"
27337 eval flag
=\"$hardcode_libdir_flag_spec\"
27338 libdir
="$acl_save_libdir"
27339 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
27343 if test "X$ltrpathdirs" != "X"; then
27344 for found_dir
in $ltrpathdirs; do
27345 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
27350 ac_save_CPPFLAGS
="$CPPFLAGS"
27352 for element
in $INCIPT; do
27354 for x
in $CPPFLAGS; do
27356 acl_save_prefix
="$prefix"
27357 prefix
="$acl_final_prefix"
27358 acl_save_exec_prefix
="$exec_prefix"
27359 exec_prefix
="$acl_final_exec_prefix"
27361 exec_prefix
="$acl_save_exec_prefix"
27362 prefix
="$acl_save_prefix"
27364 if test "X$x" = "X$element"; then
27369 if test -z "$haveit"; then
27370 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
27375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
27376 $as_echo_n "checking for libipt... " >&6; }
27377 if ${ac_cv_libipt+:} false
; then :
27378 $as_echo_n "(cached) " >&6
27381 ac_save_LIBS
="$LIBS"
27382 LIBS
="$LIBS $LIBIPT"
27383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27384 /* end confdefs.h. */
27385 #include "intel-pt.h"
27389 pt_insn_alloc_decoder (0);
27394 if ac_fn_c_try_link
"$LINENO"; then :
27399 rm -f core conftest.err conftest.
$ac_objext \
27400 conftest
$ac_exeext conftest.
$ac_ext
27401 LIBS
="$ac_save_LIBS"
27404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
27405 $as_echo "$ac_cv_libipt" >&6; }
27406 if test "$ac_cv_libipt" = yes; then
27409 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
27411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
27412 $as_echo_n "checking how to link with libipt... " >&6; }
27413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
27414 $as_echo "$LIBIPT" >&6; }
27417 CPPFLAGS
="$ac_save_CPPFLAGS"
27427 if test "$HAVE_LIBIPT" != yes; then
27428 if test "$with_intel_pt" = yes; then
27429 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
27431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
27432 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
27436 LIBS
="$LIBS $LIBIPT"
27437 for ac_func
in pt_insn_event
27439 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
27440 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
27441 cat >>confdefs.h
<<_ACEOF
27442 #define HAVE_PT_INSN_EVENT 1
27448 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
27450 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
27452 cat >>confdefs.h
<<_ACEOF
27453 #define HAVE_STRUCT_PT_INSN_ENABLED 1
27458 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
27460 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
27462 cat >>confdefs.h
<<_ACEOF
27463 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
27473 # Check if the compiler and runtime support printing long longs.
27475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
27476 $as_echo_n "checking for long long support in printf... " >&6; }
27477 if ${gdb_cv_printf_has_long_long+:} false
; then :
27478 $as_echo_n "(cached) " >&6
27480 if test "$cross_compiling" = yes; then :
27481 gdb_cv_printf_has_long_long
=no
27483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27484 /* end confdefs.h. */
27485 $ac_includes_default
27491 l = (l << 16) + 0x0123;
27492 l = (l << 16) + 0x4567;
27493 l = (l << 16) + 0x89ab;
27494 l = (l << 16) + 0xcdef;
27495 sprintf (buf, "0x%016llx", l);
27496 return (strcmp ("0x0123456789abcdef", buf));
27501 if ac_fn_c_try_run
"$LINENO"; then :
27502 gdb_cv_printf_has_long_long
=yes
27504 gdb_cv_printf_has_long_long
=no
27506 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27507 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
27512 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
27513 if test "$gdb_cv_printf_has_long_long" = yes; then
27515 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
27520 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
27522 for ac_header
in sys
/procfs.h
27524 ac_fn_c_check_header_mongrel
"$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
27525 if test "x$ac_cv_header_sys_procfs_h" = xyes
; then :
27526 cat >>confdefs.h
<<_ACEOF
27527 #define HAVE_SYS_PROCFS_H 1
27534 if test "$ac_cv_header_sys_procfs_h" = yes; then
27536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
27537 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
27538 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
27539 $as_echo_n "(cached) " >&6
27541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27542 /* end confdefs.h. */
27545 #include <sys/procfs.h>
27554 if ac_fn_c_try_compile
"$LINENO"; then :
27555 bfd_cv_have_sys_procfs_type_gregset_t
=yes
27557 bfd_cv_have_sys_procfs_type_gregset_t
=no
27560 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27563 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
27565 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
27568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
27569 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
27572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
27573 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
27574 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
27575 $as_echo_n "(cached) " >&6
27577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27578 /* end confdefs.h. */
27581 #include <sys/procfs.h>
27590 if ac_fn_c_try_compile
"$LINENO"; then :
27591 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
27593 bfd_cv_have_sys_procfs_type_fpregset_t
=no
27596 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27599 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
27601 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
27604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
27605 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
27608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
27609 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
27610 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
27611 $as_echo_n "(cached) " >&6
27613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27614 /* end confdefs.h. */
27617 #include <sys/procfs.h>
27626 if ac_fn_c_try_compile
"$LINENO"; then :
27627 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
27629 bfd_cv_have_sys_procfs_type_prgregset_t
=no
27632 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27635 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
27637 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
27640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
27641 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
27644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
27645 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
27646 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
27647 $as_echo_n "(cached) " >&6
27649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27650 /* end confdefs.h. */
27653 #include <sys/procfs.h>
27662 if ac_fn_c_try_compile
"$LINENO"; then :
27663 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
27665 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
27668 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27671 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
27673 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
27676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
27677 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
27680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
27681 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
27682 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
27683 $as_echo_n "(cached) " >&6
27685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27686 /* end confdefs.h. */
27689 #include <sys/procfs.h>
27698 if ac_fn_c_try_compile
"$LINENO"; then :
27699 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
27701 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
27704 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27707 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
27709 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
27712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
27713 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
27716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
27717 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
27718 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
27719 $as_echo_n "(cached) " >&6
27721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27722 /* end confdefs.h. */
27725 #include <sys/procfs.h>
27734 if ac_fn_c_try_compile
"$LINENO"; then :
27735 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
27737 bfd_cv_have_sys_procfs_type_lwpid_t
=no
27740 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27743 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
27745 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
27748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
27749 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
27752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
27753 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
27754 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
27755 $as_echo_n "(cached) " >&6
27757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27758 /* end confdefs.h. */
27761 #include <sys/procfs.h>
27770 if ac_fn_c_try_compile
"$LINENO"; then :
27771 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
27773 bfd_cv_have_sys_procfs_type_psaddr_t
=no
27776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27779 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
27781 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
27784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
27785 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
27788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
27789 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
27790 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
27791 $as_echo_n "(cached) " >&6
27793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27794 /* end confdefs.h. */
27797 #include <sys/procfs.h>
27801 elf_fpregset_t avar
27806 if ac_fn_c_try_compile
"$LINENO"; then :
27807 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
27809 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
27812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27815 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
27817 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
27820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
27821 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
27827 # Check whether --with-xxhash was given.
27828 if test "${with_xxhash+set}" = set; then :
27829 withval
=$with_xxhash;
27835 if test "x$with_xxhash" != "xno"; then
27846 acl_save_prefix
="$prefix"
27847 prefix
="$acl_final_prefix"
27848 acl_save_exec_prefix
="$exec_prefix"
27849 exec_prefix
="$acl_final_exec_prefix"
27851 eval additional_includedir
=\"$includedir\"
27852 eval additional_libdir
=\"$libdir\"
27854 exec_prefix
="$acl_save_exec_prefix"
27855 prefix
="$acl_save_prefix"
27858 # Check whether --with-libxxhash-prefix was given.
27859 if test "${with_libxxhash_prefix+set}" = set; then :
27860 withval
=$with_libxxhash_prefix;
27861 if test "X$withval" = "Xno"; then
27864 if test "X$withval" = "X"; then
27866 acl_save_prefix
="$prefix"
27867 prefix
="$acl_final_prefix"
27868 acl_save_exec_prefix
="$exec_prefix"
27869 exec_prefix
="$acl_final_exec_prefix"
27871 eval additional_includedir
=\"$includedir\"
27872 eval additional_libdir
=\"$libdir\"
27874 exec_prefix
="$acl_save_exec_prefix"
27875 prefix
="$acl_save_prefix"
27878 additional_includedir
="$withval/include"
27879 additional_libdir
="$withval/lib"
27886 # Check whether --with-libxxhash-type was given.
27887 if test "${with_libxxhash_type+set}" = set; then :
27888 withval
=$with_libxxhash_type; with_libxxhash_type
=$withval
27890 with_libxxhash_type
=auto
27893 lib_type
=`eval echo \$with_libxxhash_type`
27900 names_already_handled
=
27901 names_next_round
='xxhash '
27902 while test -n "$names_next_round"; do
27903 names_this_round
="$names_next_round"
27905 for name
in $names_this_round; do
27907 for n
in $names_already_handled; do
27908 if test "$n" = "$name"; then
27909 already_handled
=yes
27913 if test -z "$already_handled"; then
27914 names_already_handled
="$names_already_handled $name"
27915 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
27916 eval value
=\"\
$HAVE_LIB$uppername\"
27917 if test -n "$value"; then
27918 if test "$value" = yes; then
27919 eval value
=\"\
$LIB$uppername\"
27920 test -z "$value" || LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$value"
27921 eval value
=\"\
$LTLIB$uppername\"
27922 test -z "$value" || LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$value"
27931 if test $use_additional = yes; then
27932 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
27933 found_dir
="$additional_libdir"
27934 found_so
="$additional_libdir/lib$name.$shlibext"
27935 if test -f "$additional_libdir/lib$name.la"; then
27936 found_la
="$additional_libdir/lib$name.la"
27938 elif test x
$lib_type != xshared
; then
27939 if test -f "$additional_libdir/lib$name.$libext"; then
27940 found_dir
="$additional_libdir"
27941 found_a
="$additional_libdir/lib$name.$libext"
27942 if test -f "$additional_libdir/lib$name.la"; then
27943 found_la
="$additional_libdir/lib$name.la"
27948 if test "X$found_dir" = "X"; then
27949 for x
in $LDFLAGS $LTLIBXXHASH; do
27951 acl_save_prefix
="$prefix"
27952 prefix
="$acl_final_prefix"
27953 acl_save_exec_prefix
="$exec_prefix"
27954 exec_prefix
="$acl_final_exec_prefix"
27956 exec_prefix
="$acl_save_exec_prefix"
27957 prefix
="$acl_save_prefix"
27961 dir
=`echo "X$x" | sed -e 's/^X-L//'`
27962 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
27964 found_so
="$dir/lib$name.$shlibext"
27965 if test -f "$dir/lib$name.la"; then
27966 found_la
="$dir/lib$name.la"
27968 elif test x
$lib_type != xshared
; then
27969 if test -f "$dir/lib$name.$libext"; then
27971 found_a
="$dir/lib$name.$libext"
27972 if test -f "$dir/lib$name.la"; then
27973 found_la
="$dir/lib$name.la"
27979 if test "X$found_dir" != "X"; then
27984 if test "X$found_dir" != "X"; then
27985 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$found_dir -l$name"
27986 if test "X$found_so" != "X"; then
27987 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
27988 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
27991 for x
in $ltrpathdirs; do
27992 if test "X$x" = "X$found_dir"; then
27997 if test -z "$haveit"; then
27998 ltrpathdirs
="$ltrpathdirs $found_dir"
28000 if test "$hardcode_direct" = yes; then
28001 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
28003 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
28004 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
28006 for x
in $rpathdirs; do
28007 if test "X$x" = "X$found_dir"; then
28012 if test -z "$haveit"; then
28013 rpathdirs
="$rpathdirs $found_dir"
28017 for x
in $LDFLAGS $LIBXXHASH; do
28019 acl_save_prefix
="$prefix"
28020 prefix
="$acl_final_prefix"
28021 acl_save_exec_prefix
="$exec_prefix"
28022 exec_prefix
="$acl_final_exec_prefix"
28024 exec_prefix
="$acl_save_exec_prefix"
28025 prefix
="$acl_save_prefix"
28027 if test "X$x" = "X-L$found_dir"; then
28032 if test -z "$haveit"; then
28033 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir"
28035 if test "$hardcode_minus_L" != no
; then
28036 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
28038 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
28044 if test "X$found_a" != "X"; then
28045 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_a"
28047 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir -l$name"
28050 additional_includedir
=
28051 case "$found_dir" in
28053 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
28054 additional_includedir
="$basedir/include"
28057 if test "X$additional_includedir" != "X"; then
28058 if test "X$additional_includedir" != "X/usr/include"; then
28060 if test "X$additional_includedir" = "X/usr/local/include"; then
28061 if test -n "$GCC"; then
28063 linux
*) haveit
=yes;;
28067 if test -z "$haveit"; then
28068 for x
in $CPPFLAGS $INCXXHASH; do
28070 acl_save_prefix
="$prefix"
28071 prefix
="$acl_final_prefix"
28072 acl_save_exec_prefix
="$exec_prefix"
28073 exec_prefix
="$acl_final_exec_prefix"
28075 exec_prefix
="$acl_save_exec_prefix"
28076 prefix
="$acl_save_prefix"
28078 if test "X$x" = "X-I$additional_includedir"; then
28083 if test -z "$haveit"; then
28084 if test -d "$additional_includedir"; then
28085 INCXXHASH
="${INCXXHASH}${INCXXHASH:+ }-I$additional_includedir"
28091 if test -n "$found_la"; then
28092 save_libdir
="$libdir"
28093 case "$found_la" in
28094 */* |
*\\*) .
"$found_la" ;;
28095 *) .
"./$found_la" ;;
28097 libdir
="$save_libdir"
28098 for dep
in $dependency_libs; do
28101 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
28102 if test "X$additional_libdir" != "X/usr/lib"; then
28104 if test "X$additional_libdir" = "X/usr/local/lib"; then
28105 if test -n "$GCC"; then
28107 linux
*) haveit
=yes;;
28111 if test -z "$haveit"; then
28113 for x
in $LDFLAGS $LIBXXHASH; do
28115 acl_save_prefix
="$prefix"
28116 prefix
="$acl_final_prefix"
28117 acl_save_exec_prefix
="$exec_prefix"
28118 exec_prefix
="$acl_final_exec_prefix"
28120 exec_prefix
="$acl_save_exec_prefix"
28121 prefix
="$acl_save_prefix"
28123 if test "X$x" = "X-L$additional_libdir"; then
28128 if test -z "$haveit"; then
28129 if test -d "$additional_libdir"; then
28130 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$additional_libdir"
28134 for x
in $LDFLAGS $LTLIBXXHASH; do
28136 acl_save_prefix
="$prefix"
28137 prefix
="$acl_final_prefix"
28138 acl_save_exec_prefix
="$exec_prefix"
28139 exec_prefix
="$acl_final_exec_prefix"
28141 exec_prefix
="$acl_save_exec_prefix"
28142 prefix
="$acl_save_prefix"
28144 if test "X$x" = "X-L$additional_libdir"; then
28149 if test -z "$haveit"; then
28150 if test -d "$additional_libdir"; then
28151 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$additional_libdir"
28158 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
28159 if test "$enable_rpath" != no
; then
28161 for x
in $rpathdirs; do
28162 if test "X$x" = "X$dir"; then
28167 if test -z "$haveit"; then
28168 rpathdirs
="$rpathdirs $dir"
28171 for x
in $ltrpathdirs; do
28172 if test "X$x" = "X$dir"; then
28177 if test -z "$haveit"; then
28178 ltrpathdirs
="$ltrpathdirs $dir"
28183 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
28186 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
28189 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$dep"
28190 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$dep"
28196 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
28197 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
28198 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l$name"
28200 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l:lib$name.$libext"
28201 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l:lib$name.$libext"
28208 if test "X$rpathdirs" != "X"; then
28209 if test -n "$hardcode_libdir_separator"; then
28211 for found_dir
in $rpathdirs; do
28212 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
28214 acl_save_libdir
="$libdir"
28216 eval flag
=\"$hardcode_libdir_flag_spec\"
28217 libdir
="$acl_save_libdir"
28218 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
28220 for found_dir
in $rpathdirs; do
28221 acl_save_libdir
="$libdir"
28222 libdir
="$found_dir"
28223 eval flag
=\"$hardcode_libdir_flag_spec\"
28224 libdir
="$acl_save_libdir"
28225 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
28229 if test "X$ltrpathdirs" != "X"; then
28230 for found_dir
in $ltrpathdirs; do
28231 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-R$found_dir"
28236 ac_save_CPPFLAGS
="$CPPFLAGS"
28238 for element
in $INCXXHASH; do
28240 for x
in $CPPFLAGS; do
28242 acl_save_prefix
="$prefix"
28243 prefix
="$acl_final_prefix"
28244 acl_save_exec_prefix
="$exec_prefix"
28245 exec_prefix
="$acl_final_exec_prefix"
28247 exec_prefix
="$acl_save_exec_prefix"
28248 prefix
="$acl_save_prefix"
28250 if test "X$x" = "X$element"; then
28255 if test -z "$haveit"; then
28256 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
28261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxxhash" >&5
28262 $as_echo_n "checking for libxxhash... " >&6; }
28263 if ${ac_cv_libxxhash+:} false
; then :
28264 $as_echo_n "(cached) " >&6
28267 ac_save_LIBS
="$LIBS"
28268 LIBS
="$LIBS $LIBXXHASH"
28269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28270 /* end confdefs.h. */
28271 #include <xxhash.h>
28275 XXH32("foo", 3, 0);
28281 if ac_fn_c_try_link
"$LINENO"; then :
28282 ac_cv_libxxhash
=yes
28286 rm -f core conftest.err conftest.
$ac_objext \
28287 conftest
$ac_exeext conftest.
$ac_ext
28288 LIBS
="$ac_save_LIBS"
28291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxxhash" >&5
28292 $as_echo "$ac_cv_libxxhash" >&6; }
28293 if test "$ac_cv_libxxhash" = yes; then
28296 $as_echo "#define HAVE_LIBXXHASH 1" >>confdefs.h
28298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libxxhash" >&5
28299 $as_echo_n "checking how to link with libxxhash... " >&6; }
28300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXXHASH" >&5
28301 $as_echo "$LIBXXHASH" >&6; }
28304 CPPFLAGS
="$ac_save_CPPFLAGS"
28314 if test "$HAVE_LIBXXHASH" != yes; then
28315 if test "$with_xxhash" = yes; then
28316 as_fn_error $?
"xxhash is missing or unusable" "$LINENO" 5
28319 if test "x$with_xxhash" = "xauto"; then
28320 with_xxhash
="$HAVE_LIBXXHASH"
28324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
28325 $as_echo_n "checking whether to use xxhash... " >&6; }
28326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
28327 $as_echo "$with_xxhash" >&6; }
28330 # Check the return and argument types of ptrace.
28333 for ac_header
in sys
/ptrace.h ptrace.h
28335 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28336 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28337 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
28338 cat >>confdefs.h
<<_ACEOF
28339 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28347 gdb_ptrace_headers
='
28348 #include <sys/types.h>
28349 #if HAVE_SYS_PTRACE_H
28350 # include <sys/ptrace.h>
28353 # include <unistd.h>
28357 # Check return type. Varargs (used on GNU/Linux) conflict with the
28358 # empty argument list, so check for that explicitly.
28359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
28360 $as_echo_n "checking return type of ptrace... " >&6; }
28361 if ${gdb_cv_func_ptrace_ret+:} false
; then :
28362 $as_echo_n "(cached) " >&6
28364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28365 /* end confdefs.h. */
28366 Â $gdb_ptrace_headers
28370 extern long ptrace (enum __ptrace_request, ...);
28376 if ac_fn_c_try_compile
"$LINENO"; then :
28377 gdb_cv_func_ptrace_ret
='long'
28379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28380 /* end confdefs.h. */
28381 $gdb_ptrace_headers
28385 extern int ptrace ();
28391 if ac_fn_c_try_compile
"$LINENO"; then :
28392 gdb_cv_func_ptrace_ret
='int'
28394 gdb_cv_func_ptrace_ret
='long'
28397 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28400 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
28404 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
28407 cat >>confdefs.h
<<_ACEOF
28408 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
28412 # Check argument types.
28413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
28414 $as_echo_n "checking types of arguments for ptrace... " >&6; }
28415 if ${gdb_cv_func_ptrace_args+:} false
; then :
28416 $as_echo_n "(cached) " >&6
28418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28419 /* end confdefs.h. */
28420 $gdb_ptrace_headers
28424 extern long ptrace (enum __ptrace_request, ...);
28430 if ac_fn_c_try_compile
"$LINENO"; then :
28431 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
28433 for gdb_arg1
in 'int' 'long'; do
28434 for gdb_arg2
in 'pid_t' 'int' 'long'; do
28435 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
28436 for gdb_arg4
in 'int' 'long' 'void *'; do
28437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28438 /* end confdefs.h. */
28439 $gdb_ptrace_headers
28443 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
28449 if ac_fn_c_try_compile
"$LINENO"; then :
28450 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
28454 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28456 for gdb_arg5
in 'int *' 'int' 'long'; do
28457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28458 /* end confdefs.h. */
28459 $gdb_ptrace_headers
28463 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
28469 if ac_fn_c_try_compile
"$LINENO"; then :
28470 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
28474 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28480 # Provide a safe default value.
28481 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
28484 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
28488 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
28490 ac_save_IFS
=$IFS; IFS
=','
28491 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
28495 cat >>confdefs.h
<<_ACEOF
28496 #define PTRACE_TYPE_ARG1 $1
28500 cat >>confdefs.h
<<_ACEOF
28501 #define PTRACE_TYPE_ARG3 $3
28505 cat >>confdefs.h
<<_ACEOF
28506 #define PTRACE_TYPE_ARG4 $4
28509 if test -n "$5"; then
28511 cat >>confdefs.h
<<_ACEOF
28512 #define PTRACE_TYPE_ARG5 $5
28518 if test "$cross_compiling" = no
; then
28519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
28520 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
28521 if ${ac_cv_func_setpgrp_void+:} false
; then :
28522 $as_echo_n "(cached) " >&6
28524 if test "$cross_compiling" = yes; then :
28525 as_fn_error $?
"cannot check setpgrp when cross compiling" "$LINENO" 5
28527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28528 /* end confdefs.h. */
28529 $ac_includes_default
28533 /* If this system has a BSD-style setpgrp which takes arguments,
28534 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28535 exit successfully. */
28536 return setpgrp (1,1) != -1;
28541 if ac_fn_c_try_run
"$LINENO"; then :
28542 ac_cv_func_setpgrp_void
=no
28544 ac_cv_func_setpgrp_void
=yes
28546 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28547 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
28552 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
28553 if test $ac_cv_func_setpgrp_void = yes; then
28555 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
28560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
28561 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
28562 if ${ac_cv_func_setpgrp_void+:} false
; then :
28563 $as_echo_n "(cached) " >&6
28565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28566 /* end confdefs.h. */
28567 #include <unistd.h>
28571 if (setpgrp(1,1) == -1)
28580 if ac_fn_c_try_compile
"$LINENO"; then :
28581 ac_cv_func_setpgrp_void
=no
28583 ac_cv_func_setpgrp_void
=yes
28586 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
28590 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
28591 if test "$ac_cv_func_setpgrp_void" = yes; then
28592 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
28597 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
28598 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
28599 #include <sys/proc.h>
28602 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes
; then :
28604 cat >>confdefs.h
<<_ACEOF
28605 #define HAVE_STRUCT_THREAD_TD_PCB 1
28612 # See if <sys/lwp.h> defines `struct lwp`.
28613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
28614 $as_echo_n "checking for struct lwp... " >&6; }
28615 if ${gdb_cv_struct_lwp+:} false
; then :
28616 $as_echo_n "(cached) " >&6
28618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28619 /* end confdefs.h. */
28620 #include <sys/param.h>
28622 #include <sys/lwp.h>
28632 if ac_fn_c_try_compile
"$LINENO"; then :
28633 gdb_cv_struct_lwp
=yes
28635 gdb_cv_struct_lwp
=no
28638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
28642 $as_echo "$gdb_cv_struct_lwp" >&6; }
28643 if test "$gdb_cv_struct_lwp" = yes; then
28645 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
28649 # See if <machine/reg.h> degines `struct reg'.
28650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
28651 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
28652 if ${gdb_cv_struct_reg+:} false
; then :
28653 $as_echo_n "(cached) " >&6
28655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28656 /* end confdefs.h. */
28657 #include <sys/types.h>
28658 #include <machine/reg.h>
28668 if ac_fn_c_try_compile
"$LINENO"; then :
28669 gdb_cv_struct_reg
=yes
28671 gdb_cv_struct_reg
=no
28674 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
28678 $as_echo "$gdb_cv_struct_reg" >&6; }
28679 if test "$gdb_cv_struct_reg" = yes; then
28681 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
28685 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
28686 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
28687 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
28688 #include <machine/reg.h>
28690 if test "x$ac_cv_member_struct_reg_r_fs" = xyes
; then :
28692 cat >>confdefs.h
<<_ACEOF
28693 #define HAVE_STRUCT_REG_R_FS 1
28698 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
28699 #include <machine/reg.h>
28701 if test "x$ac_cv_member_struct_reg_r_gs" = xyes
; then :
28703 cat >>confdefs.h
<<_ACEOF
28704 #define HAVE_STRUCT_REG_R_GS 1
28711 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
28712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
28713 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
28714 if ${gdb_cv_have_ptrace_getregs+:} false
; then :
28715 $as_echo_n "(cached) " >&6
28717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28718 /* end confdefs.h. */
28719 #include <sys/ptrace.h>
28728 if ac_fn_c_try_compile
"$LINENO"; then :
28729 gdb_cv_have_ptrace_getregs
=yes
28731 gdb_cv_have_ptrace_getregs
=no
28734 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
28739 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
28740 if test "$gdb_cv_have_ptrace_getregs" = yes; then
28742 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
28746 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
28747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
28748 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
28749 if ${gdb_cv_have_ptrace_getfpxregs+:} false
; then :
28750 $as_echo_n "(cached) " >&6
28752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28753 /* end confdefs.h. */
28754 #include <sys/ptrace.h>
28763 if ac_fn_c_try_compile
"$LINENO"; then :
28764 gdb_cv_have_ptrace_getfpxregs
=yes
28766 gdb_cv_have_ptrace_getfpxregs
=no
28769 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
28774 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
28775 if test "$gdb_cv_have_ptrace_getfpxregs" = yes; then
28777 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
28781 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
28782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
28783 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
28784 if ${gdb_cv_have_pt_getdbregs+:} false
; then :
28785 $as_echo_n "(cached) " >&6
28787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28788 /* end confdefs.h. */
28789 #include <sys/types.h>
28790 #include <sys/ptrace.h>
28800 if ac_fn_c_try_compile
"$LINENO"; then :
28801 gdb_cv_have_pt_getdbregs
=yes
28803 gdb_cv_have_pt_getdbregs
=no
28806 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
28811 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
28812 if test "$gdb_cv_have_pt_getdbregs" = yes; then
28814 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
28818 # See if <sys/ptrace.h> supports LWP names on FreeBSD
28819 # Older FreeBSD versions don't have the pl_tdname member of
28820 # `struct ptrace_lwpinfo'.
28821 ac_fn_c_check_member
"$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
28823 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes
; then :
28825 cat >>confdefs.h
<<_ACEOF
28826 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
28833 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
28834 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
28836 ac_fn_c_check_member
"$LINENO" "struct ptrace_lwpinfo" "pl_syscall_code" "ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" "#include <sys/ptrace.h>
28838 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes
; then :
28840 cat >>confdefs.h
<<_ACEOF
28841 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
28848 # Check if the compiler supports the `long long' type.
28850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
28851 $as_echo_n "checking for long long support in compiler... " >&6; }
28852 if ${gdb_cv_c_long_long+:} false
; then :
28853 $as_echo_n "(cached) " >&6
28855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28856 /* end confdefs.h. */
28857 extern long long foo;
28861 switch (foo & 2) { case 0: return 1; }
28866 if ac_fn_c_try_compile
"$LINENO"; then :
28867 gdb_cv_c_long_long
=yes
28869 gdb_cv_c_long_long
=no
28871 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
28874 $as_echo "$gdb_cv_c_long_long" >&6; }
28875 if test "$gdb_cv_c_long_long" != yes; then
28876 # libdecnumber requires long long.
28877 as_fn_error $?
"Compiler must support long long for GDB." "$LINENO" 5
28880 # Check if the compiler and runtime support printing decfloats.
28882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
28883 $as_echo_n "checking for decfloat support in printf... " >&6; }
28884 if ${gdb_cv_printf_has_decfloat+:} false
; then :
28885 $as_echo_n "(cached) " >&6
28887 if test "$cross_compiling" = yes; then :
28888 gdb_cv_printf_has_decfloat
=no
28890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28891 /* end confdefs.h. */
28892 $ac_includes_default
28897 _Decimal32 d32 = 1.2345df;
28898 _Decimal64 d64 = 1.2345dd;
28899 _Decimal128 d128 = 1.2345dl;
28900 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
28901 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
28906 if ac_fn_c_try_run
"$LINENO"; then :
28907 gdb_cv_printf_has_decfloat
=yes
28909 gdb_cv_printf_has_decfloat
=no
28911 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28912 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
28917 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
28918 if test "$gdb_cv_printf_has_decfloat" = yes; then
28920 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
28924 # Check if the compiler supports the `long double' type. We can't use
28925 # AC_C_LONG_DOUBLE because that one does additional checks on the
28926 # constants defined in <float.h> that fail on some systems,
28927 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
28929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
28930 $as_echo_n "checking for long double support in compiler... " >&6; }
28931 if ${gdb_cv_c_long_double+:} false
; then :
28932 $as_echo_n "(cached) " >&6
28934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28935 /* end confdefs.h. */
28938 if ac_fn_c_try_compile
"$LINENO"; then :
28939 gdb_cv_c_long_double
=yes
28941 gdb_cv_c_long_double
=no
28943 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
28946 $as_echo "$gdb_cv_c_long_double" >&6; }
28947 if test "$gdb_cv_c_long_double" = yes; then
28949 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
28953 # Check if the compiler and runtime support printing long doubles.
28955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
28956 $as_echo_n "checking for long double support in printf... " >&6; }
28957 if ${gdb_cv_printf_has_long_double+:} false
; then :
28958 $as_echo_n "(cached) " >&6
28960 if test "$cross_compiling" = yes; then :
28961 gdb_cv_printf_has_long_double
=no
28963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28964 /* end confdefs.h. */
28965 $ac_includes_default
28970 long double f = 3.141592653;
28971 sprintf (buf, "%Lg", f);
28972 return (strncmp ("3.14159", buf, 7));
28977 if ac_fn_c_try_run
"$LINENO"; then :
28978 gdb_cv_printf_has_long_double
=yes
28980 gdb_cv_printf_has_long_double
=no
28982 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28983 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
28988 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
28989 if test "$gdb_cv_printf_has_long_double" = yes; then
28991 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
28995 # Check if the compiler and runtime support scanning long doubles.
28997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
28998 $as_echo_n "checking for long double support in scanf... " >&6; }
28999 if ${gdb_cv_scanf_has_long_double+:} false
; then :
29000 $as_echo_n "(cached) " >&6
29002 if test "$cross_compiling" = yes; then :
29003 gdb_cv_scanf_has_long_double
=no
29005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29006 /* end confdefs.h. */
29011 char *buf = "3.141592653";
29013 sscanf (buf, "%Lg", &f);
29014 return !(f > 3.14159 && f < 3.14160);
29019 if ac_fn_c_try_run
"$LINENO"; then :
29020 gdb_cv_scanf_has_long_double
=yes
29022 gdb_cv_scanf_has_long_double
=no
29024 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
29025 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
29029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
29030 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
29031 if test "$gdb_cv_scanf_has_long_double" = yes; then
29033 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
29039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
29040 $as_echo_n "checking for -bbigtoc option... " >&6; }
29041 if ${gdb_cv_bigtoc+:} false
; then :
29042 $as_echo_n "(cached) " >&6
29044 SAVE_LDFLAGS
=$LDFLAGS
29047 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
29048 *) gdb_cv_bigtoc
=-bbigtoc ;;
29051 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
29052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29053 /* end confdefs.h. */
29063 if ac_fn_c_try_link
"$LINENO"; then :
29069 rm -f core conftest.err conftest.
$ac_objext \
29070 conftest
$ac_exeext conftest.
$ac_ext
29071 LDFLAGS
="${SAVE_LDFLAGS}"
29074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
29075 $as_echo "$gdb_cv_bigtoc" >&6; }
29076 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
29080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
29081 $as_echo_n "checking for the dynamic export flag... " >&6; }
29083 if test "${gdb_native}" = yes; then
29084 # The dynamically loaded libthread_db needs access to symbols in the gdb
29085 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
29086 # may not be supported there.
29087 old_LDFLAGS
="$LDFLAGS"
29088 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
29089 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
29090 LDFLAGS
="$LDFLAGS $RDYNAMIC"
29091 if test "${have_libpython}" = no
; then
29092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29093 /* end confdefs.h. */
29103 if ac_fn_c_try_link
"$LINENO"; then :
29106 rm -f core conftest.err conftest.
$ac_objext \
29107 conftest
$ac_exeext conftest.
$ac_ext
29109 # Workaround http://bugs.python.org/issue4434 where static
29110 # libpythonX.Y.a would get its symbols required for
29111 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
29112 # Problem does not happen for the recommended libpythonX.Y.so linkage.
29114 # Note the workaround for Python
29115 # http://bugs.python.org/issue10112 earlier has removed
29116 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
29117 # here too, as otherwise it'd make this -Wl,--dynamic-list test
29119 old_CFLAGS
="$CFLAGS"
29120 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
29122 LIBS
="$LIBS $PYTHON_LIBS"
29123 old_CPPFLAGS
="$CPPFLAGS"
29124 CPPFLAGS
="$CPPFLAGS $PYTHON_CPPFLAGS"
29125 if test "$cross_compiling" = yes; then :
29128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29129 /* end confdefs.h. */
29130 #include "Python.h"
29136 err = PyRun_SimpleString ("import ctypes\n");
29138 return err == 0 ? 0 : 1;
29143 if ac_fn_c_try_run
"$LINENO"; then :
29146 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
29147 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
29151 CFLAGS
="$old_CFLAGS"
29152 CPPFLAGS
="$old_CPPFLAGS"
29154 LDFLAGS
="$old_LDFLAGS"
29156 if $dynamic_list; then
29157 found
="-Wl,--dynamic-list"
29158 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
29161 RDYNAMIC
="-rdynamic"
29164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
29165 $as_echo "$found" >&6; }
29167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether execinfo.h backtrace is available" >&5
29168 $as_echo_n "checking whether execinfo.h backtrace is available... " >&6; }
29169 if ${gdb_cv_execinfo_backtrace+:} false
; then :
29170 $as_echo_n "(cached) " >&6
29172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29173 /* end confdefs.h. */
29175 #include <execinfo.h>
29183 f = backtrace (b, 2);
29184 backtrace_symbols_fd (b, f, 2);
29190 if ac_fn_c_try_link
"$LINENO"; then :
29191 gdb_cv_execinfo_backtrace
=yes
29193 gdb_cv_execinfo_backtrace
=no
29195 rm -f core conftest.err conftest.
$ac_objext \
29196 conftest
$ac_exeext conftest.
$ac_ext
29198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_execinfo_backtrace" >&5
29199 $as_echo "$gdb_cv_execinfo_backtrace" >&6; }
29200 if test "$gdb_cv_execinfo_backtrace" = yes; then
29202 $as_echo "#define HAVE_EXECINFO_BACKTRACE 1" >>confdefs.h
29207 if test "${build}" = "${host}" -a "${host}" = "${target}" ; then
29210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
29211 $as_echo_n "checking for AiX thread debugging library... " >&6; }
29212 if ${gdb_cv_have_aix_thread_debug+:} false
; then :
29213 $as_echo_n "(cached) " >&6
29215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29216 /* end confdefs.h. */
29217 #include <sys/pthdebug.h>
29221 #ifndef PTHDB_VERSION_3
29229 if ac_fn_c_try_compile
"$LINENO"; then :
29230 gdb_cv_have_aix_thread_debug
=yes
29232 gdb_cv_have_aix_thread_debug
=no
29235 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
29240 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
29241 if test "$gdb_cv_have_aix_thread_debug" = yes; then
29242 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
29243 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
29244 LIBS
="$LIBS -lpthdebug"
29246 # Older versions of AIX do not provide the declaration for
29247 # the getthrds function (it appears that it was introduced
29249 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
29251 if test "x$ac_cv_have_decl_getthrds" = xyes
; then :
29257 cat >>confdefs.h
<<_ACEOF
29258 #define HAVE_DECL_GETTHRDS $ac_have_decl
29267 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
29268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
29269 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
29270 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false
; then :
29271 $as_echo_n "(cached) " >&6
29273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29274 /* end confdefs.h. */
29275 #include <thread_db.h>
29279 int i = TD_NOTALLOC;
29285 if ac_fn_c_try_compile
"$LINENO"; then :
29286 gdb_cv_thread_db_h_has_td_notalloc
=yes
29288 gdb_cv_thread_db_h_has_td_notalloc
=no
29291 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
29295 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
29297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
29298 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
29299 if ${gdb_cv_thread_db_h_has_td_version+:} false
; then :
29300 $as_echo_n "(cached) " >&6
29302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29303 /* end confdefs.h. */
29304 #include <thread_db.h>
29308 int i = TD_VERSION;
29314 if ac_fn_c_try_compile
"$LINENO"; then :
29315 gdb_cv_thread_db_h_has_td_version
=yes
29317 gdb_cv_thread_db_h_has_td_version
=no
29320 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
29324 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
29326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
29327 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
29328 if ${gdb_cv_thread_db_h_has_td_notls+:} false
; then :
29329 $as_echo_n "(cached) " >&6
29331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29332 /* end confdefs.h. */
29333 #include <thread_db.h>
29343 if ac_fn_c_try_compile
"$LINENO"; then :
29344 gdb_cv_thread_db_h_has_td_notls
=yes
29346 gdb_cv_thread_db_h_has_td_notls
=no
29349 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
29353 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
29355 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
29357 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
29360 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
29362 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
29365 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
29367 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
29380 cat >>confdefs.h
<<_ACEOF
29381 #define GDBINIT "$gdbinit"
29386 cat >>confdefs.h
<<_ACEOF
29387 #define GDBEARLYINIT ".gdbearlyinit"
29392 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
29393 # except that the argument to --with-sysroot is optional.
29394 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
29395 if test "x$with_sysroot" = xyes
; then
29396 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
29399 # Check whether --with-sysroot was given.
29400 if test "${with_sysroot+set}" = set; then :
29401 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
29403 TARGET_SYSTEM_ROOT
=
29407 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
29408 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
29409 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
29410 ac_define_dir
=`eval echo $ac_define_dir`
29412 cat >>confdefs.h
<<_ACEOF
29413 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
29419 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
29420 if test "x$prefix" = xNONE
; then
29421 test_prefix
=/usr
/local
29423 test_prefix
=$prefix
29426 test_prefix
=$exec_prefix
29429 case ${ac_define_dir} in
29430 "${test_prefix}"|
"${test_prefix}/"*|\
29431 '${exec_prefix}'|
'${exec_prefix}/'*)
29436 cat >>confdefs.h
<<_ACEOF
29437 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
29444 # Check whether --with-system-gdbinit was given.
29445 if test "${with_system_gdbinit+set}" = set; then :
29446 withval
=$with_system_gdbinit;
29447 SYSTEM_GDBINIT
=$withval
29453 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
29454 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
29455 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
29456 ac_define_dir
=`eval echo $ac_define_dir`
29458 cat >>confdefs.h
<<_ACEOF
29459 #define SYSTEM_GDBINIT "$ac_define_dir"
29465 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
29466 if test "x$prefix" = xNONE
; then
29467 test_prefix
=/usr
/local
29469 test_prefix
=$prefix
29472 test_prefix
=$exec_prefix
29475 case ${ac_define_dir} in
29476 "${test_prefix}"|
"${test_prefix}/"*|\
29477 '${exec_prefix}'|
'${exec_prefix}/'*)
29482 cat >>confdefs.h
<<_ACEOF
29483 #define SYSTEM_GDBINIT_RELOCATABLE $value
29490 # Check whether --with-system-gdbinit-dir was given.
29491 if test "${with_system_gdbinit_dir+set}" = set; then :
29492 withval
=$with_system_gdbinit_dir;
29493 SYSTEM_GDBINIT_DIR
=$withval
29495 SYSTEM_GDBINIT_DIR
=
29499 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
29500 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
29501 ac_define_dir
=`eval echo $SYSTEM_GDBINIT_DIR`
29502 ac_define_dir
=`eval echo $ac_define_dir`
29504 cat >>confdefs.h
<<_ACEOF
29505 #define SYSTEM_GDBINIT_DIR "$ac_define_dir"
29511 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
29512 if test "x$prefix" = xNONE
; then
29513 test_prefix
=/usr
/local
29515 test_prefix
=$prefix
29518 test_prefix
=$exec_prefix
29521 case ${ac_define_dir} in
29522 "${test_prefix}"|
"${test_prefix}/"*|\
29523 '${exec_prefix}'|
'${exec_prefix}/'*)
29528 cat >>confdefs.h
<<_ACEOF
29529 #define SYSTEM_GDBINIT_DIR_RELOCATABLE $value
29537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the compiler type" >&5
29538 $as_echo_n "checking the compiler type... " >&6; }
29539 if ${gdb_cv_compiler_type+:} false
; then :
29540 $as_echo_n "(cached) " >&6
29542 gdb_cv_compiler_type
=unknown
29543 if test "$gdb_cv_compiler_type" = unknown
; then
29544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29545 /* end confdefs.h. */
29551 #if !defined __GNUC__ || defined __clang__
29559 if ac_fn_c_try_compile
"$LINENO"; then :
29560 gdb_cv_compiler_type
=gcc
29562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29565 if test "$gdb_cv_compiler_type" = unknown
; then
29566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29567 /* end confdefs.h. */
29581 if ac_fn_c_try_compile
"$LINENO"; then :
29582 gdb_cv_compiler_type
=clang
29584 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_compiler_type" >&5
29589 $as_echo "$gdb_cv_compiler_type" >&6; }
29591 GDB_COMPILER_TYPE
="$gdb_cv_compiler_type"
29594 # Check whether --enable-werror was given.
29595 if test "${enable_werror+set}" = set; then :
29596 enableval
=$enable_werror; case "${enableval}" in
29597 yes | y
) ERROR_ON_WARNING
="yes" ;;
29598 no | n
) ERROR_ON_WARNING
="no" ;;
29599 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
29604 # Enable -Werror by default when using gcc. Turn it off for releases.
29605 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
29606 ERROR_ON_WARNING
=yes
29610 if test "${ERROR_ON_WARNING}" = yes ; then
29611 WERROR_CFLAGS
="-Werror"
29614 # The options we'll try to enable.
29615 build_warnings
="-Wall -Wpointer-arith \
29616 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
29617 -Wno-switch -Wno-char-subscripts \
29618 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
29619 -Wno-sign-compare -Wno-error=maybe-uninitialized \
29620 -Wno-mismatched-tags \
29621 -Wno-error=deprecated-register \
29622 -Wsuggest-override \
29623 -Wimplicit-fallthrough=3 \
29624 -Wduplicated-cond \
29626 -Wdeprecated-copy \
29627 -Wdeprecated-copy-dtor \
29629 -Wmissing-declarations \
29630 -Wstrict-null-sentinel \
29633 # The -Wmissing-prototypes flag will be accepted by GCC, but results
29634 # in a warning being printed about the flag not being valid for C++,
29635 # this is something to do with using ccache, and argument ordering.
29636 if test "$GDB_COMPILER_TYPE" != gcc
; then
29637 build_warnings
="$build_warnings -Wmissing-prototypes"
29642 # Enable -Wno-format by default when using gcc on mingw since many
29643 # GCC versions complain about %I64.
29644 build_warnings
="$build_warnings -Wno-format" ;;
29646 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
29647 # doesn't understand.
29648 build_warnings
="$build_warnings -Wno-unknown-pragmas"
29649 # Solaris 11 <unistd.h> marks vfork deprecated.
29650 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
29652 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
29653 # but there's a special case for this below.
29654 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
29657 # Check whether --enable-build-warnings was given.
29658 if test "${enable_build_warnings+set}" = set; then :
29659 enableval
=$enable_build_warnings; case "${enableval}" in
29661 no
) build_warnings
="-w";;
29662 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
29663 build_warnings
="${build_warnings} ${t}";;
29664 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
29665 build_warnings
="${t} ${build_warnings}";;
29666 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
29668 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
29669 echo "Setting compiler warning flags = $build_warnings" 6>&1
29672 # Check whether --enable-gdb-build-warnings was given.
29673 if test "${enable_gdb_build_warnings+set}" = set; then :
29674 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
29676 no
) build_warnings
="-w";;
29677 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
29678 build_warnings
="${build_warnings} ${t}";;
29679 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
29680 build_warnings
="${t} ${build_warnings}";;
29681 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
29683 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
29684 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
29688 # The set of warnings supported by a C++ compiler is not the same as
29689 # of the C compiler.
29691 ac_cpp
='$CXXCPP $CPPFLAGS'
29692 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29693 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29694 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
29698 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
29700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
29701 $as_echo_n "checking compiler warning flags... " >&6; }
29702 # Separate out the -Werror flag as some files just cannot be
29703 # compiled with it enabled.
29704 for w
in ${build_warnings}; do
29705 # GCC does not complain about -Wno-unknown-warning. Invert
29706 # and test -Wunknown-warning instead.
29709 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
29710 -Wformat-nonliteral)
29711 # gcc requires -Wformat before -Wformat-nonliteral
29712 # will work, so stick them together.
29721 -Werr*) WERROR_CFLAGS
=-Werror ;;
29723 # Check whether GCC accepts it.
29724 saved_CFLAGS
="$CFLAGS"
29725 CFLAGS
="$CFLAGS -Werror $wtest"
29726 saved_CXXFLAGS
="$CXXFLAGS"
29727 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
29728 if test "x$w" = "x-Wunused-variable"; then
29729 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
29730 # fixed in GCC 4.9. This test is derived from the gdb
29731 # source code that triggered this bug in GCC.
29732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29733 /* end confdefs.h. */
29734 struct scoped_restore_base {};
29735 struct scoped_restore_tmpl : public scoped_restore_base {
29736 ~scoped_restore_tmpl() {}
29741 const scoped_restore_base &b = scoped_restore_tmpl();
29747 if ac_fn_cxx_try_compile
"$LINENO"; then :
29748 WARN_CFLAGS
="${WARN_CFLAGS} $w"
29750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29753 /* end confdefs.h. */
29763 if ac_fn_cxx_try_compile
"$LINENO"; then :
29764 WARN_CFLAGS
="${WARN_CFLAGS} $w"
29766 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29768 CFLAGS
="$saved_CFLAGS"
29769 CXXFLAGS
="$saved_CXXFLAGS"
29772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
29773 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
29779 ac_cpp='$CPP $CPPFLAGS'
29780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29786 # Check whether --enable-ubsan was given.
29787 if test "${enable_ubsan+set}" = set; then :
29788 enableval=$enable_ubsan;
29793 if test "x
$enable_ubsan" = xauto; then
29794 if $development; then
29799 ac_cpp='$CXXCPP $CPPFLAGS'
29800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29804 if test "x
$enable_ubsan" = xyes; then
29805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
-fsanitize=undefined is accepted
" >&5
29806 $as_echo_n "checking whether
-fsanitize=undefined is accepted...
" >&6; }
29807 saved_CXXFLAGS="$CXXFLAGS"
29808 CXXFLAGS="$CXXFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
29809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29810 /* end confdefs.h. */
29820 if ac_fn_cxx_try_link "$LINENO"; then :
29826 rm -f core conftest.err conftest.$ac_objext \
29827 conftest$ac_exeext conftest.$ac_ext
29828 CXXFLAGS="$saved_CXXFLAGS"
29829 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $enable_ubsan" >&5
29830 $as_echo "$enable_ubsan" >&6; }
29831 if test "x
$enable_ubsan" = xyes; then
29832 WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
29833 CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined
"
29837 ac_cpp='$CPP $CPPFLAGS'
29838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29844 # In the Cygwin environment, we need some additional flags.
29845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
29846 $as_echo_n "checking
for cygwin...
" >&6; }
29847 if ${gdb_cv_os_cygwin+:} false; then :
29848 $as_echo_n "(cached
) " >&6
29850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29851 /* end confdefs.h. */
29853 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
29857 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
29858 $EGREP "^lose$
" >/dev/null 2>&1; then :
29859 gdb_cv_os_cygwin=yes
29861 gdb_cv_os_cygwin=no
29866 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
29867 $as_echo "$gdb_cv_os_cygwin" >&6; }
29870 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
29872 *go32* ) SER_HARDWIRE=ser-go32.o ;;
29873 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
29874 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
29875 *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o
" ;;
29879 # libreadline needs libuser32.a in a cygwin environment
29881 if test x"$gdb_cv_os_cygwin" = xyes; then
29882 WIN32LIBS="-luser32"
29883 case "${target}" in
29884 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
29889 # The ser-tcp.c module requires sockets.
29890 # Note that WIN32APILIBS is set by GDB_AC_COMMON.
29891 WIN32LIBS="$WIN32LIBS $WIN32APILIBS"
29893 # Add ELF support to GDB, but only if BFD includes ELF support.
29896 OLD_LDFLAGS=$LDFLAGS
29899 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
29900 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
29901 # always want our bfd.
29902 CFLAGS="-I${srcdir}/..
/include
-I..
/bfd
-I${srcdir}/..
/bfd
$CFLAGS"
29903 LDFLAGS="-L..
/bfd
-L..
/libiberty
$LDFLAGS"
29904 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
29905 LIBS="-lbfd -liberty $intl $LIBS"
29906 CC=".
/libtool
--quiet --mode=link
$CC"
29907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ELF support
in BFD
" >&5
29908 $as_echo_n "checking
for ELF support
in BFD...
" >&6; }
29909 if ${gdb_cv_var_elf+:} false; then :
29910 $as_echo_n "(cached
) " >&6
29912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29913 /* end confdefs.h. */
29914 #include <stdlib.h>
29915 #include <string.h>
29917 #include "elf-bfd.h
"
29921 return bfd_get_elf_phdr_upper_bound (NULL);
29927 if ac_fn_c_try_link "$LINENO"; then :
29933 rm -f core conftest.err conftest.$ac_objext \
29934 conftest$ac_exeext conftest.$ac_ext
29937 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_var_elf" >&5
29938 $as_echo "$gdb_cv_var_elf" >&6; }
29941 LDFLAGS=$OLD_LDFLAGS
29943 if test "$gdb_cv_var_elf" = yes; then
29944 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o \
29945 gcore-elf.o elf-none-tdep.o
"
29947 $as_echo "#define HAVE_ELF 1" >>confdefs.h
29949 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
29950 if test "$plugins" = "yes"; then
29951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29952 $as_echo_n "checking for library containing dlopen... " >&6; }
29953 if ${ac_cv_search_dlopen+:} false
; then :
29954 $as_echo_n "(cached) " >&6
29956 ac_func_search_save_LIBS
=$LIBS
29957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29958 /* end confdefs.h. */
29960 /* Override any GCC internal prototype to avoid an error.
29961 Use char because int might match the return type of a GCC
29962 builtin and then its argument prototype would still apply. */
29975 for ac_lib
in '' dl
; do
29976 if test -z "$ac_lib"; then
29977 ac_res
="none required"
29980 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
29982 if ac_fn_c_try_link
"$LINENO"; then :
29983 ac_cv_search_dlopen
=$ac_res
29985 rm -f core conftest.err conftest.
$ac_objext \
29987 if ${ac_cv_search_dlopen+:} false
; then :
29991 if ${ac_cv_search_dlopen+:} false
; then :
29994 ac_cv_search_dlopen
=no
29996 rm conftest.
$ac_ext
29997 LIBS
=$ac_func_search_save_LIBS
29999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
30000 $as_echo "$ac_cv_search_dlopen" >&6; }
30001 ac_res
=$ac_cv_search_dlopen
30002 if test "$ac_res" != no
; then :
30003 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
30010 # Add macho support to GDB, but only if BFD includes it.
30013 OLD_LDFLAGS
=$LDFLAGS
30016 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
30017 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
30018 # always want our bfd.
30019 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
30020 LDFLAGS
="-L../bfd -L../libiberty $LDFLAGS"
30021 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
30022 LIBS
="-lbfd -liberty $intl $LIBS"
30023 CC
="./libtool --quiet --mode=link $CC"
30024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
30025 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
30026 if ${gdb_cv_var_macho+:} false
; then :
30027 $as_echo_n "(cached) " >&6
30029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30030 /* end confdefs.h. */
30031 #include <stdlib.h>
30032 #include <string.h>
30034 #include "mach-o.h"
30038 return bfd_mach_o_lookup_command (NULL, 0, NULL);
30044 if ac_fn_c_try_link
"$LINENO"; then :
30045 gdb_cv_var_macho
=yes
30047 gdb_cv_var_macho
=no
30050 rm -f core conftest.err conftest.
$ac_objext \
30051 conftest
$ac_exeext conftest.
$ac_ext
30054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
30055 $as_echo "$gdb_cv_var_macho" >&6; }
30058 LDFLAGS
=$OLD_LDFLAGS
30060 if test "$gdb_cv_var_macho" = yes; then
30061 CONFIG_OBS
="$CONFIG_OBS machoread.o"
30064 # Add any host-specific objects to GDB.
30065 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
30067 # If building on ELF, look for lzma support for embedded compressed debug info.
30068 if test "$gdb_cv_var_elf" = yes; then
30070 # Check whether --with-lzma was given.
30071 if test "${with_lzma+set}" = set; then :
30072 withval
=$with_lzma;
30077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
30078 $as_echo_n "checking whether to use lzma... " >&6; }
30079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
30080 $as_echo "$with_lzma" >&6; }
30082 if test "${with_lzma}" != no
; then
30093 acl_save_prefix
="$prefix"
30094 prefix
="$acl_final_prefix"
30095 acl_save_exec_prefix
="$exec_prefix"
30096 exec_prefix
="$acl_final_exec_prefix"
30098 eval additional_includedir
=\"$includedir\"
30099 eval additional_libdir
=\"$libdir\"
30101 exec_prefix
="$acl_save_exec_prefix"
30102 prefix
="$acl_save_prefix"
30105 # Check whether --with-liblzma-prefix was given.
30106 if test "${with_liblzma_prefix+set}" = set; then :
30107 withval
=$with_liblzma_prefix;
30108 if test "X$withval" = "Xno"; then
30111 if test "X$withval" = "X"; then
30113 acl_save_prefix
="$prefix"
30114 prefix
="$acl_final_prefix"
30115 acl_save_exec_prefix
="$exec_prefix"
30116 exec_prefix
="$acl_final_exec_prefix"
30118 eval additional_includedir
=\"$includedir\"
30119 eval additional_libdir
=\"$libdir\"
30121 exec_prefix
="$acl_save_exec_prefix"
30122 prefix
="$acl_save_prefix"
30125 additional_includedir
="$withval/include"
30126 additional_libdir
="$withval/lib"
30133 # Check whether --with-liblzma-type was given.
30134 if test "${with_liblzma_type+set}" = set; then :
30135 withval
=$with_liblzma_type; with_liblzma_type
=$withval
30137 with_liblzma_type
=auto
30140 lib_type
=`eval echo \$with_liblzma_type`
30147 names_already_handled
=
30148 names_next_round
='lzma '
30149 while test -n "$names_next_round"; do
30150 names_this_round
="$names_next_round"
30152 for name
in $names_this_round; do
30154 for n
in $names_already_handled; do
30155 if test "$n" = "$name"; then
30156 already_handled
=yes
30160 if test -z "$already_handled"; then
30161 names_already_handled
="$names_already_handled $name"
30162 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
30163 eval value
=\"\
$HAVE_LIB$uppername\"
30164 if test -n "$value"; then
30165 if test "$value" = yes; then
30166 eval value
=\"\
$LIB$uppername\"
30167 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
30168 eval value
=\"\
$LTLIB$uppername\"
30169 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
30178 if test $use_additional = yes; then
30179 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
30180 found_dir
="$additional_libdir"
30181 found_so
="$additional_libdir/lib$name.$shlibext"
30182 if test -f "$additional_libdir/lib$name.la"; then
30183 found_la
="$additional_libdir/lib$name.la"
30185 elif test x
$lib_type != xshared
; then
30186 if test -f "$additional_libdir/lib$name.$libext"; then
30187 found_dir
="$additional_libdir"
30188 found_a
="$additional_libdir/lib$name.$libext"
30189 if test -f "$additional_libdir/lib$name.la"; then
30190 found_la
="$additional_libdir/lib$name.la"
30195 if test "X$found_dir" = "X"; then
30196 for x
in $LDFLAGS $LTLIBLZMA; do
30198 acl_save_prefix
="$prefix"
30199 prefix
="$acl_final_prefix"
30200 acl_save_exec_prefix
="$exec_prefix"
30201 exec_prefix
="$acl_final_exec_prefix"
30203 exec_prefix
="$acl_save_exec_prefix"
30204 prefix
="$acl_save_prefix"
30208 dir
=`echo "X$x" | sed -e 's/^X-L//'`
30209 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
30211 found_so
="$dir/lib$name.$shlibext"
30212 if test -f "$dir/lib$name.la"; then
30213 found_la
="$dir/lib$name.la"
30215 elif test x
$lib_type != xshared
; then
30216 if test -f "$dir/lib$name.$libext"; then
30218 found_a
="$dir/lib$name.$libext"
30219 if test -f "$dir/lib$name.la"; then
30220 found_la
="$dir/lib$name.la"
30226 if test "X$found_dir" != "X"; then
30231 if test "X$found_dir" != "X"; then
30232 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
30233 if test "X$found_so" != "X"; then
30234 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
30235 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
30238 for x
in $ltrpathdirs; do
30239 if test "X$x" = "X$found_dir"; then
30244 if test -z "$haveit"; then
30245 ltrpathdirs
="$ltrpathdirs $found_dir"
30247 if test "$hardcode_direct" = yes; then
30248 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
30250 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
30251 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
30253 for x
in $rpathdirs; do
30254 if test "X$x" = "X$found_dir"; then
30259 if test -z "$haveit"; then
30260 rpathdirs
="$rpathdirs $found_dir"
30264 for x
in $LDFLAGS $LIBLZMA; do
30266 acl_save_prefix
="$prefix"
30267 prefix
="$acl_final_prefix"
30268 acl_save_exec_prefix
="$exec_prefix"
30269 exec_prefix
="$acl_final_exec_prefix"
30271 exec_prefix
="$acl_save_exec_prefix"
30272 prefix
="$acl_save_prefix"
30274 if test "X$x" = "X-L$found_dir"; then
30279 if test -z "$haveit"; then
30280 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
30282 if test "$hardcode_minus_L" != no
; then
30283 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
30285 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
30291 if test "X$found_a" != "X"; then
30292 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
30294 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
30297 additional_includedir
=
30298 case "$found_dir" in
30300 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
30301 additional_includedir
="$basedir/include"
30304 if test "X$additional_includedir" != "X"; then
30305 if test "X$additional_includedir" != "X/usr/include"; then
30307 if test "X$additional_includedir" = "X/usr/local/include"; then
30308 if test -n "$GCC"; then
30310 linux
*) haveit
=yes;;
30314 if test -z "$haveit"; then
30315 for x
in $CPPFLAGS $INCLZMA; do
30317 acl_save_prefix
="$prefix"
30318 prefix
="$acl_final_prefix"
30319 acl_save_exec_prefix
="$exec_prefix"
30320 exec_prefix
="$acl_final_exec_prefix"
30322 exec_prefix
="$acl_save_exec_prefix"
30323 prefix
="$acl_save_prefix"
30325 if test "X$x" = "X-I$additional_includedir"; then
30330 if test -z "$haveit"; then
30331 if test -d "$additional_includedir"; then
30332 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
30338 if test -n "$found_la"; then
30339 save_libdir
="$libdir"
30340 case "$found_la" in
30341 */* |
*\\*) .
"$found_la" ;;
30342 *) .
"./$found_la" ;;
30344 libdir
="$save_libdir"
30345 for dep
in $dependency_libs; do
30348 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
30349 if test "X$additional_libdir" != "X/usr/lib"; then
30351 if test "X$additional_libdir" = "X/usr/local/lib"; then
30352 if test -n "$GCC"; then
30354 linux
*) haveit
=yes;;
30358 if test -z "$haveit"; then
30360 for x
in $LDFLAGS $LIBLZMA; do
30362 acl_save_prefix
="$prefix"
30363 prefix
="$acl_final_prefix"
30364 acl_save_exec_prefix
="$exec_prefix"
30365 exec_prefix
="$acl_final_exec_prefix"
30367 exec_prefix
="$acl_save_exec_prefix"
30368 prefix
="$acl_save_prefix"
30370 if test "X$x" = "X-L$additional_libdir"; then
30375 if test -z "$haveit"; then
30376 if test -d "$additional_libdir"; then
30377 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
30381 for x
in $LDFLAGS $LTLIBLZMA; do
30383 acl_save_prefix
="$prefix"
30384 prefix
="$acl_final_prefix"
30385 acl_save_exec_prefix
="$exec_prefix"
30386 exec_prefix
="$acl_final_exec_prefix"
30388 exec_prefix
="$acl_save_exec_prefix"
30389 prefix
="$acl_save_prefix"
30391 if test "X$x" = "X-L$additional_libdir"; then
30396 if test -z "$haveit"; then
30397 if test -d "$additional_libdir"; then
30398 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
30405 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
30406 if test "$enable_rpath" != no
; then
30408 for x
in $rpathdirs; do
30409 if test "X$x" = "X$dir"; then
30414 if test -z "$haveit"; then
30415 rpathdirs
="$rpathdirs $dir"
30418 for x
in $ltrpathdirs; do
30419 if test "X$x" = "X$dir"; then
30424 if test -z "$haveit"; then
30425 ltrpathdirs
="$ltrpathdirs $dir"
30430 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
30433 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
30436 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
30437 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
30443 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
30444 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
30445 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
30447 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l:lib$name.$libext"
30448 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l:lib$name.$libext"
30455 if test "X$rpathdirs" != "X"; then
30456 if test -n "$hardcode_libdir_separator"; then
30458 for found_dir
in $rpathdirs; do
30459 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
30461 acl_save_libdir
="$libdir"
30463 eval flag
=\"$hardcode_libdir_flag_spec\"
30464 libdir
="$acl_save_libdir"
30465 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
30467 for found_dir
in $rpathdirs; do
30468 acl_save_libdir
="$libdir"
30469 libdir
="$found_dir"
30470 eval flag
=\"$hardcode_libdir_flag_spec\"
30471 libdir
="$acl_save_libdir"
30472 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
30476 if test "X$ltrpathdirs" != "X"; then
30477 for found_dir
in $ltrpathdirs; do
30478 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
30483 ac_save_CPPFLAGS
="$CPPFLAGS"
30485 for element
in $INCLZMA; do
30487 for x
in $CPPFLAGS; do
30489 acl_save_prefix
="$prefix"
30490 prefix
="$acl_final_prefix"
30491 acl_save_exec_prefix
="$exec_prefix"
30492 exec_prefix
="$acl_final_exec_prefix"
30494 exec_prefix
="$acl_save_exec_prefix"
30495 prefix
="$acl_save_prefix"
30497 if test "X$x" = "X$element"; then
30502 if test -z "$haveit"; then
30503 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
30508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
30509 $as_echo_n "checking for liblzma... " >&6; }
30510 if ${ac_cv_liblzma+:} false
; then :
30511 $as_echo_n "(cached) " >&6
30514 ac_save_LIBS
="$LIBS"
30515 LIBS
="$LIBS $LIBLZMA"
30516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30517 /* end confdefs.h. */
30522 lzma_index_iter iter;
30523 lzma_index_iter_init (&iter, 0);
30524 lzma_mf_is_supported (LZMA_MF_HC3);
30529 if ac_fn_c_try_link
"$LINENO"; then :
30534 rm -f core conftest.err conftest.
$ac_objext \
30535 conftest
$ac_exeext conftest.
$ac_ext
30536 LIBS
="$ac_save_LIBS"
30539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
30540 $as_echo "$ac_cv_liblzma" >&6; }
30541 if test "$ac_cv_liblzma" = yes; then
30544 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
30546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
30547 $as_echo_n "checking how to link with liblzma... " >&6; }
30548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
30549 $as_echo "$LIBLZMA" >&6; }
30552 CPPFLAGS
="$ac_save_CPPFLAGS"
30562 if test "$HAVE_LIBLZMA" != yes; then
30563 if test "$with_lzma" = yes; then
30564 as_fn_error $?
"missing liblzma for --with-lzma" "$LINENO" 5
30570 LIBGUI
="../libgui/src/libgui.a"
30571 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
30580 *-*-cygwin* |
*-*-mingw* )
30589 if test "${enable_gdbtk}" = "yes"; then
30591 # Gdbtk must have an absolute path to srcdir in order to run
30592 # properly when not installed.
30595 GDBTK_SRC_DIR
=`pwd`
30600 # Ok, lets find the tcl configuration
30601 # First, look for one uninstalled.
30602 # the alternative search directory is invoked by --with-tcl
30605 if test x
"${no_tcl}" = x
; then
30606 # we reset no_tcl in case something fails here
30609 # Check whether --with-tcl was given.
30610 if test "${with_tcl+set}" = set; then :
30611 withval
=$with_tcl; with_tclconfig
=${withval}
30614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
30615 $as_echo_n "checking for Tcl configuration... " >&6; }
30616 if ${ac_cv_c_tclconfig+:} false
; then :
30617 $as_echo_n "(cached) " >&6
30621 # First check to see if --with-tcl was specified.
30623 *-*-cygwin*) platDir
="win" ;;
30624 *) platDir
="unix" ;;
30626 if test x
"${with_tclconfig}" != x
; then
30627 if test -f "${with_tclconfig}/tclConfig.sh" ; then
30628 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
30630 as_fn_error $?
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
30634 # then check for a private Tcl installation
30635 if test x
"${ac_cv_c_tclconfig}" = x
; then
30638 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
30639 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
30640 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
30642 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
30643 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
30644 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
30646 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
30647 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
30648 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
30649 if test -f "$i/$platDir/tclConfig.sh" ; then
30650 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
30656 # on Darwin, check in Framework installation locations
30657 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
30658 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
30659 `ls -d /Library/Frameworks 2>/dev/null` \
30660 `ls -d /Network/Library/Frameworks 2>/dev/null` \
30661 `ls -d /System/Library/Frameworks 2>/dev/null` \
30663 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
30664 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
30670 # check in a few common install locations
30671 if test x
"${ac_cv_c_tclconfig}" = x
; then
30672 for i
in `ls -d ${libdir} 2>/dev/null` \
30673 `ls -d ${exec_prefix}/lib 2>/dev/null` \
30674 `ls -d ${prefix}/lib 2>/dev/null` \
30675 `ls -d /usr/local/lib 2>/dev/null` \
30676 `ls -d /usr/contrib/lib 2>/dev/null` \
30677 `ls -d /usr/lib 2>/dev/null` \
30679 if test -f "$i/tclConfig.sh" ; then
30680 ac_cv_c_tclconfig
=`(cd $i; pwd)`
30686 # check in a few other private locations
30687 if test x
"${ac_cv_c_tclconfig}" = x
; then
30690 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
30691 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
30692 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
30693 if test -f "$i/$platDir/tclConfig.sh" ; then
30694 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
30703 if test x
"${ac_cv_c_tclconfig}" = x
; then
30704 TCL_BIN_DIR
="# no Tcl configs found"
30705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
30706 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
30709 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
30710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
30711 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
30716 # If $no_tk is nonempty, then we can't do Tk, and there is no
30717 # point to doing Tcl.
30720 # Ok, lets find the tk configuration
30721 # First, look for one uninstalled.
30722 # the alternative search directory is invoked by --with-tk
30725 if test x
"${no_tk}" = x
; then
30726 # we reset no_tk in case something fails here
30729 # Check whether --with-tk was given.
30730 if test "${with_tk+set}" = set; then :
30731 withval
=$with_tk; with_tkconfig
=${withval}
30734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
30735 $as_echo_n "checking for Tk configuration... " >&6; }
30736 if ${ac_cv_c_tkconfig+:} false
; then :
30737 $as_echo_n "(cached) " >&6
30741 # First check to see if --with-tkconfig was specified.
30742 if test x
"${with_tkconfig}" != x
; then
30743 if test -f "${with_tkconfig}/tkConfig.sh" ; then
30744 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
30746 as_fn_error $?
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
30750 # then check for a private Tk library
30752 *-*-cygwin*) platDir
="win" ;;
30753 *) platDir
="unix" ;;
30755 if test x
"${ac_cv_c_tkconfig}" = x
; then
30758 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
30759 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
30760 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
30762 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
30763 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
30764 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
30766 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
30767 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
30768 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
30769 if test -f "$i/$platDir/tkConfig.sh" ; then
30770 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
30776 # on Darwin, check in Framework installation locations
30777 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
30778 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
30779 `ls -d /Library/Frameworks 2>/dev/null` \
30780 `ls -d /Network/Library/Frameworks 2>/dev/null` \
30781 `ls -d /System/Library/Frameworks 2>/dev/null` \
30783 if test -f "$i/Tk.framework/tkConfig.sh" ; then
30784 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
30790 # check in a few common install locations
30791 if test x
"${ac_cv_c_tkconfig}" = x
; then
30792 for i
in `ls -d ${libdir} 2>/dev/null` \
30793 `ls -d ${exec_prefix}/lib 2>/dev/null` \
30794 `ls -d ${prefix}/lib 2>/dev/null` \
30795 `ls -d /usr/local/lib 2>/dev/null` \
30796 `ls -d /usr/contrib/lib 2>/dev/null` \
30797 `ls -d /usr/lib 2>/dev/null` \
30799 if test -f "$i/tkConfig.sh" ; then
30800 ac_cv_c_tkconfig
=`(cd $i; pwd)`
30805 # check in a few other private locations
30806 if test x
"${ac_cv_c_tkconfig}" = x
; then
30809 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
30810 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
30811 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
30812 if test -f "$i/$platDir/tkConfig.sh" ; then
30813 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
30822 if test x
"${ac_cv_c_tkconfig}" = x
; then
30823 TK_BIN_DIR
="# no Tk configs found"
30824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
30825 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
30828 TK_BIN_DIR
=${ac_cv_c_tkconfig}
30829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
30830 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
30835 if test -z "${no_tcl}" -a -z "${no_tk}"; then
30837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
30838 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
30840 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
30841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
30842 $as_echo "loading" >&6; }
30843 .
${TCL_BIN_DIR}/tclConfig.sh
30845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
30846 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
30849 # eval is required to do the TCL_DBGX substitution
30850 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
30851 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
30853 # If the TCL_BIN_DIR is the build directory (not the install directory),
30854 # then set the common variable name to the value of the build variables.
30855 # For example, the variable TCL_LIB_SPEC will be set to the value
30856 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
30857 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
30858 # installed and uninstalled version of Tcl.
30859 if test -f "${TCL_BIN_DIR}/Makefile" ; then
30860 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
30861 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
30862 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
30863 elif test "`uname -s`" = "Darwin"; then
30864 # If Tcl was built as a framework, attempt to use the libraries
30865 # from the framework at the given location so that linking works
30866 # against Tcl.framework installed in an arbitrary location.
30867 case ${TCL_DEFS} in
30869 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
30870 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
30871 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
30872 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
30873 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
30878 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
30879 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
30880 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
30886 # eval is required to do the TCL_DBGX substitution
30887 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
30888 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
30889 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
30890 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
30906 # Check for in-tree tcl
30913 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
30917 # Find Tcl private headers
30918 if test x
"${intree}" = xno
; then
30920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
30921 $as_echo_n "checking for Tcl private headers... " >&6; }
30923 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
30924 if test -f ${dir}/tclInt.h
; then
30928 if test x
"${private_dir}" = x
; then
30929 as_fn_error $?
"could not find private Tcl headers" "$LINENO" 5
30931 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
30932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
30933 $as_echo "${private_dir}" >&6; }
30936 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
30937 TCL_LIBRARY
="${TCL_LIB_SPEC}"
30940 # If building tcl in the same src tree, private headers
30941 # are not needed, but we need to be sure to use the right
30943 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
30944 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
30945 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
30952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
30953 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
30955 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
30956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
30957 $as_echo "loading" >&6; }
30958 .
${TK_BIN_DIR}/tkConfig.sh
30960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
30961 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
30964 # eval is required to do the TK_DBGX substitution
30965 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
30966 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
30968 # If the TK_BIN_DIR is the build directory (not the install directory),
30969 # then set the common variable name to the value of the build variables.
30970 # For example, the variable TK_LIB_SPEC will be set to the value
30971 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
30972 # instead of TK_BUILD_LIB_SPEC since it will work with both an
30973 # installed and uninstalled version of Tcl.
30974 if test -f "${TK_BIN_DIR}/Makefile" ; then
30975 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
30976 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
30977 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
30978 elif test "`uname -s`" = "Darwin"; then
30979 # If Tk was built as a framework, attempt to use the libraries
30980 # from the framework at the given location so that linking works
30981 # against Tk.framework installed in an arbitrary location.
30984 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
30985 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
30986 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
30987 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
30988 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
30993 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
30994 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
30995 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
31001 # eval is required to do the TK_DBGX substitution
31002 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
31003 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
31004 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
31005 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
31020 # Check for in-tree Tk
31022 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
31026 # Find Tk private headers
31027 if test x
"${intree}" = xno
; then
31029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
31030 $as_echo_n "checking for Tk private headers... " >&6; }
31032 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
31033 if test -f ${dir}/tkInt.h
; then
31037 if test x
"${private_dir}" = x
; then
31038 as_fn_error $?
"could not find Tk private headers" "$LINENO" 5
31040 TK_PRIVATE_INCLUDE
="-I${private_dir}"
31041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
31042 $as_echo "${private_dir}" >&6; }
31045 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
31046 TK_LIBRARY
=${TK_LIB_SPEC}
31049 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
31050 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
31051 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
31058 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
31060 # Include some libraries that Tcl and Tk want.
31061 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
31062 # Yes, the ordering seems wrong here. But it isn't.
31063 # TK_LIBS is the list of libraries that need to be linked
31064 # after Tcl/Tk. Note that this isn't put into LIBS. If it
31065 # were in LIBS then any link tests after this point would
31066 # try to include things like `$(LIBGUI)', which wouldn't work.
31067 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
31069 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
31070 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
31071 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
31072 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
31073 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
31074 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
31075 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
31077 if test x
"$gdb_cv_os_cygwin" = xyes
; then
31078 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
31079 WIN32LDAPP
="-Wl,--subsystem,console"
31080 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
31083 subdirs
="$subdirs gdbtk"
31095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
31096 $as_echo_n "checking for X... " >&6; }
31099 # Check whether --with-x was given.
31100 if test "${with_x+set}" = set; then :
31104 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
31105 if test "x$with_x" = xno
; then
31106 # The user explicitly disabled X.
31109 case $x_includes,$x_libraries in #(
31110 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
31111 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
31112 $as_echo_n "(cached) " >&6
31114 # One or both of the vars are not set, and there is no cached value.
31115 ac_x_includes
=no ac_x_libraries
=no
31116 rm -f -r conftest.dir
31117 if mkdir conftest.dir
; then
31119 cat >Imakefile
<<'_ACEOF'
31121 @echo incroot='${INCROOT}'
31123 @echo usrlibdir='${USRLIBDIR}'
31125 @echo libdir='${LIBDIR}'
31127 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
31128 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
31129 for ac_var
in incroot usrlibdir libdir
; do
31130 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
31132 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
31133 for ac_extension
in a so sl dylib la dll
; do
31134 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
31135 test -f "$ac_im_libdir/libX11.$ac_extension"; then
31136 ac_im_usrlibdir
=$ac_im_libdir; break
31139 # Screen out bogus values from the imake configuration. They are
31140 # bogus both because they are the default anyway, and because
31141 # using them would break gcc on systems where it needs fixed includes.
31142 case $ac_im_incroot in
31143 /usr
/include
) ac_x_includes
= ;;
31144 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
31146 case $ac_im_usrlibdir in
31147 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
31148 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
31152 rm -f -r conftest.dir
31155 # Standard set of common directories for X headers.
31156 # Check X11 before X11Rn because it is often a symlink to the current release.
31170 /usr/local/X11/include
31171 /usr/local/X11R7/include
31172 /usr/local/X11R6/include
31173 /usr/local/X11R5/include
31174 /usr/local/X11R4/include
31176 /usr/local/include/X11
31177 /usr/local/include/X11R7
31178 /usr/local/include/X11R6
31179 /usr/local/include/X11R5
31180 /usr/local/include/X11R4
31184 /usr/XFree86/include/X11
31188 /usr/unsupported/include
31189 /usr/athena/include
31190 /usr/local/x11r5/include
31191 /usr/lpp/Xamples/include
31193 /usr/openwin/include
31194 /usr/openwin/share/include'
31196 if test "$ac_x_includes" = no
; then
31197 # Guess where to find include files, by looking for Xlib.h.
31198 # First, try using that file with no special directory specified.
31199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31200 /* end confdefs.h. */
31201 #include <X11/Xlib.h>
31203 if ac_fn_c_try_cpp
"$LINENO"; then :
31204 # We can compile using X headers with no special include directory.
31207 for ac_dir
in $ac_x_header_dirs; do
31208 if test -r "$ac_dir/X11/Xlib.h"; then
31209 ac_x_includes
=$ac_dir
31214 rm -f conftest.err conftest.i conftest.
$ac_ext
31215 fi # $ac_x_includes = no
31217 if test "$ac_x_libraries" = no
; then
31218 # Check for the libraries.
31219 # See if we find them without any special options.
31220 # Don't add to $LIBS permanently.
31223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31224 /* end confdefs.h. */
31225 #include <X11/Xlib.h>
31234 if ac_fn_c_try_link
"$LINENO"; then :
31236 # We can link X programs with no special library path.
31240 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
31242 # Don't even attempt the hair of trying to link an X program!
31243 for ac_extension
in a so sl dylib la dll
; do
31244 if test -r "$ac_dir/libX11.$ac_extension"; then
31245 ac_x_libraries
=$ac_dir
31251 rm -f core conftest.err conftest.
$ac_objext \
31252 conftest
$ac_exeext conftest.
$ac_ext
31253 fi # $ac_x_libraries = no
31255 case $ac_x_includes,$ac_x_libraries in #(
31256 no
,* |
*,no |
*\'*)
31257 # Didn't find X, or a directory has "'" in its name.
31258 ac_cv_have_x
="have_x=no";; #(
31260 # Record where we found X for the cache.
31261 ac_cv_have_x
="have_x=yes\
31262 ac_x_includes='$ac_x_includes'\
31263 ac_x_libraries='$ac_x_libraries'"
31269 eval "$ac_cv_have_x"
31272 if test "$have_x" != yes; then
31273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
31274 $as_echo "$have_x" >&6; }
31277 # If each of the values was on the command line, it overrides each guess.
31278 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
31279 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
31280 # Update the cache value to reflect the command line values.
31281 ac_cv_have_x
="have_x=yes\
31282 ac_x_includes='$x_includes'\
31283 ac_x_libraries='$x_libraries'"
31284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
31285 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
31289 # Unlike the sim directory, whether a simulator is linked is controlled by
31290 # presence of a gdb_sim definition in the target configure.tgt entry.
31291 # This code just checks for a few cases where we'd like to ignore those
31292 # definitions, even when they're present in the '.mt' file. These cases
31293 # are when --disable-sim is specified, or if the simulator directory is
31294 # not part of the source tree.
31296 # Check whether --enable-sim was given.
31297 if test "${enable_sim+set}" = set; then :
31298 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
31299 echo "enableval = ${enableval}";
31300 case "${enableval}" in
31301 yes) ignore_sim
=false
;;
31302 no
) ignore_sim
=true
;;
31303 *) ignore_sim
=false
;;
31310 if test ! -d "${srcdir}/../sim"; then
31316 if test "${ignore_sim}" = "false"; then
31317 if test x
"${gdb_sim}" != x
; then
31319 SIM_OBS
="remote-sim.o"
31321 # Some tdep code should only be compiled in when the ppc sim is
31322 # built. PR sim/13418.
31326 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
31346 # List of host floatformats.
31348 cat >>confdefs.h
<<_ACEOF
31349 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
31353 cat >>confdefs.h
<<_ACEOF
31354 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
31358 cat >>confdefs.h
<<_ACEOF
31359 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
31363 # target_subdir is used by the testsuite to find the target libraries.
31365 if test "${host}" != "${target}"; then
31366 target_subdir
="${target_alias}/"
31370 # Import nat definitions.
31371 nat_makefile_frag
=/dev
/null
31372 if test "${gdb_native}" = "yes"; then
31373 .
${srcdir}/configure.nat
31374 nativefile
=$NAT_FILE
31387 if test x
"${gdb_osabi}" != x
; then
31389 cat >>confdefs.h
<<_ACEOF
31390 #define GDB_OSABI_DEFAULT $gdb_osabi
31395 # Setup possible use of libbacktrace.
31396 # Check whether --enable-libbacktrace was given.
31397 if test "${enable_libbacktrace+set}" = set; then :
31398 enableval
=$enable_libbacktrace;
31403 as_fn_error $?
"bad value $enableval for --enable-libbacktrace" "$LINENO" 5
31408 enable_libbacktrace
=yes
31412 if test "${enable_libbacktrace}" = "yes"; then
31413 LIBBACKTRACE_INC
="-I$srcdir/../libbacktrace/ -I../libbacktrace/"
31414 LIBBACKTRACE_LIB
=..
/libbacktrace
/libbacktrace.la
31416 $as_echo "#define HAVE_LIBBACKTRACE 1" >>confdefs.h
31426 # Check for babeltrace and babeltrace-ctf
31428 # Check whether --with-babeltrace was given.
31429 if test "${with_babeltrace+set}" = set; then :
31430 withval
=$with_babeltrace;
31432 with_babeltrace
=auto
31435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
31436 $as_echo_n "checking whether to use babeltrace... " >&6; }
31437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
31438 $as_echo "$with_babeltrace" >&6; }
31440 if test "x$with_babeltrace" = "xno"; then
31441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
31442 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
31444 # Append -Werror to CFLAGS so that configure can catch the warning
31445 # "assignment from incompatible pointer type", which is related to
31446 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
31447 # in GDB, while babeltrace 1.0.3 is broken.
31448 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
31449 # safe to save and restore CFLAGS here.
31450 saved_CFLAGS
=$CFLAGS
31451 CFLAGS
="$CFLAGS -Werror"
31462 acl_save_prefix
="$prefix"
31463 prefix
="$acl_final_prefix"
31464 acl_save_exec_prefix
="$exec_prefix"
31465 exec_prefix
="$acl_final_exec_prefix"
31467 eval additional_includedir
=\"$includedir\"
31468 eval additional_libdir
=\"$libdir\"
31470 exec_prefix
="$acl_save_exec_prefix"
31471 prefix
="$acl_save_prefix"
31474 # Check whether --with-libbabeltrace-prefix was given.
31475 if test "${with_libbabeltrace_prefix+set}" = set; then :
31476 withval
=$with_libbabeltrace_prefix;
31477 if test "X$withval" = "Xno"; then
31480 if test "X$withval" = "X"; then
31482 acl_save_prefix
="$prefix"
31483 prefix
="$acl_final_prefix"
31484 acl_save_exec_prefix
="$exec_prefix"
31485 exec_prefix
="$acl_final_exec_prefix"
31487 eval additional_includedir
=\"$includedir\"
31488 eval additional_libdir
=\"$libdir\"
31490 exec_prefix
="$acl_save_exec_prefix"
31491 prefix
="$acl_save_prefix"
31494 additional_includedir
="$withval/include"
31495 additional_libdir
="$withval/lib"
31502 # Check whether --with-libbabeltrace-type was given.
31503 if test "${with_libbabeltrace_type+set}" = set; then :
31504 withval
=$with_libbabeltrace_type; with_libbabeltrace_type
=$withval
31506 with_libbabeltrace_type
=auto
31509 lib_type
=`eval echo \$with_libbabeltrace_type`
31516 names_already_handled
=
31517 names_next_round
='babeltrace babeltrace-ctf'
31518 while test -n "$names_next_round"; do
31519 names_this_round
="$names_next_round"
31521 for name
in $names_this_round; do
31523 for n
in $names_already_handled; do
31524 if test "$n" = "$name"; then
31525 already_handled
=yes
31529 if test -z "$already_handled"; then
31530 names_already_handled
="$names_already_handled $name"
31531 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
31532 eval value
=\"\
$HAVE_LIB$uppername\"
31533 if test -n "$value"; then
31534 if test "$value" = yes; then
31535 eval value
=\"\
$LIB$uppername\"
31536 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
31537 eval value
=\"\
$LTLIB$uppername\"
31538 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
31547 if test $use_additional = yes; then
31548 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
31549 found_dir
="$additional_libdir"
31550 found_so
="$additional_libdir/lib$name.$shlibext"
31551 if test -f "$additional_libdir/lib$name.la"; then
31552 found_la
="$additional_libdir/lib$name.la"
31554 elif test x
$lib_type != xshared
; then
31555 if test -f "$additional_libdir/lib$name.$libext"; then
31556 found_dir
="$additional_libdir"
31557 found_a
="$additional_libdir/lib$name.$libext"
31558 if test -f "$additional_libdir/lib$name.la"; then
31559 found_la
="$additional_libdir/lib$name.la"
31564 if test "X$found_dir" = "X"; then
31565 for x
in $LDFLAGS $LTLIBBABELTRACE; do
31567 acl_save_prefix
="$prefix"
31568 prefix
="$acl_final_prefix"
31569 acl_save_exec_prefix
="$exec_prefix"
31570 exec_prefix
="$acl_final_exec_prefix"
31572 exec_prefix
="$acl_save_exec_prefix"
31573 prefix
="$acl_save_prefix"
31577 dir
=`echo "X$x" | sed -e 's/^X-L//'`
31578 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
31580 found_so
="$dir/lib$name.$shlibext"
31581 if test -f "$dir/lib$name.la"; then
31582 found_la
="$dir/lib$name.la"
31584 elif test x
$lib_type != xshared
; then
31585 if test -f "$dir/lib$name.$libext"; then
31587 found_a
="$dir/lib$name.$libext"
31588 if test -f "$dir/lib$name.la"; then
31589 found_la
="$dir/lib$name.la"
31595 if test "X$found_dir" != "X"; then
31600 if test "X$found_dir" != "X"; then
31601 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
31602 if test "X$found_so" != "X"; then
31603 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
31604 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
31607 for x
in $ltrpathdirs; do
31608 if test "X$x" = "X$found_dir"; then
31613 if test -z "$haveit"; then
31614 ltrpathdirs
="$ltrpathdirs $found_dir"
31616 if test "$hardcode_direct" = yes; then
31617 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
31619 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
31620 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
31622 for x
in $rpathdirs; do
31623 if test "X$x" = "X$found_dir"; then
31628 if test -z "$haveit"; then
31629 rpathdirs
="$rpathdirs $found_dir"
31633 for x
in $LDFLAGS $LIBBABELTRACE; do
31635 acl_save_prefix
="$prefix"
31636 prefix
="$acl_final_prefix"
31637 acl_save_exec_prefix
="$exec_prefix"
31638 exec_prefix
="$acl_final_exec_prefix"
31640 exec_prefix
="$acl_save_exec_prefix"
31641 prefix
="$acl_save_prefix"
31643 if test "X$x" = "X-L$found_dir"; then
31648 if test -z "$haveit"; then
31649 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
31651 if test "$hardcode_minus_L" != no
; then
31652 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
31654 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
31660 if test "X$found_a" != "X"; then
31661 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
31663 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
31666 additional_includedir
=
31667 case "$found_dir" in
31669 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
31670 additional_includedir
="$basedir/include"
31673 if test "X$additional_includedir" != "X"; then
31674 if test "X$additional_includedir" != "X/usr/include"; then
31676 if test "X$additional_includedir" = "X/usr/local/include"; then
31677 if test -n "$GCC"; then
31679 linux
*) haveit
=yes;;
31683 if test -z "$haveit"; then
31684 for x
in $CPPFLAGS $INCBABELTRACE; do
31686 acl_save_prefix
="$prefix"
31687 prefix
="$acl_final_prefix"
31688 acl_save_exec_prefix
="$exec_prefix"
31689 exec_prefix
="$acl_final_exec_prefix"
31691 exec_prefix
="$acl_save_exec_prefix"
31692 prefix
="$acl_save_prefix"
31694 if test "X$x" = "X-I$additional_includedir"; then
31699 if test -z "$haveit"; then
31700 if test -d "$additional_includedir"; then
31701 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
31707 if test -n "$found_la"; then
31708 save_libdir
="$libdir"
31709 case "$found_la" in
31710 */* |
*\\*) .
"$found_la" ;;
31711 *) .
"./$found_la" ;;
31713 libdir
="$save_libdir"
31714 for dep
in $dependency_libs; do
31717 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
31718 if test "X$additional_libdir" != "X/usr/lib"; then
31720 if test "X$additional_libdir" = "X/usr/local/lib"; then
31721 if test -n "$GCC"; then
31723 linux
*) haveit
=yes;;
31727 if test -z "$haveit"; then
31729 for x
in $LDFLAGS $LIBBABELTRACE; do
31731 acl_save_prefix
="$prefix"
31732 prefix
="$acl_final_prefix"
31733 acl_save_exec_prefix
="$exec_prefix"
31734 exec_prefix
="$acl_final_exec_prefix"
31736 exec_prefix
="$acl_save_exec_prefix"
31737 prefix
="$acl_save_prefix"
31739 if test "X$x" = "X-L$additional_libdir"; then
31744 if test -z "$haveit"; then
31745 if test -d "$additional_libdir"; then
31746 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
31750 for x
in $LDFLAGS $LTLIBBABELTRACE; do
31752 acl_save_prefix
="$prefix"
31753 prefix
="$acl_final_prefix"
31754 acl_save_exec_prefix
="$exec_prefix"
31755 exec_prefix
="$acl_final_exec_prefix"
31757 exec_prefix
="$acl_save_exec_prefix"
31758 prefix
="$acl_save_prefix"
31760 if test "X$x" = "X-L$additional_libdir"; then
31765 if test -z "$haveit"; then
31766 if test -d "$additional_libdir"; then
31767 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
31774 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
31775 if test "$enable_rpath" != no
; then
31777 for x
in $rpathdirs; do
31778 if test "X$x" = "X$dir"; then
31783 if test -z "$haveit"; then
31784 rpathdirs
="$rpathdirs $dir"
31787 for x
in $ltrpathdirs; do
31788 if test "X$x" = "X$dir"; then
31793 if test -z "$haveit"; then
31794 ltrpathdirs
="$ltrpathdirs $dir"
31799 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
31802 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
31805 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
31806 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
31812 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
31813 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
31814 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
31816 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l:lib$name.$libext"
31817 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l:lib$name.$libext"
31824 if test "X$rpathdirs" != "X"; then
31825 if test -n "$hardcode_libdir_separator"; then
31827 for found_dir
in $rpathdirs; do
31828 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
31830 acl_save_libdir
="$libdir"
31832 eval flag
=\"$hardcode_libdir_flag_spec\"
31833 libdir
="$acl_save_libdir"
31834 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
31836 for found_dir
in $rpathdirs; do
31837 acl_save_libdir
="$libdir"
31838 libdir
="$found_dir"
31839 eval flag
=\"$hardcode_libdir_flag_spec\"
31840 libdir
="$acl_save_libdir"
31841 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
31845 if test "X$ltrpathdirs" != "X"; then
31846 for found_dir
in $ltrpathdirs; do
31847 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
31852 ac_save_CPPFLAGS
="$CPPFLAGS"
31854 for element
in $INCBABELTRACE; do
31856 for x
in $CPPFLAGS; do
31858 acl_save_prefix
="$prefix"
31859 prefix
="$acl_final_prefix"
31860 acl_save_exec_prefix
="$exec_prefix"
31861 exec_prefix
="$acl_final_exec_prefix"
31863 exec_prefix
="$acl_save_exec_prefix"
31864 prefix
="$acl_save_prefix"
31866 if test "X$x" = "X$element"; then
31871 if test -z "$haveit"; then
31872 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
31877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
31878 $as_echo_n "checking for libbabeltrace... " >&6; }
31879 if ${ac_cv_libbabeltrace+:} false
; then :
31880 $as_echo_n "(cached) " >&6
31883 ac_save_LIBS
="$LIBS"
31884 LIBS
="$LIBS $LIBBABELTRACE"
31885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31886 /* end confdefs.h. */
31887 #include <babeltrace/babeltrace.h>
31888 #include <babeltrace/ctf/events.h>
31889 #include <babeltrace/ctf/iterator.h>
31893 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
31894 struct bt_ctf_event *event = NULL;
31895 const struct bt_definition *scope;
31897 pos->type = BT_SEEK_BEGIN;
31898 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
31899 scope = bt_ctf_get_top_level_scope (event,
31900 BT_STREAM_EVENT_HEADER);
31901 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
31907 if ac_fn_c_try_link
"$LINENO"; then :
31908 ac_cv_libbabeltrace
=yes
31910 ac_cv_libbabeltrace
=no
31912 rm -f core conftest.err conftest.
$ac_objext \
31913 conftest
$ac_exeext conftest.
$ac_ext
31914 LIBS
="$ac_save_LIBS"
31917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
31918 $as_echo "$ac_cv_libbabeltrace" >&6; }
31919 if test "$ac_cv_libbabeltrace" = yes; then
31920 HAVE_LIBBABELTRACE
=yes
31922 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
31924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
31925 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
31926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
31927 $as_echo "$LIBBABELTRACE" >&6; }
31929 HAVE_LIBBABELTRACE
=no
31930 CPPFLAGS
="$ac_save_CPPFLAGS"
31940 CFLAGS
=$saved_CFLAGS
31942 if test "$HAVE_LIBBABELTRACE" != yes; then
31943 if test "$with_babeltrace" = yes; then
31944 as_fn_error $?
"babeltrace is missing or unusable" "$LINENO" 5
31946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
31947 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
31952 # Check whether --enable-libctf was given.
31953 if test "${enable_libctf+set}" = set; then :
31954 enableval
=$enable_libctf;
31955 case "$enableval" in
31957 *) as_fn_error $?
"Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
31965 if test "${enable_libctf}" = yes; then
31967 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
31969 LIBCTF
="../libctf/libctf.la"
31970 CTF_DEPS
="../libctf/libctf.la"
31978 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
31983 if test "${nativefile}" != ""; then
31984 case "${nativefile}" in
31985 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
31986 * ) GDB_NM_FILE
="${nativefile}"
31988 ac_config_links
="$ac_config_links nm.h:$GDB_NM_FILE"
31991 cat >>confdefs.h
<<_ACEOF
31992 #define GDB_NM_FILE "${GDB_NM_FILE}"
32000 for ac_prog
in xsltproc
32002 # Extract the first word of "$ac_prog", so it can be a program name with args.
32003 set dummy
$ac_prog; ac_word
=$2
32004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32005 $as_echo_n "checking for $ac_word... " >&6; }
32006 if ${ac_cv_path_XSLTPROC+:} false
; then :
32007 $as_echo_n "(cached) " >&6
32011 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
32014 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
32015 for as_dir
in $PATH
32018 test -z "$as_dir" && as_dir
=.
32019 for ac_exec_ext
in '' $ac_executable_extensions; do
32020 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
32021 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
32022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32032 XSLTPROC
=$ac_cv_path_XSLTPROC
32033 if test -n "$XSLTPROC"; then
32034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
32035 $as_echo "$XSLTPROC" >&6; }
32037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32038 $as_echo "no" >&6; }
32042 test -n "$XSLTPROC" && break
32044 test -n "$XSLTPROC" || XSLTPROC
="missing"
32046 if test "x$USE_MAINTAINER_MODE" = xyes
; then
32047 if test "${XSLTPROC}" = missing
; then
32048 as_fn_error $?
"unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
32056 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
32060 # Check whether we will enable the inclusion of unit tests when
32063 # The default value of this option changes depending whether we're on
32064 # development mode (in which case it's "true") or not (in which case
32065 # it's "false"). The $development variable is set by the GDB_AC_COMMON
32066 # macro, which must therefore be used before GDB_AC_SELFTEST.
32068 if test "x$development" != xtrue
&& test "x$development" != xfalse
; then :
32069 as_fn_error $?
"Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
32072 # Check whether --enable-unit-tests was given.
32073 if test "${enable_unit_tests+set}" = set; then :
32074 enableval
=$enable_unit_tests; case "${enableval}" in
32075 yes) enable_unittests
=true
;;
32076 no
) enable_unittests
=false
;;
32077 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
32080 enable_unittests
=$development
32084 if $enable_unittests; then
32086 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
32089 CONFIG_OBS
="$CONFIG_OBS \$(SELFTESTS_OBS)"
32090 CONFIG_SRCS
="$CONFIG_SRCS \$(SELFTESTS_SRCS)"
32096 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
32097 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$gdb_ac_transform"`
32098 if test "x$GDB_TRANSFORM_NAME" = x
; then
32099 GDB_TRANSFORM_NAME
=gdb
32104 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
32105 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$gdb_ac_transform"`
32106 if test "x$GCORE_TRANSFORM_NAME" = x
; then
32107 GCORE_TRANSFORM_NAME
=gcore
32111 ac_config_files
="$ac_config_files gcore"
32113 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
32116 cat >confcache
<<\_ACEOF
32117 # This file is a shell script that caches the results of configure
32118 # tests run on this system so they can be shared between configure
32119 # scripts and configure runs, see configure's option --config-cache.
32120 # It is not useful on other systems. If it contains results you don't
32121 # want to keep, you may remove or edit it.
32123 # config.status only pays attention to the cache file if you give it
32124 # the --recheck option to rerun configure.
32126 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32127 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32128 # following values.
32132 # The following way of writing the cache mishandles newlines in values,
32133 # but we know of no workaround that is simple, portable, and efficient.
32134 # So, we kill variables containing newlines.
32135 # Ultrix sh set writes to stderr and can't be redirected directly,
32136 # and sets the high bit in the cache file unless we assign to the vars.
32138 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32139 eval ac_val
=\$
$ac_var
32143 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32144 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32147 _ | IFS | as_nl
) ;; #(
32148 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
32149 *) { eval $ac_var=; unset $ac_var;} ;;
32155 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32156 *${as_nl}ac_space
=\
*)
32157 # `set' does not quote correctly, so add quotes: double-quote
32158 # substitution turns \\\\ into \\, and sed turns \\ into \.
32161 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32164 # `set' quotes correctly as required by POSIX, so do not add quotes.
32165 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32174 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32176 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32178 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
32179 if test -w "$cache_file"; then
32180 if test "x$cache_file" != "x/dev/null"; then
32181 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32182 $as_echo "$as_me: updating cache $cache_file" >&6;}
32183 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
32184 cat confcache
>"$cache_file"
32186 case $cache_file in #(
32188 mv -f confcache
"$cache_file"$$
&&
32189 mv -f "$cache_file"$$
"$cache_file" ;; #(
32191 mv -f confcache
"$cache_file" ;;
32196 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32197 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32202 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
32203 # Let make expand exec_prefix.
32204 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
32206 DEFS
=-DHAVE_CONFIG_H
32211 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
32212 # 1. Remove the extension, and $U if already installed.
32213 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
32214 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
32215 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32216 # will be set to the directory where LIBOBJS objects are built.
32217 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32218 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
32220 LIBOBJS
=$ac_libobjs
32222 LTLIBOBJS
=$ac_ltlibobjs
32225 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
32226 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
32227 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32229 if test -z "${ENABLE_BFD_64_BIT_TRUE}" && test -z "${ENABLE_BFD_64_BIT_FALSE}"; then
32230 as_fn_error $?
"conditional \"ENABLE_BFD_64_BIT\" was never defined.
32231 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32233 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
32234 as_fn_error $?
"conditional \"HAVE_PYTHON\" was never defined.
32235 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32237 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
32238 as_fn_error $?
"conditional \"HAVE_GUILE\" was never defined.
32239 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32243 : "${CONFIG_STATUS=./config.status}"
32245 ac_clean_files_save
=$ac_clean_files
32246 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
32247 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32248 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32250 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32252 # Generated by $as_me.
32253 # Run this file to recreate the current configuration.
32254 # Compiler output produced by configure, useful for debugging
32255 # configure, is in config.log if it exists.
32258 ac_cs_recheck=false
32261 SHELL=\${CONFIG_SHELL-$SHELL}
32264 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
32265 ## -------------------- ##
32266 ## M4sh Initialization. ##
32267 ## -------------------- ##
32269 # Be more Bourne compatible
32270 DUALCASE
=1; export DUALCASE
# for MKS sh
32271 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
32274 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32275 # is contrary to our usage. Disable this feature.
32276 alias -g '${1+"$@"}'='"$@"'
32277 setopt NO_GLOB_SUBST
32279 case `(set -o) 2>/dev/null` in #(
32291 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32292 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32293 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32294 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32295 # Prefer a ksh shell builtin over an external printf program on Solaris,
32296 # but without wasting forks for bash or zsh.
32297 if test -z "$BASH_VERSION$ZSH_VERSION" \
32298 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32299 as_echo='print
-r --'
32300 as_echo_n='print
-rn --'
32301 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32302 as_echo='printf %s
\n'
32303 as_echo_n='printf %s
'
32305 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32306 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
32307 as_echo_n='/usr
/ucb
/echo -n'
32309 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32310 as_echo_n_body='eval
32314 expr "X$arg" : "X\\(.*\\)$as_nl";
32315 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32317 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
32319 export as_echo_n_body
32320 as_echo_n='sh
-c $as_echo_n_body as_echo
'
32322 export as_echo_body
32323 as_echo='sh
-c $as_echo_body as_echo
'
32326 # The user is always right.
32327 if test "${PATH_SEPARATOR+set}" != set; then
32329 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32330 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32337 # We need space, tab and new line, in precisely that order. Quoting is
32338 # there to prevent editors from complaining about space-tab.
32339 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32340 # splitting by setting IFS to empty value.)
32343 # Find who we are. Look in the path if we contain no directory separator.
32346 *[\\/]* ) as_myself=$0 ;;
32347 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32348 for as_dir in $PATH
32351 test -z "$as_dir" && as_dir=.
32352 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32358 # We did not find ourselves, most probably we were run as `sh COMMAND'
32359 # in which case we are not to be found in the path.
32360 if test "x$as_myself" = x
; then
32363 if test ! -f "$as_myself"; then
32364 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32368 # Unset variables that we do not need and which cause bugs (e.g. in
32369 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32370 # suppresses any "Segmentation fault" message there. '((' could
32371 # trigger a bug in pdksh 5.2.14.
32372 for as_var
in BASH_ENV ENV MAIL MAILPATH
32373 do eval test x\
${$as_var+set} = xset \
32374 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
32387 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
32390 # as_fn_error STATUS ERROR [LINENO LOG_FD]
32391 # ----------------------------------------
32392 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32393 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32394 # script with STATUS, using 1 if that was 0.
32397 as_status
=$1; test $as_status -eq 0 && as_status
=1
32399 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
32400 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32402 $as_echo "$as_me: error: $2" >&2
32403 as_fn_exit
$as_status
32407 # as_fn_set_status STATUS
32408 # -----------------------
32409 # Set $? to STATUS, without forking.
32410 as_fn_set_status
()
32413 } # as_fn_set_status
32415 # as_fn_exit STATUS
32416 # -----------------
32417 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32421 as_fn_set_status
$1
32427 # Portably unset VAR.
32430 { eval $1=; unset $1;}
32432 as_unset
=as_fn_unset
32433 # as_fn_append VAR VALUE
32434 # ----------------------
32435 # Append the text in VALUE to the end of the definition contained in VAR. Take
32436 # advantage of any shell optimizations that allow amortized linear growth over
32437 # repeated appends, instead of the typical quadratic growth present in naive
32439 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
32440 eval 'as_fn_append ()
32451 # as_fn_arith ARG...
32452 # ------------------
32453 # Perform arithmetic evaluation on the ARGs, and store the result in the
32454 # global $as_val. Take advantage of shells that can avoid forks. The arguments
32455 # must be portable across $(()) and expr.
32456 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
32457 eval 'as_fn_arith ()
32464 as_val
=`expr "$@" || test $? -eq 1`
32469 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
32470 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
32476 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32477 as_basename
=basename
32482 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
32488 as_me
=`$as_basename -- "$0" ||
32489 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32490 X"$0" : 'X\(//\)$' \| \
32491 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32493 sed '/^.*\/\([^/][^/]*\)\/*$/{
32507 # Avoid depending upon Character Ranges.
32508 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
32509 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32510 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
32511 as_cr_digits
='0123456789'
32512 as_cr_alnum
=$as_cr_Letters$as_cr_digits
32514 ECHO_C
= ECHO_N
= ECHO_T
=
32515 case `echo -n x` in #(((((
32517 case `echo 'xy\c'` in
32518 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
32520 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
32527 rm -f conf$$ conf$$.exe conf$$.
file
32528 if test -d conf$$.dir
; then
32529 rm -f conf$$.dir
/conf$$.
file
32532 mkdir conf$$.dir
2>/dev
/null
32534 if (echo >conf$$.
file) 2>/dev
/null
; then
32535 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
32537 # ... but there are two gotchas:
32538 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32539 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32540 # In both cases, we have to default to `cp -pR'.
32541 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
32543 elif ln conf$$.
file conf$$
2>/dev
/null
; then
32551 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
32552 rmdir conf$$.dir
2>/dev
/null
32557 # Create "$as_dir" as a directory, including parents if necessary.
32562 -*) as_dir
=.
/$as_dir;;
32564 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
32568 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32569 *) as_qdir
=$as_dir;;
32571 as_dirs
="'$as_qdir' $as_dirs"
32572 as_dir
=`$as_dirname -- "$as_dir" ||
32573 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32574 X"$as_dir" : 'X\(//\)[^/]' \| \
32575 X"$as_dir" : 'X\(//\)$' \| \
32576 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32577 $as_echo X"$as_dir" |
32578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32582 /^X\(\/\/\)[^/].*/{
32595 test -d "$as_dir" && break
32597 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
32598 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
32602 if mkdir
-p .
2>/dev
/null
; then
32603 as_mkdir_p
='mkdir -p "$as_dir"'
32605 test -d .
/-p && rmdir .
/-p
32610 # as_fn_executable_p FILE
32611 # -----------------------
32612 # Test if FILE is an executable regular file.
32613 as_fn_executable_p
()
32615 test -f "$1" && test -x "$1"
32616 } # as_fn_executable_p
32617 as_test_x
='test -x'
32618 as_executable_p
=as_fn_executable_p
32620 # Sed expression to map a string onto a valid CPP name.
32621 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32623 # Sed expression to map a string onto a valid variable name.
32624 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32628 ## ----------------------------------- ##
32629 ## Main body of $CONFIG_STATUS script. ##
32630 ## ----------------------------------- ##
32632 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
32634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32635 # Save the log message, to keep $0 and so on meaningful, and to
32636 # report actual input values of CONFIG_FILES etc. instead of their
32637 # values after options handling.
32639 This file was extended by $as_me, which was
32640 generated by GNU Autoconf 2.69. Invocation command line was
32642 CONFIG_FILES = $CONFIG_FILES
32643 CONFIG_HEADERS = $CONFIG_HEADERS
32644 CONFIG_LINKS = $CONFIG_LINKS
32645 CONFIG_COMMANDS = $CONFIG_COMMANDS
32648 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32653 case $ac_config_files in *"
32654 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
32657 case $ac_config_headers in *"
32658 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
32662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32663 # Files that config.status was made for.
32664 config_files="$ac_config_files"
32665 config_headers="$ac_config_headers"
32666 config_links="$ac_config_links"
32667 config_commands="$ac_config_commands"
32671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32673 \`$as_me' instantiates files and other configuration actions
32674 from templates according to the current configuration. Unless the files
32675 and actions are specified as TAGs, all are instantiated by default.
32677 Usage: $0 [OPTION]... [TAG]...
32679 -h, --help print this help, then exit
32680 -V, --version print version number and configuration settings, then exit
32681 --config print configuration, then exit
32682 -q, --quiet, --silent
32683 do not print progress messages
32684 -d, --debug don't remove temporary files
32685 --recheck update $as_me by reconfiguring in the same conditions
32686 --file=FILE[:TEMPLATE]
32687 instantiate the configuration file FILE
32688 --header=FILE[:TEMPLATE]
32689 instantiate the configuration header FILE
32691 Configuration files:
32694 Configuration headers:
32697 Configuration links:
32700 Configuration commands:
32703 Report bugs to the package provider."
32706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32707 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
32710 configured by $0, generated by GNU Autoconf 2.69,
32711 with options \\"\$ac_cs_config\\"
32713 Copyright (C) 2012 Free Software Foundation, Inc.
32714 This config.status script is free software; the Free Software Foundation
32715 gives unlimited permission to copy, distribute and modify it."
32721 test -n "\$AWK" || AWK=awk
32724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32725 # The default lists apply if the user does not specify any file.
32731 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
32732 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
32736 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
32748 # Handling of the options.
32749 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
32751 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
32752 $as_echo "$ac_cs_version"; exit ;;
32753 --config |
--confi |
--conf |
--con |
--co |
--c )
32754 $as_echo "$ac_cs_config"; exit ;;
32755 --debug |
--debu |
--deb |
--de |
--d |
-d )
32757 --file |
--fil |
--fi |
--f )
32760 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32761 '') as_fn_error $?
"missing file argument" ;;
32763 as_fn_append CONFIG_FILES
" '$ac_optarg'"
32764 ac_need_defaults
=false
;;
32765 --header |
--heade |
--head |
--hea )
32768 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32770 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
32771 ac_need_defaults
=false
;;
32773 # Conflict between --help and --header
32774 as_fn_error $?
"ambiguous option: \`$1'
32775 Try \`$0 --help' for more information.";;
32776 --help |
--hel |
-h )
32777 $as_echo "$ac_cs_usage"; exit ;;
32778 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
32779 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
32782 # This is an error.
32783 -*) as_fn_error $?
"unrecognized option: \`$1'
32784 Try \`$0 --help' for more information." ;;
32786 *) as_fn_append ac_config_targets
" $1"
32787 ac_need_defaults
=false
;;
32793 ac_configure_extra_args
=
32795 if $ac_cs_silent; then
32797 ac_configure_extra_args
="$ac_configure_extra_args --silent"
32801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32802 if \$ac_cs_recheck; then
32803 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32805 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
32806 CONFIG_SHELL='$SHELL'
32807 export CONFIG_SHELL
32812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32816 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32817 ## Running $as_me. ##
32823 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32829 # The HP-UX ksh and POSIX shell print the target directory to stdout
32830 # if CDPATH is set.
32831 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32833 sed_quote_subst='$sed_quote_subst'
32834 double_quote_subst='$double_quote_subst'
32835 delay_variable_subst='$delay_variable_subst'
32836 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
32837 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
32838 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
32839 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
32840 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
32841 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
32842 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
32843 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
32844 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
32845 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
32846 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
32847 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
32848 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
32849 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
32850 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
32851 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
32852 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
32853 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
32854 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
32855 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
32856 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
32857 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
32858 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
32859 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
32860 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
32861 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
32862 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
32863 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
32864 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
32865 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
32866 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
32867 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
32868 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
32869 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
32870 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
32871 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
32872 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
32873 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
32874 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
32875 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
32876 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
32877 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
32878 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
32879 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
32880 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
32881 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
32882 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
32883 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
32884 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"`'
32885 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
32886 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
32887 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
32888 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
32889 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
32890 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
32891 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
32892 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
32893 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
32894 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
32895 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
32896 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
32897 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
32898 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
32899 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
32900 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
32901 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
32902 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
32903 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
32904 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
32905 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
32906 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
32907 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
32908 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
32909 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
32910 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
32911 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
32912 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
32913 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
32914 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
32915 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
32916 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
32917 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
32918 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
32919 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
32920 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
32921 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
32922 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
32923 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
32924 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
32925 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
32926 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
32927 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
32928 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
32929 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
32930 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
32931 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
32932 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
32933 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
32934 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
32935 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
32936 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
32937 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
32938 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
32939 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
32940 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
32941 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
32942 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
32943 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
32944 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
32945 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
32946 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
32947 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
32948 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
32949 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
32950 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
32951 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
32952 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
32953 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
32954 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
32955 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
32956 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
32957 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
32958 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
32959 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
32960 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
32961 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
32962 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
32963 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
32964 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32965 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32966 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
32967 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
32968 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
32969 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
32970 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
32971 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
32972 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
32973 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
32974 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
32975 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32976 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32977 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
32978 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32979 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32980 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32981 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32982 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32983 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32984 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
32985 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
32986 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
32987 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32988 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
32989 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
32990 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
32991 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
32992 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
32993 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
32994 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
32995 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
32996 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
32997 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
32998 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
32999 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33000 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
33001 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
33002 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33003 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
33004 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
33005 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
33006 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
33007 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
33008 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
33009 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
33010 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
33013 LTCFLAGS='$LTCFLAGS'
33014 compiler='$compiler_DEFAULT'
33016 # A function that is used when there is no print builtin or printf.
33017 func_fallback_echo ()
33019 eval 'cat <<_LTECHO_EOF
33024 # Quote evaled strings.
33038 deplibs_check_method \
33047 lt_cv_sys_global_symbol_pipe \
33048 lt_cv_sys_global_symbol_to_cdecl \
33049 lt_cv_sys_global_symbol_to_c_name_address \
33050 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
33051 lt_prog_compiler_no_builtin_flag \
33052 lt_prog_compiler_wl \
33053 lt_prog_compiler_pic \
33054 lt_prog_compiler_static \
33055 lt_cv_prog_compiler_c_o \
33063 export_dynamic_flag_spec \
33064 whole_archive_flag_spec \
33065 compiler_needs_object \
33067 allow_undefined_flag \
33068 no_undefined_flag \
33069 hardcode_libdir_flag_spec \
33070 hardcode_libdir_flag_spec_ld \
33071 hardcode_libdir_separator \
33076 variables_saved_for_relink \
33078 library_names_spec \
33080 install_override_mode \
33084 compiler_lib_search_dirs \
33089 compiler_lib_search_path \
33093 lt_prog_compiler_no_builtin_flag_CXX \
33094 lt_prog_compiler_wl_CXX \
33095 lt_prog_compiler_pic_CXX \
33096 lt_prog_compiler_static_CXX \
33097 lt_cv_prog_compiler_c_o_CXX \
33098 export_dynamic_flag_spec_CXX \
33099 whole_archive_flag_spec_CXX \
33100 compiler_needs_object_CXX \
33102 allow_undefined_flag_CXX \
33103 no_undefined_flag_CXX \
33104 hardcode_libdir_flag_spec_CXX \
33105 hardcode_libdir_flag_spec_ld_CXX \
33106 hardcode_libdir_separator_CXX \
33107 fix_srcfile_path_CXX \
33108 exclude_expsyms_CXX \
33109 include_expsyms_CXX \
33110 file_list_spec_CXX \
33111 compiler_lib_search_dirs_CXX \
33112 predep_objects_CXX \
33113 postdep_objects_CXX \
33116 compiler_lib_search_path_CXX; do
33117 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
33118 *[\\\\\\\`\\"\\\$]*)
33119 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
33122 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33127 # Double-quote double-evaled strings.
33128 for var in reload_cmds \
33129 old_postinstall_cmds \
33130 old_postuninstall_cmds \
33132 extract_expsyms_cmds \
33133 old_archive_from_new_cmds \
33134 old_archive_from_expsyms_cmds \
33136 archive_expsym_cmds \
33138 module_expsym_cmds \
33139 export_symbols_cmds \
33142 postuninstall_cmds \
33144 sys_lib_search_path_spec \
33145 sys_lib_dlsearch_path_spec \
33147 old_archive_cmds_CXX \
33148 old_archive_from_new_cmds_CXX \
33149 old_archive_from_expsyms_cmds_CXX \
33151 archive_expsym_cmds_CXX \
33153 module_expsym_cmds_CXX \
33154 export_symbols_cmds_CXX \
33155 prelink_cmds_CXX; do
33156 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
33157 *[\\\\\\\`\\"\\\$]*)
33158 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
33161 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33166 ac_aux_dir='$ac_aux_dir'
33167 xsi_shell='$xsi_shell'
33168 lt_shell_append='$lt_shell_append'
33170 # See if we are running on zsh, and set the options which allow our
33171 # commands through without removal of \ escapes INIT.
33172 if test -n "\${ZSH_VERSION+set}" ; then
33173 setopt NO_GLOB_SUBST
33179 TIMESTAMP='$TIMESTAMP'
33185 ac_aux_dir='$ac_aux_dir'
33188 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33189 GDB_NM_FILE=$GDB_NM_FILE
33193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33195 # Handling of arguments.
33196 for ac_config_target
in $ac_config_targets
33198 case $ac_config_target in
33199 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
33200 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
33201 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
33202 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
33203 "nm.h") CONFIG_LINKS
="$CONFIG_LINKS nm.h:$GDB_NM_FILE" ;;
33204 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
33205 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
33206 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
33207 "gdb-gdb.py") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.py" ;;
33208 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
33209 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
33211 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33216 # If the user did not use the arguments to specify the items to instantiate,
33217 # then the envvar interface is used. Set only those that are not.
33218 # We use the long form for the default assignment because of an extremely
33219 # bizarre bug on SunOS 4.1.3.
33220 if $ac_need_defaults; then
33221 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
33222 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
33223 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
33224 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
33227 # Have a temporary directory for convenience. Make it in the build tree
33228 # simply because there is no reason against having it here, and in addition,
33229 # creating and moving files from /tmp can sometimes cause problems.
33230 # Hook for its removal unless debugging.
33231 # Note that there is a small window in which the directory will not be cleaned:
33232 # after its creation but before its name has been assigned to `$tmp'.
33236 trap 'exit_status=$?
33237 : "${ac_tmp:=$tmp}"
33238 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33240 trap 'as_fn_exit 1' 1 2 13 15
33242 # Create a (secure) tmp directory for tmp files.
33245 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33249 tmp
=.
/conf$$
-$RANDOM
33250 (umask 077 && mkdir
"$tmp")
33251 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
33254 # Set up the scripts for CONFIG_FILES section.
33255 # No need to generate them if there are no CONFIG_FILES.
33256 # This happens for instance with `./config.status config.h'.
33257 if test -n "$CONFIG_FILES"; then
33259 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
33260 ac_cs_awk_getline
=:
33261 ac_cs_awk_pipe_init
=
33262 ac_cs_awk_read_file
='
33263 while ((getline aline < (F[key])) > 0)
33266 ac_cs_awk_pipe_fini
=
33268 ac_cs_awk_getline
=false
33269 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
33270 ac_cs_awk_read_file
='
33272 print "cat " F[key] " &&"
33273 '$ac_cs_awk_pipe_init
33274 # The final `:' finishes the AND list.
33275 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
33277 ac_cr
=`echo X | tr X '\015'`
33278 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33279 # But we know of no other shell where ac_cr would be empty at this
33280 # point, so we can use a bashism as a fallback.
33281 if test "x$ac_cr" = x
; then
33282 eval ac_cr
=\$
\'\\r
\'
33284 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33285 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33288 ac_cs_awk_cr
=$ac_cr
33291 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33294 # Create commands to substitute file output variables.
33296 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
33297 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
33298 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
33301 } >conf$
$files.sh
&&
33302 . .
/conf$
$files.sh ||
33303 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
33304 rm -f conf$
$files.sh
33307 echo "cat >conf$$subs.awk <<_ACEOF" &&
33308 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33310 } >conf$$subs.sh ||
33311 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33312 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33314 for ac_last_try in false false false false false :; do
33315 . ./conf$$subs.sh ||
33316 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33318 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
33319 if test $ac_delim_n = $ac_delim_num; then
33321 elif $ac_last_try; then
33322 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33324 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
33327 rm -f conf$$subs.sh
33329 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33330 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
33334 s/^/S["/; s
/!.
*/"]=/
33344 s/\(.\{148\}\)..*/\1/
33346 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
33351 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
33358 s/\(.\{148\}\)..*/\1/
33360 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
33364 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
33369 ' <conf$$subs.awk | sed '
33374 ' >>$CONFIG_STATUS || ac_write_fail=1
33375 rm -f conf$$subs.awk
33376 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33378 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
33379 for (key in S) S_is_set[key] = 1
33381 \$ac_cs_awk_pipe_init
33385 nfields = split(line, field, "@
")
33387 len = length(field[1])
33388 for (i = 2; i < nfields; i++) {
33390 keylen = length(key)
33391 if (S_is_set[key]) {
33393 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33394 len += length(value) + length(field[++i])
33399 if (nfields == 3 && !substed) {
33401 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
33402 \$ac_cs_awk_read_file
33408 \$ac_cs_awk_pipe_fini
33411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33412 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33413 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
33416 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
33417 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
33420 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33421 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
33422 # trailing colons and then remove the whole line if VPATH becomes empty
33423 # (actually we leave an empty line to preserve line numbers).
33424 if test "x
$srcdir" = x.; then
33425 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
33443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33444 fi # test -n "$CONFIG_FILES"
33446 # Set up the scripts for CONFIG_HEADERS section.
33447 # No need to generate them if there are no CONFIG_HEADERS.
33448 # This happens for instance with `./config.status Makefile'.
33449 if test -n "$CONFIG_HEADERS"; then
33450 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
33454 # Transform confdefs.h into an awk script `defines.awk', embedded as
33455 # here-document in config.status, that substitutes the proper values into
33456 # config.h.in to produce config.h.
33458 # Create a delimiter string that does not exist in confdefs.h, to ease
33459 # handling of long lines.
33461 for ac_last_try in false false :; do
33462 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
33463 if test -z "$ac_tt"; then
33465 elif $ac_last_try; then
33466 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
33468 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
33472 # For the awk script, D is an array of macro values keyed by name,
33473 # likewise P contains macro parameters if any. Preserve backslash
33474 # newline sequences.
33476 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33478 s/.\{148\}/&'"$ac_delim"'/g
33481 s/^[ ]*#[ ]*define[ ][ ]*/ /
33488 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
33490 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
33494 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
33495 D["\
1"]=" \
3\\\\\\n
"\\/p
33497 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
33502 s/.\{148\}/&'"$ac_delim"'/g
33507 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
33510 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
33512 ' <confdefs.h | sed '
33513 s/'"$ac_delim"'/"\\\
33514 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33516 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33517 for (key in D) D_is_set[key] = 1
33520 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33522 split(line, arg, " ")
33523 if (arg[1] == "#") {
33527 defundef
= substr
(arg
[1], 2)
33530 split(mac1
, mac2
, "(") #)
33532 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
33533 if (D_is_set
[macro
]) {
33534 # Preserve the white space surrounding the "#".
33535 print prefix
"define", macro P
[macro
] D
[macro
]
33538 # Replace #undef with comments. This is necessary, for example,
33539 # in the case of _POSIX_SOURCE, which is predefined and required
33540 # on some systems where configure will not decide to define it.
33541 if (defundef
== "undef") {
33542 print
"/*", prefix defundef
, macro
, "*/"
33550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33551 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
33552 fi # test -n "$CONFIG_HEADERS"
33555 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
33560 :[FHLC
]) ac_mode
=$ac_tag; continue;;
33562 case $ac_mode$ac_tag in
33564 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
33565 :[FH
]-) ac_tag
=-:-;;
33566 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
33583 -) ac_f
="$ac_tmp/stdin";;
33584 *) # Look for the file first in the build tree, then in the source tree
33585 # (if the path is not absolute). The absolute path cannot be DOS-style,
33586 # because $ac_f cannot contain `:'.
33590 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
33592 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33594 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33595 as_fn_append ac_file_inputs
" '$ac_f'"
33598 # Let's still pretend it is `configure' which instantiates (i.e., don't
33599 # use $as_me), people would be surprised to read:
33600 # /* config.h. Generated by config.status. */
33601 configure_input
='Generated from '`
33602 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33604 if test x
"$ac_file" != x-
; then
33605 configure_input
="$ac_file. $configure_input"
33606 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33607 $as_echo "$as_me: creating $ac_file" >&6;}
33609 # Neutralize special characters interpreted by sed in replacement strings.
33610 case $configure_input in #(
33611 *\
&* |
*\|
* |
*\\* )
33612 ac_sed_conf_input
=`$as_echo "$configure_input" |
33613 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33614 *) ac_sed_conf_input
=$configure_input;;
33618 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
33619 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
33624 ac_dir
=`$as_dirname -- "$ac_file" ||
33625 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33626 X"$ac_file" : 'X\(//\)[^/]' \| \
33627 X"$ac_file" : 'X\(//\)$' \| \
33628 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33629 $as_echo X"$ac_file" |
33630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33634 /^X\(\/\/\)[^/].*/{
33647 as_dir
="$ac_dir"; as_fn_mkdir_p
33651 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
33653 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33654 # A ".." for each directory in $ac_dir_suffix.
33655 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33656 case $ac_top_builddir_sub in
33657 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
33658 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
33661 ac_abs_top_builddir
=$ac_pwd
33662 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
33663 # for backward compatibility:
33664 ac_top_builddir
=$ac_top_build_prefix
33667 .
) # We are building in place.
33669 ac_top_srcdir
=$ac_top_builddir_sub
33670 ac_abs_top_srcdir
=$ac_pwd ;;
33671 [\\/]* | ?
:[\\/]* ) # Absolute name.
33672 ac_srcdir
=$srcdir$ac_dir_suffix;
33673 ac_top_srcdir
=$srcdir
33674 ac_abs_top_srcdir
=$srcdir ;;
33675 *) # Relative name.
33676 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
33677 ac_top_srcdir
=$ac_top_build_prefix$srcdir
33678 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
33680 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
33690 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
33691 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
33695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33696 # If the template does not know about datarootdir, expand it.
33697 # FIXME: This hack should be removed a few years after 2.60.
33698 ac_datarootdir_hack
=; ac_datarootdir_seen
=
33709 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33710 *datarootdir
*) ac_datarootdir_seen
=yes;;
33711 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
33712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33713 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33716 ac_datarootdir_hack='
33717 s&@datadir@&$datadir&g
33718 s&@docdir@&$docdir&g
33719 s&@infodir@&$infodir&g
33720 s&@localedir@&$localedir&g
33721 s&@mandir@&$mandir&g
33722 s&\\\${datarootdir}&$datarootdir&g' ;;
33726 # Neutralize VPATH when `$srcdir' = `.'.
33727 # Shell code in configure.ac might set extrasub.
33728 # FIXME: do we really want to maintain this feature?
33729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33730 ac_sed_extra="$ac_vpsub
33733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33735 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
33736 s|@configure_input@|
$ac_sed_conf_input|
;t t
33737 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
33738 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
33739 s
&@srcdir@
&$ac_srcdir&;t t
33740 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
33741 s
&@top_srcdir@
&$ac_top_srcdir&;t t
33742 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
33743 s
&@builddir@
&$ac_builddir&;t t
33744 s
&@abs_builddir@
&$ac_abs_builddir&;t t
33745 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
33746 s
&@INSTALL@
&$ac_INSTALL&;t t
33747 $ac_datarootdir_hack
33749 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
33750 if $ac_cs_awk_getline; then
33751 $AWK -f "$ac_tmp/subs.
awk"
33753 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
33755 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
33757 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33758 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
33759 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
33760 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
33761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
33762 which seems to be undefined. Please make sure it is defined" >&5
33763 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
33764 which seems to be undefined. Please make sure it is defined" >&2;}
33766 rm -f "$ac_tmp/stdin"
33768 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33769 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33771 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33777 if test x"$ac_file" != x-; then
33779 $as_echo "/* $configure_input */" \
33780 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33781 } >"$ac_tmp/config.h" \
33782 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33783 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33784 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33785 $as_echo "$as_me: $ac_file is unchanged" >&6;}
33788 mv "$ac_tmp/config.h" "$ac_file" \
33789 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33792 $as_echo "/* $configure_input */" \
33793 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33794 || as_fn_error $? "could not create -" "$LINENO" 5
33802 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
33805 # Prefer the file from the source tree if names are identical.
33806 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
33807 ac_source=$srcdir/$ac_source
33810 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
33811 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
33813 if test ! -r "$ac_source"; then
33814 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
33818 # Try a relative symlink, then a hard link, then a copy.
33820 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
33821 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
33823 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
33824 ln "$ac_source" "$ac_file" 2>/dev/null ||
33825 cp -p "$ac_source" "$ac_file" ||
33826 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
33829 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33830 $as_echo "$as_me: executing $ac_file commands" >&6;}
33835 case $ac_file$ac_mode in
33836 "config.h":H) echo > stamp-h ;;
33839 # See if we are running on zsh, and set the options which allow our
33840 # commands through without removal of \ escapes.
33841 if test -n "${ZSH_VERSION+set}" ; then
33842 setopt NO_GLOB_SUBST
33845 cfgfile="${ofile}T"
33846 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
33849 cat <<_LT_EOF >> "$cfgfile"
33852 # `$ECHO "$ofile" | sed 's
%^.
*/%%'` - Provide generalized library-building support services.
33853 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
33854 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
33855 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
33857 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
33858 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
33859 # Written by Gordon Matzigkeit, 1996
33861 # This file is part of GNU Libtool.
33863 # GNU Libtool is free software; you can redistribute it and/or
33864 # modify it under the terms of the GNU General Public License as
33865 # published by the Free Software Foundation; either version 2 of
33866 # the License, or (at your option) any later version.
33868 # As a special exception to the GNU General Public License,
33869 # if you distribute this file as part of a program or library that
33870 # is built using GNU Libtool, you may include this file under the
33871 # same distribution terms that you use for the rest of that program.
33873 # GNU Libtool is distributed in the hope that it will be useful,
33874 # but WITHOUT ANY WARRANTY; without even the implied warranty of
33875 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33876 # GNU General Public License for more details.
33878 # You should have received a copy of the GNU General Public License
33879 # along with GNU Libtool; see the file COPYING. If not, a copy
33880 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
33881 # obtained by writing to the Free Software Foundation, Inc.,
33882 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
33885 # The names of the tagged configurations supported by this script.
33886 available_tags="CXX "
33888 # ### BEGIN LIBTOOL CONFIG
33890 # Which release of libtool.m4 was used?
33891 macro_version=$macro_version
33892 macro_revision=$macro_revision
33894 # Whether or not to build shared libraries.
33895 build_libtool_libs=$enable_shared
33897 # Whether or not to build static libraries.
33898 build_old_libs=$enable_static
33900 # What type of objects to build.
33903 # Whether or not to optimize for fast installation.
33904 fast_install=$enable_fast_install
33906 # Shell to use when invoking shell scripts.
33909 # An echo program that protects backslashes.
33913 host_alias=$host_alias
33917 # The build system.
33918 build_alias=$build_alias
33922 # A sed program that does not truncate output.
33925 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
33926 Xsed="\$SED -e 1s/^X//"
33928 # A grep program that handles long lines.
33934 # A literal string matcher.
33937 # A BSD- or MS-compatible name lister.
33940 # Whether we need soft or hard links.
33943 # What is the maximum length of a command?
33944 max_cmd_len=$max_cmd_len
33946 # Object file suffix (normally "o").
33949 # Executable file suffix (normally "").
33952 # whether the shell understands "unset".
33955 # turn spaces into newlines.
33958 # turn newlines into spaces.
33961 # An object symbol dumper.
33962 OBJDUMP=$lt_OBJDUMP
33964 # Method to check whether dependent libraries are shared objects.
33965 deplibs_check_method=$lt_deplibs_check_method
33967 # Command to use when deplibs_check_method == "file_magic".
33968 file_magic_cmd=$lt_file_magic_cmd
33972 AR_FLAGS=$lt_AR_FLAGS
33974 # A symbol stripping program.
33977 # Commands used to install an old-style archive.
33979 old_postinstall_cmds=$lt_old_postinstall_cmds
33980 old_postuninstall_cmds=$lt_old_postuninstall_cmds
33982 # Whether to use a lock for old archive extraction.
33983 lock_old_archive_extraction=$lock_old_archive_extraction
33988 # LTCC compiler flags.
33989 LTCFLAGS=$lt_CFLAGS
33991 # Take the output of nm and produce a listing of raw symbols and C names.
33992 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
33994 # Transform the output of nm in a proper C declaration.
33995 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
33997 # Transform the output of nm in a C name address pair.
33998 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34000 # Transform the output of nm in a C name address pair when lib prefix is needed.
34001 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34003 # The name of the directory that contains temporary libtool files.
34006 # Used to examine libraries when file_magic_cmd begins with "file".
34007 MAGIC_CMD=$MAGIC_CMD
34009 # Must we lock files when doing compilation?
34010 need_locks=$lt_need_locks
34012 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34013 DSYMUTIL=$lt_DSYMUTIL
34015 # Tool to change global to local symbols on Mac OS X.
34018 # Tool to manipulate fat objects and archives on Mac OS X.
34021 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
34024 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34025 OTOOL64=$lt_OTOOL64
34027 # Old archive suffix (normally "a").
34030 # Shared library suffix (normally ".so").
34031 shrext_cmds=$lt_shrext_cmds
34033 # The commands to extract the exported symbol list from a shared archive.
34034 extract_expsyms_cmds=$lt_extract_expsyms_cmds
34036 # Variables whose values should be saved in libtool wrapper scripts and
34037 # restored at link time.
34038 variables_saved_for_relink=$lt_variables_saved_for_relink
34040 # Do we need the "lib" prefix for modules?
34041 need_lib_prefix=$need_lib_prefix
34043 # Do we need a version for libraries?
34044 need_version=$need_version
34046 # Library versioning type.
34047 version_type=$version_type
34049 # Shared library runtime path variable.
34050 runpath_var=$runpath_var
34052 # Shared library path variable.
34053 shlibpath_var=$shlibpath_var
34055 # Is shlibpath searched before the hard-coded library search path?
34056 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34058 # Format of library name prefix.
34059 libname_spec=$lt_libname_spec
34061 # List of archive names. First name is the real one, the rest are links.
34062 # The last name is the one that the linker finds with -lNAME
34063 library_names_spec=$lt_library_names_spec
34065 # The coded name of the library, if different from the real name.
34066 soname_spec=$lt_soname_spec
34068 # Permission mode override for installation of shared libraries.
34069 install_override_mode=$lt_install_override_mode
34071 # Command to use after installation of a shared archive.
34072 postinstall_cmds=$lt_postinstall_cmds
34074 # Command to use after uninstallation of a shared archive.
34075 postuninstall_cmds=$lt_postuninstall_cmds
34077 # Commands used to finish a libtool library installation in a directory.
34078 finish_cmds=$lt_finish_cmds
34080 # As "finish_cmds", except a single script fragment to be evaled but
34082 finish_eval=$lt_finish_eval
34084 # Whether we should hardcode library paths into libraries.
34085 hardcode_into_libs=$hardcode_into_libs
34087 # Compile-time system search path for libraries.
34088 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34090 # Run-time system search path for libraries.
34091 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
34093 # Whether dlopen is supported.
34094 dlopen_support=$enable_dlopen
34096 # Whether dlopen of programs is supported.
34097 dlopen_self=$enable_dlopen_self
34099 # Whether dlopen of statically linked programs is supported.
34100 dlopen_self_static=$enable_dlopen_self_static
34102 # Commands to strip libraries.
34103 old_striplib=$lt_old_striplib
34104 striplib=$lt_striplib
34107 # The linker used to build libraries.
34110 # How to create reloadable object files.
34111 reload_flag=$lt_reload_flag
34112 reload_cmds=$lt_reload_cmds
34114 # Commands used to build an old-style archive.
34115 old_archive_cmds=$lt_old_archive_cmds
34117 # A language specific compiler.
34120 # Is the compiler the GNU compiler?
34123 # Compiler flag to turn off builtin functions.
34124 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
34126 # How to pass a linker flag through the compiler.
34127 wl=$lt_lt_prog_compiler_wl
34129 # Additional compiler flags for building library objects.
34130 pic_flag=$lt_lt_prog_compiler_pic
34132 # Compiler flag to prevent dynamic linking.
34133 link_static_flag=$lt_lt_prog_compiler_static
34135 # Does compiler simultaneously support -c and -o options?
34136 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
34138 # Whether or not to add -lc for building shared libraries.
34139 build_libtool_need_lc=$archive_cmds_need_lc
34141 # Whether or not to disallow shared libs when runtime libs are static.
34142 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
34144 # Compiler flag to allow reflexive dlopens.
34145 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
34147 # Compiler flag to generate shared objects directly from archives.
34148 whole_archive_flag_spec=$lt_whole_archive_flag_spec
34150 # Whether the compiler copes with passing no objects directly.
34151 compiler_needs_object=$lt_compiler_needs_object
34153 # Create an old-style archive from a shared archive.
34154 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
34156 # Create a temporary old-style archive to link instead of a shared archive.
34157 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
34159 # Commands used to build a shared archive.
34160 archive_cmds=$lt_archive_cmds
34161 archive_expsym_cmds=$lt_archive_expsym_cmds
34163 # Commands used to build a loadable module if different from building
34164 # a shared archive.
34165 module_cmds=$lt_module_cmds
34166 module_expsym_cmds=$lt_module_expsym_cmds
34168 # Whether we are building with GNU ld or not.
34169 with_gnu_ld=$lt_with_gnu_ld
34171 # Flag that allows shared libraries with undefined symbols to be built.
34172 allow_undefined_flag=$lt_allow_undefined_flag
34174 # Flag that enforces no undefined symbols.
34175 no_undefined_flag=$lt_no_undefined_flag
34177 # Flag to hardcode \$libdir into a binary during linking.
34178 # This must work even if \$libdir does not exist
34179 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
34181 # If ld is used when linking, flag to hardcode \$libdir into a binary
34182 # during linking. This must work even if \$libdir does not exist.
34183 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
34185 # Whether we need a single "-rpath" flag with a separated argument.
34186 hardcode_libdir_separator=$lt_hardcode_libdir_separator
34188 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34189 # DIR into the resulting binary.
34190 hardcode_direct=$hardcode_direct
34192 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34193 # DIR into the resulting binary and the resulting library dependency is
34194 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
34195 # library is relocated.
34196 hardcode_direct_absolute=$hardcode_direct_absolute
34198 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34199 # into the resulting binary.
34200 hardcode_minus_L=$hardcode_minus_L
34202 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34203 # into the resulting binary.
34204 hardcode_shlibpath_var=$hardcode_shlibpath_var
34206 # Set to "yes" if building a shared library automatically hardcodes DIR
34207 # into the library and all subsequent libraries and executables linked
34209 hardcode_automatic=$hardcode_automatic
34211 # Set to yes if linker adds runtime paths of dependent libraries
34212 # to runtime path list.
34213 inherit_rpath=$inherit_rpath
34215 # Whether libtool must link a program against all its dependency libraries.
34216 link_all_deplibs=$link_all_deplibs
34218 # Fix the shell variable \$srcfile for the compiler.
34219 fix_srcfile_path=$lt_fix_srcfile_path
34221 # Set to "yes" if exported symbols are required.
34222 always_export_symbols=$always_export_symbols
34224 # The commands to list exported symbols.
34225 export_symbols_cmds=$lt_export_symbols_cmds
34227 # Symbols that should not be listed in the preloaded symbols.
34228 exclude_expsyms=$lt_exclude_expsyms
34230 # Symbols that must always be exported.
34231 include_expsyms=$lt_include_expsyms
34233 # Commands necessary for linking programs (against libraries) with templates.
34234 prelink_cmds=$lt_prelink_cmds
34236 # Specify filename containing input files.
34237 file_list_spec=$lt_file_list_spec
34239 # How to hardcode a shared library path into an executable.
34240 hardcode_action=$hardcode_action
34242 # The directories searched by this compiler when creating a shared library.
34243 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
34245 # Dependencies to place before and after the objects being linked to
34246 # create a shared library.
34247 predep_objects=$lt_predep_objects
34248 postdep_objects=$lt_postdep_objects
34249 predeps=$lt_predeps
34250 postdeps=$lt_postdeps
34252 # The library search path used internally by the compiler when linking
34253 # a shared library.
34254 compiler_lib_search_path=$lt_compiler_lib_search_path
34256 # ### END LIBTOOL CONFIG
34262 cat <<\_LT_EOF >> "$cfgfile"
34263 # AIX sometimes has problems with the GCC collect2 program. For some
34264 # reason, if we set the COLLECT_NAMES environment variable, the problems
34265 # vanish in a puff of smoke.
34266 if test "X${COLLECT_NAMES+set}" != Xset; then
34268 export COLLECT_NAMES
34275 ltmain="$ac_aux_dir/ltmain.sh"
34278 # We use sed instead of cat because bash on DJGPP gets confused if
34279 # if finds mixed CR/LF and LF-only lines. Since sed operates in
34280 # text mode, it properly converts lines to CR/LF. This bash problem
34281 # is reportedly fixed, but why not run on old versions too?
34282 sed '/^
# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
34283 ||
(rm -f "$cfgfile"; exit 1)
34287 cat << \_LT_EOF
>> "$cfgfile"
34289 # func_dirname file append nondir_replacement
34290 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
34291 # otherwise set result to NONDIR_REPLACEMENT.
34295 */*) func_dirname_result
="${1%/*}${2}" ;;
34296 * ) func_dirname_result
="${3}" ;;
34300 # func_basename file
34303 func_basename_result
="${1##*/}"
34306 # func_dirname_and_basename file append nondir_replacement
34307 # perform func_basename and func_dirname in a single function
34309 # dirname: Compute the dirname of FILE. If nonempty,
34310 # add APPEND to the result, otherwise set result
34311 # to NONDIR_REPLACEMENT.
34312 # value returned in "$func_dirname_result"
34313 # basename: Compute filename of FILE.
34314 # value retuned in "$func_basename_result"
34315 # Implementation must be kept synchronized with func_dirname
34316 # and func_basename. For efficiency, we do not delegate to
34317 # those functions but instead duplicate the functionality here.
34318 func_dirname_and_basename
()
34321 */*) func_dirname_result
="${1%/*}${2}" ;;
34322 * ) func_dirname_result
="${3}" ;;
34324 func_basename_result
="${1##*/}"
34327 # func_stripname prefix suffix name
34328 # strip PREFIX and SUFFIX off of NAME.
34329 # PREFIX and SUFFIX must not contain globbing or regex special
34330 # characters, hashes, percent signs, but SUFFIX may contain a leading
34331 # dot (in which case that matches only a dot).
34334 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
34335 # positional parameters, so assign one to ordinary parameter first.
34336 func_stripname_result
=${3}
34337 func_stripname_result
=${func_stripname_result#"${1}"}
34338 func_stripname_result
=${func_stripname_result%"${2}"}
34344 func_opt_split_opt
=${1%%=*}
34345 func_opt_split_arg
=${1#*=}
34352 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
34353 *) func_lo2o_result
=${1} ;;
34357 # func_xform libobj-or-source
34360 func_xform_result
=${1%.*}.lo
34363 # func_arith arithmetic-term...
34366 func_arith_result
=$
(( $
* ))
34370 # STRING may not start with a hyphen.
34373 func_len_result
=${#1}
34378 *) # Bourne compatible functions.
34379 cat << \_LT_EOF
>> "$cfgfile"
34381 # func_dirname file append nondir_replacement
34382 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
34383 # otherwise set result to NONDIR_REPLACEMENT.
34386 # Extract subdirectory from the argument.
34387 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
34388 if test "X$func_dirname_result" = "X${1}"; then
34389 func_dirname_result
="${3}"
34391 func_dirname_result
="$func_dirname_result${2}"
34395 # func_basename file
34398 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
34402 # func_stripname prefix suffix name
34403 # strip PREFIX and SUFFIX off of NAME.
34404 # PREFIX and SUFFIX must not contain globbing or regex special
34405 # characters, hashes, percent signs, but SUFFIX may contain a leading
34406 # dot (in which case that matches only a dot).
34407 # func_strip_suffix prefix name
34411 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
34412 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
34417 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
34418 my_sed_long_arg
='1s/^-[^=]*=//'
34423 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
34424 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
34430 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
34433 # func_xform libobj-or-source
34436 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
34439 # func_arith arithmetic-term...
34442 func_arith_result
=`expr "$@"`
34446 # STRING may not start with a hyphen.
34449 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
34455 case $lt_shell_append in
34457 cat << \_LT_EOF
>> "$cfgfile"
34459 # func_append var value
34460 # Append VALUE to the end of shell variable VAR.
34468 cat << \_LT_EOF
>> "$cfgfile"
34470 # func_append var value
34471 # Append VALUE to the end of shell variable VAR.
34482 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
34483 ||
(rm -f "$cfgfile"; exit 1)
34485 mv -f "$cfgfile" "$ofile" ||
34486 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
34490 cat <<_LT_EOF >> "$ofile"
34492 # ### BEGIN LIBTOOL TAG CONFIG: CXX
34494 # The linker used to build libraries.
34497 # How to create reloadable object files.
34498 reload_flag=$lt_reload_flag_CXX
34499 reload_cmds=$lt_reload_cmds_CXX
34501 # Commands used to build an old-style archive.
34502 old_archive_cmds=$lt_old_archive_cmds_CXX
34504 # A language specific compiler.
34505 CC=$lt_compiler_CXX
34507 # Is the compiler the GNU compiler?
34510 # Compiler flag to turn off builtin functions.
34511 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
34513 # How to pass a linker flag through the compiler.
34514 wl=$lt_lt_prog_compiler_wl_CXX
34516 # Additional compiler flags for building library objects.
34517 pic_flag=$lt_lt_prog_compiler_pic_CXX
34519 # Compiler flag to prevent dynamic linking.
34520 link_static_flag=$lt_lt_prog_compiler_static_CXX
34522 # Does compiler simultaneously support -c and -o options?
34523 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
34525 # Whether or not to add -lc for building shared libraries.
34526 build_libtool_need_lc=$archive_cmds_need_lc_CXX
34528 # Whether or not to disallow shared libs when runtime libs are static.
34529 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
34531 # Compiler flag to allow reflexive dlopens.
34532 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
34534 # Compiler flag to generate shared objects directly from archives.
34535 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
34537 # Whether the compiler copes with passing no objects directly.
34538 compiler_needs_object=$lt_compiler_needs_object_CXX
34540 # Create an old-style archive from a shared archive.
34541 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
34543 # Create a temporary old-style archive to link instead of a shared archive.
34544 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
34546 # Commands used to build a shared archive.
34547 archive_cmds=$lt_archive_cmds_CXX
34548 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
34550 # Commands used to build a loadable module if different from building
34551 # a shared archive.
34552 module_cmds=$lt_module_cmds_CXX
34553 module_expsym_cmds=$lt_module_expsym_cmds_CXX
34555 # Whether we are building with GNU ld or not.
34556 with_gnu_ld=$lt_with_gnu_ld_CXX
34558 # Flag that allows shared libraries with undefined symbols to be built.
34559 allow_undefined_flag=$lt_allow_undefined_flag_CXX
34561 # Flag that enforces no undefined symbols.
34562 no_undefined_flag=$lt_no_undefined_flag_CXX
34564 # Flag to hardcode \$libdir into a binary during linking.
34565 # This must work even if \$libdir does not exist
34566 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
34568 # If ld is used when linking, flag to hardcode \$libdir into a binary
34569 # during linking. This must work even if \$libdir does not exist.
34570 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
34572 # Whether we need a single "-rpath" flag with a separated argument.
34573 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
34575 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34576 # DIR into the resulting binary.
34577 hardcode_direct=$hardcode_direct_CXX
34579 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34580 # DIR into the resulting binary and the resulting library dependency is
34581 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
34582 # library is relocated.
34583 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
34585 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34586 # into the resulting binary.
34587 hardcode_minus_L=$hardcode_minus_L_CXX
34589 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34590 # into the resulting binary.
34591 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
34593 # Set to "yes" if building a shared library automatically hardcodes DIR
34594 # into the library and all subsequent libraries and executables linked
34596 hardcode_automatic=$hardcode_automatic_CXX
34598 # Set to yes if linker adds runtime paths of dependent libraries
34599 # to runtime path list.
34600 inherit_rpath=$inherit_rpath_CXX
34602 # Whether libtool must link a program against all its dependency libraries.
34603 link_all_deplibs=$link_all_deplibs_CXX
34605 # Fix the shell variable \$srcfile for the compiler.
34606 fix_srcfile_path=$lt_fix_srcfile_path_CXX
34608 # Set to "yes" if exported symbols are required.
34609 always_export_symbols=$always_export_symbols_CXX
34611 # The commands to list exported symbols.
34612 export_symbols_cmds=$lt_export_symbols_cmds_CXX
34614 # Symbols that should not be listed in the preloaded symbols.
34615 exclude_expsyms=$lt_exclude_expsyms_CXX
34617 # Symbols that must always be exported.
34618 include_expsyms=$lt_include_expsyms_CXX
34620 # Commands necessary for linking programs (against libraries) with templates.
34621 prelink_cmds=$lt_prelink_cmds_CXX
34623 # Specify filename containing input files.
34624 file_list_spec=$lt_file_list_spec_CXX
34626 # How to hardcode a shared library path into an executable.
34627 hardcode_action=$hardcode_action_CXX
34629 # The directories searched by this compiler when creating a shared library.
34630 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
34632 # Dependencies to place before and after the objects being linked to
34633 # create a shared library.
34634 predep_objects=$lt_predep_objects_CXX
34635 postdep_objects=$lt_postdep_objects_CXX
34636 predeps=$lt_predeps_CXX
34637 postdeps=$lt_postdeps_CXX
34639 # The library search path used internally by the compiler when linking
34640 # a shared library.
34641 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
34643 # ### END LIBTOOL TAG CONFIG: CXX
34647 "depdir":C
) $SHELL $ac_aux_dir/mkinstalldirs
$DEPDIR ;;
34648 "nm.h":L
) echo > stamp-nmh
;;
34649 "gcore":F
) chmod +x gcore
;;
34657 ac_clean_files
=$ac_clean_files_save
34659 test $ac_write_fail = 0 ||
34660 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
34663 # configure is writing to config.log, and then calls config.status.
34664 # config.status does its own redirection, appending to config.log.
34665 # Unfortunately, on DOS this fails, as config.log is still kept open
34666 # by configure, so config.status won't be able to write to it; its
34667 # output is simply discarded. So we exec the FD to /dev/null,
34668 # effectively closing config.log, so it can be properly (re)opened and
34669 # appended to by config.status. When coming back to configure, we
34670 # need to make the FD available again.
34671 if test "$no_create" != yes; then
34673 ac_config_status_args
=
34674 test "$silent" = yes &&
34675 ac_config_status_args
="$ac_config_status_args --quiet"
34677 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
34679 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34680 # would make configure fail if this is the last instruction.
34681 $ac_cs_success || as_fn_exit
1
34685 # CONFIG_SUBDIRS section.
34687 if test "$no_recursion" != yes; then
34689 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
34690 # so they do not pile up.
34691 ac_sub_configure_args
=
34693 eval "set x $ac_configure_args"
34697 if test -n "$ac_prev"; then
34702 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
34703 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
34704 ac_prev
=cache_file
;;
34705 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
34706 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
34709 --config-cache |
-C)
34711 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
34713 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
34715 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
34717 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
34719 --disable-option-checking)
34723 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34725 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
34729 # Always prepend --prefix to ensure using the same prefix
34730 # in subdir configurations.
34731 ac_arg
="--prefix=$prefix"
34733 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34735 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
34738 if test "$silent" = yes; then
34739 ac_sub_configure_args
="--silent $ac_sub_configure_args"
34742 # Always prepend --disable-option-checking to silence warnings, since
34743 # different subdirs can have different --enable and --with options.
34744 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
34747 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
34749 # Do not complain, so a configure script can configure whichever
34750 # parts of a large source tree are present.
34751 test -d "$srcdir/$ac_dir" ||
continue
34753 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34754 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
34755 $as_echo "$ac_msg" >&6
34756 as_dir
="$ac_dir"; as_fn_mkdir_p
34760 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
34762 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34763 # A ".." for each directory in $ac_dir_suffix.
34764 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34765 case $ac_top_builddir_sub in
34766 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
34767 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
34770 ac_abs_top_builddir
=$ac_pwd
34771 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
34772 # for backward compatibility:
34773 ac_top_builddir
=$ac_top_build_prefix
34776 .
) # We are building in place.
34778 ac_top_srcdir
=$ac_top_builddir_sub
34779 ac_abs_top_srcdir
=$ac_pwd ;;
34780 [\\/]* | ?
:[\\/]* ) # Absolute name.
34781 ac_srcdir
=$srcdir$ac_dir_suffix;
34782 ac_top_srcdir
=$srcdir
34783 ac_abs_top_srcdir
=$srcdir ;;
34784 *) # Relative name.
34785 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
34786 ac_top_srcdir
=$ac_top_build_prefix$srcdir
34787 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
34789 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
34794 # Check for guested configure; otherwise get Cygnus style configure.
34795 if test -f "$ac_srcdir/configure.gnu"; then
34796 ac_sub_configure
=$ac_srcdir/configure.gnu
34797 elif test -f "$ac_srcdir/configure"; then
34798 ac_sub_configure
=$ac_srcdir/configure
34799 elif test -f "$ac_srcdir/configure.in"; then
34800 # This should be Cygnus configure.
34801 ac_sub_configure
=$ac_aux_dir/configure
34803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
34804 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
34808 # The recursion is here.
34809 if test -n "$ac_sub_configure"; then
34810 # Make the cache file name correct relative to the subdirectory.
34811 case $cache_file in
34812 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
34813 *) # Relative name.
34814 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
34817 { $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
34818 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
34819 # The eval makes quoting arguments work.
34820 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
34821 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
34822 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
34828 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
34829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
34830 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}