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++11 compiler. Check if one is available, and if
16495 # necessary, set CXX_DIALECT to some -std=xxx switch.
16496 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_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
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
16505 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
16506 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
16507 $as_echo_n "(cached) " >&6
16509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16510 /* end confdefs.h. */
16513 // If the compiler admits that it is not ready for C++11, why torture it?
16514 // Hopefully, this will speed up the test.
16516 #ifndef __cplusplus
16518 #error "This is not a C++ compiler"
16520 #elif __cplusplus < 201103L
16522 #error "This is not a C++11 compiler"
16529 namespace test_static_assert
16532 template <typename T>
16535 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16540 namespace test_final_override
16545 virtual void f() {}
16548 struct Derived : public Base
16550 virtual void f() override {}
16555 namespace test_double_right_angle_brackets
16558 template < typename T >
16561 typedef check<void> single_type;
16562 typedef check<check<void>> double_type;
16563 typedef check<check<check<void>>> triple_type;
16564 typedef check<check<check<check<void>>>> quadruple_type;
16568 namespace test_decltype
16581 namespace test_type_deduction
16584 template < typename T1, typename T2 >
16587 static const bool value = false;
16590 template < typename T >
16591 struct is_same<T, T>
16593 static const bool value = true;
16596 template < typename T1, typename T2 >
16598 add(T1 a1, T2 a2) -> decltype(a1 + a2)
16604 test(const int c, volatile int v)
16606 static_assert(is_same<int, decltype(0)>::value == true, "");
16607 static_assert(is_same<int, decltype(c)>::value == false, "");
16608 static_assert(is_same<int, decltype(v)>::value == false, "");
16611 auto sumi = ac + av + 'x';
16612 auto sumf = ac + av + 1.0;
16613 static_assert(is_same<int, decltype(ac)>::value == true, "");
16614 static_assert(is_same<int, decltype(av)>::value == true, "");
16615 static_assert(is_same<int, decltype(sumi)>::value == true, "");
16616 static_assert(is_same<int, decltype(sumf)>::value == false, "");
16617 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
16618 return (sumf > 0.0) ? sumi : add(c, v);
16623 namespace test_noexcept
16626 int f() { return 0; }
16627 int g() noexcept { return 0; }
16629 static_assert(noexcept(f()) == false, "");
16630 static_assert(noexcept(g()) == true, "");
16634 namespace test_constexpr
16637 template < typename CharT >
16638 unsigned long constexpr
16639 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
16641 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
16644 template < typename CharT >
16645 unsigned long constexpr
16646 strlen_c(const CharT *const s) noexcept
16648 return strlen_c_r(s, 0UL);
16651 static_assert(strlen_c("") == 0UL, "");
16652 static_assert(strlen_c("1") == 1UL, "");
16653 static_assert(strlen_c("example") == 7UL, "");
16654 static_assert(strlen_c("another\0example") == 7UL, "");
16658 namespace test_rvalue_references
16664 static constexpr int value = N;
16667 answer<1> f(int&) { return answer<1>(); }
16668 answer<2> f(const int&) { return answer<2>(); }
16669 answer<3> f(int&&) { return answer<3>(); }
16676 static_assert(decltype(f(i))::value == 1, "");
16677 static_assert(decltype(f(c))::value == 2, "");
16678 static_assert(decltype(f(0))::value == 3, "");
16683 namespace test_uniform_initialization
16688 static const int zero {};
16689 static const int one {1};
16692 static_assert(test::zero == 0, "");
16693 static_assert(test::one == 1, "");
16697 namespace test_lambdas
16703 auto lambda1 = [](){};
16704 auto lambda2 = lambda1;
16712 auto a = [](int i, int j){ return i + j; }(1, 2);
16713 auto b = []() -> int { return '0'; }();
16714 auto c = [=](){ return a + b; }();
16715 auto d = [&](){ return c; }();
16716 auto e = [a, &b](int x) mutable {
16717 const auto identity = [](int y){ return y; };
16718 for (auto i = 0; i < a; ++i)
16720 return x + identity(a + b);
16722 return a + b + c + d + e;
16728 const auto nullary = [](){ return 0; };
16729 const auto unary = [](int x){ return x; };
16730 using nullary_t = decltype(nullary);
16731 using unary_t = decltype(unary);
16732 const auto higher1st = [](nullary_t f){ return f(); };
16733 const auto higher2nd = [unary](nullary_t f1){
16734 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
16736 return higher1st(nullary) + higher2nd(nullary)(unary);
16741 namespace test_variadic_templates
16747 template <int N0, int... N1toN>
16748 struct sum<N0, N1toN...>
16750 static constexpr auto value = N0 + sum<N1toN...>::value;
16756 static constexpr auto value = 0;
16759 static_assert(sum<>::value == 0, "");
16760 static_assert(sum<1>::value == 1, "");
16761 static_assert(sum<23>::value == 23, "");
16762 static_assert(sum<1, 2>::value == 3, "");
16763 static_assert(sum<5, 5, 11>::value == 21, "");
16764 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
16768 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
16769 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
16770 // because of this.
16771 namespace test_template_alias_sfinae
16776 template<typename T>
16777 using member = typename T::member_type;
16779 template<typename T>
16782 template<typename T>
16783 void func(member<T>*) {}
16787 void test() { func<foo>(0); }
16791 } // namespace cxx11
16793 #endif // __cplusplus >= 201103L
16798 if ac_fn_cxx_try_compile
"$LINENO"; then :
16799 ax_cv_cxx_compile_cxx11
=yes
16801 ax_cv_cxx_compile_cxx11
=no
16803 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
16806 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
16807 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
16811 if test x
$ac_success = xno
; then
16812 for alternative
in ${ax_cxx_compile_alternatives}; do
16813 switch
="-std=gnu++${alternative}"
16814 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
16816 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
16817 if eval \
${$cachevar+:} false
; then :
16818 $as_echo_n "(cached) " >&6
16822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16823 /* end confdefs.h. */
16826 // If the compiler admits that it is not ready for C++11, why torture it?
16827 // Hopefully, this will speed up the test.
16829 #ifndef __cplusplus
16831 #error "This is not a C++ compiler"
16833 #elif __cplusplus < 201103L
16835 #error "This is not a C++11 compiler"
16842 namespace test_static_assert
16845 template <typename T>
16848 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16853 namespace test_final_override
16858 virtual void f() {}
16861 struct Derived : public Base
16863 virtual void f() override {}
16868 namespace test_double_right_angle_brackets
16871 template < typename T >
16874 typedef check<void> single_type;
16875 typedef check<check<void>> double_type;
16876 typedef check<check<check<void>>> triple_type;
16877 typedef check<check<check<check<void>>>> quadruple_type;
16881 namespace test_decltype
16894 namespace test_type_deduction
16897 template < typename T1, typename T2 >
16900 static const bool value = false;
16903 template < typename T >
16904 struct is_same<T, T>
16906 static const bool value = true;
16909 template < typename T1, typename T2 >
16911 add(T1 a1, T2 a2) -> decltype(a1 + a2)
16917 test(const int c, volatile int v)
16919 static_assert(is_same<int, decltype(0)>::value == true, "");
16920 static_assert(is_same<int, decltype(c)>::value == false, "");
16921 static_assert(is_same<int, decltype(v)>::value == false, "");
16924 auto sumi = ac + av + 'x';
16925 auto sumf = ac + av + 1.0;
16926 static_assert(is_same<int, decltype(ac)>::value == true, "");
16927 static_assert(is_same<int, decltype(av)>::value == true, "");
16928 static_assert(is_same<int, decltype(sumi)>::value == true, "");
16929 static_assert(is_same<int, decltype(sumf)>::value == false, "");
16930 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
16931 return (sumf > 0.0) ? sumi : add(c, v);
16936 namespace test_noexcept
16939 int f() { return 0; }
16940 int g() noexcept { return 0; }
16942 static_assert(noexcept(f()) == false, "");
16943 static_assert(noexcept(g()) == true, "");
16947 namespace test_constexpr
16950 template < typename CharT >
16951 unsigned long constexpr
16952 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
16954 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
16957 template < typename CharT >
16958 unsigned long constexpr
16959 strlen_c(const CharT *const s) noexcept
16961 return strlen_c_r(s, 0UL);
16964 static_assert(strlen_c("") == 0UL, "");
16965 static_assert(strlen_c("1") == 1UL, "");
16966 static_assert(strlen_c("example") == 7UL, "");
16967 static_assert(strlen_c("another\0example") == 7UL, "");
16971 namespace test_rvalue_references
16977 static constexpr int value = N;
16980 answer<1> f(int&) { return answer<1>(); }
16981 answer<2> f(const int&) { return answer<2>(); }
16982 answer<3> f(int&&) { return answer<3>(); }
16989 static_assert(decltype(f(i))::value == 1, "");
16990 static_assert(decltype(f(c))::value == 2, "");
16991 static_assert(decltype(f(0))::value == 3, "");
16996 namespace test_uniform_initialization
17001 static const int zero {};
17002 static const int one {1};
17005 static_assert(test::zero == 0, "");
17006 static_assert(test::one == 1, "");
17010 namespace test_lambdas
17016 auto lambda1 = [](){};
17017 auto lambda2 = lambda1;
17025 auto a = [](int i, int j){ return i + j; }(1, 2);
17026 auto b = []() -> int { return '0'; }();
17027 auto c = [=](){ return a + b; }();
17028 auto d = [&](){ return c; }();
17029 auto e = [a, &b](int x) mutable {
17030 const auto identity = [](int y){ return y; };
17031 for (auto i = 0; i < a; ++i)
17033 return x + identity(a + b);
17035 return a + b + c + d + e;
17041 const auto nullary = [](){ return 0; };
17042 const auto unary = [](int x){ return x; };
17043 using nullary_t = decltype(nullary);
17044 using unary_t = decltype(unary);
17045 const auto higher1st = [](nullary_t f){ return f(); };
17046 const auto higher2nd = [unary](nullary_t f1){
17047 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
17049 return higher1st(nullary) + higher2nd(nullary)(unary);
17054 namespace test_variadic_templates
17060 template <int N0, int... N1toN>
17061 struct sum<N0, N1toN...>
17063 static constexpr auto value = N0 + sum<N1toN...>::value;
17069 static constexpr auto value = 0;
17072 static_assert(sum<>::value == 0, "");
17073 static_assert(sum<1>::value == 1, "");
17074 static_assert(sum<23>::value == 23, "");
17075 static_assert(sum<1, 2>::value == 3, "");
17076 static_assert(sum<5, 5, 11>::value == 21, "");
17077 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
17081 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
17082 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
17083 // because of this.
17084 namespace test_template_alias_sfinae
17089 template<typename T>
17090 using member = typename T::member_type;
17092 template<typename T>
17095 template<typename T>
17096 void func(member<T>*) {}
17100 void test() { func<foo>(0); }
17104 } // namespace cxx11
17106 #endif // __cplusplus >= 201103L
17111 if ac_fn_cxx_try_compile
"$LINENO"; then :
17116 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17119 eval ac_res
=\$
$cachevar
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17121 $as_echo "$ac_res" >&6; }
17122 if eval test x\$
$cachevar = xyes
; then
17123 CXX_DIALECT
="$switch"
17125 if test -n "$CXXCPP" ; then
17126 CXXCPP
="$CXXCPP $switch"
17134 if test x
$ac_success = xno
; then
17135 for alternative
in ${ax_cxx_compile_alternatives}; do
17136 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
17137 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
17138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
17139 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
17140 if eval \${$cachevar+:} false; then :
17141 $as_echo_n "(cached
) " >&6
17145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17146 /* end confdefs.h. */
17149 // If the compiler admits that it is not ready for C++11, why torture it?
17150 // Hopefully, this will speed up the test.
17152 #ifndef __cplusplus
17154 #error "This is not a C
++ compiler
"
17156 #elif __cplusplus < 201103L
17158 #error "This is not a C
++11 compiler
"
17165 namespace test_static_assert
17168 template <typename T>
17171 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
17176 namespace test_final_override
17181 virtual void f() {}
17184 struct Derived : public Base
17186 virtual void f() override {}
17191 namespace test_double_right_angle_brackets
17194 template < typename T >
17197 typedef check<void> single_type;
17198 typedef check<check<void>> double_type;
17199 typedef check<check<check<void>>> triple_type;
17200 typedef check<check<check<check<void>>>> quadruple_type;
17204 namespace test_decltype
17217 namespace test_type_deduction
17220 template < typename T1, typename T2 >
17223 static const bool value = false;
17226 template < typename T >
17227 struct is_same<T, T>
17229 static const bool value = true;
17232 template < typename T1, typename T2 >
17234 add(T1 a1, T2 a2) -> decltype(a1 + a2)
17240 test(const int c, volatile int v)
17242 static_assert(is_same<int, decltype(0)>::value == true, "");
17243 static_assert(is_same<int, decltype(c)>::value == false, "");
17244 static_assert(is_same<int, decltype(v)>::value == false, "");
17247 auto sumi = ac + av + 'x';
17248 auto sumf = ac + av + 1.0;
17249 static_assert(is_same<int, decltype(ac)>::value == true, "");
17250 static_assert(is_same<int, decltype(av)>::value == true, "");
17251 static_assert(is_same<int, decltype(sumi)>::value == true, "");
17252 static_assert(is_same<int, decltype(sumf)>::value == false, "");
17253 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
17254 return (sumf > 0.0) ? sumi : add(c, v);
17259 namespace test_noexcept
17262 int f() { return 0; }
17263 int g() noexcept { return 0; }
17265 static_assert(noexcept(f()) == false, "");
17266 static_assert(noexcept(g()) == true, "");
17270 namespace test_constexpr
17273 template < typename CharT >
17274 unsigned long constexpr
17275 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
17277 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
17280 template < typename CharT >
17281 unsigned long constexpr
17282 strlen_c(const CharT *const s) noexcept
17284 return strlen_c_r(s, 0UL);
17287 static_assert(strlen_c("") == 0UL, "");
17288 static_assert(strlen_c("1") == 1UL, "");
17289 static_assert(strlen_c("example
") == 7UL, "");
17290 static_assert(strlen_c("another\
0example
") == 7UL, "");
17294 namespace test_rvalue_references
17300 static constexpr int value = N;
17303 answer<1> f(int&) { return answer<1>(); }
17304 answer<2> f(const int&) { return answer<2>(); }
17305 answer<3> f(int&&) { return answer<3>(); }
17312 static_assert(decltype(f(i))::value == 1, "");
17313 static_assert(decltype(f(c))::value == 2, "");
17314 static_assert(decltype(f(0))::value == 3, "");
17319 namespace test_uniform_initialization
17324 static const int zero {};
17325 static const int one {1};
17328 static_assert(test::zero == 0, "");
17329 static_assert(test::one == 1, "");
17333 namespace test_lambdas
17339 auto lambda1 = [](){};
17340 auto lambda2 = lambda1;
17348 auto a = [](int i, int j){ return i + j; }(1, 2);
17349 auto b = []() -> int { return '0'; }();
17350 auto c = [=](){ return a + b; }();
17351 auto d = [&](){ return c; }();
17352 auto e = [a, &b](int x) mutable {
17353 const auto identity = [](int y){ return y; };
17354 for (auto i = 0; i < a; ++i)
17356 return x + identity(a + b);
17358 return a + b + c + d + e;
17364 const auto nullary = [](){ return 0; };
17365 const auto unary = [](int x){ return x; };
17366 using nullary_t = decltype(nullary);
17367 using unary_t = decltype(unary);
17368 const auto higher1st = [](nullary_t f){ return f(); };
17369 const auto higher2nd = [unary](nullary_t f1){
17370 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
17372 return higher1st(nullary) + higher2nd(nullary)(unary);
17377 namespace test_variadic_templates
17383 template <int N0, int... N1toN>
17384 struct sum<N0, N1toN...>
17386 static constexpr auto value = N0 + sum<N1toN...>::value;
17392 static constexpr auto value = 0;
17395 static_assert(sum<>::value == 0, "");
17396 static_assert(sum<1>::value == 1, "");
17397 static_assert(sum<23>::value == 23, "");
17398 static_assert(sum<1, 2>::value == 3, "");
17399 static_assert(sum<5, 5, 11>::value == 21, "");
17400 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
17404 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
17405 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
17406 // because of this.
17407 namespace test_template_alias_sfinae
17412 template<typename T>
17413 using member = typename T::member_type;
17415 template<typename T>
17418 template<typename T>
17419 void func(member<T>*) {}
17423 void test() { func<foo>(0); }
17427 } // namespace cxx11
17429 #endif // __cplusplus >= 201103L
17434 if ac_fn_cxx_try_compile "$LINENO"; then :
17439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17442 eval ac_res=\$$cachevar
17443 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
17444 $as_echo "$ac_res" >&6; }
17445 if eval test x\$$cachevar = xyes; then
17446 CXX_DIALECT="$switch"
17448 if test -n "$CXXCPP" ; then
17449 CXXCPP="$CXXCPP $switch"
17455 if test x$ac_success = xyes; then
17461 ac_cpp='$CPP $CPPFLAGS'
17462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17466 if test x$ax_cxx_compile_cxx11_required = xtrue; then
17467 if test x$ac_success = xno; then
17468 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
17471 if test x$ac_success = xno; then
17473 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
17474 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
17478 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
17485 # Dependency checking.
17486 rm -rf .tst
2>/dev
/null
17487 mkdir .tst
2>/dev
/null
17488 if test -d .tst
; then
17493 rmdir .tst
2>/dev
/null
17495 DEPDIR
="${am__leading_dot}deps"
17497 ac_config_commands
="$ac_config_commands depdir"
17500 depcc
="$CC" am_compiler_list
=
17502 am_depcomp
=$ac_aux_dir/depcomp
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17504 $as_echo_n "checking dependency style of $depcc... " >&6; }
17505 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
17506 $as_echo_n "(cached) " >&6
17508 if test -f "$am_depcomp"; then
17509 # We make a subdir and do the tests there. Otherwise we can end up
17510 # making bogus files that we don't know about and never remove. For
17511 # instance it was reported that on HP-UX the gcc test will end up
17512 # making a dummy file named `D' -- because `-MD' means `put the output
17515 # Copy depcomp to subdir because otherwise we won't find it if we're
17516 # using a relative directory.
17517 cp "$am_depcomp" conftest.dir
17519 # We will build objects and dependencies in a subdirectory because
17520 # it helps to detect inapplicable dependency modes. For instance
17521 # both Tru64's cc and ICC support -MD to output dependencies as a
17522 # side effect of compilation, but ICC will put the dependencies in
17523 # the current directory while Tru64 will put them in the object
17527 am_cv_CC_dependencies_compiler_type
=none
17528 if test "$am_compiler_list" = ""; then
17529 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17531 for depmode
in $am_compiler_list; do
17532 if test $depmode = none
; then break; fi
17534 $as_echo "$as_me:$LINENO: trying $depmode" >&5
17535 # Setup a source with many dependencies, because some compilers
17536 # like to wrap large dependency lists on column 80 (with \), and
17537 # we should not choose a depcomp mode which is confused by this.
17539 # We need to recreate these files for each test, as the compiler may
17540 # overwrite some of them when testing with obscure command lines.
17541 # This happens at least with the AIX C compiler.
17543 for i
in 1 2 3 4 5 6; do
17544 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
17545 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
17546 # Solaris 8's {/usr,}/bin/sh.
17547 touch sub
/conftst
$i.h
17549 echo "include sub/conftest.Po" > confmf
17551 # We check with `-c' and `-o' for the sake of the "dashmstdout"
17552 # mode. It turns out that the SunPro C++ compiler does not properly
17553 # handle `-M -o', and we need to detect this.
17554 depcmd
="depmode=$depmode \
17555 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
17556 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17557 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
17558 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
17559 if env
$depcmd > conftest.err
2>&1 &&
17560 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
17561 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
17562 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
17563 # icc doesn't choke on unknown options, it will just issue warnings
17564 # or remarks (even with -Werror). So we grep stderr for any message
17565 # that says an option was ignored or not supported.
17566 # When given -MP, icc 7.0 and 7.1 complain thusly:
17567 # icc: Command line warning: ignoring option '-M'; no argument required
17568 # The diagnosis changed in icc 8.0:
17569 # icc: Command line remark: option '-MP' not supported
17570 if (grep 'ignoring option' conftest.err ||
17571 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
17572 am_cv_CC_dependencies_compiler_type
=$depmode
17573 $as_echo "$as_me:$LINENO: success" >&5
17577 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
17578 sed -e 's/^/| /' < conftest.err
>&5
17582 rm -rf conftest.dir
17584 am_cv_CC_dependencies_compiler_type
=none
17588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
17589 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
17590 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
17591 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
17592 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
17597 # Since the first call to PKG_CHECK_MODULES may not happen (is guarded by
17598 # a condition), we must call PKG_PROG_PKG_CONFIG explicitly to probe for
17607 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17608 if test -n "$ac_tool_prefix"; then
17609 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17610 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17612 $as_echo_n "checking for $ac_word... " >&6; }
17613 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
17614 $as_echo_n "(cached) " >&6
17616 case $PKG_CONFIG in
17618 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
17621 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17622 for as_dir
in $PATH
17625 test -z "$as_dir" && as_dir
=.
17626 for ac_exec_ext
in '' $ac_executable_extensions; do
17627 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
17628 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
17629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17639 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
17640 if test -n "$PKG_CONFIG"; then
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17642 $as_echo "$PKG_CONFIG" >&6; }
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17645 $as_echo "no" >&6; }
17650 if test -z "$ac_cv_path_PKG_CONFIG"; then
17651 ac_pt_PKG_CONFIG
=$PKG_CONFIG
17652 # Extract the first word of "pkg-config", so it can be a program name with args.
17653 set dummy pkg-config
; ac_word
=$2
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17655 $as_echo_n "checking for $ac_word... " >&6; }
17656 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
17657 $as_echo_n "(cached) " >&6
17659 case $ac_pt_PKG_CONFIG in
17661 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17664 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17665 for as_dir
in $PATH
17668 test -z "$as_dir" && as_dir
=.
17669 for ac_exec_ext
in '' $ac_executable_extensions; do
17670 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
17671 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
17672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17682 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
17683 if test -n "$ac_pt_PKG_CONFIG"; then
17684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17685 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17688 $as_echo "no" >&6; }
17691 if test "x$ac_pt_PKG_CONFIG" = x
; then
17694 case $cross_compiling:$ac_tool_warned in
17696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17697 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17698 ac_tool_warned
=yes ;;
17700 PKG_CONFIG
=$ac_pt_PKG_CONFIG
17703 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
17707 if test -n "$PKG_CONFIG"; then
17708 _pkg_min_version
=0.9.0
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17710 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17711 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17713 $as_echo "yes" >&6; }
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17716 $as_echo "no" >&6; }
17732 # If we haven't got the data from the intl directory,
17733 # assume NLS is disabled.
17742 if test -f ..
/intl
/config.intl
; then
17743 . ..
/intl
/config.intl
17745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17746 $as_echo_n "checking whether NLS is requested... " >&6; }
17747 if test x
"$USE_NLS" != xyes
; then
17748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17749 $as_echo "no" >&6; }
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17752 $as_echo "yes" >&6; }
17754 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
17758 $as_echo_n "checking for catalogs to be installed... " >&6; }
17759 # Look for .po and .gmo files in the source directory.
17762 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
17763 # If there aren't any .gmo files the shell will give us the
17764 # literal string "../path/to/srcdir/po/*.gmo" which has to be
17766 case "$cat" in *\
**)
17769 # The quadruple backslash is collapsed to a double backslash
17770 # by the backticks, then collapsed again by the double quotes,
17771 # leaving us with one backslash in the sed expression (right
17772 # before the dot that mustn't act as a wildcard).
17773 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
17774 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
17775 # The user is allowed to set LINGUAS to a list of languages to
17776 # install catalogs for. If it's empty that means "all of them."
17777 if test "x$LINGUAS" = x
; then
17778 CATALOGS
="$CATALOGS $cat"
17779 XLINGUAS
="$XLINGUAS $lang"
17781 case "$LINGUAS" in *$lang*)
17782 CATALOGS
="$CATALOGS $cat"
17783 XLINGUAS
="$XLINGUAS $lang"
17788 LINGUAS
="$XLINGUAS"
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
17790 $as_echo "$LINGUAS" >&6; }
17803 localedir
='${datadir}/locale'
17806 if test x
"$USE_NLS" = xyes
; then
17807 CONFIG_ALL
="$CONFIG_ALL all-po"
17808 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
17809 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
17810 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
17815 cat >>confdefs.h
<<_ACEOF
17816 #define PACKAGE "$PACKAGE"
17821 # We never need to detect it in this sub-configure.
17822 # But preserve it for config.status --recheck.
17826 MAKEINFO_EXTRA_FLAGS
=""
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
17828 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
17829 if ${gdb_cv_have_makeinfo_click+:} false
; then :
17830 $as_echo_n "(cached) " >&6
17832 echo '@clicksequence{a @click{} b}' >conftest.texinfo
17833 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
17834 gdb_cv_have_makeinfo_click
=yes
17836 gdb_cv_have_makeinfo_click
=no
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
17840 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
17841 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
17842 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
17848 # Check whether --with-separate-debug-dir was given.
17849 if test "${with_separate_debug_dir+set}" = set; then :
17850 withval
=$with_separate_debug_dir;
17853 DEBUGDIR
=${libdir}/debug
17857 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
17858 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17859 ac_define_dir
=`eval echo $DEBUGDIR`
17860 ac_define_dir
=`eval echo $ac_define_dir`
17862 cat >>confdefs.h
<<_ACEOF
17863 #define DEBUGDIR "$ac_define_dir"
17869 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
17870 if test "x$prefix" = xNONE
; then
17871 test_prefix
=/usr
/local
17873 test_prefix
=$prefix
17876 test_prefix
=$exec_prefix
17879 case ${ac_define_dir} in
17880 "${test_prefix}"|
"${test_prefix}/"*|\
17881 '${exec_prefix}'|
'${exec_prefix}/'*)
17886 cat >>confdefs.h
<<_ACEOF
17887 #define DEBUGDIR_RELOCATABLE $value
17894 # Check whether --with-additional-debug-dirs was given.
17895 if test "${with_additional_debug_dirs+set}" = set; then :
17896 withval
=$with_additional_debug_dirs;
17897 cat >>confdefs.h
<<_ACEOF
17898 #define ADDITIONAL_DEBUG_DIRS "${withval}"
17904 # We can't pass paths as command line arguments.
17905 # Mingw32 tries to be clever and will convert the paths for us.
17906 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
17907 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
17908 # This breaks GDB's relocatable path conversions since paths passed in
17909 # config.h would not get so translated, the path prefixes no longer match.
17911 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
17912 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17913 ac_define_dir
=`eval echo $bindir`
17914 ac_define_dir
=`eval echo $ac_define_dir`
17916 cat >>confdefs.h
<<_ACEOF
17917 #define BINDIR "$ac_define_dir"
17922 # GDB's datadir relocation
17926 # Check whether --with-gdb-datadir was given.
17927 if test "${with_gdb_datadir+set}" = set; then :
17928 withval
=$with_gdb_datadir;
17929 GDB_DATADIR
=$withval
17931 GDB_DATADIR
=${datadir}/gdb
17935 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
17936 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17937 ac_define_dir
=`eval echo $GDB_DATADIR`
17938 ac_define_dir
=`eval echo $ac_define_dir`
17940 cat >>confdefs.h
<<_ACEOF
17941 #define GDB_DATADIR "$ac_define_dir"
17947 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
17948 if test "x$prefix" = xNONE
; then
17949 test_prefix
=/usr
/local
17951 test_prefix
=$prefix
17954 test_prefix
=$exec_prefix
17957 case ${ac_define_dir} in
17958 "${test_prefix}"|
"${test_prefix}/"*|\
17959 '${exec_prefix}'|
'${exec_prefix}/'*)
17964 cat >>confdefs.h
<<_ACEOF
17965 #define GDB_DATADIR_RELOCATABLE $value
17972 # Check whether --with-relocated-sources was given.
17973 if test "${with_relocated_sources+set}" = set; then :
17974 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
17976 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
17977 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17978 ac_define_dir
=`eval echo $reloc_srcdir`
17979 ac_define_dir
=`eval echo $ac_define_dir`
17981 cat >>confdefs.h
<<_ACEOF
17982 #define RELOC_SRCDIR "$ac_define_dir"
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
17991 $as_echo_n "checking for default auto-load directory... " >&6; }
17993 # Check whether --with-auto-load-dir was given.
17994 if test "${with_auto_load_dir+set}" = set; then :
17995 withval
=$with_auto_load_dir;
17997 with_auto_load_dir
='$debugdir:$datadir/auto-load'
18000 escape_dir
=`echo $with_auto_load_dir | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
18002 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
18003 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
18004 ac_define_dir
=`eval echo $escape_dir`
18005 ac_define_dir
=`eval echo $ac_define_dir`
18007 cat >>confdefs.h
<<_ACEOF
18008 #define AUTO_LOAD_DIR "$ac_define_dir"
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
18013 $as_echo "$with_auto_load_dir" >&6; }
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
18016 $as_echo_n "checking for default auto-load safe-path... " >&6; }
18018 # Check whether --with-auto-load-safe-path was given.
18019 if test "${with_auto_load_safe_path+set}" = set; then :
18020 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
18021 with_auto_load_safe_path
="/"
18024 with_auto_load_safe_path
="$with_auto_load_dir"
18027 escape_dir
=`echo $with_auto_load_safe_path | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
18029 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
18030 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
18031 ac_define_dir
=`eval echo $escape_dir`
18032 ac_define_dir
=`eval echo $ac_define_dir`
18034 cat >>confdefs.h
<<_ACEOF
18035 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
18040 $as_echo "$with_auto_load_safe_path" >&6; }
18044 subdirs
="$subdirs testsuite"
18047 # Check whether to support alternative target configurations
18048 # Check whether --enable-targets was given.
18049 if test "${enable_targets+set}" = set; then :
18050 enableval
=$enable_targets; case "${enableval}" in
18051 yes |
"") as_fn_error $?
"enable-targets option must specify target names or 'all'" "$LINENO" 5
18053 no
) enable_targets
= ;;
18054 *) enable_targets
=$enableval ;;
18059 # Check whether --enable-64-bit-bfd was given.
18060 if test "${enable_64_bit_bfd+set}" = set; then :
18061 enableval
=$enable_64_bit_bfd; case $enableval in #(
18065 as_fn_error $?
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; #(
18070 enable_64_bit_bfd
=no
18074 if test "x$enable_64_bit_bfd" = "xno"; then :
18075 # The cast to long int works around a bug in the HP C Compiler
18076 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18077 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18078 # This bug is HP SR number 8606223364.
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
18080 $as_echo_n "checking size of void *... " >&6; }
18081 if ${ac_cv_sizeof_void_p+:} false
; then :
18082 $as_echo_n "(cached) " >&6
18084 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
18087 if test "$ac_cv_type_void_p" = yes; then
18088 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18090 as_fn_error
77 "cannot compute sizeof (void *)
18091 See \`config.log' for more details" "$LINENO" 5; }
18093 ac_cv_sizeof_void_p
=0
18098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
18099 $as_echo "$ac_cv_sizeof_void_p" >&6; }
18103 cat >>confdefs.h
<<_ACEOF
18104 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18108 if test "x$ac_cv_sizeof_void_p" = "x8"; then :
18109 enable_64_bit_bfd
=yes
18114 if test "x$enable_64_bit_bfd" = "xyes"; then
18115 ENABLE_BFD_64_BIT_TRUE
=
18116 ENABLE_BFD_64_BIT_FALSE
='#'
18118 ENABLE_BFD_64_BIT_TRUE
='#'
18119 ENABLE_BFD_64_BIT_FALSE
=
18124 # Provide defaults for some variables set by the per-host and per-target
18126 gdb_host_obs
=posix-hdep.o
18128 if test "${target}" = "${host}"; then
18134 .
$srcdir/configure.
host
18136 # Accumulate some settings from configure.tgt over all enabled targets
18140 HAVE_NATIVE_GCORE_TARGET
=
18142 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
18144 if test "$targ_alias" = "all"; then
18147 # Canonicalize the secondary target names.
18148 result
=`$ac_config_sub $targ_alias 2>/dev/null`
18149 if test -n "$result"; then
18155 .
${srcdir}/configure.tgt
18157 if test -z "${gdb_target_obs}"; then :
18158 as_fn_error $?
"configuration ${targ} is unsupported." "$LINENO" 5
18161 # Target-specific object files
18162 for i
in ${gdb_target_obs}; do
18163 case " $TARGET_OBS " in
18166 TARGET_OBS
="$TARGET_OBS ${i}"
18171 # Check whether this target needs 64-bit CORE_ADDR
18172 if test x
${enable_64_bit_bfd} = xno
; then
18173 .
${srcdir}/..
/bfd
/config.bfd
18176 # Check whether this target is native and supports gcore.
18177 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
18178 && $gdb_have_gcore; then
18179 HAVE_NATIVE_GCORE_TARGET
=1
18184 if test x
${all_targets} = xtrue
; then
18185 if test x
${enable_64_bit_bfd} = xyes
; then
18186 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
18188 TARGET_OBS
='$(ALL_TARGET_OBS)'
18192 # AMD debugger API support.
18195 # Check whether --with-amd-dbgapi was given.
18196 if test "${with_amd_dbgapi+set}" = set; then :
18197 withval
=$with_amd_dbgapi;
18202 as_fn_error $?
"bad value $withval for --with-amd-dbgapi" "$LINENO" 5
18207 with_amd_dbgapi
=auto
18211 # If the user passes --without-amd-dbgapi but also explicitly enables a target
18212 # that requires amd-dbgapi, it is an error.
18213 if test "$with_amd_dbgapi" = no
-a "$gdb_require_amd_dbgapi" = true
; then
18214 as_fn_error $?
"an explicitly enabled target requires amd-dbgapi, but amd-dbgapi is explicitly disabled" "$LINENO" 5
18217 # Look for amd-dbgapi if:
18219 # - a target architecture requiring it has explicitly been enabled, or
18220 # - --enable-targets=all was provided and the user did not explicitly disable
18221 # amd-dbgapi support
18222 if test "$gdb_require_amd_dbgapi" = true \
18223 -o \
( "$all_targets" = true
-a "$with_amd_dbgapi" != no \
); then
18224 # amd-dbgapi version 0.68 is part of ROCm 5.4. There is no guarantee of API
18225 # stability until amd-dbgapi hits 1.0, but for convenience, still check for
18226 # greater or equal that version. It can be handy when testing with a newer
18227 # version of the library.
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for amd-dbgapi >= 0.68.0" >&5
18231 $as_echo_n "checking for amd-dbgapi >= 0.68.0... " >&6; }
18233 if test -n "$AMD_DBGAPI_CFLAGS"; then
18234 pkg_cv_AMD_DBGAPI_CFLAGS
="$AMD_DBGAPI_CFLAGS"
18235 elif test -n "$PKG_CONFIG"; then
18236 if test -n "$PKG_CONFIG" && \
18237 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"amd-dbgapi >= 0.68.0\""; } >&5
18238 ($PKG_CONFIG --exists --print-errors "amd-dbgapi >= 0.68.0") 2>&5
18240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18241 test $ac_status = 0; }; then
18242 pkg_cv_AMD_DBGAPI_CFLAGS
=`$PKG_CONFIG --cflags "amd-dbgapi >= 0.68.0" 2>/dev/null`
18243 test "x$?" != "x0" && pkg_failed
=yes
18250 if test -n "$AMD_DBGAPI_LIBS"; then
18251 pkg_cv_AMD_DBGAPI_LIBS
="$AMD_DBGAPI_LIBS"
18252 elif test -n "$PKG_CONFIG"; then
18253 if test -n "$PKG_CONFIG" && \
18254 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"amd-dbgapi >= 0.68.0\""; } >&5
18255 ($PKG_CONFIG --exists --print-errors "amd-dbgapi >= 0.68.0") 2>&5
18257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18258 test $ac_status = 0; }; then
18259 pkg_cv_AMD_DBGAPI_LIBS
=`$PKG_CONFIG --libs "amd-dbgapi >= 0.68.0" 2>/dev/null`
18260 test "x$?" != "x0" && pkg_failed
=yes
18268 if test $pkg_failed = no
; then
18269 pkg_save_LDFLAGS
="$LDFLAGS"
18270 LDFLAGS
="$LDFLAGS $pkg_cv_AMD_DBGAPI_LIBS"
18271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18272 /* end confdefs.h. */
18282 if ac_fn_c_try_link
"$LINENO"; then :
18287 rm -f core conftest.err conftest.
$ac_objext \
18288 conftest
$ac_exeext conftest.
$ac_ext
18289 LDFLAGS
=$pkg_save_LDFLAGS
18294 if test $pkg_failed = yes; then
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18296 $as_echo "no" >&6; }
18298 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18299 _pkg_short_errors_supported
=yes
18301 _pkg_short_errors_supported
=no
18303 if test $_pkg_short_errors_supported = yes; then
18304 AMD_DBGAPI_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "amd-dbgapi >= 0.68.0" 2>&1`
18306 AMD_DBGAPI_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "amd-dbgapi >= 0.68.0" 2>&1`
18308 # Put the nasty error message in config.log where it belongs
18309 echo "$AMD_DBGAPI_PKG_ERRORS" >&5
18312 elif test $pkg_failed = untried
; then
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18314 $as_echo "no" >&6; }
18317 AMD_DBGAPI_CFLAGS
=$pkg_cv_AMD_DBGAPI_CFLAGS
18318 AMD_DBGAPI_LIBS
=$pkg_cv_AMD_DBGAPI_LIBS
18319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18320 $as_echo "yes" >&6; }
18324 if test "$has_amd_dbgapi" = "yes"; then
18326 $as_echo "#define HAVE_AMD_DBGAPI 1" >>confdefs.h
18328 TARGET_OBS
="$TARGET_OBS amd-dbgapi-target.o"
18330 # If --enable-targets=all was provided, use the list of all files depending
18331 # on amd-dbgapi that is hardcoded in the Makefile. Else, the appropriate
18332 # architecture entry in configure.tgt will have added the files to
18334 if test "$all_targets" = true
; then
18335 TARGET_OBS
="$TARGET_OBS \$(ALL_AMD_DBGAPI_TARGET_OBS)"
18337 elif test "$gdb_require_amd_dbgapi" = true
-o "$with_amd_dbgapi" = yes; then
18338 # amd-dbgapi was not found and...
18340 # - a target requiring it was explicitly enabled, or
18341 # - the user explicitly wants to enable amd-dbgapi
18342 as_fn_error $?
"amd-dbgapi is required, but cannot find an appropriate version: $AMD_DBGAPI_PKG_ERRORS" "$LINENO" 5
18349 # For other settings, only the main target counts.
18352 targ
=$target; .
${srcdir}/configure.tgt
18354 # Fetch the default architecture and default target vector from BFD.
18355 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
18357 # We only want the first architecture, so strip off the others if
18358 # there is more than one.
18359 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
18361 if test "x$targ_archs" != x
; then
18363 cat >>confdefs.h
<<_ACEOF
18364 #define DEFAULT_BFD_ARCH $targ_archs
18368 if test "x$targ_defvec" != x
; then
18370 cat >>confdefs.h
<<_ACEOF
18371 #define DEFAULT_BFD_VEC $targ_defvec
18377 # Check whether --enable-tui was given.
18378 if test "${enable_tui+set}" = set; then :
18379 enableval
=$enable_tui;
18384 as_fn_error $?
"bad value $enableval for --enable-tui" "$LINENO" 5
18394 # Check whether --enable-gdbtk was given.
18395 if test "${enable_gdbtk+set}" = set; then :
18396 enableval
=$enable_gdbtk;
18401 as_fn_error $?
"bad value $enableval for --enable-gdbtk" "$LINENO" 5
18406 if test -d "$srcdir/gdbtk"; then
18413 # We unconditionally disable gdbtk tests on selected platforms.
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
18417 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
18421 # Handle optional debuginfod support
18423 # Handle optional debuginfod support as well as optional section
18424 # downloading support.
18426 # Define HAVE_LIBDEBUGINFOD if libdebuginfod is found with version >= 0.179.
18428 # Define HAVE_LIBDEBUGINFOD_FIND_SECTION if libdebuginfod is found with
18429 # version >= 0.188.
18431 # Check whether --with-debuginfod was given.
18432 if test "${with_debuginfod+set}" = set; then :
18433 withval
=$with_debuginfod;
18435 with_debuginfod
=auto
18438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
18439 $as_echo_n "checking whether to use debuginfod... " >&6; }
18440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
18441 $as_echo "$with_debuginfod" >&6; }
18443 if test "x$with_debuginfod" != xno
; then
18446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.188" >&5
18447 $as_echo_n "checking for libdebuginfod >= 0.188... " >&6; }
18449 if test -n "$DEBUGINFOD_CFLAGS"; then
18450 pkg_cv_DEBUGINFOD_CFLAGS
="$DEBUGINFOD_CFLAGS"
18451 elif test -n "$PKG_CONFIG"; then
18452 if test -n "$PKG_CONFIG" && \
18453 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.188\""; } >&5
18454 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.188") 2>&5
18456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18457 test $ac_status = 0; }; then
18458 pkg_cv_DEBUGINFOD_CFLAGS
=`$PKG_CONFIG --cflags "libdebuginfod >= 0.188" 2>/dev/null`
18459 test "x$?" != "x0" && pkg_failed
=yes
18466 if test -n "$DEBUGINFOD_LIBS"; then
18467 pkg_cv_DEBUGINFOD_LIBS
="$DEBUGINFOD_LIBS"
18468 elif test -n "$PKG_CONFIG"; then
18469 if test -n "$PKG_CONFIG" && \
18470 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.188\""; } >&5
18471 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.188") 2>&5
18473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18474 test $ac_status = 0; }; then
18475 pkg_cv_DEBUGINFOD_LIBS
=`$PKG_CONFIG --libs "libdebuginfod >= 0.188" 2>/dev/null`
18476 test "x$?" != "x0" && pkg_failed
=yes
18484 if test $pkg_failed = no
; then
18485 pkg_save_LDFLAGS
="$LDFLAGS"
18486 LDFLAGS
="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
18487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18488 /* end confdefs.h. */
18498 if ac_fn_c_try_link
"$LINENO"; then :
18503 rm -f core conftest.err conftest.
$ac_objext \
18504 conftest
$ac_exeext conftest.
$ac_ext
18505 LDFLAGS
=$pkg_save_LDFLAGS
18510 if test $pkg_failed = yes; then
18511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18512 $as_echo "no" >&6; }
18514 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18515 _pkg_short_errors_supported
=yes
18517 _pkg_short_errors_supported
=no
18519 if test $_pkg_short_errors_supported = yes; then
18520 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.188" 2>&1`
18522 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.188" 2>&1`
18524 # Put the nasty error message in config.log where it belongs
18525 echo "$DEBUGINFOD_PKG_ERRORS" >&5
18527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or some features may be unavailable." >&5
18528 $as_echo "$as_me: WARNING: libdebuginfod is missing or some features may be unavailable." >&2;}
18529 elif test $pkg_failed = untried
; then
18530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18531 $as_echo "no" >&6; }
18532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or some features may be unavailable." >&5
18533 $as_echo "$as_me: WARNING: libdebuginfod is missing or some features may be unavailable." >&2;}
18535 DEBUGINFOD_CFLAGS
=$pkg_cv_DEBUGINFOD_CFLAGS
18536 DEBUGINFOD_LIBS
=$pkg_cv_DEBUGINFOD_LIBS
18537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18538 $as_echo "yes" >&6; }
18540 $as_echo "#define HAVE_LIBDEBUGINFOD_FIND_SECTION 1" >>confdefs.h
18546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5
18547 $as_echo_n "checking for libdebuginfod >= 0.179... " >&6; }
18549 if test -n "$DEBUGINFOD_CFLAGS"; then
18550 pkg_cv_DEBUGINFOD_CFLAGS
="$DEBUGINFOD_CFLAGS"
18551 elif test -n "$PKG_CONFIG"; then
18552 if test -n "$PKG_CONFIG" && \
18553 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
18554 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
18556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18557 test $ac_status = 0; }; then
18558 pkg_cv_DEBUGINFOD_CFLAGS
=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
18559 test "x$?" != "x0" && pkg_failed
=yes
18566 if test -n "$DEBUGINFOD_LIBS"; then
18567 pkg_cv_DEBUGINFOD_LIBS
="$DEBUGINFOD_LIBS"
18568 elif test -n "$PKG_CONFIG"; then
18569 if test -n "$PKG_CONFIG" && \
18570 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
18571 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
18573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18574 test $ac_status = 0; }; then
18575 pkg_cv_DEBUGINFOD_LIBS
=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
18576 test "x$?" != "x0" && pkg_failed
=yes
18584 if test $pkg_failed = no
; then
18585 pkg_save_LDFLAGS
="$LDFLAGS"
18586 LDFLAGS
="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
18587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18588 /* end confdefs.h. */
18598 if ac_fn_c_try_link
"$LINENO"; then :
18603 rm -f core conftest.err conftest.
$ac_objext \
18604 conftest
$ac_exeext conftest.
$ac_ext
18605 LDFLAGS
=$pkg_save_LDFLAGS
18610 if test $pkg_failed = yes; then
18611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18612 $as_echo "no" >&6; }
18614 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18615 _pkg_short_errors_supported
=yes
18617 _pkg_short_errors_supported
=no
18619 if test $_pkg_short_errors_supported = yes; then
18620 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
18622 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
18624 # Put the nasty error message in config.log where it belongs
18625 echo "$DEBUGINFOD_PKG_ERRORS" >&5
18627 if test "x$with_debuginfod" = xyes
; then
18628 as_fn_error $?
"\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
18631 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
18633 elif test $pkg_failed = untried
; then
18634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18635 $as_echo "no" >&6; }
18636 if test "x$with_debuginfod" = xyes
; then
18637 as_fn_error $?
"\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
18639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
18640 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
18643 DEBUGINFOD_CFLAGS
=$pkg_cv_DEBUGINFOD_CFLAGS
18644 DEBUGINFOD_LIBS
=$pkg_cv_DEBUGINFOD_LIBS
18645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18646 $as_echo "yes" >&6; }
18648 $as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
18653 $as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
18657 # Libunwind support for ia64.
18659 # Check whether --with-libunwind-ia64 was given.
18660 if test "${with_libunwind_ia64+set}" = set; then :
18661 withval
=$with_libunwind_ia64;
18663 with_libunwind_ia64
=auto
18667 # Backward compatibility option.
18668 if test "${with_libunwind+set}" = set; then
18669 if test x
"$with_libunwind_ia64" != xauto
; then
18670 as_fn_error $?
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
18672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
18673 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
18674 with_libunwind_ia64
="$with_libunwind"
18677 case "$with_libunwind_ia64" in
18681 for ac_header
in libunwind-ia64.h
18683 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
18684 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
18685 cat >>confdefs.h
<<_ACEOF
18686 #define HAVE_LIBUNWIND_IA64_H 1
18693 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
18696 as_fn_error $?
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
18700 if test x
"$with_libunwind_ia64" = xyes
; then
18701 for ac_header
in libunwind-ia64.h
18703 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
18704 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
18705 cat >>confdefs.h
<<_ACEOF
18706 #define HAVE_LIBUNWIND_IA64_H 1
18713 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
18714 as_fn_error $?
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
18716 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
18717 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
18718 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
18723 # Check whether --with-curses was given.
18724 if test "${with_curses+set}" = set; then :
18725 withval
=$with_curses; opt_curses
=$withval
18730 if test "$opt_curses" = "yes"; then
18734 # Profiling support.
18735 # Check whether --enable-profiling was given.
18736 if test "${enable_profiling+set}" = set; then :
18737 enableval
=$enable_profiling;
18742 as_fn_error $?
"bad value $enableval for --enable-profiling" "$LINENO" 5
18747 enable_profiling
=no
18751 for ac_func
in monstartup _mcleanup
18753 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18754 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
18755 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
18756 cat >>confdefs.h
<<_ACEOF
18757 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
18764 $as_echo_n "checking for _etext... " >&6; }
18765 if ${ac_cv_var__etext+:} false
; then :
18766 $as_echo_n "(cached) " >&6
18768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18769 /* end confdefs.h. */
18770 #include <stdlib.h>
18771 extern char _etext;
18781 if ac_fn_c_try_link
"$LINENO"; then :
18782 ac_cv_var__etext
=yes
18784 ac_cv_var__etext
=no
18787 rm -f core conftest.err conftest.
$ac_objext \
18788 conftest
$ac_exeext conftest.
$ac_ext
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
18792 $as_echo "$ac_cv_var__etext" >&6; }
18793 if test "$ac_cv_var__etext" = yes; then
18795 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
18798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
18799 $as_echo_n "checking for etext... " >&6; }
18800 if ${ac_cv_var_etext+:} false
; then :
18801 $as_echo_n "(cached) " >&6
18803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18804 /* end confdefs.h. */
18805 #include <stdlib.h>
18816 if ac_fn_c_try_link
"$LINENO"; then :
18817 ac_cv_var_etext
=yes
18822 rm -f core conftest.err conftest.
$ac_objext \
18823 conftest
$ac_exeext conftest.
$ac_ext
18826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
18827 $as_echo "$ac_cv_var_etext" >&6; }
18828 if test "$ac_cv_var_etext" = yes; then
18830 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
18833 if test "$enable_profiling" = yes ; then
18834 if test "$ac_cv_func_monstartup" = no ||
test "$ac_cv_func__mcleanup" = no
; then
18835 as_fn_error $?
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
18838 OLD_CFLAGS
="$CFLAGS"
18839 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
18841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
18842 $as_echo_n "checking whether $CC supports -pg... " >&6; }
18843 if ${ac_cv_cc_supports_pg+:} false
; then :
18844 $as_echo_n "(cached) " >&6
18846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18847 /* end confdefs.h. */
18857 if ac_fn_c_try_compile
"$LINENO"; then :
18858 ac_cv_cc_supports_pg
=yes
18860 ac_cv_cc_supports_pg
=no
18863 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
18867 $as_echo "$ac_cv_cc_supports_pg" >&6; }
18869 if test "$ac_cv_cc_supports_pg" = no
; then
18870 as_fn_error $?
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
18873 CFLAGS
="$OLD_CFLAGS"
18877 # Check whether --enable-codesign was given.
18878 if test "${enable_codesign+set}" = set; then :
18879 enableval
=$enable_codesign; CODESIGN_CERT
=$enableval
18886 # Check whether --with-pkgversion was given.
18887 if test "${with_pkgversion+set}" = set; then :
18888 withval
=$with_pkgversion; case "$withval" in
18889 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
18891 *) PKGVERSION
="($withval) " ;;
18894 PKGVERSION
="(GDB) "
18902 # Check whether --with-bugurl was given.
18903 if test "${with_bugurl+set}" = set; then :
18904 withval
=$with_bugurl; case "$withval" in
18905 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
18908 *) BUGURL
="$withval"
18912 BUGURL
="https://www.gnu.org/software/gdb/bugs/"
18922 REPORT_BUGS_TO
="<$BUGURL>"
18923 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
18930 cat >>confdefs.h
<<_ACEOF
18931 #define PKGVERSION "$PKGVERSION"
18935 cat >>confdefs.h
<<_ACEOF
18936 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
18940 # --------------------- #
18941 # Checks for programs. #
18942 # --------------------- #
18944 for ac_prog
in gawk mawk nawk
awk
18946 # Extract the first word of "$ac_prog", so it can be a program name with args.
18947 set dummy
$ac_prog; ac_word
=$2
18948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18949 $as_echo_n "checking for $ac_word... " >&6; }
18950 if ${ac_cv_prog_AWK+:} false
; then :
18951 $as_echo_n "(cached) " >&6
18953 if test -n "$AWK"; then
18954 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
18956 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18957 for as_dir
in $PATH
18960 test -z "$as_dir" && as_dir
=.
18961 for ac_exec_ext
in '' $ac_executable_extensions; do
18962 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18963 ac_cv_prog_AWK
="$ac_prog"
18964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18973 AWK
=$ac_cv_prog_AWK
18974 if test -n "$AWK"; then
18975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
18976 $as_echo "$AWK" >&6; }
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18979 $as_echo "no" >&6; }
18983 test -n "$AWK" && break
18986 # Find a good install program. We prefer a C program (faster),
18987 # so one script is as good as another. But avoid the broken or
18988 # incompatible versions:
18989 # SysV /etc/install, /usr/sbin/install
18990 # SunOS /usr/etc/install
18991 # IRIX /sbin/install
18993 # AmigaOS /C/install, which installs bootblocks on floppy discs
18994 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18995 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
18996 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
18997 # OS/2's system install, which has a completely different semantic
18998 # ./install, which can be erroneously created by make from ./install.sh.
18999 # Reject install programs that cannot install multiple files.
19000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
19001 $as_echo_n "checking for a BSD-compatible install... " >&6; }
19002 if test -z "$INSTALL"; then
19003 if ${ac_cv_path_install+:} false
; then :
19004 $as_echo_n "(cached) " >&6
19006 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19007 for as_dir
in $PATH
19010 test -z "$as_dir" && as_dir
=.
19011 # Account for people who put trailing slashes in PATH elements.
19012 case $as_dir/ in #((
19013 .
/ | .
// |
/[cC
]/* | \
19014 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
19015 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
19018 # OSF1 and SCO ODT 3.0 have their own names for install.
19019 # Don't use installbsd from OSF since it installs stuff as root
19021 for ac_prog
in ginstall scoinst
install; do
19022 for ac_exec_ext
in '' $ac_executable_extensions; do
19023 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
19024 if test $ac_prog = install &&
19025 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
19026 # AIX install. It has an incompatible calling convention.
19028 elif test $ac_prog = install &&
19029 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
19030 # program-specific install script used by HP pwplus--don't use.
19033 rm -rf conftest.one conftest.two conftest.dir
19034 echo one
> conftest.one
19035 echo two
> conftest.two
19037 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
19038 test -s conftest.one
&& test -s conftest.two
&&
19039 test -s conftest.dir
/conftest.one
&&
19040 test -s conftest.dir
/conftest.two
19042 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
19055 rm -rf conftest.one conftest.two conftest.dir
19058 if test "${ac_cv_path_install+set}" = set; then
19059 INSTALL
=$ac_cv_path_install
19061 # As a last resort, use the slow shell script. Don't cache a
19062 # value for INSTALL within a source directory, because that will
19063 # break other packages using the cache if that directory is
19064 # removed, or if the value is a relative name.
19065 INSTALL
=$ac_install_sh
19068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
19069 $as_echo "$INSTALL" >&6; }
19071 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19072 # It thinks the first close brace ends the variable substitution.
19073 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
19075 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
19077 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
19079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
19080 $as_echo_n "checking whether ln -s works... " >&6; }
19082 if test "$LN_S" = "ln -s"; then
19083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19084 $as_echo "yes" >&6; }
19086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
19087 $as_echo "no, using $LN_S" >&6; }
19090 if test -n "$ac_tool_prefix"; then
19091 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19092 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
19093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19094 $as_echo_n "checking for $ac_word... " >&6; }
19095 if ${ac_cv_prog_RANLIB+:} false
; then :
19096 $as_echo_n "(cached) " >&6
19098 if test -n "$RANLIB"; then
19099 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
19101 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19102 for as_dir
in $PATH
19105 test -z "$as_dir" && as_dir
=.
19106 for ac_exec_ext
in '' $ac_executable_extensions; do
19107 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19108 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
19109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19118 RANLIB
=$ac_cv_prog_RANLIB
19119 if test -n "$RANLIB"; then
19120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19121 $as_echo "$RANLIB" >&6; }
19123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19124 $as_echo "no" >&6; }
19129 if test -z "$ac_cv_prog_RANLIB"; then
19130 ac_ct_RANLIB
=$RANLIB
19131 # Extract the first word of "ranlib", so it can be a program name with args.
19132 set dummy ranlib
; ac_word
=$2
19133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19134 $as_echo_n "checking for $ac_word... " >&6; }
19135 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
19136 $as_echo_n "(cached) " >&6
19138 if test -n "$ac_ct_RANLIB"; then
19139 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
19141 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19142 for as_dir
in $PATH
19145 test -z "$as_dir" && as_dir
=.
19146 for ac_exec_ext
in '' $ac_executable_extensions; do
19147 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19148 ac_cv_prog_ac_ct_RANLIB
="ranlib"
19149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19158 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
19159 if test -n "$ac_ct_RANLIB"; then
19160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19161 $as_echo "$ac_ct_RANLIB" >&6; }
19163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19164 $as_echo "no" >&6; }
19167 if test "x$ac_ct_RANLIB" = x
; then
19170 case $cross_compiling:$ac_tool_warned in
19172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19174 ac_tool_warned
=yes ;;
19176 RANLIB
=$ac_ct_RANLIB
19179 RANLIB
="$ac_cv_prog_RANLIB"
19182 for ac_prog
in 'bison -y' byacc
19184 # Extract the first word of "$ac_prog", so it can be a program name with args.
19185 set dummy
$ac_prog; ac_word
=$2
19186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19187 $as_echo_n "checking for $ac_word... " >&6; }
19188 if ${ac_cv_prog_YACC+:} false
; then :
19189 $as_echo_n "(cached) " >&6
19191 if test -n "$YACC"; then
19192 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
19194 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19195 for as_dir
in $PATH
19198 test -z "$as_dir" && as_dir
=.
19199 for ac_exec_ext
in '' $ac_executable_extensions; do
19200 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19201 ac_cv_prog_YACC
="$ac_prog"
19202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19211 YACC
=$ac_cv_prog_YACC
19212 if test -n "$YACC"; then
19213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
19214 $as_echo "$YACC" >&6; }
19216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19217 $as_echo "no" >&6; }
19221 test -n "$YACC" && break
19223 test -n "$YACC" || YACC
="yacc"
19226 if test -n "$ac_tool_prefix"; then
19227 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
19228 set dummy
${ac_tool_prefix}ar; ac_word
=$2
19229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19230 $as_echo_n "checking for $ac_word... " >&6; }
19231 if ${ac_cv_prog_AR+:} false
; then :
19232 $as_echo_n "(cached) " >&6
19234 if test -n "$AR"; then
19235 ac_cv_prog_AR
="$AR" # Let the user override the test.
19237 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19238 for as_dir
in $PATH
19241 test -z "$as_dir" && as_dir
=.
19242 for ac_exec_ext
in '' $ac_executable_extensions; do
19243 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19244 ac_cv_prog_AR
="${ac_tool_prefix}ar"
19245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19255 if test -n "$AR"; then
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
19257 $as_echo "$AR" >&6; }
19259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19260 $as_echo "no" >&6; }
19265 if test -z "$ac_cv_prog_AR"; then
19267 # Extract the first word of "ar", so it can be a program name with args.
19268 set dummy
ar; ac_word
=$2
19269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19270 $as_echo_n "checking for $ac_word... " >&6; }
19271 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
19272 $as_echo_n "(cached) " >&6
19274 if test -n "$ac_ct_AR"; then
19275 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
19277 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19278 for as_dir
in $PATH
19281 test -z "$as_dir" && as_dir
=.
19282 for ac_exec_ext
in '' $ac_executable_extensions; do
19283 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19284 ac_cv_prog_ac_ct_AR
="ar"
19285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19294 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
19295 if test -n "$ac_ct_AR"; then
19296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
19297 $as_echo "$ac_ct_AR" >&6; }
19299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19300 $as_echo "no" >&6; }
19303 if test "x$ac_ct_AR" = x
; then
19306 case $cross_compiling:$ac_tool_warned in
19308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19310 ac_tool_warned
=yes ;;
19315 AR
="$ac_cv_prog_AR"
19318 if test -n "$ac_tool_prefix"; then
19319 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
19320 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
19321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19322 $as_echo_n "checking for $ac_word... " >&6; }
19323 if ${ac_cv_prog_DLLTOOL+:} false
; then :
19324 $as_echo_n "(cached) " >&6
19326 if test -n "$DLLTOOL"; then
19327 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
19329 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19330 for as_dir
in $PATH
19333 test -z "$as_dir" && as_dir
=.
19334 for ac_exec_ext
in '' $ac_executable_extensions; do
19335 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19336 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
19337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19346 DLLTOOL
=$ac_cv_prog_DLLTOOL
19347 if test -n "$DLLTOOL"; then
19348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
19349 $as_echo "$DLLTOOL" >&6; }
19351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19352 $as_echo "no" >&6; }
19357 if test -z "$ac_cv_prog_DLLTOOL"; then
19358 ac_ct_DLLTOOL
=$DLLTOOL
19359 # Extract the first word of "dlltool", so it can be a program name with args.
19360 set dummy dlltool
; ac_word
=$2
19361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19362 $as_echo_n "checking for $ac_word... " >&6; }
19363 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
19364 $as_echo_n "(cached) " >&6
19366 if test -n "$ac_ct_DLLTOOL"; then
19367 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
19369 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19370 for as_dir
in $PATH
19373 test -z "$as_dir" && as_dir
=.
19374 for ac_exec_ext
in '' $ac_executable_extensions; do
19375 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19376 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
19377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19386 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
19387 if test -n "$ac_ct_DLLTOOL"; then
19388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
19389 $as_echo "$ac_ct_DLLTOOL" >&6; }
19391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19392 $as_echo "no" >&6; }
19395 if test "x$ac_ct_DLLTOOL" = x
; then
19398 case $cross_compiling:$ac_tool_warned in
19400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19402 ac_tool_warned
=yes ;;
19404 DLLTOOL
=$ac_ct_DLLTOOL
19407 DLLTOOL
="$ac_cv_prog_DLLTOOL"
19410 if test -n "$ac_tool_prefix"; then
19411 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
19412 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
19413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19414 $as_echo_n "checking for $ac_word... " >&6; }
19415 if ${ac_cv_prog_WINDRES+:} false
; then :
19416 $as_echo_n "(cached) " >&6
19418 if test -n "$WINDRES"; then
19419 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
19421 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19422 for as_dir
in $PATH
19425 test -z "$as_dir" && as_dir
=.
19426 for ac_exec_ext
in '' $ac_executable_extensions; do
19427 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19428 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
19429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19438 WINDRES
=$ac_cv_prog_WINDRES
19439 if test -n "$WINDRES"; then
19440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
19441 $as_echo "$WINDRES" >&6; }
19443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19444 $as_echo "no" >&6; }
19449 if test -z "$ac_cv_prog_WINDRES"; then
19450 ac_ct_WINDRES
=$WINDRES
19451 # Extract the first word of "windres", so it can be a program name with args.
19452 set dummy windres
; ac_word
=$2
19453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19454 $as_echo_n "checking for $ac_word... " >&6; }
19455 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
19456 $as_echo_n "(cached) " >&6
19458 if test -n "$ac_ct_WINDRES"; then
19459 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
19461 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19462 for as_dir
in $PATH
19465 test -z "$as_dir" && as_dir
=.
19466 for ac_exec_ext
in '' $ac_executable_extensions; do
19467 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19468 ac_cv_prog_ac_ct_WINDRES
="windres"
19469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19478 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
19479 if test -n "$ac_ct_WINDRES"; then
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
19481 $as_echo "$ac_ct_WINDRES" >&6; }
19483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19484 $as_echo "no" >&6; }
19487 if test "x$ac_ct_WINDRES" = x
; then
19490 case $cross_compiling:$ac_tool_warned in
19492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19494 ac_tool_warned
=yes ;;
19496 WINDRES
=$ac_ct_WINDRES
19499 WINDRES
="$ac_cv_prog_WINDRES"
19505 # Needed for GNU Hurd hosts.
19506 if test -n "$ac_tool_prefix"; then
19507 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
19508 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
19509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19510 $as_echo_n "checking for $ac_word... " >&6; }
19511 if ${ac_cv_prog_MIG+:} false
; then :
19512 $as_echo_n "(cached) " >&6
19514 if test -n "$MIG"; then
19515 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
19517 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19518 for as_dir
in $PATH
19521 test -z "$as_dir" && as_dir
=.
19522 for ac_exec_ext
in '' $ac_executable_extensions; do
19523 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19524 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
19525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19534 MIG
=$ac_cv_prog_MIG
19535 if test -n "$MIG"; then
19536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
19537 $as_echo "$MIG" >&6; }
19539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19540 $as_echo "no" >&6; }
19545 if test -z "$ac_cv_prog_MIG"; then
19547 # Extract the first word of "mig", so it can be a program name with args.
19548 set dummy mig
; ac_word
=$2
19549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19550 $as_echo_n "checking for $ac_word... " >&6; }
19551 if ${ac_cv_prog_ac_ct_MIG+:} false
; then :
19552 $as_echo_n "(cached) " >&6
19554 if test -n "$ac_ct_MIG"; then
19555 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
19557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19558 for as_dir
in $PATH
19561 test -z "$as_dir" && as_dir
=.
19562 for ac_exec_ext
in '' $ac_executable_extensions; do
19563 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19564 ac_cv_prog_ac_ct_MIG
="mig"
19565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19574 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
19575 if test -n "$ac_ct_MIG"; then
19576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
19577 $as_echo "$ac_ct_MIG" >&6; }
19579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19580 $as_echo "no" >&6; }
19583 if test "x$ac_ct_MIG" = x
; then
19586 case $cross_compiling:$ac_tool_warned in
19588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19590 ac_tool_warned
=yes ;;
19595 MIG
="$ac_cv_prog_MIG"
19598 if test x
"$MIG" = x
; then
19599 as_fn_error $?
"MIG not found but required for $host hosts" "$LINENO" 5
19604 # ---------------------- #
19605 # Checks for libraries. #
19606 # ---------------------- #
19608 # We might need to link with -lm; most simulators need it.
19609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
19610 $as_echo_n "checking for main in -lm... " >&6; }
19611 if ${ac_cv_lib_m_main+:} false
; then :
19612 $as_echo_n "(cached) " >&6
19614 ac_check_lib_save_LIBS
=$LIBS
19616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19617 /* end confdefs.h. */
19628 if ac_fn_c_try_link
"$LINENO"; then :
19629 ac_cv_lib_m_main
=yes
19631 ac_cv_lib_m_main
=no
19633 rm -f core conftest.err conftest.
$ac_objext \
19634 conftest
$ac_exeext conftest.
$ac_ext
19635 LIBS
=$ac_check_lib_save_LIBS
19637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
19638 $as_echo "$ac_cv_lib_m_main" >&6; }
19639 if test "x$ac_cv_lib_m_main" = xyes
; then :
19640 cat >>confdefs.h
<<_ACEOF
19641 #define HAVE_LIBM 1
19649 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
19650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
19651 $as_echo_n "checking for library containing gethostbyname... " >&6; }
19652 if ${ac_cv_search_gethostbyname+:} false
; then :
19653 $as_echo_n "(cached) " >&6
19655 ac_func_search_save_LIBS
=$LIBS
19656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19657 /* end confdefs.h. */
19659 /* Override any GCC internal prototype to avoid an error.
19660 Use char because int might match the return type of a GCC
19661 builtin and then its argument prototype would still apply. */
19665 char gethostbyname ();
19669 return gethostbyname ();
19674 for ac_lib
in '' nsl
; do
19675 if test -z "$ac_lib"; then
19676 ac_res
="none required"
19679 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
19681 if ac_fn_c_try_link
"$LINENO"; then :
19682 ac_cv_search_gethostbyname
=$ac_res
19684 rm -f core conftest.err conftest.
$ac_objext \
19686 if ${ac_cv_search_gethostbyname+:} false
; then :
19690 if ${ac_cv_search_gethostbyname+:} false
; then :
19693 ac_cv_search_gethostbyname
=no
19695 rm conftest.
$ac_ext
19696 LIBS
=$ac_func_search_save_LIBS
19698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
19699 $as_echo "$ac_cv_search_gethostbyname" >&6; }
19700 ac_res
=$ac_cv_search_gethostbyname
19701 if test "$ac_res" != no
; then :
19702 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
19707 # Link in zlib/zstd if we can. This allows us to read compressed debug
19710 # Use the system's zlib library.
19711 zlibdir
="-L\$(top_builddir)/../zlib"
19712 zlibinc
="-I\$(top_srcdir)/../zlib"
19714 # Check whether --with-system-zlib was given.
19715 if test "${with_system_zlib+set}" = set; then :
19716 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
19728 # Check whether --with-zstd was given.
19729 if test "${with_zstd+set}" = set; then :
19730 withval
=$with_zstd;
19736 if test "$with_zstd" != no
; then :
19739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
19740 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
19742 if test -n "$ZSTD_CFLAGS"; then
19743 pkg_cv_ZSTD_CFLAGS
="$ZSTD_CFLAGS"
19744 elif test -n "$PKG_CONFIG"; then
19745 if test -n "$PKG_CONFIG" && \
19746 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
19747 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
19749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19750 test $ac_status = 0; }; then
19751 pkg_cv_ZSTD_CFLAGS
=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
19752 test "x$?" != "x0" && pkg_failed
=yes
19759 if test -n "$ZSTD_LIBS"; then
19760 pkg_cv_ZSTD_LIBS
="$ZSTD_LIBS"
19761 elif test -n "$PKG_CONFIG"; then
19762 if test -n "$PKG_CONFIG" && \
19763 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
19764 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
19766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19767 test $ac_status = 0; }; then
19768 pkg_cv_ZSTD_LIBS
=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
19769 test "x$?" != "x0" && pkg_failed
=yes
19777 if test $pkg_failed = no
; then
19778 pkg_save_LDFLAGS
="$LDFLAGS"
19779 LDFLAGS
="$LDFLAGS $pkg_cv_ZSTD_LIBS"
19780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19781 /* end confdefs.h. */
19791 if ac_fn_c_try_link
"$LINENO"; then :
19796 rm -f core conftest.err conftest.
$ac_objext \
19797 conftest
$ac_exeext conftest.
$ac_ext
19798 LDFLAGS
=$pkg_save_LDFLAGS
19803 if test $pkg_failed = yes; then
19804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19805 $as_echo "no" >&6; }
19807 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19808 _pkg_short_errors_supported
=yes
19810 _pkg_short_errors_supported
=no
19812 if test $_pkg_short_errors_supported = yes; then
19813 ZSTD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
19815 ZSTD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
19817 # Put the nasty error message in config.log where it belongs
19818 echo "$ZSTD_PKG_ERRORS" >&5
19821 if test "$with_zstd" = yes; then
19822 as_fn_error $?
"--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
19825 elif test $pkg_failed = untried
; then
19826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19827 $as_echo "no" >&6; }
19829 if test "$with_zstd" = yes; then
19830 as_fn_error $?
"--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
19834 ZSTD_CFLAGS
=$pkg_cv_ZSTD_CFLAGS
19835 ZSTD_LIBS
=$pkg_cv_ZSTD_LIBS
19836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19837 $as_echo "yes" >&6; }
19840 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
19849 if test "X$prefix" = "XNONE"; then
19850 acl_final_prefix
="$ac_default_prefix"
19852 acl_final_prefix
="$prefix"
19854 if test "X$exec_prefix" = "XNONE"; then
19855 acl_final_exec_prefix
='${prefix}'
19857 acl_final_exec_prefix
="$exec_prefix"
19859 acl_save_prefix
="$prefix"
19860 prefix
="$acl_final_prefix"
19861 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
19862 prefix
="$acl_save_prefix"
19865 # Check whether --with-gnu-ld was given.
19866 if test "${with_gnu_ld+set}" = set; then :
19867 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
19872 # Prepare PATH_SEPARATOR.
19873 # The user is always right.
19874 if test "${PATH_SEPARATOR+set}" != set; then
19875 echo "#! /bin/sh" >conf$$.sh
19876 echo "exit 0" >>conf$$.sh
19878 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
19886 if test "$GCC" = yes; then
19887 # Check if gcc -print-prog-name=ld gives a path.
19888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
19889 $as_echo_n "checking for ld used by GCC... " >&6; }
19892 # gcc leaves a trailing carriage return which upsets mingw
19893 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19895 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
19898 # Accept absolute paths.
19899 [\\/]* |
[A-Za-z
]:[\\/]*)
19900 re_direlt
='/[^/][^/]*/\.\./'
19901 # Canonicalize the path of ld
19902 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
19903 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
19904 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
19906 test -z "$LD" && LD
="$ac_prog"
19909 # If it fails, then pretend we aren't using GCC.
19913 # If it is relative, then search for the first ld in PATH.
19914 with_gnu_ld
=unknown
19917 elif test "$with_gnu_ld" = yes; then
19918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19919 $as_echo_n "checking for GNU ld... " >&6; }
19921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19922 $as_echo_n "checking for non-GNU ld... " >&6; }
19924 if ${acl_cv_path_LD+:} false
; then :
19925 $as_echo_n "(cached) " >&6
19927 if test -z "$LD"; then
19928 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
19929 for ac_dir
in $PATH; do
19930 test -z "$ac_dir" && ac_dir
=.
19931 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
19932 acl_cv_path_LD
="$ac_dir/$ac_prog"
19933 # Check to see if the program is GNU ld. I'd rather use --version,
19934 # but apparently some GNU ld's only accept -v.
19935 # Break only if it was the GNU/non-GNU ld that we prefer.
19936 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
$EGREP '(GNU|with BFD)' > /dev
/null
; then
19937 test "$with_gnu_ld" != no
&& break
19939 test "$with_gnu_ld" != yes && break
19945 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
19949 LD
="$acl_cv_path_LD"
19950 if test -n "$LD"; then
19951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19952 $as_echo "$LD" >&6; }
19954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19955 $as_echo "no" >&6; }
19957 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
19958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19959 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19960 if ${acl_cv_prog_gnu_ld+:} false
; then :
19961 $as_echo_n "(cached) " >&6
19963 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
19964 if $LD -v 2>&1 </dev
/null |
$EGREP '(GNU|with BFD)' 1>&5; then
19965 acl_cv_prog_gnu_ld
=yes
19967 acl_cv_prog_gnu_ld
=no
19970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
19971 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
19972 with_gnu_ld
=$acl_cv_prog_gnu_ld
19976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
19977 $as_echo_n "checking for shared library run path origin... " >&6; }
19978 if ${acl_cv_rpath+:} false
; then :
19979 $as_echo_n "(cached) " >&6
19982 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
19983 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
19985 rm -f .
/conftest.sh
19989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
19990 $as_echo "$acl_cv_rpath" >&6; }
19992 libext
="$acl_cv_libext"
19993 shlibext
="$acl_cv_shlibext"
19994 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
19995 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
19996 hardcode_direct
="$acl_cv_hardcode_direct"
19997 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
19998 # Check whether --enable-rpath was given.
19999 if test "${enable_rpath+set}" = set; then :
20000 enableval
=$enable_rpath; :
20014 acl_save_prefix
="$prefix"
20015 prefix
="$acl_final_prefix"
20016 acl_save_exec_prefix
="$exec_prefix"
20017 exec_prefix
="$acl_final_exec_prefix"
20019 eval additional_includedir
=\"$includedir\"
20020 eval additional_libdir
=\"$libdir\"
20022 exec_prefix
="$acl_save_exec_prefix"
20023 prefix
="$acl_save_prefix"
20026 # Check whether --with-libiconv-prefix was given.
20027 if test "${with_libiconv_prefix+set}" = set; then :
20028 withval
=$with_libiconv_prefix;
20029 if test "X$withval" = "Xno"; then
20032 if test "X$withval" = "X"; then
20034 acl_save_prefix
="$prefix"
20035 prefix
="$acl_final_prefix"
20036 acl_save_exec_prefix
="$exec_prefix"
20037 exec_prefix
="$acl_final_exec_prefix"
20039 eval additional_includedir
=\"$includedir\"
20040 eval additional_libdir
=\"$libdir\"
20042 exec_prefix
="$acl_save_exec_prefix"
20043 prefix
="$acl_save_prefix"
20046 additional_includedir
="$withval/include"
20047 additional_libdir
="$withval/lib"
20054 # Check whether --with-libiconv-type was given.
20055 if test "${with_libiconv_type+set}" = set; then :
20056 withval
=$with_libiconv_type; with_libiconv_type
=$withval
20058 with_libiconv_type
=auto
20061 lib_type
=`eval echo \$with_libiconv_type`
20068 names_already_handled
=
20069 names_next_round
='iconv '
20070 while test -n "$names_next_round"; do
20071 names_this_round
="$names_next_round"
20073 for name
in $names_this_round; do
20075 for n
in $names_already_handled; do
20076 if test "$n" = "$name"; then
20077 already_handled
=yes
20081 if test -z "$already_handled"; then
20082 names_already_handled
="$names_already_handled $name"
20083 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20084 eval value
=\"\
$HAVE_LIB$uppername\"
20085 if test -n "$value"; then
20086 if test "$value" = yes; then
20087 eval value
=\"\
$LIB$uppername\"
20088 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
20089 eval value
=\"\
$LTLIB$uppername\"
20090 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
20099 if test $use_additional = yes; then
20100 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
20101 found_dir
="$additional_libdir"
20102 found_so
="$additional_libdir/lib$name.$shlibext"
20103 if test -f "$additional_libdir/lib$name.la"; then
20104 found_la
="$additional_libdir/lib$name.la"
20106 elif test x
$lib_type != xshared
; then
20107 if test -f "$additional_libdir/lib$name.$libext"; then
20108 found_dir
="$additional_libdir"
20109 found_a
="$additional_libdir/lib$name.$libext"
20110 if test -f "$additional_libdir/lib$name.la"; then
20111 found_la
="$additional_libdir/lib$name.la"
20116 if test "X$found_dir" = "X"; then
20117 for x
in $LDFLAGS $LTLIBICONV; do
20119 acl_save_prefix
="$prefix"
20120 prefix
="$acl_final_prefix"
20121 acl_save_exec_prefix
="$exec_prefix"
20122 exec_prefix
="$acl_final_exec_prefix"
20124 exec_prefix
="$acl_save_exec_prefix"
20125 prefix
="$acl_save_prefix"
20129 dir
=`echo "X$x" | sed -e 's/^X-L//'`
20130 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
20132 found_so
="$dir/lib$name.$shlibext"
20133 if test -f "$dir/lib$name.la"; then
20134 found_la
="$dir/lib$name.la"
20136 elif test x
$lib_type != xshared
; then
20137 if test -f "$dir/lib$name.$libext"; then
20139 found_a
="$dir/lib$name.$libext"
20140 if test -f "$dir/lib$name.la"; then
20141 found_la
="$dir/lib$name.la"
20147 if test "X$found_dir" != "X"; then
20152 if test "X$found_dir" != "X"; then
20153 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
20154 if test "X$found_so" != "X"; then
20155 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
20156 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
20159 for x
in $ltrpathdirs; do
20160 if test "X$x" = "X$found_dir"; then
20165 if test -z "$haveit"; then
20166 ltrpathdirs
="$ltrpathdirs $found_dir"
20168 if test "$hardcode_direct" = yes; then
20169 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
20171 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
20172 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
20174 for x
in $rpathdirs; do
20175 if test "X$x" = "X$found_dir"; then
20180 if test -z "$haveit"; then
20181 rpathdirs
="$rpathdirs $found_dir"
20185 for x
in $LDFLAGS $LIBICONV; do
20187 acl_save_prefix
="$prefix"
20188 prefix
="$acl_final_prefix"
20189 acl_save_exec_prefix
="$exec_prefix"
20190 exec_prefix
="$acl_final_exec_prefix"
20192 exec_prefix
="$acl_save_exec_prefix"
20193 prefix
="$acl_save_prefix"
20195 if test "X$x" = "X-L$found_dir"; then
20200 if test -z "$haveit"; then
20201 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
20203 if test "$hardcode_minus_L" != no
; then
20204 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
20206 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
20212 if test "X$found_a" != "X"; then
20213 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
20215 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
20218 additional_includedir
=
20219 case "$found_dir" in
20221 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
20222 additional_includedir
="$basedir/include"
20225 if test "X$additional_includedir" != "X"; then
20226 if test "X$additional_includedir" != "X/usr/include"; then
20228 if test "X$additional_includedir" = "X/usr/local/include"; then
20229 if test -n "$GCC"; then
20231 linux
*) haveit
=yes;;
20235 if test -z "$haveit"; then
20236 for x
in $CPPFLAGS $INCICONV; do
20238 acl_save_prefix
="$prefix"
20239 prefix
="$acl_final_prefix"
20240 acl_save_exec_prefix
="$exec_prefix"
20241 exec_prefix
="$acl_final_exec_prefix"
20243 exec_prefix
="$acl_save_exec_prefix"
20244 prefix
="$acl_save_prefix"
20246 if test "X$x" = "X-I$additional_includedir"; then
20251 if test -z "$haveit"; then
20252 if test -d "$additional_includedir"; then
20253 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
20259 if test -n "$found_la"; then
20260 save_libdir
="$libdir"
20261 case "$found_la" in
20262 */* |
*\\*) .
"$found_la" ;;
20263 *) .
"./$found_la" ;;
20265 libdir
="$save_libdir"
20266 for dep
in $dependency_libs; do
20269 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
20270 if test "X$additional_libdir" != "X/usr/lib"; then
20272 if test "X$additional_libdir" = "X/usr/local/lib"; then
20273 if test -n "$GCC"; then
20275 linux
*) haveit
=yes;;
20279 if test -z "$haveit"; then
20281 for x
in $LDFLAGS $LIBICONV; do
20283 acl_save_prefix
="$prefix"
20284 prefix
="$acl_final_prefix"
20285 acl_save_exec_prefix
="$exec_prefix"
20286 exec_prefix
="$acl_final_exec_prefix"
20288 exec_prefix
="$acl_save_exec_prefix"
20289 prefix
="$acl_save_prefix"
20291 if test "X$x" = "X-L$additional_libdir"; then
20296 if test -z "$haveit"; then
20297 if test -d "$additional_libdir"; then
20298 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
20302 for x
in $LDFLAGS $LTLIBICONV; do
20304 acl_save_prefix
="$prefix"
20305 prefix
="$acl_final_prefix"
20306 acl_save_exec_prefix
="$exec_prefix"
20307 exec_prefix
="$acl_final_exec_prefix"
20309 exec_prefix
="$acl_save_exec_prefix"
20310 prefix
="$acl_save_prefix"
20312 if test "X$x" = "X-L$additional_libdir"; then
20317 if test -z "$haveit"; then
20318 if test -d "$additional_libdir"; then
20319 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
20326 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
20327 if test "$enable_rpath" != no
; then
20329 for x
in $rpathdirs; do
20330 if test "X$x" = "X$dir"; then
20335 if test -z "$haveit"; then
20336 rpathdirs
="$rpathdirs $dir"
20339 for x
in $ltrpathdirs; do
20340 if test "X$x" = "X$dir"; then
20345 if test -z "$haveit"; then
20346 ltrpathdirs
="$ltrpathdirs $dir"
20351 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20354 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20357 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
20358 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
20364 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
20365 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
20366 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
20368 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
20369 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
20376 if test "X$rpathdirs" != "X"; then
20377 if test -n "$hardcode_libdir_separator"; then
20379 for found_dir
in $rpathdirs; do
20380 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
20382 acl_save_libdir
="$libdir"
20384 eval flag
=\"$hardcode_libdir_flag_spec\"
20385 libdir
="$acl_save_libdir"
20386 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
20388 for found_dir
in $rpathdirs; do
20389 acl_save_libdir
="$libdir"
20390 libdir
="$found_dir"
20391 eval flag
=\"$hardcode_libdir_flag_spec\"
20392 libdir
="$acl_save_libdir"
20393 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
20397 if test "X$ltrpathdirs" != "X"; then
20398 for found_dir
in $ltrpathdirs; do
20399 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
20409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20410 $as_echo_n "checking for iconv... " >&6; }
20411 if ${am_cv_func_iconv+:} false
; then :
20412 $as_echo_n "(cached) " >&6
20415 am_cv_func_iconv
="no, consider installing GNU libiconv"
20417 am_save_CPPFLAGS
="$CPPFLAGS"
20418 CPPFLAGS
="$CPPFLAGS $INCICONV"
20419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20420 /* end confdefs.h. */
20421 #include <stdlib.h>
20426 iconv_t cd = iconv_open("","");
20427 iconv(cd,NULL,NULL,NULL,NULL);
20433 if ac_fn_c_try_link
"$LINENO"; then :
20434 am_cv_func_iconv
=yes
20436 rm -f core conftest.err conftest.
$ac_objext \
20437 conftest
$ac_exeext conftest.
$ac_ext
20438 CPPFLAGS
="$am_save_CPPFLAGS"
20440 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
20441 for _libs
in .libs _libs
; do
20442 am_save_CPPFLAGS
="$CPPFLAGS"
20443 am_save_LIBS
="$LIBS"
20444 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
20445 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
20446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20447 /* end confdefs.h. */
20448 #include <stdlib.h>
20453 iconv_t cd = iconv_open("","");
20454 iconv(cd,NULL,NULL,NULL,NULL);
20460 if ac_fn_c_try_link
"$LINENO"; then :
20461 INCICONV
="-I../libiconv/include"
20462 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
20463 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
20464 am_cv_lib_iconv
=yes
20465 am_cv_func_iconv
=yes
20467 rm -f core conftest.err conftest.
$ac_objext \
20468 conftest
$ac_exeext conftest.
$ac_ext
20469 CPPFLAGS
="$am_save_CPPFLAGS"
20470 LIBS
="$am_save_LIBS"
20471 if test "$am_cv_func_iconv" = "yes"; then
20477 if test "$am_cv_func_iconv" != yes; then
20478 am_save_CPPFLAGS
="$CPPFLAGS"
20479 am_save_LIBS
="$LIBS"
20480 CPPFLAGS
="$CPPFLAGS $INCICONV"
20481 LIBS
="$LIBS $LIBICONV"
20482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20483 /* end confdefs.h. */
20484 #include <stdlib.h>
20489 iconv_t cd = iconv_open("","");
20490 iconv(cd,NULL,NULL,NULL,NULL);
20496 if ac_fn_c_try_link
"$LINENO"; then :
20497 am_cv_lib_iconv
=yes
20498 am_cv_func_iconv
=yes
20500 rm -f core conftest.err conftest.
$ac_objext \
20501 conftest
$ac_exeext conftest.
$ac_ext
20502 CPPFLAGS
="$am_save_CPPFLAGS"
20503 LIBS
="$am_save_LIBS"
20507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20508 $as_echo "$am_cv_func_iconv" >&6; }
20509 if test "$am_cv_func_iconv" = yes; then
20511 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20514 if test "$am_cv_lib_iconv" = yes; then
20516 for element
in $INCICONV; do
20518 for x
in $CPPFLAGS; do
20520 acl_save_prefix
="$prefix"
20521 prefix
="$acl_final_prefix"
20522 acl_save_exec_prefix
="$exec_prefix"
20523 exec_prefix
="$acl_final_exec_prefix"
20525 exec_prefix
="$acl_save_exec_prefix"
20526 prefix
="$acl_save_prefix"
20528 if test "X$x" = "X$element"; then
20533 if test -z "$haveit"; then
20534 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
20538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20539 $as_echo_n "checking how to link with libiconv... " >&6; }
20540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20541 $as_echo "$LIBICONV" >&6; }
20549 if test "$am_cv_func_iconv" = yes; then
20550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20551 $as_echo_n "checking for iconv declaration... " >&6; }
20552 if ${am_cv_proto_iconv+:} false
; then :
20553 $as_echo_n "(cached) " >&6
20556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20557 /* end confdefs.h. */
20559 #include <stdlib.h>
20565 #if defined(__STDC__) || defined(__cplusplus)
20566 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20579 if ac_fn_c_try_compile
"$LINENO"; then :
20580 am_cv_proto_iconv_arg1
=""
20582 am_cv_proto_iconv_arg1
="const"
20584 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20585 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);"
20588 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20590 }$am_cv_proto_iconv" >&5
20592 }$am_cv_proto_iconv" >&6; }
20594 cat >>confdefs.h
<<_ACEOF
20595 #define ICONV_CONST $am_cv_proto_iconv_arg1
20601 # GDB may fork/exec the iconv program to get the list of supported character
20602 # sets. Allow the user to specify where to find it.
20603 # There are several factors affecting the choice of option name:
20604 # - There is already --with-libiconv-prefix but we can't use it, it specifies
20605 # the build-time location of libiconv files.
20606 # - The program we need to find is iconv, which comes with glibc. The user
20607 # doesn't necessarily have libiconv installed. Therefore naming this
20608 # --with-libiconv-foo feels wrong.
20609 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
20610 # defined to work on directories not files (though it really doesn't know
20612 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
20613 # with --with-libiconv-prefix.
20614 # Putting these together is why the option name is --with-iconv-bin.
20617 # Check whether --with-iconv-bin was given.
20618 if test "${with_iconv_bin+set}" = set; then :
20619 withval
=$with_iconv_bin; iconv_bin
="${withval}"
20621 cat >>confdefs.h
<<_ACEOF
20622 #define ICONV_BIN "${iconv_bin}"
20626 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
20627 if test "x$prefix" = xNONE
; then
20628 test_prefix
=/usr
/local
20630 test_prefix
=$prefix
20633 test_prefix
=$exec_prefix
20636 case ${iconv_bin} in
20637 "${test_prefix}"|
"${test_prefix}/"*|\
20638 '${exec_prefix}'|
'${exec_prefix}/'*)
20643 cat >>confdefs.h
<<_ACEOF
20644 #define ICONV_BIN_RELOCATABLE $value
20652 # For the TUI, we need enhanced curses functionality.
20653 if test x
"$enable_tui" != xno
; then
20658 if test x
"$prefer_curses" = xyes
; then
20659 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
20660 # curses library because the latter might not provide all the
20661 # functionality we need. However, this leads to problems on systems
20662 # where the linker searches /usr/local/lib, but the compiler doesn't
20663 # search /usr/local/include, if ncurses is installed in /usr/local. A
20664 # default installation of ncurses on alpha*-dec-osf* will lead to such
20666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
20667 $as_echo_n "checking for library containing waddstr... " >&6; }
20668 if ${ac_cv_search_waddstr+:} false
; then :
20669 $as_echo_n "(cached) " >&6
20671 ac_func_search_save_LIBS
=$LIBS
20672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20673 /* end confdefs.h. */
20675 /* Override any GCC internal prototype to avoid an error.
20676 Use char because int might match the return type of a GCC
20677 builtin and then its argument prototype would still apply. */
20690 for ac_lib
in '' ncursesw ncurses cursesX curses
; do
20691 if test -z "$ac_lib"; then
20692 ac_res
="none required"
20695 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
20697 if ac_fn_c_try_link
"$LINENO"; then :
20698 ac_cv_search_waddstr
=$ac_res
20700 rm -f core conftest.err conftest.
$ac_objext \
20702 if ${ac_cv_search_waddstr+:} false
; then :
20706 if ${ac_cv_search_waddstr+:} false
; then :
20709 ac_cv_search_waddstr
=no
20711 rm conftest.
$ac_ext
20712 LIBS
=$ac_func_search_save_LIBS
20714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
20715 $as_echo "$ac_cv_search_waddstr" >&6; }
20716 ac_res
=$ac_cv_search_waddstr
20717 if test "$ac_res" != no
; then :
20718 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
20721 $as_echo "#define HAVE_LIBCURSES 1" >>confdefs.h
20728 # Check whether we should enable the TUI, but only do so if we really
20730 if test x
"$enable_tui" != xno
; then
20731 if test "$curses_found" != no
; then
20732 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
20733 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
20734 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
20735 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
20737 if test x
"$enable_tui" = xyes
; then
20738 as_fn_error $?
"no enhanced curses library found; disable TUI" "$LINENO" 5
20740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
20741 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
20746 # Since GDB uses Readline, we need termcap functionality. In many
20747 # cases this will be provided by the curses library, but some systems
20748 # have a separate termcap library, or no curses library at all.
20752 if test -d "$srcdir/libtermcap"; then
20753 LIBS
="../libtermcap/libtermcap.a $LIBS"
20754 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
20757 ac_cv_search_tgetent
="none required"
20761 # These are the libraries checked by Readline.
20762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
20763 $as_echo_n "checking for library containing tgetent... " >&6; }
20764 if ${ac_cv_search_tgetent+:} false
; then :
20765 $as_echo_n "(cached) " >&6
20767 ac_func_search_save_LIBS
=$LIBS
20768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20769 /* end confdefs.h. */
20771 /* Override any GCC internal prototype to avoid an error.
20772 Use char because int might match the return type of a GCC
20773 builtin and then its argument prototype would still apply. */
20786 for ac_lib
in '' termcap tinfow tinfo curses ncursesw ncurses
; do
20787 if test -z "$ac_lib"; then
20788 ac_res
="none required"
20791 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
20793 if ac_fn_c_try_link
"$LINENO"; then :
20794 ac_cv_search_tgetent
=$ac_res
20796 rm -f core conftest.err conftest.
$ac_objext \
20798 if ${ac_cv_search_tgetent+:} false
; then :
20802 if ${ac_cv_search_tgetent+:} false
; then :
20805 ac_cv_search_tgetent
=no
20807 rm conftest.
$ac_ext
20808 LIBS
=$ac_func_search_save_LIBS
20810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
20811 $as_echo "$ac_cv_search_tgetent" >&6; }
20812 ac_res
=$ac_cv_search_tgetent
20813 if test "$ac_res" != no
; then :
20814 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
20819 if test "$ac_cv_search_tgetent" = no
; then
20820 CONFIG_OBS
="$CONFIG_OBS stub-termcap.o"
20824 # Check whether --with-system-readline was given.
20825 if test "${with_system_readline+set}" = set; then :
20826 withval
=$with_system_readline;
20830 if test "$with_system_readline" = yes; then
20831 for ac_header
in readline
/readline.h
20833 ac_fn_c_check_header_mongrel
"$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
20834 if test "x$ac_cv_header_readline_readline_h" = xyes
; then :
20835 cat >>confdefs.h
<<_ACEOF
20836 #define HAVE_READLINE_READLINE_H 1
20845 if test "$readline_h" = "no"; then
20846 as_fn_error $?
"readline development packages are probably missing" "$LINENO" 5
20848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system readline is new enough" >&5
20849 $as_echo_n "checking whether system readline is new enough... " >&6; }
20850 if ${gdb_cv_readline_ok+:} false
; then :
20851 $as_echo_n "(cached) " >&6
20853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20854 /* end confdefs.h. */
20856 #include <readline/readline.h>
20860 #if RL_VERSION_MAJOR < 7
20861 # error "readline version 7 required"
20868 if ac_fn_c_try_compile
"$LINENO"; then :
20869 gdb_cv_readline_ok
=yes
20871 gdb_cv_readline_ok
=no
20874 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_readline_ok" >&5
20878 $as_echo "$gdb_cv_readline_ok" >&6; }
20879 if test "$gdb_cv_readline_ok" != yes; then
20880 as_fn_error $?
"system readline is not new enough" "$LINENO" 5
20883 READLINE
=-lreadline
20886 READLINE_TEXI_INCFLAG
=
20887 READLINE_DOC_SOURCE_INCLUDES
='$(READLINE_SYSTEM_DOC_INCLUDES)'
20889 READLINE
='$(READLINE_DIR)/libreadline.a'
20890 READLINE_DEPS
='$(READLINE)'
20891 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
20892 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
20893 READLINE_DOC_SOURCE_INCLUDES
='$(READLINE_INTREE_DOC_INCLUDES)'
20901 # Generate jit-reader.h
20903 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
20906 # The cast to long int works around a bug in the HP C Compiler
20907 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20908 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20909 # This bug is HP SR number 8606223364.
20910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
20911 $as_echo_n "checking size of unsigned long long... " >&6; }
20912 if ${ac_cv_sizeof_unsigned_long_long+:} false
; then :
20913 $as_echo_n "(cached) " >&6
20915 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
20918 if test "$ac_cv_type_unsigned_long_long" = yes; then
20919 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20921 as_fn_error
77 "cannot compute sizeof (unsigned long long)
20922 See \`config.log' for more details" "$LINENO" 5; }
20924 ac_cv_sizeof_unsigned_long_long
=0
20929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
20930 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
20934 cat >>confdefs.h
<<_ACEOF
20935 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
20939 # The cast to long int works around a bug in the HP C Compiler
20940 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20941 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20942 # This bug is HP SR number 8606223364.
20943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
20944 $as_echo_n "checking size of unsigned long... " >&6; }
20945 if ${ac_cv_sizeof_unsigned_long+:} false
; then :
20946 $as_echo_n "(cached) " >&6
20948 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
20951 if test "$ac_cv_type_unsigned_long" = yes; then
20952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20954 as_fn_error
77 "cannot compute sizeof (unsigned long)
20955 See \`config.log' for more details" "$LINENO" 5; }
20957 ac_cv_sizeof_unsigned_long
=0
20962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
20963 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
20967 cat >>confdefs.h
<<_ACEOF
20968 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20972 # The cast to long int works around a bug in the HP C Compiler
20973 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20974 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20975 # This bug is HP SR number 8606223364.
20976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
20977 $as_echo_n "checking size of unsigned __int128... " >&6; }
20978 if ${ac_cv_sizeof_unsigned___int128+:} false
; then :
20979 $as_echo_n "(cached) " >&6
20981 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
20984 if test "$ac_cv_type_unsigned___int128" = yes; then
20985 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20986 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20987 as_fn_error
77 "cannot compute sizeof (unsigned __int128)
20988 See \`config.log' for more details" "$LINENO" 5; }
20990 ac_cv_sizeof_unsigned___int128
=0
20995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
20996 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
21000 cat >>confdefs.h
<<_ACEOF
21001 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
21006 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
21007 TARGET_PTR
="unsigned long"
21008 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
21009 TARGET_PTR
="unsigned long long"
21010 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
21011 TARGET_PTR
="unsigned __int128"
21013 TARGET_PTR
="unsigned long"
21017 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
21020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
21021 $as_echo_n "checking for library containing dlopen... " >&6; }
21022 if ${ac_cv_search_dlopen+:} false
; then :
21023 $as_echo_n "(cached) " >&6
21025 ac_func_search_save_LIBS
=$LIBS
21026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21027 /* end confdefs.h. */
21029 /* Override any GCC internal prototype to avoid an error.
21030 Use char because int might match the return type of a GCC
21031 builtin and then its argument prototype would still apply. */
21044 for ac_lib
in '' dl
; do
21045 if test -z "$ac_lib"; then
21046 ac_res
="none required"
21049 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
21051 if ac_fn_c_try_link
"$LINENO"; then :
21052 ac_cv_search_dlopen
=$ac_res
21054 rm -f core conftest.err conftest.
$ac_objext \
21056 if ${ac_cv_search_dlopen+:} false
; then :
21060 if ${ac_cv_search_dlopen+:} false
; then :
21063 ac_cv_search_dlopen
=no
21065 rm conftest.
$ac_ext
21066 LIBS
=$ac_func_search_save_LIBS
21068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
21069 $as_echo "$ac_cv_search_dlopen" >&6; }
21070 ac_res
=$ac_cv_search_dlopen
21071 if test "$ac_res" != no
; then :
21072 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
21079 # Check whether --with-jit-reader-dir was given.
21080 if test "${with_jit_reader_dir+set}" = set; then :
21081 withval
=$with_jit_reader_dir;
21082 JIT_READER_DIR
=$withval
21084 JIT_READER_DIR
=${libdir}/gdb
21088 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
21089 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
21090 ac_define_dir
=`eval echo $JIT_READER_DIR`
21091 ac_define_dir
=`eval echo $ac_define_dir`
21093 cat >>confdefs.h
<<_ACEOF
21094 #define JIT_READER_DIR "$ac_define_dir"
21100 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
21101 if test "x$prefix" = xNONE
; then
21102 test_prefix
=/usr
/local
21104 test_prefix
=$prefix
21107 test_prefix
=$exec_prefix
21110 case ${ac_define_dir} in
21111 "${test_prefix}"|
"${test_prefix}/"*|\
21112 '${exec_prefix}'|
'${exec_prefix}/'*)
21117 cat >>confdefs.h
<<_ACEOF
21118 #define JIT_READER_DIR_RELOCATABLE $value
21125 # Check whether --with-expat was given.
21126 if test "${with_expat+set}" = set; then :
21127 withval
=$with_expat;
21132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
21133 $as_echo_n "checking whether to use expat... " >&6; }
21134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
21135 $as_echo "$with_expat" >&6; }
21137 if test "${with_expat}" = no
; then
21138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
21139 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
21152 acl_save_prefix
="$prefix"
21153 prefix
="$acl_final_prefix"
21154 acl_save_exec_prefix
="$exec_prefix"
21155 exec_prefix
="$acl_final_exec_prefix"
21157 eval additional_includedir
=\"$includedir\"
21158 eval additional_libdir
=\"$libdir\"
21160 exec_prefix
="$acl_save_exec_prefix"
21161 prefix
="$acl_save_prefix"
21164 # Check whether --with-libexpat-prefix was given.
21165 if test "${with_libexpat_prefix+set}" = set; then :
21166 withval
=$with_libexpat_prefix;
21167 if test "X$withval" = "Xno"; then
21170 if test "X$withval" = "X"; then
21172 acl_save_prefix
="$prefix"
21173 prefix
="$acl_final_prefix"
21174 acl_save_exec_prefix
="$exec_prefix"
21175 exec_prefix
="$acl_final_exec_prefix"
21177 eval additional_includedir
=\"$includedir\"
21178 eval additional_libdir
=\"$libdir\"
21180 exec_prefix
="$acl_save_exec_prefix"
21181 prefix
="$acl_save_prefix"
21184 additional_includedir
="$withval/include"
21185 additional_libdir
="$withval/lib"
21192 # Check whether --with-libexpat-type was given.
21193 if test "${with_libexpat_type+set}" = set; then :
21194 withval
=$with_libexpat_type; with_libexpat_type
=$withval
21196 with_libexpat_type
=auto
21199 lib_type
=`eval echo \$with_libexpat_type`
21206 names_already_handled
=
21207 names_next_round
='expat '
21208 while test -n "$names_next_round"; do
21209 names_this_round
="$names_next_round"
21211 for name
in $names_this_round; do
21213 for n
in $names_already_handled; do
21214 if test "$n" = "$name"; then
21215 already_handled
=yes
21219 if test -z "$already_handled"; then
21220 names_already_handled
="$names_already_handled $name"
21221 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21222 eval value
=\"\
$HAVE_LIB$uppername\"
21223 if test -n "$value"; then
21224 if test "$value" = yes; then
21225 eval value
=\"\
$LIB$uppername\"
21226 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
21227 eval value
=\"\
$LTLIB$uppername\"
21228 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
21237 if test $use_additional = yes; then
21238 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
21239 found_dir
="$additional_libdir"
21240 found_so
="$additional_libdir/lib$name.$shlibext"
21241 if test -f "$additional_libdir/lib$name.la"; then
21242 found_la
="$additional_libdir/lib$name.la"
21244 elif test x
$lib_type != xshared
; then
21245 if test -f "$additional_libdir/lib$name.$libext"; then
21246 found_dir
="$additional_libdir"
21247 found_a
="$additional_libdir/lib$name.$libext"
21248 if test -f "$additional_libdir/lib$name.la"; then
21249 found_la
="$additional_libdir/lib$name.la"
21254 if test "X$found_dir" = "X"; then
21255 for x
in $LDFLAGS $LTLIBEXPAT; do
21257 acl_save_prefix
="$prefix"
21258 prefix
="$acl_final_prefix"
21259 acl_save_exec_prefix
="$exec_prefix"
21260 exec_prefix
="$acl_final_exec_prefix"
21262 exec_prefix
="$acl_save_exec_prefix"
21263 prefix
="$acl_save_prefix"
21267 dir
=`echo "X$x" | sed -e 's/^X-L//'`
21268 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
21270 found_so
="$dir/lib$name.$shlibext"
21271 if test -f "$dir/lib$name.la"; then
21272 found_la
="$dir/lib$name.la"
21274 elif test x
$lib_type != xshared
; then
21275 if test -f "$dir/lib$name.$libext"; then
21277 found_a
="$dir/lib$name.$libext"
21278 if test -f "$dir/lib$name.la"; then
21279 found_la
="$dir/lib$name.la"
21285 if test "X$found_dir" != "X"; then
21290 if test "X$found_dir" != "X"; then
21291 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
21292 if test "X$found_so" != "X"; then
21293 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
21294 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
21297 for x
in $ltrpathdirs; do
21298 if test "X$x" = "X$found_dir"; then
21303 if test -z "$haveit"; then
21304 ltrpathdirs
="$ltrpathdirs $found_dir"
21306 if test "$hardcode_direct" = yes; then
21307 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
21309 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
21310 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
21312 for x
in $rpathdirs; do
21313 if test "X$x" = "X$found_dir"; then
21318 if test -z "$haveit"; then
21319 rpathdirs
="$rpathdirs $found_dir"
21323 for x
in $LDFLAGS $LIBEXPAT; do
21325 acl_save_prefix
="$prefix"
21326 prefix
="$acl_final_prefix"
21327 acl_save_exec_prefix
="$exec_prefix"
21328 exec_prefix
="$acl_final_exec_prefix"
21330 exec_prefix
="$acl_save_exec_prefix"
21331 prefix
="$acl_save_prefix"
21333 if test "X$x" = "X-L$found_dir"; then
21338 if test -z "$haveit"; then
21339 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
21341 if test "$hardcode_minus_L" != no
; then
21342 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
21344 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
21350 if test "X$found_a" != "X"; then
21351 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
21353 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
21356 additional_includedir
=
21357 case "$found_dir" in
21359 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21360 additional_includedir
="$basedir/include"
21363 if test "X$additional_includedir" != "X"; then
21364 if test "X$additional_includedir" != "X/usr/include"; then
21366 if test "X$additional_includedir" = "X/usr/local/include"; then
21367 if test -n "$GCC"; then
21369 linux
*) haveit
=yes;;
21373 if test -z "$haveit"; then
21374 for x
in $CPPFLAGS $INCEXPAT; do
21376 acl_save_prefix
="$prefix"
21377 prefix
="$acl_final_prefix"
21378 acl_save_exec_prefix
="$exec_prefix"
21379 exec_prefix
="$acl_final_exec_prefix"
21381 exec_prefix
="$acl_save_exec_prefix"
21382 prefix
="$acl_save_prefix"
21384 if test "X$x" = "X-I$additional_includedir"; then
21389 if test -z "$haveit"; then
21390 if test -d "$additional_includedir"; then
21391 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
21397 if test -n "$found_la"; then
21398 save_libdir
="$libdir"
21399 case "$found_la" in
21400 */* |
*\\*) .
"$found_la" ;;
21401 *) .
"./$found_la" ;;
21403 libdir
="$save_libdir"
21404 for dep
in $dependency_libs; do
21407 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
21408 if test "X$additional_libdir" != "X/usr/lib"; then
21410 if test "X$additional_libdir" = "X/usr/local/lib"; then
21411 if test -n "$GCC"; then
21413 linux
*) haveit
=yes;;
21417 if test -z "$haveit"; then
21419 for x
in $LDFLAGS $LIBEXPAT; do
21421 acl_save_prefix
="$prefix"
21422 prefix
="$acl_final_prefix"
21423 acl_save_exec_prefix
="$exec_prefix"
21424 exec_prefix
="$acl_final_exec_prefix"
21426 exec_prefix
="$acl_save_exec_prefix"
21427 prefix
="$acl_save_prefix"
21429 if test "X$x" = "X-L$additional_libdir"; then
21434 if test -z "$haveit"; then
21435 if test -d "$additional_libdir"; then
21436 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
21440 for x
in $LDFLAGS $LTLIBEXPAT; do
21442 acl_save_prefix
="$prefix"
21443 prefix
="$acl_final_prefix"
21444 acl_save_exec_prefix
="$exec_prefix"
21445 exec_prefix
="$acl_final_exec_prefix"
21447 exec_prefix
="$acl_save_exec_prefix"
21448 prefix
="$acl_save_prefix"
21450 if test "X$x" = "X-L$additional_libdir"; then
21455 if test -z "$haveit"; then
21456 if test -d "$additional_libdir"; then
21457 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
21464 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
21465 if test "$enable_rpath" != no
; then
21467 for x
in $rpathdirs; do
21468 if test "X$x" = "X$dir"; then
21473 if test -z "$haveit"; then
21474 rpathdirs
="$rpathdirs $dir"
21477 for x
in $ltrpathdirs; do
21478 if test "X$x" = "X$dir"; then
21483 if test -z "$haveit"; then
21484 ltrpathdirs
="$ltrpathdirs $dir"
21489 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21492 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21495 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
21496 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
21502 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
21503 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
21504 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
21506 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l:lib$name.$libext"
21507 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l:lib$name.$libext"
21514 if test "X$rpathdirs" != "X"; then
21515 if test -n "$hardcode_libdir_separator"; then
21517 for found_dir
in $rpathdirs; do
21518 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21520 acl_save_libdir
="$libdir"
21522 eval flag
=\"$hardcode_libdir_flag_spec\"
21523 libdir
="$acl_save_libdir"
21524 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
21526 for found_dir
in $rpathdirs; do
21527 acl_save_libdir
="$libdir"
21528 libdir
="$found_dir"
21529 eval flag
=\"$hardcode_libdir_flag_spec\"
21530 libdir
="$acl_save_libdir"
21531 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
21535 if test "X$ltrpathdirs" != "X"; then
21536 for found_dir
in $ltrpathdirs; do
21537 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
21542 ac_save_CPPFLAGS
="$CPPFLAGS"
21544 for element
in $INCEXPAT; do
21546 for x
in $CPPFLAGS; do
21548 acl_save_prefix
="$prefix"
21549 prefix
="$acl_final_prefix"
21550 acl_save_exec_prefix
="$exec_prefix"
21551 exec_prefix
="$acl_final_exec_prefix"
21553 exec_prefix
="$acl_save_exec_prefix"
21554 prefix
="$acl_save_prefix"
21556 if test "X$x" = "X$element"; then
21561 if test -z "$haveit"; then
21562 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
21567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
21568 $as_echo_n "checking for libexpat... " >&6; }
21569 if ${ac_cv_libexpat+:} false
; then :
21570 $as_echo_n "(cached) " >&6
21573 ac_save_LIBS
="$LIBS"
21574 LIBS
="$LIBS $LIBEXPAT"
21575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21576 /* end confdefs.h. */
21581 XML_Parser p = XML_ParserCreate (0);
21586 if ac_fn_c_try_link
"$LINENO"; then :
21591 rm -f core conftest.err conftest.
$ac_objext \
21592 conftest
$ac_exeext conftest.
$ac_ext
21593 LIBS
="$ac_save_LIBS"
21596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
21597 $as_echo "$ac_cv_libexpat" >&6; }
21598 if test "$ac_cv_libexpat" = yes; then
21601 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
21603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
21604 $as_echo_n "checking how to link with libexpat... " >&6; }
21605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
21606 $as_echo "$LIBEXPAT" >&6; }
21609 CPPFLAGS
="$ac_save_CPPFLAGS"
21619 if test "$HAVE_LIBEXPAT" != yes; then
21620 if test "$with_expat" = yes; then
21621 as_fn_error $?
"expat is missing or unusable" "$LINENO" 5
21623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
21624 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
21628 LIBS
="$LIBS $LIBEXPAT"
21629 for ac_func
in XML_StopParser
21631 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
21632 if test "x$ac_cv_func_XML_StopParser" = xyes
; then :
21633 cat >>confdefs.h
<<_ACEOF
21634 #define HAVE_XML_STOPPARSER 1
21647 # --------------------- #
21648 # Check for libpython. #
21649 # --------------------- #
21656 # Check whether --with-python was given.
21657 if test "${with_python+set}" = set; then :
21658 withval
=$with_python;
21663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
21664 $as_echo_n "checking whether to use python... " >&6; }
21665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
21666 $as_echo "$with_python" >&6; }
21668 if test "${with_python}" = no
; then
21669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
21670 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
21673 case "${with_python}" in
21675 if test -d "${with_python}"; then
21676 # Assume the python binary is ${with_python}/bin/python.
21677 python_prog
="${with_python}/bin/python"
21679 # If python does not exit ${with_python}/bin, then try in
21680 # ${with_python}. On Windows/MinGW, this is where the Python
21682 if test ! -x "${python_prog}"; then
21683 python_prog
="${with_python}/python"
21686 if test ! -x "${python_prog}"; then
21687 # Fall back to gdb 7.0/7.1 behaviour.
21688 python_prog
=missing
21689 python_prefix
=${with_python}
21691 elif test -x "${with_python}"; then
21692 # While we can't run python compiled for $host (unless host == build),
21693 # the user could write a script that provides the needed information,
21694 # so we support that.
21695 python_prog
=${with_python}
21698 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
21702 # Disallow --with-python=foo/bar.
21703 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
21706 # The user has either specified auto, yes, or the name of the python
21707 # program assumed to be in $PATH.
21709 case "${with_python}" in
21711 if test "${build}" = "${host}"; then
21712 # Look first for 'python', then 'python3'.
21713 for ac_prog
in python python3
21715 # Extract the first word of "$ac_prog", so it can be a program name with args.
21716 set dummy
$ac_prog; ac_word
=$2
21717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21718 $as_echo_n "checking for $ac_word... " >&6; }
21719 if ${ac_cv_path_python_prog_path+:} false
; then :
21720 $as_echo_n "(cached) " >&6
21722 case $python_prog_path in
21724 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
21727 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21728 for as_dir
in $PATH
21731 test -z "$as_dir" && as_dir
=.
21732 for ac_exec_ext
in '' $ac_executable_extensions; do
21733 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
21734 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
21735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21745 python_prog_path
=$ac_cv_path_python_prog_path
21746 if test -n "$python_prog_path"; then
21747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
21748 $as_echo "$python_prog_path" >&6; }
21750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21751 $as_echo "no" >&6; }
21755 test -n "$python_prog_path" && break
21757 test -n "$python_prog_path" || python_prog_path
="missing"
21759 if test "${python_prog_path}" = missing
; then
21760 python_prog
=missing
21762 python_prog
=${python_prog_path}
21765 # Not much we can do except assume the cross-compiler will find the
21767 python_prog
=missing
21771 # While we can't run python compiled for $host (unless host == build),
21772 # the user could write a script that provides the needed information,
21773 # so we support that.
21774 python_prog
="${with_python}"
21775 # Extract the first word of "${python_prog}", so it can be a program name with args.
21776 set dummy
${python_prog}; ac_word
=$2
21777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21778 $as_echo_n "checking for $ac_word... " >&6; }
21779 if ${ac_cv_path_python_prog_path+:} false
; then :
21780 $as_echo_n "(cached) " >&6
21782 case $python_prog_path in
21784 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
21787 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21788 for as_dir
in $PATH
21791 test -z "$as_dir" && as_dir
=.
21792 for ac_exec_ext
in '' $ac_executable_extensions; do
21793 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
21794 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
21795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21802 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
21806 python_prog_path
=$ac_cv_path_python_prog_path
21807 if test -n "$python_prog_path"; then
21808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
21809 $as_echo "$python_prog_path" >&6; }
21811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21812 $as_echo "no" >&6; }
21816 if test "${python_prog_path}" = missing
; then
21817 as_fn_error $?
"unable to find python program ${python_prog}" "$LINENO" 5
21823 if test "${python_prog}" != missing
; then
21824 # We have a python program to use, but it may be too old.
21825 # Don't flag an error for --with-python=auto (the default).
21826 have_python_config
=yes
21827 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
21828 if test $?
!= 0; then
21829 have_python_config
=failed
21830 if test "${with_python}" != auto
; then
21831 as_fn_error $?
"failure running python-config --includes" "$LINENO" 5
21834 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
21835 if test $?
!= 0; then
21836 have_python_config
=failed
21837 if test "${with_python}" != auto
; then
21838 as_fn_error $?
"failure running python-config --ldflags" "$LINENO" 5
21841 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
21842 if test $?
!= 0; then
21843 have_python_config
=failed
21844 if test "${with_python}" != auto
; then
21845 as_fn_error $?
"failure running python-config --exec-prefix" "$LINENO" 5
21849 # We do not have a python executable we can use to determine where
21850 # to find the Python headers and libs. We cannot guess the include
21851 # path from the python_prefix either, because that include path
21852 # depends on the Python version. So, there is nothing much we can
21853 # do except assume that the compiler will be able to find those files.
21856 have_python_config
=no
21859 # If we have python-config, only try the configuration it provides.
21860 # Otherwise fallback on the old way of trying different versions of
21864 if test "${have_python_config}" = yes; then
21867 new_CPPFLAGS
=${python_includes}
21868 new_LIBS
=${python_libs}
21869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
21870 $as_echo_n "checking for python... " >&6; }
21871 save_CPPFLAGS
=$CPPFLAGS
21873 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
21874 LIBS
="$new_LIBS $LIBS"
21875 found_usable_python
=no
21876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21877 /* end confdefs.h. */
21878 #include "Python.h"
21883 #if PY_MAJOR_VERSION != 3
21884 # error "We only support Python 3"
21892 if ac_fn_c_try_link
"$LINENO"; then :
21894 found_usable_python
=yes
21895 PYTHON_CPPFLAGS
=$new_CPPFLAGS
21896 PYTHON_LIBS
=$new_LIBS
21898 rm -f core conftest.err conftest.
$ac_objext \
21899 conftest
$ac_exeext conftest.
$ac_ext
21900 CPPFLAGS
=$save_CPPFLAGS
21902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
21903 $as_echo "${found_usable_python}" >&6; }
21907 if test "${have_libpython}" = no
; then
21908 case "${with_python}" in
21910 as_fn_error $?
"python is missing or unusable" "$LINENO" 5
21913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
21914 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
21917 as_fn_error $?
"no usable python found at ${with_python}" "$LINENO" 5
21921 if test -n "${python_prefix}"; then
21923 cat >>confdefs.h
<<_ACEOF
21924 #define WITH_PYTHON_PATH "${python_prefix}"
21928 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
21929 if test "x$prefix" = xNONE
; then
21930 test_prefix
=/usr
/local
21932 test_prefix
=$prefix
21935 test_prefix
=$exec_prefix
21938 case ${python_prefix} in
21939 "${test_prefix}"|
"${test_prefix}/"*|\
21940 '${exec_prefix}'|
'${exec_prefix}/'*)
21945 cat >>confdefs.h
<<_ACEOF
21946 #define PYTHON_PATH_RELOCATABLE $value
21955 # Check whether --with-python-libdir was given.
21956 if test "${with_python_libdir+set}" = set; then :
21957 withval
=$with_python_libdir;
21960 # If no python libdir is specified then select one based on
21961 # python's prefix path.
21962 if test -n "${python_prefix}"; then
21963 with_python_libdir
=${python_prefix}/lib
21969 if test "${have_libpython}" != no
; then
21971 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
21973 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
21974 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
21975 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
21976 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
21977 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
21979 if test -n "${with_python_libdir}"; then
21981 cat >>confdefs.h
<<_ACEOF
21982 #define WITH_PYTHON_LIBDIR "${with_python_libdir}"
21986 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
21987 if test "x$prefix" = xNONE
; then
21988 test_prefix
=/usr
/local
21990 test_prefix
=$prefix
21993 test_prefix
=$exec_prefix
21996 case ${with_python_libdir} in
21997 "${test_prefix}"|
"${test_prefix}/"*|\
21998 '${exec_prefix}'|
'${exec_prefix}/'*)
22003 cat >>confdefs.h
<<_ACEOF
22004 #define PYTHON_LIBDIR_RELOCATABLE $value
22010 # Flags needed to compile Python code (taken from python-config --cflags).
22011 # We cannot call python-config directly because it will output whatever was
22012 # used when compiling the Python interpreter itself, including flags which
22013 # would make the python-related objects be compiled differently from the
22014 # rest of GDB (e.g., -O2 and -fPIC).
22015 if test "${GCC}" = yes; then
22016 tentative_python_cflags
="-fno-strict-aliasing -fwrapv"
22017 # Python headers recommend -DNDEBUG, but it's unclear if that just
22018 # refers to building Python itself. In release mode, though, it
22019 # doesn't hurt for the Python code in gdb to follow.
22020 $development || tentative_python_cflags
="$tentative_python_cflags -DNDEBUG"
22023 if test "x${tentative_python_cflags}" != x
; then
22024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
22025 $as_echo_n "checking compiler flags for python code... " >&6; }
22026 for flag
in ${tentative_python_cflags}; do
22027 # Check that the compiler accepts it
22028 saved_CFLAGS
="$CFLAGS"
22029 CFLAGS
="$CFLAGS $flag"
22030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22031 /* end confdefs.h. */
22041 if ac_fn_c_try_compile
"$LINENO"; then :
22042 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
22044 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22045 CFLAGS
="$saved_CFLAGS"
22047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
22048 $as_echo "${PYTHON_CFLAGS}" >&6; }
22051 # On x64 Windows, Python's include headers, and pyconfig.h in
22052 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
22053 # version of Windows. Unfortunately, MS_WIN64 is only defined if
22054 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
22055 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
22056 # The issue was reported to the Python community, but still isn't
22057 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
22059 case "$gdb_host" in
22061 if test "${GCC}" = yes; then
22062 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
22067 # Even if Python support is not compiled in, we need to have this file
22068 # included so that the "python" command, et.al., still exists.
22069 CONFIG_OBS
="$CONFIG_OBS python/python.o"
22070 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
22073 # Work around Python http://bugs.python.org/issue10112. See also
22074 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
22075 # no effect. Note that the only test after this that uses Python is
22076 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
22077 # run without -export-dynamic too.
22078 PYTHON_LIBS
=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
22083 if test "${have_libpython}" != no
; then
22085 HAVE_PYTHON_FALSE
='#'
22087 HAVE_PYTHON_TRUE
='#'
22092 # -------------------- #
22093 # Check for libguile. #
22094 # -------------------- #
22101 # Check whether --with-guile was given.
22102 if test "${with_guile+set}" = set; then :
22103 withval
=$with_guile;
22108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
22109 $as_echo_n "checking whether to use guile... " >&6; }
22110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
22111 $as_echo "$with_guile" >&6; }
22113 # Extract the first word of "pkg-config", so it can be a program name with args.
22114 set dummy pkg-config
; ac_word
=$2
22115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22116 $as_echo_n "checking for $ac_word... " >&6; }
22117 if ${ac_cv_path_pkg_config_prog_path+:} false
; then :
22118 $as_echo_n "(cached) " >&6
22120 case $pkg_config_prog_path in
22122 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
22125 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22126 for as_dir
in $PATH
22129 test -z "$as_dir" && as_dir
=.
22130 for ac_exec_ext
in '' $ac_executable_extensions; do
22131 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22132 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
22133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22140 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
22144 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
22145 if test -n "$pkg_config_prog_path"; then
22146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
22147 $as_echo "$pkg_config_prog_path" >&6; }
22149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22150 $as_echo "no" >&6; }
22155 try_guile_versions
="guile-3.0 guile-2.2 guile-2.0"
22157 case "${with_guile}" in
22159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
22160 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
22163 if test "${pkg_config_prog_path}" = "missing"; then
22164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
22165 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
22168 pkg_config
=${pkg_config_prog_path}
22169 guile_version_list
=${try_guile_versions}
22172 found_usable_guile
=checking
22173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
22174 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
22175 for guile_version
in ${guile_version_list}; do
22176 ${pkg_config} --exists ${guile_version} 2>/dev
/null
22177 if test $?
!= 0; then
22180 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
22181 if test $?
!= 0; then
22182 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
22184 new_LIBS
=`${pkg_config} --libs ${guile_version}`
22185 if test $?
!= 0; then
22186 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
22188 found_usable_guile
=${guile_version}
22191 if test "${found_usable_guile}" = "checking"; then
22192 if test "${flag_errors}" = "yes"; then
22193 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
22195 found_usable_guile
=no
22198 if test "${found_usable_guile}" != no
; then
22199 save_CPPFLAGS
=$CPPFLAGS
22201 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
22202 LIBS
="$LIBS $new_LIBS"
22203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22204 /* end confdefs.h. */
22205 #include "libguile.h"
22214 if ac_fn_c_try_link
"$LINENO"; then :
22216 GUILE_CPPFLAGS
=$new_CPPFLAGS
22217 GUILE_LIBS
=$new_LIBS
22219 found_usable_guile
=no
22221 rm -f core conftest.err conftest.
$ac_objext \
22222 conftest
$ac_exeext conftest.
$ac_ext
22223 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
22224 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
22226 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
22231 CPPFLAGS
=$save_CPPFLAGS
22233 if test "${found_usable_guile}" = no
; then
22234 if test "${flag_errors}" = yes; then
22235 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22237 as_fn_error $?
"linking guile version ${guile_version} test program failed
22238 See \`config.log' for more details" "$LINENO" 5; }
22242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
22243 $as_echo "${found_usable_guile}" >&6; }
22248 if test "${pkg_config_prog_path}" = "missing"; then
22249 as_fn_error $?
"pkg-config not found" "$LINENO" 5
22252 pkg_config
=${pkg_config_prog_path}
22253 guile_version_list
=${try_guile_versions}
22256 found_usable_guile
=checking
22257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
22258 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
22259 for guile_version
in ${guile_version_list}; do
22260 ${pkg_config} --exists ${guile_version} 2>/dev
/null
22261 if test $?
!= 0; then
22264 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
22265 if test $?
!= 0; then
22266 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
22268 new_LIBS
=`${pkg_config} --libs ${guile_version}`
22269 if test $?
!= 0; then
22270 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
22272 found_usable_guile
=${guile_version}
22275 if test "${found_usable_guile}" = "checking"; then
22276 if test "${flag_errors}" = "yes"; then
22277 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
22279 found_usable_guile
=no
22282 if test "${found_usable_guile}" != no
; then
22283 save_CPPFLAGS
=$CPPFLAGS
22285 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
22286 LIBS
="$LIBS $new_LIBS"
22287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22288 /* end confdefs.h. */
22289 #include "libguile.h"
22298 if ac_fn_c_try_link
"$LINENO"; then :
22300 GUILE_CPPFLAGS
=$new_CPPFLAGS
22301 GUILE_LIBS
=$new_LIBS
22303 found_usable_guile
=no
22305 rm -f core conftest.err conftest.
$ac_objext \
22306 conftest
$ac_exeext conftest.
$ac_ext
22307 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
22308 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
22310 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
22315 CPPFLAGS
=$save_CPPFLAGS
22317 if test "${found_usable_guile}" = no
; then
22318 if test "${flag_errors}" = yes; then
22319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22321 as_fn_error $?
"linking guile version ${guile_version} test program failed
22322 See \`config.log' for more details" "$LINENO" 5; }
22326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
22327 $as_echo "${found_usable_guile}" >&6; }
22331 if test -x "${with_guile}"; then
22333 pkg_config
=${with_guile}
22334 guile_version_list
=${try_guile_versions}
22337 found_usable_guile
=checking
22338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
22339 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
22340 for guile_version
in ${guile_version_list}; do
22341 ${pkg_config} --exists ${guile_version} 2>/dev
/null
22342 if test $?
!= 0; then
22345 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
22346 if test $?
!= 0; then
22347 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
22349 new_LIBS
=`${pkg_config} --libs ${guile_version}`
22350 if test $?
!= 0; then
22351 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
22353 found_usable_guile
=${guile_version}
22356 if test "${found_usable_guile}" = "checking"; then
22357 if test "${flag_errors}" = "yes"; then
22358 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
22360 found_usable_guile
=no
22363 if test "${found_usable_guile}" != no
; then
22364 save_CPPFLAGS
=$CPPFLAGS
22366 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
22367 LIBS
="$LIBS $new_LIBS"
22368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22369 /* end confdefs.h. */
22370 #include "libguile.h"
22379 if ac_fn_c_try_link
"$LINENO"; then :
22381 GUILE_CPPFLAGS
=$new_CPPFLAGS
22382 GUILE_LIBS
=$new_LIBS
22384 found_usable_guile
=no
22386 rm -f core conftest.err conftest.
$ac_objext \
22387 conftest
$ac_exeext conftest.
$ac_ext
22388 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
22389 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
22391 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
22396 CPPFLAGS
=$save_CPPFLAGS
22398 if test "${found_usable_guile}" = no
; then
22399 if test "${flag_errors}" = yes; then
22400 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22402 as_fn_error $?
"linking guile version ${guile_version} test program failed
22403 See \`config.log' for more details" "$LINENO" 5; }
22407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
22408 $as_echo "${found_usable_guile}" >&6; }
22411 as_fn_error $?
"Guile config program not executable: ${with_guile}" "$LINENO" 5
22415 # Disallow --with=guile="" and --with-guile=foo/bar.
22416 as_fn_error $?
"invalid value for --with-guile" "$LINENO" 5
22419 # A space separate list of guile versions to try, in order.
22420 if test "${pkg_config_prog_path}" = "missing"; then
22421 as_fn_error $?
"pkg-config not found" "$LINENO" 5
22424 pkg_config
=${pkg_config_prog_path}
22425 guile_version_list
=${with_guile}
22428 found_usable_guile
=checking
22429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
22430 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
22431 for guile_version
in ${guile_version_list}; do
22432 ${pkg_config} --exists ${guile_version} 2>/dev
/null
22433 if test $?
!= 0; then
22436 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
22437 if test $?
!= 0; then
22438 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
22440 new_LIBS
=`${pkg_config} --libs ${guile_version}`
22441 if test $?
!= 0; then
22442 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
22444 found_usable_guile
=${guile_version}
22447 if test "${found_usable_guile}" = "checking"; then
22448 if test "${flag_errors}" = "yes"; then
22449 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
22451 found_usable_guile
=no
22454 if test "${found_usable_guile}" != no
; then
22455 save_CPPFLAGS
=$CPPFLAGS
22457 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
22458 LIBS
="$LIBS $new_LIBS"
22459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22460 /* end confdefs.h. */
22461 #include "libguile.h"
22470 if ac_fn_c_try_link
"$LINENO"; then :
22472 GUILE_CPPFLAGS
=$new_CPPFLAGS
22473 GUILE_LIBS
=$new_LIBS
22475 found_usable_guile
=no
22477 rm -f core conftest.err conftest.
$ac_objext \
22478 conftest
$ac_exeext conftest.
$ac_ext
22479 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
22480 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
22482 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
22487 CPPFLAGS
=$save_CPPFLAGS
22489 if test "${found_usable_guile}" = no
; then
22490 if test "${flag_errors}" = yes; then
22491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22493 as_fn_error $?
"linking guile version ${guile_version} test program failed
22494 See \`config.log' for more details" "$LINENO" 5; }
22498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
22499 $as_echo "${found_usable_guile}" >&6; }
22504 if test "${have_libguile}" != no
; then
22505 case "${with_guile}" in
22508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
22509 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
22510 if ${ac_cv_guild_program_name+:} false
; then :
22511 $as_echo_n "(cached) " >&6
22513 ac_cv_guild_program_name
="`"${with_guile}" --variable guild "${guile_version}"`"
22515 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
22516 # the 'guild' and 'bindir' variables. In that case, try to guess
22517 # what the program name is, at the risk of getting it wrong if
22518 # Guile was configured with '--program-suffix' or similar.
22519 if test "x$ac_cv_guild_program_name" = "x"; then
22520 guile_exec_prefix
="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
22521 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
22525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
22526 $as_echo "$ac_cv_guild_program_name" >&6; }
22528 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
22529 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
22532 GUILD
="$ac_cv_guild_program_name"
22538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
22539 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
22540 if ${ac_cv_guild_program_name+:} false
; then :
22541 $as_echo_n "(cached) " >&6
22543 ac_cv_guild_program_name
="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
22545 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
22546 # the 'guild' and 'bindir' variables. In that case, try to guess
22547 # what the program name is, at the risk of getting it wrong if
22548 # Guile was configured with '--program-suffix' or similar.
22549 if test "x$ac_cv_guild_program_name" = "x"; then
22550 guile_exec_prefix
="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
22551 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
22555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
22556 $as_echo "$ac_cv_guild_program_name" >&6; }
22558 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
22559 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
22562 GUILD
="$ac_cv_guild_program_name"
22569 if test "$cross_compiling" = no
; then
22572 GUILD_TARGET_FLAG
="--target=$host"
22578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
22579 $as_echo_n "checking whether guild supports this host... " >&6; }
22580 if ${ac_cv_guild_ok+:} false
; then :
22581 $as_echo_n "(cached) " >&6
22583 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
22584 if "$ac_cv_guild_program_name" compile
$GUILD_TARGET_FLAG -o conftest.go
"$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
22590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
22591 $as_echo "$ac_cv_guild_ok" >&6; }
22593 if test "$ac_cv_guild_ok" = no
; then
22595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
22596 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
22600 if test "${have_libguile}" != no
; then
22602 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
22604 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
22605 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
22606 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
22607 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
22608 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
22611 save_CPPFLAGS
="$CPPFLAGS"
22613 CPPFLAGS
="$GUILE_CPPFLAGS"
22614 for ac_func
in scm_new_smob
22616 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
22617 if test "x$ac_cv_func_scm_new_smob" = xyes
; then :
22618 cat >>confdefs.h
<<_ACEOF
22619 #define HAVE_SCM_NEW_SMOB 1
22626 CPPFLAGS
="$save_CPPFLAGS"
22628 # Even if Guile support is not compiled in, we need to have these files
22630 CONFIG_OBS
="$CONFIG_OBS guile/guile.o"
22631 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
22635 if test "${have_libguile}" != no
; then
22637 HAVE_GUILE_FALSE
='#'
22639 HAVE_GUILE_TRUE
='#'
22644 # ---------------------------- #
22645 # Check for source highlight. #
22646 # ---------------------------- #
22651 # Check whether --enable-source-highlight was given.
22652 if test "${enable_source_highlight+set}" = set; then :
22653 enableval
=$enable_source_highlight;
22658 as_fn_error $?
"bad value $enableval for --enable-source-highlight" "$LINENO" 5
22663 enable_source_highlight
=auto
22667 if test "${enable_source_highlight}" != "no"; then
22668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the source-highlight library" >&5
22669 $as_echo_n "checking for the source-highlight library... " >&6; }
22670 if test "${pkg_config_prog_path}" = "missing"; then
22671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - pkg-config not found" >&5
22672 $as_echo "no - pkg-config not found" >&6; }
22673 if test "${enable_source_highlight}" = "yes"; then
22674 as_fn_error $?
"pkg-config was not found in your system" "$LINENO" 5
22677 if ${pkg_config_prog_path} --exists source-highlight
; then
22680 as_fn_error $?
"source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5
22684 srchigh_pkg_cflags
=`${pkg_config_prog_path} --cflags source-highlight`
22685 srchigh_pkg_libs
=`${pkg_config_prog_path} --libs source-highlight`
22687 # Now that we have found a source-highlight library, check if we can use
22688 # it. In particular, we're trying to detect the situation that the
22689 # library is using the new libstdc++ library abi ( see
22690 # https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html )
22691 # while the compiler being used to compile gdb is using the old abi.
22692 # Such a situation will result in an undefined reference to
22693 # srchilite::SourceHighlight::SourceHighlight(std::string const&).
22694 # This situation can occur for instance when using a source highlight
22695 # library compiled with g++ 7.5.0 while building gdb with g++ 4.8.5.
22697 ac_cpp
='$CXXCPP $CPPFLAGS'
22698 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22699 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22700 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
22702 save_CXXFLAGS
="$CXXFLAGS"
22704 CXXFLAGS
="$CXXFLAGS $srchigh_pkg_cflags"
22705 LIBS
="$LIBS $srchigh_pkg_libs"
22706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22707 /* end confdefs.h. */
22708 #include <srchilite/sourcehighlight.h>
22712 std::string outlang = "esc.outlang";
22713 new srchilite::SourceHighlight (outlang);
22719 if ac_fn_cxx_try_link
"$LINENO"; then :
22720 have_usable_source_highlight
=yes
22722 have_usable_source_highlight
=no
22725 rm -f core conftest.err conftest.
$ac_objext \
22726 conftest
$ac_exeext conftest.
$ac_ext
22727 CXXFLAGS
="$save_CXXFLAGS"
22730 ac_cpp
='$CPP $CPPFLAGS'
22731 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22732 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22733 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
22736 if test "${have_usable_source_highlight}" = "yes"; then
22738 $as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h
22740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22741 $as_echo "yes" >&6; }
22742 SRCHIGH_CFLAGS
="$srchigh_pkg_cflags"
22743 SRCHIGH_LIBS
="$srchigh_pkg_libs"
22745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22746 $as_echo "no" >&6; }
22747 if test "${enable_source_highlight}" = "yes"; then
22748 as_fn_error $?
"source-highlight in your system could not be used" "$LINENO" 5
22752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22753 $as_echo "no" >&6; }
22754 if test "${enable_source_highlight}" = "yes"; then
22755 as_fn_error $?
"source-highlight was not found in your system" "$LINENO" 5
22763 # ------------------------- #
22764 # Checks for header files. #
22765 # ------------------------- #
22767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
22768 $as_echo_n "checking for ANSI C header files... " >&6; }
22769 if ${ac_cv_header_stdc+:} false
; then :
22770 $as_echo_n "(cached) " >&6
22772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22773 /* end confdefs.h. */
22774 #include <stdlib.h>
22775 #include <stdarg.h>
22776 #include <string.h>
22787 if ac_fn_c_try_compile
"$LINENO"; then :
22788 ac_cv_header_stdc
=yes
22790 ac_cv_header_stdc
=no
22792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22794 if test $ac_cv_header_stdc = yes; then
22795 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22797 /* end confdefs.h. */
22798 #include <string.h>
22801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22802 $EGREP "memchr" >/dev
/null
2>&1; then :
22805 ac_cv_header_stdc
=no
22811 if test $ac_cv_header_stdc = yes; then
22812 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22814 /* end confdefs.h. */
22815 #include <stdlib.h>
22818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22819 $EGREP "free" >/dev
/null
2>&1; then :
22822 ac_cv_header_stdc
=no
22828 if test $ac_cv_header_stdc = yes; then
22829 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22830 if test "$cross_compiling" = yes; then :
22833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22834 /* end confdefs.h. */
22836 #include <stdlib.h>
22837 #if ((' ' & 0x0FF) == 0x020)
22838 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22839 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22841 # define ISLOWER(c) \
22842 (('a' <= (c) && (c) <= 'i') \
22843 || ('j' <= (c) && (c) <= 'r') \
22844 || ('s' <= (c) && (c) <= 'z'))
22845 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22848 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22853 for (i = 0; i < 256; i++)
22854 if (XOR (islower (i), ISLOWER (i))
22855 || toupper (i) != TOUPPER (i))
22860 if ac_fn_c_try_run
"$LINENO"; then :
22863 ac_cv_header_stdc
=no
22865 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22866 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
22872 $as_echo "$ac_cv_header_stdc" >&6; }
22873 if test $ac_cv_header_stdc = yes; then
22875 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
22879 # elf_hp.h is for HP/UX 64-bit shared library support.
22880 for ac_header
in nlist.h machine
/reg.h \
22882 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
22883 sys
/procctl.h sys
/resource.h sys
/ptrace.h ptrace.h \
22884 sys
/reg.h sys
/debugreg.h \
22887 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22888 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22889 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
22890 cat >>confdefs.h
<<_ACEOF
22891 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22898 for ac_header
in sys
/user.h
22900 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
22901 # include <sys/param.h>
22905 if test "x$ac_cv_header_sys_user_h" = xyes
; then :
22906 cat >>confdefs.h
<<_ACEOF
22907 #define HAVE_SYS_USER_H 1
22915 for ac_header
in curses.h cursesX.h ncurses.h ncursesw
/ncurses.h ncurses
/ncurses.h ncurses
/term.h
22917 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22918 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22919 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
22920 cat >>confdefs.h
<<_ACEOF
22921 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22928 for ac_header
in term.h
22930 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
22931 # include <curses.h>
22935 if test "x$ac_cv_header_term_h" = xyes
; then :
22936 cat >>confdefs.h
<<_ACEOF
22937 #define HAVE_TERM_H 1
22945 for ac_header
in sys
/socket.h
22947 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
22948 if test "x$ac_cv_header_sys_socket_h" = xyes
; then :
22949 cat >>confdefs.h
<<_ACEOF
22950 #define HAVE_SYS_SOCKET_H 1
22957 for ac_header
in ws2tcpip.h
22959 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
22960 if test "x$ac_cv_header_ws2tcpip_h" = xyes
; then :
22961 cat >>confdefs.h
<<_ACEOF
22962 #define HAVE_WS2TCPIP_H 1
22969 for ac_header
in execinfo.h
22971 ac_fn_c_check_header_mongrel
"$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
22972 if test "x$ac_cv_header_execinfo_h" = xyes
; then :
22973 cat >>confdefs.h
<<_ACEOF
22974 #define HAVE_EXECINFO_H 1
22982 # ------------------------- #
22983 # Checks for declarations. #
22984 # ------------------------- #
22987 # Check for presence and size of long long.
22988 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
22989 if test "x$ac_cv_type_long_long" = xyes
; then :
22991 cat >>confdefs.h
<<_ACEOF
22992 #define HAVE_LONG_LONG 1
22995 # The cast to long int works around a bug in the HP C Compiler
22996 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22997 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22998 # This bug is HP SR number 8606223364.
22999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
23000 $as_echo_n "checking size of long long... " >&6; }
23001 if ${ac_cv_sizeof_long_long+:} false
; then :
23002 $as_echo_n "(cached) " >&6
23004 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
23007 if test "$ac_cv_type_long_long" = yes; then
23008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23010 as_fn_error
77 "cannot compute sizeof (long long)
23011 See \`config.log' for more details" "$LINENO" 5; }
23013 ac_cv_sizeof_long_long
=0
23018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
23019 $as_echo "$ac_cv_sizeof_long_long" >&6; }
23023 cat >>confdefs.h
<<_ACEOF
23024 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23031 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
23032 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
23033 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
23039 cat >>confdefs.h
<<_ACEOF
23040 #define HAVE_DECL_BASENAME $ac_have_decl
23042 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
23043 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
23049 cat >>confdefs.h
<<_ACEOF
23050 #define HAVE_DECL_FFS $ac_have_decl
23052 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
23053 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
23059 cat >>confdefs.h
<<_ACEOF
23060 #define HAVE_DECL_ASPRINTF $ac_have_decl
23062 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
23063 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
23069 cat >>confdefs.h
<<_ACEOF
23070 #define HAVE_DECL_VASPRINTF $ac_have_decl
23072 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
23073 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
23079 cat >>confdefs.h
<<_ACEOF
23080 #define HAVE_DECL_SNPRINTF $ac_have_decl
23082 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
23083 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
23089 cat >>confdefs.h
<<_ACEOF
23090 #define HAVE_DECL_VSNPRINTF $ac_have_decl
23093 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
23094 if test "x$ac_cv_have_decl_strtol" = xyes
; then :
23100 cat >>confdefs.h
<<_ACEOF
23101 #define HAVE_DECL_STRTOL $ac_have_decl
23103 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
23104 if test "x$ac_cv_have_decl_strtoul" = xyes
; then :
23110 cat >>confdefs.h
<<_ACEOF
23111 #define HAVE_DECL_STRTOUL $ac_have_decl
23113 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
23114 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
23120 cat >>confdefs.h
<<_ACEOF
23121 #define HAVE_DECL_STRTOLL $ac_have_decl
23123 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
23124 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
23130 cat >>confdefs.h
<<_ACEOF
23131 #define HAVE_DECL_STRTOULL $ac_have_decl
23134 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
23135 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
23141 cat >>confdefs.h
<<_ACEOF
23142 #define HAVE_DECL_STRVERSCMP $ac_have_decl
23147 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
23148 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
23154 cat >>confdefs.h
<<_ACEOF
23155 #define HAVE_DECL_SNPRINTF $ac_have_decl
23159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
23160 $as_echo_n "checking for LC_MESSAGES... " >&6; }
23161 if ${am_cv_val_LC_MESSAGES+:} false
; then :
23162 $as_echo_n "(cached) " >&6
23164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23165 /* end confdefs.h. */
23166 #include <locale.h>
23175 if ac_fn_c_try_link
"$LINENO"; then :
23176 am_cv_val_LC_MESSAGES
=yes
23178 am_cv_val_LC_MESSAGES
=no
23180 rm -f core conftest.err conftest.
$ac_objext \
23181 conftest
$ac_exeext conftest.
$ac_ext
23183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
23184 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
23185 if test $am_cv_val_LC_MESSAGES = yes; then
23187 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
23192 # ------------------ #
23193 # Checks for types. #
23194 # ------------------ #
23196 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
23197 #if HAVE_SYS_SOCKET_H
23198 # include <sys/socket.h>
23199 #elif HAVE_WS2TCPIP_H
23200 # include <ws2tcpip.h>
23204 if test "x$ac_cv_type_socklen_t" = xyes
; then :
23206 cat >>confdefs.h
<<_ACEOF
23207 #define HAVE_SOCKLEN_T 1
23214 # ------------------------------------- #
23215 # Checks for compiler characteristics. #
23216 # ------------------------------------- #
23218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
23219 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
23220 if ${ac_cv_c_const+:} false
; then :
23221 $as_echo_n "(cached) " >&6
23223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23224 /* end confdefs.h. */
23230 #ifndef __cplusplus
23231 /* Ultrix mips cc rejects this sort of thing. */
23232 typedef int charset[2];
23233 const charset cs = { 0, 0 };
23234 /* SunOS 4.1.1 cc rejects this. */
23235 char const *const *pcpcc;
23237 /* NEC SVR4.0.2 mips cc rejects this. */
23238 struct point {int x, y;};
23239 static struct point const zero = {0,0};
23240 /* AIX XL C 1.02.0.0 rejects this.
23241 It does not let you subtract one const X* pointer from another in
23242 an arm of an if-expression whose if-part is not a constant
23244 const char *g = "string";
23245 pcpcc = &g + (g ? g-g : 0);
23246 /* HPUX 7.0 cc rejects these. */
23248 ppc = (char**) pcpcc;
23249 pcpcc = (char const *const *) ppc;
23250 { /* SCO 3.2v4 cc rejects this sort of thing. */
23253 char const *s = 0 ? (char *) 0 : (char const *) 0;
23258 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23259 int x[] = {25, 17};
23260 const int *foo = &x[0];
23263 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23264 typedef const int *iptr;
23268 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
23269 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23270 struct s { int j; const int *ap[3]; } bx;
23271 struct s *b = &bx; b->j = 5;
23273 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23274 const int foo = 10;
23275 if (!foo) return 0;
23277 return !cs[0] && !zero.x;
23284 if ac_fn_c_try_compile
"$LINENO"; then :
23289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
23292 $as_echo "$ac_cv_c_const" >&6; }
23293 if test $ac_cv_c_const = no
; then
23295 $as_echo "#define const /**/" >>confdefs.h
23299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
23300 $as_echo_n "checking for inline... " >&6; }
23301 if ${ac_cv_c_inline+:} false
; then :
23302 $as_echo_n "(cached) " >&6
23305 for ac_kw
in inline __inline__ __inline
; do
23306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23307 /* end confdefs.h. */
23308 #ifndef __cplusplus
23310 static $ac_kw foo_t static_foo () {return 0; }
23311 $ac_kw foo_t foo () {return 0; }
23315 if ac_fn_c_try_compile
"$LINENO"; then :
23316 ac_cv_c_inline
=$ac_kw
23318 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23319 test "$ac_cv_c_inline" != no
&& break
23323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
23324 $as_echo "$ac_cv_c_inline" >&6; }
23326 case $ac_cv_c_inline in
23329 case $ac_cv_c_inline in
23331 *) ac_val
=$ac_cv_c_inline;;
23333 cat >>confdefs.h
<<_ACEOF
23334 #ifndef __cplusplus
23335 #define inline $ac_val
23341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23342 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23343 if ${ac_cv_c_bigendian+:} false
; then :
23344 $as_echo_n "(cached) " >&6
23346 ac_cv_c_bigendian
=unknown
23347 # See if we're dealing with a universal compiler.
23348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23349 /* end confdefs.h. */
23350 #ifndef __APPLE_CC__
23351 not a universal capable compiler
23356 if ac_fn_c_try_compile
"$LINENO"; then :
23358 # Check for potential -arch flags. It is not universal unless
23359 # there are at least two -arch flags with different values.
23362 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23363 if test -n "$ac_prev"; then
23365 i?
86 | x86_64 | ppc | ppc64
)
23366 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
23369 ac_cv_c_bigendian
=universal
23375 elif test "x$ac_word" = "x-arch"; then
23380 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23381 if test $ac_cv_c_bigendian = unknown
; then
23382 # See if sys/param.h defines the BYTE_ORDER macro.
23383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23384 /* end confdefs.h. */
23385 #include <sys/types.h>
23386 #include <sys/param.h>
23391 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23392 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23394 bogus endian macros
23401 if ac_fn_c_try_compile
"$LINENO"; then :
23402 # It does; now see whether it defined to BIG_ENDIAN or not.
23403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23404 /* end confdefs.h. */
23405 #include <sys/types.h>
23406 #include <sys/param.h>
23411 #if BYTE_ORDER != BIG_ENDIAN
23419 if ac_fn_c_try_compile
"$LINENO"; then :
23420 ac_cv_c_bigendian
=yes
23422 ac_cv_c_bigendian
=no
23424 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23426 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23428 if test $ac_cv_c_bigendian = unknown
; then
23429 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23431 /* end confdefs.h. */
23432 #include <limits.h>
23437 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23438 bogus endian macros
23445 if ac_fn_c_try_compile
"$LINENO"; then :
23446 # It does; now see whether it defined to _BIG_ENDIAN or not.
23447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23448 /* end confdefs.h. */
23449 #include <limits.h>
23454 #ifndef _BIG_ENDIAN
23462 if ac_fn_c_try_compile
"$LINENO"; then :
23463 ac_cv_c_bigendian
=yes
23465 ac_cv_c_bigendian
=no
23467 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23469 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23471 if test $ac_cv_c_bigendian = unknown
; then
23472 # Compile a test program.
23473 if test "$cross_compiling" = yes; then :
23474 # Try to guess by grepping values from an object file.
23475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23476 /* end confdefs.h. */
23477 short int ascii_mm[] =
23478 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23479 short int ascii_ii[] =
23480 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23481 int use_ascii (int i) {
23482 return ascii_mm[i] + ascii_ii[i];
23484 short int ebcdic_ii[] =
23485 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23486 short int ebcdic_mm[] =
23487 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23488 int use_ebcdic (int i) {
23489 return ebcdic_mm[i] + ebcdic_ii[i];
23496 return use_ascii (foo) == use_ebcdic (foo);
23501 if ac_fn_c_try_compile
"$LINENO"; then :
23502 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
23503 ac_cv_c_bigendian
=yes
23505 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
23506 if test "$ac_cv_c_bigendian" = unknown
; then
23507 ac_cv_c_bigendian
=no
23509 # finding both strings is unlikely to happen, but who knows?
23510 ac_cv_c_bigendian
=unknown
23514 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23517 /* end confdefs.h. */
23518 $ac_includes_default
23523 /* Are we little or big endian? From Harbison&Steele. */
23527 char c[sizeof (long int)];
23530 return u.c[sizeof (long int) - 1] == 1;
23536 if ac_fn_c_try_run
"$LINENO"; then :
23537 ac_cv_c_bigendian
=no
23539 ac_cv_c_bigendian
=yes
23541 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23542 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23548 $as_echo "$ac_cv_c_bigendian" >&6; }
23549 case $ac_cv_c_bigendian in #(
23551 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23557 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23561 as_fn_error $?
"unknown endianness
23562 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23566 # ------------------------------ #
23567 # Checks for library functions. #
23568 # ------------------------------ #
23570 for ac_func
in getuid getgid \
23571 pread pread64 pwrite resize_term \
23574 ttrace wresize setlocale iconvlist libiconvlist btowc \
23575 setrlimit getrlimit posix_madvise waitpid \
23578 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23579 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
23580 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
23581 cat >>confdefs.h
<<_ACEOF
23582 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
23590 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
23591 if ${am_cv_langinfo_codeset+:} false
; then :
23592 $as_echo_n "(cached) " >&6
23594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23595 /* end confdefs.h. */
23596 #include <langinfo.h>
23600 char* cs = nl_langinfo(CODESET);
23605 if ac_fn_c_try_link
"$LINENO"; then :
23606 am_cv_langinfo_codeset
=yes
23608 am_cv_langinfo_codeset
=no
23610 rm -f core conftest.err conftest.
$ac_objext \
23611 conftest
$ac_exeext conftest.
$ac_ext
23614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
23615 $as_echo "$am_cv_langinfo_codeset" >&6; }
23616 if test $am_cv_langinfo_codeset = yes; then
23618 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
23622 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23623 if test "x$ac_cv_type_size_t" = xyes
; then :
23627 cat >>confdefs.h
<<_ACEOF
23628 #define size_t unsigned int
23636 for ac_header
in $ac_header_list
23638 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23639 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
23641 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
23642 cat >>confdefs.h
<<_ACEOF
23643 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23656 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23657 if test "x$ac_cv_type_pid_t" = xyes
; then :
23661 cat >>confdefs.h
<<_ACEOF
23668 # Set the 'development' global.
23669 .
$srcdir/..
/bfd
/development.sh
23671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
23672 $as_echo_n "checking for ANSI C header files... " >&6; }
23673 if ${ac_cv_header_stdc+:} false
; then :
23674 $as_echo_n "(cached) " >&6
23676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23677 /* end confdefs.h. */
23678 #include <stdlib.h>
23679 #include <stdarg.h>
23680 #include <string.h>
23691 if ac_fn_c_try_compile
"$LINENO"; then :
23692 ac_cv_header_stdc
=yes
23694 ac_cv_header_stdc
=no
23696 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23698 if test $ac_cv_header_stdc = yes; then
23699 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23701 /* end confdefs.h. */
23702 #include <string.h>
23705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23706 $EGREP "memchr" >/dev
/null
2>&1; then :
23709 ac_cv_header_stdc
=no
23715 if test $ac_cv_header_stdc = yes; then
23716 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23718 /* end confdefs.h. */
23719 #include <stdlib.h>
23722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23723 $EGREP "free" >/dev
/null
2>&1; then :
23726 ac_cv_header_stdc
=no
23732 if test $ac_cv_header_stdc = yes; then
23733 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23734 if test "$cross_compiling" = yes; then :
23737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23738 /* end confdefs.h. */
23740 #include <stdlib.h>
23741 #if ((' ' & 0x0FF) == 0x020)
23742 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23743 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23745 # define ISLOWER(c) \
23746 (('a' <= (c) && (c) <= 'i') \
23747 || ('j' <= (c) && (c) <= 'r') \
23748 || ('s' <= (c) && (c) <= 'z'))
23749 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23752 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23757 for (i = 0; i < 256; i++)
23758 if (XOR (islower (i), ISLOWER (i))
23759 || toupper (i) != TOUPPER (i))
23764 if ac_fn_c_try_run
"$LINENO"; then :
23767 ac_cv_header_stdc
=no
23769 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23770 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
23776 $as_echo "$ac_cv_header_stdc" >&6; }
23777 if test $ac_cv_header_stdc = yes; then
23779 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
23783 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
23784 # for constant arguments. Useless!
23785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
23786 $as_echo_n "checking for working alloca.h... " >&6; }
23787 if ${ac_cv_working_alloca_h+:} false
; then :
23788 $as_echo_n "(cached) " >&6
23790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23791 /* end confdefs.h. */
23792 #include <alloca.h>
23796 char *p = (char *) alloca (2 * sizeof (int));
23802 if ac_fn_c_try_link
"$LINENO"; then :
23803 ac_cv_working_alloca_h
=yes
23805 ac_cv_working_alloca_h
=no
23807 rm -f core conftest.err conftest.
$ac_objext \
23808 conftest
$ac_exeext conftest.
$ac_ext
23810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
23811 $as_echo "$ac_cv_working_alloca_h" >&6; }
23812 if test $ac_cv_working_alloca_h = yes; then
23814 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
23818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
23819 $as_echo_n "checking for alloca... " >&6; }
23820 if ${ac_cv_func_alloca_works+:} false
; then :
23821 $as_echo_n "(cached) " >&6
23823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23824 /* end confdefs.h. */
23826 # define alloca __builtin_alloca
23829 # include <malloc.h>
23830 # define alloca _alloca
23832 # ifdef HAVE_ALLOCA_H
23833 # include <alloca.h>
23838 # ifndef alloca /* predefined by HP cc +Olibcalls */
23839 void *alloca (size_t);
23849 char *p = (char *) alloca (1);
23855 if ac_fn_c_try_link
"$LINENO"; then :
23856 ac_cv_func_alloca_works
=yes
23858 ac_cv_func_alloca_works
=no
23860 rm -f core conftest.err conftest.
$ac_objext \
23861 conftest
$ac_exeext conftest.
$ac_ext
23863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
23864 $as_echo "$ac_cv_func_alloca_works" >&6; }
23866 if test $ac_cv_func_alloca_works = yes; then
23868 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
23871 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
23872 # that cause trouble. Some versions do not even contain alloca or
23873 # contain a buggy version. If you still want to use their alloca,
23874 # use ar to extract alloca.o from them instead of compiling alloca.c.
23876 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
23878 $as_echo "#define C_ALLOCA 1" >>confdefs.h
23881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
23882 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
23883 if ${ac_cv_os_cray+:} false
; then :
23884 $as_echo_n "(cached) " >&6
23886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23887 /* end confdefs.h. */
23888 #if defined CRAY && ! defined CRAY2
23895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23896 $EGREP "webecray" >/dev
/null
2>&1; then :
23904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
23905 $as_echo "$ac_cv_os_cray" >&6; }
23906 if test $ac_cv_os_cray = yes; then
23907 for ac_func
in _getb67 GETB67 getb67
; do
23908 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23909 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
23910 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
23912 cat >>confdefs.h
<<_ACEOF
23913 #define CRAY_STACKSEG_END $ac_func
23922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
23923 $as_echo_n "checking stack direction for C alloca... " >&6; }
23924 if ${ac_cv_c_stack_direction+:} false
; then :
23925 $as_echo_n "(cached) " >&6
23927 if test "$cross_compiling" = yes; then :
23928 ac_cv_c_stack_direction
=0
23930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23931 /* end confdefs.h. */
23932 $ac_includes_default
23934 find_stack_direction (int *addr, int depth)
23936 int dir, dummy = 0;
23939 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
23940 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
23941 return dir + dummy;
23945 main (int argc, char **argv)
23947 return find_stack_direction (0, argc + !argv + 20) < 0;
23950 if ac_fn_c_try_run
"$LINENO"; then :
23951 ac_cv_c_stack_direction
=1
23953 ac_cv_c_stack_direction
=-1
23955 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23956 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
23961 $as_echo "$ac_cv_c_stack_direction" >&6; }
23962 cat >>confdefs.h
<<_ACEOF
23963 #define STACK_DIRECTION $ac_cv_c_stack_direction
23974 $as_echo "#define USE_WIN32API 1" >>confdefs.h
23976 WIN32APILIBS
="-lws2_32"
23981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
23982 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
23983 if ${am_cv_langinfo_codeset+:} false
; then :
23984 $as_echo_n "(cached) " >&6
23986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23987 /* end confdefs.h. */
23988 #include <langinfo.h>
23992 char* cs = nl_langinfo(CODESET);
23997 if ac_fn_c_try_link
"$LINENO"; then :
23998 am_cv_langinfo_codeset
=yes
24000 am_cv_langinfo_codeset
=no
24002 rm -f core conftest.err conftest.
$ac_objext \
24003 conftest
$ac_exeext conftest.
$ac_ext
24006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
24007 $as_echo "$am_cv_langinfo_codeset" >&6; }
24008 if test $am_cv_langinfo_codeset = yes; then
24010 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
24015 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
24017 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24018 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24019 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
24020 cat >>confdefs.h
<<_ACEOF
24021 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24030 for ac_func
in getpagesize
24032 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
24033 if test "x$ac_cv_func_getpagesize" = xyes
; then :
24034 cat >>confdefs.h
<<_ACEOF
24035 #define HAVE_GETPAGESIZE 1
24041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
24042 $as_echo_n "checking for working mmap... " >&6; }
24043 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
24044 $as_echo_n "(cached) " >&6
24046 if test "$cross_compiling" = yes; then :
24047 ac_cv_func_mmap_fixed_mapped
=no
24049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24050 /* end confdefs.h. */
24051 $ac_includes_default
24052 /* malloc might have been renamed as rpl_malloc. */
24055 /* Thanks to Mike Haertel and Jim Avera for this test.
24056 Here is a matrix of mmap possibilities:
24057 mmap private not fixed
24058 mmap private fixed at somewhere currently unmapped
24059 mmap private fixed at somewhere already mapped
24060 mmap shared not fixed
24061 mmap shared fixed at somewhere currently unmapped
24062 mmap shared fixed at somewhere already mapped
24063 For private mappings, we should verify that changes cannot be read()
24064 back from the file, nor mmap's back from the file at a different
24065 address. (There have been systems where private was not correctly
24066 implemented like the infamous i386 svr4.0, and systems where the
24067 VM page cache was not coherent with the file system buffer cache
24068 like early versions of FreeBSD and possibly contemporary NetBSD.)
24069 For shared mappings, we should conversely verify that changes get
24070 propagated back to all the places they're supposed to be.
24072 Grep wants private fixed already mapped.
24073 The main things grep needs to know about mmap are:
24074 * does it exist and is it safe to write into the mmap'd area
24075 * how to use it (BSD variants) */
24078 #include <sys/mman.h>
24080 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24084 /* This mess was copied from the GNU getpagesize.h. */
24085 #ifndef HAVE_GETPAGESIZE
24086 # ifdef _SC_PAGESIZE
24087 # define getpagesize() sysconf(_SC_PAGESIZE)
24088 # else /* no _SC_PAGESIZE */
24089 # ifdef HAVE_SYS_PARAM_H
24090 # include <sys/param.h>
24091 # ifdef EXEC_PAGESIZE
24092 # define getpagesize() EXEC_PAGESIZE
24093 # else /* no EXEC_PAGESIZE */
24095 # define getpagesize() NBPG * CLSIZE
24098 # endif /* no CLSIZE */
24099 # else /* no NBPG */
24101 # define getpagesize() NBPC
24102 # else /* no NBPC */
24104 # define getpagesize() PAGESIZE
24105 # endif /* PAGESIZE */
24106 # endif /* no NBPC */
24107 # endif /* no NBPG */
24108 # endif /* no EXEC_PAGESIZE */
24109 # else /* no HAVE_SYS_PARAM_H */
24110 # define getpagesize() 8192 /* punt totally */
24111 # endif /* no HAVE_SYS_PARAM_H */
24112 # endif /* no _SC_PAGESIZE */
24114 #endif /* no HAVE_GETPAGESIZE */
24119 char *data, *data2, *data3;
24120 const char *cdata2;
24124 pagesize = getpagesize ();
24126 /* First, make a file with some known garbage in it. */
24127 data = (char *) malloc (pagesize);
24130 for (i = 0; i < pagesize; ++i)
24131 *(data + i) = rand ();
24133 fd = creat ("conftest.mmap", 0600);
24136 if (write (fd, data, pagesize) != pagesize)
24140 /* Next, check that the tail of a page is zero-filled. File must have
24141 non-zero length, otherwise we risk SIGBUS for entire page. */
24142 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24146 if (write (fd2, cdata2, 1) != 1)
24148 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
24149 if (data2 == MAP_FAILED)
24151 for (i = 0; i < pagesize; ++i)
24155 if (munmap (data2, pagesize))
24158 /* Next, try to mmap the file at a fixed address which already has
24159 something else allocated at it. If we can, also make sure that
24160 we see the same garbage. */
24161 fd = open ("conftest.mmap", O_RDWR);
24164 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24165 MAP_PRIVATE | MAP_FIXED, fd, 0L))
24167 for (i = 0; i < pagesize; ++i)
24168 if (*(data + i) != *(data2 + i))
24171 /* Finally, make sure that changes to the mapped area do not
24172 percolate back to the file as seen by read(). (This is a bug on
24173 some variants of i386 svr4.0.) */
24174 for (i = 0; i < pagesize; ++i)
24175 *(data2 + i) = *(data2 + i) + 1;
24176 data3 = (char *) malloc (pagesize);
24179 if (read (fd, data3, pagesize) != pagesize)
24181 for (i = 0; i < pagesize; ++i)
24182 if (*(data + i) != *(data3 + i))
24188 if ac_fn_c_try_run
"$LINENO"; then :
24189 ac_cv_func_mmap_fixed_mapped
=yes
24191 ac_cv_func_mmap_fixed_mapped
=no
24193 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24194 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
24199 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24200 if test $ac_cv_func_mmap_fixed_mapped = yes; then
24202 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
24205 rm -f conftest.mmap conftest.txt
24207 for ac_header
in vfork.h
24209 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
24210 if test "x$ac_cv_header_vfork_h" = xyes
; then :
24211 cat >>confdefs.h
<<_ACEOF
24212 #define HAVE_VFORK_H 1
24219 for ac_func
in fork vfork
24221 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24222 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
24223 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
24224 cat >>confdefs.h
<<_ACEOF
24225 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24231 if test "x$ac_cv_func_fork" = xyes
; then
24232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
24233 $as_echo_n "checking for working fork... " >&6; }
24234 if ${ac_cv_func_fork_works+:} false
; then :
24235 $as_echo_n "(cached) " >&6
24237 if test "$cross_compiling" = yes; then :
24238 ac_cv_func_fork_works
=cross
24240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24241 /* end confdefs.h. */
24242 $ac_includes_default
24247 /* By Ruediger Kuhlmann. */
24248 return fork () < 0;
24254 if ac_fn_c_try_run
"$LINENO"; then :
24255 ac_cv_func_fork_works
=yes
24257 ac_cv_func_fork_works
=no
24259 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24260 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
24265 $as_echo "$ac_cv_func_fork_works" >&6; }
24268 ac_cv_func_fork_works
=$ac_cv_func_fork
24270 if test "x$ac_cv_func_fork_works" = xcross
; then
24272 *-*-amigaos* |
*-*-msdosdjgpp*)
24273 # Override, as these systems have only a dummy fork() stub
24274 ac_cv_func_fork_works
=no
24277 ac_cv_func_fork_works
=yes
24280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24281 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24283 ac_cv_func_vfork_works
=$ac_cv_func_vfork
24284 if test "x$ac_cv_func_vfork" = xyes
; then
24285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
24286 $as_echo_n "checking for working vfork... " >&6; }
24287 if ${ac_cv_func_vfork_works+:} false
; then :
24288 $as_echo_n "(cached) " >&6
24290 if test "$cross_compiling" = yes; then :
24291 ac_cv_func_vfork_works
=cross
24293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24294 /* end confdefs.h. */
24295 /* Thanks to Paul Eggert for this test. */
24296 $ac_includes_default
24297 #include <sys/wait.h>
24298 #ifdef HAVE_VFORK_H
24299 # include <vfork.h>
24301 /* On some sparc systems, changes by the child to local and incoming
24302 argument registers are propagated back to the parent. The compiler
24303 is told about this with #include <vfork.h>, but some compilers
24304 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24305 static variable whose address is put into a register that is
24306 clobbered by the vfork. */
24309 sparc_address_test (int arg)
24311 sparc_address_test (arg) int arg;
24314 static pid_t child;
24332 pid_t parent = getpid ();
24335 sparc_address_test (0);
24340 /* Here is another test for sparc vfork register problems. This
24341 test uses lots of local variables, at least as many local
24342 variables as main has allocated so far including compiler
24343 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24344 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24345 reuse the register of parent for one of the local variables,
24346 since it will think that parent can't possibly be used any more
24347 in this routine. Assigning to the local variable will thus
24348 munge parent in the parent process. */
24350 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24351 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24352 /* Convince the compiler that p..p7 are live; otherwise, it might
24353 use the same hardware register for all 8 local variables. */
24354 if (p != p1 || p != p2 || p != p3 || p != p4
24355 || p != p5 || p != p6 || p != p7)
24358 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24359 from child file descriptors. If the child closes a descriptor
24360 before it execs or exits, this munges the parent's descriptor
24361 as well. Test for this by closing stdout in the child. */
24362 _exit(close(fileno(stdout)) != 0);
24367 while (wait(&status) != child)
24370 /* Was there some problem with vforking? */
24373 /* Did the child fail? (This shouldn't happen.) */
24376 /* Did the vfork/compiler bug occur? */
24377 || parent != getpid()
24379 /* Did the file descriptor bug occur? */
24380 || fstat(fileno(stdout), &st) != 0
24385 if ac_fn_c_try_run
"$LINENO"; then :
24386 ac_cv_func_vfork_works
=yes
24388 ac_cv_func_vfork_works
=no
24390 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24391 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
24396 $as_echo "$ac_cv_func_vfork_works" >&6; }
24399 if test "x$ac_cv_func_fork_works" = xcross
; then
24400 ac_cv_func_vfork_works
=$ac_cv_func_vfork
24401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24402 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24405 if test "x$ac_cv_func_vfork_works" = xyes
; then
24407 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
24411 $as_echo "#define vfork fork" >>confdefs.h
24414 if test "x$ac_cv_func_fork_works" = xyes
; then
24416 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
24420 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
24421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
24422 $as_echo_n "checking for library containing socketpair... " >&6; }
24423 if ${ac_cv_search_socketpair+:} false
; then :
24424 $as_echo_n "(cached) " >&6
24426 ac_func_search_save_LIBS
=$LIBS
24427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24428 /* end confdefs.h. */
24430 /* Override any GCC internal prototype to avoid an error.
24431 Use char because int might match the return type of a GCC
24432 builtin and then its argument prototype would still apply. */
24436 char socketpair ();
24440 return socketpair ();
24445 for ac_lib
in '' socket
; do
24446 if test -z "$ac_lib"; then
24447 ac_res
="none required"
24450 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
24452 if ac_fn_c_try_link
"$LINENO"; then :
24453 ac_cv_search_socketpair
=$ac_res
24455 rm -f core conftest.err conftest.
$ac_objext \
24457 if ${ac_cv_search_socketpair+:} false
; then :
24461 if ${ac_cv_search_socketpair+:} false
; then :
24464 ac_cv_search_socketpair
=no
24466 rm conftest.
$ac_ext
24467 LIBS
=$ac_func_search_save_LIBS
24469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
24470 $as_echo "$ac_cv_search_socketpair" >&6; }
24471 ac_res
=$ac_cv_search_socketpair
24472 if test "$ac_res" != no
; then :
24473 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
24477 for ac_func
in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
24478 ptrace64 sbrk setns sigaltstack sigprocmask \
24479 setpgid setpgrp getrusage getauxval sigtimedwait
24481 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24482 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
24483 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
24484 cat >>confdefs.h
<<_ACEOF
24485 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24492 # This is needed for RHEL 5 and uclibc-ng < 1.0.39.
24493 # These did not define ADDR_NO_RANDOMIZE in sys/personality.h,
24494 # only in linux/personality.h.
24495 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
24497 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
24503 cat >>confdefs.h
<<_ACEOF
24504 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
24508 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
24509 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
24515 cat >>confdefs.h
<<_ACEOF
24516 #define HAVE_DECL_STRSTR $ac_have_decl
24520 # ----------------------- #
24521 # Checks for structures. #
24522 # ----------------------- #
24524 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
24525 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
24527 cat >>confdefs.h
<<_ACEOF
24528 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
24533 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
24534 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
24536 cat >>confdefs.h
<<_ACEOF
24537 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
24544 # On FreeBSD we need libutil for the kinfo_get* functions. On
24545 # GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
24546 # Figure out which one to use.
24547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
24548 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
24549 if ${ac_cv_search_kinfo_getfile+:} false
; then :
24550 $as_echo_n "(cached) " >&6
24552 ac_func_search_save_LIBS
=$LIBS
24553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24554 /* end confdefs.h. */
24556 /* Override any GCC internal prototype to avoid an error.
24557 Use char because int might match the return type of a GCC
24558 builtin and then its argument prototype would still apply. */
24562 char kinfo_getfile ();
24566 return kinfo_getfile ();
24571 for ac_lib
in '' util util-freebsd
; do
24572 if test -z "$ac_lib"; then
24573 ac_res
="none required"
24576 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
24578 if ac_fn_c_try_link
"$LINENO"; then :
24579 ac_cv_search_kinfo_getfile
=$ac_res
24581 rm -f core conftest.err conftest.
$ac_objext \
24583 if ${ac_cv_search_kinfo_getfile+:} false
; then :
24587 if ${ac_cv_search_kinfo_getfile+:} false
; then :
24590 ac_cv_search_kinfo_getfile
=no
24592 rm conftest.
$ac_ext
24593 LIBS
=$ac_func_search_save_LIBS
24595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
24596 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
24597 ac_res
=$ac_cv_search_kinfo_getfile
24598 if test "$ac_res" != no
; then :
24599 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
24604 # Define HAVE_KINFO_GETFILE if kinfo_getfile is available.
24605 for ac_func
in kinfo_getfile
24607 ac_fn_c_check_func
"$LINENO" "kinfo_getfile" "ac_cv_func_kinfo_getfile"
24608 if test "x$ac_cv_func_kinfo_getfile" = xyes
; then :
24609 cat >>confdefs.h
<<_ACEOF
24610 #define HAVE_KINFO_GETFILE 1
24617 # ----------------------- #
24618 # Check for threading. #
24619 # ----------------------- #
24621 # Check whether --enable-threading was given.
24622 if test "${enable_threading+set}" = set; then :
24623 enableval
=$enable_threading; case "$enableval" in
24624 yes) want_threading
=yes ;;
24625 no
) want_threading
=no
;;
24626 *) as_fn_error $?
"bad value $enableval for threading" "$LINENO" 5 ;;
24633 # Check for std::thread. This does not work on some platforms, like
24636 ac_cpp
='$CXXCPP $CPPFLAGS'
24637 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24638 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24639 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
24646 ac_cpp
='$CPP $CPPFLAGS'
24647 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24648 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24649 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
24653 # We used to check for pthread.h first, but this fails if pthread.h
24654 # requires special compiler flags (e.g. on Tru64 or Sequent).
24655 # It gets checked for in the link test anyway.
24657 # First of all, check if the user has set any of the PTHREAD_LIBS,
24658 # etcetera environment variables, and if threads linking works using
24660 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
24661 ax_pthread_save_CC
="$CC"
24662 ax_pthread_save_CFLAGS
="$CFLAGS"
24663 ax_pthread_save_LIBS
="$LIBS"
24664 if test "x$PTHREAD_CC" != "x"; then :
24667 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
24668 LIBS
="$PTHREAD_LIBS $LIBS"
24669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
24670 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
24671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24672 /* end confdefs.h. */
24674 /* Override any GCC internal prototype to avoid an error.
24675 Use char because int might match the return type of a GCC
24676 builtin and then its argument prototype would still apply. */
24680 char pthread_join ();
24684 return pthread_join ();
24689 if ac_fn_c_try_link
"$LINENO"; then :
24692 rm -f core conftest.err conftest.
$ac_objext \
24693 conftest
$ac_exeext conftest.
$ac_ext
24694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
24695 $as_echo "$ax_pthread_ok" >&6; }
24696 if test "x$ax_pthread_ok" = "xno"; then
24700 CC
="$ax_pthread_save_CC"
24701 CFLAGS
="$ax_pthread_save_CFLAGS"
24702 LIBS
="$ax_pthread_save_LIBS"
24705 # We must check for the threads library under a number of different
24706 # names; the ordering is very important because some systems
24707 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
24708 # libraries is broken (non-POSIX).
24710 # Create a list of thread flags to try. Items starting with a "-" are
24711 # C compiler flags, and other items are library names, except for "none"
24712 # which indicates that we try without any flags at all, and "pthread-config"
24713 # which is a program returning the flags for the Pth emulation library.
24715 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
24717 # The ordering *is* (sometimes) important. Some notes on the
24718 # individual items follow:
24720 # pthreads: AIX (must check this before -lpthread)
24721 # none: in case threads are in libc; should be tried before -Kthread and
24722 # other compiler flags to prevent continual compiler warnings
24723 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
24724 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
24725 # (Note: HP C rejects this with "bad form for `-t' option")
24726 # -pthreads: Solaris/gcc (Note: HP C also rejects)
24727 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
24728 # doesn't hurt to check since this sometimes defines pthreads and
24729 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
24730 # is present but should not be used directly; and before -mthreads,
24731 # because the compiler interprets this as "-mt" + "-hreads")
24732 # -mthreads: Mingw32/gcc, Lynx/gcc
24733 # pthread: Linux, etcetera
24734 # --thread-safe: KAI C++
24735 # pthread-config: use pthread-config program (for GNU Pth library)
24741 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
24742 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
24744 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
24749 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
24750 # multi-threading and also sets -lpthread."
24752 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
24757 # IBM z/OS requires a feature-test macro to be defined in order to
24758 # enable POSIX threads at all, so give the user a hint if this is
24759 # not set. (We don't define these ourselves, as they can affect
24760 # other portions of the system API in unpredictable ways.)
24762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24763 /* end confdefs.h. */
24765 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
24766 AX_PTHREAD_ZOS_MISSING
24770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24771 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
24772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
24773 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
24781 # On Solaris (at least, for some versions), libc contains stubbed
24782 # (non-functional) versions of the pthreads routines, so link-based
24783 # tests will erroneously succeed. (N.B.: The stubs are missing
24784 # pthread_cleanup_push, or rather a function called by this macro,
24785 # so we could check for that, but who knows whether they'll stub
24786 # that too in a future libc.) So we'll check first for the
24787 # standard Solaris way of linking pthreads (-mt -lpthread).
24789 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
24793 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
24795 if test "x$GCC" = "xyes"; then :
24796 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
24799 # The presence of a feature test macro requesting re-entrant function
24800 # definitions is, on some systems, a strong hint that pthreads support is
24801 # correctly enabled
24804 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
24805 ax_pthread_check_macro
="_REENTRANT"
24809 ax_pthread_check_macro
="_THREAD_SAFE"
24813 ax_pthread_check_macro
="--"
24816 if test "x$ax_pthread_check_macro" = "x--"; then :
24817 ax_pthread_check_cond
=0
24819 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
24822 # Are we compiling with Clang?
24824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
24825 $as_echo_n "checking whether $CC is Clang... " >&6; }
24826 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
24827 $as_echo_n "(cached) " >&6
24829 ax_cv_PTHREAD_CLANG
=no
24830 # Note that Autoconf sets GCC=yes for Clang as well as GCC
24831 if test "x$GCC" = "xyes"; then
24832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24833 /* end confdefs.h. */
24834 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
24835 # if defined(__clang__) && defined(__llvm__)
24836 AX_PTHREAD_CC_IS_CLANG
24840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24841 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
24842 ax_cv_PTHREAD_CLANG
=yes
24849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
24850 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
24851 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
24853 ax_pthread_clang_warning
=no
24855 # Clang needs special handling, because older versions handle the -pthread
24856 # option in a rather... idiosyncratic way
24858 if test "x$ax_pthread_clang" = "xyes"; then
24860 # Clang takes -pthread; it has never supported any other flag
24862 # (Note 1: This will need to be revisited if a system that Clang
24863 # supports has POSIX threads in a separate library. This tends not
24864 # to be the way of modern systems, but it's conceivable.)
24866 # (Note 2: On some systems, notably Darwin, -pthread is not needed
24867 # to get POSIX threads support; the API is always present and
24868 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
24869 # -pthread does define _REENTRANT, and while the Darwin headers
24870 # ignore this macro, third-party headers might not.)
24872 PTHREAD_CFLAGS
="-pthread"
24877 # However, older versions of Clang make a point of warning the user
24878 # that, in an invocation where only linking and no compilation is
24879 # taking place, the -pthread option has no effect ("argument unused
24880 # during compilation"). They expect -pthread to be passed in only
24881 # when source code is being compiled.
24883 # Problem is, this is at odds with the way Automake and most other
24884 # C build frameworks function, which is that the same flags used in
24885 # compilation (CFLAGS) are also used in linking. Many systems
24886 # supported by AX_PTHREAD require exactly this for POSIX threads
24887 # support, and in fact it is often not straightforward to specify a
24888 # flag that is used only in the compilation phase and not in
24889 # linking. Such a scenario is extremely rare in practice.
24891 # Even though use of the -pthread flag in linking would only print
24892 # a warning, this can be a nuisance for well-run software projects
24893 # that build with -Werror. So if the active version of Clang has
24894 # this misfeature, we search for an option to squash it.
24896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
24897 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
24898 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
24899 $as_echo_n "(cached) " >&6
24901 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
24902 # Create an alternate version of $ac_link that compiles and
24903 # links in two steps (.c -> .o, .o -> exe) instead of one
24904 # (.c -> exe), because the warning occurs only in the second
24906 ax_pthread_save_ac_link
="$ac_link"
24907 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
24908 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
24909 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
24910 ax_pthread_save_CFLAGS
="$CFLAGS"
24911 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
24912 if test "x$ax_pthread_try" = "xunknown"; then :
24915 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
24916 ac_link
="$ax_pthread_save_ac_link"
24917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24918 /* end confdefs.h. */
24919 int main(void){return 0;}
24921 if ac_fn_c_try_link
"$LINENO"; then :
24922 ac_link
="$ax_pthread_2step_ac_link"
24923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24924 /* end confdefs.h. */
24925 int main(void){return 0;}
24927 if ac_fn_c_try_link
"$LINENO"; then :
24930 rm -f core conftest.err conftest.
$ac_objext \
24931 conftest
$ac_exeext conftest.
$ac_ext
24934 rm -f core conftest.err conftest.
$ac_objext \
24935 conftest
$ac_exeext conftest.
$ac_ext
24937 ac_link
="$ax_pthread_save_ac_link"
24938 CFLAGS
="$ax_pthread_save_CFLAGS"
24939 if test "x$ax_pthread_try" = "x"; then :
24942 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
24945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
24946 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
24948 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
24950 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
24953 fi # $ax_pthread_clang = yes
24955 if test "x$ax_pthread_ok" = "xno"; then
24956 for ax_pthread_try_flag
in $ax_pthread_flags; do
24958 case $ax_pthread_try_flag in
24960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
24961 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
24965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
24966 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
24967 PTHREAD_CFLAGS
="-mt"
24968 PTHREAD_LIBS
="-lpthread"
24972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
24973 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
24974 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
24978 # Extract the first word of "pthread-config", so it can be a program name with args.
24979 set dummy pthread-config
; ac_word
=$2
24980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24981 $as_echo_n "checking for $ac_word... " >&6; }
24982 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
24983 $as_echo_n "(cached) " >&6
24985 if test -n "$ax_pthread_config"; then
24986 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
24988 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24989 for as_dir
in $PATH
24992 test -z "$as_dir" && as_dir
=.
24993 for ac_exec_ext
in '' $ac_executable_extensions; do
24994 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
24995 ac_cv_prog_ax_pthread_config
="yes"
24996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25003 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
25006 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
25007 if test -n "$ax_pthread_config"; then
25008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
25009 $as_echo "$ax_pthread_config" >&6; }
25011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25012 $as_echo "no" >&6; }
25016 if test "x$ax_pthread_config" = "xno"; then :
25019 PTHREAD_CFLAGS
="`pthread-config --cflags`"
25020 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
25024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
25025 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
25026 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
25030 ax_pthread_save_CFLAGS
="$CFLAGS"
25031 ax_pthread_save_LIBS
="$LIBS"
25032 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
25033 LIBS
="$PTHREAD_LIBS $LIBS"
25035 # Check for various functions. We must include pthread.h,
25036 # since some functions may be macros. (On the Sequent, we
25037 # need a special flag -Kthread to make this header compile.)
25038 # We check for pthread_join because it is in -lpthread on IRIX
25039 # while pthread_create is in libc. We check for pthread_attr_init
25040 # due to DEC craziness with -lpthreads. We check for
25041 # pthread_cleanup_push because it is one of the few pthread
25042 # functions on Solaris that doesn't have a non-functional libc stub.
25043 # We try pthread_create on general principles.
25045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25046 /* end confdefs.h. */
25047 #include <pthread.h>
25048 # if $ax_pthread_check_cond
25049 # error "$ax_pthread_check_macro must be defined"
25051 static void routine(void *a) { a = 0; }
25052 static void *start_routine(void *a) { return a; }
25056 pthread_t th; pthread_attr_t attr;
25057 pthread_create(&th, 0, start_routine, 0);
25058 pthread_join(th, 0);
25059 pthread_attr_init(&attr);
25060 pthread_cleanup_push(routine, 0);
25061 pthread_cleanup_pop(0) /* ; */
25066 if ac_fn_c_try_link
"$LINENO"; then :
25069 rm -f core conftest.err conftest.
$ac_objext \
25070 conftest
$ac_exeext conftest.
$ac_ext
25072 CFLAGS
="$ax_pthread_save_CFLAGS"
25073 LIBS
="$ax_pthread_save_LIBS"
25075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
25076 $as_echo "$ax_pthread_ok" >&6; }
25077 if test "x$ax_pthread_ok" = "xyes"; then :
25086 # Various other checks:
25087 if test "x$ax_pthread_ok" = "xyes"; then
25088 ax_pthread_save_CFLAGS
="$CFLAGS"
25089 ax_pthread_save_LIBS
="$LIBS"
25090 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
25091 LIBS
="$PTHREAD_LIBS $LIBS"
25093 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
25094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
25095 $as_echo_n "checking for joinable pthread attribute... " >&6; }
25096 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
25097 $as_echo_n "(cached) " >&6
25099 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
25100 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
25101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25102 /* end confdefs.h. */
25103 #include <pthread.h>
25107 int attr = $ax_pthread_attr; return attr /* ; */
25112 if ac_fn_c_try_link
"$LINENO"; then :
25113 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
25115 rm -f core conftest.err conftest.
$ac_objext \
25116 conftest
$ac_exeext conftest.
$ac_ext
25120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
25121 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
25122 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
25123 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
25124 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
25126 cat >>confdefs.h
<<_ACEOF
25127 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
25130 ax_pthread_joinable_attr_defined
=yes
25134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
25135 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
25136 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
25137 $as_echo_n "(cached) " >&6
25139 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
25142 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
25147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
25148 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
25149 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
25150 test "x$ax_pthread_special_flags_added" != "xyes"; then :
25151 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
25152 ax_pthread_special_flags_added
=yes
25155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
25156 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
25157 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
25158 $as_echo_n "(cached) " >&6
25160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25161 /* end confdefs.h. */
25162 #include <pthread.h>
25166 int i = PTHREAD_PRIO_INHERIT;
25171 if ac_fn_c_try_link
"$LINENO"; then :
25172 ax_cv_PTHREAD_PRIO_INHERIT
=yes
25174 ax_cv_PTHREAD_PRIO_INHERIT
=no
25176 rm -f core conftest.err conftest.
$ac_objext \
25177 conftest
$ac_exeext conftest.
$ac_ext
25180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
25181 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
25182 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
25183 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
25185 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
25187 ax_pthread_prio_inherit_defined
=yes
25191 CFLAGS
="$ax_pthread_save_CFLAGS"
25192 LIBS
="$ax_pthread_save_LIBS"
25194 # More AIX lossage: compile with *_r variant
25195 if test "x$GCC" != "xyes"; then
25199 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
25200 #handle absolute path differently from PATH based program lookup
25203 if as_fn_executable_p
${CC}_r
; then :
25204 PTHREAD_CC
="${CC}_r"
25207 for ac_prog
in ${CC}_r
25209 # Extract the first word of "$ac_prog", so it can be a program name with args.
25210 set dummy
$ac_prog; ac_word
=$2
25211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25212 $as_echo_n "checking for $ac_word... " >&6; }
25213 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
25214 $as_echo_n "(cached) " >&6
25216 if test -n "$PTHREAD_CC"; then
25217 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
25219 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25220 for as_dir
in $PATH
25223 test -z "$as_dir" && as_dir
=.
25224 for ac_exec_ext
in '' $ac_executable_extensions; do
25225 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25226 ac_cv_prog_PTHREAD_CC
="$ac_prog"
25227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25236 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
25237 if test -n "$PTHREAD_CC"; then
25238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
25239 $as_echo "$PTHREAD_CC" >&6; }
25241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25242 $as_echo "no" >&6; }
25246 test -n "$PTHREAD_CC" && break
25248 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
25259 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
25265 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
25266 if test "x$ax_pthread_ok" = "xyes"; then
25274 ac_cpp
='$CXXCPP $CPPFLAGS'
25275 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25276 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25277 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
25281 LIBS
="$PTHREAD_LIBS $LIBS"
25282 save_CXXFLAGS
="$CXXFLAGS"
25283 CXXFLAGS
="$PTHREAD_CFLAGS $save_CXXFLAGS"
25284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
25285 $as_echo_n "checking for std::thread... " >&6; }
25286 if ${gdb_cv_cxx_std_thread+:} false
; then :
25287 $as_echo_n "(cached) " >&6
25289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25290 /* end confdefs.h. */
25291 #if defined (__MINGW32__) || defined (__CYGWIN__)
25292 # ifdef _WIN32_WINNT
25293 # if _WIN32_WINNT < 0x0501
25294 # undef _WIN32_WINNT
25295 # define _WIN32_WINNT 0x0501
25298 # define _WIN32_WINNT 0x0501
25300 #endif /* __MINGW32__ || __CYGWIN__ */
25302 void callback() { }
25306 std::thread t(callback);
25311 if ac_fn_cxx_try_compile
"$LINENO"; then :
25312 gdb_cv_cxx_std_thread
=yes
25314 gdb_cv_cxx_std_thread
=no
25316 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
25319 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
25321 if test "$threads" = "yes"; then
25322 # This check must be here, while LIBS includes any necessary
25323 # threading library.
25324 for ac_func
in pthread_sigmask pthread_setname_np
25326 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25327 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
25328 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
25329 cat >>confdefs.h
<<_ACEOF
25330 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25338 CXXFLAGS
="$save_CXXFLAGS"
25340 if test "$want_threading" = "yes"; then
25341 if test "$gdb_cv_cxx_std_thread" = "yes"; then
25343 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
25348 ac_cpp
='$CPP $CPPFLAGS'
25349 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25350 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25351 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
25354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
25355 $as_echo_n "checking for sigsetjmp... " >&6; }
25356 if ${gdb_cv_func_sigsetjmp+:} false
; then :
25357 $as_echo_n "(cached) " >&6
25359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25360 /* end confdefs.h. */
25361 #include <setjmp.h>
25366 while (! sigsetjmp (env, 1))
25367 siglongjmp (env, 1);
25373 if ac_fn_c_try_compile
"$LINENO"; then :
25374 gdb_cv_func_sigsetjmp
=yes
25376 gdb_cv_func_sigsetjmp
=no
25379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
25383 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
25384 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
25386 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
25391 # Check whether --with-intel_pt was given.
25392 if test "${with_intel_pt+set}" = set; then :
25393 withval
=$with_intel_pt;
25398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
25399 $as_echo_n "checking whether to use intel pt... " >&6; }
25400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
25401 $as_echo "$with_intel_pt" >&6; }
25403 if test "${with_intel_pt}" = no
; then
25404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
25405 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
25408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25409 /* end confdefs.h. */
25411 #include <linux/perf_event.h>
25412 #ifndef PERF_ATTR_SIZE_VER5
25417 if ac_fn_c_try_cpp
"$LINENO"; then :
25422 rm -f conftest.err conftest.i conftest.
$ac_ext
25423 if test "$perf_event" != yes; then
25424 if test "$with_intel_pt" = yes; then
25425 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
25427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
25428 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
25442 acl_save_prefix
="$prefix"
25443 prefix
="$acl_final_prefix"
25444 acl_save_exec_prefix
="$exec_prefix"
25445 exec_prefix
="$acl_final_exec_prefix"
25447 eval additional_includedir
=\"$includedir\"
25448 eval additional_libdir
=\"$libdir\"
25450 exec_prefix
="$acl_save_exec_prefix"
25451 prefix
="$acl_save_prefix"
25454 # Check whether --with-libipt-prefix was given.
25455 if test "${with_libipt_prefix+set}" = set; then :
25456 withval
=$with_libipt_prefix;
25457 if test "X$withval" = "Xno"; then
25460 if test "X$withval" = "X"; then
25462 acl_save_prefix
="$prefix"
25463 prefix
="$acl_final_prefix"
25464 acl_save_exec_prefix
="$exec_prefix"
25465 exec_prefix
="$acl_final_exec_prefix"
25467 eval additional_includedir
=\"$includedir\"
25468 eval additional_libdir
=\"$libdir\"
25470 exec_prefix
="$acl_save_exec_prefix"
25471 prefix
="$acl_save_prefix"
25474 additional_includedir
="$withval/include"
25475 additional_libdir
="$withval/lib"
25482 # Check whether --with-libipt-type was given.
25483 if test "${with_libipt_type+set}" = set; then :
25484 withval
=$with_libipt_type; with_libipt_type
=$withval
25486 with_libipt_type
=auto
25489 lib_type
=`eval echo \$with_libipt_type`
25496 names_already_handled
=
25497 names_next_round
='ipt '
25498 while test -n "$names_next_round"; do
25499 names_this_round
="$names_next_round"
25501 for name
in $names_this_round; do
25503 for n
in $names_already_handled; do
25504 if test "$n" = "$name"; then
25505 already_handled
=yes
25509 if test -z "$already_handled"; then
25510 names_already_handled
="$names_already_handled $name"
25511 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
25512 eval value
=\"\
$HAVE_LIB$uppername\"
25513 if test -n "$value"; then
25514 if test "$value" = yes; then
25515 eval value
=\"\
$LIB$uppername\"
25516 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
25517 eval value
=\"\
$LTLIB$uppername\"
25518 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
25527 if test $use_additional = yes; then
25528 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
25529 found_dir
="$additional_libdir"
25530 found_so
="$additional_libdir/lib$name.$shlibext"
25531 if test -f "$additional_libdir/lib$name.la"; then
25532 found_la
="$additional_libdir/lib$name.la"
25534 elif test x
$lib_type != xshared
; then
25535 if test -f "$additional_libdir/lib$name.$libext"; then
25536 found_dir
="$additional_libdir"
25537 found_a
="$additional_libdir/lib$name.$libext"
25538 if test -f "$additional_libdir/lib$name.la"; then
25539 found_la
="$additional_libdir/lib$name.la"
25544 if test "X$found_dir" = "X"; then
25545 for x
in $LDFLAGS $LTLIBIPT; do
25547 acl_save_prefix
="$prefix"
25548 prefix
="$acl_final_prefix"
25549 acl_save_exec_prefix
="$exec_prefix"
25550 exec_prefix
="$acl_final_exec_prefix"
25552 exec_prefix
="$acl_save_exec_prefix"
25553 prefix
="$acl_save_prefix"
25557 dir
=`echo "X$x" | sed -e 's/^X-L//'`
25558 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
25560 found_so
="$dir/lib$name.$shlibext"
25561 if test -f "$dir/lib$name.la"; then
25562 found_la
="$dir/lib$name.la"
25564 elif test x
$lib_type != xshared
; then
25565 if test -f "$dir/lib$name.$libext"; then
25567 found_a
="$dir/lib$name.$libext"
25568 if test -f "$dir/lib$name.la"; then
25569 found_la
="$dir/lib$name.la"
25575 if test "X$found_dir" != "X"; then
25580 if test "X$found_dir" != "X"; then
25581 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
25582 if test "X$found_so" != "X"; then
25583 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
25584 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
25587 for x
in $ltrpathdirs; do
25588 if test "X$x" = "X$found_dir"; then
25593 if test -z "$haveit"; then
25594 ltrpathdirs
="$ltrpathdirs $found_dir"
25596 if test "$hardcode_direct" = yes; then
25597 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
25599 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
25600 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
25602 for x
in $rpathdirs; do
25603 if test "X$x" = "X$found_dir"; then
25608 if test -z "$haveit"; then
25609 rpathdirs
="$rpathdirs $found_dir"
25613 for x
in $LDFLAGS $LIBIPT; do
25615 acl_save_prefix
="$prefix"
25616 prefix
="$acl_final_prefix"
25617 acl_save_exec_prefix
="$exec_prefix"
25618 exec_prefix
="$acl_final_exec_prefix"
25620 exec_prefix
="$acl_save_exec_prefix"
25621 prefix
="$acl_save_prefix"
25623 if test "X$x" = "X-L$found_dir"; then
25628 if test -z "$haveit"; then
25629 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
25631 if test "$hardcode_minus_L" != no
; then
25632 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
25634 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
25640 if test "X$found_a" != "X"; then
25641 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
25643 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
25646 additional_includedir
=
25647 case "$found_dir" in
25649 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
25650 additional_includedir
="$basedir/include"
25653 if test "X$additional_includedir" != "X"; then
25654 if test "X$additional_includedir" != "X/usr/include"; then
25656 if test "X$additional_includedir" = "X/usr/local/include"; then
25657 if test -n "$GCC"; then
25659 linux
*) haveit
=yes;;
25663 if test -z "$haveit"; then
25664 for x
in $CPPFLAGS $INCIPT; do
25666 acl_save_prefix
="$prefix"
25667 prefix
="$acl_final_prefix"
25668 acl_save_exec_prefix
="$exec_prefix"
25669 exec_prefix
="$acl_final_exec_prefix"
25671 exec_prefix
="$acl_save_exec_prefix"
25672 prefix
="$acl_save_prefix"
25674 if test "X$x" = "X-I$additional_includedir"; then
25679 if test -z "$haveit"; then
25680 if test -d "$additional_includedir"; then
25681 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
25687 if test -n "$found_la"; then
25688 save_libdir
="$libdir"
25689 case "$found_la" in
25690 */* |
*\\*) .
"$found_la" ;;
25691 *) .
"./$found_la" ;;
25693 libdir
="$save_libdir"
25694 for dep
in $dependency_libs; do
25697 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
25698 if test "X$additional_libdir" != "X/usr/lib"; then
25700 if test "X$additional_libdir" = "X/usr/local/lib"; then
25701 if test -n "$GCC"; then
25703 linux
*) haveit
=yes;;
25707 if test -z "$haveit"; then
25709 for x
in $LDFLAGS $LIBIPT; do
25711 acl_save_prefix
="$prefix"
25712 prefix
="$acl_final_prefix"
25713 acl_save_exec_prefix
="$exec_prefix"
25714 exec_prefix
="$acl_final_exec_prefix"
25716 exec_prefix
="$acl_save_exec_prefix"
25717 prefix
="$acl_save_prefix"
25719 if test "X$x" = "X-L$additional_libdir"; then
25724 if test -z "$haveit"; then
25725 if test -d "$additional_libdir"; then
25726 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
25730 for x
in $LDFLAGS $LTLIBIPT; do
25732 acl_save_prefix
="$prefix"
25733 prefix
="$acl_final_prefix"
25734 acl_save_exec_prefix
="$exec_prefix"
25735 exec_prefix
="$acl_final_exec_prefix"
25737 exec_prefix
="$acl_save_exec_prefix"
25738 prefix
="$acl_save_prefix"
25740 if test "X$x" = "X-L$additional_libdir"; then
25745 if test -z "$haveit"; then
25746 if test -d "$additional_libdir"; then
25747 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
25754 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
25755 if test "$enable_rpath" != no
; then
25757 for x
in $rpathdirs; do
25758 if test "X$x" = "X$dir"; then
25763 if test -z "$haveit"; then
25764 rpathdirs
="$rpathdirs $dir"
25767 for x
in $ltrpathdirs; do
25768 if test "X$x" = "X$dir"; then
25773 if test -z "$haveit"; then
25774 ltrpathdirs
="$ltrpathdirs $dir"
25779 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
25782 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
25785 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
25786 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
25792 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
25793 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
25794 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
25796 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
25797 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
25804 if test "X$rpathdirs" != "X"; then
25805 if test -n "$hardcode_libdir_separator"; then
25807 for found_dir
in $rpathdirs; do
25808 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
25810 acl_save_libdir
="$libdir"
25812 eval flag
=\"$hardcode_libdir_flag_spec\"
25813 libdir
="$acl_save_libdir"
25814 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
25816 for found_dir
in $rpathdirs; do
25817 acl_save_libdir
="$libdir"
25818 libdir
="$found_dir"
25819 eval flag
=\"$hardcode_libdir_flag_spec\"
25820 libdir
="$acl_save_libdir"
25821 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
25825 if test "X$ltrpathdirs" != "X"; then
25826 for found_dir
in $ltrpathdirs; do
25827 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
25832 ac_save_CPPFLAGS
="$CPPFLAGS"
25834 for element
in $INCIPT; do
25836 for x
in $CPPFLAGS; do
25838 acl_save_prefix
="$prefix"
25839 prefix
="$acl_final_prefix"
25840 acl_save_exec_prefix
="$exec_prefix"
25841 exec_prefix
="$acl_final_exec_prefix"
25843 exec_prefix
="$acl_save_exec_prefix"
25844 prefix
="$acl_save_prefix"
25846 if test "X$x" = "X$element"; then
25851 if test -z "$haveit"; then
25852 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
25857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
25858 $as_echo_n "checking for libipt... " >&6; }
25859 if ${ac_cv_libipt+:} false
; then :
25860 $as_echo_n "(cached) " >&6
25863 ac_save_LIBS
="$LIBS"
25864 LIBS
="$LIBS $LIBIPT"
25865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25866 /* end confdefs.h. */
25867 #include "intel-pt.h"
25871 pt_insn_alloc_decoder (0);
25876 if ac_fn_c_try_link
"$LINENO"; then :
25881 rm -f core conftest.err conftest.
$ac_objext \
25882 conftest
$ac_exeext conftest.
$ac_ext
25883 LIBS
="$ac_save_LIBS"
25886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
25887 $as_echo "$ac_cv_libipt" >&6; }
25888 if test "$ac_cv_libipt" = yes; then
25891 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
25893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
25894 $as_echo_n "checking how to link with libipt... " >&6; }
25895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
25896 $as_echo "$LIBIPT" >&6; }
25899 CPPFLAGS
="$ac_save_CPPFLAGS"
25909 if test "$HAVE_LIBIPT" != yes; then
25910 if test "$with_intel_pt" = yes; then
25911 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
25913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
25914 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
25918 LIBS
="$LIBS $LIBIPT"
25919 for ac_func
in pt_insn_event
25921 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
25922 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
25923 cat >>confdefs.h
<<_ACEOF
25924 #define HAVE_PT_INSN_EVENT 1
25930 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
25932 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
25934 cat >>confdefs.h
<<_ACEOF
25935 #define HAVE_STRUCT_PT_INSN_ENABLED 1
25940 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
25942 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
25944 cat >>confdefs.h
<<_ACEOF
25945 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
25955 # Check if the compiler and runtime support printing long longs.
25957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
25958 $as_echo_n "checking for long long support in printf... " >&6; }
25959 if ${gdb_cv_printf_has_long_long+:} false
; then :
25960 $as_echo_n "(cached) " >&6
25962 if test "$cross_compiling" = yes; then :
25963 gdb_cv_printf_has_long_long
=no
25965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25966 /* end confdefs.h. */
25967 $ac_includes_default
25973 l = (l << 16) + 0x0123;
25974 l = (l << 16) + 0x4567;
25975 l = (l << 16) + 0x89ab;
25976 l = (l << 16) + 0xcdef;
25977 sprintf (buf, "0x%016llx", l);
25978 return (strcmp ("0x0123456789abcdef", buf));
25983 if ac_fn_c_try_run
"$LINENO"; then :
25984 gdb_cv_printf_has_long_long
=yes
25986 gdb_cv_printf_has_long_long
=no
25988 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25989 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
25994 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
25995 if test "$gdb_cv_printf_has_long_long" = yes; then
25997 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
26002 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
26004 for ac_header
in sys
/procfs.h
26006 ac_fn_c_check_header_mongrel
"$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
26007 if test "x$ac_cv_header_sys_procfs_h" = xyes
; then :
26008 cat >>confdefs.h
<<_ACEOF
26009 #define HAVE_SYS_PROCFS_H 1
26016 if test "$ac_cv_header_sys_procfs_h" = yes; then
26018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
26019 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
26020 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
26021 $as_echo_n "(cached) " >&6
26023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26024 /* end confdefs.h. */
26027 #include <sys/procfs.h>
26036 if ac_fn_c_try_compile
"$LINENO"; then :
26037 bfd_cv_have_sys_procfs_type_gregset_t
=yes
26039 bfd_cv_have_sys_procfs_type_gregset_t
=no
26042 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26045 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
26047 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
26050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
26051 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
26054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
26055 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
26056 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
26057 $as_echo_n "(cached) " >&6
26059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26060 /* end confdefs.h. */
26063 #include <sys/procfs.h>
26072 if ac_fn_c_try_compile
"$LINENO"; then :
26073 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
26075 bfd_cv_have_sys_procfs_type_fpregset_t
=no
26078 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26081 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
26083 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
26086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
26087 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
26090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
26091 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
26092 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
26093 $as_echo_n "(cached) " >&6
26095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26096 /* end confdefs.h. */
26099 #include <sys/procfs.h>
26108 if ac_fn_c_try_compile
"$LINENO"; then :
26109 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
26111 bfd_cv_have_sys_procfs_type_prgregset_t
=no
26114 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26117 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
26119 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
26122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
26123 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
26126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
26127 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
26128 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
26129 $as_echo_n "(cached) " >&6
26131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26132 /* end confdefs.h. */
26135 #include <sys/procfs.h>
26144 if ac_fn_c_try_compile
"$LINENO"; then :
26145 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
26147 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
26150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26153 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
26155 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
26158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
26159 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
26162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
26163 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
26164 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
26165 $as_echo_n "(cached) " >&6
26167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26168 /* end confdefs.h. */
26171 #include <sys/procfs.h>
26180 if ac_fn_c_try_compile
"$LINENO"; then :
26181 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
26183 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
26186 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26189 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
26191 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
26194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
26195 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
26198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
26199 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
26200 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
26201 $as_echo_n "(cached) " >&6
26203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26204 /* end confdefs.h. */
26207 #include <sys/procfs.h>
26216 if ac_fn_c_try_compile
"$LINENO"; then :
26217 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
26219 bfd_cv_have_sys_procfs_type_lwpid_t
=no
26222 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26225 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
26227 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
26230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
26231 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
26234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
26235 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
26236 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
26237 $as_echo_n "(cached) " >&6
26239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26240 /* end confdefs.h. */
26243 #include <sys/procfs.h>
26252 if ac_fn_c_try_compile
"$LINENO"; then :
26253 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
26255 bfd_cv_have_sys_procfs_type_psaddr_t
=no
26258 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26261 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
26263 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
26266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
26267 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
26270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
26271 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
26272 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
26273 $as_echo_n "(cached) " >&6
26275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26276 /* end confdefs.h. */
26279 #include <sys/procfs.h>
26283 elf_fpregset_t avar
26288 if ac_fn_c_try_compile
"$LINENO"; then :
26289 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
26291 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
26294 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26297 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
26299 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
26302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
26303 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
26309 # Check whether --with-xxhash was given.
26310 if test "${with_xxhash+set}" = set; then :
26311 withval
=$with_xxhash;
26317 if test "x$with_xxhash" != "xno"; then
26328 acl_save_prefix
="$prefix"
26329 prefix
="$acl_final_prefix"
26330 acl_save_exec_prefix
="$exec_prefix"
26331 exec_prefix
="$acl_final_exec_prefix"
26333 eval additional_includedir
=\"$includedir\"
26334 eval additional_libdir
=\"$libdir\"
26336 exec_prefix
="$acl_save_exec_prefix"
26337 prefix
="$acl_save_prefix"
26340 # Check whether --with-libxxhash-prefix was given.
26341 if test "${with_libxxhash_prefix+set}" = set; then :
26342 withval
=$with_libxxhash_prefix;
26343 if test "X$withval" = "Xno"; then
26346 if test "X$withval" = "X"; then
26348 acl_save_prefix
="$prefix"
26349 prefix
="$acl_final_prefix"
26350 acl_save_exec_prefix
="$exec_prefix"
26351 exec_prefix
="$acl_final_exec_prefix"
26353 eval additional_includedir
=\"$includedir\"
26354 eval additional_libdir
=\"$libdir\"
26356 exec_prefix
="$acl_save_exec_prefix"
26357 prefix
="$acl_save_prefix"
26360 additional_includedir
="$withval/include"
26361 additional_libdir
="$withval/lib"
26368 # Check whether --with-libxxhash-type was given.
26369 if test "${with_libxxhash_type+set}" = set; then :
26370 withval
=$with_libxxhash_type; with_libxxhash_type
=$withval
26372 with_libxxhash_type
=auto
26375 lib_type
=`eval echo \$with_libxxhash_type`
26382 names_already_handled
=
26383 names_next_round
='xxhash '
26384 while test -n "$names_next_round"; do
26385 names_this_round
="$names_next_round"
26387 for name
in $names_this_round; do
26389 for n
in $names_already_handled; do
26390 if test "$n" = "$name"; then
26391 already_handled
=yes
26395 if test -z "$already_handled"; then
26396 names_already_handled
="$names_already_handled $name"
26397 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
26398 eval value
=\"\
$HAVE_LIB$uppername\"
26399 if test -n "$value"; then
26400 if test "$value" = yes; then
26401 eval value
=\"\
$LIB$uppername\"
26402 test -z "$value" || LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$value"
26403 eval value
=\"\
$LTLIB$uppername\"
26404 test -z "$value" || LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$value"
26413 if test $use_additional = yes; then
26414 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
26415 found_dir
="$additional_libdir"
26416 found_so
="$additional_libdir/lib$name.$shlibext"
26417 if test -f "$additional_libdir/lib$name.la"; then
26418 found_la
="$additional_libdir/lib$name.la"
26420 elif test x
$lib_type != xshared
; then
26421 if test -f "$additional_libdir/lib$name.$libext"; then
26422 found_dir
="$additional_libdir"
26423 found_a
="$additional_libdir/lib$name.$libext"
26424 if test -f "$additional_libdir/lib$name.la"; then
26425 found_la
="$additional_libdir/lib$name.la"
26430 if test "X$found_dir" = "X"; then
26431 for x
in $LDFLAGS $LTLIBXXHASH; do
26433 acl_save_prefix
="$prefix"
26434 prefix
="$acl_final_prefix"
26435 acl_save_exec_prefix
="$exec_prefix"
26436 exec_prefix
="$acl_final_exec_prefix"
26438 exec_prefix
="$acl_save_exec_prefix"
26439 prefix
="$acl_save_prefix"
26443 dir
=`echo "X$x" | sed -e 's/^X-L//'`
26444 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
26446 found_so
="$dir/lib$name.$shlibext"
26447 if test -f "$dir/lib$name.la"; then
26448 found_la
="$dir/lib$name.la"
26450 elif test x
$lib_type != xshared
; then
26451 if test -f "$dir/lib$name.$libext"; then
26453 found_a
="$dir/lib$name.$libext"
26454 if test -f "$dir/lib$name.la"; then
26455 found_la
="$dir/lib$name.la"
26461 if test "X$found_dir" != "X"; then
26466 if test "X$found_dir" != "X"; then
26467 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$found_dir -l$name"
26468 if test "X$found_so" != "X"; then
26469 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
26470 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
26473 for x
in $ltrpathdirs; do
26474 if test "X$x" = "X$found_dir"; then
26479 if test -z "$haveit"; then
26480 ltrpathdirs
="$ltrpathdirs $found_dir"
26482 if test "$hardcode_direct" = yes; then
26483 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
26485 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
26486 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
26488 for x
in $rpathdirs; do
26489 if test "X$x" = "X$found_dir"; then
26494 if test -z "$haveit"; then
26495 rpathdirs
="$rpathdirs $found_dir"
26499 for x
in $LDFLAGS $LIBXXHASH; do
26501 acl_save_prefix
="$prefix"
26502 prefix
="$acl_final_prefix"
26503 acl_save_exec_prefix
="$exec_prefix"
26504 exec_prefix
="$acl_final_exec_prefix"
26506 exec_prefix
="$acl_save_exec_prefix"
26507 prefix
="$acl_save_prefix"
26509 if test "X$x" = "X-L$found_dir"; then
26514 if test -z "$haveit"; then
26515 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir"
26517 if test "$hardcode_minus_L" != no
; then
26518 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
26520 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
26526 if test "X$found_a" != "X"; then
26527 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_a"
26529 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir -l$name"
26532 additional_includedir
=
26533 case "$found_dir" in
26535 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
26536 additional_includedir
="$basedir/include"
26539 if test "X$additional_includedir" != "X"; then
26540 if test "X$additional_includedir" != "X/usr/include"; then
26542 if test "X$additional_includedir" = "X/usr/local/include"; then
26543 if test -n "$GCC"; then
26545 linux
*) haveit
=yes;;
26549 if test -z "$haveit"; then
26550 for x
in $CPPFLAGS $INCXXHASH; do
26552 acl_save_prefix
="$prefix"
26553 prefix
="$acl_final_prefix"
26554 acl_save_exec_prefix
="$exec_prefix"
26555 exec_prefix
="$acl_final_exec_prefix"
26557 exec_prefix
="$acl_save_exec_prefix"
26558 prefix
="$acl_save_prefix"
26560 if test "X$x" = "X-I$additional_includedir"; then
26565 if test -z "$haveit"; then
26566 if test -d "$additional_includedir"; then
26567 INCXXHASH
="${INCXXHASH}${INCXXHASH:+ }-I$additional_includedir"
26573 if test -n "$found_la"; then
26574 save_libdir
="$libdir"
26575 case "$found_la" in
26576 */* |
*\\*) .
"$found_la" ;;
26577 *) .
"./$found_la" ;;
26579 libdir
="$save_libdir"
26580 for dep
in $dependency_libs; do
26583 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
26584 if test "X$additional_libdir" != "X/usr/lib"; then
26586 if test "X$additional_libdir" = "X/usr/local/lib"; then
26587 if test -n "$GCC"; then
26589 linux
*) haveit
=yes;;
26593 if test -z "$haveit"; then
26595 for x
in $LDFLAGS $LIBXXHASH; do
26597 acl_save_prefix
="$prefix"
26598 prefix
="$acl_final_prefix"
26599 acl_save_exec_prefix
="$exec_prefix"
26600 exec_prefix
="$acl_final_exec_prefix"
26602 exec_prefix
="$acl_save_exec_prefix"
26603 prefix
="$acl_save_prefix"
26605 if test "X$x" = "X-L$additional_libdir"; then
26610 if test -z "$haveit"; then
26611 if test -d "$additional_libdir"; then
26612 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$additional_libdir"
26616 for x
in $LDFLAGS $LTLIBXXHASH; do
26618 acl_save_prefix
="$prefix"
26619 prefix
="$acl_final_prefix"
26620 acl_save_exec_prefix
="$exec_prefix"
26621 exec_prefix
="$acl_final_exec_prefix"
26623 exec_prefix
="$acl_save_exec_prefix"
26624 prefix
="$acl_save_prefix"
26626 if test "X$x" = "X-L$additional_libdir"; then
26631 if test -z "$haveit"; then
26632 if test -d "$additional_libdir"; then
26633 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$additional_libdir"
26640 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
26641 if test "$enable_rpath" != no
; then
26643 for x
in $rpathdirs; do
26644 if test "X$x" = "X$dir"; then
26649 if test -z "$haveit"; then
26650 rpathdirs
="$rpathdirs $dir"
26653 for x
in $ltrpathdirs; do
26654 if test "X$x" = "X$dir"; then
26659 if test -z "$haveit"; then
26660 ltrpathdirs
="$ltrpathdirs $dir"
26665 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
26668 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
26671 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$dep"
26672 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$dep"
26678 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
26679 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
26680 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l$name"
26682 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l:lib$name.$libext"
26683 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l:lib$name.$libext"
26690 if test "X$rpathdirs" != "X"; then
26691 if test -n "$hardcode_libdir_separator"; then
26693 for found_dir
in $rpathdirs; do
26694 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
26696 acl_save_libdir
="$libdir"
26698 eval flag
=\"$hardcode_libdir_flag_spec\"
26699 libdir
="$acl_save_libdir"
26700 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
26702 for found_dir
in $rpathdirs; do
26703 acl_save_libdir
="$libdir"
26704 libdir
="$found_dir"
26705 eval flag
=\"$hardcode_libdir_flag_spec\"
26706 libdir
="$acl_save_libdir"
26707 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
26711 if test "X$ltrpathdirs" != "X"; then
26712 for found_dir
in $ltrpathdirs; do
26713 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-R$found_dir"
26718 ac_save_CPPFLAGS
="$CPPFLAGS"
26720 for element
in $INCXXHASH; do
26722 for x
in $CPPFLAGS; do
26724 acl_save_prefix
="$prefix"
26725 prefix
="$acl_final_prefix"
26726 acl_save_exec_prefix
="$exec_prefix"
26727 exec_prefix
="$acl_final_exec_prefix"
26729 exec_prefix
="$acl_save_exec_prefix"
26730 prefix
="$acl_save_prefix"
26732 if test "X$x" = "X$element"; then
26737 if test -z "$haveit"; then
26738 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
26743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxxhash" >&5
26744 $as_echo_n "checking for libxxhash... " >&6; }
26745 if ${ac_cv_libxxhash+:} false
; then :
26746 $as_echo_n "(cached) " >&6
26749 ac_save_LIBS
="$LIBS"
26750 LIBS
="$LIBS $LIBXXHASH"
26751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26752 /* end confdefs.h. */
26753 #include <xxhash.h>
26757 XXH32("foo", 3, 0);
26763 if ac_fn_c_try_link
"$LINENO"; then :
26764 ac_cv_libxxhash
=yes
26768 rm -f core conftest.err conftest.
$ac_objext \
26769 conftest
$ac_exeext conftest.
$ac_ext
26770 LIBS
="$ac_save_LIBS"
26773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxxhash" >&5
26774 $as_echo "$ac_cv_libxxhash" >&6; }
26775 if test "$ac_cv_libxxhash" = yes; then
26778 $as_echo "#define HAVE_LIBXXHASH 1" >>confdefs.h
26780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libxxhash" >&5
26781 $as_echo_n "checking how to link with libxxhash... " >&6; }
26782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXXHASH" >&5
26783 $as_echo "$LIBXXHASH" >&6; }
26786 CPPFLAGS
="$ac_save_CPPFLAGS"
26796 if test "$HAVE_LIBXXHASH" != yes; then
26797 if test "$with_xxhash" = yes; then
26798 as_fn_error $?
"xxhash is missing or unusable" "$LINENO" 5
26801 if test "x$with_xxhash" = "xauto"; then
26802 with_xxhash
="$HAVE_LIBXXHASH"
26806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
26807 $as_echo_n "checking whether to use xxhash... " >&6; }
26808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
26809 $as_echo "$with_xxhash" >&6; }
26812 # Check the return and argument types of ptrace.
26815 for ac_header
in sys
/ptrace.h ptrace.h
26817 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26818 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26819 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
26820 cat >>confdefs.h
<<_ACEOF
26821 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26829 gdb_ptrace_headers
='
26830 #include <sys/types.h>
26831 #if HAVE_SYS_PTRACE_H
26832 # include <sys/ptrace.h>
26835 # include <unistd.h>
26839 # Check return type. Varargs (used on GNU/Linux) conflict with the
26840 # empty argument list, so check for that explicitly.
26841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
26842 $as_echo_n "checking return type of ptrace... " >&6; }
26843 if ${gdb_cv_func_ptrace_ret+:} false
; then :
26844 $as_echo_n "(cached) " >&6
26846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26847 /* end confdefs.h. */
26848 Â $gdb_ptrace_headers
26852 extern long ptrace (enum __ptrace_request, ...);
26858 if ac_fn_c_try_compile
"$LINENO"; then :
26859 gdb_cv_func_ptrace_ret
='long'
26861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26862 /* end confdefs.h. */
26863 $gdb_ptrace_headers
26867 extern int ptrace ();
26873 if ac_fn_c_try_compile
"$LINENO"; then :
26874 gdb_cv_func_ptrace_ret
='int'
26876 gdb_cv_func_ptrace_ret
='long'
26879 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26882 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
26886 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
26889 cat >>confdefs.h
<<_ACEOF
26890 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
26894 # Check argument types.
26895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
26896 $as_echo_n "checking types of arguments for ptrace... " >&6; }
26897 if ${gdb_cv_func_ptrace_args+:} false
; then :
26898 $as_echo_n "(cached) " >&6
26900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26901 /* end confdefs.h. */
26902 $gdb_ptrace_headers
26906 extern long ptrace (enum __ptrace_request, ...);
26912 if ac_fn_c_try_compile
"$LINENO"; then :
26913 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
26915 for gdb_arg1
in 'int' 'long'; do
26916 for gdb_arg2
in 'pid_t' 'int' 'long'; do
26917 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
26918 for gdb_arg4
in 'int' 'long' 'void *'; do
26919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26920 /* end confdefs.h. */
26921 $gdb_ptrace_headers
26925 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
26931 if ac_fn_c_try_compile
"$LINENO"; then :
26932 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
26936 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26938 for gdb_arg5
in 'int *' 'int' 'long'; do
26939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26940 /* end confdefs.h. */
26941 $gdb_ptrace_headers
26945 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
26951 if ac_fn_c_try_compile
"$LINENO"; then :
26952 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
26956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26962 # Provide a safe default value.
26963 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
26966 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
26970 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
26972 ac_save_IFS
=$IFS; IFS
=','
26973 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
26977 cat >>confdefs.h
<<_ACEOF
26978 #define PTRACE_TYPE_ARG1 $1
26982 cat >>confdefs.h
<<_ACEOF
26983 #define PTRACE_TYPE_ARG3 $3
26987 cat >>confdefs.h
<<_ACEOF
26988 #define PTRACE_TYPE_ARG4 $4
26991 if test -n "$5"; then
26993 cat >>confdefs.h
<<_ACEOF
26994 #define PTRACE_TYPE_ARG5 $5
27000 if test "$cross_compiling" = no
; then
27001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
27002 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
27003 if ${ac_cv_func_setpgrp_void+:} false
; then :
27004 $as_echo_n "(cached) " >&6
27006 if test "$cross_compiling" = yes; then :
27007 as_fn_error $?
"cannot check setpgrp when cross compiling" "$LINENO" 5
27009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27010 /* end confdefs.h. */
27011 $ac_includes_default
27015 /* If this system has a BSD-style setpgrp which takes arguments,
27016 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
27017 exit successfully. */
27018 return setpgrp (1,1) != -1;
27023 if ac_fn_c_try_run
"$LINENO"; then :
27024 ac_cv_func_setpgrp_void
=no
27026 ac_cv_func_setpgrp_void
=yes
27028 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27029 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
27034 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
27035 if test $ac_cv_func_setpgrp_void = yes; then
27037 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
27042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
27043 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
27044 if ${ac_cv_func_setpgrp_void+:} false
; then :
27045 $as_echo_n "(cached) " >&6
27047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27048 /* end confdefs.h. */
27049 #include <unistd.h>
27053 if (setpgrp(1,1) == -1)
27062 if ac_fn_c_try_compile
"$LINENO"; then :
27063 ac_cv_func_setpgrp_void
=no
27065 ac_cv_func_setpgrp_void
=yes
27068 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
27072 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
27073 if test "$ac_cv_func_setpgrp_void" = yes; then
27074 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
27079 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
27080 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
27081 #include <sys/proc.h>
27084 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes
; then :
27086 cat >>confdefs.h
<<_ACEOF
27087 #define HAVE_STRUCT_THREAD_TD_PCB 1
27094 # See if <sys/lwp.h> defines `struct lwp`.
27095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
27096 $as_echo_n "checking for struct lwp... " >&6; }
27097 if ${gdb_cv_struct_lwp+:} false
; then :
27098 $as_echo_n "(cached) " >&6
27100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27101 /* end confdefs.h. */
27102 #include <sys/param.h>
27104 #include <sys/lwp.h>
27114 if ac_fn_c_try_compile
"$LINENO"; then :
27115 gdb_cv_struct_lwp
=yes
27117 gdb_cv_struct_lwp
=no
27120 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
27124 $as_echo "$gdb_cv_struct_lwp" >&6; }
27125 if test "$gdb_cv_struct_lwp" = yes; then
27127 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
27131 # See if <machine/reg.h> degines `struct reg'.
27132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
27133 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
27134 if ${gdb_cv_struct_reg+:} false
; then :
27135 $as_echo_n "(cached) " >&6
27137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27138 /* end confdefs.h. */
27139 #include <sys/types.h>
27140 #include <machine/reg.h>
27150 if ac_fn_c_try_compile
"$LINENO"; then :
27151 gdb_cv_struct_reg
=yes
27153 gdb_cv_struct_reg
=no
27156 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
27160 $as_echo "$gdb_cv_struct_reg" >&6; }
27161 if test "$gdb_cv_struct_reg" = yes; then
27163 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
27167 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
27168 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
27169 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
27170 #include <machine/reg.h>
27172 if test "x$ac_cv_member_struct_reg_r_fs" = xyes
; then :
27174 cat >>confdefs.h
<<_ACEOF
27175 #define HAVE_STRUCT_REG_R_FS 1
27180 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
27181 #include <machine/reg.h>
27183 if test "x$ac_cv_member_struct_reg_r_gs" = xyes
; then :
27185 cat >>confdefs.h
<<_ACEOF
27186 #define HAVE_STRUCT_REG_R_GS 1
27193 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
27194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
27195 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
27196 if ${gdb_cv_have_ptrace_getregs+:} false
; then :
27197 $as_echo_n "(cached) " >&6
27199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27200 /* end confdefs.h. */
27201 #include <sys/ptrace.h>
27210 if ac_fn_c_try_compile
"$LINENO"; then :
27211 gdb_cv_have_ptrace_getregs
=yes
27213 gdb_cv_have_ptrace_getregs
=no
27216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
27221 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
27222 if test "$gdb_cv_have_ptrace_getregs" = yes; then
27224 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
27228 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
27229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
27230 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
27231 if ${gdb_cv_have_ptrace_getfpxregs+:} false
; then :
27232 $as_echo_n "(cached) " >&6
27234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27235 /* end confdefs.h. */
27236 #include <sys/ptrace.h>
27245 if ac_fn_c_try_compile
"$LINENO"; then :
27246 gdb_cv_have_ptrace_getfpxregs
=yes
27248 gdb_cv_have_ptrace_getfpxregs
=no
27251 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
27256 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
27257 if test "$gdb_cv_have_ptrace_getfpxregs" = yes; then
27259 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
27263 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
27264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
27265 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
27266 if ${gdb_cv_have_pt_getdbregs+:} false
; then :
27267 $as_echo_n "(cached) " >&6
27269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27270 /* end confdefs.h. */
27271 #include <sys/types.h>
27272 #include <sys/ptrace.h>
27282 if ac_fn_c_try_compile
"$LINENO"; then :
27283 gdb_cv_have_pt_getdbregs
=yes
27285 gdb_cv_have_pt_getdbregs
=no
27288 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
27293 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
27294 if test "$gdb_cv_have_pt_getdbregs" = yes; then
27296 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
27300 # See if <sys/ptrace.h> supports LWP names on FreeBSD
27301 # Older FreeBSD versions don't have the pl_tdname member of
27302 # `struct ptrace_lwpinfo'.
27303 ac_fn_c_check_member
"$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
27305 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes
; then :
27307 cat >>confdefs.h
<<_ACEOF
27308 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
27315 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
27316 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
27318 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>
27320 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes
; then :
27322 cat >>confdefs.h
<<_ACEOF
27323 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
27330 # Check if the compiler supports the `long long' type.
27332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
27333 $as_echo_n "checking for long long support in compiler... " >&6; }
27334 if ${gdb_cv_c_long_long+:} false
; then :
27335 $as_echo_n "(cached) " >&6
27337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27338 /* end confdefs.h. */
27339 extern long long foo;
27343 switch (foo & 2) { case 0: return 1; }
27348 if ac_fn_c_try_compile
"$LINENO"; then :
27349 gdb_cv_c_long_long
=yes
27351 gdb_cv_c_long_long
=no
27353 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
27356 $as_echo "$gdb_cv_c_long_long" >&6; }
27357 if test "$gdb_cv_c_long_long" != yes; then
27358 # libdecnumber requires long long.
27359 as_fn_error $?
"Compiler must support long long for GDB." "$LINENO" 5
27362 # Check if the compiler and runtime support printing decfloats.
27364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
27365 $as_echo_n "checking for decfloat support in printf... " >&6; }
27366 if ${gdb_cv_printf_has_decfloat+:} false
; then :
27367 $as_echo_n "(cached) " >&6
27369 if test "$cross_compiling" = yes; then :
27370 gdb_cv_printf_has_decfloat
=no
27372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27373 /* end confdefs.h. */
27374 $ac_includes_default
27379 _Decimal32 d32 = 1.2345df;
27380 _Decimal64 d64 = 1.2345dd;
27381 _Decimal128 d128 = 1.2345dl;
27382 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
27383 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
27388 if ac_fn_c_try_run
"$LINENO"; then :
27389 gdb_cv_printf_has_decfloat
=yes
27391 gdb_cv_printf_has_decfloat
=no
27393 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27394 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
27399 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
27400 if test "$gdb_cv_printf_has_decfloat" = yes; then
27402 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
27406 # Check if the compiler supports the `long double' type. We can't use
27407 # AC_C_LONG_DOUBLE because that one does additional checks on the
27408 # constants defined in <float.h> that fail on some systems,
27409 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
27411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
27412 $as_echo_n "checking for long double support in compiler... " >&6; }
27413 if ${gdb_cv_c_long_double+:} false
; then :
27414 $as_echo_n "(cached) " >&6
27416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27417 /* end confdefs.h. */
27420 if ac_fn_c_try_compile
"$LINENO"; then :
27421 gdb_cv_c_long_double
=yes
27423 gdb_cv_c_long_double
=no
27425 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
27428 $as_echo "$gdb_cv_c_long_double" >&6; }
27429 if test "$gdb_cv_c_long_double" = yes; then
27431 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
27435 # Check if the compiler and runtime support printing long doubles.
27437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
27438 $as_echo_n "checking for long double support in printf... " >&6; }
27439 if ${gdb_cv_printf_has_long_double+:} false
; then :
27440 $as_echo_n "(cached) " >&6
27442 if test "$cross_compiling" = yes; then :
27443 gdb_cv_printf_has_long_double
=no
27445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27446 /* end confdefs.h. */
27447 $ac_includes_default
27452 long double f = 3.141592653;
27453 sprintf (buf, "%Lg", f);
27454 return (strncmp ("3.14159", buf, 7));
27459 if ac_fn_c_try_run
"$LINENO"; then :
27460 gdb_cv_printf_has_long_double
=yes
27462 gdb_cv_printf_has_long_double
=no
27464 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27465 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
27470 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
27471 if test "$gdb_cv_printf_has_long_double" = yes; then
27473 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
27477 # Check if the compiler and runtime support scanning long doubles.
27479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
27480 $as_echo_n "checking for long double support in scanf... " >&6; }
27481 if ${gdb_cv_scanf_has_long_double+:} false
; then :
27482 $as_echo_n "(cached) " >&6
27484 if test "$cross_compiling" = yes; then :
27485 gdb_cv_scanf_has_long_double
=no
27487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27488 /* end confdefs.h. */
27493 char *buf = "3.141592653";
27495 sscanf (buf, "%Lg", &f);
27496 return !(f > 3.14159 && f < 3.14160);
27501 if ac_fn_c_try_run
"$LINENO"; then :
27502 gdb_cv_scanf_has_long_double
=yes
27504 gdb_cv_scanf_has_long_double
=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_scanf_has_long_double" >&5
27512 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
27513 if test "$gdb_cv_scanf_has_long_double" = yes; then
27515 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
27521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
27522 $as_echo_n "checking for -bbigtoc option... " >&6; }
27523 if ${gdb_cv_bigtoc+:} false
; then :
27524 $as_echo_n "(cached) " >&6
27526 SAVE_LDFLAGS
=$LDFLAGS
27529 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
27530 *) gdb_cv_bigtoc
=-bbigtoc ;;
27533 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
27534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27535 /* end confdefs.h. */
27545 if ac_fn_c_try_link
"$LINENO"; then :
27551 rm -f core conftest.err conftest.
$ac_objext \
27552 conftest
$ac_exeext conftest.
$ac_ext
27553 LDFLAGS
="${SAVE_LDFLAGS}"
27556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
27557 $as_echo "$gdb_cv_bigtoc" >&6; }
27558 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
27562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
27563 $as_echo_n "checking for the dynamic export flag... " >&6; }
27565 if test "${gdb_native}" = yes; then
27566 # The dynamically loaded libthread_db needs access to symbols in the gdb
27567 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
27568 # may not be supported there.
27569 old_LDFLAGS
="$LDFLAGS"
27570 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
27571 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
27572 LDFLAGS
="$LDFLAGS $RDYNAMIC"
27573 if test "${have_libpython}" = no
; then
27574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27575 /* end confdefs.h. */
27585 if ac_fn_c_try_link
"$LINENO"; then :
27588 rm -f core conftest.err conftest.
$ac_objext \
27589 conftest
$ac_exeext conftest.
$ac_ext
27591 # Workaround http://bugs.python.org/issue4434 where static
27592 # libpythonX.Y.a would get its symbols required for
27593 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
27594 # Problem does not happen for the recommended libpythonX.Y.so linkage.
27596 # Note the workaround for Python
27597 # http://bugs.python.org/issue10112 earlier has removed
27598 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
27599 # here too, as otherwise it'd make this -Wl,--dynamic-list test
27601 old_CFLAGS
="$CFLAGS"
27602 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
27604 LIBS
="$LIBS $PYTHON_LIBS"
27605 old_CPPFLAGS
="$CPPFLAGS"
27606 CPPFLAGS
="$CPPFLAGS $PYTHON_CPPFLAGS"
27607 if test "$cross_compiling" = yes; then :
27610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27611 /* end confdefs.h. */
27612 #include "Python.h"
27618 err = PyRun_SimpleString ("import ctypes\n");
27620 return err == 0 ? 0 : 1;
27625 if ac_fn_c_try_run
"$LINENO"; then :
27628 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27629 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27633 CFLAGS
="$old_CFLAGS"
27634 CPPFLAGS
="$old_CPPFLAGS"
27636 LDFLAGS
="$old_LDFLAGS"
27638 if $dynamic_list; then
27639 found
="-Wl,--dynamic-list"
27640 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
27643 RDYNAMIC
="-rdynamic"
27646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
27647 $as_echo "$found" >&6; }
27649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether execinfo.h backtrace is available" >&5
27650 $as_echo_n "checking whether execinfo.h backtrace is available... " >&6; }
27651 if ${gdb_cv_execinfo_backtrace+:} false
; then :
27652 $as_echo_n "(cached) " >&6
27654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27655 /* end confdefs.h. */
27657 #include <execinfo.h>
27665 f = backtrace (b, 2);
27666 backtrace_symbols_fd (b, f, 2);
27672 if ac_fn_c_try_link
"$LINENO"; then :
27673 gdb_cv_execinfo_backtrace
=yes
27675 gdb_cv_execinfo_backtrace
=no
27677 rm -f core conftest.err conftest.
$ac_objext \
27678 conftest
$ac_exeext conftest.
$ac_ext
27680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_execinfo_backtrace" >&5
27681 $as_echo "$gdb_cv_execinfo_backtrace" >&6; }
27682 if test "$gdb_cv_execinfo_backtrace" = yes; then
27684 $as_echo "#define HAVE_EXECINFO_BACKTRACE 1" >>confdefs.h
27689 if test "${build}" = "${host}" -a "${host}" = "${target}" ; then
27692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
27693 $as_echo_n "checking for AiX thread debugging library... " >&6; }
27694 if ${gdb_cv_have_aix_thread_debug+:} false
; then :
27695 $as_echo_n "(cached) " >&6
27697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27698 /* end confdefs.h. */
27699 #include <sys/pthdebug.h>
27703 #ifndef PTHDB_VERSION_3
27711 if ac_fn_c_try_compile
"$LINENO"; then :
27712 gdb_cv_have_aix_thread_debug
=yes
27714 gdb_cv_have_aix_thread_debug
=no
27717 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
27722 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
27723 if test "$gdb_cv_have_aix_thread_debug" = yes; then
27724 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
27725 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
27726 LIBS
="$LIBS -lpthdebug"
27728 # Older versions of AIX do not provide the declaration for
27729 # the getthrds function (it appears that it was introduced
27731 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
27733 if test "x$ac_cv_have_decl_getthrds" = xyes
; then :
27739 cat >>confdefs.h
<<_ACEOF
27740 #define HAVE_DECL_GETTHRDS $ac_have_decl
27749 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
27750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
27751 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
27752 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false
; then :
27753 $as_echo_n "(cached) " >&6
27755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27756 /* end confdefs.h. */
27757 #include <thread_db.h>
27761 int i = TD_NOTALLOC;
27767 if ac_fn_c_try_compile
"$LINENO"; then :
27768 gdb_cv_thread_db_h_has_td_notalloc
=yes
27770 gdb_cv_thread_db_h_has_td_notalloc
=no
27773 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
27777 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
27779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
27780 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
27781 if ${gdb_cv_thread_db_h_has_td_version+:} false
; then :
27782 $as_echo_n "(cached) " >&6
27784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27785 /* end confdefs.h. */
27786 #include <thread_db.h>
27790 int i = TD_VERSION;
27796 if ac_fn_c_try_compile
"$LINENO"; then :
27797 gdb_cv_thread_db_h_has_td_version
=yes
27799 gdb_cv_thread_db_h_has_td_version
=no
27802 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
27806 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
27808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
27809 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
27810 if ${gdb_cv_thread_db_h_has_td_notls+:} false
; then :
27811 $as_echo_n "(cached) " >&6
27813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27814 /* end confdefs.h. */
27815 #include <thread_db.h>
27825 if ac_fn_c_try_compile
"$LINENO"; then :
27826 gdb_cv_thread_db_h_has_td_notls
=yes
27828 gdb_cv_thread_db_h_has_td_notls
=no
27831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
27835 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
27837 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
27839 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
27842 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
27844 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
27847 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
27849 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
27862 cat >>confdefs.h
<<_ACEOF
27863 #define GDBINIT "$gdbinit"
27868 cat >>confdefs.h
<<_ACEOF
27869 #define GDBEARLYINIT ".gdbearlyinit"
27874 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
27875 # except that the argument to --with-sysroot is optional.
27876 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
27877 if test "x$with_sysroot" = xyes
; then
27878 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
27881 # Check whether --with-sysroot was given.
27882 if test "${with_sysroot+set}" = set; then :
27883 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
27885 TARGET_SYSTEM_ROOT
=
27889 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
27890 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27891 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
27892 ac_define_dir
=`eval echo $ac_define_dir`
27894 cat >>confdefs.h
<<_ACEOF
27895 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
27901 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
27902 if test "x$prefix" = xNONE
; then
27903 test_prefix
=/usr
/local
27905 test_prefix
=$prefix
27908 test_prefix
=$exec_prefix
27911 case ${ac_define_dir} in
27912 "${test_prefix}"|
"${test_prefix}/"*|\
27913 '${exec_prefix}'|
'${exec_prefix}/'*)
27918 cat >>confdefs.h
<<_ACEOF
27919 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
27926 # Check whether --with-system-gdbinit was given.
27927 if test "${with_system_gdbinit+set}" = set; then :
27928 withval
=$with_system_gdbinit;
27929 SYSTEM_GDBINIT
=$withval
27935 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
27936 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27937 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
27938 ac_define_dir
=`eval echo $ac_define_dir`
27940 cat >>confdefs.h
<<_ACEOF
27941 #define SYSTEM_GDBINIT "$ac_define_dir"
27947 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
27948 if test "x$prefix" = xNONE
; then
27949 test_prefix
=/usr
/local
27951 test_prefix
=$prefix
27954 test_prefix
=$exec_prefix
27957 case ${ac_define_dir} in
27958 "${test_prefix}"|
"${test_prefix}/"*|\
27959 '${exec_prefix}'|
'${exec_prefix}/'*)
27964 cat >>confdefs.h
<<_ACEOF
27965 #define SYSTEM_GDBINIT_RELOCATABLE $value
27972 # Check whether --with-system-gdbinit-dir was given.
27973 if test "${with_system_gdbinit_dir+set}" = set; then :
27974 withval
=$with_system_gdbinit_dir;
27975 SYSTEM_GDBINIT_DIR
=$withval
27977 SYSTEM_GDBINIT_DIR
=
27981 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
27982 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27983 ac_define_dir
=`eval echo $SYSTEM_GDBINIT_DIR`
27984 ac_define_dir
=`eval echo $ac_define_dir`
27986 cat >>confdefs.h
<<_ACEOF
27987 #define SYSTEM_GDBINIT_DIR "$ac_define_dir"
27993 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
27994 if test "x$prefix" = xNONE
; then
27995 test_prefix
=/usr
/local
27997 test_prefix
=$prefix
28000 test_prefix
=$exec_prefix
28003 case ${ac_define_dir} in
28004 "${test_prefix}"|
"${test_prefix}/"*|\
28005 '${exec_prefix}'|
'${exec_prefix}/'*)
28010 cat >>confdefs.h
<<_ACEOF
28011 #define SYSTEM_GDBINIT_DIR_RELOCATABLE $value
28019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the compiler type" >&5
28020 $as_echo_n "checking the compiler type... " >&6; }
28021 if ${gdb_cv_compiler_type+:} false
; then :
28022 $as_echo_n "(cached) " >&6
28024 gdb_cv_compiler_type
=unknown
28025 if test "$gdb_cv_compiler_type" = unknown
; then
28026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28027 /* end confdefs.h. */
28033 #if !defined __GNUC__ || defined __clang__
28041 if ac_fn_c_try_compile
"$LINENO"; then :
28042 gdb_cv_compiler_type
=gcc
28044 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28047 if test "$gdb_cv_compiler_type" = unknown
; then
28048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28049 /* end confdefs.h. */
28063 if ac_fn_c_try_compile
"$LINENO"; then :
28064 gdb_cv_compiler_type
=clang
28066 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_compiler_type" >&5
28071 $as_echo "$gdb_cv_compiler_type" >&6; }
28073 GDB_COMPILER_TYPE
="$gdb_cv_compiler_type"
28076 # Check whether --enable-werror was given.
28077 if test "${enable_werror+set}" = set; then :
28078 enableval
=$enable_werror; case "${enableval}" in
28079 yes | y
) ERROR_ON_WARNING
="yes" ;;
28080 no | n
) ERROR_ON_WARNING
="no" ;;
28081 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
28086 # Enable -Werror by default when using gcc. Turn it off for releases.
28087 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
28088 ERROR_ON_WARNING
=yes
28092 if test "${ERROR_ON_WARNING}" = yes ; then
28093 WERROR_CFLAGS
="-Werror"
28096 # The options we'll try to enable.
28097 build_warnings
="-Wall -Wpointer-arith \
28098 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
28099 -Wno-switch -Wno-char-subscripts \
28100 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
28101 -Wno-sign-compare -Wno-error=maybe-uninitialized \
28102 -Wno-mismatched-tags \
28103 -Wno-error=deprecated-register \
28104 -Wsuggest-override \
28105 -Wimplicit-fallthrough=3 \
28106 -Wduplicated-cond \
28108 -Wdeprecated-copy \
28109 -Wdeprecated-copy-dtor \
28111 -Wmissing-declarations \
28112 -Wstrict-null-sentinel \
28115 # The -Wmissing-prototypes flag will be accepted by GCC, but results
28116 # in a warning being printed about the flag not being valid for C++,
28117 # this is something to do with using ccache, and argument ordering.
28118 if test "$GDB_COMPILER_TYPE" != gcc
; then
28119 build_warnings
="$build_warnings -Wmissing-prototypes"
28124 # Enable -Wno-format by default when using gcc on mingw since many
28125 # GCC versions complain about %I64.
28126 build_warnings
="$build_warnings -Wno-format" ;;
28128 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
28129 # doesn't understand.
28130 build_warnings
="$build_warnings -Wno-unknown-pragmas"
28131 # Solaris 11 <unistd.h> marks vfork deprecated.
28132 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
28134 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
28135 # but there's a special case for this below.
28136 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
28139 # Check whether --enable-build-warnings was given.
28140 if test "${enable_build_warnings+set}" = set; then :
28141 enableval
=$enable_build_warnings; case "${enableval}" in
28143 no
) build_warnings
="-w";;
28144 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
28145 build_warnings
="${build_warnings} ${t}";;
28146 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
28147 build_warnings
="${t} ${build_warnings}";;
28148 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
28150 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
28151 echo "Setting compiler warning flags = $build_warnings" 6>&1
28154 # Check whether --enable-gdb-build-warnings was given.
28155 if test "${enable_gdb_build_warnings+set}" = set; then :
28156 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
28158 no
) build_warnings
="-w";;
28159 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
28160 build_warnings
="${build_warnings} ${t}";;
28161 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
28162 build_warnings
="${t} ${build_warnings}";;
28163 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
28165 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
28166 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
28170 # The set of warnings supported by a C++ compiler is not the same as
28171 # of the C compiler.
28173 ac_cpp
='$CXXCPP $CPPFLAGS'
28174 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28175 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28176 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
28180 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
28182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
28183 $as_echo_n "checking compiler warning flags... " >&6; }
28184 # Separate out the -Werror flag as some files just cannot be
28185 # compiled with it enabled.
28186 for w
in ${build_warnings}; do
28187 # GCC does not complain about -Wno-unknown-warning. Invert
28188 # and test -Wunknown-warning instead.
28191 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
28192 -Wformat-nonliteral)
28193 # gcc requires -Wformat before -Wformat-nonliteral
28194 # will work, so stick them together.
28203 -Werr*) WERROR_CFLAGS
=-Werror ;;
28205 # Check whether GCC accepts it.
28206 saved_CFLAGS
="$CFLAGS"
28207 CFLAGS
="$CFLAGS -Werror $wtest"
28208 saved_CXXFLAGS
="$CXXFLAGS"
28209 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
28210 if test "x$w" = "x-Wunused-variable"; then
28211 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
28212 # fixed in GCC 4.9. This test is derived from the gdb
28213 # source code that triggered this bug in GCC.
28214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28215 /* end confdefs.h. */
28216 struct scoped_restore_base {};
28217 struct scoped_restore_tmpl : public scoped_restore_base {
28218 ~scoped_restore_tmpl() {}
28223 const scoped_restore_base &b = scoped_restore_tmpl();
28229 if ac_fn_cxx_try_compile
"$LINENO"; then :
28230 WARN_CFLAGS
="${WARN_CFLAGS} $w"
28232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28235 /* end confdefs.h. */
28245 if ac_fn_cxx_try_compile
"$LINENO"; then :
28246 WARN_CFLAGS
="${WARN_CFLAGS} $w"
28248 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28250 CFLAGS
="$saved_CFLAGS"
28251 CXXFLAGS
="$saved_CXXFLAGS"
28254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
28255 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
28261 ac_cpp='$CPP $CPPFLAGS'
28262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28268 # Check whether --enable-ubsan was given.
28269 if test "${enable_ubsan+set}" = set; then :
28270 enableval=$enable_ubsan;
28275 if test "x
$enable_ubsan" = xauto; then
28276 if $development; then
28281 ac_cpp='$CXXCPP $CPPFLAGS'
28282 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28283 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28284 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28286 if test "x
$enable_ubsan" = xyes; then
28287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
-fsanitize=undefined is accepted
" >&5
28288 $as_echo_n "checking whether
-fsanitize=undefined is accepted...
" >&6; }
28289 saved_CXXFLAGS="$CXXFLAGS"
28290 CXXFLAGS="$CXXFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
28291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28292 /* end confdefs.h. */
28302 if ac_fn_cxx_try_link "$LINENO"; then :
28308 rm -f core conftest.err conftest.$ac_objext \
28309 conftest$ac_exeext conftest.$ac_ext
28310 CXXFLAGS="$saved_CXXFLAGS"
28311 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $enable_ubsan" >&5
28312 $as_echo "$enable_ubsan" >&6; }
28313 if test "x
$enable_ubsan" = xyes; then
28314 WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
28315 CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined
"
28319 ac_cpp='$CPP $CPPFLAGS'
28320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28326 # In the Cygwin environment, we need some additional flags.
28327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
28328 $as_echo_n "checking
for cygwin...
" >&6; }
28329 if ${gdb_cv_os_cygwin+:} false; then :
28330 $as_echo_n "(cached
) " >&6
28332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28333 /* end confdefs.h. */
28335 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
28339 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
28340 $EGREP "^lose$
" >/dev/null 2>&1; then :
28341 gdb_cv_os_cygwin=yes
28343 gdb_cv_os_cygwin=no
28348 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
28349 $as_echo "$gdb_cv_os_cygwin" >&6; }
28352 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
28354 *go32* ) SER_HARDWIRE=ser-go32.o ;;
28355 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
28356 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
28357 *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o
" ;;
28361 # libreadline needs libuser32.a in a cygwin environment
28363 if test x"$gdb_cv_os_cygwin" = xyes; then
28364 WIN32LIBS="-luser32"
28365 case "${target}" in
28366 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
28371 # The ser-tcp.c module requires sockets.
28372 # Note that WIN32APILIBS is set by GDB_AC_COMMON.
28373 WIN32LIBS="$WIN32LIBS $WIN32APILIBS"
28375 # Add ELF support to GDB, but only if BFD includes ELF support.
28378 OLD_LDFLAGS=$LDFLAGS
28381 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
28382 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
28383 # always want our bfd.
28384 CFLAGS="-I${srcdir}/..
/include
-I..
/bfd
-I${srcdir}/..
/bfd
$CFLAGS"
28385 LDFLAGS="-L..
/bfd
-L..
/libiberty
$LDFLAGS"
28386 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
28387 LIBS="-lbfd -liberty $intl $LIBS"
28388 CC=".
/libtool
--quiet --mode=link
$CC"
28389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ELF support
in BFD
" >&5
28390 $as_echo_n "checking
for ELF support
in BFD...
" >&6; }
28391 if ${gdb_cv_var_elf+:} false; then :
28392 $as_echo_n "(cached
) " >&6
28394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28395 /* end confdefs.h. */
28396 #include <stdlib.h>
28397 #include <string.h>
28399 #include "elf-bfd.h
"
28403 return bfd_get_elf_phdr_upper_bound (NULL);
28409 if ac_fn_c_try_link "$LINENO"; then :
28415 rm -f core conftest.err conftest.$ac_objext \
28416 conftest$ac_exeext conftest.$ac_ext
28419 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_var_elf" >&5
28420 $as_echo "$gdb_cv_var_elf" >&6; }
28423 LDFLAGS=$OLD_LDFLAGS
28425 if test "$gdb_cv_var_elf" = yes; then
28426 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o \
28427 gcore-elf.o elf-none-tdep.o
"
28429 $as_echo "#define HAVE_ELF 1" >>confdefs.h
28431 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
28432 if test "$plugins" = "yes"; then
28433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
28434 $as_echo_n "checking for library containing dlopen... " >&6; }
28435 if ${ac_cv_search_dlopen+:} false
; then :
28436 $as_echo_n "(cached) " >&6
28438 ac_func_search_save_LIBS
=$LIBS
28439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28440 /* end confdefs.h. */
28442 /* Override any GCC internal prototype to avoid an error.
28443 Use char because int might match the return type of a GCC
28444 builtin and then its argument prototype would still apply. */
28457 for ac_lib
in '' dl
; do
28458 if test -z "$ac_lib"; then
28459 ac_res
="none required"
28462 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
28464 if ac_fn_c_try_link
"$LINENO"; then :
28465 ac_cv_search_dlopen
=$ac_res
28467 rm -f core conftest.err conftest.
$ac_objext \
28469 if ${ac_cv_search_dlopen+:} false
; then :
28473 if ${ac_cv_search_dlopen+:} false
; then :
28476 ac_cv_search_dlopen
=no
28478 rm conftest.
$ac_ext
28479 LIBS
=$ac_func_search_save_LIBS
28481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28482 $as_echo "$ac_cv_search_dlopen" >&6; }
28483 ac_res
=$ac_cv_search_dlopen
28484 if test "$ac_res" != no
; then :
28485 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
28492 # Add macho support to GDB, but only if BFD includes it.
28495 OLD_LDFLAGS
=$LDFLAGS
28498 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
28499 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
28500 # always want our bfd.
28501 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
28502 LDFLAGS
="-L../bfd -L../libiberty $LDFLAGS"
28503 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
28504 LIBS
="-lbfd -liberty $intl $LIBS"
28505 CC
="./libtool --quiet --mode=link $CC"
28506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
28507 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
28508 if ${gdb_cv_var_macho+:} false
; then :
28509 $as_echo_n "(cached) " >&6
28511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28512 /* end confdefs.h. */
28513 #include <stdlib.h>
28514 #include <string.h>
28516 #include "mach-o.h"
28520 return bfd_mach_o_lookup_command (NULL, 0, NULL);
28526 if ac_fn_c_try_link
"$LINENO"; then :
28527 gdb_cv_var_macho
=yes
28529 gdb_cv_var_macho
=no
28532 rm -f core conftest.err conftest.
$ac_objext \
28533 conftest
$ac_exeext conftest.
$ac_ext
28536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
28537 $as_echo "$gdb_cv_var_macho" >&6; }
28540 LDFLAGS
=$OLD_LDFLAGS
28542 if test "$gdb_cv_var_macho" = yes; then
28543 CONFIG_OBS
="$CONFIG_OBS machoread.o"
28546 # Add any host-specific objects to GDB.
28547 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
28549 # If building on ELF, look for lzma support for embedded compressed debug info.
28550 if test "$gdb_cv_var_elf" = yes; then
28552 # Check whether --with-lzma was given.
28553 if test "${with_lzma+set}" = set; then :
28554 withval
=$with_lzma;
28559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
28560 $as_echo_n "checking whether to use lzma... " >&6; }
28561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
28562 $as_echo "$with_lzma" >&6; }
28564 if test "${with_lzma}" != no
; then
28575 acl_save_prefix
="$prefix"
28576 prefix
="$acl_final_prefix"
28577 acl_save_exec_prefix
="$exec_prefix"
28578 exec_prefix
="$acl_final_exec_prefix"
28580 eval additional_includedir
=\"$includedir\"
28581 eval additional_libdir
=\"$libdir\"
28583 exec_prefix
="$acl_save_exec_prefix"
28584 prefix
="$acl_save_prefix"
28587 # Check whether --with-liblzma-prefix was given.
28588 if test "${with_liblzma_prefix+set}" = set; then :
28589 withval
=$with_liblzma_prefix;
28590 if test "X$withval" = "Xno"; then
28593 if test "X$withval" = "X"; then
28595 acl_save_prefix
="$prefix"
28596 prefix
="$acl_final_prefix"
28597 acl_save_exec_prefix
="$exec_prefix"
28598 exec_prefix
="$acl_final_exec_prefix"
28600 eval additional_includedir
=\"$includedir\"
28601 eval additional_libdir
=\"$libdir\"
28603 exec_prefix
="$acl_save_exec_prefix"
28604 prefix
="$acl_save_prefix"
28607 additional_includedir
="$withval/include"
28608 additional_libdir
="$withval/lib"
28615 # Check whether --with-liblzma-type was given.
28616 if test "${with_liblzma_type+set}" = set; then :
28617 withval
=$with_liblzma_type; with_liblzma_type
=$withval
28619 with_liblzma_type
=auto
28622 lib_type
=`eval echo \$with_liblzma_type`
28629 names_already_handled
=
28630 names_next_round
='lzma '
28631 while test -n "$names_next_round"; do
28632 names_this_round
="$names_next_round"
28634 for name
in $names_this_round; do
28636 for n
in $names_already_handled; do
28637 if test "$n" = "$name"; then
28638 already_handled
=yes
28642 if test -z "$already_handled"; then
28643 names_already_handled
="$names_already_handled $name"
28644 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
28645 eval value
=\"\
$HAVE_LIB$uppername\"
28646 if test -n "$value"; then
28647 if test "$value" = yes; then
28648 eval value
=\"\
$LIB$uppername\"
28649 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
28650 eval value
=\"\
$LTLIB$uppername\"
28651 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
28660 if test $use_additional = yes; then
28661 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
28662 found_dir
="$additional_libdir"
28663 found_so
="$additional_libdir/lib$name.$shlibext"
28664 if test -f "$additional_libdir/lib$name.la"; then
28665 found_la
="$additional_libdir/lib$name.la"
28667 elif test x
$lib_type != xshared
; then
28668 if test -f "$additional_libdir/lib$name.$libext"; then
28669 found_dir
="$additional_libdir"
28670 found_a
="$additional_libdir/lib$name.$libext"
28671 if test -f "$additional_libdir/lib$name.la"; then
28672 found_la
="$additional_libdir/lib$name.la"
28677 if test "X$found_dir" = "X"; then
28678 for x
in $LDFLAGS $LTLIBLZMA; do
28680 acl_save_prefix
="$prefix"
28681 prefix
="$acl_final_prefix"
28682 acl_save_exec_prefix
="$exec_prefix"
28683 exec_prefix
="$acl_final_exec_prefix"
28685 exec_prefix
="$acl_save_exec_prefix"
28686 prefix
="$acl_save_prefix"
28690 dir
=`echo "X$x" | sed -e 's/^X-L//'`
28691 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
28693 found_so
="$dir/lib$name.$shlibext"
28694 if test -f "$dir/lib$name.la"; then
28695 found_la
="$dir/lib$name.la"
28697 elif test x
$lib_type != xshared
; then
28698 if test -f "$dir/lib$name.$libext"; then
28700 found_a
="$dir/lib$name.$libext"
28701 if test -f "$dir/lib$name.la"; then
28702 found_la
="$dir/lib$name.la"
28708 if test "X$found_dir" != "X"; then
28713 if test "X$found_dir" != "X"; then
28714 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
28715 if test "X$found_so" != "X"; then
28716 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
28717 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
28720 for x
in $ltrpathdirs; do
28721 if test "X$x" = "X$found_dir"; then
28726 if test -z "$haveit"; then
28727 ltrpathdirs
="$ltrpathdirs $found_dir"
28729 if test "$hardcode_direct" = yes; then
28730 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
28732 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
28733 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
28735 for x
in $rpathdirs; do
28736 if test "X$x" = "X$found_dir"; then
28741 if test -z "$haveit"; then
28742 rpathdirs
="$rpathdirs $found_dir"
28746 for x
in $LDFLAGS $LIBLZMA; do
28748 acl_save_prefix
="$prefix"
28749 prefix
="$acl_final_prefix"
28750 acl_save_exec_prefix
="$exec_prefix"
28751 exec_prefix
="$acl_final_exec_prefix"
28753 exec_prefix
="$acl_save_exec_prefix"
28754 prefix
="$acl_save_prefix"
28756 if test "X$x" = "X-L$found_dir"; then
28761 if test -z "$haveit"; then
28762 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
28764 if test "$hardcode_minus_L" != no
; then
28765 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
28767 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
28773 if test "X$found_a" != "X"; then
28774 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
28776 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
28779 additional_includedir
=
28780 case "$found_dir" in
28782 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
28783 additional_includedir
="$basedir/include"
28786 if test "X$additional_includedir" != "X"; then
28787 if test "X$additional_includedir" != "X/usr/include"; then
28789 if test "X$additional_includedir" = "X/usr/local/include"; then
28790 if test -n "$GCC"; then
28792 linux
*) haveit
=yes;;
28796 if test -z "$haveit"; then
28797 for x
in $CPPFLAGS $INCLZMA; do
28799 acl_save_prefix
="$prefix"
28800 prefix
="$acl_final_prefix"
28801 acl_save_exec_prefix
="$exec_prefix"
28802 exec_prefix
="$acl_final_exec_prefix"
28804 exec_prefix
="$acl_save_exec_prefix"
28805 prefix
="$acl_save_prefix"
28807 if test "X$x" = "X-I$additional_includedir"; then
28812 if test -z "$haveit"; then
28813 if test -d "$additional_includedir"; then
28814 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
28820 if test -n "$found_la"; then
28821 save_libdir
="$libdir"
28822 case "$found_la" in
28823 */* |
*\\*) .
"$found_la" ;;
28824 *) .
"./$found_la" ;;
28826 libdir
="$save_libdir"
28827 for dep
in $dependency_libs; do
28830 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
28831 if test "X$additional_libdir" != "X/usr/lib"; then
28833 if test "X$additional_libdir" = "X/usr/local/lib"; then
28834 if test -n "$GCC"; then
28836 linux
*) haveit
=yes;;
28840 if test -z "$haveit"; then
28842 for x
in $LDFLAGS $LIBLZMA; do
28844 acl_save_prefix
="$prefix"
28845 prefix
="$acl_final_prefix"
28846 acl_save_exec_prefix
="$exec_prefix"
28847 exec_prefix
="$acl_final_exec_prefix"
28849 exec_prefix
="$acl_save_exec_prefix"
28850 prefix
="$acl_save_prefix"
28852 if test "X$x" = "X-L$additional_libdir"; then
28857 if test -z "$haveit"; then
28858 if test -d "$additional_libdir"; then
28859 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
28863 for x
in $LDFLAGS $LTLIBLZMA; do
28865 acl_save_prefix
="$prefix"
28866 prefix
="$acl_final_prefix"
28867 acl_save_exec_prefix
="$exec_prefix"
28868 exec_prefix
="$acl_final_exec_prefix"
28870 exec_prefix
="$acl_save_exec_prefix"
28871 prefix
="$acl_save_prefix"
28873 if test "X$x" = "X-L$additional_libdir"; then
28878 if test -z "$haveit"; then
28879 if test -d "$additional_libdir"; then
28880 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
28887 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
28888 if test "$enable_rpath" != no
; then
28890 for x
in $rpathdirs; do
28891 if test "X$x" = "X$dir"; then
28896 if test -z "$haveit"; then
28897 rpathdirs
="$rpathdirs $dir"
28900 for x
in $ltrpathdirs; do
28901 if test "X$x" = "X$dir"; then
28906 if test -z "$haveit"; then
28907 ltrpathdirs
="$ltrpathdirs $dir"
28912 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
28915 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
28918 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
28919 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
28925 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
28926 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
28927 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
28929 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l:lib$name.$libext"
28930 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l:lib$name.$libext"
28937 if test "X$rpathdirs" != "X"; then
28938 if test -n "$hardcode_libdir_separator"; then
28940 for found_dir
in $rpathdirs; do
28941 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
28943 acl_save_libdir
="$libdir"
28945 eval flag
=\"$hardcode_libdir_flag_spec\"
28946 libdir
="$acl_save_libdir"
28947 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
28949 for found_dir
in $rpathdirs; do
28950 acl_save_libdir
="$libdir"
28951 libdir
="$found_dir"
28952 eval flag
=\"$hardcode_libdir_flag_spec\"
28953 libdir
="$acl_save_libdir"
28954 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
28958 if test "X$ltrpathdirs" != "X"; then
28959 for found_dir
in $ltrpathdirs; do
28960 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
28965 ac_save_CPPFLAGS
="$CPPFLAGS"
28967 for element
in $INCLZMA; do
28969 for x
in $CPPFLAGS; do
28971 acl_save_prefix
="$prefix"
28972 prefix
="$acl_final_prefix"
28973 acl_save_exec_prefix
="$exec_prefix"
28974 exec_prefix
="$acl_final_exec_prefix"
28976 exec_prefix
="$acl_save_exec_prefix"
28977 prefix
="$acl_save_prefix"
28979 if test "X$x" = "X$element"; then
28984 if test -z "$haveit"; then
28985 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
28990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
28991 $as_echo_n "checking for liblzma... " >&6; }
28992 if ${ac_cv_liblzma+:} false
; then :
28993 $as_echo_n "(cached) " >&6
28996 ac_save_LIBS
="$LIBS"
28997 LIBS
="$LIBS $LIBLZMA"
28998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28999 /* end confdefs.h. */
29004 lzma_index_iter iter;
29005 lzma_index_iter_init (&iter, 0);
29006 lzma_mf_is_supported (LZMA_MF_HC3);
29011 if ac_fn_c_try_link
"$LINENO"; then :
29016 rm -f core conftest.err conftest.
$ac_objext \
29017 conftest
$ac_exeext conftest.
$ac_ext
29018 LIBS
="$ac_save_LIBS"
29021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
29022 $as_echo "$ac_cv_liblzma" >&6; }
29023 if test "$ac_cv_liblzma" = yes; then
29026 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
29028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
29029 $as_echo_n "checking how to link with liblzma... " >&6; }
29030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
29031 $as_echo "$LIBLZMA" >&6; }
29034 CPPFLAGS
="$ac_save_CPPFLAGS"
29044 if test "$HAVE_LIBLZMA" != yes; then
29045 if test "$with_lzma" = yes; then
29046 as_fn_error $?
"missing liblzma for --with-lzma" "$LINENO" 5
29052 LIBGUI
="../libgui/src/libgui.a"
29053 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
29062 *-*-cygwin* |
*-*-mingw* )
29071 if test "${enable_gdbtk}" = "yes"; then
29073 # Gdbtk must have an absolute path to srcdir in order to run
29074 # properly when not installed.
29077 GDBTK_SRC_DIR
=`pwd`
29082 # Ok, lets find the tcl configuration
29083 # First, look for one uninstalled.
29084 # the alternative search directory is invoked by --with-tcl
29087 if test x
"${no_tcl}" = x
; then
29088 # we reset no_tcl in case something fails here
29091 # Check whether --with-tcl was given.
29092 if test "${with_tcl+set}" = set; then :
29093 withval
=$with_tcl; with_tclconfig
=${withval}
29096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
29097 $as_echo_n "checking for Tcl configuration... " >&6; }
29098 if ${ac_cv_c_tclconfig+:} false
; then :
29099 $as_echo_n "(cached) " >&6
29103 # First check to see if --with-tcl was specified.
29105 *-*-cygwin*) platDir
="win" ;;
29106 *) platDir
="unix" ;;
29108 if test x
"${with_tclconfig}" != x
; then
29109 if test -f "${with_tclconfig}/tclConfig.sh" ; then
29110 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
29112 as_fn_error $?
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
29116 # then check for a private Tcl installation
29117 if test x
"${ac_cv_c_tclconfig}" = x
; then
29120 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
29121 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
29122 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
29124 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
29125 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
29126 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
29128 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
29129 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
29130 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
29131 if test -f "$i/$platDir/tclConfig.sh" ; then
29132 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
29138 # on Darwin, check in Framework installation locations
29139 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
29140 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
29141 `ls -d /Library/Frameworks 2>/dev/null` \
29142 `ls -d /Network/Library/Frameworks 2>/dev/null` \
29143 `ls -d /System/Library/Frameworks 2>/dev/null` \
29145 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
29146 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
29152 # check in a few common install locations
29153 if test x
"${ac_cv_c_tclconfig}" = x
; then
29154 for i
in `ls -d ${libdir} 2>/dev/null` \
29155 `ls -d ${exec_prefix}/lib 2>/dev/null` \
29156 `ls -d ${prefix}/lib 2>/dev/null` \
29157 `ls -d /usr/local/lib 2>/dev/null` \
29158 `ls -d /usr/contrib/lib 2>/dev/null` \
29159 `ls -d /usr/lib 2>/dev/null` \
29161 if test -f "$i/tclConfig.sh" ; then
29162 ac_cv_c_tclconfig
=`(cd $i; pwd)`
29168 # check in a few other private locations
29169 if test x
"${ac_cv_c_tclconfig}" = x
; then
29172 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
29173 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
29174 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
29175 if test -f "$i/$platDir/tclConfig.sh" ; then
29176 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
29185 if test x
"${ac_cv_c_tclconfig}" = x
; then
29186 TCL_BIN_DIR
="# no Tcl configs found"
29187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
29188 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
29191 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
29192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
29193 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
29198 # If $no_tk is nonempty, then we can't do Tk, and there is no
29199 # point to doing Tcl.
29202 # Ok, lets find the tk configuration
29203 # First, look for one uninstalled.
29204 # the alternative search directory is invoked by --with-tk
29207 if test x
"${no_tk}" = x
; then
29208 # we reset no_tk in case something fails here
29211 # Check whether --with-tk was given.
29212 if test "${with_tk+set}" = set; then :
29213 withval
=$with_tk; with_tkconfig
=${withval}
29216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
29217 $as_echo_n "checking for Tk configuration... " >&6; }
29218 if ${ac_cv_c_tkconfig+:} false
; then :
29219 $as_echo_n "(cached) " >&6
29223 # First check to see if --with-tkconfig was specified.
29224 if test x
"${with_tkconfig}" != x
; then
29225 if test -f "${with_tkconfig}/tkConfig.sh" ; then
29226 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
29228 as_fn_error $?
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
29232 # then check for a private Tk library
29234 *-*-cygwin*) platDir
="win" ;;
29235 *) platDir
="unix" ;;
29237 if test x
"${ac_cv_c_tkconfig}" = x
; then
29240 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
29241 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
29242 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
29244 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
29245 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
29246 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
29248 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
29249 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
29250 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
29251 if test -f "$i/$platDir/tkConfig.sh" ; then
29252 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
29258 # on Darwin, check in Framework installation locations
29259 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
29260 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
29261 `ls -d /Library/Frameworks 2>/dev/null` \
29262 `ls -d /Network/Library/Frameworks 2>/dev/null` \
29263 `ls -d /System/Library/Frameworks 2>/dev/null` \
29265 if test -f "$i/Tk.framework/tkConfig.sh" ; then
29266 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
29272 # check in a few common install locations
29273 if test x
"${ac_cv_c_tkconfig}" = x
; then
29274 for i
in `ls -d ${libdir} 2>/dev/null` \
29275 `ls -d ${exec_prefix}/lib 2>/dev/null` \
29276 `ls -d ${prefix}/lib 2>/dev/null` \
29277 `ls -d /usr/local/lib 2>/dev/null` \
29278 `ls -d /usr/contrib/lib 2>/dev/null` \
29279 `ls -d /usr/lib 2>/dev/null` \
29281 if test -f "$i/tkConfig.sh" ; then
29282 ac_cv_c_tkconfig
=`(cd $i; pwd)`
29287 # check in a few other private locations
29288 if test x
"${ac_cv_c_tkconfig}" = x
; then
29291 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
29292 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
29293 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
29294 if test -f "$i/$platDir/tkConfig.sh" ; then
29295 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
29304 if test x
"${ac_cv_c_tkconfig}" = x
; then
29305 TK_BIN_DIR
="# no Tk configs found"
29306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
29307 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
29310 TK_BIN_DIR
=${ac_cv_c_tkconfig}
29311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
29312 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
29317 if test -z "${no_tcl}" -a -z "${no_tk}"; then
29319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
29320 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
29322 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
29323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
29324 $as_echo "loading" >&6; }
29325 .
${TCL_BIN_DIR}/tclConfig.sh
29327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
29328 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
29331 # eval is required to do the TCL_DBGX substitution
29332 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
29333 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
29335 # If the TCL_BIN_DIR is the build directory (not the install directory),
29336 # then set the common variable name to the value of the build variables.
29337 # For example, the variable TCL_LIB_SPEC will be set to the value
29338 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
29339 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
29340 # installed and uninstalled version of Tcl.
29341 if test -f "${TCL_BIN_DIR}/Makefile" ; then
29342 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
29343 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
29344 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
29345 elif test "`uname -s`" = "Darwin"; then
29346 # If Tcl was built as a framework, attempt to use the libraries
29347 # from the framework at the given location so that linking works
29348 # against Tcl.framework installed in an arbitrary location.
29349 case ${TCL_DEFS} in
29351 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
29352 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
29353 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
29354 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
29355 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
29360 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
29361 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
29362 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
29368 # eval is required to do the TCL_DBGX substitution
29369 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
29370 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
29371 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
29372 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
29388 # Check for in-tree tcl
29395 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
29399 # Find Tcl private headers
29400 if test x
"${intree}" = xno
; then
29402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
29403 $as_echo_n "checking for Tcl private headers... " >&6; }
29405 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
29406 if test -f ${dir}/tclInt.h
; then
29410 if test x
"${private_dir}" = x
; then
29411 as_fn_error $?
"could not find private Tcl headers" "$LINENO" 5
29413 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
29414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
29415 $as_echo "${private_dir}" >&6; }
29418 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
29419 TCL_LIBRARY
="${TCL_LIB_SPEC}"
29422 # If building tcl in the same src tree, private headers
29423 # are not needed, but we need to be sure to use the right
29425 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
29426 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
29427 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
29434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
29435 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
29437 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
29438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
29439 $as_echo "loading" >&6; }
29440 .
${TK_BIN_DIR}/tkConfig.sh
29442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
29443 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
29446 # eval is required to do the TK_DBGX substitution
29447 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
29448 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
29450 # If the TK_BIN_DIR is the build directory (not the install directory),
29451 # then set the common variable name to the value of the build variables.
29452 # For example, the variable TK_LIB_SPEC will be set to the value
29453 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
29454 # instead of TK_BUILD_LIB_SPEC since it will work with both an
29455 # installed and uninstalled version of Tcl.
29456 if test -f "${TK_BIN_DIR}/Makefile" ; then
29457 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
29458 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
29459 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
29460 elif test "`uname -s`" = "Darwin"; then
29461 # If Tk was built as a framework, attempt to use the libraries
29462 # from the framework at the given location so that linking works
29463 # against Tk.framework installed in an arbitrary location.
29466 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
29467 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
29468 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
29469 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
29470 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
29475 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
29476 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
29477 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
29483 # eval is required to do the TK_DBGX substitution
29484 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
29485 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
29486 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
29487 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
29502 # Check for in-tree Tk
29504 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
29508 # Find Tk private headers
29509 if test x
"${intree}" = xno
; then
29511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
29512 $as_echo_n "checking for Tk private headers... " >&6; }
29514 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
29515 if test -f ${dir}/tkInt.h
; then
29519 if test x
"${private_dir}" = x
; then
29520 as_fn_error $?
"could not find Tk private headers" "$LINENO" 5
29522 TK_PRIVATE_INCLUDE
="-I${private_dir}"
29523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
29524 $as_echo "${private_dir}" >&6; }
29527 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
29528 TK_LIBRARY
=${TK_LIB_SPEC}
29531 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
29532 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
29533 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
29540 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
29542 # Include some libraries that Tcl and Tk want.
29543 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
29544 # Yes, the ordering seems wrong here. But it isn't.
29545 # TK_LIBS is the list of libraries that need to be linked
29546 # after Tcl/Tk. Note that this isn't put into LIBS. If it
29547 # were in LIBS then any link tests after this point would
29548 # try to include things like `$(LIBGUI)', which wouldn't work.
29549 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
29551 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
29552 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
29553 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
29554 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
29555 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
29556 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
29557 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
29559 if test x
"$gdb_cv_os_cygwin" = xyes
; then
29560 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
29561 WIN32LDAPP
="-Wl,--subsystem,console"
29562 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
29565 subdirs
="$subdirs gdbtk"
29577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
29578 $as_echo_n "checking for X... " >&6; }
29581 # Check whether --with-x was given.
29582 if test "${with_x+set}" = set; then :
29586 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29587 if test "x$with_x" = xno
; then
29588 # The user explicitly disabled X.
29591 case $x_includes,$x_libraries in #(
29592 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
29593 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
29594 $as_echo_n "(cached) " >&6
29596 # One or both of the vars are not set, and there is no cached value.
29597 ac_x_includes
=no ac_x_libraries
=no
29598 rm -f -r conftest.dir
29599 if mkdir conftest.dir
; then
29601 cat >Imakefile
<<'_ACEOF'
29603 @echo incroot='${INCROOT}'
29605 @echo usrlibdir='${USRLIBDIR}'
29607 @echo libdir='${LIBDIR}'
29609 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
29610 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
29611 for ac_var
in incroot usrlibdir libdir
; do
29612 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29614 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29615 for ac_extension
in a so sl dylib la dll
; do
29616 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29617 test -f "$ac_im_libdir/libX11.$ac_extension"; then
29618 ac_im_usrlibdir
=$ac_im_libdir; break
29621 # Screen out bogus values from the imake configuration. They are
29622 # bogus both because they are the default anyway, and because
29623 # using them would break gcc on systems where it needs fixed includes.
29624 case $ac_im_incroot in
29625 /usr
/include
) ac_x_includes
= ;;
29626 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
29628 case $ac_im_usrlibdir in
29629 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
29630 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
29634 rm -f -r conftest.dir
29637 # Standard set of common directories for X headers.
29638 # Check X11 before X11Rn because it is often a symlink to the current release.
29652 /usr/local/X11/include
29653 /usr/local/X11R7/include
29654 /usr/local/X11R6/include
29655 /usr/local/X11R5/include
29656 /usr/local/X11R4/include
29658 /usr/local/include/X11
29659 /usr/local/include/X11R7
29660 /usr/local/include/X11R6
29661 /usr/local/include/X11R5
29662 /usr/local/include/X11R4
29666 /usr/XFree86/include/X11
29670 /usr/unsupported/include
29671 /usr/athena/include
29672 /usr/local/x11r5/include
29673 /usr/lpp/Xamples/include
29675 /usr/openwin/include
29676 /usr/openwin/share/include'
29678 if test "$ac_x_includes" = no
; then
29679 # Guess where to find include files, by looking for Xlib.h.
29680 # First, try using that file with no special directory specified.
29681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29682 /* end confdefs.h. */
29683 #include <X11/Xlib.h>
29685 if ac_fn_c_try_cpp
"$LINENO"; then :
29686 # We can compile using X headers with no special include directory.
29689 for ac_dir
in $ac_x_header_dirs; do
29690 if test -r "$ac_dir/X11/Xlib.h"; then
29691 ac_x_includes
=$ac_dir
29696 rm -f conftest.err conftest.i conftest.
$ac_ext
29697 fi # $ac_x_includes = no
29699 if test "$ac_x_libraries" = no
; then
29700 # Check for the libraries.
29701 # See if we find them without any special options.
29702 # Don't add to $LIBS permanently.
29705 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29706 /* end confdefs.h. */
29707 #include <X11/Xlib.h>
29716 if ac_fn_c_try_link
"$LINENO"; then :
29718 # We can link X programs with no special library path.
29722 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29724 # Don't even attempt the hair of trying to link an X program!
29725 for ac_extension
in a so sl dylib la dll
; do
29726 if test -r "$ac_dir/libX11.$ac_extension"; then
29727 ac_x_libraries
=$ac_dir
29733 rm -f core conftest.err conftest.
$ac_objext \
29734 conftest
$ac_exeext conftest.
$ac_ext
29735 fi # $ac_x_libraries = no
29737 case $ac_x_includes,$ac_x_libraries in #(
29738 no
,* |
*,no |
*\'*)
29739 # Didn't find X, or a directory has "'" in its name.
29740 ac_cv_have_x
="have_x=no";; #(
29742 # Record where we found X for the cache.
29743 ac_cv_have_x
="have_x=yes\
29744 ac_x_includes='$ac_x_includes'\
29745 ac_x_libraries='$ac_x_libraries'"
29751 eval "$ac_cv_have_x"
29754 if test "$have_x" != yes; then
29755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
29756 $as_echo "$have_x" >&6; }
29759 # If each of the values was on the command line, it overrides each guess.
29760 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
29761 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
29762 # Update the cache value to reflect the command line values.
29763 ac_cv_have_x
="have_x=yes\
29764 ac_x_includes='$x_includes'\
29765 ac_x_libraries='$x_libraries'"
29766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
29767 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
29771 # Unlike the sim directory, whether a simulator is linked is controlled by
29772 # presence of a gdb_sim definition in the target configure.tgt entry.
29773 # This code just checks for a few cases where we'd like to ignore those
29774 # definitions, even when they're present in the '.mt' file. These cases
29775 # are when --disable-sim is specified, or if the simulator directory is
29776 # not part of the source tree.
29778 # Check whether --enable-sim was given.
29779 if test "${enable_sim+set}" = set; then :
29780 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
29781 echo "enableval = ${enableval}";
29782 case "${enableval}" in
29783 yes) ignore_sim
=false
;;
29784 no
) ignore_sim
=true
;;
29785 *) ignore_sim
=false
;;
29792 if test ! -d "${srcdir}/../sim"; then
29798 if test "${ignore_sim}" = "false"; then
29799 if test x
"${gdb_sim}" != x
; then
29801 SIM_OBS
="remote-sim.o"
29803 # Some tdep code should only be compiled in when the ppc sim is
29804 # built. PR sim/13418.
29808 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
29828 # List of host floatformats.
29830 cat >>confdefs.h
<<_ACEOF
29831 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
29835 cat >>confdefs.h
<<_ACEOF
29836 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
29840 cat >>confdefs.h
<<_ACEOF
29841 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
29845 # target_subdir is used by the testsuite to find the target libraries.
29847 if test "${host}" != "${target}"; then
29848 target_subdir
="${target_alias}/"
29852 # Import nat definitions.
29853 nat_makefile_frag
=/dev
/null
29854 if test "${gdb_native}" = "yes"; then
29855 .
${srcdir}/configure.nat
29856 nativefile
=$NAT_FILE
29869 if test x
"${gdb_osabi}" != x
; then
29871 cat >>confdefs.h
<<_ACEOF
29872 #define GDB_OSABI_DEFAULT $gdb_osabi
29877 # Setup possible use of libbacktrace.
29878 # Check whether --enable-libbacktrace was given.
29879 if test "${enable_libbacktrace+set}" = set; then :
29880 enableval
=$enable_libbacktrace;
29885 as_fn_error $?
"bad value $enableval for --enable-libbacktrace" "$LINENO" 5
29890 enable_libbacktrace
=yes
29894 if test "${enable_libbacktrace}" = "yes"; then
29895 LIBBACKTRACE_INC
="-I$srcdir/../libbacktrace/ -I../libbacktrace/"
29896 LIBBACKTRACE_LIB
=..
/libbacktrace
/libbacktrace.la
29898 $as_echo "#define HAVE_LIBBACKTRACE 1" >>confdefs.h
29908 # Check for babeltrace and babeltrace-ctf
29910 # Check whether --with-babeltrace was given.
29911 if test "${with_babeltrace+set}" = set; then :
29912 withval
=$with_babeltrace;
29914 with_babeltrace
=auto
29917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
29918 $as_echo_n "checking whether to use babeltrace... " >&6; }
29919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
29920 $as_echo "$with_babeltrace" >&6; }
29922 if test "x$with_babeltrace" = "xno"; then
29923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
29924 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
29926 # Append -Werror to CFLAGS so that configure can catch the warning
29927 # "assignment from incompatible pointer type", which is related to
29928 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
29929 # in GDB, while babeltrace 1.0.3 is broken.
29930 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
29931 # safe to save and restore CFLAGS here.
29932 saved_CFLAGS
=$CFLAGS
29933 CFLAGS
="$CFLAGS -Werror"
29944 acl_save_prefix
="$prefix"
29945 prefix
="$acl_final_prefix"
29946 acl_save_exec_prefix
="$exec_prefix"
29947 exec_prefix
="$acl_final_exec_prefix"
29949 eval additional_includedir
=\"$includedir\"
29950 eval additional_libdir
=\"$libdir\"
29952 exec_prefix
="$acl_save_exec_prefix"
29953 prefix
="$acl_save_prefix"
29956 # Check whether --with-libbabeltrace-prefix was given.
29957 if test "${with_libbabeltrace_prefix+set}" = set; then :
29958 withval
=$with_libbabeltrace_prefix;
29959 if test "X$withval" = "Xno"; then
29962 if test "X$withval" = "X"; then
29964 acl_save_prefix
="$prefix"
29965 prefix
="$acl_final_prefix"
29966 acl_save_exec_prefix
="$exec_prefix"
29967 exec_prefix
="$acl_final_exec_prefix"
29969 eval additional_includedir
=\"$includedir\"
29970 eval additional_libdir
=\"$libdir\"
29972 exec_prefix
="$acl_save_exec_prefix"
29973 prefix
="$acl_save_prefix"
29976 additional_includedir
="$withval/include"
29977 additional_libdir
="$withval/lib"
29984 # Check whether --with-libbabeltrace-type was given.
29985 if test "${with_libbabeltrace_type+set}" = set; then :
29986 withval
=$with_libbabeltrace_type; with_libbabeltrace_type
=$withval
29988 with_libbabeltrace_type
=auto
29991 lib_type
=`eval echo \$with_libbabeltrace_type`
29998 names_already_handled
=
29999 names_next_round
='babeltrace babeltrace-ctf'
30000 while test -n "$names_next_round"; do
30001 names_this_round
="$names_next_round"
30003 for name
in $names_this_round; do
30005 for n
in $names_already_handled; do
30006 if test "$n" = "$name"; then
30007 already_handled
=yes
30011 if test -z "$already_handled"; then
30012 names_already_handled
="$names_already_handled $name"
30013 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
30014 eval value
=\"\
$HAVE_LIB$uppername\"
30015 if test -n "$value"; then
30016 if test "$value" = yes; then
30017 eval value
=\"\
$LIB$uppername\"
30018 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
30019 eval value
=\"\
$LTLIB$uppername\"
30020 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
30029 if test $use_additional = yes; then
30030 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
30031 found_dir
="$additional_libdir"
30032 found_so
="$additional_libdir/lib$name.$shlibext"
30033 if test -f "$additional_libdir/lib$name.la"; then
30034 found_la
="$additional_libdir/lib$name.la"
30036 elif test x
$lib_type != xshared
; then
30037 if test -f "$additional_libdir/lib$name.$libext"; then
30038 found_dir
="$additional_libdir"
30039 found_a
="$additional_libdir/lib$name.$libext"
30040 if test -f "$additional_libdir/lib$name.la"; then
30041 found_la
="$additional_libdir/lib$name.la"
30046 if test "X$found_dir" = "X"; then
30047 for x
in $LDFLAGS $LTLIBBABELTRACE; do
30049 acl_save_prefix
="$prefix"
30050 prefix
="$acl_final_prefix"
30051 acl_save_exec_prefix
="$exec_prefix"
30052 exec_prefix
="$acl_final_exec_prefix"
30054 exec_prefix
="$acl_save_exec_prefix"
30055 prefix
="$acl_save_prefix"
30059 dir
=`echo "X$x" | sed -e 's/^X-L//'`
30060 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
30062 found_so
="$dir/lib$name.$shlibext"
30063 if test -f "$dir/lib$name.la"; then
30064 found_la
="$dir/lib$name.la"
30066 elif test x
$lib_type != xshared
; then
30067 if test -f "$dir/lib$name.$libext"; then
30069 found_a
="$dir/lib$name.$libext"
30070 if test -f "$dir/lib$name.la"; then
30071 found_la
="$dir/lib$name.la"
30077 if test "X$found_dir" != "X"; then
30082 if test "X$found_dir" != "X"; then
30083 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
30084 if test "X$found_so" != "X"; then
30085 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
30086 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
30089 for x
in $ltrpathdirs; do
30090 if test "X$x" = "X$found_dir"; then
30095 if test -z "$haveit"; then
30096 ltrpathdirs
="$ltrpathdirs $found_dir"
30098 if test "$hardcode_direct" = yes; then
30099 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
30101 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
30102 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
30104 for x
in $rpathdirs; do
30105 if test "X$x" = "X$found_dir"; then
30110 if test -z "$haveit"; then
30111 rpathdirs
="$rpathdirs $found_dir"
30115 for x
in $LDFLAGS $LIBBABELTRACE; do
30117 acl_save_prefix
="$prefix"
30118 prefix
="$acl_final_prefix"
30119 acl_save_exec_prefix
="$exec_prefix"
30120 exec_prefix
="$acl_final_exec_prefix"
30122 exec_prefix
="$acl_save_exec_prefix"
30123 prefix
="$acl_save_prefix"
30125 if test "X$x" = "X-L$found_dir"; then
30130 if test -z "$haveit"; then
30131 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
30133 if test "$hardcode_minus_L" != no
; then
30134 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
30136 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
30142 if test "X$found_a" != "X"; then
30143 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
30145 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
30148 additional_includedir
=
30149 case "$found_dir" in
30151 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
30152 additional_includedir
="$basedir/include"
30155 if test "X$additional_includedir" != "X"; then
30156 if test "X$additional_includedir" != "X/usr/include"; then
30158 if test "X$additional_includedir" = "X/usr/local/include"; then
30159 if test -n "$GCC"; then
30161 linux
*) haveit
=yes;;
30165 if test -z "$haveit"; then
30166 for x
in $CPPFLAGS $INCBABELTRACE; do
30168 acl_save_prefix
="$prefix"
30169 prefix
="$acl_final_prefix"
30170 acl_save_exec_prefix
="$exec_prefix"
30171 exec_prefix
="$acl_final_exec_prefix"
30173 exec_prefix
="$acl_save_exec_prefix"
30174 prefix
="$acl_save_prefix"
30176 if test "X$x" = "X-I$additional_includedir"; then
30181 if test -z "$haveit"; then
30182 if test -d "$additional_includedir"; then
30183 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
30189 if test -n "$found_la"; then
30190 save_libdir
="$libdir"
30191 case "$found_la" in
30192 */* |
*\\*) .
"$found_la" ;;
30193 *) .
"./$found_la" ;;
30195 libdir
="$save_libdir"
30196 for dep
in $dependency_libs; do
30199 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
30200 if test "X$additional_libdir" != "X/usr/lib"; then
30202 if test "X$additional_libdir" = "X/usr/local/lib"; then
30203 if test -n "$GCC"; then
30205 linux
*) haveit
=yes;;
30209 if test -z "$haveit"; then
30211 for x
in $LDFLAGS $LIBBABELTRACE; do
30213 acl_save_prefix
="$prefix"
30214 prefix
="$acl_final_prefix"
30215 acl_save_exec_prefix
="$exec_prefix"
30216 exec_prefix
="$acl_final_exec_prefix"
30218 exec_prefix
="$acl_save_exec_prefix"
30219 prefix
="$acl_save_prefix"
30221 if test "X$x" = "X-L$additional_libdir"; then
30226 if test -z "$haveit"; then
30227 if test -d "$additional_libdir"; then
30228 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
30232 for x
in $LDFLAGS $LTLIBBABELTRACE; do
30234 acl_save_prefix
="$prefix"
30235 prefix
="$acl_final_prefix"
30236 acl_save_exec_prefix
="$exec_prefix"
30237 exec_prefix
="$acl_final_exec_prefix"
30239 exec_prefix
="$acl_save_exec_prefix"
30240 prefix
="$acl_save_prefix"
30242 if test "X$x" = "X-L$additional_libdir"; then
30247 if test -z "$haveit"; then
30248 if test -d "$additional_libdir"; then
30249 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
30256 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
30257 if test "$enable_rpath" != no
; then
30259 for x
in $rpathdirs; do
30260 if test "X$x" = "X$dir"; then
30265 if test -z "$haveit"; then
30266 rpathdirs
="$rpathdirs $dir"
30269 for x
in $ltrpathdirs; do
30270 if test "X$x" = "X$dir"; then
30275 if test -z "$haveit"; then
30276 ltrpathdirs
="$ltrpathdirs $dir"
30281 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
30284 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
30287 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
30288 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
30294 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
30295 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
30296 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
30298 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l:lib$name.$libext"
30299 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l:lib$name.$libext"
30306 if test "X$rpathdirs" != "X"; then
30307 if test -n "$hardcode_libdir_separator"; then
30309 for found_dir
in $rpathdirs; do
30310 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
30312 acl_save_libdir
="$libdir"
30314 eval flag
=\"$hardcode_libdir_flag_spec\"
30315 libdir
="$acl_save_libdir"
30316 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
30318 for found_dir
in $rpathdirs; do
30319 acl_save_libdir
="$libdir"
30320 libdir
="$found_dir"
30321 eval flag
=\"$hardcode_libdir_flag_spec\"
30322 libdir
="$acl_save_libdir"
30323 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
30327 if test "X$ltrpathdirs" != "X"; then
30328 for found_dir
in $ltrpathdirs; do
30329 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
30334 ac_save_CPPFLAGS
="$CPPFLAGS"
30336 for element
in $INCBABELTRACE; do
30338 for x
in $CPPFLAGS; do
30340 acl_save_prefix
="$prefix"
30341 prefix
="$acl_final_prefix"
30342 acl_save_exec_prefix
="$exec_prefix"
30343 exec_prefix
="$acl_final_exec_prefix"
30345 exec_prefix
="$acl_save_exec_prefix"
30346 prefix
="$acl_save_prefix"
30348 if test "X$x" = "X$element"; then
30353 if test -z "$haveit"; then
30354 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
30359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
30360 $as_echo_n "checking for libbabeltrace... " >&6; }
30361 if ${ac_cv_libbabeltrace+:} false
; then :
30362 $as_echo_n "(cached) " >&6
30365 ac_save_LIBS
="$LIBS"
30366 LIBS
="$LIBS $LIBBABELTRACE"
30367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30368 /* end confdefs.h. */
30369 #include <babeltrace/babeltrace.h>
30370 #include <babeltrace/ctf/events.h>
30371 #include <babeltrace/ctf/iterator.h>
30375 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
30376 struct bt_ctf_event *event = NULL;
30377 const struct bt_definition *scope;
30379 pos->type = BT_SEEK_BEGIN;
30380 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
30381 scope = bt_ctf_get_top_level_scope (event,
30382 BT_STREAM_EVENT_HEADER);
30383 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
30389 if ac_fn_c_try_link
"$LINENO"; then :
30390 ac_cv_libbabeltrace
=yes
30392 ac_cv_libbabeltrace
=no
30394 rm -f core conftest.err conftest.
$ac_objext \
30395 conftest
$ac_exeext conftest.
$ac_ext
30396 LIBS
="$ac_save_LIBS"
30399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
30400 $as_echo "$ac_cv_libbabeltrace" >&6; }
30401 if test "$ac_cv_libbabeltrace" = yes; then
30402 HAVE_LIBBABELTRACE
=yes
30404 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
30406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
30407 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
30408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
30409 $as_echo "$LIBBABELTRACE" >&6; }
30411 HAVE_LIBBABELTRACE
=no
30412 CPPFLAGS
="$ac_save_CPPFLAGS"
30422 CFLAGS
=$saved_CFLAGS
30424 if test "$HAVE_LIBBABELTRACE" != yes; then
30425 if test "$with_babeltrace" = yes; then
30426 as_fn_error $?
"babeltrace is missing or unusable" "$LINENO" 5
30428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
30429 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
30434 # Check whether --enable-libctf was given.
30435 if test "${enable_libctf+set}" = set; then :
30436 enableval
=$enable_libctf;
30437 case "$enableval" in
30439 *) as_fn_error $?
"Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
30447 if test "${enable_libctf}" = yes; then
30449 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
30451 LIBCTF
="../libctf/libctf.la"
30452 CTF_DEPS
="../libctf/libctf.la"
30460 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
30465 if test "${nativefile}" != ""; then
30466 case "${nativefile}" in
30467 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
30468 * ) GDB_NM_FILE
="${nativefile}"
30470 ac_config_links
="$ac_config_links nm.h:$GDB_NM_FILE"
30473 cat >>confdefs.h
<<_ACEOF
30474 #define GDB_NM_FILE "${GDB_NM_FILE}"
30482 for ac_prog
in xsltproc
30484 # Extract the first word of "$ac_prog", so it can be a program name with args.
30485 set dummy
$ac_prog; ac_word
=$2
30486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30487 $as_echo_n "checking for $ac_word... " >&6; }
30488 if ${ac_cv_path_XSLTPROC+:} false
; then :
30489 $as_echo_n "(cached) " >&6
30493 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
30496 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
30497 for as_dir
in $PATH
30500 test -z "$as_dir" && as_dir
=.
30501 for ac_exec_ext
in '' $ac_executable_extensions; do
30502 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
30503 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
30504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30514 XSLTPROC
=$ac_cv_path_XSLTPROC
30515 if test -n "$XSLTPROC"; then
30516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
30517 $as_echo "$XSLTPROC" >&6; }
30519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30520 $as_echo "no" >&6; }
30524 test -n "$XSLTPROC" && break
30526 test -n "$XSLTPROC" || XSLTPROC
="missing"
30528 if test "x$USE_MAINTAINER_MODE" = xyes
; then
30529 if test "${XSLTPROC}" = missing
; then
30530 as_fn_error $?
"unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
30538 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
30542 # Check whether we will enable the inclusion of unit tests when
30545 # The default value of this option changes depending whether we're on
30546 # development mode (in which case it's "true") or not (in which case
30547 # it's "false"). The $development variable is set by the GDB_AC_COMMON
30548 # macro, which must therefore be used before GDB_AC_SELFTEST.
30550 if test "x$development" != xtrue
&& test "x$development" != xfalse
; then :
30551 as_fn_error $?
"Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
30554 # Check whether --enable-unit-tests was given.
30555 if test "${enable_unit_tests+set}" = set; then :
30556 enableval
=$enable_unit_tests; case "${enableval}" in
30557 yes) enable_unittests
=true
;;
30558 no
) enable_unittests
=false
;;
30559 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
30562 enable_unittests
=$development
30566 if $enable_unittests; then
30568 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
30571 CONFIG_OBS
="$CONFIG_OBS \$(SELFTESTS_OBS)"
30572 CONFIG_SRCS
="$CONFIG_SRCS \$(SELFTESTS_SRCS)"
30578 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
30579 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$gdb_ac_transform"`
30580 if test "x$GDB_TRANSFORM_NAME" = x
; then
30581 GDB_TRANSFORM_NAME
=gdb
30586 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
30587 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$gdb_ac_transform"`
30588 if test "x$GCORE_TRANSFORM_NAME" = x
; then
30589 GCORE_TRANSFORM_NAME
=gcore
30593 ac_config_files
="$ac_config_files gcore"
30595 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
30598 cat >confcache
<<\_ACEOF
30599 # This file is a shell script that caches the results of configure
30600 # tests run on this system so they can be shared between configure
30601 # scripts and configure runs, see configure's option --config-cache.
30602 # It is not useful on other systems. If it contains results you don't
30603 # want to keep, you may remove or edit it.
30605 # config.status only pays attention to the cache file if you give it
30606 # the --recheck option to rerun configure.
30608 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30609 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30610 # following values.
30614 # The following way of writing the cache mishandles newlines in values,
30615 # but we know of no workaround that is simple, portable, and efficient.
30616 # So, we kill variables containing newlines.
30617 # Ultrix sh set writes to stderr and can't be redirected directly,
30618 # and sets the high bit in the cache file unless we assign to the vars.
30620 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30621 eval ac_val
=\$
$ac_var
30625 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30626 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30629 _ | IFS | as_nl
) ;; #(
30630 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
30631 *) { eval $ac_var=; unset $ac_var;} ;;
30637 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30638 *${as_nl}ac_space
=\
*)
30639 # `set' does not quote correctly, so add quotes: double-quote
30640 # substitution turns \\\\ into \\, and sed turns \\ into \.
30643 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30646 # `set' quotes correctly as required by POSIX, so do not add quotes.
30647 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30656 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30658 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30660 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
30661 if test -w "$cache_file"; then
30662 if test "x$cache_file" != "x/dev/null"; then
30663 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30664 $as_echo "$as_me: updating cache $cache_file" >&6;}
30665 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
30666 cat confcache
>"$cache_file"
30668 case $cache_file in #(
30670 mv -f confcache
"$cache_file"$$
&&
30671 mv -f "$cache_file"$$
"$cache_file" ;; #(
30673 mv -f confcache
"$cache_file" ;;
30678 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30679 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30684 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
30685 # Let make expand exec_prefix.
30686 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
30688 DEFS
=-DHAVE_CONFIG_H
30693 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
30694 # 1. Remove the extension, and $U if already installed.
30695 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
30696 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
30697 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30698 # will be set to the directory where LIBOBJS objects are built.
30699 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30700 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
30702 LIBOBJS
=$ac_libobjs
30704 LTLIBOBJS
=$ac_ltlibobjs
30707 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
30708 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
30709 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30711 if test -z "${ENABLE_BFD_64_BIT_TRUE}" && test -z "${ENABLE_BFD_64_BIT_FALSE}"; then
30712 as_fn_error $?
"conditional \"ENABLE_BFD_64_BIT\" was never defined.
30713 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30715 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
30716 as_fn_error $?
"conditional \"HAVE_PYTHON\" was never defined.
30717 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30719 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
30720 as_fn_error $?
"conditional \"HAVE_GUILE\" was never defined.
30721 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30725 : "${CONFIG_STATUS=./config.status}"
30727 ac_clean_files_save
=$ac_clean_files
30728 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
30729 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30730 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30732 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30734 # Generated by $as_me.
30735 # Run this file to recreate the current configuration.
30736 # Compiler output produced by configure, useful for debugging
30737 # configure, is in config.log if it exists.
30740 ac_cs_recheck=false
30743 SHELL=\${CONFIG_SHELL-$SHELL}
30746 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
30747 ## -------------------- ##
30748 ## M4sh Initialization. ##
30749 ## -------------------- ##
30751 # Be more Bourne compatible
30752 DUALCASE
=1; export DUALCASE
# for MKS sh
30753 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
30756 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30757 # is contrary to our usage. Disable this feature.
30758 alias -g '${1+"$@"}'='"$@"'
30759 setopt NO_GLOB_SUBST
30761 case `(set -o) 2>/dev/null` in #(
30773 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30774 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30775 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30776 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30777 # Prefer a ksh shell builtin over an external printf program on Solaris,
30778 # but without wasting forks for bash or zsh.
30779 if test -z "$BASH_VERSION$ZSH_VERSION" \
30780 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30781 as_echo='print
-r --'
30782 as_echo_n='print
-rn --'
30783 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30784 as_echo='printf %s
\n'
30785 as_echo_n='printf %s
'
30787 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30788 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
30789 as_echo_n='/usr
/ucb
/echo -n'
30791 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30792 as_echo_n_body='eval
30796 expr "X$arg" : "X\\(.*\\)$as_nl";
30797 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30799 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
30801 export as_echo_n_body
30802 as_echo_n='sh
-c $as_echo_n_body as_echo
'
30804 export as_echo_body
30805 as_echo='sh
-c $as_echo_body as_echo
'
30808 # The user is always right.
30809 if test "${PATH_SEPARATOR+set}" != set; then
30811 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30812 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30819 # We need space, tab and new line, in precisely that order. Quoting is
30820 # there to prevent editors from complaining about space-tab.
30821 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30822 # splitting by setting IFS to empty value.)
30825 # Find who we are. Look in the path if we contain no directory separator.
30828 *[\\/]* ) as_myself=$0 ;;
30829 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30830 for as_dir in $PATH
30833 test -z "$as_dir" && as_dir=.
30834 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30840 # We did not find ourselves, most probably we were run as `sh COMMAND'
30841 # in which case we are not to be found in the path.
30842 if test "x$as_myself" = x
; then
30845 if test ! -f "$as_myself"; then
30846 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30850 # Unset variables that we do not need and which cause bugs (e.g. in
30851 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30852 # suppresses any "Segmentation fault" message there. '((' could
30853 # trigger a bug in pdksh 5.2.14.
30854 for as_var
in BASH_ENV ENV MAIL MAILPATH
30855 do eval test x\
${$as_var+set} = xset \
30856 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
30869 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
30872 # as_fn_error STATUS ERROR [LINENO LOG_FD]
30873 # ----------------------------------------
30874 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30875 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30876 # script with STATUS, using 1 if that was 0.
30879 as_status
=$1; test $as_status -eq 0 && as_status
=1
30881 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
30882 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30884 $as_echo "$as_me: error: $2" >&2
30885 as_fn_exit
$as_status
30889 # as_fn_set_status STATUS
30890 # -----------------------
30891 # Set $? to STATUS, without forking.
30892 as_fn_set_status
()
30895 } # as_fn_set_status
30897 # as_fn_exit STATUS
30898 # -----------------
30899 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30903 as_fn_set_status
$1
30909 # Portably unset VAR.
30912 { eval $1=; unset $1;}
30914 as_unset
=as_fn_unset
30915 # as_fn_append VAR VALUE
30916 # ----------------------
30917 # Append the text in VALUE to the end of the definition contained in VAR. Take
30918 # advantage of any shell optimizations that allow amortized linear growth over
30919 # repeated appends, instead of the typical quadratic growth present in naive
30921 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
30922 eval 'as_fn_append ()
30933 # as_fn_arith ARG...
30934 # ------------------
30935 # Perform arithmetic evaluation on the ARGs, and store the result in the
30936 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30937 # must be portable across $(()) and expr.
30938 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
30939 eval 'as_fn_arith ()
30946 as_val
=`expr "$@" || test $? -eq 1`
30951 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
30952 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
30958 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30959 as_basename
=basename
30964 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
30970 as_me
=`$as_basename -- "$0" ||
30971 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30972 X"$0" : 'X\(//\)$' \| \
30973 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30975 sed '/^.*\/\([^/][^/]*\)\/*$/{
30989 # Avoid depending upon Character Ranges.
30990 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
30991 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30992 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
30993 as_cr_digits
='0123456789'
30994 as_cr_alnum
=$as_cr_Letters$as_cr_digits
30996 ECHO_C
= ECHO_N
= ECHO_T
=
30997 case `echo -n x` in #(((((
30999 case `echo 'xy\c'` in
31000 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
31002 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
31009 rm -f conf$$ conf$$.exe conf$$.
file
31010 if test -d conf$$.dir
; then
31011 rm -f conf$$.dir
/conf$$.
file
31014 mkdir conf$$.dir
2>/dev
/null
31016 if (echo >conf$$.
file) 2>/dev
/null
; then
31017 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
31019 # ... but there are two gotchas:
31020 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31021 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31022 # In both cases, we have to default to `cp -pR'.
31023 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
31025 elif ln conf$$.
file conf$$
2>/dev
/null
; then
31033 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
31034 rmdir conf$$.dir
2>/dev
/null
31039 # Create "$as_dir" as a directory, including parents if necessary.
31044 -*) as_dir
=.
/$as_dir;;
31046 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
31050 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31051 *) as_qdir
=$as_dir;;
31053 as_dirs
="'$as_qdir' $as_dirs"
31054 as_dir
=`$as_dirname -- "$as_dir" ||
31055 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31056 X"$as_dir" : 'X\(//\)[^/]' \| \
31057 X"$as_dir" : 'X\(//\)$' \| \
31058 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31059 $as_echo X"$as_dir" |
31060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31064 /^X\(\/\/\)[^/].*/{
31077 test -d "$as_dir" && break
31079 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
31080 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
31084 if mkdir
-p .
2>/dev
/null
; then
31085 as_mkdir_p
='mkdir -p "$as_dir"'
31087 test -d .
/-p && rmdir .
/-p
31092 # as_fn_executable_p FILE
31093 # -----------------------
31094 # Test if FILE is an executable regular file.
31095 as_fn_executable_p
()
31097 test -f "$1" && test -x "$1"
31098 } # as_fn_executable_p
31099 as_test_x
='test -x'
31100 as_executable_p
=as_fn_executable_p
31102 # Sed expression to map a string onto a valid CPP name.
31103 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31105 # Sed expression to map a string onto a valid variable name.
31106 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31110 ## ----------------------------------- ##
31111 ## Main body of $CONFIG_STATUS script. ##
31112 ## ----------------------------------- ##
31114 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
31116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31117 # Save the log message, to keep $0 and so on meaningful, and to
31118 # report actual input values of CONFIG_FILES etc. instead of their
31119 # values after options handling.
31121 This file was extended by $as_me, which was
31122 generated by GNU Autoconf 2.69. Invocation command line was
31124 CONFIG_FILES = $CONFIG_FILES
31125 CONFIG_HEADERS = $CONFIG_HEADERS
31126 CONFIG_LINKS = $CONFIG_LINKS
31127 CONFIG_COMMANDS = $CONFIG_COMMANDS
31130 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31135 case $ac_config_files in *"
31136 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
31139 case $ac_config_headers in *"
31140 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
31144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31145 # Files that config.status was made for.
31146 config_files="$ac_config_files"
31147 config_headers="$ac_config_headers"
31148 config_links="$ac_config_links"
31149 config_commands="$ac_config_commands"
31153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31155 \`$as_me' instantiates files and other configuration actions
31156 from templates according to the current configuration. Unless the files
31157 and actions are specified as TAGs, all are instantiated by default.
31159 Usage: $0 [OPTION]... [TAG]...
31161 -h, --help print this help, then exit
31162 -V, --version print version number and configuration settings, then exit
31163 --config print configuration, then exit
31164 -q, --quiet, --silent
31165 do not print progress messages
31166 -d, --debug don't remove temporary files
31167 --recheck update $as_me by reconfiguring in the same conditions
31168 --file=FILE[:TEMPLATE]
31169 instantiate the configuration file FILE
31170 --header=FILE[:TEMPLATE]
31171 instantiate the configuration header FILE
31173 Configuration files:
31176 Configuration headers:
31179 Configuration links:
31182 Configuration commands:
31185 Report bugs to the package provider."
31188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31189 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31192 configured by $0, generated by GNU Autoconf 2.69,
31193 with options \\"\$ac_cs_config\\"
31195 Copyright (C) 2012 Free Software Foundation, Inc.
31196 This config.status script is free software; the Free Software Foundation
31197 gives unlimited permission to copy, distribute and modify it."
31203 test -n "\$AWK" || AWK=awk
31206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31207 # The default lists apply if the user does not specify any file.
31213 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
31214 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
31218 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
31230 # Handling of the options.
31231 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
31233 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
31234 $as_echo "$ac_cs_version"; exit ;;
31235 --config |
--confi |
--conf |
--con |
--co |
--c )
31236 $as_echo "$ac_cs_config"; exit ;;
31237 --debug |
--debu |
--deb |
--de |
--d |
-d )
31239 --file |
--fil |
--fi |
--f )
31242 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31243 '') as_fn_error $?
"missing file argument" ;;
31245 as_fn_append CONFIG_FILES
" '$ac_optarg'"
31246 ac_need_defaults
=false
;;
31247 --header |
--heade |
--head |
--hea )
31250 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31252 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
31253 ac_need_defaults
=false
;;
31255 # Conflict between --help and --header
31256 as_fn_error $?
"ambiguous option: \`$1'
31257 Try \`$0 --help' for more information.";;
31258 --help |
--hel |
-h )
31259 $as_echo "$ac_cs_usage"; exit ;;
31260 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
31261 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
31264 # This is an error.
31265 -*) as_fn_error $?
"unrecognized option: \`$1'
31266 Try \`$0 --help' for more information." ;;
31268 *) as_fn_append ac_config_targets
" $1"
31269 ac_need_defaults
=false
;;
31275 ac_configure_extra_args
=
31277 if $ac_cs_silent; then
31279 ac_configure_extra_args
="$ac_configure_extra_args --silent"
31283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31284 if \$ac_cs_recheck; then
31285 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31287 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31288 CONFIG_SHELL='$SHELL'
31289 export CONFIG_SHELL
31294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31298 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31299 ## Running $as_me. ##
31305 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31311 # The HP-UX ksh and POSIX shell print the target directory to stdout
31312 # if CDPATH is set.
31313 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31315 sed_quote_subst='$sed_quote_subst'
31316 double_quote_subst='$double_quote_subst'
31317 delay_variable_subst='$delay_variable_subst'
31318 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31319 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31320 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31321 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31322 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31323 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31324 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31325 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31326 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31327 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31328 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31329 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31330 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31331 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31332 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31333 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31334 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31335 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31336 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31337 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31338 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31339 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31340 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31341 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31342 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31343 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31344 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31345 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31346 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31347 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31348 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31349 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31350 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31351 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31352 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31353 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31354 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31355 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31356 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31357 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31358 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31359 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31360 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31361 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31362 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31363 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31364 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31365 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31366 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"`'
31367 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31368 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31369 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31370 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31371 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31372 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31373 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31374 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31375 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31376 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31377 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31378 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31379 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31380 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31381 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31382 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31383 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31384 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31385 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31386 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31387 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31388 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31389 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31390 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31391 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31392 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31393 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31394 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31395 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31396 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31397 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31398 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
31399 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31400 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31401 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31402 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31403 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31404 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31405 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31406 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31407 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
31408 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31409 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31410 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31411 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31412 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31413 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31414 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31415 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31416 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31417 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31418 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31419 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31420 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31421 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31422 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31423 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31424 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31425 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31426 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31427 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31428 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31429 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31430 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31431 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31432 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31433 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31434 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31435 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31436 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31437 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31438 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31439 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31440 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31441 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31442 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31443 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31444 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31445 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31446 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31447 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31448 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31449 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31450 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31451 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31452 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31453 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31454 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31455 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31456 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31457 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31458 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31459 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31460 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31461 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31462 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31463 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31464 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31465 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31466 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31467 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31468 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31469 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31470 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
31471 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31472 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31473 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31474 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31475 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31476 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31477 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31478 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31479 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
31480 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31481 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31482 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31483 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31484 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31485 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31486 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31487 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31488 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31489 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31490 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31491 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31492 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31495 LTCFLAGS='$LTCFLAGS'
31496 compiler='$compiler_DEFAULT'
31498 # A function that is used when there is no print builtin or printf.
31499 func_fallback_echo ()
31501 eval 'cat <<_LTECHO_EOF
31506 # Quote evaled strings.
31520 deplibs_check_method \
31529 lt_cv_sys_global_symbol_pipe \
31530 lt_cv_sys_global_symbol_to_cdecl \
31531 lt_cv_sys_global_symbol_to_c_name_address \
31532 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31533 lt_prog_compiler_no_builtin_flag \
31534 lt_prog_compiler_wl \
31535 lt_prog_compiler_pic \
31536 lt_prog_compiler_static \
31537 lt_cv_prog_compiler_c_o \
31545 export_dynamic_flag_spec \
31546 whole_archive_flag_spec \
31547 compiler_needs_object \
31549 allow_undefined_flag \
31550 no_undefined_flag \
31551 hardcode_libdir_flag_spec \
31552 hardcode_libdir_flag_spec_ld \
31553 hardcode_libdir_separator \
31558 variables_saved_for_relink \
31560 library_names_spec \
31562 install_override_mode \
31566 compiler_lib_search_dirs \
31571 compiler_lib_search_path \
31575 lt_prog_compiler_no_builtin_flag_CXX \
31576 lt_prog_compiler_wl_CXX \
31577 lt_prog_compiler_pic_CXX \
31578 lt_prog_compiler_static_CXX \
31579 lt_cv_prog_compiler_c_o_CXX \
31580 export_dynamic_flag_spec_CXX \
31581 whole_archive_flag_spec_CXX \
31582 compiler_needs_object_CXX \
31584 allow_undefined_flag_CXX \
31585 no_undefined_flag_CXX \
31586 hardcode_libdir_flag_spec_CXX \
31587 hardcode_libdir_flag_spec_ld_CXX \
31588 hardcode_libdir_separator_CXX \
31589 fix_srcfile_path_CXX \
31590 exclude_expsyms_CXX \
31591 include_expsyms_CXX \
31592 file_list_spec_CXX \
31593 compiler_lib_search_dirs_CXX \
31594 predep_objects_CXX \
31595 postdep_objects_CXX \
31598 compiler_lib_search_path_CXX; do
31599 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31600 *[\\\\\\\`\\"\\\$]*)
31601 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31604 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31609 # Double-quote double-evaled strings.
31610 for var in reload_cmds \
31611 old_postinstall_cmds \
31612 old_postuninstall_cmds \
31614 extract_expsyms_cmds \
31615 old_archive_from_new_cmds \
31616 old_archive_from_expsyms_cmds \
31618 archive_expsym_cmds \
31620 module_expsym_cmds \
31621 export_symbols_cmds \
31624 postuninstall_cmds \
31626 sys_lib_search_path_spec \
31627 sys_lib_dlsearch_path_spec \
31629 old_archive_cmds_CXX \
31630 old_archive_from_new_cmds_CXX \
31631 old_archive_from_expsyms_cmds_CXX \
31633 archive_expsym_cmds_CXX \
31635 module_expsym_cmds_CXX \
31636 export_symbols_cmds_CXX \
31637 prelink_cmds_CXX; do
31638 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31639 *[\\\\\\\`\\"\\\$]*)
31640 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31643 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31648 ac_aux_dir='$ac_aux_dir'
31649 xsi_shell='$xsi_shell'
31650 lt_shell_append='$lt_shell_append'
31652 # See if we are running on zsh, and set the options which allow our
31653 # commands through without removal of \ escapes INIT.
31654 if test -n "\${ZSH_VERSION+set}" ; then
31655 setopt NO_GLOB_SUBST
31661 TIMESTAMP='$TIMESTAMP'
31667 ac_aux_dir='$ac_aux_dir'
31670 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
31671 GDB_NM_FILE=$GDB_NM_FILE
31675 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31677 # Handling of arguments.
31678 for ac_config_target
in $ac_config_targets
31680 case $ac_config_target in
31681 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
31682 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
31683 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
31684 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
31685 "nm.h") CONFIG_LINKS
="$CONFIG_LINKS nm.h:$GDB_NM_FILE" ;;
31686 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
31687 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
31688 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
31689 "gdb-gdb.py") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.py" ;;
31690 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
31691 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
31693 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31698 # If the user did not use the arguments to specify the items to instantiate,
31699 # then the envvar interface is used. Set only those that are not.
31700 # We use the long form for the default assignment because of an extremely
31701 # bizarre bug on SunOS 4.1.3.
31702 if $ac_need_defaults; then
31703 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
31704 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
31705 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
31706 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
31709 # Have a temporary directory for convenience. Make it in the build tree
31710 # simply because there is no reason against having it here, and in addition,
31711 # creating and moving files from /tmp can sometimes cause problems.
31712 # Hook for its removal unless debugging.
31713 # Note that there is a small window in which the directory will not be cleaned:
31714 # after its creation but before its name has been assigned to `$tmp'.
31718 trap 'exit_status=$?
31719 : "${ac_tmp:=$tmp}"
31720 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31722 trap 'as_fn_exit 1' 1 2 13 15
31724 # Create a (secure) tmp directory for tmp files.
31727 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31731 tmp
=.
/conf$$
-$RANDOM
31732 (umask 077 && mkdir
"$tmp")
31733 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
31736 # Set up the scripts for CONFIG_FILES section.
31737 # No need to generate them if there are no CONFIG_FILES.
31738 # This happens for instance with `./config.status config.h'.
31739 if test -n "$CONFIG_FILES"; then
31741 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
31742 ac_cs_awk_getline
=:
31743 ac_cs_awk_pipe_init
=
31744 ac_cs_awk_read_file
='
31745 while ((getline aline < (F[key])) > 0)
31748 ac_cs_awk_pipe_fini
=
31750 ac_cs_awk_getline
=false
31751 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
31752 ac_cs_awk_read_file
='
31754 print "cat " F[key] " &&"
31755 '$ac_cs_awk_pipe_init
31756 # The final `:' finishes the AND list.
31757 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
31759 ac_cr
=`echo X | tr X '\015'`
31760 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31761 # But we know of no other shell where ac_cr would be empty at this
31762 # point, so we can use a bashism as a fallback.
31763 if test "x$ac_cr" = x
; then
31764 eval ac_cr
=\$
\'\\r
\'
31766 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31767 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31770 ac_cs_awk_cr
=$ac_cr
31773 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31776 # Create commands to substitute file output variables.
31778 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31779 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
31780 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
31783 } >conf$
$files.sh
&&
31784 . .
/conf$
$files.sh ||
31785 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
31786 rm -f conf$
$files.sh
31789 echo "cat >conf$$subs.awk <<_ACEOF" &&
31790 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31792 } >conf$$subs.sh ||
31793 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
31794 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31796 for ac_last_try in false false false false false :; do
31797 . ./conf$$subs.sh ||
31798 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
31800 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
31801 if test $ac_delim_n = $ac_delim_num; then
31803 elif $ac_last_try; then
31804 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
31806 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
31809 rm -f conf$$subs.sh
31811 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31812 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
31816 s/^/S["/; s
/!.
*/"]=/
31826 s/\(.\{148\}\)..*/\1/
31828 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
31833 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
31840 s/\(.\{148\}\)..*/\1/
31842 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
31846 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
31851 ' <conf$$subs.awk | sed '
31856 ' >>$CONFIG_STATUS || ac_write_fail=1
31857 rm -f conf$$subs.awk
31858 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31860 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
31861 for (key in S) S_is_set[key] = 1
31863 \$ac_cs_awk_pipe_init
31867 nfields = split(line, field, "@
")
31869 len = length(field[1])
31870 for (i = 2; i < nfields; i++) {
31872 keylen = length(key)
31873 if (S_is_set[key]) {
31875 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31876 len += length(value) + length(field[++i])
31881 if (nfields == 3 && !substed) {
31883 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
31884 \$ac_cs_awk_read_file
31890 \$ac_cs_awk_pipe_fini
31893 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31894 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31895 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
31898 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
31899 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
31902 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31903 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
31904 # trailing colons and then remove the whole line if VPATH becomes empty
31905 # (actually we leave an empty line to preserve line numbers).
31906 if test "x
$srcdir" = x.; then
31907 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
31925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31926 fi # test -n "$CONFIG_FILES"
31928 # Set up the scripts for CONFIG_HEADERS section.
31929 # No need to generate them if there are no CONFIG_HEADERS.
31930 # This happens for instance with `./config.status Makefile'.
31931 if test -n "$CONFIG_HEADERS"; then
31932 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
31936 # Transform confdefs.h into an awk script `defines.awk', embedded as
31937 # here-document in config.status, that substitutes the proper values into
31938 # config.h.in to produce config.h.
31940 # Create a delimiter string that does not exist in confdefs.h, to ease
31941 # handling of long lines.
31943 for ac_last_try in false false :; do
31944 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
31945 if test -z "$ac_tt"; then
31947 elif $ac_last_try; then
31948 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
31950 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
31954 # For the awk script, D is an array of macro values keyed by name,
31955 # likewise P contains macro parameters if any. Preserve backslash
31956 # newline sequences.
31958 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31960 s/.\{148\}/&'"$ac_delim"'/g
31963 s/^[ ]*#[ ]*define[ ][ ]*/ /
31970 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
31972 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
31976 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
31977 D["\
1"]=" \
3\\\\\\n
"\\/p
31979 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
31984 s/.\{148\}/&'"$ac_delim"'/g
31989 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
31992 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
31994 ' <confdefs.h | sed '
31995 s/'"$ac_delim"'/"\\\
31996 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31999 for (key in D) D_is_set[key] = 1
32002 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32004 split(line, arg, " ")
32005 if (arg[1] == "#") {
32009 defundef
= substr
(arg
[1], 2)
32012 split(mac1
, mac2
, "(") #)
32014 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
32015 if (D_is_set
[macro
]) {
32016 # Preserve the white space surrounding the "#".
32017 print prefix
"define", macro P
[macro
] D
[macro
]
32020 # Replace #undef with comments. This is necessary, for example,
32021 # in the case of _POSIX_SOURCE, which is predefined and required
32022 # on some systems where configure will not decide to define it.
32023 if (defundef
== "undef") {
32024 print
"/*", prefix defundef
, macro
, "*/"
32032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32033 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
32034 fi # test -n "$CONFIG_HEADERS"
32037 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
32042 :[FHLC
]) ac_mode
=$ac_tag; continue;;
32044 case $ac_mode$ac_tag in
32046 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
32047 :[FH
]-) ac_tag
=-:-;;
32048 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
32065 -) ac_f
="$ac_tmp/stdin";;
32066 *) # Look for the file first in the build tree, then in the source tree
32067 # (if the path is not absolute). The absolute path cannot be DOS-style,
32068 # because $ac_f cannot contain `:'.
32072 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
32074 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32076 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32077 as_fn_append ac_file_inputs
" '$ac_f'"
32080 # Let's still pretend it is `configure' which instantiates (i.e., don't
32081 # use $as_me), people would be surprised to read:
32082 # /* config.h. Generated by config.status. */
32083 configure_input
='Generated from '`
32084 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32086 if test x
"$ac_file" != x-
; then
32087 configure_input
="$ac_file. $configure_input"
32088 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32089 $as_echo "$as_me: creating $ac_file" >&6;}
32091 # Neutralize special characters interpreted by sed in replacement strings.
32092 case $configure_input in #(
32093 *\
&* |
*\|
* |
*\\* )
32094 ac_sed_conf_input
=`$as_echo "$configure_input" |
32095 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32096 *) ac_sed_conf_input
=$configure_input;;
32100 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
32101 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
32106 ac_dir
=`$as_dirname -- "$ac_file" ||
32107 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32108 X"$ac_file" : 'X\(//\)[^/]' \| \
32109 X"$ac_file" : 'X\(//\)$' \| \
32110 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32111 $as_echo X"$ac_file" |
32112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32116 /^X\(\/\/\)[^/].*/{
32129 as_dir
="$ac_dir"; as_fn_mkdir_p
32133 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
32135 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32136 # A ".." for each directory in $ac_dir_suffix.
32137 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32138 case $ac_top_builddir_sub in
32139 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
32140 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
32143 ac_abs_top_builddir
=$ac_pwd
32144 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
32145 # for backward compatibility:
32146 ac_top_builddir
=$ac_top_build_prefix
32149 .
) # We are building in place.
32151 ac_top_srcdir
=$ac_top_builddir_sub
32152 ac_abs_top_srcdir
=$ac_pwd ;;
32153 [\\/]* | ?
:[\\/]* ) # Absolute name.
32154 ac_srcdir
=$srcdir$ac_dir_suffix;
32155 ac_top_srcdir
=$srcdir
32156 ac_abs_top_srcdir
=$srcdir ;;
32157 *) # Relative name.
32158 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
32159 ac_top_srcdir
=$ac_top_build_prefix$srcdir
32160 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
32162 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
32172 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
32173 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
32177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32178 # If the template does not know about datarootdir, expand it.
32179 # FIXME: This hack should be removed a few years after 2.60.
32180 ac_datarootdir_hack
=; ac_datarootdir_seen
=
32191 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32192 *datarootdir
*) ac_datarootdir_seen
=yes;;
32193 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
32194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32195 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32197 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32198 ac_datarootdir_hack='
32199 s&@datadir@&$datadir&g
32200 s&@docdir@&$docdir&g
32201 s&@infodir@&$infodir&g
32202 s&@localedir@&$localedir&g
32203 s&@mandir@&$mandir&g
32204 s&\\\${datarootdir}&$datarootdir&g' ;;
32208 # Neutralize VPATH when `$srcdir' = `.'.
32209 # Shell code in configure.ac might set extrasub.
32210 # FIXME: do we really want to maintain this feature?
32211 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32212 ac_sed_extra="$ac_vpsub
32215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32217 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
32218 s|@configure_input@|
$ac_sed_conf_input|
;t t
32219 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
32220 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
32221 s
&@srcdir@
&$ac_srcdir&;t t
32222 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
32223 s
&@top_srcdir@
&$ac_top_srcdir&;t t
32224 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
32225 s
&@builddir@
&$ac_builddir&;t t
32226 s
&@abs_builddir@
&$ac_abs_builddir&;t t
32227 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
32228 s
&@INSTALL@
&$ac_INSTALL&;t t
32229 $ac_datarootdir_hack
32231 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32232 if $ac_cs_awk_getline; then
32233 $AWK -f "$ac_tmp/subs.
awk"
32235 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
32237 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
32239 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32240 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
32241 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32242 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
32243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
32244 which seems to be undefined. Please make sure it is defined" >&5
32245 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
32246 which seems to be undefined. Please make sure it is defined" >&2;}
32248 rm -f "$ac_tmp/stdin"
32250 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32251 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32253 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32259 if test x"$ac_file" != x-; then
32261 $as_echo "/* $configure_input */" \
32262 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32263 } >"$ac_tmp/config.h" \
32264 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32265 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32266 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32267 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32270 mv "$ac_tmp/config.h" "$ac_file" \
32271 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32274 $as_echo "/* $configure_input */" \
32275 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32276 || as_fn_error $? "could not create -" "$LINENO" 5
32284 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
32287 # Prefer the file from the source tree if names are identical.
32288 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
32289 ac_source=$srcdir/$ac_source
32292 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
32293 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
32295 if test ! -r "$ac_source"; then
32296 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
32300 # Try a relative symlink, then a hard link, then a copy.
32302 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
32303 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
32305 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
32306 ln "$ac_source" "$ac_file" 2>/dev/null ||
32307 cp -p "$ac_source" "$ac_file" ||
32308 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
32311 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32312 $as_echo "$as_me: executing $ac_file commands" >&6;}
32317 case $ac_file$ac_mode in
32318 "config.h":H) echo > stamp-h ;;
32321 # See if we are running on zsh, and set the options which allow our
32322 # commands through without removal of \ escapes.
32323 if test -n "${ZSH_VERSION+set}" ; then
32324 setopt NO_GLOB_SUBST
32327 cfgfile="${ofile}T"
32328 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32331 cat <<_LT_EOF >> "$cfgfile"
32334 # `$ECHO "$ofile" | sed 's
%^.
*/%%'` - Provide generalized library-building support services.
32335 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32336 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32337 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32339 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32340 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
32341 # Written by Gordon Matzigkeit, 1996
32343 # This file is part of GNU Libtool.
32345 # GNU Libtool is free software; you can redistribute it and/or
32346 # modify it under the terms of the GNU General Public License as
32347 # published by the Free Software Foundation; either version 2 of
32348 # the License, or (at your option) any later version.
32350 # As a special exception to the GNU General Public License,
32351 # if you distribute this file as part of a program or library that
32352 # is built using GNU Libtool, you may include this file under the
32353 # same distribution terms that you use for the rest of that program.
32355 # GNU Libtool is distributed in the hope that it will be useful,
32356 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32357 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32358 # GNU General Public License for more details.
32360 # You should have received a copy of the GNU General Public License
32361 # along with GNU Libtool; see the file COPYING. If not, a copy
32362 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32363 # obtained by writing to the Free Software Foundation, Inc.,
32364 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32367 # The names of the tagged configurations supported by this script.
32368 available_tags="CXX "
32370 # ### BEGIN LIBTOOL CONFIG
32372 # Which release of libtool.m4 was used?
32373 macro_version=$macro_version
32374 macro_revision=$macro_revision
32376 # Whether or not to build shared libraries.
32377 build_libtool_libs=$enable_shared
32379 # Whether or not to build static libraries.
32380 build_old_libs=$enable_static
32382 # What type of objects to build.
32385 # Whether or not to optimize for fast installation.
32386 fast_install=$enable_fast_install
32388 # Shell to use when invoking shell scripts.
32391 # An echo program that protects backslashes.
32395 host_alias=$host_alias
32399 # The build system.
32400 build_alias=$build_alias
32404 # A sed program that does not truncate output.
32407 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32408 Xsed="\$SED -e 1s/^X//"
32410 # A grep program that handles long lines.
32416 # A literal string matcher.
32419 # A BSD- or MS-compatible name lister.
32422 # Whether we need soft or hard links.
32425 # What is the maximum length of a command?
32426 max_cmd_len=$max_cmd_len
32428 # Object file suffix (normally "o").
32431 # Executable file suffix (normally "").
32434 # whether the shell understands "unset".
32437 # turn spaces into newlines.
32440 # turn newlines into spaces.
32443 # An object symbol dumper.
32444 OBJDUMP=$lt_OBJDUMP
32446 # Method to check whether dependent libraries are shared objects.
32447 deplibs_check_method=$lt_deplibs_check_method
32449 # Command to use when deplibs_check_method == "file_magic".
32450 file_magic_cmd=$lt_file_magic_cmd
32454 AR_FLAGS=$lt_AR_FLAGS
32456 # A symbol stripping program.
32459 # Commands used to install an old-style archive.
32461 old_postinstall_cmds=$lt_old_postinstall_cmds
32462 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32464 # Whether to use a lock for old archive extraction.
32465 lock_old_archive_extraction=$lock_old_archive_extraction
32470 # LTCC compiler flags.
32471 LTCFLAGS=$lt_CFLAGS
32473 # Take the output of nm and produce a listing of raw symbols and C names.
32474 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32476 # Transform the output of nm in a proper C declaration.
32477 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32479 # Transform the output of nm in a C name address pair.
32480 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32482 # Transform the output of nm in a C name address pair when lib prefix is needed.
32483 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32485 # The name of the directory that contains temporary libtool files.
32488 # Used to examine libraries when file_magic_cmd begins with "file".
32489 MAGIC_CMD=$MAGIC_CMD
32491 # Must we lock files when doing compilation?
32492 need_locks=$lt_need_locks
32494 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32495 DSYMUTIL=$lt_DSYMUTIL
32497 # Tool to change global to local symbols on Mac OS X.
32500 # Tool to manipulate fat objects and archives on Mac OS X.
32503 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32506 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32507 OTOOL64=$lt_OTOOL64
32509 # Old archive suffix (normally "a").
32512 # Shared library suffix (normally ".so").
32513 shrext_cmds=$lt_shrext_cmds
32515 # The commands to extract the exported symbol list from a shared archive.
32516 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32518 # Variables whose values should be saved in libtool wrapper scripts and
32519 # restored at link time.
32520 variables_saved_for_relink=$lt_variables_saved_for_relink
32522 # Do we need the "lib" prefix for modules?
32523 need_lib_prefix=$need_lib_prefix
32525 # Do we need a version for libraries?
32526 need_version=$need_version
32528 # Library versioning type.
32529 version_type=$version_type
32531 # Shared library runtime path variable.
32532 runpath_var=$runpath_var
32534 # Shared library path variable.
32535 shlibpath_var=$shlibpath_var
32537 # Is shlibpath searched before the hard-coded library search path?
32538 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32540 # Format of library name prefix.
32541 libname_spec=$lt_libname_spec
32543 # List of archive names. First name is the real one, the rest are links.
32544 # The last name is the one that the linker finds with -lNAME
32545 library_names_spec=$lt_library_names_spec
32547 # The coded name of the library, if different from the real name.
32548 soname_spec=$lt_soname_spec
32550 # Permission mode override for installation of shared libraries.
32551 install_override_mode=$lt_install_override_mode
32553 # Command to use after installation of a shared archive.
32554 postinstall_cmds=$lt_postinstall_cmds
32556 # Command to use after uninstallation of a shared archive.
32557 postuninstall_cmds=$lt_postuninstall_cmds
32559 # Commands used to finish a libtool library installation in a directory.
32560 finish_cmds=$lt_finish_cmds
32562 # As "finish_cmds", except a single script fragment to be evaled but
32564 finish_eval=$lt_finish_eval
32566 # Whether we should hardcode library paths into libraries.
32567 hardcode_into_libs=$hardcode_into_libs
32569 # Compile-time system search path for libraries.
32570 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32572 # Run-time system search path for libraries.
32573 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32575 # Whether dlopen is supported.
32576 dlopen_support=$enable_dlopen
32578 # Whether dlopen of programs is supported.
32579 dlopen_self=$enable_dlopen_self
32581 # Whether dlopen of statically linked programs is supported.
32582 dlopen_self_static=$enable_dlopen_self_static
32584 # Commands to strip libraries.
32585 old_striplib=$lt_old_striplib
32586 striplib=$lt_striplib
32589 # The linker used to build libraries.
32592 # How to create reloadable object files.
32593 reload_flag=$lt_reload_flag
32594 reload_cmds=$lt_reload_cmds
32596 # Commands used to build an old-style archive.
32597 old_archive_cmds=$lt_old_archive_cmds
32599 # A language specific compiler.
32602 # Is the compiler the GNU compiler?
32605 # Compiler flag to turn off builtin functions.
32606 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32608 # How to pass a linker flag through the compiler.
32609 wl=$lt_lt_prog_compiler_wl
32611 # Additional compiler flags for building library objects.
32612 pic_flag=$lt_lt_prog_compiler_pic
32614 # Compiler flag to prevent dynamic linking.
32615 link_static_flag=$lt_lt_prog_compiler_static
32617 # Does compiler simultaneously support -c and -o options?
32618 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32620 # Whether or not to add -lc for building shared libraries.
32621 build_libtool_need_lc=$archive_cmds_need_lc
32623 # Whether or not to disallow shared libs when runtime libs are static.
32624 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32626 # Compiler flag to allow reflexive dlopens.
32627 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32629 # Compiler flag to generate shared objects directly from archives.
32630 whole_archive_flag_spec=$lt_whole_archive_flag_spec
32632 # Whether the compiler copes with passing no objects directly.
32633 compiler_needs_object=$lt_compiler_needs_object
32635 # Create an old-style archive from a shared archive.
32636 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
32638 # Create a temporary old-style archive to link instead of a shared archive.
32639 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
32641 # Commands used to build a shared archive.
32642 archive_cmds=$lt_archive_cmds
32643 archive_expsym_cmds=$lt_archive_expsym_cmds
32645 # Commands used to build a loadable module if different from building
32646 # a shared archive.
32647 module_cmds=$lt_module_cmds
32648 module_expsym_cmds=$lt_module_expsym_cmds
32650 # Whether we are building with GNU ld or not.
32651 with_gnu_ld=$lt_with_gnu_ld
32653 # Flag that allows shared libraries with undefined symbols to be built.
32654 allow_undefined_flag=$lt_allow_undefined_flag
32656 # Flag that enforces no undefined symbols.
32657 no_undefined_flag=$lt_no_undefined_flag
32659 # Flag to hardcode \$libdir into a binary during linking.
32660 # This must work even if \$libdir does not exist
32661 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
32663 # If ld is used when linking, flag to hardcode \$libdir into a binary
32664 # during linking. This must work even if \$libdir does not exist.
32665 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
32667 # Whether we need a single "-rpath" flag with a separated argument.
32668 hardcode_libdir_separator=$lt_hardcode_libdir_separator
32670 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32671 # DIR into the resulting binary.
32672 hardcode_direct=$hardcode_direct
32674 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32675 # DIR into the resulting binary and the resulting library dependency is
32676 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32677 # library is relocated.
32678 hardcode_direct_absolute=$hardcode_direct_absolute
32680 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32681 # into the resulting binary.
32682 hardcode_minus_L=$hardcode_minus_L
32684 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32685 # into the resulting binary.
32686 hardcode_shlibpath_var=$hardcode_shlibpath_var
32688 # Set to "yes" if building a shared library automatically hardcodes DIR
32689 # into the library and all subsequent libraries and executables linked
32691 hardcode_automatic=$hardcode_automatic
32693 # Set to yes if linker adds runtime paths of dependent libraries
32694 # to runtime path list.
32695 inherit_rpath=$inherit_rpath
32697 # Whether libtool must link a program against all its dependency libraries.
32698 link_all_deplibs=$link_all_deplibs
32700 # Fix the shell variable \$srcfile for the compiler.
32701 fix_srcfile_path=$lt_fix_srcfile_path
32703 # Set to "yes" if exported symbols are required.
32704 always_export_symbols=$always_export_symbols
32706 # The commands to list exported symbols.
32707 export_symbols_cmds=$lt_export_symbols_cmds
32709 # Symbols that should not be listed in the preloaded symbols.
32710 exclude_expsyms=$lt_exclude_expsyms
32712 # Symbols that must always be exported.
32713 include_expsyms=$lt_include_expsyms
32715 # Commands necessary for linking programs (against libraries) with templates.
32716 prelink_cmds=$lt_prelink_cmds
32718 # Specify filename containing input files.
32719 file_list_spec=$lt_file_list_spec
32721 # How to hardcode a shared library path into an executable.
32722 hardcode_action=$hardcode_action
32724 # The directories searched by this compiler when creating a shared library.
32725 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
32727 # Dependencies to place before and after the objects being linked to
32728 # create a shared library.
32729 predep_objects=$lt_predep_objects
32730 postdep_objects=$lt_postdep_objects
32731 predeps=$lt_predeps
32732 postdeps=$lt_postdeps
32734 # The library search path used internally by the compiler when linking
32735 # a shared library.
32736 compiler_lib_search_path=$lt_compiler_lib_search_path
32738 # ### END LIBTOOL CONFIG
32744 cat <<\_LT_EOF >> "$cfgfile"
32745 # AIX sometimes has problems with the GCC collect2 program. For some
32746 # reason, if we set the COLLECT_NAMES environment variable, the problems
32747 # vanish in a puff of smoke.
32748 if test "X${COLLECT_NAMES+set}" != Xset; then
32750 export COLLECT_NAMES
32757 ltmain="$ac_aux_dir/ltmain.sh"
32760 # We use sed instead of cat because bash on DJGPP gets confused if
32761 # if finds mixed CR/LF and LF-only lines. Since sed operates in
32762 # text mode, it properly converts lines to CR/LF. This bash problem
32763 # is reportedly fixed, but why not run on old versions too?
32764 sed '/^
# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
32765 ||
(rm -f "$cfgfile"; exit 1)
32769 cat << \_LT_EOF
>> "$cfgfile"
32771 # func_dirname file append nondir_replacement
32772 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
32773 # otherwise set result to NONDIR_REPLACEMENT.
32777 */*) func_dirname_result
="${1%/*}${2}" ;;
32778 * ) func_dirname_result
="${3}" ;;
32782 # func_basename file
32785 func_basename_result
="${1##*/}"
32788 # func_dirname_and_basename file append nondir_replacement
32789 # perform func_basename and func_dirname in a single function
32791 # dirname: Compute the dirname of FILE. If nonempty,
32792 # add APPEND to the result, otherwise set result
32793 # to NONDIR_REPLACEMENT.
32794 # value returned in "$func_dirname_result"
32795 # basename: Compute filename of FILE.
32796 # value retuned in "$func_basename_result"
32797 # Implementation must be kept synchronized with func_dirname
32798 # and func_basename. For efficiency, we do not delegate to
32799 # those functions but instead duplicate the functionality here.
32800 func_dirname_and_basename
()
32803 */*) func_dirname_result
="${1%/*}${2}" ;;
32804 * ) func_dirname_result
="${3}" ;;
32806 func_basename_result
="${1##*/}"
32809 # func_stripname prefix suffix name
32810 # strip PREFIX and SUFFIX off of NAME.
32811 # PREFIX and SUFFIX must not contain globbing or regex special
32812 # characters, hashes, percent signs, but SUFFIX may contain a leading
32813 # dot (in which case that matches only a dot).
32816 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
32817 # positional parameters, so assign one to ordinary parameter first.
32818 func_stripname_result
=${3}
32819 func_stripname_result
=${func_stripname_result#"${1}"}
32820 func_stripname_result
=${func_stripname_result%"${2}"}
32826 func_opt_split_opt
=${1%%=*}
32827 func_opt_split_arg
=${1#*=}
32834 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
32835 *) func_lo2o_result
=${1} ;;
32839 # func_xform libobj-or-source
32842 func_xform_result
=${1%.*}.lo
32845 # func_arith arithmetic-term...
32848 func_arith_result
=$
(( $
* ))
32852 # STRING may not start with a hyphen.
32855 func_len_result
=${#1}
32860 *) # Bourne compatible functions.
32861 cat << \_LT_EOF
>> "$cfgfile"
32863 # func_dirname file append nondir_replacement
32864 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
32865 # otherwise set result to NONDIR_REPLACEMENT.
32868 # Extract subdirectory from the argument.
32869 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
32870 if test "X$func_dirname_result" = "X${1}"; then
32871 func_dirname_result
="${3}"
32873 func_dirname_result
="$func_dirname_result${2}"
32877 # func_basename file
32880 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
32884 # func_stripname prefix suffix name
32885 # strip PREFIX and SUFFIX off of NAME.
32886 # PREFIX and SUFFIX must not contain globbing or regex special
32887 # characters, hashes, percent signs, but SUFFIX may contain a leading
32888 # dot (in which case that matches only a dot).
32889 # func_strip_suffix prefix name
32893 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
32894 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
32899 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
32900 my_sed_long_arg
='1s/^-[^=]*=//'
32905 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
32906 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
32912 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
32915 # func_xform libobj-or-source
32918 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
32921 # func_arith arithmetic-term...
32924 func_arith_result
=`expr "$@"`
32928 # STRING may not start with a hyphen.
32931 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
32937 case $lt_shell_append in
32939 cat << \_LT_EOF
>> "$cfgfile"
32941 # func_append var value
32942 # Append VALUE to the end of shell variable VAR.
32950 cat << \_LT_EOF
>> "$cfgfile"
32952 # func_append var value
32953 # Append VALUE to the end of shell variable VAR.
32964 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
32965 ||
(rm -f "$cfgfile"; exit 1)
32967 mv -f "$cfgfile" "$ofile" ||
32968 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32972 cat <<_LT_EOF >> "$ofile"
32974 # ### BEGIN LIBTOOL TAG CONFIG: CXX
32976 # The linker used to build libraries.
32979 # How to create reloadable object files.
32980 reload_flag=$lt_reload_flag_CXX
32981 reload_cmds=$lt_reload_cmds_CXX
32983 # Commands used to build an old-style archive.
32984 old_archive_cmds=$lt_old_archive_cmds_CXX
32986 # A language specific compiler.
32987 CC=$lt_compiler_CXX
32989 # Is the compiler the GNU compiler?
32992 # Compiler flag to turn off builtin functions.
32993 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
32995 # How to pass a linker flag through the compiler.
32996 wl=$lt_lt_prog_compiler_wl_CXX
32998 # Additional compiler flags for building library objects.
32999 pic_flag=$lt_lt_prog_compiler_pic_CXX
33001 # Compiler flag to prevent dynamic linking.
33002 link_static_flag=$lt_lt_prog_compiler_static_CXX
33004 # Does compiler simultaneously support -c and -o options?
33005 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33007 # Whether or not to add -lc for building shared libraries.
33008 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33010 # Whether or not to disallow shared libs when runtime libs are static.
33011 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33013 # Compiler flag to allow reflexive dlopens.
33014 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33016 # Compiler flag to generate shared objects directly from archives.
33017 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33019 # Whether the compiler copes with passing no objects directly.
33020 compiler_needs_object=$lt_compiler_needs_object_CXX
33022 # Create an old-style archive from a shared archive.
33023 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33025 # Create a temporary old-style archive to link instead of a shared archive.
33026 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33028 # Commands used to build a shared archive.
33029 archive_cmds=$lt_archive_cmds_CXX
33030 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33032 # Commands used to build a loadable module if different from building
33033 # a shared archive.
33034 module_cmds=$lt_module_cmds_CXX
33035 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33037 # Whether we are building with GNU ld or not.
33038 with_gnu_ld=$lt_with_gnu_ld_CXX
33040 # Flag that allows shared libraries with undefined symbols to be built.
33041 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33043 # Flag that enforces no undefined symbols.
33044 no_undefined_flag=$lt_no_undefined_flag_CXX
33046 # Flag to hardcode \$libdir into a binary during linking.
33047 # This must work even if \$libdir does not exist
33048 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33050 # If ld is used when linking, flag to hardcode \$libdir into a binary
33051 # during linking. This must work even if \$libdir does not exist.
33052 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
33054 # Whether we need a single "-rpath" flag with a separated argument.
33055 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33057 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33058 # DIR into the resulting binary.
33059 hardcode_direct=$hardcode_direct_CXX
33061 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33062 # DIR into the resulting binary and the resulting library dependency is
33063 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33064 # library is relocated.
33065 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33067 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33068 # into the resulting binary.
33069 hardcode_minus_L=$hardcode_minus_L_CXX
33071 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33072 # into the resulting binary.
33073 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33075 # Set to "yes" if building a shared library automatically hardcodes DIR
33076 # into the library and all subsequent libraries and executables linked
33078 hardcode_automatic=$hardcode_automatic_CXX
33080 # Set to yes if linker adds runtime paths of dependent libraries
33081 # to runtime path list.
33082 inherit_rpath=$inherit_rpath_CXX
33084 # Whether libtool must link a program against all its dependency libraries.
33085 link_all_deplibs=$link_all_deplibs_CXX
33087 # Fix the shell variable \$srcfile for the compiler.
33088 fix_srcfile_path=$lt_fix_srcfile_path_CXX
33090 # Set to "yes" if exported symbols are required.
33091 always_export_symbols=$always_export_symbols_CXX
33093 # The commands to list exported symbols.
33094 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33096 # Symbols that should not be listed in the preloaded symbols.
33097 exclude_expsyms=$lt_exclude_expsyms_CXX
33099 # Symbols that must always be exported.
33100 include_expsyms=$lt_include_expsyms_CXX
33102 # Commands necessary for linking programs (against libraries) with templates.
33103 prelink_cmds=$lt_prelink_cmds_CXX
33105 # Specify filename containing input files.
33106 file_list_spec=$lt_file_list_spec_CXX
33108 # How to hardcode a shared library path into an executable.
33109 hardcode_action=$hardcode_action_CXX
33111 # The directories searched by this compiler when creating a shared library.
33112 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33114 # Dependencies to place before and after the objects being linked to
33115 # create a shared library.
33116 predep_objects=$lt_predep_objects_CXX
33117 postdep_objects=$lt_postdep_objects_CXX
33118 predeps=$lt_predeps_CXX
33119 postdeps=$lt_postdeps_CXX
33121 # The library search path used internally by the compiler when linking
33122 # a shared library.
33123 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33125 # ### END LIBTOOL TAG CONFIG: CXX
33129 "depdir":C
) $SHELL $ac_aux_dir/mkinstalldirs
$DEPDIR ;;
33130 "nm.h":L
) echo > stamp-nmh
;;
33131 "gcore":F
) chmod +x gcore
;;
33139 ac_clean_files
=$ac_clean_files_save
33141 test $ac_write_fail = 0 ||
33142 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
33145 # configure is writing to config.log, and then calls config.status.
33146 # config.status does its own redirection, appending to config.log.
33147 # Unfortunately, on DOS this fails, as config.log is still kept open
33148 # by configure, so config.status won't be able to write to it; its
33149 # output is simply discarded. So we exec the FD to /dev/null,
33150 # effectively closing config.log, so it can be properly (re)opened and
33151 # appended to by config.status. When coming back to configure, we
33152 # need to make the FD available again.
33153 if test "$no_create" != yes; then
33155 ac_config_status_args
=
33156 test "$silent" = yes &&
33157 ac_config_status_args
="$ac_config_status_args --quiet"
33159 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
33161 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33162 # would make configure fail if this is the last instruction.
33163 $ac_cs_success || as_fn_exit
1
33167 # CONFIG_SUBDIRS section.
33169 if test "$no_recursion" != yes; then
33171 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
33172 # so they do not pile up.
33173 ac_sub_configure_args
=
33175 eval "set x $ac_configure_args"
33179 if test -n "$ac_prev"; then
33184 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
33185 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
33186 ac_prev
=cache_file
;;
33187 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
33188 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
33191 --config-cache |
-C)
33193 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
33195 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
33197 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
33199 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
33201 --disable-option-checking)
33205 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33207 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
33211 # Always prepend --prefix to ensure using the same prefix
33212 # in subdir configurations.
33213 ac_arg
="--prefix=$prefix"
33215 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33217 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
33220 if test "$silent" = yes; then
33221 ac_sub_configure_args
="--silent $ac_sub_configure_args"
33224 # Always prepend --disable-option-checking to silence warnings, since
33225 # different subdirs can have different --enable and --with options.
33226 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
33229 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
33231 # Do not complain, so a configure script can configure whichever
33232 # parts of a large source tree are present.
33233 test -d "$srcdir/$ac_dir" ||
continue
33235 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
33236 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
33237 $as_echo "$ac_msg" >&6
33238 as_dir
="$ac_dir"; as_fn_mkdir_p
33242 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
33244 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33245 # A ".." for each directory in $ac_dir_suffix.
33246 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33247 case $ac_top_builddir_sub in
33248 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
33249 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
33252 ac_abs_top_builddir
=$ac_pwd
33253 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
33254 # for backward compatibility:
33255 ac_top_builddir
=$ac_top_build_prefix
33258 .
) # We are building in place.
33260 ac_top_srcdir
=$ac_top_builddir_sub
33261 ac_abs_top_srcdir
=$ac_pwd ;;
33262 [\\/]* | ?
:[\\/]* ) # Absolute name.
33263 ac_srcdir
=$srcdir$ac_dir_suffix;
33264 ac_top_srcdir
=$srcdir
33265 ac_abs_top_srcdir
=$srcdir ;;
33266 *) # Relative name.
33267 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
33268 ac_top_srcdir
=$ac_top_build_prefix$srcdir
33269 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
33271 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
33276 # Check for guested configure; otherwise get Cygnus style configure.
33277 if test -f "$ac_srcdir/configure.gnu"; then
33278 ac_sub_configure
=$ac_srcdir/configure.gnu
33279 elif test -f "$ac_srcdir/configure"; then
33280 ac_sub_configure
=$ac_srcdir/configure
33281 elif test -f "$ac_srcdir/configure.in"; then
33282 # This should be Cygnus configure.
33283 ac_sub_configure
=$ac_aux_dir/configure
33285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
33286 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
33290 # The recursion is here.
33291 if test -n "$ac_sub_configure"; then
33292 # Make the cache file name correct relative to the subdirectory.
33293 case $cache_file in
33294 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
33295 *) # Relative name.
33296 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
33299 { $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
33300 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
33301 # The eval makes quoting arguments work.
33302 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
33303 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
33304 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
33310 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
33311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33312 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}