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>
634 enable_option_checking
=no
635 ac_subst_vars
='LTLIBOBJS
649 HAVE_NATIVE_GCORE_HOST
739 READLINE_DOC_SOURCE_INCLUDES
740 READLINE_TEXI_INCFLAG
759 HAVE_NATIVE_GCORE_TARGET
763 ENABLE_BFD_64_BIT_FALSE
764 ENABLE_BFD_64_BIT_TRUE
834 INSTALL_STRIP_PROGRAM
864 MAINTAINER_MODE_FALSE
893 program_transform_name
904 ac_subst_files
='nat_makefile_frag'
906 enable_option_checking
907 enable_maintainer_mode
922 with_libxxhash_prefix
929 with_separate_debug_dir
930 with_additional_debug_dirs
932 with_relocated_sources
934 with_auto_load_safe_path
958 enable_source_highlight
961 with_system_gdbinit_dir
963 enable_build_warnings
964 enable_gdb_build_warnings
975 with_libbabeltrace_prefix
976 with_libbabeltrace_type
980 ac_precious_vars
='build_alias
1009 ac_subdirs_all
='testsuite
1012 # Initialize some variables set by options.
1014 ac_init_version
=false
1015 ac_unrecognized_opts
=
1016 ac_unrecognized_sep
=
1017 # The variables have the same names as the options, with
1018 # dashes changed to underlines.
1019 cache_file
=/dev
/null
1026 program_transform_name
=s
,x
,x
,
1034 # Installation directory options.
1035 # These are left unexpanded so users can "make install exec_prefix=/foo"
1036 # and all the variables that are supposed to be based on exec_prefix
1037 # by default will actually change.
1038 # Use braces instead of parens because sh, perl, etc. also accept them.
1039 # (The list follows the same order as the GNU Coding Standards.)
1040 bindir
='${exec_prefix}/bin'
1041 sbindir
='${exec_prefix}/sbin'
1042 libexecdir
='${exec_prefix}/libexec'
1043 datarootdir
='${prefix}/share'
1044 datadir
='${datarootdir}'
1045 sysconfdir
='${prefix}/etc'
1046 sharedstatedir
='${prefix}/com'
1047 localstatedir
='${prefix}/var'
1048 includedir
='${prefix}/include'
1049 oldincludedir
='/usr/include'
1050 docdir
='${datarootdir}/doc/${PACKAGE}'
1051 infodir
='${datarootdir}/info'
1056 libdir
='${exec_prefix}/lib'
1057 localedir
='${datarootdir}/locale'
1058 mandir
='${datarootdir}/man'
1064 # If the previous option needs an argument, assign it.
1065 if test -n "$ac_prev"; then
1066 eval $ac_prev=\
$ac_option
1072 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1077 # Accept the important Cygnus configure options, so we can diagnose typos.
1079 case $ac_dashdash$ac_option in
1083 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1085 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1086 bindir
=$ac_optarg ;;
1088 -build |
--build |
--buil |
--bui |
--bu)
1089 ac_prev
=build_alias
;;
1090 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1091 build_alias
=$ac_optarg ;;
1093 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1094 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1095 ac_prev
=cache_file
;;
1096 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1097 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1098 cache_file
=$ac_optarg ;;
1100 --config-cache |
-C)
1101 cache_file
=config.cache
;;
1103 -datadir |
--datadir |
--datadi |
--datad)
1105 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1106 datadir
=$ac_optarg ;;
1108 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1109 |
--dataroo |
--dataro |
--datar)
1110 ac_prev
=datarootdir
;;
1111 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1112 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1113 datarootdir
=$ac_optarg ;;
1115 -disable-* |
--disable-*)
1116 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1119 as_fn_error $?
"invalid feature name: $ac_useropt"
1120 ac_useropt_orig
=$ac_useropt
1121 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in
1124 "enable_
$ac_useropt"
1126 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1127 ac_unrecognized_sep
=', ';;
1129 eval enable_
$ac_useropt=no
;;
1131 -docdir |
--docdir |
--docdi |
--doc |
--do)
1133 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1134 docdir
=$ac_optarg ;;
1136 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1138 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1139 dvidir
=$ac_optarg ;;
1141 -enable-* |
--enable-*)
1142 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1145 as_fn_error $?
"invalid feature name: $ac_useropt"
1146 ac_useropt_orig
=$ac_useropt
1147 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1150 "enable_
$ac_useropt"
1152 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1153 ac_unrecognized_sep
=', ';;
1155 eval enable_
$ac_useropt=\
$ac_optarg ;;
1157 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1158 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1159 |
--exec |
--exe |
--ex)
1160 ac_prev
=exec_prefix
;;
1161 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1162 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1163 |
--exec=* |
--exe=* |
--ex=*)
1164 exec_prefix
=$ac_optarg ;;
1166 -gas |
--gas |
--ga |
--g)
1167 # Obsolete; use --with-gas.
1170 -help |
--help |
--hel |
--he |
-h)
1171 ac_init_help
=long
;;
1172 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1173 ac_init_help
=recursive
;;
1174 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1175 ac_init_help
=short
;;
1177 -host |
--host |
--hos |
--ho)
1178 ac_prev
=host_alias
;;
1179 -host=* |
--host=* |
--hos=* |
--ho=*)
1180 host_alias
=$ac_optarg ;;
1182 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1184 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1186 htmldir
=$ac_optarg ;;
1188 -includedir |
--includedir |
--includedi |
--included |
--include \
1189 |
--includ |
--inclu |
--incl |
--inc)
1190 ac_prev
=includedir
;;
1191 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1192 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1193 includedir
=$ac_optarg ;;
1195 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1197 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1198 infodir
=$ac_optarg ;;
1200 -libdir |
--libdir |
--libdi |
--libd)
1202 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1203 libdir
=$ac_optarg ;;
1205 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1206 |
--libexe |
--libex |
--libe)
1207 ac_prev
=libexecdir
;;
1208 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1209 |
--libexe=* |
--libex=* |
--libe=*)
1210 libexecdir
=$ac_optarg ;;
1212 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1213 ac_prev
=localedir
;;
1214 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1215 localedir
=$ac_optarg ;;
1217 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1218 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1219 ac_prev
=localstatedir
;;
1220 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1221 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1222 localstatedir
=$ac_optarg ;;
1224 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1226 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1227 mandir
=$ac_optarg ;;
1229 -nfp |
--nfp |
--nf)
1230 # Obsolete; use --without-fp.
1233 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1234 |
--no-cr |
--no-c |
-n)
1237 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1238 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1241 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1242 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1243 |
--oldin |
--oldi |
--old |
--ol |
--o)
1244 ac_prev
=oldincludedir
;;
1245 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1246 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1247 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1248 oldincludedir
=$ac_optarg ;;
1250 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1252 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1253 prefix
=$ac_optarg ;;
1255 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1256 |
--program-pre |
--program-pr |
--program-p)
1257 ac_prev
=program_prefix
;;
1258 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1259 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1260 program_prefix
=$ac_optarg ;;
1262 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1263 |
--program-suf |
--program-su |
--program-s)
1264 ac_prev
=program_suffix
;;
1265 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1266 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1267 program_suffix
=$ac_optarg ;;
1269 -program-transform-name |
--program-transform-name \
1270 |
--program-transform-nam |
--program-transform-na \
1271 |
--program-transform-n |
--program-transform- \
1272 |
--program-transform |
--program-transfor \
1273 |
--program-transfo |
--program-transf \
1274 |
--program-trans |
--program-tran \
1275 |
--progr-tra |
--program-tr |
--program-t)
1276 ac_prev
=program_transform_name
;;
1277 -program-transform-name=* |
--program-transform-name=* \
1278 |
--program-transform-nam=* |
--program-transform-na=* \
1279 |
--program-transform-n=* |
--program-transform-=* \
1280 |
--program-transform=* |
--program-transfor=* \
1281 |
--program-transfo=* |
--program-transf=* \
1282 |
--program-trans=* |
--program-tran=* \
1283 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1284 program_transform_name
=$ac_optarg ;;
1286 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1288 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1289 pdfdir
=$ac_optarg ;;
1291 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1293 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1296 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1297 |
-silent |
--silent |
--silen |
--sile |
--sil)
1300 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1302 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1304 sbindir
=$ac_optarg ;;
1306 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1307 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1308 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1310 ac_prev
=sharedstatedir
;;
1311 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1312 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1313 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1315 sharedstatedir
=$ac_optarg ;;
1317 -site |
--site |
--sit)
1319 -site=* |
--site=* |
--sit=*)
1322 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1324 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1325 srcdir
=$ac_optarg ;;
1327 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1328 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1329 ac_prev
=sysconfdir
;;
1330 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1331 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1332 sysconfdir
=$ac_optarg ;;
1334 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1335 ac_prev
=target_alias
;;
1336 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1337 target_alias
=$ac_optarg ;;
1339 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1342 -version |
--version |
--versio |
--versi |
--vers |
-V)
1343 ac_init_version
=: ;;
1346 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1347 # Reject names that are not valid shell variable names.
1348 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1349 as_fn_error $?
"invalid package name: $ac_useropt"
1350 ac_useropt_orig
=$ac_useropt
1351 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1352 case $ac_user_opts in
1356 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1357 ac_unrecognized_sep
=', ';;
1359 eval with_
$ac_useropt=\
$ac_optarg ;;
1361 -without-* |
--without-*)
1362 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1363 # Reject names that are not valid shell variable names.
1364 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1365 as_fn_error $?
"invalid package name: $ac_useropt"
1366 ac_useropt_orig
=$ac_useropt
1367 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1368 case $ac_user_opts in
1372 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1373 ac_unrecognized_sep
=', ';;
1375 eval with_
$ac_useropt=no
;;
1378 # Obsolete; use --with-x.
1381 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1382 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1383 ac_prev
=x_includes
;;
1384 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1385 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1386 x_includes
=$ac_optarg ;;
1388 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1389 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1390 ac_prev
=x_libraries
;;
1391 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1392 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1393 x_libraries
=$ac_optarg ;;
1395 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1396 Try \`$0 --help' for more information"
1400 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1401 # Reject names that are not valid shell variable names.
1402 case $ac_envvar in #(
1403 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1404 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1406 eval $ac_envvar=\
$ac_optarg
1407 export $ac_envvar ;;
1410 # FIXME: should be removed in autoconf 3.0.
1411 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1412 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1413 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1414 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1420 if test -n "$ac_prev"; then
1421 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1422 as_fn_error $?
"missing argument to $ac_option"
1425 if test -n "$ac_unrecognized_opts"; then
1426 case $enable_option_checking in
1428 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1429 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1433 # Check all directory arguments for consistency.
1434 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1435 datadir sysconfdir sharedstatedir localstatedir includedir \
1436 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1437 libdir localedir mandir
1439 eval ac_val
=\$
$ac_var
1440 # Remove trailing slashes.
1443 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1444 eval $ac_var=\
$ac_val;;
1446 # Be sure to have absolute directory names.
1448 [\\/$
]* | ?
:[\\/]* ) continue;;
1449 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1451 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1454 # There might be people who depend on the old broken behavior: `$host'
1455 # used to hold the argument of --host etc.
1456 # FIXME: To remove some day.
1459 target
=$target_alias
1461 # FIXME: To remove some day.
1462 if test "x$host_alias" != x
; then
1463 if test "x$build_alias" = x
; then
1464 cross_compiling
=maybe
1465 elif test "x$build_alias" != "x$host_alias"; then
1471 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1473 test "$silent" = yes && exec 6>/dev
/null
1476 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1477 ac_ls_di
=`ls -di .` &&
1478 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1479 as_fn_error $?
"working directory cannot be determined"
1480 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1481 as_fn_error $?
"pwd does not report name of working directory"
1484 # Find the source files, if location was not specified.
1485 if test -z "$srcdir"; then
1486 ac_srcdir_defaulted
=yes
1487 # Try the directory containing this script, then the parent directory.
1488 ac_confdir
=`$as_dirname -- "$as_myself" ||
1489 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1490 X"$as_myself" : 'X\(//\)[^/]' \| \
1491 X"$as_myself" : 'X\(//\)$' \| \
1492 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1493 $as_echo X"$as_myself" |
1494 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1512 if test ! -r "$srcdir/$ac_unique_file"; then
1516 ac_srcdir_defaulted
=no
1518 if test ! -r "$srcdir/$ac_unique_file"; then
1519 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1520 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1522 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1524 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1526 # When building in place, set srcdir=.
1527 if test "$ac_abs_confdir" = "$ac_pwd"; then
1530 # Remove unnecessary trailing slashes from srcdir.
1531 # Double slashes in file names in object file debugging info
1532 # mess up M-x gdb in Emacs.
1534 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1536 for ac_var
in $ac_precious_vars; do
1537 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1538 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1539 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1540 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1544 # Report the --help message.
1546 if test "$ac_init_help" = "long"; then
1547 # Omit some internal or obsolete options to make the list less imposing.
1548 # This message is too long to be a string in the A/UX 3.1 sh.
1550 \`configure' configures this package to adapt to many kinds of systems.
1552 Usage: $0 [OPTION]... [VAR=VALUE]...
1554 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1555 VAR=VALUE. See below for descriptions of some of the useful variables.
1557 Defaults for the options are specified in brackets.
1560 -h, --help display this help and exit
1561 --help=short display options specific to this package
1562 --help=recursive display the short help of all the included packages
1563 -V, --version display version information and exit
1564 -q, --quiet, --silent do not print \`checking ...' messages
1565 --cache-file=FILE cache test results in FILE [disabled]
1566 -C, --config-cache alias for \`--cache-file=config.cache'
1567 -n, --no-create do not create output files
1568 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1570 Installation directories:
1571 --prefix=PREFIX install architecture-independent files in PREFIX
1572 [$ac_default_prefix]
1573 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1576 By default, \`make install' will install all the files in
1577 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1578 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1579 for instance \`--prefix=\$HOME'.
1581 For better control, use the options below.
1583 Fine tuning of the installation directories:
1584 --bindir=DIR user executables [EPREFIX/bin]
1585 --sbindir=DIR system admin executables [EPREFIX/sbin]
1586 --libexecdir=DIR program executables [EPREFIX/libexec]
1587 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1588 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1589 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1590 --libdir=DIR object code libraries [EPREFIX/lib]
1591 --includedir=DIR C header files [PREFIX/include]
1592 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1593 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1594 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1595 --infodir=DIR info documentation [DATAROOTDIR/info]
1596 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1597 --mandir=DIR man documentation [DATAROOTDIR/man]
1598 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1599 --htmldir=DIR html documentation [DOCDIR]
1600 --dvidir=DIR dvi documentation [DOCDIR]
1601 --pdfdir=DIR pdf documentation [DOCDIR]
1602 --psdir=DIR ps documentation [DOCDIR]
1608 --program-prefix=PREFIX prepend PREFIX to installed program names
1609 --program-suffix=SUFFIX append SUFFIX to installed program names
1610 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1613 --x-includes=DIR X include files are
in DIR
1614 --x-libraries=DIR X library files are
in DIR
1617 --build=BUILD configure
for building on BUILD
[guessed
]
1618 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1619 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1623 if test -n "$ac_init_help"; then
1628 --disable-option-checking ignore unrecognized
--enable/--with options
1629 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1630 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1631 --enable-maintainer-mode
1632 enable make rules and dependencies not useful
(and
1633 sometimes confusing
) to the casual installer
1634 --enable-plugins Enable support
for plugins
1635 --disable-largefile omit support
for large files
1636 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1637 --enable-static[=PKGS
] build static libraries
[default
=yes]
1638 --enable-fast-install[=PKGS
]
1639 optimize
for fast installation
[default
=yes]
1640 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1641 --enable-threading include support
for parallel processing of data
1643 --disable-rpath do not hardcode runtime library paths
1644 --disable-nls do not use Native Language Support
1645 --enable-targets=TARGETS
1646 alternative target configurations
1647 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1648 --enable-tui enable full-screen terminal user interface
(TUI
)
1649 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1650 --enable-profiling enable profiling of GDB
1651 --enable-codesign=CERT sign gdb with
'codesign -s CERT'
1652 --enable-source-highlight
1653 enable source-highlight
for source listings
1654 --enable-werror treat compile warnings as errors
1655 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1656 --enable-gdb-build-warnings
1657 enable GDB specific build-time compiler warnings
if
1659 --enable-ubsan enable undefined behavior sanitizer
(auto
/yes
/no
)
1660 --enable-sim link gdb with simulator
1661 --enable-libbacktrace use libbacktrace to
write a backtrace after a fatal
1663 --enable-libctf Handle .ctf type-info sections
[default
=yes]
1664 --enable-unit-tests Enable the inclusion of unit tests when compiling
1668 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1669 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1670 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1672 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1673 --with-intel-pt include Intel Processor Trace support
(auto
/yes
/no
)
1674 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1675 --with-libipt-prefix[=DIR
] search
for libipt
in DIR
/include and DIR
/lib
1676 --without-libipt-prefix don
't search for libipt in includedir and libdir
1677 --with-libipt-type=TYPE type of library to search for (auto/static/shared)
1678 --with-xxhash use libxxhash for hashing (faster) (auto/yes/no)
1679 --with-libxxhash-prefix[=DIR] search for libxxhash in DIR/include and DIR/lib
1680 --without-libxxhash-prefix don't search
for libxxhash
in includedir and libdir
1681 --with-libxxhash-type=TYPE
type of library to search
for (auto
/static
/shared
)
1682 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1683 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1684 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1685 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1686 --without-libintl-prefix don't search
for libintl
in includedir and libdir
1687 --with-libintl-type=TYPE
type of library to search
for (auto
/static
/shared
)
1688 --with-separate-debug-dir=PATH
1689 look for global separate debug info
in this path
1691 --with-additional-debug-dirs=PATHs
1692 colon-separated list of additional directories to
1693 search
for separate debug info
1694 --with-gdb-datadir=PATH
look for global separate data files
in this path
1696 --with-relocated-sources=PATH
1697 automatically relocate this path
for source files
1698 --with-auto-load-dir=PATH
1699 directories from
which to load auto-loaded scripts
1700 [$debugdir:$datadir/auto-load
]
1701 --with-auto-load-safe-path=PATH
1702 directories safe to hold auto-loaded files
1703 [--with-auto-load-dir]
1704 --without-auto-load-safe-path
1705 do not restrict auto-loaded files locations
1706 --with-amd-dbgapi support
for the amd-dbgapi target
(yes / no
/ auto
)
1707 --with-debuginfod Enable debuginfo lookups with debuginfod
1709 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1710 --with-curses use the curses library instead of the termcap
1712 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1713 --with-bugurl=URL Direct users to URL to report a bug
1714 --with-system-zlib use installed libz
1715 --with-zstd support zstd compressed debug sections
1717 --with-iconv-bin=PATH specify where to
find the
iconv program
1718 --with-system-readline use installed readline library
1719 --with-jit-reader-dir=PATH
1720 directory to load the JIT readers from
1721 --with-expat include expat support
(auto
/yes
/no
)
1722 --with-libexpat-prefix[=DIR
] search
for libexpat
in DIR
/include and DIR
/lib
1723 --without-libexpat-prefix don
't search for libexpat in includedir and libdir
1724 --with-libexpat-type=TYPE type of library to search for (auto/static/shared)
1725 --with-python[=PYTHON] include python support
1726 (auto/yes/no/<python-program>)
1727 --with-python-libdir[=DIR]
1728 search for python's libraries
in DIR
1729 --with-guile[=GUILE
] include guile support
1730 (auto
/yes
/no
/<guile-version
>/<pkg-config-program
>)
1731 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1732 --with-system-gdbinit=PATH
1733 automatically load a system-wide gdbinit
file
1734 --with-system-gdbinit-dir=PATH
1735 automatically load system-wide gdbinit files from
1737 --with-lzma support lzma compression
(auto
/yes
/no
)
1738 --with-liblzma-prefix[=DIR
] search
for liblzma
in DIR
/include and DIR
/lib
1739 --without-liblzma-prefix don
't search for liblzma in includedir and libdir
1740 --with-liblzma-type=TYPE type of library to search for (auto/static/shared)
1741 --with-tcl directory containing tcl configuration (tclConfig.sh)
1742 --with-tk directory containing tk configuration (tkConfig.sh)
1743 --with-x use the X Window System
1744 --with-babeltrace include babeltrace support (auto/yes/no)
1745 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1746 --without-libbabeltrace-prefix don't search
for libbabeltrace
in includedir and libdir
1747 --with-libbabeltrace-type=TYPE
type of library to search
for (auto
/static
/shared
)
1749 Some influential environment variables
:
1750 CC C compiler
command
1751 CFLAGS C compiler flags
1752 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1753 nonstandard directory
<lib dir
>
1754 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1755 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1756 you have headers
in a nonstandard directory
<include dir
>
1757 CXX C
++ compiler
command
1758 CXXFLAGS C
++ compiler flags
1760 CXXCPP C
++ preprocessor
1761 PKG_CONFIG path to pkg-config utility
1763 directories to add to pkg-config
's search path
1765 path overriding pkg-config's built-in search path
1766 MAKEINFO Parent configure detects
if it is of sufficient version.
1768 Parameters
for MAKEINFO.
1770 C compiler flags
for AMD_DBGAPI
, overriding pkg-config
1772 linker flags
for AMD_DBGAPI
, overriding pkg-config
1774 C compiler flags
for DEBUGINFOD
, overriding pkg-config
1776 linker flags
for DEBUGINFOD
, overriding pkg-config
1777 YACC The
`Yet Another Compiler Compiler' implementation to use.
1778 Defaults to the first program found out of: `bison
-y', `byacc',
1780 YFLAGS The list of arguments that will be passed by default to $YACC.
1781 This script will default YFLAGS to the empty string to avoid a
1782 default value of `-d' given by some make applications.
1783 ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1784 ZSTD_LIBS linker flags for ZSTD, overriding pkg-config
1785 GMPLIBS How to link GMP
1786 GMPINC How to find GMP include files
1787 XMKMF Path to xmkmf, Makefile generator for X Window System
1789 Use these variables to override the choices made by `configure' or to
help
1790 it to
find libraries and programs with nonstandard names
/locations.
1792 Report bugs to the package provider.
1797 if test "$ac_init_help" = "recursive"; then
1798 # If there are subdirs, report their specific --help.
1799 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1800 test -d "$ac_dir" ||
1801 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1806 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1808 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1809 # A ".." for each directory in $ac_dir_suffix.
1810 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1811 case $ac_top_builddir_sub in
1812 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1813 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1816 ac_abs_top_builddir
=$ac_pwd
1817 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1818 # for backward compatibility:
1819 ac_top_builddir
=$ac_top_build_prefix
1822 .
) # We are building in place.
1824 ac_top_srcdir
=$ac_top_builddir_sub
1825 ac_abs_top_srcdir
=$ac_pwd ;;
1826 [\\/]* | ?
:[\\/]* ) # Absolute name.
1827 ac_srcdir
=$srcdir$ac_dir_suffix;
1828 ac_top_srcdir
=$srcdir
1829 ac_abs_top_srcdir
=$srcdir ;;
1831 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1832 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1833 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1835 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1837 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1838 # Check for guested configure.
1839 if test -f "$ac_srcdir/configure.gnu"; then
1841 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1842 elif test -f "$ac_srcdir/configure"; then
1844 $SHELL "$ac_srcdir/configure" --help=recursive
1846 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1848 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1852 test -n "$ac_init_help" && exit $ac_status
1853 if $ac_init_version; then
1856 generated by GNU Autoconf
2.69
1858 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1859 This configure
script is free software
; the Free Software Foundation
1860 gives unlimited permission to copy
, distribute and modify it.
1865 ## ------------------------ ##
1866 ## Autoconf initialization. ##
1867 ## ------------------------ ##
1869 # ac_fn_c_try_compile LINENO
1870 # --------------------------
1871 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1872 ac_fn_c_try_compile
()
1874 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1875 rm -f conftest.
$ac_objext
1876 if { { ac_try
="$ac_compile"
1878 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1879 *) ac_try_echo=$ac_try;;
1881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1882 $as_echo "$ac_try_echo"; } >&5
1883 (eval "$ac_compile") 2>conftest.err
1885 if test -s conftest.err; then
1886 grep -v '^ *+' conftest.err >conftest.er1
1887 cat conftest.er1 >&5
1888 mv -f conftest.er1 conftest.err
1890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1891 test $ac_status = 0; } && {
1892 test -z "$ac_c_werror_flag" ||
1893 test ! -s conftest.err
1894 } && test -s conftest.$ac_objext; then :
1897 $as_echo "$as_me: failed program was:" >&5
1898 sed 's/^/| /' conftest.$ac_ext >&5
1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903 as_fn_set_status $ac_retval
1905 } # ac_fn_c_try_compile
1907 # ac_fn_cxx_try_compile LINENO
1908 # ----------------------------
1909 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1910 ac_fn_cxx_try_compile ()
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 rm -f conftest.$ac_objext
1914 if { { ac_try="$ac_compile"
1916 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1917 *) ac_try_echo
=$ac_try;;
1919 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920 $as_echo "$ac_try_echo"; } >&5
1921 (eval "$ac_compile") 2>conftest.err
1923 if test -s conftest.err
; then
1924 grep -v '^ *+' conftest.err
>conftest.er1
1925 cat conftest.er1
>&5
1926 mv -f conftest.er1 conftest.err
1928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929 test $ac_status = 0; } && {
1930 test -z "$ac_cxx_werror_flag" ||
1931 test ! -s conftest.err
1932 } && test -s conftest.
$ac_objext; then :
1935 $as_echo "$as_me: failed program was:" >&5
1936 sed 's/^/| /' conftest.
$ac_ext >&5
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941 as_fn_set_status
$ac_retval
1943 } # ac_fn_cxx_try_compile
1945 # ac_fn_c_try_cpp LINENO
1946 # ----------------------
1947 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1950 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1951 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1953 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1954 *) ac_try_echo=$ac_try;;
1956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1957 $as_echo "$ac_try_echo"; } >&5
1958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1960 if test -s conftest.err; then
1961 grep -v '^ *+' conftest.err >conftest.er1
1962 cat conftest.er1 >&5
1963 mv -f conftest.er1 conftest.err
1965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1966 test $ac_status = 0; } > conftest.i && {
1967 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1968 test ! -s conftest.err
1972 $as_echo "$as_me: failed program was:" >&5
1973 sed 's/^/| /' conftest.$ac_ext >&5
1977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978 as_fn_set_status $ac_retval
1982 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1983 # -------------------------------------------------------
1984 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1985 # the include files in INCLUDES and setting the cache variable VAR
1987 ac_fn_c_check_header_mongrel ()
1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990 if eval \${$3+:} false; then :
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1992 $as_echo_n "checking for $2... " >&6; }
1993 if eval \${$3+:} false; then :
1994 $as_echo_n "(cached) " >&6
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998 $as_echo "$ac_res" >&6; }
2000 # Is the header compilable?
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2002 $as_echo_n "checking $2 usability... " >&6; }
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2008 if ac_fn_c_try_compile "$LINENO"; then :
2009 ac_header_compiler=yes
2011 ac_header_compiler=no
2013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2015 $as_echo "$ac_header_compiler" >&6; }
2017 # Is the header present?
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2019 $as_echo_n "checking $2 presence... " >&6; }
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2024 if ac_fn_c_try_cpp "$LINENO"; then :
2025 ac_header_preproc=yes
2027 ac_header_preproc=no
2029 rm -f conftest.err conftest.i conftest.$ac_ext
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2031 $as_echo "$ac_header_preproc" >&6; }
2033 # So? What about this header?
2034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2037 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2039 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2043 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2045 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2047 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2049 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2051 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2055 $as_echo_n "checking for $2... " >&6; }
2056 if eval \${$3+:} false; then :
2057 $as_echo_n "(cached) " >&6
2059 eval "$3=\$ac_header_compiler"
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2063 $as_echo "$ac_res" >&6; }
2065 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2067 } # ac_fn_c_check_header_mongrel
2069 # ac_fn_c_try_run LINENO
2070 # ----------------------
2071 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2072 # that executables *can* be run.
2075 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2076 if { { ac_try="$ac_link"
2078 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2079 *) ac_try_echo
=$ac_try;;
2081 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2082 $as_echo "$ac_try_echo"; } >&5
2083 (eval "$ac_link") 2>&5
2085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2086 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2087 { { case "(($ac_try" in
2088 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2089 *) ac_try_echo=$ac_try;;
2091 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2092 $as_echo "$ac_try_echo"; } >&5
2093 (eval "$ac_try") 2>&5
2095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2096 test $ac_status = 0; }; }; then :
2099 $as_echo "$as_me: program exited with status $ac_status" >&5
2100 $as_echo "$as_me: failed program was:" >&5
2101 sed 's/^/| /' conftest.$ac_ext >&5
2103 ac_retval=$ac_status
2105 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2106 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2107 as_fn_set_status $ac_retval
2111 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2112 # -------------------------------------------------------
2113 # Tests whether HEADER exists and can be compiled using the include files in
2114 # INCLUDES, setting the cache variable VAR accordingly.
2115 ac_fn_c_check_header_compile ()
2117 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2119 $as_echo_n "checking for $2... " >&6; }
2120 if eval \${$3+:} false; then :
2121 $as_echo_n "(cached) " >&6
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h. */
2128 if ac_fn_c_try_compile "$LINENO"; then :
2133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2137 $as_echo "$ac_res" >&6; }
2138 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2140 } # ac_fn_c_check_header_compile
2142 # ac_fn_c_try_link LINENO
2143 # -----------------------
2144 # Try to link conftest.$ac_ext, and return whether this succeeded.
2147 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2148 rm -f conftest.$ac_objext conftest$ac_exeext
2149 if { { ac_try="$ac_link"
2151 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2152 *) ac_try_echo
=$ac_try;;
2154 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2155 $as_echo "$ac_try_echo"; } >&5
2156 (eval "$ac_link") 2>conftest.err
2158 if test -s conftest.err
; then
2159 grep -v '^ *+' conftest.err
>conftest.er1
2160 cat conftest.er1
>&5
2161 mv -f conftest.er1 conftest.err
2163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2164 test $ac_status = 0; } && {
2165 test -z "$ac_c_werror_flag" ||
2166 test ! -s conftest.err
2167 } && test -s conftest
$ac_exeext && {
2168 test "$cross_compiling" = yes ||
2169 test -x conftest
$ac_exeext
2173 $as_echo "$as_me: failed program was:" >&5
2174 sed 's/^/| /' conftest.
$ac_ext >&5
2178 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2179 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2180 # interfere with the next link command; also delete a directory that is
2181 # left behind by Apple's compiler. We do this before executing the actions.
2182 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2183 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2184 as_fn_set_status
$ac_retval
2186 } # ac_fn_c_try_link
2188 # ac_fn_c_check_func LINENO FUNC VAR
2189 # ----------------------------------
2190 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2191 ac_fn_c_check_func
()
2193 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2195 $as_echo_n "checking for $2... " >&6; }
2196 if eval \
${$3+:} false
; then :
2197 $as_echo_n "(cached) " >&6
2199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h. */
2201 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2203 #define $2 innocuous_$2
2205 /* System header to define __stub macros and hopefully few prototypes,
2206 which can conflict with char $2 (); below.
2207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2208 <limits.h> exists even on freestanding compilers. */
2211 # include <limits.h>
2213 # include <assert.h>
2218 /* Override any GCC internal prototype to avoid an error.
2219 Use char because int might match the return type of a GCC
2220 builtin and then its argument prototype would still apply. */
2225 /* The GNU C library defines this for functions which it implements
2226 to always fail with ENOSYS. Some functions are actually named
2227 something starting with __ and the normal name is an alias. */
2228 #if defined __stub_$2 || defined __stub___$2
2240 if ac_fn_c_try_link
"$LINENO"; then :
2245 rm -f core conftest.err conftest.
$ac_objext \
2246 conftest
$ac_exeext conftest.
$ac_ext
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2250 $as_echo "$ac_res" >&6; }
2251 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2253 } # ac_fn_c_check_func
2255 # ac_fn_cxx_try_cpp LINENO
2256 # ------------------------
2257 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2258 ac_fn_cxx_try_cpp
()
2260 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2261 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2263 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2264 *) ac_try_echo=$ac_try;;
2266 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2267 $as_echo "$ac_try_echo"; } >&5
2268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2270 if test -s conftest.err; then
2271 grep -v '^ *+' conftest.err >conftest.er1
2272 cat conftest.er1 >&5
2273 mv -f conftest.er1 conftest.err
2275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2276 test $ac_status = 0; } > conftest.i && {
2277 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2278 test ! -s conftest.err
2282 $as_echo "$as_me: failed program was:" >&5
2283 sed 's/^/| /' conftest.$ac_ext >&5
2287 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2288 as_fn_set_status $ac_retval
2290 } # ac_fn_cxx_try_cpp
2292 # ac_fn_cxx_try_link LINENO
2293 # -------------------------
2294 # Try to link conftest.$ac_ext, and return whether this succeeded.
2295 ac_fn_cxx_try_link ()
2297 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2298 rm -f conftest.$ac_objext conftest$ac_exeext
2299 if { { ac_try="$ac_link"
2301 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2302 *) ac_try_echo
=$ac_try;;
2304 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2305 $as_echo "$ac_try_echo"; } >&5
2306 (eval "$ac_link") 2>conftest.err
2308 if test -s conftest.err
; then
2309 grep -v '^ *+' conftest.err
>conftest.er1
2310 cat conftest.er1
>&5
2311 mv -f conftest.er1 conftest.err
2313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2314 test $ac_status = 0; } && {
2315 test -z "$ac_cxx_werror_flag" ||
2316 test ! -s conftest.err
2317 } && test -s conftest
$ac_exeext && {
2318 test "$cross_compiling" = yes ||
2319 test -x conftest
$ac_exeext
2323 $as_echo "$as_me: failed program was:" >&5
2324 sed 's/^/| /' conftest.
$ac_ext >&5
2328 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2329 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2330 # interfere with the next link command; also delete a directory that is
2331 # left behind by Apple's compiler. We do this before executing the actions.
2332 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2333 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2334 as_fn_set_status
$ac_retval
2336 } # ac_fn_cxx_try_link
2338 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2339 # -------------------------------------------
2340 # Tests whether TYPE exists after having included INCLUDES, setting cache
2341 # variable VAR accordingly.
2342 ac_fn_c_check_type
()
2344 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2346 $as_echo_n "checking for $2... " >&6; }
2347 if eval \
${$3+:} false
; then :
2348 $as_echo_n "(cached) " >&6
2351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2352 /* end confdefs.h. */
2363 if ac_fn_c_try_compile
"$LINENO"; then :
2364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2365 /* end confdefs.h. */
2376 if ac_fn_c_try_compile
"$LINENO"; then :
2381 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2383 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2387 $as_echo "$ac_res" >&6; }
2388 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2390 } # ac_fn_c_check_type
2392 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2393 # ---------------------------------------------
2394 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2396 ac_fn_c_check_decl
()
2398 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2399 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2400 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2402 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2403 if eval \
${$3+:} false
; then :
2404 $as_echo_n "(cached) " >&6
2406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2407 /* end confdefs.h. */
2412 #ifndef $as_decl_name
2414 (void) $as_decl_use;
2416 (void) $as_decl_name;
2424 if ac_fn_c_try_compile
"$LINENO"; then :
2429 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2433 $as_echo "$ac_res" >&6; }
2434 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2436 } # ac_fn_c_check_decl
2438 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2439 # ----------------------------------------------------
2440 # Tries to find if the field MEMBER exists in type AGGR, after including
2441 # INCLUDES, setting cache variable VAR accordingly.
2442 ac_fn_c_check_member
()
2444 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2446 $as_echo_n "checking for $2.$3... " >&6; }
2447 if eval \
${$4+:} false
; then :
2448 $as_echo_n "(cached) " >&6
2450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2451 /* end confdefs.h. */
2463 if ac_fn_c_try_compile
"$LINENO"; then :
2466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2467 /* end confdefs.h. */
2473 if (sizeof ac_aggr.$3)
2479 if ac_fn_c_try_compile
"$LINENO"; then :
2484 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2486 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2490 $as_echo "$ac_res" >&6; }
2491 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2493 } # ac_fn_c_check_member
2495 # ac_fn_cxx_check_func LINENO FUNC VAR
2496 # ------------------------------------
2497 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2498 ac_fn_cxx_check_func
()
2500 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2502 $as_echo_n "checking for $2... " >&6; }
2503 if eval \
${$3+:} false
; then :
2504 $as_echo_n "(cached) " >&6
2506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2507 /* end confdefs.h. */
2508 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2510 #define $2 innocuous_$2
2512 /* System header to define __stub macros and hopefully few prototypes,
2513 which can conflict with char $2 (); below.
2514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2515 <limits.h> exists even on freestanding compilers. */
2518 # include <limits.h>
2520 # include <assert.h>
2525 /* Override any GCC internal prototype to avoid an error.
2526 Use char because int might match the return type of a GCC
2527 builtin and then its argument prototype would still apply. */
2532 /* The GNU C library defines this for functions which it implements
2533 to always fail with ENOSYS. Some functions are actually named
2534 something starting with __ and the normal name is an alias. */
2535 #if defined __stub_$2 || defined __stub___$2
2547 if ac_fn_cxx_try_link
"$LINENO"; then :
2552 rm -f core conftest.err conftest.
$ac_objext \
2553 conftest
$ac_exeext conftest.
$ac_ext
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2557 $as_echo "$ac_res" >&6; }
2558 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2560 } # ac_fn_cxx_check_func
2562 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2563 # --------------------------------------------
2564 # Tries to find the compile-time value of EXPR in a program that includes
2565 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2567 ac_fn_c_compute_int
()
2569 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2570 if test "$cross_compiling" = yes; then
2571 # Depending upon the size, compute the lo and hi bounds.
2572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2573 /* end confdefs.h. */
2578 static int test_array [1 - 2 * !(($2) >= 0)];
2580 return test_array [0];
2586 if ac_fn_c_try_compile
"$LINENO"; then :
2589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2590 /* end confdefs.h. */
2595 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2597 return test_array [0];
2603 if ac_fn_c_try_compile
"$LINENO"; then :
2604 ac_hi
=$ac_mid; break
2606 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2607 if test $ac_lo -le $ac_mid; then
2611 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2613 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2617 /* end confdefs.h. */
2622 static int test_array [1 - 2 * !(($2) < 0)];
2624 return test_array [0];
2630 if ac_fn_c_try_compile
"$LINENO"; then :
2633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2634 /* end confdefs.h. */
2639 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2641 return test_array [0];
2647 if ac_fn_c_try_compile
"$LINENO"; then :
2648 ac_lo
=$ac_mid; break
2650 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2651 if test $ac_mid -le $ac_hi; then
2655 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2657 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2664 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2665 # Binary search between lo and hi bounds.
2666 while test "x$ac_lo" != "x$ac_hi"; do
2667 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2669 /* end confdefs.h. */
2674 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2676 return test_array [0];
2682 if ac_fn_c_try_compile
"$LINENO"; then :
2685 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2687 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2690 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2695 /* end confdefs.h. */
2697 static long int longval () { return $2; }
2698 static unsigned long int ulongval () { return $2; }
2705 FILE *f = fopen ("conftest.val", "w");
2710 long int i = longval ();
2713 fprintf (f, "%ld", i);
2717 unsigned long int i = ulongval ();
2720 fprintf (f, "%lu", i);
2722 /* Do not output a trailing newline, as this causes \r\n confusion
2723 on some platforms. */
2724 return ferror (f) || fclose (f) != 0;
2730 if ac_fn_c_try_run
"$LINENO"; then :
2731 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2735 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2736 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2741 as_fn_set_status
$ac_retval
2743 } # ac_fn_c_compute_int
2744 cat >config.log
<<_ACEOF
2745 This file contains any messages produced by compilers while
2746 running configure, to aid debugging if configure makes a mistake.
2748 It was created by $as_me, which was
2749 generated by GNU Autoconf 2.69. Invocation command line was
2761 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2762 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2763 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2764 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2765 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2767 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2768 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2770 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2771 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2772 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2773 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2774 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2775 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2776 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2780 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2784 test -z "$as_dir" && as_dir
=.
2785 $as_echo "PATH: $as_dir"
2801 # Keep a trace of the command line.
2802 # Strip out --no-create and --no-recursion so they do not pile up.
2803 # Strip out --silent because we don't want to record it for future runs.
2804 # Also quote any args containing shell meta-characters.
2805 # Make two passes to allow for proper duplicate-argument suppression.
2809 ac_must_keep_next
=false
2815 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2816 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2817 |
-silent |
--silent |
--silen |
--sile |
--sil)
2820 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2823 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2825 as_fn_append ac_configure_args1
" '$ac_arg'"
2826 if test $ac_must_keep_next = true
; then
2827 ac_must_keep_next
=false
# Got value, back to normal.
2830 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2831 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2832 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2833 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2834 case "$ac_configure_args0 " in
2835 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2838 -* ) ac_must_keep_next
=true
;;
2841 as_fn_append ac_configure_args
" '$ac_arg'"
2846 { ac_configure_args0
=; unset ac_configure_args0
;}
2847 { ac_configure_args1
=; unset ac_configure_args1
;}
2849 # When interrupted or exit'd, cleanup temporary files, and complete
2850 # config.log. We remove comments because anyway the quotes in there
2851 # would cause problems or look ugly.
2852 # WARNING: Use '\'' to represent an apostrophe within the trap.
2853 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2854 trap 'exit_status=$?
2855 # Save into config.log some information that might help in debugging.
2859 $as_echo "## ---------------- ##
2860 ## Cache variables. ##
2861 ## ---------------- ##"
2863 # The following way of writing the cache mishandles newlines in values,
2865 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2866 eval ac_val=\$$ac_var
2870 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2871 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2874 _ | IFS | as_nl) ;; #(
2875 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2876 *) { eval $ac_var=; unset $ac_var;} ;;
2881 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2882 *${as_nl}ac_space=\ *)
2884 "s/'\''/'\''\\\\'\'''\''/g;
2885 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2888 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2895 $as_echo "## ----------------- ##
2896 ## Output variables. ##
2897 ## ----------------- ##"
2899 for ac_var in $ac_subst_vars
2901 eval ac_val=\$$ac_var
2903 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2905 $as_echo "$ac_var='\''$ac_val'\''"
2909 if test -n "$ac_subst_files"; then
2910 $as_echo "## ------------------- ##
2911 ## File substitutions. ##
2912 ## ------------------- ##"
2914 for ac_var
in $ac_subst_files
2916 eval ac_val
=\$
$ac_var
2918 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2920 $as_echo "$ac_var='\''$ac_val'\''"
2925 if test -s confdefs.h; then
2926 $as_echo "## ----------- ##
2933 test "$ac_signal" != 0 &&
2934 $as_echo "$as_me: caught signal $ac_signal"
2935 $as_echo "$as_me: exit $exit_status"
2937 rm -f core *.core core.conftest.* &&
2938 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2941 for ac_signal
in 1 2 13 15; do
2942 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2946 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2947 rm -f -r conftest
* confdefs.h
2949 $as_echo "/* confdefs.h */" > confdefs.h
2951 # Predefined preprocessor variables.
2953 cat >>confdefs.h
<<_ACEOF
2954 #define PACKAGE_NAME "$PACKAGE_NAME"
2957 cat >>confdefs.h
<<_ACEOF
2958 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2961 cat >>confdefs.h
<<_ACEOF
2962 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2965 cat >>confdefs.h
<<_ACEOF
2966 #define PACKAGE_STRING "$PACKAGE_STRING"
2969 cat >>confdefs.h
<<_ACEOF
2970 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2973 cat >>confdefs.h
<<_ACEOF
2974 #define PACKAGE_URL "$PACKAGE_URL"
2978 # Let the site file select an alternate cache file if it wants to.
2979 # Prefer an explicitly selected file to automatically selected ones.
2982 if test -n "$CONFIG_SITE"; then
2983 # We do not want a PATH search for config.site.
2984 case $CONFIG_SITE in #((
2985 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2986 */*) ac_site_file1
=$CONFIG_SITE;;
2987 *) ac_site_file1
=.
/$CONFIG_SITE;;
2989 elif test "x$prefix" != xNONE
; then
2990 ac_site_file1
=$prefix/share
/config.site
2991 ac_site_file2
=$prefix/etc
/config.site
2993 ac_site_file1
=$ac_default_prefix/share
/config.site
2994 ac_site_file2
=$ac_default_prefix/etc
/config.site
2996 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2998 test "x$ac_site_file" = xNONE
&& continue
2999 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3001 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3002 sed 's/^/| /' "$ac_site_file" >&5
3004 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3006 as_fn_error $?
"failed to load site script $ac_site_file
3007 See \`config.log' for more details" "$LINENO" 5; }
3011 if test -r "$cache_file"; then
3012 # Some versions of bash will fail to source /dev/null (special files
3013 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3014 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3016 $as_echo "$as_me: loading cache $cache_file" >&6;}
3018 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3019 *) .
"./$cache_file";;
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3024 $as_echo "$as_me: creating cache $cache_file" >&6;}
3028 as_fn_append ac_header_list
" stdlib.h"
3029 as_fn_append ac_header_list
" unistd.h"
3030 as_fn_append ac_header_list
" sys/param.h"
3031 gt_needs
="$gt_needs "
3032 # Check that the precious variables saved in the cache have kept the same
3034 ac_cache_corrupted
=false
3035 for ac_var
in $ac_precious_vars; do
3036 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3037 eval ac_new_set
=\
$ac_env_${ac_var}_set
3038 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3039 eval ac_new_val
=\
$ac_env_${ac_var}_value
3040 case $ac_old_set,$ac_new_set in
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3043 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3044 ac_cache_corrupted
=: ;;
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3047 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3048 ac_cache_corrupted
=: ;;
3051 if test "x$ac_old_val" != "x$ac_new_val"; then
3052 # differences in whitespace do not lead to failure.
3053 ac_old_val_w
=`echo x $ac_old_val`
3054 ac_new_val_w
=`echo x $ac_new_val`
3055 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3057 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3058 ac_cache_corrupted
=:
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3061 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3062 eval $ac_var=\
$ac_old_val
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3065 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3067 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3070 # Pass precious variables to config.status.
3071 if test "$ac_new_set" = set; then
3073 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3074 *) ac_arg
=$ac_var=$ac_new_val ;;
3076 case " $ac_configure_args " in
3077 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3078 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3082 if $ac_cache_corrupted; then
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3086 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3087 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3089 ## -------------------- ##
3090 ## Main body of script. ##
3091 ## -------------------- ##
3094 ac_cpp
='$CPP $CPPFLAGS'
3095 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3096 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3097 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3105 ac_config_headers
="$ac_config_headers config.h:config.in"
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3109 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3110 # Check whether --enable-maintainer-mode was given.
3111 if test "${enable_maintainer_mode+set}" = set; then :
3112 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3114 USE_MAINTAINER_MODE
=no
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3118 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3119 if test $USE_MAINTAINER_MODE = yes; then
3120 MAINTAINER_MODE_TRUE
=
3121 MAINTAINER_MODE_FALSE
='#'
3123 MAINTAINER_MODE_TRUE
='#'
3124 MAINTAINER_MODE_FALSE
=
3127 MAINT
=$MAINTAINER_MODE_TRUE
3132 ac_cpp
='$CPP $CPPFLAGS'
3133 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3134 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3135 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3136 if test -n "$ac_tool_prefix"; then
3137 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3138 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if ${ac_cv_prog_CC+:} false
; then :
3142 $as_echo_n "(cached) " >&6
3144 if test -n "$CC"; then
3145 ac_cv_prog_CC
="$CC" # Let the user override the test.
3147 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3151 test -z "$as_dir" && as_dir
=.
3152 for ac_exec_ext
in '' $ac_executable_extensions; do
3153 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3154 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 if test -n "$CC"; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3167 $as_echo "$CC" >&6; }
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3175 if test -z "$ac_cv_prog_CC"; then
3177 # Extract the first word of "gcc", so it can be a program name with args.
3178 set dummy gcc
; ac_word
=$2
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3180 $as_echo_n "checking for $ac_word... " >&6; }
3181 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3182 $as_echo_n "(cached) " >&6
3184 if test -n "$ac_ct_CC"; then
3185 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3187 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3191 test -z "$as_dir" && as_dir
=.
3192 for ac_exec_ext
in '' $ac_executable_extensions; do
3193 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3194 ac_cv_prog_ac_ct_CC
="gcc"
3195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3204 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3205 if test -n "$ac_ct_CC"; then
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3207 $as_echo "$ac_ct_CC" >&6; }
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210 $as_echo "no" >&6; }
3213 if test "x$ac_ct_CC" = x
; then
3216 case $cross_compiling:$ac_tool_warned in
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3220 ac_tool_warned
=yes ;;
3228 if test -z "$CC"; then
3229 if test -n "$ac_tool_prefix"; then
3230 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3231 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3233 $as_echo_n "checking for $ac_word... " >&6; }
3234 if ${ac_cv_prog_CC+:} false
; then :
3235 $as_echo_n "(cached) " >&6
3237 if test -n "$CC"; then
3238 ac_cv_prog_CC
="$CC" # Let the user override the test.
3240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3244 test -z "$as_dir" && as_dir
=.
3245 for ac_exec_ext
in '' $ac_executable_extensions; do
3246 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3247 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3258 if test -n "$CC"; then
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3260 $as_echo "$CC" >&6; }
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263 $as_echo "no" >&6; }
3269 if test -z "$CC"; then
3270 # Extract the first word of "cc", so it can be a program name with args.
3271 set dummy cc
; ac_word
=$2
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3273 $as_echo_n "checking for $ac_word... " >&6; }
3274 if ${ac_cv_prog_CC+:} false
; then :
3275 $as_echo_n "(cached) " >&6
3277 if test -n "$CC"; then
3278 ac_cv_prog_CC
="$CC" # Let the user override the test.
3281 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3285 test -z "$as_dir" && as_dir
=.
3286 for ac_exec_ext
in '' $ac_executable_extensions; do
3287 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3288 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3289 ac_prog_rejected
=yes
3293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3300 if test $ac_prog_rejected = yes; then
3301 # We found a bogon in the path, so make sure we never use it.
3302 set dummy
$ac_cv_prog_CC
3304 if test $# != 0; then
3305 # We chose a different compiler from the bogus one.
3306 # However, it has the same basename, so the bogon will be chosen
3307 # first if we set CC to just the basename; use the full file name.
3309 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3315 if test -n "$CC"; then
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3317 $as_echo "$CC" >&6; }
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3320 $as_echo "no" >&6; }
3325 if test -z "$CC"; then
3326 if test -n "$ac_tool_prefix"; then
3327 for ac_prog
in cl.exe
3329 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3330 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3332 $as_echo_n "checking for $ac_word... " >&6; }
3333 if ${ac_cv_prog_CC+:} false
; then :
3334 $as_echo_n "(cached) " >&6
3336 if test -n "$CC"; then
3337 ac_cv_prog_CC
="$CC" # Let the user override the test.
3339 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3343 test -z "$as_dir" && as_dir
=.
3344 for ac_exec_ext
in '' $ac_executable_extensions; do
3345 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3346 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3357 if test -n "$CC"; then
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3359 $as_echo "$CC" >&6; }
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362 $as_echo "no" >&6; }
3366 test -n "$CC" && break
3369 if test -z "$CC"; then
3371 for ac_prog
in cl.exe
3373 # Extract the first word of "$ac_prog", so it can be a program name with args.
3374 set dummy
$ac_prog; ac_word
=$2
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3376 $as_echo_n "checking for $ac_word... " >&6; }
3377 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3378 $as_echo_n "(cached) " >&6
3380 if test -n "$ac_ct_CC"; then
3381 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3383 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3387 test -z "$as_dir" && as_dir
=.
3388 for ac_exec_ext
in '' $ac_executable_extensions; do
3389 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3390 ac_cv_prog_ac_ct_CC
="$ac_prog"
3391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3400 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3401 if test -n "$ac_ct_CC"; then
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3403 $as_echo "$ac_ct_CC" >&6; }
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406 $as_echo "no" >&6; }
3410 test -n "$ac_ct_CC" && break
3413 if test "x$ac_ct_CC" = x
; then
3416 case $cross_compiling:$ac_tool_warned in
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3420 ac_tool_warned
=yes ;;
3429 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3431 as_fn_error $?
"no acceptable C compiler found in \$PATH
3432 See \`config.log' for more details" "$LINENO" 5; }
3434 # Provide some information about the compiler.
3435 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3438 for ac_option
in --version -v -V -qversion; do
3439 { { ac_try
="$ac_compiler $ac_option >&5"
3441 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3445 $as_echo "$ac_try_echo"; } >&5
3446 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3448 if test -s conftest.err; then
3450 ... rest of stderr output deleted ...
3451 10q' conftest.err >conftest.er1
3452 cat conftest.er1 >&5
3454 rm -f conftest.er1 conftest.err
3455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3456 test $ac_status = 0; }
3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h. */
3470 ac_clean_files_save=$ac_clean_files
3471 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3472 # Try to create an executable without -o first, disregard a.out.
3473 # It will help us diagnose broken compilers, and finding out an intuition
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3476 $as_echo_n "checking whether the C compiler works... " >&6; }
3477 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3479 # The possible output files:
3480 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3483 for ac_file in $ac_files
3486 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3487 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3492 if { { ac_try="$ac_link_default"
3494 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3495 *) ac_try_echo
=$ac_try;;
3497 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3498 $as_echo "$ac_try_echo"; } >&5
3499 (eval "$ac_link_default") 2>&5
3501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3502 test $ac_status = 0; }; then :
3503 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3504 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3505 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3506 # so that the user can short-circuit this test for compilers unknown to
3508 for ac_file
in $ac_files ''
3510 test -f "$ac_file" ||
continue
3512 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3515 # We found the default executable, but exeext='' is most
3519 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3521 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3523 # We set ac_cv_exeext here because the later test for it is not
3524 # safe: cross compilers may not add the suffix if given an `-o'
3525 # argument, so we may need to know it at that point already.
3526 # Even if this section looks crufty: it has the advantage of
3533 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3538 if test -z "$ac_file"; then :
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3540 $as_echo "no" >&6; }
3541 $as_echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.
$ac_ext >&5
3544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3546 as_fn_error
77 "C compiler cannot create executables
3547 See \`config.log' for more details" "$LINENO" 5; }
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3550 $as_echo "yes" >&6; }
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3553 $as_echo_n "checking for C compiler default output file name... " >&6; }
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3555 $as_echo "$ac_file" >&6; }
3556 ac_exeext
=$ac_cv_exeext
3558 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3559 ac_clean_files
=$ac_clean_files_save
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3561 $as_echo_n "checking for suffix of executables... " >&6; }
3562 if { { ac_try
="$ac_link"
3564 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3568 $as_echo "$ac_try_echo"; } >&5
3569 (eval "$ac_link") 2>&5
3571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3572 test $ac_status = 0; }; then :
3573 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3574 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3575 # work properly (i.e., refer to `conftest.exe'), while it won't with
3577 for ac_file
in conftest.exe conftest conftest.
*; do
3578 test -f "$ac_file" ||
continue
3580 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3581 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3589 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3590 See \`config.log' for more details" "$LINENO" 5; }
3592 rm -f conftest conftest
$ac_cv_exeext
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3594 $as_echo "$ac_cv_exeext" >&6; }
3596 rm -f conftest.
$ac_ext
3597 EXEEXT
=$ac_cv_exeext
3599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3600 /* end confdefs.h. */
3605 FILE *f = fopen ("conftest.out", "w");
3606 return ferror (f) || fclose (f) != 0;
3612 ac_clean_files
="$ac_clean_files conftest.out"
3613 # Check that the compiler produces executables we can run. If not, either
3614 # the compiler is broken, or we cross compile.
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3616 $as_echo_n "checking whether we are cross compiling... " >&6; }
3617 if test "$cross_compiling" != yes; then
3618 { { ac_try
="$ac_link"
3620 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3621 *) ac_try_echo=$ac_try;;
3623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3624 $as_echo "$ac_try_echo"; } >&5
3625 (eval "$ac_link") 2>&5
3627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3628 test $ac_status = 0; }
3629 if { ac_try='./conftest$ac_cv_exeext'
3630 { { case "(($ac_try" in
3631 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3632 *) ac_try_echo
=$ac_try;;
3634 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3635 $as_echo "$ac_try_echo"; } >&5
3636 (eval "$ac_try") 2>&5
3638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3639 test $ac_status = 0; }; }; then
3642 if test "$cross_compiling" = maybe
; then
3645 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3647 as_fn_error $?
"cannot run C compiled programs.
3648 If you meant to cross compile, use \`--host'.
3649 See \`config.log' for more details" "$LINENO" 5; }
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3654 $as_echo "$cross_compiling" >&6; }
3656 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3657 ac_clean_files
=$ac_clean_files_save
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3659 $as_echo_n "checking for suffix of object files... " >&6; }
3660 if ${ac_cv_objext+:} false
; then :
3661 $as_echo_n "(cached) " >&6
3663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3664 /* end confdefs.h. */
3674 rm -f conftest.o conftest.obj
3675 if { { ac_try
="$ac_compile"
3677 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3681 $as_echo "$ac_try_echo"; } >&5
3682 (eval "$ac_compile") 2>&5
3684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3685 test $ac_status = 0; }; then :
3686 for ac_file in conftest.o conftest.obj conftest.*; do
3687 test -f "$ac_file" || continue;
3689 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3690 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3695 $as_echo "$as_me: failed program was:" >&5
3696 sed 's/^/| /' conftest.$ac_ext >&5
3698 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3700 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3701 See \
`config.log' for more details" "$LINENO" 5; }
3703 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3706 $as_echo "$ac_cv_objext" >&6; }
3707 OBJEXT=$ac_cv_objext
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3710 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3711 if ${ac_cv_c_compiler_gnu+:} false; then :
3712 $as_echo_n "(cached) " >&6
3714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715 /* end confdefs.h. */
3728 if ac_fn_c_try_compile "$LINENO"; then :
3733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3734 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3738 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3739 if test $ac_compiler_gnu = yes; then
3744 ac_test_CFLAGS=${CFLAGS+set}
3745 ac_save_CFLAGS=$CFLAGS
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3747 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3748 if ${ac_cv_prog_cc_g+:} false; then :
3749 $as_echo_n "(cached) " >&6
3751 ac_save_c_werror_flag=$ac_c_werror_flag
3752 ac_c_werror_flag=yes
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h. */
3766 if ac_fn_c_try_compile "$LINENO"; then :
3770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3771 /* end confdefs.h. */
3781 if ac_fn_c_try_compile "$LINENO"; then :
3784 ac_c_werror_flag=$ac_save_c_werror_flag
3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787 /* end confdefs.h. */
3797 if ac_fn_c_try_compile "$LINENO"; then :
3800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3805 ac_c_werror_flag=$ac_save_c_werror_flag
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3808 $as_echo "$ac_cv_prog_cc_g" >&6; }
3809 if test "$ac_test_CFLAGS" = set; then
3810 CFLAGS=$ac_save_CFLAGS
3811 elif test $ac_cv_prog_cc_g = yes; then
3812 if test "$GCC" = yes; then
3818 if test "$GCC" = yes; then
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3825 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3826 if ${ac_cv_prog_cc_c89+:} false; then :
3827 $as_echo_n "(cached) " >&6
3829 ac_cv_prog_cc_c89=no
3831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832 /* end confdefs.h. */
3836 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3837 struct buf { int x; };
3838 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3839 static char *e (p, i)
3845 static char *f (char * (*g) (char **, int), char **p, ...)
3850 s = g (p, va_arg (v,int));
3855 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3856 function prototypes and stuff, but not '\xHH' hex character constants.
3857 These don't provoke an error unfortunately, instead are silently treated
3858 as 'x'. The following induces an error, until -std is added to get
3859 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3860 array size at least. It's necessary to write '\x00'==0 to get something
3861 that's true only with -std. */
3862 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3864 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3865 inside strings and character constants. */
3867 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3869 int test (int i, double x);
3870 struct s1 {int (*f) (int a);};
3871 struct s2 {int (*f) (double a);};
3872 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3878 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3883 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3884 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3886 CC="$ac_save_CC $ac_arg"
3887 if ac_fn_c_try_compile "$LINENO"; then :
3888 ac_cv_prog_cc_c89=$ac_arg
3890 rm -f core conftest.err conftest.$ac_objext
3891 test "x$ac_cv_prog_cc_c89" != "xno" && break
3893 rm -f conftest.$ac_ext
3898 case "x$ac_cv_prog_cc_c89" in
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3901 $as_echo "none needed" >&6; } ;;
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3904 $as_echo "unsupported" >&6; } ;;
3906 CC="$CC $ac_cv_prog_cc_c89"
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3908 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3910 if test "x$ac_cv_prog_cc_c89" != xno; then :
3915 ac_cpp='$CPP $CPPFLAGS'
3916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3921 ac_cpp='$CXXCPP $CPPFLAGS'
3922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3925 if test -z "$CXX"; then
3926 if test -n "$CCC"; then
3929 if test -n "$ac_tool_prefix"; then
3930 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3932 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3933 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3935 $as_echo_n "checking for $ac_word... " >&6; }
3936 if ${ac_cv_prog_CXX+:} false; then :
3937 $as_echo_n "(cached) " >&6
3939 if test -n "$CXX"; then
3940 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946 test -z "$as_dir" && as_dir=.
3947 for ac_exec_ext in '' $ac_executable_extensions; do
3948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3949 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3960 if test -n "$CXX"; then
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3962 $as_echo "$CXX" >&6; }
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3965 $as_echo "no" >&6; }
3969 test -n "$CXX" && break
3972 if test -z "$CXX"; then
3974 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3976 # Extract the first word of "$ac_prog", so it can be a program name with args.
3977 set dummy $ac_prog; ac_word=$2
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3979 $as_echo_n "checking for $ac_word... " >&6; }
3980 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3981 $as_echo_n "(cached) " >&6
3983 if test -n "$ac_ct_CXX"; then
3984 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 test -z "$as_dir" && as_dir=.
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3993 ac_cv_prog_ac_ct_CXX="$ac_prog"
3994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4003 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4004 if test -n "$ac_ct_CXX"; then
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4006 $as_echo "$ac_ct_CXX" >&6; }
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4009 $as_echo "no" >&6; }
4013 test -n "$ac_ct_CXX" && break
4016 if test "x$ac_ct_CXX" = x; then
4019 case $cross_compiling:$ac_tool_warned in
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4022 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4023 ac_tool_warned=yes ;;
4031 # Provide some information about the compiler.
4032 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4035 for ac_option in --version -v -V -qversion; do
4036 { { ac_try="$ac_compiler $ac_option >&5"
4038 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4039 *) ac_try_echo
=$ac_try;;
4041 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4042 $as_echo "$ac_try_echo"; } >&5
4043 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4045 if test -s conftest.err
; then
4047 ... rest of stderr output deleted ...
4048 10q' conftest.err
>conftest.er1
4049 cat conftest.er1
>&5
4051 rm -f conftest.er1 conftest.err
4052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4053 test $ac_status = 0; }
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4057 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4058 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4059 $as_echo_n "(cached) " >&6
4061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4075 if ac_fn_cxx_try_compile
"$LINENO"; then :
4080 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4081 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4085 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4086 if test $ac_compiler_gnu = yes; then
4091 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4092 ac_save_CXXFLAGS
=$CXXFLAGS
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4094 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4095 if ${ac_cv_prog_cxx_g+:} false
; then :
4096 $as_echo_n "(cached) " >&6
4098 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4099 ac_cxx_werror_flag
=yes
4102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4113 if ac_fn_cxx_try_compile
"$LINENO"; then :
4114 ac_cv_prog_cxx_g
=yes
4117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4128 if ac_fn_cxx_try_compile
"$LINENO"; then :
4131 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4134 /* end confdefs.h. */
4144 if ac_fn_cxx_try_compile
"$LINENO"; then :
4145 ac_cv_prog_cxx_g
=yes
4147 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4151 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4152 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4155 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4156 if test "$ac_test_CXXFLAGS" = set; then
4157 CXXFLAGS
=$ac_save_CXXFLAGS
4158 elif test $ac_cv_prog_cxx_g = yes; then
4159 if test "$GXX" = yes; then
4165 if test "$GXX" = yes; then
4172 ac_cpp
='$CPP $CPPFLAGS'
4173 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4174 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4175 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4180 ac_cpp
='$CPP $CPPFLAGS'
4181 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4182 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4183 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4185 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4186 # On Suns, sometimes $CPP names a directory.
4187 if test -n "$CPP" && test -d "$CPP"; then
4190 if test -z "$CPP"; then
4191 if ${ac_cv_prog_CPP+:} false
; then :
4192 $as_echo_n "(cached) " >&6
4194 # Double quotes because CPP needs to be expanded
4195 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4198 for ac_c_preproc_warn_flag
in '' yes
4200 # Use a header file that comes with gcc, so configuring glibc
4201 # with a fresh cross-compiler works.
4202 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4203 # <limits.h> exists even on freestanding compilers.
4204 # On the NeXT, cc -E runs the code through the compiler's parser,
4205 # not just through cpp. "Syntax error" is here to catch this case.
4206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h. */
4209 # include <limits.h>
4211 # include <assert.h>
4215 if ac_fn_c_try_cpp
"$LINENO"; then :
4218 # Broken: fails on valid input.
4221 rm -f conftest.err conftest.i conftest.
$ac_ext
4223 # OK, works on sane cases. Now check whether nonexistent headers
4224 # can be detected and how.
4225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4226 /* end confdefs.h. */
4227 #include <ac_nonexistent.h>
4229 if ac_fn_c_try_cpp
"$LINENO"; then :
4230 # Broken: success on invalid input.
4233 # Passes both tests.
4237 rm -f conftest.err conftest.i conftest.
$ac_ext
4240 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4241 rm -f conftest.i conftest.err conftest.
$ac_ext
4242 if $ac_preproc_ok; then :
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4255 $as_echo "$CPP" >&6; }
4257 for ac_c_preproc_warn_flag
in '' yes
4259 # Use a header file that comes with gcc, so configuring glibc
4260 # with a fresh cross-compiler works.
4261 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4262 # <limits.h> exists even on freestanding compilers.
4263 # On the NeXT, cc -E runs the code through the compiler's parser,
4264 # not just through cpp. "Syntax error" is here to catch this case.
4265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h. */
4268 # include <limits.h>
4270 # include <assert.h>
4274 if ac_fn_c_try_cpp
"$LINENO"; then :
4277 # Broken: fails on valid input.
4280 rm -f conftest.err conftest.i conftest.
$ac_ext
4282 # OK, works on sane cases. Now check whether nonexistent headers
4283 # can be detected and how.
4284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h. */
4286 #include <ac_nonexistent.h>
4288 if ac_fn_c_try_cpp
"$LINENO"; then :
4289 # Broken: success on invalid input.
4292 # Passes both tests.
4296 rm -f conftest.err conftest.i conftest.
$ac_ext
4299 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4300 rm -f conftest.i conftest.err conftest.
$ac_ext
4301 if $ac_preproc_ok; then :
4304 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4306 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4307 See \`config.log' for more details" "$LINENO" 5; }
4311 ac_cpp
='$CPP $CPPFLAGS'
4312 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4313 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4314 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4318 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4319 if ${ac_cv_path_GREP+:} false
; then :
4320 $as_echo_n "(cached) " >&6
4322 if test -z "$GREP"; then
4323 ac_path_GREP_found
=false
4324 # Loop through the user's path and test for each of PROGNAME-LIST
4325 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4326 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4329 test -z "$as_dir" && as_dir
=.
4330 for ac_prog
in grep ggrep
; do
4331 for ac_exec_ext
in '' $ac_executable_extensions; do
4332 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4333 as_fn_executable_p
"$ac_path_GREP" ||
continue
4334 # Check for GNU ac_path_GREP and select it if it is found.
4335 # Check for GNU $ac_path_GREP
4336 case `"$ac_path_GREP" --version 2>&1` in
4338 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4341 $as_echo_n 0123456789 >"conftest.in"
4344 cat "conftest.in" "conftest.in" >"conftest.tmp"
4345 mv "conftest.tmp" "conftest.in"
4346 cp "conftest.in" "conftest.nl"
4347 $as_echo 'GREP' >> "conftest.nl"
4348 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4349 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4350 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4351 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4352 # Best one so far, save it but keep looking for a better one
4353 ac_cv_path_GREP
="$ac_path_GREP"
4354 ac_path_GREP_max
=$ac_count
4356 # 10*(2^10) chars as input seems more than enough
4357 test $ac_count -gt 10 && break
4359 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4362 $ac_path_GREP_found && break 3
4367 if test -z "$ac_cv_path_GREP"; then
4368 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4371 ac_cv_path_GREP
=$GREP
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4376 $as_echo "$ac_cv_path_GREP" >&6; }
4377 GREP
="$ac_cv_path_GREP"
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4381 $as_echo_n "checking for egrep... " >&6; }
4382 if ${ac_cv_path_EGREP+:} false
; then :
4383 $as_echo_n "(cached) " >&6
4385 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4386 then ac_cv_path_EGREP
="$GREP -E"
4388 if test -z "$EGREP"; then
4389 ac_path_EGREP_found
=false
4390 # Loop through the user's path and test for each of PROGNAME-LIST
4391 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4392 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4395 test -z "$as_dir" && as_dir
=.
4396 for ac_prog
in egrep; do
4397 for ac_exec_ext
in '' $ac_executable_extensions; do
4398 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4399 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4400 # Check for GNU ac_path_EGREP and select it if it is found.
4401 # Check for GNU $ac_path_EGREP
4402 case `"$ac_path_EGREP" --version 2>&1` in
4404 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4407 $as_echo_n 0123456789 >"conftest.in"
4410 cat "conftest.in" "conftest.in" >"conftest.tmp"
4411 mv "conftest.tmp" "conftest.in"
4412 cp "conftest.in" "conftest.nl"
4413 $as_echo 'EGREP' >> "conftest.nl"
4414 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4415 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4416 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4417 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4418 # Best one so far, save it but keep looking for a better one
4419 ac_cv_path_EGREP
="$ac_path_EGREP"
4420 ac_path_EGREP_max
=$ac_count
4422 # 10*(2^10) chars as input seems more than enough
4423 test $ac_count -gt 10 && break
4425 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4428 $ac_path_EGREP_found && break 3
4433 if test -z "$ac_cv_path_EGREP"; then
4434 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4437 ac_cv_path_EGREP
=$EGREP
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4443 $as_echo "$ac_cv_path_EGREP" >&6; }
4444 EGREP
="$ac_cv_path_EGREP"
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4448 $as_echo_n "checking for ANSI C header files... " >&6; }
4449 if ${ac_cv_header_stdc+:} false
; then :
4450 $as_echo_n "(cached) " >&6
4452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4453 /* end confdefs.h. */
4467 if ac_fn_c_try_compile
"$LINENO"; then :
4468 ac_cv_header_stdc
=yes
4470 ac_cv_header_stdc
=no
4472 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4474 if test $ac_cv_header_stdc = yes; then
4475 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h. */
4481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4482 $EGREP "memchr" >/dev
/null
2>&1; then :
4485 ac_cv_header_stdc
=no
4491 if test $ac_cv_header_stdc = yes; then
4492 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4494 /* end confdefs.h. */
4498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4499 $EGREP "free" >/dev
/null
2>&1; then :
4502 ac_cv_header_stdc
=no
4508 if test $ac_cv_header_stdc = yes; then
4509 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4510 if test "$cross_compiling" = yes; then :
4513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4514 /* end confdefs.h. */
4517 #if ((' ' & 0x0FF) == 0x020)
4518 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4519 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4521 # define ISLOWER(c) \
4522 (('a' <= (c) && (c) <= 'i') \
4523 || ('j' <= (c) && (c) <= 'r') \
4524 || ('s' <= (c) && (c) <= 'z'))
4525 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4528 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4533 for (i = 0; i < 256; i++)
4534 if (XOR (islower (i), ISLOWER (i))
4535 || toupper (i) != TOUPPER (i))
4540 if ac_fn_c_try_run
"$LINENO"; then :
4543 ac_cv_header_stdc
=no
4545 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4546 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4552 $as_echo "$ac_cv_header_stdc" >&6; }
4553 if test $ac_cv_header_stdc = yes; then
4555 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4559 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4560 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4561 inttypes.h stdint.h unistd.h
4563 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4564 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4566 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4567 cat >>confdefs.h
<<_ACEOF
4568 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4577 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4578 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4585 if test "$MINIX" = yes; then
4587 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4590 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4593 $as_echo "#define _MINIX 1" >>confdefs.h
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4599 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4600 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4601 $as_echo_n "(cached) " >&6
4603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h. */
4606 # define __EXTENSIONS__ 1
4607 $ac_includes_default
4616 if ac_fn_c_try_compile
"$LINENO"; then :
4617 ac_cv_safe_to_define___extensions__
=yes
4619 ac_cv_safe_to_define___extensions__
=no
4621 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4624 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4625 test $ac_cv_safe_to_define___extensions__ = yes &&
4626 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4628 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4630 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4632 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4634 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4638 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4639 if test -f "$ac_dir/install-sh"; then
4641 ac_install_sh
="$ac_aux_dir/install-sh -c"
4643 elif test -f "$ac_dir/install.sh"; then
4645 ac_install_sh
="$ac_aux_dir/install.sh -c"
4647 elif test -f "$ac_dir/shtool"; then
4649 ac_install_sh
="$ac_aux_dir/shtool install -c"
4653 if test -z "$ac_aux_dir"; then
4654 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4657 # These three variables are undocumented and unsupported,
4658 # and are intended to be withdrawn in a future Autoconf release.
4659 # They can cause serious problems if a builder's source tree is in a directory
4660 # whose full name contains unusual characters.
4661 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4662 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4663 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4666 # Make sure we can run config.sub.
4667 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4668 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4671 $as_echo_n "checking build system type... " >&6; }
4672 if ${ac_cv_build+:} false
; then :
4673 $as_echo_n "(cached) " >&6
4675 ac_build_alias
=$build_alias
4676 test "x$ac_build_alias" = x
&&
4677 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4678 test "x$ac_build_alias" = x
&&
4679 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4680 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4681 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4685 $as_echo "$ac_cv_build" >&6; }
4686 case $ac_cv_build in
4688 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4691 ac_save_IFS
=$IFS; IFS
='-'
4697 # Remember, the first character of IFS is used to create $*,
4698 # except with old shells:
4701 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4705 $as_echo_n "checking host system type... " >&6; }
4706 if ${ac_cv_host+:} false
; then :
4707 $as_echo_n "(cached) " >&6
4709 if test "x$host_alias" = x
; then
4710 ac_cv_host
=$ac_cv_build
4712 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4713 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4718 $as_echo "$ac_cv_host" >&6; }
4721 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4724 ac_save_IFS
=$IFS; IFS
='-'
4730 # Remember, the first character of IFS is used to create $*,
4731 # except with old shells:
4734 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4738 $as_echo_n "checking target system type... " >&6; }
4739 if ${ac_cv_target+:} false
; then :
4740 $as_echo_n "(cached) " >&6
4742 if test "x$target_alias" = x
; then
4743 ac_cv_target
=$ac_cv_host
4745 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4746 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4751 $as_echo "$ac_cv_target" >&6; }
4752 case $ac_cv_target in
4754 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4756 target
=$ac_cv_target
4757 ac_save_IFS
=$IFS; IFS
='-'
4763 # Remember, the first character of IFS is used to create $*,
4764 # except with old shells:
4767 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4770 # The aliases save the names the user supplied, while $host etc.
4771 # will get canonicalized.
4772 test -n "$target_alias" &&
4773 test "$program_prefix$program_suffix$program_transform_name" = \
4775 program_prefix
=${target_alias}-
4777 # The tests for host and target for $enable_largefile require
4782 # As the $enable_largefile decision depends on --enable-plugins we must set it
4783 # even in directories otherwise not depending on the $plugins option.
4787 for ac_header
in dlfcn.h
4789 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4791 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
4792 cat >>confdefs.h
<<_ACEOF
4793 #define HAVE_DLFCN_H 1
4800 for ac_header
in windows.h
4802 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4804 if test "x$ac_cv_header_windows_h" = xyes
; then :
4805 cat >>confdefs.h
<<_ACEOF
4806 #define HAVE_WINDOWS_H 1
4814 # Check whether --enable-plugins was given.
4815 if test "${enable_plugins+set}" = set; then :
4816 enableval
=$enable_plugins; case "${enableval}" in
4819 if test "$maybe_plugins" != "yes" ; then
4820 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4824 plugins
=$maybe_plugins
4828 if test "$plugins" = "yes"; then
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4830 $as_echo_n "checking for library containing dlsym... " >&6; }
4831 if ${ac_cv_search_dlsym+:} false
; then :
4832 $as_echo_n "(cached) " >&6
4834 ac_func_search_save_LIBS
=$LIBS
4835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4836 /* end confdefs.h. */
4838 /* Override any GCC internal prototype to avoid an error.
4839 Use char because int might match the return type of a GCC
4840 builtin and then its argument prototype would still apply. */
4853 for ac_lib
in '' dl
; do
4854 if test -z "$ac_lib"; then
4855 ac_res
="none required"
4858 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4860 if ac_fn_c_try_link
"$LINENO"; then :
4861 ac_cv_search_dlsym
=$ac_res
4863 rm -f core conftest.err conftest.
$ac_objext \
4865 if ${ac_cv_search_dlsym+:} false
; then :
4869 if ${ac_cv_search_dlsym+:} false
; then :
4872 ac_cv_search_dlsym
=no
4875 LIBS
=$ac_func_search_save_LIBS
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4878 $as_echo "$ac_cv_search_dlsym" >&6; }
4879 ac_res
=$ac_cv_search_dlsym
4880 if test "$ac_res" != no
; then :
4881 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4889 sparc-
*-solaris*|i?
86-*-solaris*)
4890 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
4891 # were mutually exclusive until Solaris 11.3. Without procfs support,
4892 # the bfd/ elf module cannot provide certain routines such as
4893 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
4894 # explicitly requested large-file support through the
4895 # --enable-largefile switch, disable large-file support in favor of
4898 # Check if <sys/procfs.h> is incompatible with large-file support.
4899 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4900 /* end confdefs.h. */
4901 #define _FILE_OFFSET_BITS 64
4902 #define _STRUCTURED_PROC 1
4903 #include <sys/procfs.h>
4912 if ac_fn_c_try_compile
"$LINENO"; then :
4913 acx_cv_procfs_lfs
=yes
4915 acx_cv_procfs_lfs
=no
4917 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4919 # Forcefully disable large-file support only if necessary, gdb is in
4921 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
4922 -a -d $srcdir/..
/gdb
-a "$enable_gdb" != no
; then
4923 : ${enable_largefile="no"}
4924 if test "$plugins" = yes; then
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
4926 plugin support disabled; require large-file support which is incompatible with GDB." >&5
4927 $as_echo "$as_me: WARNING:
4928 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
4933 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
4934 # benefit of g++ 9+ which predefines it on Solaris.
4935 if test "$enable_largefile" = no
; then
4936 LARGEFILE_CPPFLAGS
="-U_FILE_OFFSET_BITS"
4942 # Check whether --enable-largefile was given.
4943 if test "${enable_largefile+set}" = set; then :
4944 enableval
=$enable_largefile;
4947 if test "$enable_largefile" != no
; then
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4950 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4951 if ${ac_cv_sys_largefile_CC+:} false
; then :
4952 $as_echo_n "(cached) " >&6
4954 ac_cv_sys_largefile_CC
=no
4955 if test "$GCC" != yes; then
4958 # IRIX 6.2 and later do not support large files by default,
4959 # so use the C compiler's -n32 option if that helps.
4960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4961 /* end confdefs.h. */
4962 #include <sys/types.h>
4963 /* Check that off_t can represent 2**63 - 1 correctly.
4964 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4965 since some C++ compilers masquerading as C compilers
4966 incorrectly reject 9223372036854775807. */
4967 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4968 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4969 && LARGE_OFF_T % 2147483647 == 1)
4979 if ac_fn_c_try_compile
"$LINENO"; then :
4982 rm -f core conftest.err conftest.
$ac_objext
4984 if ac_fn_c_try_compile
"$LINENO"; then :
4985 ac_cv_sys_largefile_CC
=' -n32'; break
4987 rm -f core conftest.err conftest.
$ac_objext
4991 rm -f conftest.
$ac_ext
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4995 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4996 if test "$ac_cv_sys_largefile_CC" != no
; then
4997 CC
=$CC$ac_cv_sys_largefile_CC
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5001 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5002 if ${ac_cv_sys_file_offset_bits+:} false
; then :
5003 $as_echo_n "(cached) " >&6
5006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5007 /* end confdefs.h. */
5008 #include <sys/types.h>
5009 /* Check that off_t can represent 2**63 - 1 correctly.
5010 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5011 since some C++ compilers masquerading as C compilers
5012 incorrectly reject 9223372036854775807. */
5013 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5014 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5015 && LARGE_OFF_T % 2147483647 == 1)
5025 if ac_fn_c_try_compile
"$LINENO"; then :
5026 ac_cv_sys_file_offset_bits
=no
; break
5028 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5030 /* end confdefs.h. */
5031 #define _FILE_OFFSET_BITS 64
5032 #include <sys/types.h>
5033 /* Check that off_t can represent 2**63 - 1 correctly.
5034 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5035 since some C++ compilers masquerading as C compilers
5036 incorrectly reject 9223372036854775807. */
5037 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5038 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5039 && LARGE_OFF_T % 2147483647 == 1)
5049 if ac_fn_c_try_compile
"$LINENO"; then :
5050 ac_cv_sys_file_offset_bits
=64; break
5052 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5053 ac_cv_sys_file_offset_bits
=unknown
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5058 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5059 case $ac_cv_sys_file_offset_bits in #(
5062 cat >>confdefs.h
<<_ACEOF
5063 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5068 if test $ac_cv_sys_file_offset_bits = unknown
; then
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5070 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5071 if ${ac_cv_sys_large_files+:} false
; then :
5072 $as_echo_n "(cached) " >&6
5075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5076 /* end confdefs.h. */
5077 #include <sys/types.h>
5078 /* Check that off_t can represent 2**63 - 1 correctly.
5079 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5080 since some C++ compilers masquerading as C compilers
5081 incorrectly reject 9223372036854775807. */
5082 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5083 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5084 && LARGE_OFF_T % 2147483647 == 1)
5094 if ac_fn_c_try_compile
"$LINENO"; then :
5095 ac_cv_sys_large_files
=no
; break
5097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5099 /* end confdefs.h. */
5100 #define _LARGE_FILES 1
5101 #include <sys/types.h>
5102 /* Check that off_t can represent 2**63 - 1 correctly.
5103 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5104 since some C++ compilers masquerading as C compilers
5105 incorrectly reject 9223372036854775807. */
5106 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5107 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5108 && LARGE_OFF_T % 2147483647 == 1)
5118 if ac_fn_c_try_compile
"$LINENO"; then :
5119 ac_cv_sys_large_files
=1; break
5121 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5122 ac_cv_sys_large_files
=unknown
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5127 $as_echo "$ac_cv_sys_large_files" >&6; }
5128 case $ac_cv_sys_large_files in #(
5131 cat >>confdefs.h
<<_ACEOF
5132 #define _LARGE_FILES $ac_cv_sys_large_files
5143 # Expand $ac_aux_dir to an absolute path.
5144 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
5146 if test x
"${install_sh+set}" != xset
; then
5149 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
5151 install_sh
="\${SHELL} $am_aux_dir/install-sh"
5155 # Installed binaries are usually stripped using 'strip' when the user
5156 # run "make install-strip". However 'strip' might not be the right
5157 # tool to use in cross-compilation environments, therefore Automake
5158 # will honor the 'STRIP' environment variable to overrule this program.
5159 if test "$cross_compiling" != no
; then
5160 if test -n "$ac_tool_prefix"; then
5161 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5162 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5164 $as_echo_n "checking for $ac_word... " >&6; }
5165 if ${ac_cv_prog_STRIP+:} false
; then :
5166 $as_echo_n "(cached) " >&6
5168 if test -n "$STRIP"; then
5169 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
5171 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5175 test -z "$as_dir" && as_dir
=.
5176 for ac_exec_ext
in '' $ac_executable_extensions; do
5177 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5178 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
5179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5188 STRIP
=$ac_cv_prog_STRIP
5189 if test -n "$STRIP"; then
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5191 $as_echo "$STRIP" >&6; }
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5194 $as_echo "no" >&6; }
5199 if test -z "$ac_cv_prog_STRIP"; then
5201 # Extract the first word of "strip", so it can be a program name with args.
5202 set dummy strip
; ac_word
=$2
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5204 $as_echo_n "checking for $ac_word... " >&6; }
5205 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
5206 $as_echo_n "(cached) " >&6
5208 if test -n "$ac_ct_STRIP"; then
5209 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5211 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5215 test -z "$as_dir" && as_dir
=.
5216 for ac_exec_ext
in '' $ac_executable_extensions; do
5217 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5218 ac_cv_prog_ac_ct_STRIP
="strip"
5219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5228 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5229 if test -n "$ac_ct_STRIP"; then
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5231 $as_echo "$ac_ct_STRIP" >&6; }
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5234 $as_echo "no" >&6; }
5237 if test "x$ac_ct_STRIP" = x
; then
5240 case $cross_compiling:$ac_tool_warned in
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5244 ac_tool_warned
=yes ;;
5249 STRIP
="$ac_cv_prog_STRIP"
5253 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
5257 for ac_dir
in ..
"$srcdir"/..
; do
5258 if test -f "$ac_dir/install-sh"; then
5260 ac_install_sh
="$ac_aux_dir/install-sh -c"
5262 elif test -f "$ac_dir/install.sh"; then
5264 ac_install_sh
="$ac_aux_dir/install.sh -c"
5266 elif test -f "$ac_dir/shtool"; then
5268 ac_install_sh
="$ac_aux_dir/shtool install -c"
5272 if test -z "$ac_aux_dir"; then
5273 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
5276 # These three variables are undocumented and unsupported,
5277 # and are intended to be withdrawn in a future Autoconf release.
5278 # They can cause serious problems if a builder's source tree is in a directory
5279 # whose full name contains unusual characters.
5280 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5281 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5282 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5286 # Set build, build_cpu, build_vendor and build_os.
5289 # Set host, host_cpu, host_vendor, and host_os.
5292 # Set target, target_cpu, target_vendor, and target_os.
5295 case ${build_alias} in
5296 "") build_noncanonical
=${build} ;;
5297 *) build_noncanonical
=${build_alias} ;;
5300 case ${host_alias} in
5301 "") host_noncanonical
=${build_noncanonical} ;;
5302 *) host_noncanonical
=${host_alias} ;;
5305 case ${target_alias} in
5306 "") target_noncanonical
=${host_noncanonical} ;;
5307 *) target_noncanonical
=${target_alias} ;;
5313 test "$program_prefix" != NONE
&&
5314 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
5315 # Use a double $ so make ignores it.
5316 test "$program_suffix" != NONE
&&
5317 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
5318 # Double any \ or $.
5319 # By default was `s,x,x', remove it if useless.
5320 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
5321 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
5324 # We require libtool to link with the in-tree libtool libraries
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5329 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5334 macro_version
='2.2.7a'
5335 macro_revision
='1.3134'
5349 ltmain
="$ac_aux_dir/ltmain.sh"
5351 # Backslashify metacharacters that are still active within
5352 # double-quoted strings.
5353 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
5355 # Same as above, but do not quote variable references.
5356 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
5358 # Sed substitution to delay expansion of an escaped shell variable in a
5359 # double_quote_subst'ed string.
5360 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
5362 # Sed substitution to delay expansion of an escaped single quote.
5363 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
5365 # Sed substitution to avoid accidental globbing in evaled expressions
5366 no_glob_subst
='s/\*/\\\*/g'
5368 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5369 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5370 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5373 $as_echo_n "checking how to print strings... " >&6; }
5374 # Test print first, because it will be a builtin if present.
5375 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5376 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5378 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5381 # Use this function as a fallback that always works.
5382 func_fallback_echo ()
5384 eval 'cat <<_LTECHO_EOF
5388 ECHO='func_fallback_echo
'
5391 # func_echo_all arg...
5392 # Invoke $ECHO with all args, space-separated.
5399 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5400 $as_echo "printf" >&6; } ;;
5401 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5402 $as_echo "print -r" >&6; } ;;
5403 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5404 $as_echo "cat" >&6; } ;;
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5421 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5422 if ${ac_cv_path_SED+:} false; then :
5423 $as_echo_n "(cached) " >&6
5425 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5426 for ac_i in 1 2 3 4 5 6 7; do
5427 ac_script="$ac_script$as_nl$ac_script"
5429 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5430 { ac_script=; unset ac_script;}
5431 if test -z "$SED"; then
5432 ac_path_SED_found=false
5433 # Loop through the user's path and
test for each of PROGNAME-LIST
5434 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5438 test -z "$as_dir" && as_dir
=.
5439 for ac_prog
in sed gsed
; do
5440 for ac_exec_ext
in '' $ac_executable_extensions; do
5441 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
5442 as_fn_executable_p
"$ac_path_SED" ||
continue
5443 # Check for GNU ac_path_SED and select it if it is found.
5444 # Check for GNU $ac_path_SED
5445 case `"$ac_path_SED" --version 2>&1` in
5447 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
5450 $as_echo_n 0123456789 >"conftest.in"
5453 cat "conftest.in" "conftest.in" >"conftest.tmp"
5454 mv "conftest.tmp" "conftest.in"
5455 cp "conftest.in" "conftest.nl"
5456 $as_echo '' >> "conftest.nl"
5457 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5458 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5459 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5460 if test $ac_count -gt ${ac_path_SED_max-0}; then
5461 # Best one so far, save it but keep looking for a better one
5462 ac_cv_path_SED
="$ac_path_SED"
5463 ac_path_SED_max
=$ac_count
5465 # 10*(2^10) chars as input seems more than enough
5466 test $ac_count -gt 10 && break
5468 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5471 $ac_path_SED_found && break 3
5476 if test -z "$ac_cv_path_SED"; then
5477 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5485 $as_echo "$ac_cv_path_SED" >&6; }
5486 SED
="$ac_cv_path_SED"
5489 test -z "$SED" && SED
=sed
5490 Xsed
="$SED -e 1s/^X//"
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5503 $as_echo_n "checking for fgrep... " >&6; }
5504 if ${ac_cv_path_FGREP+:} false
; then :
5505 $as_echo_n "(cached) " >&6
5507 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
5508 then ac_cv_path_FGREP
="$GREP -F"
5510 if test -z "$FGREP"; then
5511 ac_path_FGREP_found
=false
5512 # Loop through the user's path and test for each of PROGNAME-LIST
5513 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5514 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5517 test -z "$as_dir" && as_dir
=.
5518 for ac_prog
in fgrep
; do
5519 for ac_exec_ext
in '' $ac_executable_extensions; do
5520 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
5521 as_fn_executable_p
"$ac_path_FGREP" ||
continue
5522 # Check for GNU ac_path_FGREP and select it if it is found.
5523 # Check for GNU $ac_path_FGREP
5524 case `"$ac_path_FGREP" --version 2>&1` in
5526 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
5529 $as_echo_n 0123456789 >"conftest.in"
5532 cat "conftest.in" "conftest.in" >"conftest.tmp"
5533 mv "conftest.tmp" "conftest.in"
5534 cp "conftest.in" "conftest.nl"
5535 $as_echo 'FGREP' >> "conftest.nl"
5536 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5537 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5538 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5539 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5540 # Best one so far, save it but keep looking for a better one
5541 ac_cv_path_FGREP
="$ac_path_FGREP"
5542 ac_path_FGREP_max
=$ac_count
5544 # 10*(2^10) chars as input seems more than enough
5545 test $ac_count -gt 10 && break
5547 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5550 $ac_path_FGREP_found && break 3
5555 if test -z "$ac_cv_path_FGREP"; then
5556 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5559 ac_cv_path_FGREP
=$FGREP
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5565 $as_echo "$ac_cv_path_FGREP" >&6; }
5566 FGREP
="$ac_cv_path_FGREP"
5569 test -z "$GREP" && GREP
=grep
5589 # Check whether --with-gnu-ld was given.
5590 if test "${with_gnu_ld+set}" = set; then :
5591 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5597 if test "$GCC" = yes; then
5598 # Check if gcc -print-prog-name=ld gives a path.
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5600 $as_echo_n "checking for ld used by $CC... " >&6; }
5603 # gcc leaves a trailing carriage return which upsets mingw
5604 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5606 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5609 # Accept absolute paths.
5611 re_direlt
='/[^/][^/]*/\.\./'
5612 # Canonicalize the pathname of ld
5613 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5614 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
5615 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5617 test -z "$LD" && LD
="$ac_prog"
5620 # If it fails, then pretend we aren't using GCC.
5624 # If it is relative, then search for the first ld in PATH.
5628 elif test "$with_gnu_ld" = yes; then
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5630 $as_echo_n "checking for GNU ld... " >&6; }
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5633 $as_echo_n "checking for non-GNU ld... " >&6; }
5635 if ${lt_cv_path_LD+:} false
; then :
5636 $as_echo_n "(cached) " >&6
5638 if test -z "$LD"; then
5639 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5640 for ac_dir
in $PATH; do
5642 test -z "$ac_dir" && ac_dir
=.
5643 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5644 lt_cv_path_LD
="$ac_dir/$ac_prog"
5645 # Check to see if the program is GNU ld. I'd rather use --version,
5646 # but apparently some variants of GNU ld only accept -v.
5647 # Break only if it was the GNU/non-GNU ld that we prefer.
5648 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5649 *GNU
* |
*'with BFD'*)
5650 test "$with_gnu_ld" != no
&& break
5653 test "$with_gnu_ld" != yes && break
5660 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
5665 if test -n "$LD"; then
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5667 $as_echo "$LD" >&6; }
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5670 $as_echo "no" >&6; }
5672 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5674 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5675 if ${lt_cv_prog_gnu_ld+:} false
; then :
5676 $as_echo_n "(cached) " >&6
5678 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5679 case `$LD -v 2>&1 </dev/null` in
5680 *GNU
* |
*'with BFD'*)
5681 lt_cv_prog_gnu_ld
=yes
5684 lt_cv_prog_gnu_ld
=no
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5689 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5690 with_gnu_ld
=$lt_cv_prog_gnu_ld
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5701 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5702 if ${lt_cv_path_NM+:} false
; then :
5703 $as_echo_n "(cached) " >&6
5705 if test -n "$NM"; then
5706 # Let the user override the nm to test.
5707 lt_nm_to_check
="$NM"
5709 lt_nm_to_check
="${ac_tool_prefix}nm"
5710 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5711 lt_nm_to_check
="$lt_nm_to_check nm"
5714 for lt_tmp_nm
in "$lt_nm_to_check"; do
5715 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5716 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
5718 test -z "$ac_dir" && ac_dir
=.
5719 # Strip out any user-provided options from the nm to test twice,
5720 # the first time to test to see if nm (rather than its options) has
5721 # an explicit path, the second time to yield a file which can be
5723 tmp_nm_path
="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5724 case "$tmp_nm_path" in
5725 */*|
*\\*) tmp_nm
="$lt_tmp_nm";;
5726 *) tmp_nm
="$ac_dir/$lt_tmp_nm";;
5728 tmp_nm_to_nm
="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5729 if test -f "$tmp_nm_to_nm" ||
test -f "$tmp_nm_to_nm$ac_exeext" ; then
5730 # Check to see if the nm accepts a BSD-compat flag.
5731 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5732 # nm: unknown option "B" ignored
5733 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5734 *$tmp_nm*) lt_cv_path_NM
="$tmp_nm -B"
5738 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5740 lt_cv_path_NM
="$tmp_nm -p"
5744 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5745 continue # so that we can try to find one that supports BSD flags
5754 : ${lt_cv_path_NM=no}
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5757 $as_echo "$lt_cv_path_NM" >&6; }
5758 if test "$lt_cv_path_NM" != "no"; then
5761 # Didn't find any BSD compatible name lister, look for dumpbin.
5762 if test -n "$DUMPBIN"; then :
5763 # Let the user override the test.
5765 if test -n "$ac_tool_prefix"; then
5766 for ac_prog
in dumpbin
"link -dump"
5768 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5769 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5771 $as_echo_n "checking for $ac_word... " >&6; }
5772 if ${ac_cv_prog_DUMPBIN+:} false
; then :
5773 $as_echo_n "(cached) " >&6
5775 if test -n "$DUMPBIN"; then
5776 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
5778 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5782 test -z "$as_dir" && as_dir
=.
5783 for ac_exec_ext
in '' $ac_executable_extensions; do
5784 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5785 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
5786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5795 DUMPBIN
=$ac_cv_prog_DUMPBIN
5796 if test -n "$DUMPBIN"; then
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5798 $as_echo "$DUMPBIN" >&6; }
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5801 $as_echo "no" >&6; }
5805 test -n "$DUMPBIN" && break
5808 if test -z "$DUMPBIN"; then
5809 ac_ct_DUMPBIN
=$DUMPBIN
5810 for ac_prog
in dumpbin
"link -dump"
5812 # Extract the first word of "$ac_prog", so it can be a program name with args.
5813 set dummy
$ac_prog; ac_word
=$2
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5815 $as_echo_n "checking for $ac_word... " >&6; }
5816 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
5817 $as_echo_n "(cached) " >&6
5819 if test -n "$ac_ct_DUMPBIN"; then
5820 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
5822 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5826 test -z "$as_dir" && as_dir
=.
5827 for ac_exec_ext
in '' $ac_executable_extensions; do
5828 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5829 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
5830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5839 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
5840 if test -n "$ac_ct_DUMPBIN"; then
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5842 $as_echo "$ac_ct_DUMPBIN" >&6; }
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5845 $as_echo "no" >&6; }
5849 test -n "$ac_ct_DUMPBIN" && break
5852 if test "x$ac_ct_DUMPBIN" = x
; then
5855 case $cross_compiling:$ac_tool_warned in
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5858 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5859 ac_tool_warned
=yes ;;
5861 DUMPBIN
=$ac_ct_DUMPBIN
5865 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5867 DUMPBIN
="$DUMPBIN -symbols"
5875 if test "$DUMPBIN" != ":"; then
5879 test -z "$NM" && NM
=nm
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5887 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5888 if ${lt_cv_nm_interface+:} false
; then :
5889 $as_echo_n "(cached) " >&6
5891 lt_cv_nm_interface
="BSD nm"
5892 echo "int some_variable = 0;" > conftest.
$ac_ext
5893 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5894 (eval "$ac_compile" 2>conftest.err
)
5895 cat conftest.err
>&5
5896 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5897 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
5898 cat conftest.err
>&5
5899 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5900 cat conftest.out
>&5
5901 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
5902 lt_cv_nm_interface
="MS dumpbin"
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5907 $as_echo "$lt_cv_nm_interface" >&6; }
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5910 $as_echo_n "checking whether ln -s works... " >&6; }
5912 if test "$LN_S" = "ln -s"; then
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5914 $as_echo "yes" >&6; }
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5917 $as_echo "no, using $LN_S" >&6; }
5920 # find the maximum length of command line arguments
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5922 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5923 if ${lt_cv_sys_max_cmd_len+:} false
; then :
5924 $as_echo_n "(cached) " >&6
5931 # On DJGPP, this test can blow up pretty badly due to problems in libc
5932 # (any single argument exceeding 2000 bytes causes a buffer overrun
5933 # during glob expansion). Even if it were fixed, the result of this
5934 # check would be larger than it should be.
5935 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
5939 # Under GNU Hurd, this test is not required because there is
5940 # no limit to the length of command line arguments.
5941 # Libtool will interpret -1 as no limit whatsoever
5942 lt_cv_sys_max_cmd_len
=-1;
5945 cygwin
* | mingw
* | cegcc
*)
5946 # On Win9x/ME, this test blows up -- it succeeds, but takes
5947 # about 5 minutes as the teststring grows exponentially.
5948 # Worse, since 9x/ME are not pre-emptively multitasking,
5949 # you end up with a "frozen" computer, even though with patience
5950 # the test eventually succeeds (with a max line length of 256k).
5951 # Instead, let's just punt: use the minimum linelength reported by
5952 # all of the supported platforms: 8192 (on NT/2K/XP).
5953 lt_cv_sys_max_cmd_len
=8192;
5957 # On MiNT this can take a long time and run out of memory.
5958 lt_cv_sys_max_cmd_len
=8192;
5962 # On AmigaOS with pdksh, this test takes hours, literally.
5963 # So we just punt and use a minimum line length of 8192.
5964 lt_cv_sys_max_cmd_len
=8192;
5967 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
5968 # This has been around since 386BSD, at least. Likely further.
5969 if test -x /sbin
/sysctl
; then
5970 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
5971 elif test -x /usr
/sbin
/sysctl
; then
5972 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
5974 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
5976 # And add a safety zone
5977 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5978 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5982 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5983 lt_cv_sys_max_cmd_len
=196608
5987 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5988 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5989 # nice to cause kernel panics so lets avoid the loop below.
5990 # First set a reasonable default.
5991 lt_cv_sys_max_cmd_len
=16384
5993 if test -x /sbin
/sysconfig
; then
5994 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5995 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6000 lt_cv_sys_max_cmd_len
=102400
6002 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6003 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6004 if test -n "$kargmax"; then
6005 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6007 lt_cv_sys_max_cmd_len
=32768
6011 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
6012 if test -n "$lt_cv_sys_max_cmd_len"; then
6013 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6014 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6016 # Make teststring a little bigger before we do anything with it.
6017 # a 1K string should be a reasonable start.
6018 for i
in 1 2 3 4 5 6 7 8 ; do
6019 teststring
=$teststring$teststring
6021 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6022 # If test is not a shell built-in, we'll probably end up computing a
6023 # maximum length that is only half of the actual maximum length, but
6025 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6026 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
6027 test $i != 17 # 1/2 MB should be enough
6030 teststring
=$teststring$teststring
6032 # Only check the string length outside the loop.
6033 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
6035 # Add a significant safety factor because C++ compilers can tack on
6036 # massive amounts of additional arguments before passing them to the
6037 # linker. It appears as though 1/2 is a usable value.
6038 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6045 if test -n $lt_cv_sys_max_cmd_len ; then
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6047 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6050 $as_echo "none" >&6; }
6052 max_cmd_len
=$lt_cv_sys_max_cmd_len
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6064 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6065 # Try some XSI features
6068 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6070 && eval 'test $(( 1 + 1 )) -eq 2 \
6071 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
6074 $as_echo "$xsi_shell" >&6; }
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
6078 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
6080 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
6082 && lt_shell_append=yes
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
6084 $as_echo "$lt_shell_append" >&6; }
6087 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6097 # test EBCDIC or ASCII
6098 case `echo X|tr X '\101'` in
6099 A) # ASCII based system
6100 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6101 lt_SP2NL='tr \040 \012'
6102 lt_NL2SP='tr \015\012 \040\040'
6104 *) # EBCDIC based system
6105 lt_SP2NL='tr \100 \n'
6106 lt_NL2SP='tr \r\n \100\100'
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
6119 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
6120 if ${lt_cv_ld_reload_flag+:} false; then :
6121 $as_echo_n "(cached
) " >&6
6123 lt_cv_ld_reload_flag='-r'
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
6126 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6127 reload_flag=$lt_cv_ld_reload_flag
6128 case $reload_flag in
6130 *) reload_flag=" $reload_flag" ;;
6132 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6135 if test "$GCC" = yes; then
6136 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6138 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6151 if test -n "$ac_tool_prefix"; then
6152 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
6153 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6155 $as_echo_n "checking
for $ac_word...
" >&6; }
6156 if ${ac_cv_prog_OBJDUMP+:} false; then :
6157 $as_echo_n "(cached
) " >&6
6159 if test -n "$OBJDUMP"; then
6160 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166 test -z "$as_dir" && as_dir=.
6167 for ac_exec_ext in '' $ac_executable_extensions; do
6168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6169 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
6170 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6179 OBJDUMP=$ac_cv_prog_OBJDUMP
6180 if test -n "$OBJDUMP"; then
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
6182 $as_echo "$OBJDUMP" >&6; }
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6185 $as_echo "no
" >&6; }
6190 if test -z "$ac_cv_prog_OBJDUMP"; then
6191 ac_ct_OBJDUMP=$OBJDUMP
6192 # Extract the first word of "objdump
", so it can be a program name with args.
6193 set dummy objdump; ac_word=$2
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6195 $as_echo_n "checking
for $ac_word...
" >&6; }
6196 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6197 $as_echo_n "(cached
) " >&6
6199 if test -n "$ac_ct_OBJDUMP"; then
6200 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206 test -z "$as_dir" && as_dir=.
6207 for ac_exec_ext in '' $ac_executable_extensions; do
6208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6209 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
6210 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6219 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6220 if test -n "$ac_ct_OBJDUMP"; then
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
6222 $as_echo "$ac_ct_OBJDUMP" >&6; }
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6225 $as_echo "no
" >&6; }
6228 if test "x
$ac_ct_OBJDUMP" = x; then
6231 case $cross_compiling:$ac_tool_warned in
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6234 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6235 ac_tool_warned=yes ;;
6237 OBJDUMP=$ac_ct_OBJDUMP
6240 OBJDUMP="$ac_cv_prog_OBJDUMP"
6243 test -z "$OBJDUMP" && OBJDUMP=objdump
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
6254 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
6255 if ${lt_cv_deplibs_check_method+:} false; then :
6256 $as_echo_n "(cached
) " >&6
6258 lt_cv_file_magic_cmd='$MAGIC_CMD'
6259 lt_cv_file_magic_test_file=
6260 lt_cv_deplibs_check_method='unknown'
6261 # Need to set the preceding variable on all platforms that support
6262 # interlibrary dependencies.
6263 # 'none' -- dependencies not supported.
6264 # `unknown' -- same as none, but documents that we really don't know.
6265 # 'pass_all' -- all dependencies passed with no checks.
6266 # 'test_compile' -- check by making test program.
6267 # 'file_magic [[regex]]' -- check by looking for files in library path
6268 # which responds to the $file_magic_cmd with a given extended regex.
6269 # If you have `file' or equivalent on your system and you're not sure
6270 # whether `pass_all' will *always* work, you probably want this one.
6274 lt_cv_deplibs_check_method=pass_all
6278 lt_cv_deplibs_check_method=pass_all
6282 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6283 lt_cv_file_magic_cmd='/usr/bin/file -L'
6284 lt_cv_file_magic_test_file=/shlib/libc.so
6288 # func_win32_libid is a shell function defined in ltmain.sh
6289 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6290 lt_cv_file_magic_cmd='func_win32_libid'
6294 # Base MSYS/MinGW do not provide the 'file' command needed by
6295 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6296 # unless we find 'file', for example because we are cross-compiling.
6297 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6298 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
6299 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6300 lt_cv_file_magic_cmd='func_win32_libid'
6302 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6303 lt_cv_file_magic_cmd='$OBJDUMP -f'
6308 # use the weaker test based on 'objdump'. See mingw*.
6309 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6310 lt_cv_file_magic_cmd='$OBJDUMP -f'
6313 darwin* | rhapsody*)
6314 lt_cv_deplibs_check_method=pass_all
6317 freebsd* | dragonfly*)
6318 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6321 # Not sure whether the presence of OpenBSD here was a mistake.
6322 # Let's accept both of them until this is cleared up.
6323 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6324 lt_cv_file_magic_cmd=/usr/bin/file
6325 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6329 lt_cv_deplibs_check_method=pass_all
6334 lt_cv_deplibs_check_method=pass_all
6338 lt_cv_deplibs_check_method=pass_all
6341 hpux10.20* | hpux11*)
6342 lt_cv_file_magic_cmd=/usr/bin/file
6345 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6346 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6349 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]'
6350 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6353 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6354 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6360 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6361 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6364 irix5* | irix6* | nonstopux*)
6366 *-32|*"-32 ") libmagic=32-bit;;
6367 *-n32|*"-n32 ") libmagic=N32;;
6368 *-64|*"-64 ") libmagic=64-bit;;
6369 *) libmagic=never-match;;
6371 lt_cv_deplibs_check_method=pass_all
6374 # This must be Linux ELF.
6375 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6376 lt_cv_deplibs_check_method=pass_all
6380 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6381 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6383 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6388 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6389 lt_cv_file_magic_cmd=/usr/bin/file
6390 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6394 lt_cv_deplibs_check_method=pass_all
6398 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
6399 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6401 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6405 osf3* | osf4* | osf5*)
6406 lt_cv_deplibs_check_method=pass_all
6410 lt_cv_deplibs_check_method=pass_all
6414 lt_cv_deplibs_check_method=pass_all
6417 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6418 lt_cv_deplibs_check_method=pass_all
6422 case $host_vendor in
6424 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]'
6425 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6428 lt_cv_deplibs_check_method=pass_all
6431 lt_cv_file_magic_cmd='/bin/file'
6432 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6435 lt_cv_file_magic_cmd='/bin/file'
6436 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
6437 lt_cv_file_magic_test_file=/lib/libc.so
6440 lt_cv_deplibs_check_method=pass_all
6443 lt_cv_deplibs_check_method=pass_all
6449 lt_cv_deplibs_check_method=pass_all
6452 # Assume VxWorks cross toolchains are built on Linux, possibly
6453 # as canadian for Windows hosts.
6454 lt_cv_deplibs_check_method=pass_all
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
6460 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6461 file_magic_cmd=$lt_cv_file_magic_cmd
6462 deplibs_check_method=$lt_cv_deplibs_check_method
6463 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6477 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll
"
6478 for plugin in $plugin_names; do
6479 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6480 if test x$plugin_so = x$plugin; then
6481 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6483 if test x$plugin_so != x$plugin; then
6484 plugin_option="--plugin $plugin_so"
6489 if test -n "$ac_tool_prefix"; then
6490 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6491 set dummy ${ac_tool_prefix}ar; ac_word=$2
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6493 $as_echo_n "checking
for $ac_word...
" >&6; }
6494 if ${ac_cv_prog_AR+:} false; then :
6495 $as_echo_n "(cached
) " >&6
6497 if test -n "$AR"; then
6498 ac_cv_prog_AR="$AR" # Let the user override the test.
6500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6504 test -z "$as_dir" && as_dir=.
6505 for ac_exec_ext in '' $ac_executable_extensions; do
6506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6507 ac_cv_prog_AR="${ac_tool_prefix}ar"
6508 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6518 if test -n "$AR"; then
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
6520 $as_echo "$AR" >&6; }
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6523 $as_echo "no
" >&6; }
6528 if test -z "$ac_cv_prog_AR"; then
6530 # Extract the first word of "ar", so it can be a program name with args.
6531 set dummy ar; ac_word=$2
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6533 $as_echo_n "checking
for $ac_word...
" >&6; }
6534 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6535 $as_echo_n "(cached
) " >&6
6537 if test -n "$ac_ct_AR"; then
6538 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544 test -z "$as_dir" && as_dir=.
6545 for ac_exec_ext in '' $ac_executable_extensions; do
6546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6547 ac_cv_prog_ac_ct_AR="ar"
6548 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6557 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6558 if test -n "$ac_ct_AR"; then
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
6560 $as_echo "$ac_ct_AR" >&6; }
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6563 $as_echo "no
" >&6; }
6566 if test "x
$ac_ct_AR" = x; then
6569 case $cross_compiling:$ac_tool_warned in
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6572 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6573 ac_tool_warned=yes ;;
6581 test -z "$AR" && AR=ar
6582 if test -n "$plugin_option"; then
6583 if $AR --help 2>&1 | grep -q "\
--plugin"; then
6585 $AR $plugin_option rc conftest.a conftest.c
6586 if test "$?
" != 0; then
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: Failed
: $AR $plugin_option rc
" >&5
6588 $as_echo "$as_me: WARNING
: Failed
: $AR $plugin_option rc
" >&2;}
6590 AR="$AR $plugin_option"
6595 test -z "$AR_FLAGS" && AR_FLAGS=cru
6607 if test -n "$ac_tool_prefix"; then
6608 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
6609 set dummy ${ac_tool_prefix}strip; ac_word=$2
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6611 $as_echo_n "checking
for $ac_word...
" >&6; }
6612 if ${ac_cv_prog_STRIP+:} false; then :
6613 $as_echo_n "(cached
) " >&6
6615 if test -n "$STRIP"; then
6616 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 test -z "$as_dir" && as_dir=.
6623 for ac_exec_ext in '' $ac_executable_extensions; do
6624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6625 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
6626 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6635 STRIP=$ac_cv_prog_STRIP
6636 if test -n "$STRIP"; then
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
6638 $as_echo "$STRIP" >&6; }
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6641 $as_echo "no
" >&6; }
6646 if test -z "$ac_cv_prog_STRIP"; then
6648 # Extract the first word of "strip
", so it can be a program name with args.
6649 set dummy strip; ac_word=$2
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6651 $as_echo_n "checking
for $ac_word...
" >&6; }
6652 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6653 $as_echo_n "(cached
) " >&6
6655 if test -n "$ac_ct_STRIP"; then
6656 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662 test -z "$as_dir" && as_dir=.
6663 for ac_exec_ext in '' $ac_executable_extensions; do
6664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6665 ac_cv_prog_ac_ct_STRIP="strip
"
6666 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6675 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6676 if test -n "$ac_ct_STRIP"; then
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
6678 $as_echo "$ac_ct_STRIP" >&6; }
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6681 $as_echo "no
" >&6; }
6684 if test "x
$ac_ct_STRIP" = x; then
6687 case $cross_compiling:$ac_tool_warned in
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6690 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6691 ac_tool_warned=yes ;;
6696 STRIP="$ac_cv_prog_STRIP"
6699 test -z "$STRIP" && STRIP=:
6706 if test -n "$ac_tool_prefix"; then
6707 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
6708 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6710 $as_echo_n "checking
for $ac_word...
" >&6; }
6711 if ${ac_cv_prog_RANLIB+:} false; then :
6712 $as_echo_n "(cached
) " >&6
6714 if test -n "$RANLIB"; then
6715 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721 test -z "$as_dir" && as_dir=.
6722 for ac_exec_ext in '' $ac_executable_extensions; do
6723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6724 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
6725 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6734 RANLIB=$ac_cv_prog_RANLIB
6735 if test -n "$RANLIB"; then
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
6737 $as_echo "$RANLIB" >&6; }
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6740 $as_echo "no
" >&6; }
6745 if test -z "$ac_cv_prog_RANLIB"; then
6746 ac_ct_RANLIB=$RANLIB
6747 # Extract the first word of "ranlib
", so it can be a program name with args.
6748 set dummy ranlib; ac_word=$2
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6750 $as_echo_n "checking
for $ac_word...
" >&6; }
6751 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6752 $as_echo_n "(cached
) " >&6
6754 if test -n "$ac_ct_RANLIB"; then
6755 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761 test -z "$as_dir" && as_dir=.
6762 for ac_exec_ext in '' $ac_executable_extensions; do
6763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6764 ac_cv_prog_ac_ct_RANLIB="ranlib
"
6765 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6774 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6775 if test -n "$ac_ct_RANLIB"; then
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
6777 $as_echo "$ac_ct_RANLIB" >&6; }
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6780 $as_echo "no
" >&6; }
6783 if test "x
$ac_ct_RANLIB" = x; then
6786 case $cross_compiling:$ac_tool_warned in
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6789 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6790 ac_tool_warned=yes ;;
6792 RANLIB=$ac_ct_RANLIB
6795 RANLIB="$ac_cv_prog_RANLIB"
6798 test -z "$RANLIB" && RANLIB=:
6799 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6800 if $RANLIB --help 2>&1 | grep -q "\
--plugin"; then
6801 RANLIB="$RANLIB $plugin_option"
6810 # Determine commands to create old-style static archives.
6811 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6812 old_postinstall_cmds='chmod 644 $oldlib'
6813 old_postuninstall_cmds=
6815 if test -n "$RANLIB"; then
6818 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
6821 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
6824 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
6829 lock_old_archive_extraction=yes ;;
6831 lock_old_archive_extraction=no ;;
6854 for ac_prog in gawk mawk nawk awk
6856 # Extract the first word of "$ac_prog", so it can be a program name with args.
6857 set dummy $ac_prog; ac_word=$2
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6859 $as_echo_n "checking
for $ac_word...
" >&6; }
6860 if ${ac_cv_prog_AWK+:} false; then :
6861 $as_echo_n "(cached
) " >&6
6863 if test -n "$AWK"; then
6864 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870 test -z "$as_dir" && as_dir=.
6871 for ac_exec_ext in '' $ac_executable_extensions; do
6872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6873 ac_cv_prog_AWK="$ac_prog"
6874 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6884 if test -n "$AWK"; then
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AWK" >&5
6886 $as_echo "$AWK" >&6; }
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6889 $as_echo "no
" >&6; }
6893 test -n "$AWK" && break
6914 # If no C compiler was specified, use CC.
6917 # If no C compiler flags were specified, use CFLAGS.
6918 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6920 # Allow CC to be a program name with arguments.
6924 # Check for command to grab the raw symbol name followed by C symbol from nm.
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
6926 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
6927 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6928 $as_echo_n "(cached
) " >&6
6931 # These are sane defaults that work on at least a few old systems.
6932 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6934 # Character class describing NM global symbol codes.
6935 symcode='[BCDEGRST]'
6937 # Regexp to match symbols that can be accessed directly from C.
6938 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6940 # Define system-specific variables.
6945 cygwin* | mingw* | pw32* | cegcc*)
6946 symcode='[ABCDGISTW]'
6949 if test "$host_cpu" = ia64; then
6950 symcode='[ABCDEGRST]'
6954 symcode='[BCDEGRST]'
6957 symcode='[BCDEGQRST]'
6968 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6976 # If we're using GNU nm, then use its standard symbol codes.
6977 case `$NM -V 2>&1` in
6978 *GNU* | *'with BFD'*)
6979 symcode='[ABCDGIRSTW]' ;;
6982 # Transform an extracted symbol line into a proper C declaration.
6983 # Some systems (esp. on ia64) link data and code symbols differently,
6984 # so use this general approach.
6985 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6987 # Transform an extracted symbol line into symbol name and symbol address
6988 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6989 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'"
6991 # Handle CRLF in mingw tool chain
6995 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6999 # Try without a prefix underscore, then with it.
7000 for ac_symprfx in "" "_
"; do
7002 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7003 symxfrm="\\1 $ac_symprfx\\2 \\2"
7005 # Write the raw and C identifiers.
7006 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
7007 # Fake it for dumpbin and say T for any non-static function
7008 # and D for any global variable.
7009 # Also find C++ and __fastcall symbols from MSVC++,
7010 # which start with @ or ?.
7011 lt_cv_sys_global_symbol_pipe="$AWK '"\
7012 " {last_section=section; section=\$ 3};"\
7013 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7014 " \$ 0!~/External *\|/{next};"\
7015 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7016 " {if(hide[section]) next};"\
7017 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7018 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7019 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7020 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7021 " ' prfx
=^
$ac_symprfx"
7023 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7026 # Check to see that the pipe works correctly.
7030 cat > conftest.$ac_ext <<_LT_EOF
7035 void nm_test_func(void);
7036 void nm_test_func(void){}
7040 int main(){nm_test_var='a';nm_test_func();return(0);}
7043 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7044 (eval $ac_compile) 2>&5
7046 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7047 test $ac_status = 0; }; then
7048 # Now try to grab the symbols.
7050 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
7051 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7053 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7054 test $ac_status = 0; } && test -s "$nlist"; then
7055 # Try sorting and uniquifying the output.
7056 if sort "$nlist" | uniq > "$nlist"T; then
7057 mv -f "$nlist"T "$nlist"
7062 # Make sure that we snagged all the symbols we need.
7063 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7064 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7065 cat <<_LT_EOF > conftest.$ac_ext
7071 # Now generate the symbol file.
7072 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7074 cat <<_LT_EOF >> conftest.$ac_ext
7076 /* The mapping between symbol names and symbols. */
7081 lt__PROGRAM__LTX_preloaded_symbols[] =
7083 { "@PROGRAM@
", (void *) 0 },
7085 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7086 cat <<\_LT_EOF >> conftest.$ac_ext
7090 /* This works around a problem in FreeBSD linker */
7091 #ifdef FREEBSD_WORKAROUND
7092 static const void *lt_preloaded_setup() {
7093 return lt__PROGRAM__LTX_preloaded_symbols;
7101 # Now try linking the two files.
7102 mv conftest.$ac_objext conftstm.$ac_objext
7103 lt_save_LIBS="$LIBS"
7104 lt_save_CFLAGS="$CFLAGS"
7105 LIBS="conftstm.
$ac_objext"
7106 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7107 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7108 (eval $ac_link) 2>&5
7110 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7111 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7114 LIBS="$lt_save_LIBS"
7115 CFLAGS="$lt_save_CFLAGS"
7117 echo "cannot
find nm_test_func
in $nlist" >&5
7120 echo "cannot
find nm_test_var
in $nlist" >&5
7123 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
7126 echo "$progname: failed program was
:" >&5
7127 cat conftest.$ac_ext >&5
7129 rm -rf conftest* conftst*
7131 # Do not use the global_symbol_pipe unless it works.
7132 if test "$pipe_works" = yes; then
7135 lt_cv_sys_global_symbol_pipe=
7141 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7142 lt_cv_sys_global_symbol_to_cdecl=
7144 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
7146 $as_echo "failed
" >&6; }
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
7149 $as_echo "ok
" >&6; }
7173 # Check whether --enable-libtool-lock was given.
7174 if test "${enable_libtool_lock+set}" = set; then :
7175 enableval=$enable_libtool_lock;
7178 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
7180 # Some flags need to be propagated to the compiler or linker for good
7184 # Find out which ABI we are using.
7185 echo 'int i;' > conftest.$ac_ext
7186 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7187 (eval $ac_compile) 2>&5
7189 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7190 test $ac_status = 0; }; then
7191 case `/usr/bin/file conftest.$ac_objext` in
7203 # Find out which ABI we are using.
7204 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
7205 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7206 (eval $ac_compile) 2>&5
7208 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7209 test $ac_status = 0; }; then
7210 if test "$lt_cv_prog_gnu_ld" = yes; then
7211 case `/usr/bin/file conftest.$ac_objext` in
7213 LD="${LD-ld} -melf32bsmip"
7216 LD="${LD-ld} -melf32bmipn32"
7219 LD="${LD-ld} -melf64bmip"
7223 case `/usr/bin/file conftest.$ac_objext` in
7239 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7240 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7241 # Find out which ABI we are using.
7242 echo 'int i;' > conftest.$ac_ext
7243 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7244 (eval $ac_compile) 2>&5
7246 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7247 test $ac_status = 0; }; then
7248 case `/usr/bin/file conftest.o` in
7251 x86_64-*kfreebsd*-gnu)
7252 LD="${LD-ld} -m elf_i386_fbsd
"
7255 case `/usr/bin/file conftest.o` in
7257 LD="${LD-ld} -m elf32_x86_64
"
7260 LD="${LD-ld} -m elf_i386
"
7264 powerpc64le-*linux*)
7265 LD="${LD-ld} -m elf32lppclinux
"
7268 LD="${LD-ld} -m elf32ppclinux
"
7271 LD="${LD-ld} -m elf_s390
"
7274 LD="${LD-ld} -m elf32_sparc
"
7280 x86_64-*kfreebsd*-gnu)
7281 LD="${LD-ld} -m elf_x86_64_fbsd
"
7284 LD="${LD-ld} -m elf_x86_64
"
7287 LD="${LD-ld} -m elf64lppc
"
7290 LD="${LD-ld} -m elf64ppc
"
7292 s390*-*linux*|s390*-*tpf*)
7293 LD="${LD-ld} -m elf64_s390
"
7296 LD="${LD-ld} -m elf64_sparc
"
7306 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7307 SAVE_CFLAGS="$CFLAGS"
7308 CFLAGS="$CFLAGS -belf"
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
7310 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
7311 if ${lt_cv_cc_needs_belf+:} false; then :
7312 $as_echo_n "(cached
) " >&6
7315 ac_cpp='$CPP $CPPFLAGS'
7316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7321 /* end confdefs.h. */
7331 if ac_fn_c_try_link "$LINENO"; then :
7332 lt_cv_cc_needs_belf=yes
7334 lt_cv_cc_needs_belf=no
7336 rm -f core conftest.err conftest.$ac_objext \
7337 conftest$ac_exeext conftest.$ac_ext
7339 ac_cpp='$CPP $CPPFLAGS'
7340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
7346 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7347 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7348 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7349 CFLAGS="$SAVE_CFLAGS"
7353 # Find out which ABI we are using.
7354 echo 'int i;' > conftest.$ac_ext
7355 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7356 (eval $ac_compile) 2>&5
7358 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7359 test $ac_status = 0; }; then
7360 case `/usr/bin/file conftest.o` in
7362 case $lt_cv_prog_gnu_ld in
7363 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
7365 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7377 need_locks="$enable_libtool_lock"
7381 rhapsody* | darwin*)
7382 if test -n "$ac_tool_prefix"; then
7383 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
7384 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7386 $as_echo_n "checking
for $ac_word...
" >&6; }
7387 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7388 $as_echo_n "(cached
) " >&6
7390 if test -n "$DSYMUTIL"; then
7391 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397 test -z "$as_dir" && as_dir=.
7398 for ac_exec_ext in '' $ac_executable_extensions; do
7399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7400 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
7401 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7410 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7411 if test -n "$DSYMUTIL"; then
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
7413 $as_echo "$DSYMUTIL" >&6; }
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7416 $as_echo "no
" >&6; }
7421 if test -z "$ac_cv_prog_DSYMUTIL"; then
7422 ac_ct_DSYMUTIL=$DSYMUTIL
7423 # Extract the first word of "dsymutil
", so it can be a program name with args.
7424 set dummy dsymutil; ac_word=$2
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7426 $as_echo_n "checking
for $ac_word...
" >&6; }
7427 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7428 $as_echo_n "(cached
) " >&6
7430 if test -n "$ac_ct_DSYMUTIL"; then
7431 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437 test -z "$as_dir" && as_dir=.
7438 for ac_exec_ext in '' $ac_executable_extensions; do
7439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7440 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
7441 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7450 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7451 if test -n "$ac_ct_DSYMUTIL"; then
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
7453 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7456 $as_echo "no
" >&6; }
7459 if test "x
$ac_ct_DSYMUTIL" = x; then
7462 case $cross_compiling:$ac_tool_warned in
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7465 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7466 ac_tool_warned=yes ;;
7468 DSYMUTIL=$ac_ct_DSYMUTIL
7471 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7474 if test -n "$ac_tool_prefix"; then
7475 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
7476 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7478 $as_echo_n "checking
for $ac_word...
" >&6; }
7479 if ${ac_cv_prog_NMEDIT+:} false; then :
7480 $as_echo_n "(cached
) " >&6
7482 if test -n "$NMEDIT"; then
7483 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7489 test -z "$as_dir" && as_dir=.
7490 for ac_exec_ext in '' $ac_executable_extensions; do
7491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7492 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
7493 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7502 NMEDIT=$ac_cv_prog_NMEDIT
7503 if test -n "$NMEDIT"; then
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
7505 $as_echo "$NMEDIT" >&6; }
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7508 $as_echo "no
" >&6; }
7513 if test -z "$ac_cv_prog_NMEDIT"; then
7514 ac_ct_NMEDIT=$NMEDIT
7515 # Extract the first word of "nmedit
", so it can be a program name with args.
7516 set dummy nmedit; ac_word=$2
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7518 $as_echo_n "checking
for $ac_word...
" >&6; }
7519 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7520 $as_echo_n "(cached
) " >&6
7522 if test -n "$ac_ct_NMEDIT"; then
7523 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7529 test -z "$as_dir" && as_dir=.
7530 for ac_exec_ext in '' $ac_executable_extensions; do
7531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7532 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
7533 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7542 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7543 if test -n "$ac_ct_NMEDIT"; then
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
7545 $as_echo "$ac_ct_NMEDIT" >&6; }
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7548 $as_echo "no
" >&6; }
7551 if test "x
$ac_ct_NMEDIT" = x; then
7554 case $cross_compiling:$ac_tool_warned in
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7557 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7558 ac_tool_warned=yes ;;
7560 NMEDIT=$ac_ct_NMEDIT
7563 NMEDIT="$ac_cv_prog_NMEDIT"
7566 if test -n "$ac_tool_prefix"; then
7567 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
7568 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7570 $as_echo_n "checking
for $ac_word...
" >&6; }
7571 if ${ac_cv_prog_LIPO+:} false; then :
7572 $as_echo_n "(cached
) " >&6
7574 if test -n "$LIPO"; then
7575 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7581 test -z "$as_dir" && as_dir=.
7582 for ac_exec_ext in '' $ac_executable_extensions; do
7583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7584 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
7585 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7594 LIPO=$ac_cv_prog_LIPO
7595 if test -n "$LIPO"; then
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
7597 $as_echo "$LIPO" >&6; }
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7600 $as_echo "no
" >&6; }
7605 if test -z "$ac_cv_prog_LIPO"; then
7607 # Extract the first word of "lipo
", so it can be a program name with args.
7608 set dummy lipo; ac_word=$2
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7610 $as_echo_n "checking
for $ac_word...
" >&6; }
7611 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7612 $as_echo_n "(cached
) " >&6
7614 if test -n "$ac_ct_LIPO"; then
7615 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621 test -z "$as_dir" && as_dir=.
7622 for ac_exec_ext in '' $ac_executable_extensions; do
7623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7624 ac_cv_prog_ac_ct_LIPO="lipo
"
7625 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7634 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7635 if test -n "$ac_ct_LIPO"; then
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
7637 $as_echo "$ac_ct_LIPO" >&6; }
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7640 $as_echo "no
" >&6; }
7643 if test "x
$ac_ct_LIPO" = x; then
7646 case $cross_compiling:$ac_tool_warned in
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7649 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7650 ac_tool_warned=yes ;;
7655 LIPO="$ac_cv_prog_LIPO"
7658 if test -n "$ac_tool_prefix"; then
7659 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
7660 set dummy ${ac_tool_prefix}otool; ac_word=$2
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7662 $as_echo_n "checking
for $ac_word...
" >&6; }
7663 if ${ac_cv_prog_OTOOL+:} false; then :
7664 $as_echo_n "(cached
) " >&6
7666 if test -n "$OTOOL"; then
7667 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673 test -z "$as_dir" && as_dir=.
7674 for ac_exec_ext in '' $ac_executable_extensions; do
7675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7676 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
7677 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7686 OTOOL=$ac_cv_prog_OTOOL
7687 if test -n "$OTOOL"; then
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
7689 $as_echo "$OTOOL" >&6; }
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7692 $as_echo "no
" >&6; }
7697 if test -z "$ac_cv_prog_OTOOL"; then
7699 # Extract the first word of "otool
", so it can be a program name with args.
7700 set dummy otool; ac_word=$2
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7702 $as_echo_n "checking
for $ac_word...
" >&6; }
7703 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7704 $as_echo_n "(cached
) " >&6
7706 if test -n "$ac_ct_OTOOL"; then
7707 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7713 test -z "$as_dir" && as_dir=.
7714 for ac_exec_ext in '' $ac_executable_extensions; do
7715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7716 ac_cv_prog_ac_ct_OTOOL="otool
"
7717 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7726 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7727 if test -n "$ac_ct_OTOOL"; then
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
7729 $as_echo "$ac_ct_OTOOL" >&6; }
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7732 $as_echo "no
" >&6; }
7735 if test "x
$ac_ct_OTOOL" = x; then
7738 case $cross_compiling:$ac_tool_warned in
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7741 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7742 ac_tool_warned=yes ;;
7747 OTOOL="$ac_cv_prog_OTOOL"
7750 if test -n "$ac_tool_prefix"; then
7751 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
7752 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7754 $as_echo_n "checking
for $ac_word...
" >&6; }
7755 if ${ac_cv_prog_OTOOL64+:} false; then :
7756 $as_echo_n "(cached
) " >&6
7758 if test -n "$OTOOL64"; then
7759 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765 test -z "$as_dir" && as_dir=.
7766 for ac_exec_ext in '' $ac_executable_extensions; do
7767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7768 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
7769 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7778 OTOOL64=$ac_cv_prog_OTOOL64
7779 if test -n "$OTOOL64"; then
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
7781 $as_echo "$OTOOL64" >&6; }
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7784 $as_echo "no
" >&6; }
7789 if test -z "$ac_cv_prog_OTOOL64"; then
7790 ac_ct_OTOOL64=$OTOOL64
7791 # Extract the first word of "otool64
", so it can be a program name with args.
7792 set dummy otool64; ac_word=$2
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7794 $as_echo_n "checking
for $ac_word...
" >&6; }
7795 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7796 $as_echo_n "(cached
) " >&6
7798 if test -n "$ac_ct_OTOOL64"; then
7799 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805 test -z "$as_dir" && as_dir=.
7806 for ac_exec_ext in '' $ac_executable_extensions; do
7807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7808 ac_cv_prog_ac_ct_OTOOL64="otool64
"
7809 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7818 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7819 if test -n "$ac_ct_OTOOL64"; then
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
7821 $as_echo "$ac_ct_OTOOL64" >&6; }
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7824 $as_echo "no
" >&6; }
7827 if test "x
$ac_ct_OTOOL64" = x; then
7830 case $cross_compiling:$ac_tool_warned in
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7833 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7834 ac_tool_warned=yes ;;
7836 OTOOL64=$ac_ct_OTOOL64
7839 OTOOL64="$ac_cv_prog_OTOOL64"
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
7869 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
7870 if ${lt_cv_apple_cc_single_mod+:} false; then :
7871 $as_echo_n "(cached
) " >&6
7873 lt_cv_apple_cc_single_mod=no
7874 if test -z "${LT_MULTI_MODULE}"; then
7875 # By default we will add the -single_module flag. You can override
7876 # by either setting the environment variable LT_MULTI_MODULE
7877 # non-empty at configure time, or by adding -multi_module to the
7879 rm -rf libconftest.dylib*
7880 echo "int foo
(void
){return 1;}" > conftest.c
7881 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7882 -dynamiclib -Wl,-single_module conftest.c
" >&5
7883 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7884 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7886 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7887 lt_cv_apple_cc_single_mod=yes
7889 cat conftest.err >&5
7891 rm -rf libconftest.dylib*
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
7896 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
7898 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
7899 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7900 $as_echo_n "(cached
) " >&6
7902 lt_cv_ld_exported_symbols_list=no
7903 save_LDFLAGS=$LDFLAGS
7904 echo "_main
" > conftest.sym
7905 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
7906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7907 /* end confdefs.h. */
7917 if ac_fn_c_try_link "$LINENO"; then :
7918 lt_cv_ld_exported_symbols_list=yes
7920 lt_cv_ld_exported_symbols_list=no
7922 rm -f core conftest.err conftest.$ac_objext \
7923 conftest$ac_exeext conftest.$ac_ext
7924 LDFLAGS="$save_LDFLAGS"
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
7928 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
7930 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
7931 if ${lt_cv_ld_force_load+:} false; then :
7932 $as_echo_n "(cached
) " >&6
7934 lt_cv_ld_force_load=no
7935 cat > conftest.c << _LT_EOF
7936 int forced_loaded() { return 2;}
7938 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
7939 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7940 echo "$AR cru libconftest.a conftest.o
" >&5
7941 $AR cru libconftest.a conftest.o 2>&5
7942 cat > conftest.c << _LT_EOF
7943 int main() { return 0;}
7945 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
7946 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7948 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7949 lt_cv_ld_force_load=yes
7951 cat conftest.err >&5
7953 rm -f conftest.err libconftest.a conftest conftest.c
7954 rm -rf conftest.dSYM
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
7958 $as_echo "$lt_cv_ld_force_load" >&6; }
7959 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7960 # build without first building modern cctools / linker.
7961 case $host_cpu-$host_os in
7962 *-rhapsody* | *-darwin1.[012])
7963 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7965 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7967 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7968 # deployment target is forced to an earlier version.
7969 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7970 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7973 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7980 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7981 _lt_dar_single_mod='$single_module'
7983 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7984 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7986 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7988 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
7989 _lt_dsymutil='~$DSYMUTIL $lib || :'
7996 for ac_header in dlfcn.h
7998 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
" "$ac_includes_default
8000 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
8001 cat >>confdefs.h <<_ACEOF
8002 #define HAVE_DLFCN_H 1
8024 # Check whether --enable-shared was given.
8025 if test "${enable_shared+set}" = set; then :
8026 enableval=$enable_shared; p=${PACKAGE-default}
8028 yes) enable_shared=yes ;;
8029 no) enable_shared=no ;;
8032 # Look at the argument we got. We use all the common list separators.
8033 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8034 for pkg in $enableval; do
8036 if test "X
$pkg" = "X
$p"; then
8055 # Check whether --enable-static was given.
8056 if test "${enable_static+set}" = set; then :
8057 enableval=$enable_static; p=${PACKAGE-default}
8059 yes) enable_static=yes ;;
8060 no) enable_static=no ;;
8063 # Look at the argument we got. We use all the common list separators.
8064 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8065 for pkg in $enableval; do
8067 if test "X
$pkg" = "X
$p"; then
8087 # Check whether --with-pic was given.
8088 if test "${with_pic+set}" = set; then :
8089 withval=$with_pic; pic_mode="$withval"
8095 test -z "$pic_mode" && pic_mode=default
8103 # Check whether --enable-fast-install was given.
8104 if test "${enable_fast_install+set}" = set; then :
8105 enableval=$enable_fast_install; p=${PACKAGE-default}
8107 yes) enable_fast_install=yes ;;
8108 no) enable_fast_install=no ;;
8110 enable_fast_install=no
8111 # Look at the argument we got. We use all the common list separators.
8112 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8113 for pkg in $enableval; do
8115 if test "X
$pkg" = "X
$p"; then
8116 enable_fast_install=yes
8123 enable_fast_install=yes
8136 # This can be used to rebuild libtool when needed
8137 LIBTOOL_DEPS="$ltmain"
8139 # Always use our own libtool.
8140 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8167 test -z "$LN_S" && LN_S="ln -s"
8182 if test -n "${ZSH_VERSION+set}" ; then
8183 setopt NO_GLOB_SUBST
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
8187 $as_echo_n "checking
for objdir...
" >&6; }
8188 if ${lt_cv_objdir+:} false; then :
8189 $as_echo_n "(cached
) " >&6
8191 rm -f .libs 2>/dev/null
8192 mkdir .libs 2>/dev/null
8193 if test -d .libs; then
8196 # MS-DOS does not allow filenames that begin with a dot.
8199 rmdir .libs 2>/dev/null
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
8202 $as_echo "$lt_cv_objdir" >&6; }
8203 objdir=$lt_cv_objdir
8209 cat >>confdefs.h <<_ACEOF
8210 #define LT_OBJDIR "$lt_cv_objdir/"
8218 # AIX sometimes has problems with the GCC collect2 program. For some
8219 # reason, if we set the COLLECT_NAMES environment variable, the problems
8220 # vanish in a puff of smoke.
8221 if test "X
${COLLECT_NAMES+set}" != Xset; then
8223 export COLLECT_NAMES
8230 can_build_shared=yes
8232 # All known linkers require a `.a' archive for static linking (except MSVC,
8233 # which needs '.lib').
8236 with_gnu_ld="$lt_cv_prog_gnu_ld"
8239 old_CFLAGS="$CFLAGS"
8241 # Set sane defaults for various variables
8242 test -z "$CC" && CC=cc
8243 test -z "$LTCC" && LTCC=$CC
8244 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8245 test -z "$LD" && LD=ld
8246 test -z "$ac_objext" && ac_objext=o
8248 for cc_temp in $compiler""; do
8250 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8251 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8256 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
8259 # Only perform the check for file, if the check method requires it
8260 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8261 case $deplibs_check_method in
8263 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
8265 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
8266 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8267 $as_echo_n "(cached
) " >&6
8271 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8274 lt_save_MAGIC_CMD="$MAGIC_CMD"
8275 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8276 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
8277 for ac_dir in $ac_dummy; do
8279 test -z "$ac_dir" && ac_dir=.
8280 if test -f $ac_dir/${ac_tool_prefix}file; then
8281 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8282 if test -n "$file_magic_test_file"; then
8283 case $deplibs_check_method in
8285 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
8286 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8287 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8288 $EGREP "$file_magic_regex" > /dev/null; then
8293 *** Warning: the command libtool uses to detect shared libraries,
8294 *** $file_magic_cmd, produces output that libtool cannot recognize.
8295 *** The result is that libtool may fail to recognize shared libraries
8296 *** as such. This will affect the creation of libtool libraries that
8297 *** depend on shared libraries, but programs linked with such libtool
8298 *** libraries will work regardless of this problem. Nevertheless, you
8299 *** may want to report the problem to your system manager and/or to
8300 *** bug-libtool@gnu.org
8310 MAGIC_CMD="$lt_save_MAGIC_CMD"
8315 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8316 if test -n "$MAGIC_CMD"; then
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
8318 $as_echo "$MAGIC_CMD" >&6; }
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8321 $as_echo "no
" >&6; }
8328 if test -z "$lt_cv_path_MAGIC_CMD"; then
8329 if test -n "$ac_tool_prefix"; then
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
8331 $as_echo_n "checking
for file...
" >&6; }
8332 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8333 $as_echo_n "(cached
) " >&6
8337 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8340 lt_save_MAGIC_CMD="$MAGIC_CMD"
8341 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8342 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
8343 for ac_dir in $ac_dummy; do
8345 test -z "$ac_dir" && ac_dir=.
8346 if test -f $ac_dir/file; then
8347 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8348 if test -n "$file_magic_test_file"; then
8349 case $deplibs_check_method in
8351 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
8352 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8353 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8354 $EGREP "$file_magic_regex" > /dev/null; then
8359 *** Warning: the command libtool uses to detect shared libraries,
8360 *** $file_magic_cmd, produces output that libtool cannot recognize.
8361 *** The result is that libtool may fail to recognize shared libraries
8362 *** as such. This will affect the creation of libtool libraries that
8363 *** depend on shared libraries, but programs linked with such libtool
8364 *** libraries will work regardless of this problem. Nevertheless, you
8365 *** may want to report the problem to your system manager and/or to
8366 *** bug-libtool@gnu.org
8376 MAGIC_CMD="$lt_save_MAGIC_CMD"
8381 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8382 if test -n "$MAGIC_CMD"; then
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
8384 $as_echo "$MAGIC_CMD" >&6; }
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8387 $as_echo "no
" >&6; }
8400 # Use C for the default configuration in the libtool script
8404 ac_cpp='$CPP $CPPFLAGS'
8405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8410 # Source file extension for C test sources.
8413 # Object file extension for compiled C test sources.
8417 # Code to be used in simple compile tests
8418 lt_simple_compile_test_code="int some_variable
= 0;"
8420 # Code to be used in simple link tests
8421 lt_simple_link_test_code='int main(){return(0);}'
8429 # If no C compiler was specified, use CC.
8432 # If no C compiler flags were specified, use CFLAGS.
8433 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8435 # Allow CC to be a program name with arguments.
8438 # Save the default compiler, since it gets overwritten when the other
8439 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8440 compiler_DEFAULT=$CC
8442 # save warnings/boilerplate of simple test code
8443 ac_outfile=conftest.$ac_objext
8444 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8445 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8446 _lt_compiler_boilerplate=`cat conftest.err`
8449 ac_outfile=conftest.$ac_objext
8450 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8451 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8452 _lt_linker_boilerplate=`cat conftest.err`
8457 ## There is no encapsulation within the following macros, do not change
8458 ## the running order or otherwise move them around unless you know exactly
8459 ## what you are doing...
8460 if test -n "$compiler"; then
8462 lt_prog_compiler_no_builtin_flag=
8464 if test "$GCC" = yes; then
8465 case $cc_basename in
8467 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8469 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
8473 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
8474 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8475 $as_echo_n "(cached
) " >&6
8477 lt_cv_prog_compiler_rtti_exceptions=no
8478 ac_outfile=conftest.$ac_objext
8479 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8480 lt_compiler_flag="-fno-rtti -fno-exceptions"
8481 # Insert the option either (1) after the last *FLAGS variable, or
8482 # (2) before a word containing "conftest.
", or (3) at the end.
8483 # Note that $ac_compile itself does not contain backslashes and begins
8484 # with a dollar sign (not a hyphen), so the echo should work correctly.
8485 # The option is referenced via a variable to avoid confusing sed.
8486 lt_compile=`echo "$ac_compile" | $SED \
8487 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8488 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8489 -e 's:$: $lt_compiler_flag:'`
8490 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
8491 (eval "$lt_compile" 2>conftest.err)
8493 cat conftest.err >&5
8494 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8495 if (exit $ac_status) && test -s "$ac_outfile"; then
8496 # The compiler can only warn and ignore the option if not recognized
8497 # So say no if there are warnings other than the usual output.
8498 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8499 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8500 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8501 lt_cv_prog_compiler_rtti_exceptions=yes
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
8508 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8510 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8511 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8523 lt_prog_compiler_wl=
8524 lt_prog_compiler_pic=
8525 lt_prog_compiler_static=
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
8528 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
8530 if test "$GCC" = yes; then
8531 lt_prog_compiler_wl='-Wl,'
8532 lt_prog_compiler_static='-static'
8536 # All AIX code is PIC.
8537 if test "$host_cpu" = ia64; then
8538 # AIX 5 now supports IA64 processor
8539 lt_prog_compiler_static='-Bstatic'
8541 lt_prog_compiler_pic='-fPIC'
8547 # see comment about AmigaOS4 .so support
8548 lt_prog_compiler_pic='-fPIC'
8551 # FIXME: we need at least 68020 code to build shared libraries, but
8552 # adding the `-m68020' flag to GCC prevents building anything better,
8554 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8559 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8560 # PIC is the default for these OSes.
8563 mingw* | cygwin* | pw32* | os2* | cegcc*)
8564 # This hack is so that the source file can tell whether it is being
8565 # built for inclusion in a dll (and should export symbols for example).
8566 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8567 # (--disable-auto-import) libraries
8568 lt_prog_compiler_pic='-DDLL_EXPORT'
8571 darwin* | rhapsody*)
8572 # PIC is the default on this platform
8573 # Common symbols not allowed in MH_DYLIB files
8574 lt_prog_compiler_pic='-fno-common'
8578 # PIC is the default for Haiku.
8579 # The "-static" flag exists, but is broken.
8580 lt_prog_compiler_static=
8584 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8585 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8586 # sets the default TLS model and affects inlining.
8592 lt_prog_compiler_pic='-fPIC'
8598 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8599 # Instead, we relocate shared libraries at runtime.
8603 # Just because we use GCC doesn't mean we suddenly get shared libraries
8604 # on systems that don't support them.
8605 lt_prog_compiler_can_build_shared=no
8610 # QNX uses GNU C++, but need to define -shared option too, otherwise
8612 lt_prog_compiler_pic='-fPIC -shared'
8616 if test -d /usr/nec; then
8617 lt_prog_compiler_pic=-Kconform_pic
8622 lt_prog_compiler_pic='-fPIC'
8626 case $cc_basename in
8627 nvcc*) # Cuda Compiler Driver 2.2
8628 lt_prog_compiler_wl='-Xlinker '
8629 lt_prog_compiler_pic='-Xcompiler -fPIC'
8633 # PORTME Check for flag to pass linker flags through the system compiler.
8636 lt_prog_compiler_wl='-Wl,'
8637 if test "$host_cpu" = ia64; then
8638 # AIX 5 now supports IA64 processor
8639 lt_prog_compiler_static='-Bstatic'
8641 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8645 mingw* | cygwin* | pw32* | os2* | cegcc*)
8646 # This hack is so that the source file can tell whether it is being
8647 # built for inclusion in a dll (and should export symbols for example).
8648 lt_prog_compiler_pic='-DDLL_EXPORT'
8651 hpux9* | hpux10* | hpux11*)
8652 lt_prog_compiler_wl='-Wl,'
8653 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8660 lt_prog_compiler_pic='+Z'
8663 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8664 lt_prog_compiler_static='${wl}-a ${wl}archive'
8667 irix5* | irix6* | nonstopux*)
8668 lt_prog_compiler_wl='-Wl,'
8669 # PIC (with -KPIC) is the default.
8670 lt_prog_compiler_static='-non_shared'
8673 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8674 case $cc_basename in
8675 # old Intel for x86_64 which still supported -KPIC.
8677 lt_prog_compiler_wl='-Wl,'
8678 lt_prog_compiler_pic='-KPIC'
8679 lt_prog_compiler_static='-static'
8681 # icc used to be incompatible with GCC.
8682 # ICC 10 doesn't accept -KPIC any more.
8684 lt_prog_compiler_wl='-Wl,'
8685 lt_prog_compiler_pic='-fPIC'
8686 lt_prog_compiler_static='-static'
8688 # Lahey Fortran 8.1.
8690 lt_prog_compiler_wl='-Wl,'
8691 lt_prog_compiler_pic='--shared'
8692 lt_prog_compiler_static='--static'
8694 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8695 # Portland Group compilers (*not* the Pentium gcc compiler,
8696 # which looks to be a dead project)
8697 lt_prog_compiler_wl='-Wl,'
8698 lt_prog_compiler_pic='-fpic'
8699 lt_prog_compiler_static='-Bstatic'
8702 lt_prog_compiler_wl='-Wl,'
8703 # All Alpha code is PIC.
8704 lt_prog_compiler_static='-non_shared'
8706 xl* | bgxl* | bgf* | mpixl*)
8707 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8708 lt_prog_compiler_wl='-Wl,'
8709 lt_prog_compiler_pic='-qpic'
8710 lt_prog_compiler_static='-qstaticlink'
8713 case `$CC -V 2>&1 | sed 5q` in
8714 *Sun\ F* | *Sun*Fortran*)
8715 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8716 lt_prog_compiler_pic='-KPIC'
8717 lt_prog_compiler_static='-Bstatic'
8718 lt_prog_compiler_wl=''
8722 lt_prog_compiler_pic='-KPIC'
8723 lt_prog_compiler_static='-Bstatic'
8724 lt_prog_compiler_wl='-Wl,'
8732 lt_prog_compiler_pic='-KPIC'
8733 lt_prog_compiler_static='-Bstatic'
8737 # QNX uses GNU C++, but need to define -shared option too, otherwise
8739 lt_prog_compiler_pic='-fPIC -shared'
8742 osf3* | osf4* | osf5*)
8743 lt_prog_compiler_wl='-Wl,'
8744 # All OSF/1 code is PIC.
8745 lt_prog_compiler_static='-non_shared'
8749 lt_prog_compiler_static='-non_shared'
8753 lt_prog_compiler_pic='-KPIC'
8754 lt_prog_compiler_static='-Bstatic'
8755 case $cc_basename in
8757 lt_prog_compiler_wl='-Qoption ld ';;
8759 lt_prog_compiler_wl='-Wl,';;
8764 lt_prog_compiler_wl='-Qoption ld '
8765 lt_prog_compiler_pic='-PIC'
8766 lt_prog_compiler_static='-Bstatic'
8769 sysv4 | sysv4.2uw2* | sysv4.3*)
8770 lt_prog_compiler_wl='-Wl,'
8771 lt_prog_compiler_pic='-KPIC'
8772 lt_prog_compiler_static='-Bstatic'
8776 if test -d /usr/nec ;then
8777 lt_prog_compiler_pic='-Kconform_pic'
8778 lt_prog_compiler_static='-Bstatic'
8782 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8783 lt_prog_compiler_wl='-Wl,'
8784 lt_prog_compiler_pic='-KPIC'
8785 lt_prog_compiler_static='-Bstatic'
8789 lt_prog_compiler_wl='-Wl,'
8790 lt_prog_compiler_can_build_shared=no
8794 lt_prog_compiler_pic='-pic'
8795 lt_prog_compiler_static='-Bstatic'
8799 lt_prog_compiler_can_build_shared=no
8805 # For platforms which do not support PIC, -DPIC is meaningless:
8807 lt_prog_compiler_pic=
8810 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
8814 $as_echo "$lt_prog_compiler_pic" >&6; }
8822 # Check to make sure the PIC flag actually works.
8824 if test -n "$lt_prog_compiler_pic"; then
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
8826 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
8827 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8828 $as_echo_n "(cached
) " >&6
8830 lt_cv_prog_compiler_pic_works=no
8831 ac_outfile=conftest.$ac_objext
8832 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8833 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8834 # Insert the option either (1) after the last *FLAGS variable, or
8835 # (2) before a word containing "conftest.
", or (3) at the end.
8836 # Note that $ac_compile itself does not contain backslashes and begins
8837 # with a dollar sign (not a hyphen), so the echo should work correctly.
8838 # The option is referenced via a variable to avoid confusing sed.
8839 lt_compile=`echo "$ac_compile" | $SED \
8840 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8841 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8842 -e 's:$: $lt_compiler_flag:'`
8843 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
8844 (eval "$lt_compile" 2>conftest.err)
8846 cat conftest.err >&5
8847 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8848 if (exit $ac_status) && test -s "$ac_outfile"; then
8849 # The compiler can only warn and ignore the option if not recognized
8850 # So say no if there are warnings other than the usual output.
8851 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8852 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8853 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8854 lt_cv_prog_compiler_pic_works=yes
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
8861 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8863 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8864 case $lt_prog_compiler_pic in
8866 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8869 lt_prog_compiler_pic=
8870 lt_prog_compiler_can_build_shared=no
8881 # Check to make sure the static flag actually works.
8883 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
8885 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
8886 if ${lt_cv_prog_compiler_static_works+:} false; then :
8887 $as_echo_n "(cached
) " >&6
8889 lt_cv_prog_compiler_static_works=no
8890 save_LDFLAGS="$LDFLAGS"
8891 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8892 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8893 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8894 # The linker can only warn and ignore the option if not recognized
8895 # So say no if there are warnings
8896 if test -s conftest.err; then
8897 # Append any errors to the config.log.
8898 cat conftest.err 1>&5
8899 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8900 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8901 if diff conftest.exp conftest.er2 >/dev/null; then
8902 lt_cv_prog_compiler_static_works=yes
8905 lt_cv_prog_compiler_static_works=yes
8909 LDFLAGS="$save_LDFLAGS"
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
8913 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8915 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8918 lt_prog_compiler_static=
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
8928 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
8929 if ${lt_cv_prog_compiler_c_o+:} false; then :
8930 $as_echo_n "(cached
) " >&6
8932 lt_cv_prog_compiler_c_o=no
8933 $RM -r conftest 2>/dev/null
8937 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8939 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
8940 # Insert the option either (1) after the last *FLAGS variable, or
8941 # (2) before a word containing "conftest.
", or (3) at the end.
8942 # Note that $ac_compile itself does not contain backslashes and begins
8943 # with a dollar sign (not a hyphen), so the echo should work correctly.
8944 lt_compile=`echo "$ac_compile" | $SED \
8945 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8946 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8947 -e 's:$: $lt_compiler_flag:'`
8948 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
8949 (eval "$lt_compile" 2>out/conftest.err)
8951 cat out/conftest.err >&5
8952 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8953 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8955 # The compiler can only warn and ignore the option if not recognized
8956 # So say no if there are warnings
8957 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8958 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8959 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8960 lt_cv_prog_compiler_c_o=yes
8965 # SGI C++ compiler will create directory out/ii_files/ for
8966 # template instantiation
8967 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8968 $RM out/* && rmdir out
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
8975 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
8983 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
8984 if ${lt_cv_prog_compiler_c_o+:} false; then :
8985 $as_echo_n "(cached
) " >&6
8987 lt_cv_prog_compiler_c_o=no
8988 $RM -r conftest 2>/dev/null
8992 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8994 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
8995 # Insert the option either (1) after the last *FLAGS variable, or
8996 # (2) before a word containing "conftest.
", or (3) at the end.
8997 # Note that $ac_compile itself does not contain backslashes and begins
8998 # with a dollar sign (not a hyphen), so the echo should work correctly.
8999 lt_compile=`echo "$ac_compile" | $SED \
9000 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9001 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9002 -e 's:$: $lt_compiler_flag:'`
9003 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9004 (eval "$lt_compile" 2>out/conftest.err)
9006 cat out/conftest.err >&5
9007 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9008 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9010 # The compiler can only warn and ignore the option if not recognized
9011 # So say no if there are warnings
9012 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9013 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9014 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9015 lt_cv_prog_compiler_c_o=yes
9020 # SGI C++ compiler will create directory out/ii_files/ for
9021 # template instantiation
9022 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9023 $RM out/* && rmdir out
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
9030 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9035 hard_links="nottested
"
9036 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9037 # do not overwrite the value of need_locks provided by the user
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
9039 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
9042 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9044 ln conftest.a conftest.b 2>&5 || hard_links=no
9045 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
9047 $as_echo "$hard_links" >&6; }
9048 if test "$hard_links" = no; then
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
9050 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
9063 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
9066 allow_undefined_flag=
9067 always_export_symbols=no
9069 archive_expsym_cmds=
9070 compiler_needs_object=no
9071 enable_shared_with_static_runtimes=no
9072 export_dynamic_flag_spec=
9073 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9074 hardcode_automatic=no
9076 hardcode_direct_absolute=no
9077 hardcode_libdir_flag_spec=
9078 hardcode_libdir_flag_spec_ld=
9079 hardcode_libdir_separator=
9081 hardcode_shlibpath_var=unsupported
9083 link_all_deplibs=unknown
9086 old_archive_from_new_cmds=
9087 old_archive_from_expsyms_cmds=
9088 thread_safe_flag_spec=
9089 whole_archive_flag_spec=
9090 # include_expsyms should be a list of space-separated symbols to be *always*
9091 # included in the symbol list
9093 # exclude_expsyms can be an extended regexp of symbols to exclude
9094 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9095 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9096 # as well as any symbol that contains `d'.
9097 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9098 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9099 # platforms (ab)use it in PIC code, but their linkers get confused if
9100 # the symbol is explicitly referenced. Since portable code cannot
9101 # rely on this symbol name, it's probably fine to never include it in
9102 # preloaded symbol tables.
9103 # Exclude shared library initialization/finalization symbols.
9104 extract_expsyms_cmds=
9107 cygwin* | mingw* | pw32* | cegcc*)
9108 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9109 # When not using gcc, we currently assume that we are using
9110 # Microsoft Visual C++.
9111 if test "$GCC" != yes; then
9116 # we just hope/assume this is gcc and not c89 (= MSVC++)
9126 # On some targets, GNU ld is compatible enough with the native linker
9127 # that we're better off using the native interface for both.
9128 lt_use_gnu_ld_interface=no
9129 if test "$with_gnu_ld" = yes; then
9132 # The AIX port of GNU ld has always aspired to compatibility
9133 # with the native linker. However, as the warning in the GNU ld
9134 # block says, versions before 2.19.5* couldn't really create working
9135 # shared libraries, regardless of the interface used.
9136 case `$LD -v 2>&1` in
9137 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9138 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9139 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9141 lt_use_gnu_ld_interface=yes
9146 lt_use_gnu_ld_interface=yes
9151 if test "$lt_use_gnu_ld_interface" = yes; then
9152 # If archive_cmds runs LD, not CC, wlarc should be empty
9155 # Set some defaults for GNU ld with shared library support. These
9156 # are reset later if shared libraries are not supported. Putting them
9157 # here allows them to be overridden if necessary.
9158 runpath_var=LD_RUN_PATH
9159 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9160 export_dynamic_flag_spec='${wl}--export-dynamic'
9161 # ancient GNU ld didn't support --whole-archive et. al.
9162 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9163 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9165 whole_archive_flag_spec=
9167 supports_anon_versioning=no
9168 case `$LD -v 2>&1` in
9169 *GNU\ gold*) supports_anon_versioning=yes ;;
9170 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9171 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9172 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9173 *\ 2.11.*) ;; # other 2.11 versions
9174 *) supports_anon_versioning=yes ;;
9177 # See if GNU ld supports shared libraries.
9180 # On AIX/PPC, the GNU linker is very broken
9181 if test "$host_cpu" != ia64; then
9185 *** Warning: the GNU linker, at least up to release 2.19, is reported
9186 *** to be unable to reliably create shared libraries on AIX.
9187 *** Therefore, libtool is disabling shared libraries support. If you
9188 *** really care for shared libraries, you may want to install binutils
9189 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9190 *** You will then need to restart the configuration process.
9199 # see comment about AmigaOS4 .so support
9200 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9201 archive_expsym_cmds=''
9204 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)'
9205 hardcode_libdir_flag_spec
='-L$libdir'
9206 hardcode_minus_L
=yes
9212 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9213 allow_undefined_flag
=unsupported
9214 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9215 # support --undefined. This deserves some investigation. FIXME
9216 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9222 cygwin
* | mingw
* | pw32
* | cegcc
*)
9223 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9224 # as there is no search path for DLLs.
9225 hardcode_libdir_flag_spec
='-L$libdir'
9226 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9227 allow_undefined_flag
=unsupported
9228 always_export_symbols
=no
9229 enable_shared_with_static_runtimes
=yes
9230 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9232 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9233 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9234 # If the export-symbols file already is a .def file (1st line
9235 # is EXPORTS), use it as is; otherwise, prepend...
9236 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9237 cp $export_symbols $output_objdir/$soname.def;
9239 echo EXPORTS > $output_objdir/$soname.def;
9240 cat $export_symbols >> $output_objdir/$soname.def;
9242 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9249 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9250 link_all_deplibs
=yes
9255 hardcode_shlibpath_var
=no
9256 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9257 export_dynamic_flag_spec
='${wl}-E'
9258 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9259 # Instead, shared libraries are loaded at an image base (0x10000000 by
9260 # default) and relocated if they conflict, which is a slow very memory
9261 # consuming and fragmenting process. To avoid this, we pick a random,
9262 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9263 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9264 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9265 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'
9268 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
9270 if test "$host_os" = linux-dietlibc
; then
9271 case $cc_basename in
9272 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9275 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9276 && test "$tmp_diet" = no
9278 tmp_addflag
=' $pic_flag'
9279 tmp_sharedflag
='-shared'
9280 case $cc_basename,$host_cpu in
9281 pgcc
*) # Portland Group C compiler
9282 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'
9283 tmp_addflag
=' $pic_flag'
9285 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9286 # Portland Group f77 and f90 compilers
9287 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'
9288 tmp_addflag
=' $pic_flag -Mnomain' ;;
9289 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9290 tmp_addflag
=' -i_dynamic' ;;
9291 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9292 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9293 ifc
* | ifort
*) # Intel Fortran compiler
9294 tmp_addflag
=' -nofor_main' ;;
9295 lf95
*) # Lahey Fortran 8.1
9296 whole_archive_flag_spec
=
9297 tmp_sharedflag
='--shared' ;;
9298 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9299 tmp_sharedflag
='-qmkshrobj'
9301 nvcc
*) # Cuda Compiler Driver 2.2
9302 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'
9303 compiler_needs_object
=yes
9306 case `$CC -V 2>&1 | sed 5q` in
9307 *Sun\ C
*) # Sun C 5.9
9308 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'
9309 compiler_needs_object
=yes
9310 tmp_sharedflag
='-G' ;;
9311 *Sun\ F
*) # Sun Fortran 8.3
9312 tmp_sharedflag
='-G' ;;
9314 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9316 if test "x$supports_anon_versioning" = xyes
; then
9317 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9318 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9319 echo "local: *; };" >> $output_objdir/$libname.ver~
9320 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9323 case $cc_basename in
9324 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9325 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9326 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9327 hardcode_libdir_flag_spec
=
9328 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9329 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9330 if test "x$supports_anon_versioning" = xyes
; then
9331 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9332 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9333 echo "local: *; };" >> $output_objdir/$libname.ver~
9334 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9344 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9345 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9348 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9349 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9354 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9358 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9359 *** create shared libraries on Solaris systems. Therefore, libtool
9360 *** is disabling shared libraries support. We urge you to upgrade GNU
9361 *** binutils to release 2.9.1 or newer. Another option is to modify
9362 *** your PATH or compiler configuration so that the native linker is
9363 *** used, and then restart.
9366 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9367 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9368 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9374 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9375 case `$LD -v 2>&1` in
9376 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9380 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9381 *** reliably create shared libraries on SCO systems. Therefore, libtool
9382 *** is disabling shared libraries support. We urge you to upgrade GNU
9383 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9384 *** your PATH or compiler configuration so that the native linker is
9385 *** used, and then restart.
9390 # For security reasons, it is highly recommended that you always
9391 # use absolute paths for naming shared libraries, and exclude the
9392 # DT_RUNPATH tag from executables and libraries. But doing so
9393 # requires that you compile everything twice, which is a pain.
9394 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9395 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9396 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9397 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9406 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9409 hardcode_shlibpath_var
=no
9413 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9414 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9415 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9422 if test "$ld_shlibs" = no
; then
9424 hardcode_libdir_flag_spec
=
9425 export_dynamic_flag_spec
=
9426 whole_archive_flag_spec
=
9429 # PORTME fill in a description of your system's linker (not GNU ld)
9432 allow_undefined_flag
=unsupported
9433 always_export_symbols
=yes
9434 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'
9435 # Note: this linker hardcodes the directories in LIBPATH if there
9436 # are no directories specified by -L.
9437 hardcode_minus_L
=yes
9438 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9439 # Neither direct hardcoding nor static linking is supported with a
9441 hardcode_direct
=unsupported
9446 if test "$host_cpu" = ia64
; then
9447 # On IA64, the linker does run time linking by default, so we don't
9448 # have to do anything special.
9449 aix_use_runtimelinking
=no
9450 exp_sym_flag
='-Bexport'
9453 # If we're using GNU nm, then we don't want the "-C" option.
9454 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9455 # Also, AIX nm treats weak defined symbols like other global
9456 # defined symbols, whereas GNU nm marks them as "W".
9457 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9458 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'
9460 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'
9462 aix_use_runtimelinking
=no
9464 # Test if we are trying to use run time linking or normal
9465 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9466 # need to do runtime linking.
9467 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9468 for ld_flag
in $LDFLAGS; do
9469 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9470 aix_use_runtimelinking
=yes
9477 exp_sym_flag
='-bexport'
9478 no_entry_flag
='-bnoentry'
9481 # When large executables or shared objects are built, AIX ld can
9482 # have problems creating the table of contents. If linking a library
9483 # or program results in "error TOC overflow" add -mminimal-toc to
9484 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9485 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9489 hardcode_direct_absolute
=yes
9490 hardcode_libdir_separator
=':'
9491 link_all_deplibs
=yes
9492 file_list_spec
='${wl}-f,'
9494 if test "$GCC" = yes; then
9495 case $host_os in aix4.
[012]|aix4.
[012].
*)
9496 # We only want to do this on AIX 4.2 and lower, the check
9497 # below for broken collect2 doesn't work under 4.3+
9498 collect2name
=`${CC} -print-prog-name=collect2`
9499 if test -f "$collect2name" &&
9500 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9502 # We have reworked collect2
9505 # We have old collect2
9506 hardcode_direct
=unsupported
9507 # It fails to find uninstalled libraries when the uninstalled
9508 # path is not listed in the libpath. Setting hardcode_minus_L
9509 # to unsupported forces relinking
9510 hardcode_minus_L
=yes
9511 hardcode_libdir_flag_spec
='-L$libdir'
9512 hardcode_libdir_separator
=
9516 shared_flag
='-shared'
9517 if test "$aix_use_runtimelinking" = yes; then
9518 shared_flag
="$shared_flag "'${wl}-G'
9522 if test "$host_cpu" = ia64
; then
9523 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9524 # chokes on -Wl,-G. The following line is correct:
9527 if test "$aix_use_runtimelinking" = yes; then
9528 shared_flag
='${wl}-G'
9530 shared_flag
='${wl}-bM:SRE'
9535 export_dynamic_flag_spec
='${wl}-bexpall'
9536 # It seems that -bexpall does not export symbols beginning with
9537 # underscore (_), so it is better to generate a list of symbols to export.
9538 always_export_symbols
=yes
9539 if test "$aix_use_runtimelinking" = yes; then
9540 # Warning - without using the other runtime loading flags (-brtl),
9541 # -berok will link without error, but may produce a broken library.
9542 allow_undefined_flag
='-berok'
9543 # Determine the default libpath from the value encoded in an
9545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9546 /* end confdefs.h. */
9556 if ac_fn_c_try_link
"$LINENO"; then :
9558 lt_aix_libpath_sed
='
9559 /Import File Strings/,/^$/ {
9565 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9566 # Check for a 64-bit object if we didn't find anything.
9567 if test -z "$aix_libpath"; then
9568 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9571 rm -f core conftest.err conftest.
$ac_objext \
9572 conftest
$ac_exeext conftest.
$ac_ext
9573 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9575 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9576 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"
9578 if test "$host_cpu" = ia64
; then
9579 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9580 allow_undefined_flag
="-z nodefs"
9581 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"
9583 # Determine the default libpath from the value encoded in an
9585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9586 /* end confdefs.h. */
9596 if ac_fn_c_try_link
"$LINENO"; then :
9598 lt_aix_libpath_sed
='
9599 /Import File Strings/,/^$/ {
9605 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9606 # Check for a 64-bit object if we didn't find anything.
9607 if test -z "$aix_libpath"; then
9608 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9611 rm -f core conftest.err conftest.
$ac_objext \
9612 conftest
$ac_exeext conftest.
$ac_ext
9613 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9615 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9616 # Warning - without using the other run time loading flags,
9617 # -berok will link without error, but may produce a broken library.
9618 no_undefined_flag
=' ${wl}-bernotok'
9619 allow_undefined_flag
=' ${wl}-berok'
9620 if test "$with_gnu_ld" = yes; then
9621 # We only use this code for GNU lds that support --whole-archive.
9622 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9624 # Exported symbols can be pulled into shared objects from archives
9625 whole_archive_flag_spec
='$convenience'
9627 archive_cmds_need_lc
=yes
9628 # This is similar to how AIX traditionally builds its shared libraries.
9629 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'
9637 # see comment about AmigaOS4 .so support
9638 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9639 archive_expsym_cmds
=''
9642 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)'
9643 hardcode_libdir_flag_spec
='-L$libdir'
9644 hardcode_minus_L
=yes
9650 export_dynamic_flag_spec
=-rdynamic
9653 cygwin
* | mingw
* | pw32
* | cegcc
*)
9654 # When not using gcc, we currently assume that we are using
9655 # Microsoft Visual C++.
9656 # hardcode_libdir_flag_spec is actually meaningless, as there is
9657 # no search path for DLLs.
9658 hardcode_libdir_flag_spec
=' '
9659 allow_undefined_flag
=unsupported
9660 # Tell ltmain to make .lib files, not .a files.
9662 # Tell ltmain to make .dll files, not .so files.
9664 # FIXME: Setting linknames here is a bad hack.
9665 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9666 # The linker will automatically build a .lib file if we build a DLL.
9667 old_archive_from_new_cmds
='true'
9668 # FIXME: Should let the user specify the lib program.
9669 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9670 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9671 enable_shared_with_static_runtimes
=yes
9674 darwin
* | rhapsody
*)
9677 archive_cmds_need_lc
=no
9679 hardcode_automatic
=yes
9680 hardcode_shlibpath_var
=unsupported
9681 if test "$lt_cv_ld_force_load" = "yes"; then
9682 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\"`'
9684 whole_archive_flag_spec
=''
9686 link_all_deplibs
=yes
9687 allow_undefined_flag
="$_lt_dar_allow_undefined"
9688 case $cc_basename in
9689 ifort
*) _lt_dar_can_shared
=yes ;;
9690 *) _lt_dar_can_shared
=$GCC ;;
9692 if test "$_lt_dar_can_shared" = "yes"; then
9693 output_verbose_link_cmd
=func_echo_all
9694 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9695 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9696 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}"
9697 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}"
9706 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9707 hardcode_libdir_flag_spec
='-L$libdir'
9708 hardcode_shlibpath_var
=no
9711 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9712 # support. Future versions do this automatically, but an explicit c++rt0.o
9713 # does not break anything, and helps significantly (at the cost of a little
9716 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9717 hardcode_libdir_flag_spec
='-R$libdir'
9719 hardcode_shlibpath_var
=no
9722 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9724 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9726 hardcode_minus_L
=yes
9727 hardcode_shlibpath_var
=no
9730 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9731 freebsd
* | dragonfly
*)
9732 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9733 hardcode_libdir_flag_spec
='-R$libdir'
9735 hardcode_shlibpath_var
=no
9739 if test "$GCC" = yes; then
9740 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'
9742 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'
9744 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9745 hardcode_libdir_separator
=:
9748 # hardcode_minus_L: Not really in the search PATH,
9749 # but as the default location of the library.
9750 hardcode_minus_L
=yes
9751 export_dynamic_flag_spec
='${wl}-E'
9755 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9756 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9758 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9760 if test "$with_gnu_ld" = no
; then
9761 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9762 hardcode_libdir_flag_spec_ld
='+b $libdir'
9763 hardcode_libdir_separator
=:
9765 hardcode_direct_absolute
=yes
9766 export_dynamic_flag_spec
='${wl}-E'
9767 # hardcode_minus_L: Not really in the search PATH,
9768 # but as the default location of the library.
9769 hardcode_minus_L
=yes
9774 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9777 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9780 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9783 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9789 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9792 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9796 # Older versions of the 11.00 compiler do not understand -b yet
9797 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9799 $as_echo_n "checking if $CC understands -b... " >&6; }
9800 if ${lt_cv_prog_compiler__b+:} false
; then :
9801 $as_echo_n "(cached) " >&6
9803 lt_cv_prog_compiler__b
=no
9804 save_LDFLAGS
="$LDFLAGS"
9805 LDFLAGS
="$LDFLAGS -b"
9806 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9807 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9808 # The linker can only warn and ignore the option if not recognized
9809 # So say no if there are warnings
9810 if test -s conftest.err
; then
9811 # Append any errors to the config.log.
9812 cat conftest.err
1>&5
9813 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9814 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9815 if diff conftest.exp conftest.er2
>/dev
/null
; then
9816 lt_cv_prog_compiler__b
=yes
9819 lt_cv_prog_compiler__b
=yes
9823 LDFLAGS
="$save_LDFLAGS"
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9827 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9829 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9830 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9832 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9838 if test "$with_gnu_ld" = no
; then
9839 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9840 hardcode_libdir_separator
=:
9845 hardcode_shlibpath_var
=no
9849 hardcode_direct_absolute
=yes
9850 export_dynamic_flag_spec
='${wl}-E'
9852 # hardcode_minus_L: Not really in the search PATH,
9853 # but as the default location of the library.
9854 hardcode_minus_L
=yes
9860 irix5
* | irix6
* | nonstopux
*)
9861 if test "$GCC" = yes; then
9862 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'
9863 # Try to use the -exported_symbol ld option, if it does not
9864 # work, assume that -exports_file does not work either and
9865 # implicitly export all symbols.
9866 save_LDFLAGS
="$LDFLAGS"
9867 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9869 /* end confdefs.h. */
9872 if ac_fn_c_try_link
"$LINENO"; then :
9873 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'
9876 rm -f core conftest.err conftest.
$ac_objext \
9877 conftest
$ac_exeext conftest.
$ac_ext
9878 LDFLAGS
="$save_LDFLAGS"
9880 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'
9881 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'
9883 archive_cmds_need_lc
='no'
9884 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9885 hardcode_libdir_separator
=:
9887 link_all_deplibs
=yes
9891 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9892 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9894 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9896 hardcode_libdir_flag_spec
='-R$libdir'
9898 hardcode_shlibpath_var
=no
9902 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9904 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9905 hardcode_libdir_separator
=:
9906 hardcode_shlibpath_var
=no
9913 if test -f /usr
/libexec
/ld.so
; then
9915 hardcode_shlibpath_var
=no
9916 hardcode_direct_absolute
=yes
9917 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9918 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9919 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9920 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9921 export_dynamic_flag_spec
='${wl}-E'
9924 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9925 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9926 hardcode_libdir_flag_spec
='-R$libdir'
9929 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9930 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9940 hardcode_libdir_flag_spec
='-L$libdir'
9941 hardcode_minus_L
=yes
9942 allow_undefined_flag
=unsupported
9943 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'
9944 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9948 if test "$GCC" = yes; then
9949 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9950 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'
9952 allow_undefined_flag
=' -expect_unresolved \*'
9953 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'
9955 archive_cmds_need_lc
='no'
9956 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9957 hardcode_libdir_separator
=:
9960 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9961 if test "$GCC" = yes; then
9962 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9963 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'
9964 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9966 allow_undefined_flag
=' -expect_unresolved \*'
9967 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'
9968 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~
9969 $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'
9971 # Both c and cxx compiler support -rpath directly
9972 hardcode_libdir_flag_spec
='-rpath $libdir'
9974 archive_cmds_need_lc
='no'
9975 hardcode_libdir_separator
=:
9979 no_undefined_flag
=' -z defs'
9980 if test "$GCC" = yes; then
9982 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9983 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9984 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9986 case `$CC -V 2>&1` in
9989 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9990 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9991 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9995 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9996 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9997 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10001 hardcode_libdir_flag_spec
='-R$libdir'
10002 hardcode_shlibpath_var
=no
10004 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10006 # The compiler driver will combine and reorder linker options,
10007 # but understands `-z linker_flag'. GCC discards it without `$wl',
10008 # but is careful enough not to reorder.
10009 # Supported since Solaris 2.6 (maybe 2.5.1?)
10010 if test "$GCC" = yes; then
10011 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10013 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10017 link_all_deplibs
=yes
10021 if test "x$host_vendor" = xsequent
; then
10022 # Use $CC to link under sequent, because it throws in some extra .o
10023 # files that make .init and .fini sections work.
10024 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10026 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10028 hardcode_libdir_flag_spec
='-L$libdir'
10029 hardcode_direct
=yes
10030 hardcode_minus_L
=yes
10031 hardcode_shlibpath_var
=no
10035 case $host_vendor in
10037 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10038 hardcode_direct
=yes # is this really true???
10041 ## LD is ld it makes a PLAMLIB
10042 ## CC just makes a GrossModule.
10043 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10044 reload_cmds
='$CC -r -o $output$reload_objs'
10048 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10049 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10052 runpath_var
='LD_RUN_PATH'
10053 hardcode_shlibpath_var
=no
10057 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10058 hardcode_shlibpath_var
=no
10059 export_dynamic_flag_spec
='-Bexport'
10063 if test -d /usr
/nec
; then
10064 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10065 hardcode_shlibpath_var
=no
10066 runpath_var
=LD_RUN_PATH
10067 hardcode_runpath_var
=yes
10072 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10073 no_undefined_flag
='${wl}-z,text'
10074 archive_cmds_need_lc
=no
10075 hardcode_shlibpath_var
=no
10076 runpath_var
='LD_RUN_PATH'
10078 if test "$GCC" = yes; then
10079 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10080 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10082 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10083 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10087 sysv5
* | sco3.2v5
* | sco5v6
*)
10088 # Note: We can NOT use -z defs as we might desire, because we do not
10089 # link with -lc, and that would cause any symbols used from libc to
10090 # always be unresolved, which means just about no library would
10091 # ever link correctly. If we're not using GNU ld we use -z text
10092 # though, which does catch some bad symbols but isn't as heavy-handed
10094 no_undefined_flag
='${wl}-z,text'
10095 allow_undefined_flag
='${wl}-z,nodefs'
10096 archive_cmds_need_lc
=no
10097 hardcode_shlibpath_var
=no
10098 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10099 hardcode_libdir_separator
=':'
10100 link_all_deplibs
=yes
10101 export_dynamic_flag_spec
='${wl}-Bexport'
10102 runpath_var
='LD_RUN_PATH'
10104 if test "$GCC" = yes; then
10105 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10106 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10108 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10109 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10114 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10115 hardcode_libdir_flag_spec
='-L$libdir'
10116 hardcode_shlibpath_var
=no
10124 if test x
$host_vendor = xsni
; then
10126 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10127 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10134 $as_echo "$ld_shlibs" >&6; }
10135 test "$ld_shlibs" = no
&& can_build_shared
=no
10137 with_gnu_ld
=$with_gnu_ld
10154 # Do we need to explicitly link libc?
10156 case "x$archive_cmds_need_lc" in
10158 # Assume -lc should be added
10159 archive_cmds_need_lc
=yes
10161 if test "$enable_shared" = yes && test "$GCC" = yes; then
10162 case $archive_cmds in
10164 # FIXME: we may have to deal with multi-command sequences.
10167 # Test whether the compiler implicitly links with -lc since on some
10168 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10169 # to ld, don't add -lc before -lgcc.
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10171 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10172 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10173 $as_echo_n "(cached) " >&6
10176 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10179 (eval $ac_compile) 2>&5
10181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10182 test $ac_status = 0; } 2>conftest.err
; then
10185 libobjs
=conftest.
$ac_objext
10187 wl
=$lt_prog_compiler_wl
10188 pic_flag
=$lt_prog_compiler_pic
10194 lt_save_allow_undefined_flag
=$allow_undefined_flag
10195 allow_undefined_flag
=
10196 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10197 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10200 test $ac_status = 0; }
10202 lt_cv_archive_cmds_need_lc
=no
10204 lt_cv_archive_cmds_need_lc
=yes
10206 allow_undefined_flag
=$lt_save_allow_undefined_flag
10208 cat conftest.err
1>&5
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10214 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10215 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10379 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10381 if test "$GCC" = yes; then
10383 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10384 *) lt_awk_arg
="/^libraries:/" ;;
10387 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10388 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10390 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10391 case $lt_search_path_spec in
10393 # if the path contains ";" then we assume it to be the separator
10394 # otherwise default to the standard path separator (i.e. ":") - it is
10395 # assumed that no part of a normal pathname contains ";" but that should
10396 # okay in the real world where ";" in dirpaths is itself problematic.
10397 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10400 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10403 # Ok, now we have the path, separated by spaces, we can step through it
10404 # and add multilib dir if necessary.
10405 lt_tmp_lt_search_path_spec
=
10406 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10407 for lt_sys_path
in $lt_search_path_spec; do
10408 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10409 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10411 test -d "$lt_sys_path" && \
10412 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10415 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10416 BEGIN {RS=" "; FS="/|\n";} {
10419 for (lt_i = NF; lt_i > 0; lt_i--) {
10420 if ($lt_i != "" && $lt_i != ".") {
10421 if ($lt_i == "..") {
10424 if (lt_count == 0) {
10425 lt_foo="/" $lt_i lt_foo;
10432 if (lt_foo != "") { lt_freq[lt_foo]++; }
10433 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10435 # AWK program above erroneously prepends '/' to C:/dos/paths
10438 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10439 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10441 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10443 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10445 library_names_spec
=
10446 libname_spec
='lib$name'
10450 postuninstall_cmds
=
10454 shlibpath_overrides_runpath
=unknown
10456 dynamic_linker
="$host_os ld.so"
10457 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10458 need_lib_prefix
=unknown
10459 hardcode_into_libs
=no
10461 # when you set need_version to no, make sure it does not cause -set_version
10462 # flags to be left without arguments
10463 need_version
=unknown
10468 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10469 shlibpath_var
=LIBPATH
10471 # AIX 3 has no versioning support, so we append a major version to the name.
10472 soname_spec
='${libname}${release}${shared_ext}$major'
10479 hardcode_into_libs
=yes
10480 if test "$host_cpu" = ia64
; then
10481 # AIX 5 supports IA64
10482 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10483 shlibpath_var
=LD_LIBRARY_PATH
10485 # With GCC up to 2.95.x, collect2 would create an import file
10486 # for dependence libraries. The import file would start with
10487 # the line `#! .'. This would cause the generated library to
10488 # depend on `.', always an invalid library. This was fixed in
10489 # development snapshots of GCC prior to 3.0.
10491 aix4 | aix4.
[01] | aix4.
[01].
*)
10492 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10494 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10497 can_build_shared
=no
10501 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10502 # soname into executable. Probably we can add versioning support to
10503 # collect2, so additional links can be useful in future.
10504 if test "$aix_use_runtimelinking" = yes; then
10505 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10506 # instead of lib<name>.a to let people know that these are not
10507 # typical AIX shared libraries.
10508 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10510 # We preserve .a as extension for shared libraries through AIX4.2
10511 # and later when we are not doing run time linking.
10512 library_names_spec
='${libname}${release}.a $libname.a'
10513 soname_spec
='${libname}${release}${shared_ext}$major'
10515 shlibpath_var
=LIBPATH
10522 # Since July 2007 AmigaOS4 officially supports .so libraries.
10523 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10524 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10527 library_names_spec
='$libname.ixlibrary $libname.a'
10528 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10529 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'
10535 library_names_spec
='${libname}${shared_ext}'
10536 dynamic_linker
="$host_os ld.so"
10537 shlibpath_var
=LIBRARY_PATH
10543 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10544 soname_spec
='${libname}${release}${shared_ext}$major'
10545 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10546 shlibpath_var
=LD_LIBRARY_PATH
10547 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10548 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10549 # the default ld.so.conf also contains /usr/contrib/lib and
10550 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10551 # libtool to hard-code these into programs
10554 cygwin
* | mingw
* | pw32
* | cegcc
*)
10555 version_type
=windows
10560 case $GCC,$host_os in
10561 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10562 library_names_spec
='$libname.dll.a'
10563 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10564 postinstall_cmds
='base_file=`basename \${file}`~
10565 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10566 dldir=$destdir/`dirname \$dlpath`~
10567 test -d \$dldir || mkdir -p \$dldir~
10568 $install_prog $dir/$dlname \$dldir/$dlname~
10569 chmod a+x \$dldir/$dlname~
10570 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10571 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10573 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10574 dlpath=$dir/\$dldll~
10576 shlibpath_overrides_runpath
=yes
10580 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10581 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10583 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10586 # MinGW DLLs use traditional 'lib' prefix
10587 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10590 # pw32 DLLs use 'pw' prefix rather than 'lib'
10591 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10597 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10600 dynamic_linker
='Win32 ld.exe'
10601 # FIXME: first we should search . and the directory the executable is in
10605 darwin
* | rhapsody
*)
10606 dynamic_linker
="$host_os dyld"
10607 version_type
=darwin
10610 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10611 soname_spec
='${libname}${release}${major}$shared_ext'
10612 shlibpath_overrides_runpath
=yes
10613 shlibpath_var
=DYLD_LIBRARY_PATH
10614 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10616 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10617 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10624 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10625 soname_spec
='${libname}${release}${shared_ext}$major'
10626 shlibpath_var
=LD_LIBRARY_PATH
10629 freebsd
* | dragonfly
*)
10630 # DragonFly does not have aout. When/if they implement a new
10631 # versioning mechanism, adjust this.
10632 if test -x /usr
/bin
/objformat
; then
10633 objformat
=`/usr/bin/objformat`
10636 freebsd
[23].
*) objformat
=aout
;;
10637 *) objformat
=elf
;;
10640 version_type
=freebsd-
$objformat
10641 case $version_type in
10643 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10648 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10652 shlibpath_var
=LD_LIBRARY_PATH
10655 shlibpath_overrides_runpath
=yes
10657 freebsd3.
[01]* | freebsdelf3.
[01]*)
10658 shlibpath_overrides_runpath
=yes
10659 hardcode_into_libs
=yes
10661 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10662 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10663 shlibpath_overrides_runpath
=no
10664 hardcode_into_libs
=yes
10666 *) # from 4.6 on, and DragonFly
10667 shlibpath_overrides_runpath
=yes
10668 hardcode_into_libs
=yes
10677 dynamic_linker
="$host_os runtime_loader"
10678 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10679 soname_spec
='${libname}${release}${shared_ext}$major'
10680 shlibpath_var
=LIBRARY_PATH
10681 shlibpath_overrides_runpath
=yes
10682 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10683 hardcode_into_libs
=yes
10686 hpux9
* | hpux10
* | hpux11
*)
10687 # Give a soname corresponding to the major version so that dld.sl refuses to
10688 # link against other versions.
10695 hardcode_into_libs
=yes
10696 dynamic_linker
="$host_os dld.so"
10697 shlibpath_var
=LD_LIBRARY_PATH
10698 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10699 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10700 soname_spec
='${libname}${release}${shared_ext}$major'
10701 if test "X$HPUX_IA64_MODE" = X32
; then
10702 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10704 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10706 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10710 hardcode_into_libs
=yes
10711 dynamic_linker
="$host_os dld.sl"
10712 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10713 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10714 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10715 soname_spec
='${libname}${release}${shared_ext}$major'
10716 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10717 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10721 dynamic_linker
="$host_os dld.sl"
10722 shlibpath_var
=SHLIB_PATH
10723 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10724 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10725 soname_spec
='${libname}${release}${shared_ext}$major'
10728 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10729 postinstall_cmds
='chmod 555 $lib'
10730 # or fails outright, so override atomically:
10731 install_override_mode
=555
10738 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10739 soname_spec
='${libname}${release}${shared_ext}$major'
10740 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10741 shlibpath_var
=LD_LIBRARY_PATH
10742 shlibpath_overrides_runpath
=no
10743 hardcode_into_libs
=yes
10746 irix5
* | irix6
* | nonstopux
*)
10748 nonstopux
*) version_type
=nonstopux
;;
10750 if test "$lt_cv_prog_gnu_ld" = yes; then
10758 soname_spec
='${libname}${release}${shared_ext}$major'
10759 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10761 irix5
* | nonstopux
*)
10762 libsuff
= shlibsuff
=
10765 case $LD in # libtool.m4 will add one of these switches to LD
10766 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10767 libsuff
= shlibsuff
= libmagic
=32-bit;;
10768 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10769 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10770 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10771 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10772 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10776 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10777 shlibpath_overrides_runpath
=no
10778 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10779 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10780 hardcode_into_libs
=yes
10783 # No shared lib support for Linux oldld, aout, or coff.
10784 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10788 # This must be Linux ELF.
10790 # uclinux* changes (here and below) have been submitted to the libtool
10791 # project, but have not yet been accepted: they are GCC-local changes
10792 # for the time being. (See
10793 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10794 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
10798 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10799 soname_spec
='${libname}${release}${shared_ext}$major'
10800 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10801 shlibpath_var
=LD_LIBRARY_PATH
10802 shlibpath_overrides_runpath
=no
10804 # Some binutils ld are patched to set DT_RUNPATH
10805 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
10806 $as_echo_n "(cached) " >&6
10808 lt_cv_shlibpath_overrides_runpath
=no
10809 save_LDFLAGS
=$LDFLAGS
10810 save_libdir
=$libdir
10811 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10812 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10814 /* end confdefs.h. */
10824 if ac_fn_c_try_link
"$LINENO"; then :
10825 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10826 lt_cv_shlibpath_overrides_runpath
=yes
10829 rm -f core conftest.err conftest.
$ac_objext \
10830 conftest
$ac_exeext conftest.
$ac_ext
10831 LDFLAGS
=$save_LDFLAGS
10832 libdir
=$save_libdir
10836 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10838 # This implies no fast_install, which is unacceptable.
10839 # Some rework will be needed to allow for fast_install
10840 # before this can be enabled.
10841 hardcode_into_libs
=yes
10843 # Append ld.so.conf contents to the search path
10844 if test -f /etc
/ld.so.conf
; then
10845 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' ' '`
10846 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10849 # We used to test for /lib/ld.so.1 and disable shared libraries on
10850 # powerpc, because MkLinux only supported shared libraries with the
10851 # GNU dynamic linker. Since this was broken with cross compilers,
10852 # most powerpc-linux boxes support dynamic linking these days and
10853 # people can always --disable-shared, the test was removed, and we
10854 # assume the GNU/Linux dynamic linker is in use.
10855 dynamic_linker
='GNU/Linux ld.so'
10862 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10863 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10864 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10865 dynamic_linker
='NetBSD (a.out) ld.so'
10867 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10868 soname_spec
='${libname}${release}${shared_ext}$major'
10869 dynamic_linker
='NetBSD ld.elf_so'
10871 shlibpath_var
=LD_LIBRARY_PATH
10872 shlibpath_overrides_runpath
=yes
10873 hardcode_into_libs
=yes
10878 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10879 shlibpath_var
=LD_LIBRARY_PATH
10880 shlibpath_overrides_runpath
=yes
10887 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10888 soname_spec
='${libname}${release}${shared_ext}$major'
10889 shlibpath_var
=LD_LIBRARY_PATH
10890 shlibpath_overrides_runpath
=no
10891 hardcode_into_libs
=yes
10892 dynamic_linker
='ldqnx.so'
10897 sys_lib_dlsearch_path_spec
="/usr/lib"
10899 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10901 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10902 *) need_version
=no
;;
10904 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10905 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10906 shlibpath_var
=LD_LIBRARY_PATH
10907 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10909 openbsd2.
[89] | openbsd2.
[89].
*)
10910 shlibpath_overrides_runpath
=no
10913 shlibpath_overrides_runpath
=yes
10917 shlibpath_overrides_runpath
=yes
10922 libname_spec
='$name'
10925 library_names_spec
='$libname${shared_ext} $libname.a'
10926 dynamic_linker
='OS/2 ld.exe'
10927 shlibpath_var
=LIBPATH
10930 osf3
* | osf4
* | osf5
*)
10934 soname_spec
='${libname}${release}${shared_ext}$major'
10935 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10936 shlibpath_var
=LD_LIBRARY_PATH
10937 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10938 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10949 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10950 soname_spec
='${libname}${release}${shared_ext}$major'
10951 shlibpath_var
=LD_LIBRARY_PATH
10952 shlibpath_overrides_runpath
=yes
10953 hardcode_into_libs
=yes
10954 # ldd complains unless libraries are executable
10955 postinstall_cmds
='chmod +x $lib'
10960 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10961 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10962 shlibpath_var
=LD_LIBRARY_PATH
10963 shlibpath_overrides_runpath
=yes
10964 if test "$with_gnu_ld" = yes; then
10972 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10973 soname_spec
='${libname}${release}${shared_ext}$major'
10974 shlibpath_var
=LD_LIBRARY_PATH
10975 case $host_vendor in
10977 shlibpath_overrides_runpath
=no
10979 runpath_var
=LD_RUN_PATH
10987 shlibpath_overrides_runpath
=no
10988 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10994 if test -d /usr
/nec
;then
10996 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10997 soname_spec
='$libname${shared_ext}.$major'
10998 shlibpath_var
=LD_LIBRARY_PATH
11002 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11003 version_type
=freebsd-elf
11006 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11007 soname_spec
='${libname}${release}${shared_ext}$major'
11008 shlibpath_var
=LD_LIBRARY_PATH
11009 shlibpath_overrides_runpath
=yes
11010 hardcode_into_libs
=yes
11011 if test "$with_gnu_ld" = yes; then
11012 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11014 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11017 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11021 sys_lib_dlsearch_path_spec
='/usr/lib'
11025 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11029 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11030 shlibpath_var
=LD_LIBRARY_PATH
11031 shlibpath_overrides_runpath
=no
11032 hardcode_into_libs
=yes
11037 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11038 soname_spec
='${libname}${release}${shared_ext}$major'
11039 shlibpath_var
=LD_LIBRARY_PATH
11042 # Shared libraries for VwWorks, >= 7 only at this stage
11043 # and (fpic) still incompatible with "large" code models
11044 # in a few configurations. Only for RTP mode in any case,
11045 # and upon explicit request at configure time.
11048 case ${with_multisubdir}-${enable_shared} in
11055 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11056 soname_spec
='${libname}${release}${shared_ext}$major'
11057 dynamic_linker
="$host_os module_loader"
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11066 $as_echo "$dynamic_linker" >&6; }
11067 test "$dynamic_linker" = no
&& can_build_shared
=no
11069 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11070 if test "$GCC" = yes; then
11071 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11074 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11075 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
11077 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11078 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11173 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11175 if test -n "$hardcode_libdir_flag_spec" ||
11176 test -n "$runpath_var" ||
11177 test "X$hardcode_automatic" = "Xyes" ; then
11179 # We can hardcode non-existent directories.
11180 if test "$hardcode_direct" != no
&&
11181 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11182 # have to relink, otherwise we might link with an installed library
11183 # when we should be linking with a yet-to-be-installed one
11184 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11185 test "$hardcode_minus_L" != no
; then
11186 # Linking always hardcodes the temporary library directory.
11187 hardcode_action
=relink
11189 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11190 hardcode_action
=immediate
11193 # We cannot hardcode anything, or else we can only hardcode existing
11195 hardcode_action
=unsupported
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11198 $as_echo "$hardcode_action" >&6; }
11200 if test "$hardcode_action" = relink ||
11201 test "$inherit_rpath" = yes; then
11202 # Fast installation is not supported
11203 enable_fast_install
=no
11204 elif test "$shlibpath_overrides_runpath" = yes ||
11205 test "$enable_shared" = no
; then
11206 # Fast installation is not necessary
11207 enable_fast_install
=needless
11215 if test "x$enable_dlopen" != xyes
; then
11216 enable_dlopen
=unknown
11217 enable_dlopen_self
=unknown
11218 enable_dlopen_self_static
=unknown
11225 lt_cv_dlopen
="load_add_on"
11227 lt_cv_dlopen_self
=yes
11230 mingw
* | pw32
* | cegcc
*)
11231 lt_cv_dlopen
="LoadLibrary"
11236 lt_cv_dlopen
="dlopen"
11241 # if libdl is installed we need to link against it
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11243 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11244 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11245 $as_echo_n "(cached) " >&6
11247 ac_check_lib_save_LIBS
=$LIBS
11249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11250 /* end confdefs.h. */
11252 /* Override any GCC internal prototype to avoid an error.
11253 Use char because int might match the return type of a GCC
11254 builtin and then its argument prototype would still apply. */
11267 if ac_fn_c_try_link
"$LINENO"; then :
11268 ac_cv_lib_dl_dlopen
=yes
11270 ac_cv_lib_dl_dlopen
=no
11272 rm -f core conftest.err conftest.
$ac_objext \
11273 conftest
$ac_exeext conftest.
$ac_ext
11274 LIBS
=$ac_check_lib_save_LIBS
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11277 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11278 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11279 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11282 lt_cv_dlopen
="dyld"
11284 lt_cv_dlopen_self
=yes
11291 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11292 if test "x$ac_cv_func_shl_load" = xyes
; then :
11293 lt_cv_dlopen
="shl_load"
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11296 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11297 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11298 $as_echo_n "(cached) " >&6
11300 ac_check_lib_save_LIBS
=$LIBS
11302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11303 /* end confdefs.h. */
11305 /* Override any GCC internal prototype to avoid an error.
11306 Use char because int might match the return type of a GCC
11307 builtin and then its argument prototype would still apply. */
11315 return shl_load ();
11320 if ac_fn_c_try_link
"$LINENO"; then :
11321 ac_cv_lib_dld_shl_load
=yes
11323 ac_cv_lib_dld_shl_load
=no
11325 rm -f core conftest.err conftest.
$ac_objext \
11326 conftest
$ac_exeext conftest.
$ac_ext
11327 LIBS
=$ac_check_lib_save_LIBS
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11330 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11331 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11332 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11334 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11335 if test "x$ac_cv_func_dlopen" = xyes
; then :
11336 lt_cv_dlopen
="dlopen"
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11339 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11340 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11341 $as_echo_n "(cached) " >&6
11343 ac_check_lib_save_LIBS
=$LIBS
11345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11346 /* end confdefs.h. */
11348 /* Override any GCC internal prototype to avoid an error.
11349 Use char because int might match the return type of a GCC
11350 builtin and then its argument prototype would still apply. */
11363 if ac_fn_c_try_link
"$LINENO"; then :
11364 ac_cv_lib_dl_dlopen
=yes
11366 ac_cv_lib_dl_dlopen
=no
11368 rm -f core conftest.err conftest.
$ac_objext \
11369 conftest
$ac_exeext conftest.
$ac_ext
11370 LIBS
=$ac_check_lib_save_LIBS
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11373 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11374 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11375 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11378 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11379 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11380 $as_echo_n "(cached) " >&6
11382 ac_check_lib_save_LIBS
=$LIBS
11383 LIBS
="-lsvld $LIBS"
11384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11385 /* end confdefs.h. */
11387 /* Override any GCC internal prototype to avoid an error.
11388 Use char because int might match the return type of a GCC
11389 builtin and then its argument prototype would still apply. */
11402 if ac_fn_c_try_link
"$LINENO"; then :
11403 ac_cv_lib_svld_dlopen
=yes
11405 ac_cv_lib_svld_dlopen
=no
11407 rm -f core conftest.err conftest.
$ac_objext \
11408 conftest
$ac_exeext conftest.
$ac_ext
11409 LIBS
=$ac_check_lib_save_LIBS
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11412 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11413 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11414 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11417 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11418 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11419 $as_echo_n "(cached) " >&6
11421 ac_check_lib_save_LIBS
=$LIBS
11423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11424 /* end confdefs.h. */
11426 /* Override any GCC internal prototype to avoid an error.
11427 Use char because int might match the return type of a GCC
11428 builtin and then its argument prototype would still apply. */
11436 return dld_link ();
11441 if ac_fn_c_try_link
"$LINENO"; then :
11442 ac_cv_lib_dld_dld_link
=yes
11444 ac_cv_lib_dld_dld_link
=no
11446 rm -f core conftest.err conftest.
$ac_objext \
11447 conftest
$ac_exeext conftest.
$ac_ext
11448 LIBS
=$ac_check_lib_save_LIBS
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11451 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11452 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11453 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11474 if test "x$lt_cv_dlopen" != xno
; then
11480 case $lt_cv_dlopen in
11482 save_CPPFLAGS
="$CPPFLAGS"
11483 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11485 save_LDFLAGS
="$LDFLAGS"
11486 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11489 LIBS
="$lt_cv_dlopen_libs $LIBS"
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11492 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11493 if ${lt_cv_dlopen_self+:} false
; then :
11494 $as_echo_n "(cached) " >&6
11496 if test "$cross_compiling" = yes; then :
11497 lt_cv_dlopen_self
=cross
11499 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11500 lt_status
=$lt_dlunknown
11501 cat > conftest.
$ac_ext <<_LT_EOF
11502 #line 11502 "configure"
11503 #include "confdefs.h"
11512 # define LT_DLGLOBAL RTLD_GLOBAL
11515 # define LT_DLGLOBAL DL_GLOBAL
11517 # define LT_DLGLOBAL 0
11521 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11522 find out it does not work in some platform. */
11523 #ifndef LT_DLLAZY_OR_NOW
11525 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11528 # define LT_DLLAZY_OR_NOW DL_LAZY
11531 # define LT_DLLAZY_OR_NOW RTLD_NOW
11534 # define LT_DLLAZY_OR_NOW DL_NOW
11536 # define LT_DLLAZY_OR_NOW 0
11543 /* When -fvisbility=hidden is used, assume the code has been annotated
11544 correspondingly for the symbols needed. */
11545 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11546 void fnord () __attribute__((visibility("default")));
11549 void fnord () { int i=42; }
11552 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11553 int status = $lt_dlunknown;
11557 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11560 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11561 else puts (dlerror ());
11563 /* dlclose (self); */
11571 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11572 (eval $ac_link) 2>&5
11574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11575 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11576 (.
/conftest
; exit; ) >&5 2>/dev
/null
11578 case x
$lt_status in
11579 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11580 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11581 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11584 # compilation failed
11585 lt_cv_dlopen_self
=no
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11593 $as_echo "$lt_cv_dlopen_self" >&6; }
11595 if test "x$lt_cv_dlopen_self" = xyes
; then
11596 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11598 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11599 if ${lt_cv_dlopen_self_static+:} false
; then :
11600 $as_echo_n "(cached) " >&6
11602 if test "$cross_compiling" = yes; then :
11603 lt_cv_dlopen_self_static
=cross
11605 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11606 lt_status
=$lt_dlunknown
11607 cat > conftest.
$ac_ext <<_LT_EOF
11608 #line 11608 "configure"
11609 #include "confdefs.h"
11618 # define LT_DLGLOBAL RTLD_GLOBAL
11621 # define LT_DLGLOBAL DL_GLOBAL
11623 # define LT_DLGLOBAL 0
11627 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11628 find out it does not work in some platform. */
11629 #ifndef LT_DLLAZY_OR_NOW
11631 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11634 # define LT_DLLAZY_OR_NOW DL_LAZY
11637 # define LT_DLLAZY_OR_NOW RTLD_NOW
11640 # define LT_DLLAZY_OR_NOW DL_NOW
11642 # define LT_DLLAZY_OR_NOW 0
11649 /* When -fvisbility=hidden is used, assume the code has been annotated
11650 correspondingly for the symbols needed. */
11651 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11652 void fnord () __attribute__((visibility("default")));
11655 void fnord () { int i=42; }
11658 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11659 int status = $lt_dlunknown;
11663 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11666 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11667 else puts (dlerror ());
11669 /* dlclose (self); */
11677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11678 (eval $ac_link) 2>&5
11680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11681 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11682 (.
/conftest
; exit; ) >&5 2>/dev
/null
11684 case x
$lt_status in
11685 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11686 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11687 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11690 # compilation failed
11691 lt_cv_dlopen_self_static
=no
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11699 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11702 CPPFLAGS
="$save_CPPFLAGS"
11703 LDFLAGS
="$save_LDFLAGS"
11708 case $lt_cv_dlopen_self in
11709 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11710 *) enable_dlopen_self
=unknown
;;
11713 case $lt_cv_dlopen_self_static in
11714 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11715 *) enable_dlopen_self_static
=unknown
;;
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11738 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11739 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11740 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11741 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11743 $as_echo "yes" >&6; }
11745 # FIXME - insert some real tests, host_os isn't really good enough
11748 if test -n "$STRIP" ; then
11749 striplib
="$STRIP -x"
11750 old_striplib
="$STRIP -S"
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11752 $as_echo "yes" >&6; }
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11755 $as_echo "no" >&6; }
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11760 $as_echo "no" >&6; }
11776 # Report which library types will actually be built
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11778 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11780 $as_echo "$can_build_shared" >&6; }
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11783 $as_echo_n "checking whether to build shared libraries... " >&6; }
11784 test "$can_build_shared" = "no" && enable_shared
=no
11786 # On AIX, shared libraries and static libraries use the same namespace, and
11787 # are all built from PIC.
11790 test "$enable_shared" = yes && enable_static
=no
11791 if test -n "$RANLIB"; then
11792 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11793 postinstall_cmds
='$RANLIB $lib'
11798 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11799 test "$enable_shared" = yes && enable_static
=no
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11804 $as_echo "$enable_shared" >&6; }
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11807 $as_echo_n "checking whether to build static libraries... " >&6; }
11808 # Make sure either enable_shared or enable_static is yes.
11809 test "$enable_shared" = yes || enable_static
=yes
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11811 $as_echo "$enable_static" >&6; }
11818 ac_cpp
='$CPP $CPPFLAGS'
11819 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11820 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11821 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11825 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11826 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11827 (test "X$CXX" != "Xg++"))) ; then
11829 ac_cpp
='$CXXCPP $CPPFLAGS'
11830 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11831 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11832 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11834 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11835 if test -z "$CXXCPP"; then
11836 if ${ac_cv_prog_CXXCPP+:} false
; then :
11837 $as_echo_n "(cached) " >&6
11839 # Double quotes because CXXCPP needs to be expanded
11840 for CXXCPP
in "$CXX -E" "/lib/cpp"
11842 ac_preproc_ok
=false
11843 for ac_cxx_preproc_warn_flag
in '' yes
11845 # Use a header file that comes with gcc, so configuring glibc
11846 # with a fresh cross-compiler works.
11847 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11848 # <limits.h> exists even on freestanding compilers.
11849 # On the NeXT, cc -E runs the code through the compiler's parser,
11850 # not just through cpp. "Syntax error" is here to catch this case.
11851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11852 /* end confdefs.h. */
11854 # include <limits.h>
11856 # include <assert.h>
11860 if ac_fn_cxx_try_cpp
"$LINENO"; then :
11863 # Broken: fails on valid input.
11866 rm -f conftest.err conftest.i conftest.
$ac_ext
11868 # OK, works on sane cases. Now check whether nonexistent headers
11869 # can be detected and how.
11870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11871 /* end confdefs.h. */
11872 #include <ac_nonexistent.h>
11874 if ac_fn_cxx_try_cpp
"$LINENO"; then :
11875 # Broken: success on invalid input.
11878 # Passes both tests.
11882 rm -f conftest.err conftest.i conftest.
$ac_ext
11885 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11886 rm -f conftest.i conftest.err conftest.
$ac_ext
11887 if $ac_preproc_ok; then :
11892 ac_cv_prog_CXXCPP
=$CXXCPP
11895 CXXCPP
=$ac_cv_prog_CXXCPP
11897 ac_cv_prog_CXXCPP
=$CXXCPP
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11900 $as_echo "$CXXCPP" >&6; }
11901 ac_preproc_ok
=false
11902 for ac_cxx_preproc_warn_flag
in '' yes
11904 # Use a header file that comes with gcc, so configuring glibc
11905 # with a fresh cross-compiler works.
11906 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11907 # <limits.h> exists even on freestanding compilers.
11908 # On the NeXT, cc -E runs the code through the compiler's parser,
11909 # not just through cpp. "Syntax error" is here to catch this case.
11910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11911 /* end confdefs.h. */
11913 # include <limits.h>
11915 # include <assert.h>
11919 if ac_fn_cxx_try_cpp
"$LINENO"; then :
11922 # Broken: fails on valid input.
11925 rm -f conftest.err conftest.i conftest.
$ac_ext
11927 # OK, works on sane cases. Now check whether nonexistent headers
11928 # can be detected and how.
11929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11930 /* end confdefs.h. */
11931 #include <ac_nonexistent.h>
11933 if ac_fn_cxx_try_cpp
"$LINENO"; then :
11934 # Broken: success on invalid input.
11937 # Passes both tests.
11941 rm -f conftest.err conftest.i conftest.
$ac_ext
11944 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11945 rm -f conftest.i conftest.err conftest.
$ac_ext
11946 if $ac_preproc_ok; then :
11949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11951 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
11952 See \`config.log' for more details" "$LINENO" 5; }
11956 ac_cpp
='$CPP $CPPFLAGS'
11957 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11958 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11959 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11962 _lt_caught_CXX_error
=yes
11966 ac_cpp
='$CXXCPP $CPPFLAGS'
11967 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11968 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11969 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
11971 archive_cmds_need_lc_CXX
=no
11972 allow_undefined_flag_CXX
=
11973 always_export_symbols_CXX
=no
11974 archive_expsym_cmds_CXX
=
11975 compiler_needs_object_CXX
=no
11976 export_dynamic_flag_spec_CXX
=
11977 hardcode_direct_CXX
=no
11978 hardcode_direct_absolute_CXX
=no
11979 hardcode_libdir_flag_spec_CXX
=
11980 hardcode_libdir_flag_spec_ld_CXX
=
11981 hardcode_libdir_separator_CXX
=
11982 hardcode_minus_L_CXX
=no
11983 hardcode_shlibpath_var_CXX
=unsupported
11984 hardcode_automatic_CXX
=no
11985 inherit_rpath_CXX
=no
11987 module_expsym_cmds_CXX
=
11988 link_all_deplibs_CXX
=unknown
11989 old_archive_cmds_CXX
=$old_archive_cmds
11990 reload_flag_CXX
=$reload_flag
11991 reload_cmds_CXX
=$reload_cmds
11992 no_undefined_flag_CXX
=
11993 whole_archive_flag_spec_CXX
=
11994 enable_shared_with_static_runtimes_CXX
=no
11996 # Source file extension for C++ test sources.
11999 # Object file extension for compiled C++ test sources.
12003 # No sense in running all these tests if we already determined that
12004 # the CXX compiler isn't working. Some variables (like enable_shared)
12005 # are currently assumed to apply to all compilers on this platform,
12006 # and will be corrupted by setting them based on a non-working compiler.
12007 if test "$_lt_caught_CXX_error" != yes; then
12008 # Code to be used in simple compile tests
12009 lt_simple_compile_test_code
="int some_variable = 0;"
12011 # Code to be used in simple link tests
12012 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
12014 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12021 # If no C compiler was specified, use CC.
12024 # If no C compiler flags were specified, use CFLAGS.
12025 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
12027 # Allow CC to be a program name with arguments.
12031 # save warnings/boilerplate of simple test code
12032 ac_outfile
=conftest.
$ac_objext
12033 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
12034 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12035 _lt_compiler_boilerplate
=`cat conftest.err`
12038 ac_outfile
=conftest.
$ac_objext
12039 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
12040 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12041 _lt_linker_boilerplate
=`cat conftest.err`
12045 # Allow CC to be a program name with arguments.
12050 lt_save_with_gnu_ld
=$with_gnu_ld
12051 lt_save_path_LD
=$lt_cv_path_LD
12052 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12053 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
12055 $as_unset lt_cv_prog_gnu_ld
12057 if test -n "${lt_cv_path_LDCXX+set}"; then
12058 lt_cv_path_LD
=$lt_cv_path_LDCXX
12060 $as_unset lt_cv_path_LD
12062 test -z "${LDCXX+set}" || LD
=$LDCXX
12066 for cc_temp
in $compiler""; do
12068 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
12069 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
12074 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12077 if test -n "$compiler"; then
12078 # We don't want -fno-exception when compiling C++ code, so set the
12079 # no_builtin_flag separately
12080 if test "$GXX" = yes; then
12081 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
12083 lt_prog_compiler_no_builtin_flag_CXX
=
12086 if test "$GXX" = yes; then
12087 # Set up default GNU C++ configuration
12091 # Check whether --with-gnu-ld was given.
12092 if test "${with_gnu_ld+set}" = set; then :
12093 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12099 if test "$GCC" = yes; then
12100 # Check if gcc -print-prog-name=ld gives a path.
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12102 $as_echo_n "checking for ld used by $CC... " >&6; }
12105 # gcc leaves a trailing carriage return which upsets mingw
12106 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12108 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12111 # Accept absolute paths.
12113 re_direlt
='/[^/][^/]*/\.\./'
12114 # Canonicalize the pathname of ld
12115 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12116 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12117 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12119 test -z "$LD" && LD
="$ac_prog"
12122 # If it fails, then pretend we aren't using GCC.
12126 # If it is relative, then search for the first ld in PATH.
12127 with_gnu_ld
=unknown
12130 elif test "$with_gnu_ld" = yes; then
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12132 $as_echo_n "checking for GNU ld... " >&6; }
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12135 $as_echo_n "checking for non-GNU ld... " >&6; }
12137 if ${lt_cv_path_LD+:} false
; then :
12138 $as_echo_n "(cached) " >&6
12140 if test -z "$LD"; then
12141 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12142 for ac_dir
in $PATH; do
12144 test -z "$ac_dir" && ac_dir
=.
12145 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12146 lt_cv_path_LD
="$ac_dir/$ac_prog"
12147 # Check to see if the program is GNU ld. I'd rather use --version,
12148 # but apparently some variants of GNU ld only accept -v.
12149 # Break only if it was the GNU/non-GNU ld that we prefer.
12150 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12151 *GNU
* |
*'with BFD'*)
12152 test "$with_gnu_ld" != no
&& break
12155 test "$with_gnu_ld" != yes && break
12162 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12166 LD
="$lt_cv_path_LD"
12167 if test -n "$LD"; then
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12169 $as_echo "$LD" >&6; }
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12172 $as_echo "no" >&6; }
12174 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12176 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12177 if ${lt_cv_prog_gnu_ld+:} false
; then :
12178 $as_echo_n "(cached) " >&6
12180 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12181 case `$LD -v 2>&1 </dev/null` in
12182 *GNU
* |
*'with BFD'*)
12183 lt_cv_prog_gnu_ld
=yes
12186 lt_cv_prog_gnu_ld
=no
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12191 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12192 with_gnu_ld
=$lt_cv_prog_gnu_ld
12200 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12201 # archiving commands below assume that GNU ld is being used.
12202 if test "$with_gnu_ld" = yes; then
12203 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12204 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'
12206 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12207 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12209 # If archive_cmds runs LD, not CC, wlarc should be empty
12210 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12211 # investigate it a little bit more. (MM)
12214 # ancient GNU ld didn't support --whole-archive et. al.
12215 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12216 $GREP 'no-whole-archive' > /dev
/null
; then
12217 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12219 whole_archive_flag_spec_CXX
=
12225 # A generic and very simple default shared library creation
12226 # command for GNU C++ for the case where it uses the native
12227 # linker, instead of GNU ld. If possible, this setting should
12228 # overridden to take advantage of the native linker features on
12229 # the platform it is being used on.
12230 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12233 # Commands to make compiler produce verbose output that lists
12234 # what "hidden" libraries, object files and flags are used when
12235 # linking a shared library.
12236 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12244 # PORTME: fill in a description of your system's C++ link characteristics
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12246 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12250 # FIXME: insert proper C++ library support
12254 if test "$host_cpu" = ia64
; then
12255 # On IA64, the linker does run time linking by default, so we don't
12256 # have to do anything special.
12257 aix_use_runtimelinking
=no
12258 exp_sym_flag
='-Bexport'
12261 aix_use_runtimelinking
=no
12263 # Test if we are trying to use run time linking or normal
12264 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12265 # need to do runtime linking.
12266 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
12267 for ld_flag
in $LDFLAGS; do
12270 aix_use_runtimelinking
=yes
12278 exp_sym_flag
='-bexport'
12279 no_entry_flag
='-bnoentry'
12282 # When large executables or shared objects are built, AIX ld can
12283 # have problems creating the table of contents. If linking a library
12284 # or program results in "error TOC overflow" add -mminimal-toc to
12285 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12286 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12288 archive_cmds_CXX
=''
12289 hardcode_direct_CXX
=yes
12290 hardcode_direct_absolute_CXX
=yes
12291 hardcode_libdir_separator_CXX
=':'
12292 link_all_deplibs_CXX
=yes
12293 file_list_spec_CXX
='${wl}-f,'
12295 if test "$GXX" = yes; then
12296 case $host_os in aix4.
[012]|aix4.
[012].
*)
12297 # We only want to do this on AIX 4.2 and lower, the check
12298 # below for broken collect2 doesn't work under 4.3+
12299 collect2name
=`${CC} -print-prog-name=collect2`
12300 if test -f "$collect2name" &&
12301 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
12303 # We have reworked collect2
12306 # We have old collect2
12307 hardcode_direct_CXX
=unsupported
12308 # It fails to find uninstalled libraries when the uninstalled
12309 # path is not listed in the libpath. Setting hardcode_minus_L
12310 # to unsupported forces relinking
12311 hardcode_minus_L_CXX
=yes
12312 hardcode_libdir_flag_spec_CXX
='-L$libdir'
12313 hardcode_libdir_separator_CXX
=
12316 shared_flag
='-shared'
12317 if test "$aix_use_runtimelinking" = yes; then
12318 shared_flag
="$shared_flag "'${wl}-G'
12322 if test "$host_cpu" = ia64
; then
12323 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12324 # chokes on -Wl,-G. The following line is correct:
12327 if test "$aix_use_runtimelinking" = yes; then
12328 shared_flag
='${wl}-G'
12330 shared_flag
='${wl}-bM:SRE'
12335 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
12336 # It seems that -bexpall does not export symbols beginning with
12337 # underscore (_), so it is better to generate a list of symbols to
12339 always_export_symbols_CXX
=yes
12340 if test "$aix_use_runtimelinking" = yes; then
12341 # Warning - without using the other runtime loading flags (-brtl),
12342 # -berok will link without error, but may produce a broken library.
12343 allow_undefined_flag_CXX
='-berok'
12344 # Determine the default libpath from the value encoded in an empty
12346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12347 /* end confdefs.h. */
12357 if ac_fn_cxx_try_link
"$LINENO"; then :
12359 lt_aix_libpath_sed
='
12360 /Import File Strings/,/^$/ {
12366 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12367 # Check for a 64-bit object if we didn't find anything.
12368 if test -z "$aix_libpath"; then
12369 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12372 rm -f core conftest.err conftest.
$ac_objext \
12373 conftest
$ac_exeext conftest.
$ac_ext
12374 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
12376 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
12378 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"
12380 if test "$host_cpu" = ia64
; then
12381 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
12382 allow_undefined_flag_CXX
="-z nodefs"
12383 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"
12385 # Determine the default libpath from the value encoded in an
12386 # empty executable.
12387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12388 /* end confdefs.h. */
12398 if ac_fn_cxx_try_link
"$LINENO"; then :
12400 lt_aix_libpath_sed
='
12401 /Import File Strings/,/^$/ {
12407 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12408 # Check for a 64-bit object if we didn't find anything.
12409 if test -z "$aix_libpath"; then
12410 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12413 rm -f core conftest.err conftest.
$ac_objext \
12414 conftest
$ac_exeext conftest.
$ac_ext
12415 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
12417 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
12418 # Warning - without using the other run time loading flags,
12419 # -berok will link without error, but may produce a broken library.
12420 no_undefined_flag_CXX
=' ${wl}-bernotok'
12421 allow_undefined_flag_CXX
=' ${wl}-berok'
12422 if test "$with_gnu_ld" = yes; then
12423 # We only use this code for GNU lds that support --whole-archive.
12424 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12426 # Exported symbols can be pulled into shared objects from archives
12427 whole_archive_flag_spec_CXX
='$convenience'
12429 archive_cmds_need_lc_CXX
=yes
12430 # This is similar to how AIX traditionally builds its shared
12432 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'
12438 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12439 allow_undefined_flag_CXX
=unsupported
12440 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12441 # support --undefined. This deserves some investigation. FIXME
12442 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12449 case $cc_basename in
12451 # FIXME: insert proper C++ library support
12457 cygwin
* | mingw
* | pw32
* | cegcc
*)
12458 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12459 # as there is no search path for DLLs.
12460 hardcode_libdir_flag_spec_CXX
='-L$libdir'
12461 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
12462 allow_undefined_flag_CXX
=unsupported
12463 always_export_symbols_CXX
=no
12464 enable_shared_with_static_runtimes_CXX
=yes
12466 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
12467 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'
12468 # If the export-symbols file already is a .def file (1st line
12469 # is EXPORTS), use it as is; otherwise, prepend...
12470 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12471 cp $export_symbols $output_objdir/$soname.def;
12473 echo EXPORTS > $output_objdir/$soname.def;
12474 cat $export_symbols >> $output_objdir/$soname.def;
12476 $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'
12481 darwin
* | rhapsody
*)
12484 archive_cmds_need_lc_CXX
=no
12485 hardcode_direct_CXX
=no
12486 hardcode_automatic_CXX
=yes
12487 hardcode_shlibpath_var_CXX
=unsupported
12488 if test "$lt_cv_ld_force_load" = "yes"; then
12489 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\"`'
12491 whole_archive_flag_spec_CXX
=''
12493 link_all_deplibs_CXX
=yes
12494 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
12495 case $cc_basename in
12496 ifort
*) _lt_dar_can_shared
=yes ;;
12497 *) _lt_dar_can_shared
=$GCC ;;
12499 if test "$_lt_dar_can_shared" = "yes"; then
12500 output_verbose_link_cmd
=func_echo_all
12501 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}"
12502 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12503 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}"
12504 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}"
12505 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12506 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}"
12507 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}"
12517 case $cc_basename in
12519 # FIXME: insert proper C++ library support
12523 # Green Hills C++ Compiler
12524 # FIXME: insert proper C++ library support
12528 # FIXME: insert proper C++ library support
12535 # C++ shared libraries reported to be fairly broken before
12541 archive_cmds_need_lc_CXX
=no
12544 freebsd
* | dragonfly
*)
12545 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12554 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12555 link_all_deplibs_CXX
=yes
12559 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
12560 hardcode_libdir_separator_CXX
=:
12561 export_dynamic_flag_spec_CXX
='${wl}-E'
12562 hardcode_direct_CXX
=yes
12563 hardcode_minus_L_CXX
=yes # Not in the search PATH,
12564 # but as the default
12565 # location of the library.
12567 case $cc_basename in
12569 # FIXME: insert proper C++ library support
12573 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'
12574 # Commands to make compiler produce verbose output that lists
12575 # what "hidden" libraries, object files and flags are used when
12576 # linking a shared library.
12578 # There doesn't appear to be a way to prevent this compiler from
12579 # explicitly linking system object files so we need to strip them
12580 # from the output so that they don't get included in the library
12582 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"'
12585 if test "$GXX" = yes; then
12586 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'
12588 # FIXME: insert proper C++ library support
12596 if test $with_gnu_ld = no
; then
12597 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
12598 hardcode_libdir_separator_CXX
=:
12604 export_dynamic_flag_spec_CXX
='${wl}-E'
12610 hardcode_direct_CXX
=no
12611 hardcode_shlibpath_var_CXX
=no
12614 hardcode_direct_CXX
=yes
12615 hardcode_direct_absolute_CXX
=yes
12616 hardcode_minus_L_CXX
=yes # Not in the search PATH,
12617 # but as the default
12618 # location of the library.
12622 case $cc_basename in
12624 # FIXME: insert proper C++ library support
12630 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12633 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12636 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12639 # Commands to make compiler produce verbose output that lists
12640 # what "hidden" libraries, object files and flags are used when
12641 # linking a shared library.
12643 # There doesn't appear to be a way to prevent this compiler from
12644 # explicitly linking system object files so we need to strip them
12645 # from the output so that they don't get included in the library
12647 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"'
12650 if test "$GXX" = yes; then
12651 if test $with_gnu_ld = no
; then
12654 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12657 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12660 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'
12665 # FIXME: insert proper C++ library support
12673 hardcode_direct_CXX
=no
12674 hardcode_shlibpath_var_CXX
=no
12675 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12676 export_dynamic_flag_spec_CXX
='${wl}-E'
12677 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12678 # Instead, shared libraries are loaded at an image base (0x10000000 by
12679 # default) and relocated if they conflict, which is a slow very memory
12680 # consuming and fragmenting process. To avoid this, we pick a random,
12681 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12682 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12683 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'
12684 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'
12687 case $cc_basename in
12690 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'
12692 # Archives containing C++ object files must be created using
12693 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12694 # necessary to make sure instantiated templates are included
12696 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
12699 if test "$GXX" = yes; then
12700 if test "$with_gnu_ld" = no
; then
12701 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'
12703 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'
12706 link_all_deplibs_CXX
=yes
12709 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12710 hardcode_libdir_separator_CXX
=:
12711 inherit_rpath_CXX
=yes
12714 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12715 case $cc_basename in
12717 # Kuck and Associates, Inc. (KAI) C++ Compiler
12719 # KCC will only create a shared library if the output file
12720 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12721 # to its proper name (with version) after linking.
12722 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'
12723 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'
12724 # Commands to make compiler produce verbose output that lists
12725 # what "hidden" libraries, object files and flags are used when
12726 # linking a shared library.
12728 # There doesn't appear to be a way to prevent this compiler from
12729 # explicitly linking system object files so we need to strip them
12730 # from the output so that they don't get included in the library
12732 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"'
12734 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12735 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12737 # Archives containing C++ object files must be created using
12738 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12739 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
12744 # version 8.0 and above of icpc choke on multiply defined symbols
12745 # if we add $predep_objects and $postdep_objects, however 7.1 and
12746 # earlier do not add the objects themselves.
12747 case `$CC -V 2>&1` in
12749 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12750 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'
12752 *) # Version 8.0 or newer
12755 ia64
*) tmp_idyn
=' -i_dynamic';;
12757 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12758 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'
12761 archive_cmds_need_lc_CXX
=no
12762 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12763 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12764 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12767 # Portland Group C++ compiler
12769 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
12770 prelink_cmds_CXX
='tpldir=Template.dir~
12772 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12773 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12774 old_archive_cmds_CXX
='tpldir=Template.dir~
12776 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12777 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12779 archive_cmds_CXX
='tpldir=Template.dir~
12781 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12782 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12783 archive_expsym_cmds_CXX
='tpldir=Template.dir~
12785 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12786 $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'
12788 *) # Version 6 and above use weak symbols
12789 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12790 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'
12794 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
12795 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12796 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'
12800 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12801 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'
12803 runpath_var
=LD_RUN_PATH
12804 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
12805 hardcode_libdir_separator_CXX
=:
12807 # Commands to make compiler produce verbose output that lists
12808 # what "hidden" libraries, object files and flags are used when
12809 # linking a shared library.
12811 # There doesn't appear to be a way to prevent this compiler from
12812 # explicitly linking system object files so we need to strip them
12813 # from the output so that they don't get included in the library
12815 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'
12817 xl
* | mpixl
* | bgxl
*)
12818 # IBM XL 8.0 on PPC, with GNU ld
12819 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12820 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12821 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12822 if test "x$supports_anon_versioning" = xyes
; then
12823 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
12824 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12825 echo "local: *; };" >> $output_objdir/$libname.ver~
12826 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12830 case `$CC -V 2>&1 | sed 5q` in
12833 no_undefined_flag_CXX
=' -zdefs'
12834 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12835 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'
12836 hardcode_libdir_flag_spec_CXX
='-R$libdir'
12837 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'
12838 compiler_needs_object_CXX
=yes
12840 # Not sure whether something based on
12841 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12843 output_verbose_link_cmd
='func_echo_all'
12845 # Archives containing C++ object files must be created using
12846 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12847 # necessary to make sure instantiated templates are included
12849 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
12857 # FIXME: insert proper C++ library support
12862 # FIXME: insert proper C++ library support
12867 case $cc_basename in
12869 # FIXME: insert proper C++ library support
12873 # FIXME: insert proper C++ library support
12880 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
12881 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12883 hardcode_libdir_flag_spec_CXX
='-R$libdir'
12884 hardcode_direct_CXX
=yes
12885 hardcode_shlibpath_var_CXX
=no
12887 # Workaround some broken pre-1.5 toolchains
12888 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12896 # C++ shared libraries are fairly broken
12901 if test -f /usr
/libexec
/ld.so
; then
12902 hardcode_direct_CXX
=yes
12903 hardcode_shlibpath_var_CXX
=no
12904 hardcode_direct_absolute_CXX
=yes
12905 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12906 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12907 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12908 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12909 export_dynamic_flag_spec_CXX
='${wl}-E'
12910 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12912 output_verbose_link_cmd
=func_echo_all
12918 osf3
* | osf4
* | osf5
*)
12919 case $cc_basename in
12921 # Kuck and Associates, Inc. (KAI) C++ Compiler
12923 # KCC will only create a shared library if the output file
12924 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12925 # to its proper name (with version) after linking.
12926 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'
12928 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12929 hardcode_libdir_separator_CXX
=:
12931 # Archives containing C++ object files must be created using
12932 # the KAI C++ compiler.
12934 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
12935 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
12939 # Rational C++ 2.4.1
12940 # FIXME: insert proper C++ library support
12946 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
12947 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'
12948 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12951 allow_undefined_flag_CXX
=' -expect_unresolved \*'
12952 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'
12953 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12954 echo "-hidden">> $lib.exp~
12955 $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~
12957 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
12961 hardcode_libdir_separator_CXX
=:
12963 # Commands to make compiler produce verbose output that lists
12964 # what "hidden" libraries, object files and flags are used when
12965 # linking a shared library.
12967 # There doesn't appear to be a way to prevent this compiler from
12968 # explicitly linking system object files so we need to strip them
12969 # from the output so that they don't get included in the library
12971 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"'
12974 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
12975 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
12978 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'
12981 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'
12985 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12986 hardcode_libdir_separator_CXX
=:
12988 # Commands to make compiler produce verbose output that lists
12989 # what "hidden" libraries, object files and flags are used when
12990 # linking a shared library.
12991 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12994 # FIXME: insert proper C++ library support
13002 # FIXME: insert proper C++ library support
13007 case $cc_basename in
13010 # FIXME: insert proper C++ library support
13015 # FIXME: insert proper C++ library support
13019 # FIXME: insert proper C++ library support
13026 case $cc_basename in
13028 # Sun C++ 4.2, 5.x and Centerline C++
13029 archive_cmds_need_lc_CXX
=yes
13030 no_undefined_flag_CXX
=' -zdefs'
13031 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13032 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13033 $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'
13035 hardcode_libdir_flag_spec_CXX
='-R$libdir'
13036 hardcode_shlibpath_var_CXX
=no
13038 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13040 # The compiler driver will combine and reorder linker options,
13041 # but understands `-z linker_flag'.
13042 # Supported since Solaris 2.6 (maybe 2.5.1?)
13043 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
13046 link_all_deplibs_CXX
=yes
13048 output_verbose_link_cmd
='func_echo_all'
13050 # Archives containing C++ object files must be created using
13051 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13052 # necessary to make sure instantiated templates are included
13054 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
13057 # Green Hills C++ Compiler
13058 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13060 # The C++ compiler must be used to create the archive.
13061 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13064 # GNU C++ compiler with Solaris linker
13065 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
13066 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
13067 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
13068 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13069 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13070 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13072 # Commands to make compiler produce verbose output that lists
13073 # what "hidden" libraries, object files and flags are used when
13074 # linking a shared library.
13075 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13077 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13079 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13080 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13081 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13083 # Commands to make compiler produce verbose output that lists
13084 # what "hidden" libraries, object files and flags are used when
13085 # linking a shared library.
13086 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13089 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
13091 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13093 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13101 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13102 no_undefined_flag_CXX
='${wl}-z,text'
13103 archive_cmds_need_lc_CXX
=no
13104 hardcode_shlibpath_var_CXX
=no
13105 runpath_var
='LD_RUN_PATH'
13107 case $cc_basename in
13109 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13110 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13113 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13114 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13119 sysv5
* | sco3.2v5
* | sco5v6
*)
13120 # Note: We can NOT use -z defs as we might desire, because we do not
13121 # link with -lc, and that would cause any symbols used from libc to
13122 # always be unresolved, which means just about no library would
13123 # ever link correctly. If we're not using GNU ld we use -z text
13124 # though, which does catch some bad symbols but isn't as heavy-handed
13126 no_undefined_flag_CXX
='${wl}-z,text'
13127 allow_undefined_flag_CXX
='${wl}-z,nodefs'
13128 archive_cmds_need_lc_CXX
=no
13129 hardcode_shlibpath_var_CXX
=no
13130 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
13131 hardcode_libdir_separator_CXX
=':'
13132 link_all_deplibs_CXX
=yes
13133 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
13134 runpath_var
='LD_RUN_PATH'
13136 case $cc_basename in
13138 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13139 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13140 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
13141 '"$old_archive_cmds_CXX"
13142 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
13143 '"$reload_cmds_CXX"
13146 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13147 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13153 case $cc_basename in
13155 # NonStop-UX NCC 3.20
13156 # FIXME: insert proper C++ library support
13160 # FIXME: insert proper C++ library support
13167 # For VxWorks ports, we assume the use of a GNU linker with
13168 # standard elf conventions.
13173 # FIXME: insert proper C++ library support
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13179 $as_echo "$ld_shlibs_CXX" >&6; }
13180 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
13186 ## There is no encapsulation within the following macros, do not change
13187 ## the running order or otherwise move them around unless you know exactly
13188 ## what you are doing...
13189 # Dependencies to place before and after the object being linked:
13190 predep_objects_CXX
=
13191 postdep_objects_CXX
=
13194 compiler_lib_search_path_CXX
=
13196 cat > conftest.
$ac_ext <<_LT_EOF
13200 Foo (void) { a = 0; }
13206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13207 (eval $ac_compile) 2>&5
13209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13210 test $ac_status = 0; }; then
13211 # Parse the compiler output and extract the necessary
13212 # objects, libraries and library flags.
13214 # Sentinel used to keep track of whether or not we are before
13215 # the conftest object file.
13216 pre_test_object_deps_done
=no
13218 for p
in `eval "$output_verbose_link_cmd"`; do
13222 # Some compilers place space between "-{L,R}" and the path.
13223 # Remove the space.
13224 if test $p = "-L" ||
13225 test $p = "-R"; then
13232 if test "$pre_test_object_deps_done" = no
; then
13235 # Internal compiler library paths should come after those
13236 # provided the user. The postdeps already come after the
13237 # user supplied libs so there is no need to process them.
13238 if test -z "$compiler_lib_search_path_CXX"; then
13239 compiler_lib_search_path_CXX
="${prev}${p}"
13241 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
13244 # The "-l" case would never come before the object being
13245 # linked, so don't bother handling this case.
13248 if test -z "$postdeps_CXX"; then
13249 postdeps_CXX
="${prev}${p}"
13251 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
13257 # This assumes that the test object file only shows up
13258 # once in the compiler output.
13259 if test "$p" = "conftest.$objext"; then
13260 pre_test_object_deps_done
=yes
13264 if test "$pre_test_object_deps_done" = no
; then
13265 if test -z "$predep_objects_CXX"; then
13266 predep_objects_CXX
="$p"
13268 predep_objects_CXX
="$predep_objects_CXX $p"
13271 if test -z "$postdep_objects_CXX"; then
13272 postdep_objects_CXX
="$p"
13274 postdep_objects_CXX
="$postdep_objects_CXX $p"
13279 *) ;; # Ignore the rest.
13287 echo "libtool.m4: error: problem compiling CXX test program"
13290 $RM -f confest.
$objext
13292 # PORTME: override above test on systems where it is broken
13295 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13296 # hack all around it, let's just trust "g++" to DTRT.
13297 predep_objects_CXX
=
13298 postdep_objects_CXX
=
13303 case `$CC -V 2>&1 | sed 5q` in
13307 # The more standards-conforming stlport4 library is
13308 # incompatible with the Cstd library. Avoid specifying
13309 # it if it's in CXXFLAGS. Ignore libCrun as
13310 # -library=stlport4 depends on it.
13311 case " $CXX $CXXFLAGS " in
13312 *" -library=stlport4 "*)
13313 solaris_use_stlport4
=yes
13317 if test "$solaris_use_stlport4" != yes; then
13318 postdeps_CXX
='-library=Cstd -library=Crun'
13325 case $cc_basename in
13327 # The more standards-conforming stlport4 library is
13328 # incompatible with the Cstd library. Avoid specifying
13329 # it if it's in CXXFLAGS. Ignore libCrun as
13330 # -library=stlport4 depends on it.
13331 case " $CXX $CXXFLAGS " in
13332 *" -library=stlport4 "*)
13333 solaris_use_stlport4
=yes
13337 # Adding this requires a known-good setup of shared libraries for
13338 # Sun compiler versions before 5.6, else PIC objects from an old
13339 # archive will be linked into the output, leading to subtle bugs.
13340 if test "$solaris_use_stlport4" != yes; then
13341 postdeps_CXX
='-library=Cstd -library=Crun'
13349 case " $postdeps_CXX " in
13350 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
13352 compiler_lib_search_dirs_CXX
=
13353 if test -n "${compiler_lib_search_path_CXX}"; then
13354 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13387 lt_prog_compiler_wl_CXX
=
13388 lt_prog_compiler_pic_CXX
=
13389 lt_prog_compiler_static_CXX
=
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13392 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13394 # C++ specific cases for pic, static, wl, etc.
13395 if test "$GXX" = yes; then
13396 lt_prog_compiler_wl_CXX
='-Wl,'
13397 lt_prog_compiler_static_CXX
='-static'
13401 # All AIX code is PIC.
13402 if test "$host_cpu" = ia64
; then
13403 # AIX 5 now supports IA64 processor
13404 lt_prog_compiler_static_CXX
='-Bstatic'
13406 lt_prog_compiler_pic_CXX
='-fPIC'
13412 # see comment about AmigaOS4 .so support
13413 lt_prog_compiler_pic_CXX
='-fPIC'
13416 # FIXME: we need at least 68020 code to build shared libraries, but
13417 # adding the `-m68020' flag to GCC prevents building anything better,
13419 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
13424 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
13425 # PIC is the default for these OSes.
13427 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
13428 # This hack is so that the source file can tell whether it is being
13429 # built for inclusion in a dll (and should export symbols for example).
13430 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13431 # (--disable-auto-import) libraries
13432 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
13434 darwin
* | rhapsody
*)
13435 # PIC is the default on this platform
13436 # Common symbols not allowed in MH_DYLIB files
13437 lt_prog_compiler_pic_CXX
='-fno-common'
13440 # DJGPP does not support shared libraries at all
13441 lt_prog_compiler_pic_CXX
=
13444 # PIC is the default for Haiku.
13445 # The "-static" flag exists, but is broken.
13446 lt_prog_compiler_static_CXX
=
13449 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13450 # Instead, we relocate shared libraries at runtime.
13453 if test -d /usr
/nec
; then
13454 lt_prog_compiler_pic_CXX
=-Kconform_pic
13458 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13459 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13460 # sets the default TLS model and affects inlining.
13465 lt_prog_compiler_pic_CXX
='-fPIC'
13470 # QNX uses GNU C++, but need to define -shared option too, otherwise
13471 # it will coredump.
13472 lt_prog_compiler_pic_CXX
='-fPIC -shared'
13475 lt_prog_compiler_pic_CXX
='-fPIC'
13481 # All AIX code is PIC.
13482 if test "$host_cpu" = ia64
; then
13483 # AIX 5 now supports IA64 processor
13484 lt_prog_compiler_static_CXX
='-Bstatic'
13486 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
13490 case $cc_basename in
13492 # Green Hills C++ Compiler
13493 # _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"
13498 case $cc_basename in
13500 lt_prog_compiler_pic_CXX
='-KPIC'
13503 # Green Hills C++ Compiler
13504 lt_prog_compiler_pic_CXX
='-pic'
13510 freebsd
* | dragonfly
*)
13511 # FreeBSD uses GNU C++
13513 hpux9
* | hpux10
* | hpux11
*)
13514 case $cc_basename in
13516 lt_prog_compiler_wl_CXX
='-Wl,'
13517 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
13518 if test "$host_cpu" != ia64
; then
13519 lt_prog_compiler_pic_CXX
='+Z'
13523 lt_prog_compiler_wl_CXX
='-Wl,'
13524 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
13530 lt_prog_compiler_pic_CXX
='+Z'
13539 # This is c89, which is MS Visual C++ (no shared libs)
13540 # Anyone wants to do a port?
13542 irix5
* | irix6
* | nonstopux
*)
13543 case $cc_basename in
13545 lt_prog_compiler_wl_CXX
='-Wl,'
13546 lt_prog_compiler_static_CXX
='-non_shared'
13547 # CC pic flag -KPIC is the default.
13553 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
13554 case $cc_basename in
13557 lt_prog_compiler_wl_CXX
='--backend -Wl,'
13558 lt_prog_compiler_pic_CXX
='-fPIC'
13561 # old Intel C++ for x86_64 which still supported -KPIC.
13562 lt_prog_compiler_wl_CXX
='-Wl,'
13563 lt_prog_compiler_pic_CXX
='-KPIC'
13564 lt_prog_compiler_static_CXX
='-static'
13567 # Intel C++, used to be incompatible with GCC.
13568 # ICC 10 doesn't accept -KPIC any more.
13569 lt_prog_compiler_wl_CXX
='-Wl,'
13570 lt_prog_compiler_pic_CXX
='-fPIC'
13571 lt_prog_compiler_static_CXX
='-static'
13574 # Portland Group C++ compiler
13575 lt_prog_compiler_wl_CXX
='-Wl,'
13576 lt_prog_compiler_pic_CXX
='-fpic'
13577 lt_prog_compiler_static_CXX
='-Bstatic'
13581 # Make sure the PIC flag is empty. It appears that all Alpha
13582 # Linux and Compaq Tru64 Unix objects are PIC.
13583 lt_prog_compiler_pic_CXX
=
13584 lt_prog_compiler_static_CXX
='-non_shared'
13586 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
13587 # IBM XL 8.0, 9.0 on PPC and BlueGene
13588 lt_prog_compiler_wl_CXX
='-Wl,'
13589 lt_prog_compiler_pic_CXX
='-qpic'
13590 lt_prog_compiler_static_CXX
='-qstaticlink'
13593 case `$CC -V 2>&1 | sed 5q` in
13596 lt_prog_compiler_pic_CXX
='-KPIC'
13597 lt_prog_compiler_static_CXX
='-Bstatic'
13598 lt_prog_compiler_wl_CXX
='-Qoption ld '
13609 case $cc_basename in
13611 lt_prog_compiler_pic_CXX
='-W c,exportall'
13620 # QNX uses GNU C++, but need to define -shared option too, otherwise
13621 # it will coredump.
13622 lt_prog_compiler_pic_CXX
='-fPIC -shared'
13624 osf3
* | osf4
* | osf5
*)
13625 case $cc_basename in
13627 lt_prog_compiler_wl_CXX
='--backend -Wl,'
13630 # Rational C++ 2.4.1
13631 lt_prog_compiler_pic_CXX
='-pic'
13634 # Digital/Compaq C++
13635 lt_prog_compiler_wl_CXX
='-Wl,'
13636 # Make sure the PIC flag is empty. It appears that all Alpha
13637 # Linux and Compaq Tru64 Unix objects are PIC.
13638 lt_prog_compiler_pic_CXX
=
13639 lt_prog_compiler_static_CXX
='-non_shared'
13648 case $cc_basename in
13650 # Sun C++ 4.2, 5.x and Centerline C++
13651 lt_prog_compiler_pic_CXX
='-KPIC'
13652 lt_prog_compiler_static_CXX
='-Bstatic'
13653 lt_prog_compiler_wl_CXX
='-Qoption ld '
13656 # Green Hills C++ Compiler
13657 lt_prog_compiler_pic_CXX
='-PIC'
13664 case $cc_basename in
13667 lt_prog_compiler_pic_CXX
='-pic'
13668 lt_prog_compiler_static_CXX
='-Bstatic'
13672 lt_prog_compiler_pic_CXX
='-pic'
13678 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
13679 case $cc_basename in
13681 lt_prog_compiler_wl_CXX
='-Wl,'
13682 lt_prog_compiler_pic_CXX
='-KPIC'
13683 lt_prog_compiler_static_CXX
='-Bstatic'
13688 case $cc_basename in
13690 # NonStop-UX NCC 3.20
13691 lt_prog_compiler_pic_CXX
='-KPIC'
13700 lt_prog_compiler_can_build_shared_CXX
=no
13706 # For platforms which do not support PIC, -DPIC is meaningless:
13708 lt_prog_compiler_pic_CXX
=
13711 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13715 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13720 # Check to make sure the PIC flag actually works.
13722 if test -n "$lt_prog_compiler_pic_CXX"; then
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13724 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13725 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
13726 $as_echo_n "(cached) " >&6
13728 lt_cv_prog_compiler_pic_works_CXX
=no
13729 ac_outfile
=conftest.
$ac_objext
13730 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13731 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
13732 # Insert the option either (1) after the last *FLAGS variable, or
13733 # (2) before a word containing "conftest.", or (3) at the end.
13734 # Note that $ac_compile itself does not contain backslashes and begins
13735 # with a dollar sign (not a hyphen), so the echo should work correctly.
13736 # The option is referenced via a variable to avoid confusing sed.
13737 lt_compile
=`echo "$ac_compile" | $SED \
13738 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13739 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13740 -e 's:$: $lt_compiler_flag:'`
13741 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13742 (eval "$lt_compile" 2>conftest.err
)
13744 cat conftest.err
>&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 if (exit $ac_status) && test -s "$ac_outfile"; then
13747 # The compiler can only warn and ignore the option if not recognized
13748 # So say no if there are warnings other than the usual output.
13749 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
13750 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
13751 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
13752 lt_cv_prog_compiler_pic_works_CXX
=yes
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13759 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13761 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
13762 case $lt_prog_compiler_pic_CXX in
13764 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
13767 lt_prog_compiler_pic_CXX
=
13768 lt_prog_compiler_can_build_shared_CXX
=no
13776 # Check to make sure the static flag actually works.
13778 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13780 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13781 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
13782 $as_echo_n "(cached) " >&6
13784 lt_cv_prog_compiler_static_works_CXX
=no
13785 save_LDFLAGS
="$LDFLAGS"
13786 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
13787 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
13788 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
13789 # The linker can only warn and ignore the option if not recognized
13790 # So say no if there are warnings
13791 if test -s conftest.err
; then
13792 # Append any errors to the config.log.
13793 cat conftest.err
1>&5
13794 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
13795 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
13796 if diff conftest.exp conftest.er2
>/dev
/null
; then
13797 lt_cv_prog_compiler_static_works_CXX
=yes
13800 lt_cv_prog_compiler_static_works_CXX
=yes
13804 LDFLAGS
="$save_LDFLAGS"
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13808 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13810 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
13813 lt_prog_compiler_static_CXX
=
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13820 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13821 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
13822 $as_echo_n "(cached) " >&6
13824 lt_cv_prog_compiler_c_o_CXX
=no
13825 $RM -r conftest
2>/dev
/null
13829 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13831 lt_compiler_flag
="-o out/conftest2.$ac_objext"
13832 # Insert the option either (1) after the last *FLAGS variable, or
13833 # (2) before a word containing "conftest.", or (3) at the end.
13834 # Note that $ac_compile itself does not contain backslashes and begins
13835 # with a dollar sign (not a hyphen), so the echo should work correctly.
13836 lt_compile
=`echo "$ac_compile" | $SED \
13837 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13838 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13839 -e 's:$: $lt_compiler_flag:'`
13840 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13841 (eval "$lt_compile" 2>out
/conftest.err
)
13843 cat out
/conftest.err
>&5
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
13847 # The compiler can only warn and ignore the option if not recognized
13848 # So say no if there are warnings
13849 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
13850 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
13851 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
13852 lt_cv_prog_compiler_c_o_CXX
=yes
13857 # SGI C++ compiler will create directory out/ii_files/ for
13858 # template instantiation
13859 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
13860 $RM out
/* && rmdir out
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13867 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13872 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13873 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
13874 $as_echo_n "(cached) " >&6
13876 lt_cv_prog_compiler_c_o_CXX
=no
13877 $RM -r conftest
2>/dev
/null
13881 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13883 lt_compiler_flag
="-o out/conftest2.$ac_objext"
13884 # Insert the option either (1) after the last *FLAGS variable, or
13885 # (2) before a word containing "conftest.", or (3) at the end.
13886 # Note that $ac_compile itself does not contain backslashes and begins
13887 # with a dollar sign (not a hyphen), so the echo should work correctly.
13888 lt_compile
=`echo "$ac_compile" | $SED \
13889 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13890 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13891 -e 's:$: $lt_compiler_flag:'`
13892 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13893 (eval "$lt_compile" 2>out
/conftest.err
)
13895 cat out
/conftest.err
>&5
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
13899 # The compiler can only warn and ignore the option if not recognized
13900 # So say no if there are warnings
13901 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
13902 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
13903 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
13904 lt_cv_prog_compiler_c_o_CXX
=yes
13909 # SGI C++ compiler will create directory out/ii_files/ for
13910 # template instantiation
13911 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
13912 $RM out
/* && rmdir out
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13919 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13924 hard_links
="nottested"
13925 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
13926 # do not overwrite the value of need_locks provided by the user
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13928 $as_echo_n "checking if we can lock with hard links... " >&6; }
13931 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13933 ln conftest.a conftest.b
2>&5 || hard_links
=no
13934 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13936 $as_echo "$hard_links" >&6; }
13937 if test "$hard_links" = no
; then
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13939 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13949 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13951 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13954 # If we're using GNU nm, then we don't want the "-C" option.
13955 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13956 # Also, AIX nm treats weak defined symbols like other global defined
13957 # symbols, whereas GNU nm marks them as "W".
13958 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
13959 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'
13961 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'
13965 export_symbols_cmds_CXX
="$ltdll_cmds"
13967 cygwin
* | mingw
* | cegcc
*)
13968 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'
13971 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13974 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13977 $as_echo "$ld_shlibs_CXX" >&6; }
13978 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
13980 with_gnu_ld_CXX
=$with_gnu_ld
13988 # Do we need to explicitly link libc?
13990 case "x$archive_cmds_need_lc_CXX" in
13992 # Assume -lc should be added
13993 archive_cmds_need_lc_CXX
=yes
13995 if test "$enable_shared" = yes && test "$GCC" = yes; then
13996 case $archive_cmds_CXX in
13998 # FIXME: we may have to deal with multi-command sequences.
14001 # Test whether the compiler implicitly links with -lc since on some
14002 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14003 # to ld, don't add -lc before -lgcc.
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14005 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14006 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
14007 $as_echo_n "(cached) " >&6
14010 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14012 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14013 (eval $ac_compile) 2>&5
14015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14016 test $ac_status = 0; } 2>conftest.err
; then
14019 libobjs
=conftest.
$ac_objext
14021 wl
=$lt_prog_compiler_wl_CXX
14022 pic_flag
=$lt_prog_compiler_pic_CXX
14028 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
14029 allow_undefined_flag_CXX
=
14030 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14031 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
14033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14034 test $ac_status = 0; }
14036 lt_cv_archive_cmds_need_lc_CXX
=no
14038 lt_cv_archive_cmds_need_lc_CXX
=yes
14040 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
14042 cat conftest.err
1>&5
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14048 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14049 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14120 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14122 library_names_spec
=
14123 libname_spec
='lib$name'
14127 postuninstall_cmds
=
14131 shlibpath_overrides_runpath
=unknown
14133 dynamic_linker
="$host_os ld.so"
14134 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
14135 need_lib_prefix
=unknown
14136 hardcode_into_libs
=no
14138 # when you set need_version to no, make sure it does not cause -set_version
14139 # flags to be left without arguments
14140 need_version
=unknown
14145 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
14146 shlibpath_var
=LIBPATH
14148 # AIX 3 has no versioning support, so we append a major version to the name.
14149 soname_spec
='${libname}${release}${shared_ext}$major'
14156 hardcode_into_libs
=yes
14157 if test "$host_cpu" = ia64
; then
14158 # AIX 5 supports IA64
14159 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14160 shlibpath_var
=LD_LIBRARY_PATH
14162 # With GCC up to 2.95.x, collect2 would create an import file
14163 # for dependence libraries. The import file would start with
14164 # the line `#! .'. This would cause the generated library to
14165 # depend on `.', always an invalid library. This was fixed in
14166 # development snapshots of GCC prior to 3.0.
14168 aix4 | aix4.
[01] | aix4.
[01].
*)
14169 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14171 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
14174 can_build_shared
=no
14178 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14179 # soname into executable. Probably we can add versioning support to
14180 # collect2, so additional links can be useful in future.
14181 if test "$aix_use_runtimelinking" = yes; then
14182 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14183 # instead of lib<name>.a to let people know that these are not
14184 # typical AIX shared libraries.
14185 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14187 # We preserve .a as extension for shared libraries through AIX4.2
14188 # and later when we are not doing run time linking.
14189 library_names_spec
='${libname}${release}.a $libname.a'
14190 soname_spec
='${libname}${release}${shared_ext}$major'
14192 shlibpath_var
=LIBPATH
14199 # Since July 2007 AmigaOS4 officially supports .so libraries.
14200 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14201 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14204 library_names_spec
='$libname.ixlibrary $libname.a'
14205 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14206 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'
14212 library_names_spec
='${libname}${shared_ext}'
14213 dynamic_linker
="$host_os ld.so"
14214 shlibpath_var
=LIBRARY_PATH
14220 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14221 soname_spec
='${libname}${release}${shared_ext}$major'
14222 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
14223 shlibpath_var
=LD_LIBRARY_PATH
14224 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14225 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
14226 # the default ld.so.conf also contains /usr/contrib/lib and
14227 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14228 # libtool to hard-code these into programs
14231 cygwin
* | mingw
* | pw32
* | cegcc
*)
14232 version_type
=windows
14237 case $GCC,$host_os in
14238 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
14239 library_names_spec
='$libname.dll.a'
14240 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14241 postinstall_cmds
='base_file=`basename \${file}`~
14242 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14243 dldir=$destdir/`dirname \$dlpath`~
14244 test -d \$dldir || mkdir -p \$dldir~
14245 $install_prog $dir/$dlname \$dldir/$dlname~
14246 chmod a+x \$dldir/$dlname~
14247 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14248 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14250 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14251 dlpath=$dir/\$dldll~
14253 shlibpath_overrides_runpath
=yes
14257 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14258 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14262 # MinGW DLLs use traditional 'lib' prefix
14263 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14266 # pw32 DLLs use 'pw' prefix rather than 'lib'
14267 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14273 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14276 dynamic_linker
='Win32 ld.exe'
14277 # FIXME: first we should search . and the directory the executable is in
14281 darwin
* | rhapsody
*)
14282 dynamic_linker
="$host_os dyld"
14283 version_type
=darwin
14286 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14287 soname_spec
='${libname}${release}${major}$shared_ext'
14288 shlibpath_overrides_runpath
=yes
14289 shlibpath_var
=DYLD_LIBRARY_PATH
14290 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
14292 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
14299 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14300 soname_spec
='${libname}${release}${shared_ext}$major'
14301 shlibpath_var
=LD_LIBRARY_PATH
14304 freebsd
* | dragonfly
*)
14305 # DragonFly does not have aout. When/if they implement a new
14306 # versioning mechanism, adjust this.
14307 if test -x /usr
/bin
/objformat
; then
14308 objformat
=`/usr/bin/objformat`
14311 freebsd
[23].
*) objformat
=aout
;;
14312 *) objformat
=elf
;;
14315 version_type
=freebsd-
$objformat
14316 case $version_type in
14318 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14323 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14327 shlibpath_var
=LD_LIBRARY_PATH
14330 shlibpath_overrides_runpath
=yes
14332 freebsd3.
[01]* | freebsdelf3.
[01]*)
14333 shlibpath_overrides_runpath
=yes
14334 hardcode_into_libs
=yes
14336 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
14337 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
14338 shlibpath_overrides_runpath
=no
14339 hardcode_into_libs
=yes
14341 *) # from 4.6 on, and DragonFly
14342 shlibpath_overrides_runpath
=yes
14343 hardcode_into_libs
=yes
14352 dynamic_linker
="$host_os runtime_loader"
14353 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14354 soname_spec
='${libname}${release}${shared_ext}$major'
14355 shlibpath_var
=LIBRARY_PATH
14356 shlibpath_overrides_runpath
=yes
14357 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14358 hardcode_into_libs
=yes
14361 hpux9
* | hpux10
* | hpux11
*)
14362 # Give a soname corresponding to the major version so that dld.sl refuses to
14363 # link against other versions.
14370 hardcode_into_libs
=yes
14371 dynamic_linker
="$host_os dld.so"
14372 shlibpath_var
=LD_LIBRARY_PATH
14373 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14374 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14375 soname_spec
='${libname}${release}${shared_ext}$major'
14376 if test "X$HPUX_IA64_MODE" = X32
; then
14377 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14379 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
14381 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14385 hardcode_into_libs
=yes
14386 dynamic_linker
="$host_os dld.sl"
14387 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
14388 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14389 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14390 soname_spec
='${libname}${release}${shared_ext}$major'
14391 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14392 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14396 dynamic_linker
="$host_os dld.sl"
14397 shlibpath_var
=SHLIB_PATH
14398 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
14399 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14400 soname_spec
='${libname}${release}${shared_ext}$major'
14403 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14404 postinstall_cmds
='chmod 555 $lib'
14405 # or fails outright, so override atomically:
14406 install_override_mode
=555
14413 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14414 soname_spec
='${libname}${release}${shared_ext}$major'
14415 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
14416 shlibpath_var
=LD_LIBRARY_PATH
14417 shlibpath_overrides_runpath
=no
14418 hardcode_into_libs
=yes
14421 irix5
* | irix6
* | nonstopux
*)
14423 nonstopux
*) version_type
=nonstopux
;;
14425 if test "$lt_cv_prog_gnu_ld" = yes; then
14433 soname_spec
='${libname}${release}${shared_ext}$major'
14434 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14436 irix5
* | nonstopux
*)
14437 libsuff
= shlibsuff
=
14440 case $LD in # libtool.m4 will add one of these switches to LD
14441 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
14442 libsuff
= shlibsuff
= libmagic
=32-bit;;
14443 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
14444 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
14445 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
14446 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
14447 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
14451 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
14452 shlibpath_overrides_runpath
=no
14453 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14454 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
14455 hardcode_into_libs
=yes
14458 # No shared lib support for Linux oldld, aout, or coff.
14459 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
14463 # This must be Linux ELF.
14465 # uclinux* changes (here and below) have been submitted to the libtool
14466 # project, but have not yet been accepted: they are GCC-local changes
14467 # for the time being. (See
14468 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14469 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
14473 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14474 soname_spec
='${libname}${release}${shared_ext}$major'
14475 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14476 shlibpath_var
=LD_LIBRARY_PATH
14477 shlibpath_overrides_runpath
=no
14479 # Some binutils ld are patched to set DT_RUNPATH
14480 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
14481 $as_echo_n "(cached) " >&6
14483 lt_cv_shlibpath_overrides_runpath
=no
14484 save_LDFLAGS
=$LDFLAGS
14485 save_libdir
=$libdir
14486 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14487 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14489 /* end confdefs.h. */
14499 if ac_fn_cxx_try_link
"$LINENO"; then :
14500 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
14501 lt_cv_shlibpath_overrides_runpath
=yes
14504 rm -f core conftest.err conftest.
$ac_objext \
14505 conftest
$ac_exeext conftest.
$ac_ext
14506 LDFLAGS
=$save_LDFLAGS
14507 libdir
=$save_libdir
14511 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
14513 # This implies no fast_install, which is unacceptable.
14514 # Some rework will be needed to allow for fast_install
14515 # before this can be enabled.
14516 hardcode_into_libs
=yes
14518 # Append ld.so.conf contents to the search path
14519 if test -f /etc
/ld.so.conf
; then
14520 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' ' '`
14521 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
14524 # We used to test for /lib/ld.so.1 and disable shared libraries on
14525 # powerpc, because MkLinux only supported shared libraries with the
14526 # GNU dynamic linker. Since this was broken with cross compilers,
14527 # most powerpc-linux boxes support dynamic linking these days and
14528 # people can always --disable-shared, the test was removed, and we
14529 # assume the GNU/Linux dynamic linker is in use.
14530 dynamic_linker
='GNU/Linux ld.so'
14537 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
14538 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14539 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14540 dynamic_linker
='NetBSD (a.out) ld.so'
14542 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14543 soname_spec
='${libname}${release}${shared_ext}$major'
14544 dynamic_linker
='NetBSD ld.elf_so'
14546 shlibpath_var
=LD_LIBRARY_PATH
14547 shlibpath_overrides_runpath
=yes
14548 hardcode_into_libs
=yes
14553 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14554 shlibpath_var
=LD_LIBRARY_PATH
14555 shlibpath_overrides_runpath
=yes
14562 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14563 soname_spec
='${libname}${release}${shared_ext}$major'
14564 shlibpath_var
=LD_LIBRARY_PATH
14565 shlibpath_overrides_runpath
=no
14566 hardcode_into_libs
=yes
14567 dynamic_linker
='ldqnx.so'
14572 sys_lib_dlsearch_path_spec
="/usr/lib"
14574 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14576 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
14577 *) need_version
=no
;;
14579 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14580 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14581 shlibpath_var
=LD_LIBRARY_PATH
14582 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14584 openbsd2.
[89] | openbsd2.
[89].
*)
14585 shlibpath_overrides_runpath
=no
14588 shlibpath_overrides_runpath
=yes
14592 shlibpath_overrides_runpath
=yes
14597 libname_spec
='$name'
14600 library_names_spec
='$libname${shared_ext} $libname.a'
14601 dynamic_linker
='OS/2 ld.exe'
14602 shlibpath_var
=LIBPATH
14605 osf3
* | osf4
* | osf5
*)
14609 soname_spec
='${libname}${release}${shared_ext}$major'
14610 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14611 shlibpath_var
=LD_LIBRARY_PATH
14612 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14613 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
14624 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14625 soname_spec
='${libname}${release}${shared_ext}$major'
14626 shlibpath_var
=LD_LIBRARY_PATH
14627 shlibpath_overrides_runpath
=yes
14628 hardcode_into_libs
=yes
14629 # ldd complains unless libraries are executable
14630 postinstall_cmds
='chmod +x $lib'
14635 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14636 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14637 shlibpath_var
=LD_LIBRARY_PATH
14638 shlibpath_overrides_runpath
=yes
14639 if test "$with_gnu_ld" = yes; then
14647 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14648 soname_spec
='${libname}${release}${shared_ext}$major'
14649 shlibpath_var
=LD_LIBRARY_PATH
14650 case $host_vendor in
14652 shlibpath_overrides_runpath
=no
14654 runpath_var
=LD_RUN_PATH
14662 shlibpath_overrides_runpath
=no
14663 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
14669 if test -d /usr
/nec
;then
14671 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14672 soname_spec
='$libname${shared_ext}.$major'
14673 shlibpath_var
=LD_LIBRARY_PATH
14677 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
14678 version_type
=freebsd-elf
14681 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14682 soname_spec
='${libname}${release}${shared_ext}$major'
14683 shlibpath_var
=LD_LIBRARY_PATH
14684 shlibpath_overrides_runpath
=yes
14685 hardcode_into_libs
=yes
14686 if test "$with_gnu_ld" = yes; then
14687 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14689 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
14692 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
14696 sys_lib_dlsearch_path_spec
='/usr/lib'
14700 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14704 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14705 shlibpath_var
=LD_LIBRARY_PATH
14706 shlibpath_overrides_runpath
=no
14707 hardcode_into_libs
=yes
14712 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14713 soname_spec
='${libname}${release}${shared_ext}$major'
14714 shlibpath_var
=LD_LIBRARY_PATH
14717 # Shared libraries for VwWorks, >= 7 only at this stage
14718 # and (fpic) still incompatible with "large" code models
14719 # in a few configurations. Only for RTP mode in any case,
14720 # and upon explicit request at configure time.
14723 case ${with_multisubdir}-${enable_shared} in
14730 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14731 soname_spec
='${libname}${release}${shared_ext}$major'
14732 dynamic_linker
="$host_os module_loader"
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14741 $as_echo "$dynamic_linker" >&6; }
14742 test "$dynamic_linker" = no
&& can_build_shared
=no
14744 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
14745 if test "$GCC" = yes; then
14746 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14749 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14750 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
14752 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14753 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14794 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14795 hardcode_action_CXX
=
14796 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14797 test -n "$runpath_var_CXX" ||
14798 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14800 # We can hardcode non-existent directories.
14801 if test "$hardcode_direct_CXX" != no
&&
14802 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14803 # have to relink, otherwise we might link with an installed library
14804 # when we should be linking with a yet-to-be-installed one
14805 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14806 test "$hardcode_minus_L_CXX" != no
; then
14807 # Linking always hardcodes the temporary library directory.
14808 hardcode_action_CXX
=relink
14810 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14811 hardcode_action_CXX
=immediate
14814 # We cannot hardcode anything, or else we can only hardcode existing
14816 hardcode_action_CXX
=unsupported
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14819 $as_echo "$hardcode_action_CXX" >&6; }
14821 if test "$hardcode_action_CXX" = relink ||
14822 test "$inherit_rpath_CXX" = yes; then
14823 # Fast installation is not supported
14824 enable_fast_install
=no
14825 elif test "$shlibpath_overrides_runpath" = yes ||
14826 test "$enable_shared" = no
; then
14827 # Fast installation is not necessary
14828 enable_fast_install
=needless
14837 fi # test -n "$compiler"
14843 with_gnu_ld
=$lt_save_with_gnu_ld
14844 lt_cv_path_LDCXX
=$lt_cv_path_LD
14845 lt_cv_path_LD
=$lt_save_path_LD
14846 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
14847 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
14848 fi # test "$_lt_caught_CXX_error" != yes
14851 ac_cpp
='$CPP $CPPFLAGS'
14852 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14853 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14854 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14868 ac_config_commands
="$ac_config_commands libtool"
14873 # Only expand once:
14876 # ... and we need it soon, since it is used by some of the
14877 # link tests in the configure script.
14878 : ${CONFIG_LT=./config.lt}
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
14880 $as_echo "$as_me: creating $CONFIG_LT" >&6;}
14882 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
14884 # Generated by $as_me.
14885 # Run this file to recreate a libtool stub with the current configuration.
14886 SHELL=\${CONFIG_SHELL-$SHELL}
14889 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail
=1
14890 ## -------------------- ##
14891 ## M4sh Initialization. ##
14892 ## -------------------- ##
14894 # Be more Bourne compatible
14895 DUALCASE
=1; export DUALCASE
# for MKS sh
14896 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
14899 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14900 # is contrary to our usage. Disable this feature.
14901 alias -g '${1+"$@"}'='"$@"'
14902 setopt NO_GLOB_SUBST
14904 case `(set -o) 2>/dev/null` in #(
14916 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14917 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14918 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14919 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14920 # Prefer a ksh shell builtin over an external printf program on Solaris,
14921 # but without wasting forks for bash or zsh.
14922 if test -z "$BASH_VERSION$ZSH_VERSION" \
14923 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14924 as_echo='print
-r --'
14925 as_echo_n='print
-rn --'
14926 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14927 as_echo='printf %s
\n'
14928 as_echo_n='printf %s
'
14930 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14931 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
14932 as_echo_n='/usr
/ucb
/echo -n'
14934 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14935 as_echo_n_body='eval
14939 expr "X$arg" : "X\\(.*\\)$as_nl";
14940 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14942 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
14944 export as_echo_n_body
14945 as_echo_n='sh
-c $as_echo_n_body as_echo
'
14947 export as_echo_body
14948 as_echo='sh
-c $as_echo_body as_echo
'
14951 # The user is always right.
14952 if test "${PATH_SEPARATOR+set}" != set; then
14954 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14955 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14962 # We need space, tab and new line, in precisely that order. Quoting is
14963 # there to prevent editors from complaining about space-tab.
14964 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14965 # splitting by setting IFS to empty value.)
14968 # Find who we are. Look in the path if we contain no directory separator.
14971 *[\\/]* ) as_myself=$0 ;;
14972 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14973 for as_dir in $PATH
14976 test -z "$as_dir" && as_dir=.
14977 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14983 # We did not find ourselves, most probably we were run as `sh COMMAND'
14984 # in which case we are not to be found in the path.
14985 if test "x$as_myself" = x
; then
14988 if test ! -f "$as_myself"; then
14989 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14993 # Unset variables that we do not need and which cause bugs (e.g. in
14994 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14995 # suppresses any "Segmentation fault" message there. '((' could
14996 # trigger a bug in pdksh 5.2.14.
14997 for as_var
in BASH_ENV ENV MAIL MAILPATH
14998 do eval test x\
${$as_var+set} = xset \
14999 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15012 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15015 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15016 # ----------------------------------------
15017 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15018 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15019 # script with STATUS, using 1 if that was 0.
15022 as_status
=$1; test $as_status -eq 0 && as_status
=1
15024 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15025 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15027 $as_echo "$as_me: error: $2" >&2
15028 as_fn_exit
$as_status
15032 # as_fn_set_status STATUS
15033 # -----------------------
15034 # Set $? to STATUS, without forking.
15035 as_fn_set_status
()
15038 } # as_fn_set_status
15040 # as_fn_exit STATUS
15041 # -----------------
15042 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15046 as_fn_set_status
$1
15052 # Portably unset VAR.
15055 { eval $1=; unset $1;}
15057 as_unset
=as_fn_unset
15058 # as_fn_append VAR VALUE
15059 # ----------------------
15060 # Append the text in VALUE to the end of the definition contained in VAR. Take
15061 # advantage of any shell optimizations that allow amortized linear growth over
15062 # repeated appends, instead of the typical quadratic growth present in naive
15064 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15065 eval 'as_fn_append ()
15076 # as_fn_arith ARG...
15077 # ------------------
15078 # Perform arithmetic evaluation on the ARGs, and store the result in the
15079 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15080 # must be portable across $(()) and expr.
15081 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15082 eval 'as_fn_arith ()
15089 as_val
=`expr "$@" || test $? -eq 1`
15094 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15095 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15101 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15102 as_basename
=basename
15107 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15113 as_me
=`$as_basename -- "$0" ||
15114 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15115 X"$0" : 'X\(//\)$' \| \
15116 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15118 sed '/^.*\/\([^/][^/]*\)\/*$/{
15132 # Avoid depending upon Character Ranges.
15133 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15134 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15135 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15136 as_cr_digits
='0123456789'
15137 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15139 ECHO_C
= ECHO_N
= ECHO_T
=
15140 case `echo -n x` in #(((((
15142 case `echo 'xy\c'` in
15143 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15145 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15152 rm -f conf$$ conf$$.exe conf$$.
file
15153 if test -d conf$$.dir
; then
15154 rm -f conf$$.dir
/conf$$.
file
15157 mkdir conf$$.dir
2>/dev
/null
15159 if (echo >conf$$.
file) 2>/dev
/null
; then
15160 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15162 # ... but there are two gotchas:
15163 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15164 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15165 # In both cases, we have to default to `cp -pR'.
15166 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15168 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15176 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15177 rmdir conf$$.dir
2>/dev
/null
15182 # Create "$as_dir" as a directory, including parents if necessary.
15187 -*) as_dir
=.
/$as_dir;;
15189 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15193 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15194 *) as_qdir
=$as_dir;;
15196 as_dirs
="'$as_qdir' $as_dirs"
15197 as_dir
=`$as_dirname -- "$as_dir" ||
15198 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15199 X"$as_dir" : 'X\(//\)[^/]' \| \
15200 X"$as_dir" : 'X\(//\)$' \| \
15201 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15202 $as_echo X"$as_dir" |
15203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15207 /^X\(\/\/\)[^/].*/{
15220 test -d "$as_dir" && break
15222 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15223 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
15227 if mkdir
-p .
2>/dev
/null
; then
15228 as_mkdir_p
='mkdir -p "$as_dir"'
15230 test -d .
/-p && rmdir .
/-p
15235 # as_fn_executable_p FILE
15236 # -----------------------
15237 # Test if FILE is an executable regular file.
15238 as_fn_executable_p
()
15240 test -f "$1" && test -x "$1"
15241 } # as_fn_executable_p
15242 as_test_x
='test -x'
15243 as_executable_p
=as_fn_executable_p
15245 # Sed expression to map a string onto a valid CPP name.
15246 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15248 # Sed expression to map a string onto a valid variable name.
15249 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15253 ## --------------------------------- ##
15254 ## Main body of "$CONFIG_LT" script. ##
15255 ## --------------------------------- ##
15257 test $as_write_fail = 0 && chmod +x
"$CONFIG_LT"
15259 cat >>"$CONFIG_LT" <<\_LTEOF
15264 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15265 ## Running $as_me. ##
15270 \`$as_me' creates a local libtool stub from the current configuration,
15271 for use in further configure time tests before the real libtool is
15274 Usage: $0 [OPTIONS]
15276 -h, --help print this help, then exit
15277 -V, --version print version number, then exit
15278 -q, --quiet do not print progress messages
15279 -d, --debug don't remove temporary files
15281 Report bugs to <bug-libtool@gnu.org>."
15285 configured by $0, generated by GNU Autoconf 2.69.
15287 Copyright (C) 2009 Free Software Foundation, Inc.
15288 This config.lt script is free software; the Free Software Foundation
15289 gives unlimited permision to copy, distribute and modify it."
15294 --version |
--v* |
-V )
15295 echo "$lt_cl_version"; exit 0 ;;
15296 --help |
--h* |
-h )
15297 echo "$lt_cl_help"; exit 0 ;;
15298 --debug |
--d* |
-d )
15300 --quiet |
--q* |
--silent |
--s* |
-q )
15303 -*) as_fn_error $?
"unrecognized option: $1
15304 Try \`$0 --help' for more information." "$LINENO" 5 ;;
15306 *) as_fn_error $?
"unrecognized argument: $1
15307 Try \`$0 --help' for more information." "$LINENO" 5 ;;
15312 if $lt_cl_silent; then
15317 cat >>"$CONFIG_LT" <<_LTEOF
15320 # The HP-UX ksh and POSIX shell print the target directory to stdout
15321 # if CDPATH is set.
15322 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15324 sed_quote_subst='$sed_quote_subst'
15325 double_quote_subst='$double_quote_subst'
15326 delay_variable_subst='$delay_variable_subst'
15327 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15328 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15329 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15330 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15331 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15332 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15333 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15334 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15335 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15336 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15337 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15338 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15339 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15340 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15341 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15342 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15343 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15344 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15345 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15346 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15347 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15348 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15349 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15350 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15351 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15352 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15353 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15354 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15355 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15356 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15357 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15358 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15359 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15360 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15361 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15362 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15363 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15364 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15365 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15366 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15367 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15368 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15369 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15370 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15371 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15372 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15373 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15374 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15375 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"`'
15376 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15377 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15378 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15379 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15380 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15381 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15382 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15383 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15384 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15385 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15386 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15387 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15388 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15389 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15390 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15391 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15392 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15393 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15394 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15395 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15396 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15397 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15398 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15399 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15400 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15401 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15402 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15403 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15404 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15405 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15406 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15407 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15408 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15409 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15410 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15411 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15412 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15413 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15414 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15415 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15416 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15417 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15418 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15419 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15420 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15421 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15422 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15423 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15424 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15425 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15426 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15427 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15428 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15429 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15430 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15431 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15432 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15433 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15434 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15435 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15436 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15437 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15438 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15439 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15440 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15441 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15442 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15443 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15444 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15445 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15446 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15447 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15448 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15449 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15450 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15451 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15452 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15453 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15454 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15455 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15456 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15457 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15458 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15459 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15460 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15461 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15462 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15463 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15464 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15465 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15466 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15467 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15468 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15469 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15470 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15471 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15472 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15473 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15474 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15475 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15476 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15477 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15478 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15479 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15480 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15481 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15482 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15483 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15484 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15485 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15486 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15487 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15488 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15489 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15490 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15491 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15492 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15493 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15494 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15495 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15496 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15497 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15498 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15499 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15500 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15501 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15504 LTCFLAGS='$LTCFLAGS'
15505 compiler='$compiler_DEFAULT'
15507 # A function that is used when there is no print builtin or printf.
15508 func_fallback_echo ()
15510 eval 'cat <<_LTECHO_EOF
15515 # Quote evaled strings.
15529 deplibs_check_method \
15538 lt_cv_sys_global_symbol_pipe \
15539 lt_cv_sys_global_symbol_to_cdecl \
15540 lt_cv_sys_global_symbol_to_c_name_address \
15541 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15542 lt_prog_compiler_no_builtin_flag \
15543 lt_prog_compiler_wl \
15544 lt_prog_compiler_pic \
15545 lt_prog_compiler_static \
15546 lt_cv_prog_compiler_c_o \
15554 export_dynamic_flag_spec \
15555 whole_archive_flag_spec \
15556 compiler_needs_object \
15558 allow_undefined_flag \
15559 no_undefined_flag \
15560 hardcode_libdir_flag_spec \
15561 hardcode_libdir_flag_spec_ld \
15562 hardcode_libdir_separator \
15567 variables_saved_for_relink \
15569 library_names_spec \
15571 install_override_mode \
15575 compiler_lib_search_dirs \
15580 compiler_lib_search_path \
15584 lt_prog_compiler_no_builtin_flag_CXX \
15585 lt_prog_compiler_wl_CXX \
15586 lt_prog_compiler_pic_CXX \
15587 lt_prog_compiler_static_CXX \
15588 lt_cv_prog_compiler_c_o_CXX \
15589 export_dynamic_flag_spec_CXX \
15590 whole_archive_flag_spec_CXX \
15591 compiler_needs_object_CXX \
15593 allow_undefined_flag_CXX \
15594 no_undefined_flag_CXX \
15595 hardcode_libdir_flag_spec_CXX \
15596 hardcode_libdir_flag_spec_ld_CXX \
15597 hardcode_libdir_separator_CXX \
15598 fix_srcfile_path_CXX \
15599 exclude_expsyms_CXX \
15600 include_expsyms_CXX \
15601 file_list_spec_CXX \
15602 compiler_lib_search_dirs_CXX \
15603 predep_objects_CXX \
15604 postdep_objects_CXX \
15607 compiler_lib_search_path_CXX; do
15608 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15609 *[\\\\\\\`\\"\\\$]*)
15610 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15613 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15618 # Double-quote double-evaled strings.
15619 for var in reload_cmds \
15620 old_postinstall_cmds \
15621 old_postuninstall_cmds \
15623 extract_expsyms_cmds \
15624 old_archive_from_new_cmds \
15625 old_archive_from_expsyms_cmds \
15627 archive_expsym_cmds \
15629 module_expsym_cmds \
15630 export_symbols_cmds \
15633 postuninstall_cmds \
15635 sys_lib_search_path_spec \
15636 sys_lib_dlsearch_path_spec \
15638 old_archive_cmds_CXX \
15639 old_archive_from_new_cmds_CXX \
15640 old_archive_from_expsyms_cmds_CXX \
15642 archive_expsym_cmds_CXX \
15644 module_expsym_cmds_CXX \
15645 export_symbols_cmds_CXX \
15646 prelink_cmds_CXX; do
15647 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15648 *[\\\\\\\`\\"\\\$]*)
15649 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15652 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15657 ac_aux_dir='$ac_aux_dir'
15658 xsi_shell='$xsi_shell'
15659 lt_shell_append='$lt_shell_append'
15661 # See if we are running on zsh, and set the options which allow our
15662 # commands through without removal of \ escapes INIT.
15663 if test -n "\${ZSH_VERSION+set}" ; then
15664 setopt NO_GLOB_SUBST
15670 TIMESTAMP='$TIMESTAMP'
15680 cat >>"$CONFIG_LT" <<\_LTEOF
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
15682 $as_echo "$as_me: creating $ofile" >&6;}
15685 # See if we are running on zsh, and set the options which allow our
15686 # commands through without removal of \ escapes.
15687 if test -n "${ZSH_VERSION+set}" ; then
15688 setopt NO_GLOB_SUBST
15691 cfgfile
="${ofile}T"
15692 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15695 cat <<_LT_EOF >> "$cfgfile"
15698 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15699 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15700 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15701 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15703 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15704 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15705 # Written by Gordon Matzigkeit, 1996
15707 # This file is part of GNU Libtool.
15709 # GNU Libtool is free software; you can redistribute it and/or
15710 # modify it under the terms of the GNU General Public License as
15711 # published by the Free Software Foundation; either version 2 of
15712 # the License, or (at your option) any later version.
15714 # As a special exception to the GNU General Public License,
15715 # if you distribute this file as part of a program or library that
15716 # is built using GNU Libtool, you may include this file under the
15717 # same distribution terms that you use for the rest of that program.
15719 # GNU Libtool is distributed in the hope that it will be useful,
15720 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15721 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15722 # GNU General Public License for more details.
15724 # You should have received a copy of the GNU General Public License
15725 # along with GNU Libtool; see the file COPYING. If not, a copy
15726 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15727 # obtained by writing to the Free Software Foundation, Inc.,
15728 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15731 # The names of the tagged configurations supported by this script.
15732 available_tags="CXX "
15734 # ### BEGIN LIBTOOL CONFIG
15736 # Which release of libtool.m4 was used?
15737 macro_version=$macro_version
15738 macro_revision=$macro_revision
15740 # Whether or not to build shared libraries.
15741 build_libtool_libs=$enable_shared
15743 # Whether or not to build static libraries.
15744 build_old_libs=$enable_static
15746 # What type of objects to build.
15749 # Whether or not to optimize for fast installation.
15750 fast_install=$enable_fast_install
15752 # Shell to use when invoking shell scripts.
15755 # An echo program that protects backslashes.
15759 host_alias=$host_alias
15763 # The build system.
15764 build_alias=$build_alias
15768 # A sed program that does not truncate output.
15771 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15772 Xsed="\$SED -e 1s/^X//"
15774 # A grep program that handles long lines.
15780 # A literal string matcher.
15783 # A BSD- or MS-compatible name lister.
15786 # Whether we need soft or hard links.
15789 # What is the maximum length of a command?
15790 max_cmd_len=$max_cmd_len
15792 # Object file suffix (normally "o").
15795 # Executable file suffix (normally "").
15798 # whether the shell understands "unset".
15801 # turn spaces into newlines.
15804 # turn newlines into spaces.
15807 # An object symbol dumper.
15808 OBJDUMP=$lt_OBJDUMP
15810 # Method to check whether dependent libraries are shared objects.
15811 deplibs_check_method=$lt_deplibs_check_method
15813 # Command to use when deplibs_check_method == "file_magic".
15814 file_magic_cmd=$lt_file_magic_cmd
15818 AR_FLAGS=$lt_AR_FLAGS
15820 # A symbol stripping program.
15823 # Commands used to install an old-style archive.
15825 old_postinstall_cmds=$lt_old_postinstall_cmds
15826 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15828 # Whether to use a lock for old archive extraction.
15829 lock_old_archive_extraction=$lock_old_archive_extraction
15834 # LTCC compiler flags.
15835 LTCFLAGS=$lt_CFLAGS
15837 # Take the output of nm and produce a listing of raw symbols and C names.
15838 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15840 # Transform the output of nm in a proper C declaration.
15841 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15843 # Transform the output of nm in a C name address pair.
15844 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15846 # Transform the output of nm in a C name address pair when lib prefix is needed.
15847 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15849 # The name of the directory that contains temporary libtool files.
15852 # Used to examine libraries when file_magic_cmd begins with "file".
15853 MAGIC_CMD=$MAGIC_CMD
15855 # Must we lock files when doing compilation?
15856 need_locks=$lt_need_locks
15858 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15859 DSYMUTIL=$lt_DSYMUTIL
15861 # Tool to change global to local symbols on Mac OS X.
15864 # Tool to manipulate fat objects and archives on Mac OS X.
15867 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15870 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15871 OTOOL64=$lt_OTOOL64
15873 # Old archive suffix (normally "a").
15876 # Shared library suffix (normally ".so").
15877 shrext_cmds=$lt_shrext_cmds
15879 # The commands to extract the exported symbol list from a shared archive.
15880 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15882 # Variables whose values should be saved in libtool wrapper scripts and
15883 # restored at link time.
15884 variables_saved_for_relink=$lt_variables_saved_for_relink
15886 # Do we need the "lib" prefix for modules?
15887 need_lib_prefix=$need_lib_prefix
15889 # Do we need a version for libraries?
15890 need_version=$need_version
15892 # Library versioning type.
15893 version_type=$version_type
15895 # Shared library runtime path variable.
15896 runpath_var=$runpath_var
15898 # Shared library path variable.
15899 shlibpath_var=$shlibpath_var
15901 # Is shlibpath searched before the hard-coded library search path?
15902 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15904 # Format of library name prefix.
15905 libname_spec=$lt_libname_spec
15907 # List of archive names. First name is the real one, the rest are links.
15908 # The last name is the one that the linker finds with -lNAME
15909 library_names_spec=$lt_library_names_spec
15911 # The coded name of the library, if different from the real name.
15912 soname_spec=$lt_soname_spec
15914 # Permission mode override for installation of shared libraries.
15915 install_override_mode=$lt_install_override_mode
15917 # Command to use after installation of a shared archive.
15918 postinstall_cmds=$lt_postinstall_cmds
15920 # Command to use after uninstallation of a shared archive.
15921 postuninstall_cmds=$lt_postuninstall_cmds
15923 # Commands used to finish a libtool library installation in a directory.
15924 finish_cmds=$lt_finish_cmds
15926 # As "finish_cmds", except a single script fragment to be evaled but
15928 finish_eval=$lt_finish_eval
15930 # Whether we should hardcode library paths into libraries.
15931 hardcode_into_libs=$hardcode_into_libs
15933 # Compile-time system search path for libraries.
15934 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15936 # Run-time system search path for libraries.
15937 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15939 # Whether dlopen is supported.
15940 dlopen_support=$enable_dlopen
15942 # Whether dlopen of programs is supported.
15943 dlopen_self=$enable_dlopen_self
15945 # Whether dlopen of statically linked programs is supported.
15946 dlopen_self_static=$enable_dlopen_self_static
15948 # Commands to strip libraries.
15949 old_striplib=$lt_old_striplib
15950 striplib=$lt_striplib
15953 # The linker used to build libraries.
15956 # How to create reloadable object files.
15957 reload_flag=$lt_reload_flag
15958 reload_cmds=$lt_reload_cmds
15960 # Commands used to build an old-style archive.
15961 old_archive_cmds=$lt_old_archive_cmds
15963 # A language specific compiler.
15966 # Is the compiler the GNU compiler?
15969 # Compiler flag to turn off builtin functions.
15970 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15972 # How to pass a linker flag through the compiler.
15973 wl=$lt_lt_prog_compiler_wl
15975 # Additional compiler flags for building library objects.
15976 pic_flag=$lt_lt_prog_compiler_pic
15978 # Compiler flag to prevent dynamic linking.
15979 link_static_flag=$lt_lt_prog_compiler_static
15981 # Does compiler simultaneously support -c and -o options?
15982 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15984 # Whether or not to add -lc for building shared libraries.
15985 build_libtool_need_lc=$archive_cmds_need_lc
15987 # Whether or not to disallow shared libs when runtime libs are static.
15988 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15990 # Compiler flag to allow reflexive dlopens.
15991 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15993 # Compiler flag to generate shared objects directly from archives.
15994 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15996 # Whether the compiler copes with passing no objects directly.
15997 compiler_needs_object=$lt_compiler_needs_object
15999 # Create an old-style archive from a shared archive.
16000 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16002 # Create a temporary old-style archive to link instead of a shared archive.
16003 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16005 # Commands used to build a shared archive.
16006 archive_cmds=$lt_archive_cmds
16007 archive_expsym_cmds=$lt_archive_expsym_cmds
16009 # Commands used to build a loadable module if different from building
16010 # a shared archive.
16011 module_cmds=$lt_module_cmds
16012 module_expsym_cmds=$lt_module_expsym_cmds
16014 # Whether we are building with GNU ld or not.
16015 with_gnu_ld=$lt_with_gnu_ld
16017 # Flag that allows shared libraries with undefined symbols to be built.
16018 allow_undefined_flag=$lt_allow_undefined_flag
16020 # Flag that enforces no undefined symbols.
16021 no_undefined_flag=$lt_no_undefined_flag
16023 # Flag to hardcode \$libdir into a binary during linking.
16024 # This must work even if \$libdir does not exist
16025 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16027 # If ld is used when linking, flag to hardcode \$libdir into a binary
16028 # during linking. This must work even if \$libdir does not exist.
16029 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16031 # Whether we need a single "-rpath" flag with a separated argument.
16032 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16034 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16035 # DIR into the resulting binary.
16036 hardcode_direct=$hardcode_direct
16038 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16039 # DIR into the resulting binary and the resulting library dependency is
16040 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16041 # library is relocated.
16042 hardcode_direct_absolute=$hardcode_direct_absolute
16044 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16045 # into the resulting binary.
16046 hardcode_minus_L=$hardcode_minus_L
16048 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16049 # into the resulting binary.
16050 hardcode_shlibpath_var=$hardcode_shlibpath_var
16052 # Set to "yes" if building a shared library automatically hardcodes DIR
16053 # into the library and all subsequent libraries and executables linked
16055 hardcode_automatic=$hardcode_automatic
16057 # Set to yes if linker adds runtime paths of dependent libraries
16058 # to runtime path list.
16059 inherit_rpath=$inherit_rpath
16061 # Whether libtool must link a program against all its dependency libraries.
16062 link_all_deplibs=$link_all_deplibs
16064 # Fix the shell variable \$srcfile for the compiler.
16065 fix_srcfile_path=$lt_fix_srcfile_path
16067 # Set to "yes" if exported symbols are required.
16068 always_export_symbols=$always_export_symbols
16070 # The commands to list exported symbols.
16071 export_symbols_cmds=$lt_export_symbols_cmds
16073 # Symbols that should not be listed in the preloaded symbols.
16074 exclude_expsyms=$lt_exclude_expsyms
16076 # Symbols that must always be exported.
16077 include_expsyms=$lt_include_expsyms
16079 # Commands necessary for linking programs (against libraries) with templates.
16080 prelink_cmds=$lt_prelink_cmds
16082 # Specify filename containing input files.
16083 file_list_spec=$lt_file_list_spec
16085 # How to hardcode a shared library path into an executable.
16086 hardcode_action=$hardcode_action
16088 # The directories searched by this compiler when creating a shared library.
16089 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16091 # Dependencies to place before and after the objects being linked to
16092 # create a shared library.
16093 predep_objects=$lt_predep_objects
16094 postdep_objects=$lt_postdep_objects
16095 predeps=$lt_predeps
16096 postdeps=$lt_postdeps
16098 # The library search path used internally by the compiler when linking
16099 # a shared library.
16100 compiler_lib_search_path=$lt_compiler_lib_search_path
16102 # ### END LIBTOOL CONFIG
16108 cat <<\_LT_EOF
>> "$cfgfile"
16109 # AIX sometimes has problems with the GCC collect2 program. For some
16110 # reason, if we set the COLLECT_NAMES environment variable, the problems
16111 # vanish in a puff of smoke.
16112 if test "X${COLLECT_NAMES+set}" != Xset
; then
16114 export COLLECT_NAMES
16121 ltmain
="$ac_aux_dir/ltmain.sh"
16124 # We use sed instead of cat because bash on DJGPP gets confused if
16125 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16126 # text mode, it properly converts lines to CR/LF. This bash problem
16127 # is reportedly fixed, but why not run on old versions too?
16128 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16129 ||
(rm -f "$cfgfile"; exit 1)
16133 cat << \_LT_EOF
>> "$cfgfile"
16135 # func_dirname file append nondir_replacement
16136 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16137 # otherwise set result to NONDIR_REPLACEMENT.
16141 */*) func_dirname_result
="${1%/*}${2}" ;;
16142 * ) func_dirname_result
="${3}" ;;
16146 # func_basename file
16149 func_basename_result
="${1##*/}"
16152 # func_dirname_and_basename file append nondir_replacement
16153 # perform func_basename and func_dirname in a single function
16155 # dirname: Compute the dirname of FILE. If nonempty,
16156 # add APPEND to the result, otherwise set result
16157 # to NONDIR_REPLACEMENT.
16158 # value returned in "$func_dirname_result"
16159 # basename: Compute filename of FILE.
16160 # value retuned in "$func_basename_result"
16161 # Implementation must be kept synchronized with func_dirname
16162 # and func_basename. For efficiency, we do not delegate to
16163 # those functions but instead duplicate the functionality here.
16164 func_dirname_and_basename
()
16167 */*) func_dirname_result
="${1%/*}${2}" ;;
16168 * ) func_dirname_result
="${3}" ;;
16170 func_basename_result
="${1##*/}"
16173 # func_stripname prefix suffix name
16174 # strip PREFIX and SUFFIX off of NAME.
16175 # PREFIX and SUFFIX must not contain globbing or regex special
16176 # characters, hashes, percent signs, but SUFFIX may contain a leading
16177 # dot (in which case that matches only a dot).
16180 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16181 # positional parameters, so assign one to ordinary parameter first.
16182 func_stripname_result
=${3}
16183 func_stripname_result
=${func_stripname_result#"${1}"}
16184 func_stripname_result
=${func_stripname_result%"${2}"}
16190 func_opt_split_opt
=${1%%=*}
16191 func_opt_split_arg
=${1#*=}
16198 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
16199 *) func_lo2o_result
=${1} ;;
16203 # func_xform libobj-or-source
16206 func_xform_result
=${1%.*}.lo
16209 # func_arith arithmetic-term...
16212 func_arith_result
=$
(( $
* ))
16216 # STRING may not start with a hyphen.
16219 func_len_result
=${#1}
16224 *) # Bourne compatible functions.
16225 cat << \_LT_EOF
>> "$cfgfile"
16227 # func_dirname file append nondir_replacement
16228 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16229 # otherwise set result to NONDIR_REPLACEMENT.
16232 # Extract subdirectory from the argument.
16233 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
16234 if test "X$func_dirname_result" = "X${1}"; then
16235 func_dirname_result
="${3}"
16237 func_dirname_result
="$func_dirname_result${2}"
16241 # func_basename file
16244 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
16248 # func_stripname prefix suffix name
16249 # strip PREFIX and SUFFIX off of NAME.
16250 # PREFIX and SUFFIX must not contain globbing or regex special
16251 # characters, hashes, percent signs, but SUFFIX may contain a leading
16252 # dot (in which case that matches only a dot).
16253 # func_strip_suffix prefix name
16257 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16258 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16263 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
16264 my_sed_long_arg
='1s/^-[^=]*=//'
16269 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16270 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16276 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
16279 # func_xform libobj-or-source
16282 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16285 # func_arith arithmetic-term...
16288 func_arith_result
=`expr "$@"`
16292 # STRING may not start with a hyphen.
16295 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16301 case $lt_shell_append in
16303 cat << \_LT_EOF
>> "$cfgfile"
16305 # func_append var value
16306 # Append VALUE to the end of shell variable VAR.
16314 cat << \_LT_EOF
>> "$cfgfile"
16316 # func_append var value
16317 # Append VALUE to the end of shell variable VAR.
16328 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16329 ||
(rm -f "$cfgfile"; exit 1)
16331 mv -f "$cfgfile" "$ofile" ||
16332 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16336 cat <<_LT_EOF >> "$ofile"
16338 # ### BEGIN LIBTOOL TAG CONFIG: CXX
16340 # The linker used to build libraries.
16343 # How to create reloadable object files.
16344 reload_flag=$lt_reload_flag_CXX
16345 reload_cmds=$lt_reload_cmds_CXX
16347 # Commands used to build an old-style archive.
16348 old_archive_cmds=$lt_old_archive_cmds_CXX
16350 # A language specific compiler.
16351 CC=$lt_compiler_CXX
16353 # Is the compiler the GNU compiler?
16356 # Compiler flag to turn off builtin functions.
16357 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16359 # How to pass a linker flag through the compiler.
16360 wl=$lt_lt_prog_compiler_wl_CXX
16362 # Additional compiler flags for building library objects.
16363 pic_flag=$lt_lt_prog_compiler_pic_CXX
16365 # Compiler flag to prevent dynamic linking.
16366 link_static_flag=$lt_lt_prog_compiler_static_CXX
16368 # Does compiler simultaneously support -c and -o options?
16369 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16371 # Whether or not to add -lc for building shared libraries.
16372 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16374 # Whether or not to disallow shared libs when runtime libs are static.
16375 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16377 # Compiler flag to allow reflexive dlopens.
16378 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16380 # Compiler flag to generate shared objects directly from archives.
16381 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16383 # Whether the compiler copes with passing no objects directly.
16384 compiler_needs_object=$lt_compiler_needs_object_CXX
16386 # Create an old-style archive from a shared archive.
16387 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16389 # Create a temporary old-style archive to link instead of a shared archive.
16390 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16392 # Commands used to build a shared archive.
16393 archive_cmds=$lt_archive_cmds_CXX
16394 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16396 # Commands used to build a loadable module if different from building
16397 # a shared archive.
16398 module_cmds=$lt_module_cmds_CXX
16399 module_expsym_cmds=$lt_module_expsym_cmds_CXX
16401 # Whether we are building with GNU ld or not.
16402 with_gnu_ld=$lt_with_gnu_ld_CXX
16404 # Flag that allows shared libraries with undefined symbols to be built.
16405 allow_undefined_flag=$lt_allow_undefined_flag_CXX
16407 # Flag that enforces no undefined symbols.
16408 no_undefined_flag=$lt_no_undefined_flag_CXX
16410 # Flag to hardcode \$libdir into a binary during linking.
16411 # This must work even if \$libdir does not exist
16412 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16414 # If ld is used when linking, flag to hardcode \$libdir into a binary
16415 # during linking. This must work even if \$libdir does not exist.
16416 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16418 # Whether we need a single "-rpath" flag with a separated argument.
16419 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16421 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16422 # DIR into the resulting binary.
16423 hardcode_direct=$hardcode_direct_CXX
16425 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16426 # DIR into the resulting binary and the resulting library dependency is
16427 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16428 # library is relocated.
16429 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
16431 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16432 # into the resulting binary.
16433 hardcode_minus_L=$hardcode_minus_L_CXX
16435 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16436 # into the resulting binary.
16437 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16439 # Set to "yes" if building a shared library automatically hardcodes DIR
16440 # into the library and all subsequent libraries and executables linked
16442 hardcode_automatic=$hardcode_automatic_CXX
16444 # Set to yes if linker adds runtime paths of dependent libraries
16445 # to runtime path list.
16446 inherit_rpath=$inherit_rpath_CXX
16448 # Whether libtool must link a program against all its dependency libraries.
16449 link_all_deplibs=$link_all_deplibs_CXX
16451 # Fix the shell variable \$srcfile for the compiler.
16452 fix_srcfile_path=$lt_fix_srcfile_path_CXX
16454 # Set to "yes" if exported symbols are required.
16455 always_export_symbols=$always_export_symbols_CXX
16457 # The commands to list exported symbols.
16458 export_symbols_cmds=$lt_export_symbols_cmds_CXX
16460 # Symbols that should not be listed in the preloaded symbols.
16461 exclude_expsyms=$lt_exclude_expsyms_CXX
16463 # Symbols that must always be exported.
16464 include_expsyms=$lt_include_expsyms_CXX
16466 # Commands necessary for linking programs (against libraries) with templates.
16467 prelink_cmds=$lt_prelink_cmds_CXX
16469 # Specify filename containing input files.
16470 file_list_spec=$lt_file_list_spec_CXX
16472 # How to hardcode a shared library path into an executable.
16473 hardcode_action=$hardcode_action_CXX
16475 # The directories searched by this compiler when creating a shared library.
16476 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16478 # Dependencies to place before and after the objects being linked to
16479 # create a shared library.
16480 predep_objects=$lt_predep_objects_CXX
16481 postdep_objects=$lt_postdep_objects_CXX
16482 predeps=$lt_predeps_CXX
16483 postdeps=$lt_postdeps_CXX
16485 # The library search path used internally by the compiler when linking
16486 # a shared library.
16487 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16489 # ### END LIBTOOL TAG CONFIG: CXX
16495 chmod +x
"$CONFIG_LT"
16497 # configure is writing to config.log, but config.lt does its own redirection,
16498 # appending to config.log, which fails on DOS, as config.log is still kept
16499 # open by configure. Here we exec the FD to /dev/null, effectively closing
16500 # config.log, so it can be properly (re)opened and appended to by config.lt.
16502 test "$silent" = yes &&
16503 lt_config_lt_args
="$lt_config_lt_args --quiet"
16505 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success
=false
16507 $lt_cl_success || as_fn_exit
1
16510 # We require a C++17 compiler. Check if one is available, and if
16511 # necessary, set CXX_DIALECT to some -std=xxx switch.
16512 ax_cxx_compile_alternatives
="17 1z" ax_cxx_compile_cxx17_required
=true
16514 ac_cpp
='$CXXCPP $CPPFLAGS'
16515 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16516 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16517 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
16521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features by default" >&5
16522 $as_echo_n "checking whether $CXX supports C++17 features by default... " >&6; }
16523 if ${ax_cv_cxx_compile_cxx17+:} false
; then :
16524 $as_echo_n "(cached) " >&6
16526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16527 /* end confdefs.h. */
16530 // If the compiler admits that it is not ready for C++11, why torture it?
16531 // Hopefully, this will speed up the test.
16533 #ifndef __cplusplus
16535 #error "This is not a C++ compiler"
16537 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
16538 // only set it correctly if /Zc:__cplusplus is specified as well as a
16539 // /std:c++NN switch:
16540 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
16541 #elif __cplusplus < 201103L && !defined _MSC_VER
16543 #error "This is not a C++11 compiler"
16550 namespace test_static_assert
16553 template <typename T>
16556 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16561 namespace test_final_override
16567 virtual void f() {}
16570 struct Derived : public Base
16572 virtual ~Derived() override {}
16573 virtual void f() override {}
16578 namespace test_double_right_angle_brackets
16581 template < typename T >
16584 typedef check<void> single_type;
16585 typedef check<check<void>> double_type;
16586 typedef check<check<check<void>>> triple_type;
16587 typedef check<check<check<check<void>>>> quadruple_type;
16591 namespace test_decltype
16604 namespace test_type_deduction
16607 template < typename T1, typename T2 >
16610 static const bool value = false;
16613 template < typename T >
16614 struct is_same<T, T>
16616 static const bool value = true;
16619 template < typename T1, typename T2 >
16621 add(T1 a1, T2 a2) -> decltype(a1 + a2)
16627 test(const int c, volatile int v)
16629 static_assert(is_same<int, decltype(0)>::value == true, "");
16630 static_assert(is_same<int, decltype(c)>::value == false, "");
16631 static_assert(is_same<int, decltype(v)>::value == false, "");
16634 auto sumi = ac + av + 'x';
16635 auto sumf = ac + av + 1.0;
16636 static_assert(is_same<int, decltype(ac)>::value == true, "");
16637 static_assert(is_same<int, decltype(av)>::value == true, "");
16638 static_assert(is_same<int, decltype(sumi)>::value == true, "");
16639 static_assert(is_same<int, decltype(sumf)>::value == false, "");
16640 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
16641 return (sumf > 0.0) ? sumi : add(c, v);
16646 namespace test_noexcept
16649 int f() { return 0; }
16650 int g() noexcept { return 0; }
16652 static_assert(noexcept(f()) == false, "");
16653 static_assert(noexcept(g()) == true, "");
16657 namespace test_constexpr
16660 template < typename CharT >
16661 unsigned long constexpr
16662 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
16664 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
16667 template < typename CharT >
16668 unsigned long constexpr
16669 strlen_c(const CharT *const s) noexcept
16671 return strlen_c_r(s, 0UL);
16674 static_assert(strlen_c("") == 0UL, "");
16675 static_assert(strlen_c("1") == 1UL, "");
16676 static_assert(strlen_c("example") == 7UL, "");
16677 static_assert(strlen_c("another\0example") == 7UL, "");
16681 namespace test_rvalue_references
16687 static constexpr int value = N;
16690 answer<1> f(int&) { return answer<1>(); }
16691 answer<2> f(const int&) { return answer<2>(); }
16692 answer<3> f(int&&) { return answer<3>(); }
16699 static_assert(decltype(f(i))::value == 1, "");
16700 static_assert(decltype(f(c))::value == 2, "");
16701 static_assert(decltype(f(0))::value == 3, "");
16706 namespace test_uniform_initialization
16711 static const int zero {};
16712 static const int one {1};
16715 static_assert(test::zero == 0, "");
16716 static_assert(test::one == 1, "");
16720 namespace test_lambdas
16726 auto lambda1 = [](){};
16727 auto lambda2 = lambda1;
16735 auto a = [](int i, int j){ return i + j; }(1, 2);
16736 auto b = []() -> int { return '0'; }();
16737 auto c = [=](){ return a + b; }();
16738 auto d = [&](){ return c; }();
16739 auto e = [a, &b](int x) mutable {
16740 const auto identity = [](int y){ return y; };
16741 for (auto i = 0; i < a; ++i)
16743 return x + identity(a + b);
16745 return a + b + c + d + e;
16751 const auto nullary = [](){ return 0; };
16752 const auto unary = [](int x){ return x; };
16753 using nullary_t = decltype(nullary);
16754 using unary_t = decltype(unary);
16755 const auto higher1st = [](nullary_t f){ return f(); };
16756 const auto higher2nd = [unary](nullary_t f1){
16757 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
16759 return higher1st(nullary) + higher2nd(nullary)(unary);
16764 namespace test_variadic_templates
16770 template <int N0, int... N1toN>
16771 struct sum<N0, N1toN...>
16773 static constexpr auto value = N0 + sum<N1toN...>::value;
16779 static constexpr auto value = 0;
16782 static_assert(sum<>::value == 0, "");
16783 static_assert(sum<1>::value == 1, "");
16784 static_assert(sum<23>::value == 23, "");
16785 static_assert(sum<1, 2>::value == 3, "");
16786 static_assert(sum<5, 5, 11>::value == 21, "");
16787 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
16791 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
16792 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
16793 // because of this.
16794 namespace test_template_alias_sfinae
16799 template<typename T>
16800 using member = typename T::member_type;
16802 template<typename T>
16805 template<typename T>
16806 void func(member<T>*) {}
16810 void test() { func<foo>(0); }
16814 } // namespace cxx11
16816 #endif // __cplusplus >= 201103L
16821 // If the compiler admits that it is not ready for C++14, why torture it?
16822 // Hopefully, this will speed up the test.
16824 #ifndef __cplusplus
16826 #error "This is not a C++ compiler"
16828 #elif __cplusplus < 201402L && !defined _MSC_VER
16830 #error "This is not a C++14 compiler"
16837 namespace test_polymorphic_lambdas
16843 const auto lambda = [](auto&&... args){
16844 const auto istiny = [](auto x){
16845 return (sizeof(x) == 1UL) ? 1 : 0;
16847 const int aretiny[] = { istiny(args)... };
16850 return lambda(1, 1L, 1.0f, '1');
16855 namespace test_binary_literals
16858 constexpr auto ivii = 0b0000000000101010;
16859 static_assert(ivii == 42, "wrong value");
16863 namespace test_generalized_constexpr
16866 template < typename CharT >
16867 constexpr unsigned long
16868 strlen_c(const CharT *const s) noexcept
16871 for (auto p = s; *p; ++p)
16876 static_assert(strlen_c("") == 0UL, "");
16877 static_assert(strlen_c("x") == 1UL, "");
16878 static_assert(strlen_c("test") == 4UL, "");
16879 static_assert(strlen_c("another\0test") == 7UL, "");
16883 namespace test_lambda_init_capture
16890 const auto lambda1 = [a = x](int b){ return a + b; };
16891 const auto lambda2 = [a = lambda1(x)](){ return a; };
16897 namespace test_digit_separators
16900 constexpr auto ten_million = 100'000'000;
16901 static_assert(ten_million == 100000000, "");
16905 namespace test_return_type_deduction
16908 auto f(int& x) { return x; }
16909 decltype(auto) g(int& x) { return x; }
16911 template < typename T1, typename T2 >
16914 static constexpr auto value = false;
16917 template < typename T >
16918 struct is_same<T, T>
16920 static constexpr auto value = true;
16927 static_assert(is_same<int, decltype(f(x))>::value, "");
16928 static_assert(is_same<int&, decltype(g(x))>::value, "");
16934 } // namespace cxx14
16936 #endif // __cplusplus >= 201402L
16941 // If the compiler admits that it is not ready for C++17, why torture it?
16942 // Hopefully, this will speed up the test.
16944 #ifndef __cplusplus
16946 #error "This is not a C++ compiler"
16948 #elif __cplusplus < 201703L && !defined _MSC_VER
16950 #error "This is not a C++17 compiler"
16954 #include <initializer_list>
16956 #include <type_traits>
16961 namespace test_constexpr_lambdas
16964 constexpr int foo = [](){return 42;}();
16968 namespace test::nested_namespace::definitions
16973 namespace test_fold_expression
16976 template<typename... Args>
16977 int multiply(Args... args)
16979 return (args * ... * 1);
16982 template<typename... Args>
16983 bool all(Args... args)
16985 return (args && ...);
16990 namespace test_extended_static_assert
16993 static_assert (true);
16997 namespace test_auto_brace_init_list
17003 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
17004 static_assert(std::is_same<int, decltype(bar)>::value);
17007 namespace test_typename_in_template_template_parameter
17010 template<template<typename> typename X> struct D;
17014 namespace test_fallthrough_nodiscard_maybe_unused_attributes
17022 [[nodiscard]] int f2()
17024 [[maybe_unused]] auto unused = f1();
17039 namespace test_extended_aggregate_initialization
17055 struct derived : base1, base2
17060 derived d1 {{1, 2}, {}, 4}; // full initialization
17061 derived d2 {{}, {}, 4}; // value-initialized bases
17065 namespace test_general_range_based_for_loop
17077 const int& operator* () const
17094 bool operator== (const iter& i, const sentinel& s)
17099 bool operator!= (const iter& i, const sentinel& s)
17111 sentinel end() const
17123 [[maybe_unused]] auto v = i;
17129 namespace test_lambda_capture_asterisk_this_by_value
17146 namespace test_enum_class_construction
17149 enum class byte : unsigned char
17156 namespace test_constexpr_if
17159 template <bool cond>
17174 namespace test_selection_statement_with_initializer
17184 if (auto i = f(); i > 0)
17189 switch (auto i = f(); i + 4)
17201 namespace test_template_argument_deduction_for_class_templates
17204 template <typename T1, typename T2>
17207 pair (T1 p1, T2 p2)
17218 [[maybe_unused]] auto p = pair{13, 42u};
17223 namespace test_non_type_auto_template_parameters
17235 namespace test_structured_bindings
17238 int arr[2] = { 1, 2 };
17239 std::pair<int, int> pr = { 1, 2 };
17241 auto f1() -> int(&)[2]
17246 auto f2() -> std::pair<int, int>&
17254 volatile double y1;
17262 auto [ x1, y1 ] = f1();
17263 auto& [ xr1, yr1 ] = f1();
17264 auto [ x2, y2 ] = f2();
17265 auto& [ xr2, yr2 ] = f2();
17266 const auto [ x3, y3 ] = f3();
17270 namespace test_exception_spec_type_system
17276 void g1() noexcept;
17279 template<typename T>
17283 template<typename T1, typename T2>
17287 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
17291 namespace test_inline_variables
17294 template<class T> void f(T)
17297 template<class T> inline T g(T)
17302 template<> inline void f<>(int)
17305 template<> int g<>(int)
17312 } // namespace cxx17
17314 #endif // __cplusplus < 201703L && !defined _MSC_VER
17319 if ac_fn_cxx_try_compile
"$LINENO"; then :
17320 ax_cv_cxx_compile_cxx17
=yes
17322 ax_cv_cxx_compile_cxx17
=no
17324 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx17" >&5
17327 $as_echo "$ax_cv_cxx_compile_cxx17" >&6; }
17328 if test x
$ax_cv_cxx_compile_cxx17 = xyes
; then
17332 if test x
$ac_success = xno
; then
17333 for alternative
in ${ax_cxx_compile_alternatives}; do
17334 switch
="-std=gnu++${alternative}"
17335 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh`
17336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5
17337 $as_echo_n "checking whether $CXX supports C++17 features with $switch... " >&6; }
17338 if eval \
${$cachevar+:} false
; then :
17339 $as_echo_n "(cached) " >&6
17343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17344 /* end confdefs.h. */
17347 // If the compiler admits that it is not ready for C++11, why torture it?
17348 // Hopefully, this will speed up the test.
17350 #ifndef __cplusplus
17352 #error "This is not a C++ compiler"
17354 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
17355 // only set it correctly if /Zc:__cplusplus is specified as well as a
17356 // /std:c++NN switch:
17357 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
17358 #elif __cplusplus < 201103L && !defined _MSC_VER
17360 #error "This is not a C++11 compiler"
17367 namespace test_static_assert
17370 template <typename T>
17373 static_assert(sizeof(int) <= sizeof(T), "not big enough");
17378 namespace test_final_override
17384 virtual void f() {}
17387 struct Derived : public Base
17389 virtual ~Derived() override {}
17390 virtual void f() override {}
17395 namespace test_double_right_angle_brackets
17398 template < typename T >
17401 typedef check<void> single_type;
17402 typedef check<check<void>> double_type;
17403 typedef check<check<check<void>>> triple_type;
17404 typedef check<check<check<check<void>>>> quadruple_type;
17408 namespace test_decltype
17421 namespace test_type_deduction
17424 template < typename T1, typename T2 >
17427 static const bool value = false;
17430 template < typename T >
17431 struct is_same<T, T>
17433 static const bool value = true;
17436 template < typename T1, typename T2 >
17438 add(T1 a1, T2 a2) -> decltype(a1 + a2)
17444 test(const int c, volatile int v)
17446 static_assert(is_same<int, decltype(0)>::value == true, "");
17447 static_assert(is_same<int, decltype(c)>::value == false, "");
17448 static_assert(is_same<int, decltype(v)>::value == false, "");
17451 auto sumi = ac + av + 'x';
17452 auto sumf = ac + av + 1.0;
17453 static_assert(is_same<int, decltype(ac)>::value == true, "");
17454 static_assert(is_same<int, decltype(av)>::value == true, "");
17455 static_assert(is_same<int, decltype(sumi)>::value == true, "");
17456 static_assert(is_same<int, decltype(sumf)>::value == false, "");
17457 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
17458 return (sumf > 0.0) ? sumi : add(c, v);
17463 namespace test_noexcept
17466 int f() { return 0; }
17467 int g() noexcept { return 0; }
17469 static_assert(noexcept(f()) == false, "");
17470 static_assert(noexcept(g()) == true, "");
17474 namespace test_constexpr
17477 template < typename CharT >
17478 unsigned long constexpr
17479 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
17481 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
17484 template < typename CharT >
17485 unsigned long constexpr
17486 strlen_c(const CharT *const s) noexcept
17488 return strlen_c_r(s, 0UL);
17491 static_assert(strlen_c("") == 0UL, "");
17492 static_assert(strlen_c("1") == 1UL, "");
17493 static_assert(strlen_c("example") == 7UL, "");
17494 static_assert(strlen_c("another\0example") == 7UL, "");
17498 namespace test_rvalue_references
17504 static constexpr int value = N;
17507 answer<1> f(int&) { return answer<1>(); }
17508 answer<2> f(const int&) { return answer<2>(); }
17509 answer<3> f(int&&) { return answer<3>(); }
17516 static_assert(decltype(f(i))::value == 1, "");
17517 static_assert(decltype(f(c))::value == 2, "");
17518 static_assert(decltype(f(0))::value == 3, "");
17523 namespace test_uniform_initialization
17528 static const int zero {};
17529 static const int one {1};
17532 static_assert(test::zero == 0, "");
17533 static_assert(test::one == 1, "");
17537 namespace test_lambdas
17543 auto lambda1 = [](){};
17544 auto lambda2 = lambda1;
17552 auto a = [](int i, int j){ return i + j; }(1, 2);
17553 auto b = []() -> int { return '0'; }();
17554 auto c = [=](){ return a + b; }();
17555 auto d = [&](){ return c; }();
17556 auto e = [a, &b](int x) mutable {
17557 const auto identity = [](int y){ return y; };
17558 for (auto i = 0; i < a; ++i)
17560 return x + identity(a + b);
17562 return a + b + c + d + e;
17568 const auto nullary = [](){ return 0; };
17569 const auto unary = [](int x){ return x; };
17570 using nullary_t = decltype(nullary);
17571 using unary_t = decltype(unary);
17572 const auto higher1st = [](nullary_t f){ return f(); };
17573 const auto higher2nd = [unary](nullary_t f1){
17574 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
17576 return higher1st(nullary) + higher2nd(nullary)(unary);
17581 namespace test_variadic_templates
17587 template <int N0, int... N1toN>
17588 struct sum<N0, N1toN...>
17590 static constexpr auto value = N0 + sum<N1toN...>::value;
17596 static constexpr auto value = 0;
17599 static_assert(sum<>::value == 0, "");
17600 static_assert(sum<1>::value == 1, "");
17601 static_assert(sum<23>::value == 23, "");
17602 static_assert(sum<1, 2>::value == 3, "");
17603 static_assert(sum<5, 5, 11>::value == 21, "");
17604 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
17608 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
17609 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
17610 // because of this.
17611 namespace test_template_alias_sfinae
17616 template<typename T>
17617 using member = typename T::member_type;
17619 template<typename T>
17622 template<typename T>
17623 void func(member<T>*) {}
17627 void test() { func<foo>(0); }
17631 } // namespace cxx11
17633 #endif // __cplusplus >= 201103L
17638 // If the compiler admits that it is not ready for C++14, why torture it?
17639 // Hopefully, this will speed up the test.
17641 #ifndef __cplusplus
17643 #error "This is not a C++ compiler"
17645 #elif __cplusplus < 201402L && !defined _MSC_VER
17647 #error "This is not a C++14 compiler"
17654 namespace test_polymorphic_lambdas
17660 const auto lambda = [](auto&&... args){
17661 const auto istiny = [](auto x){
17662 return (sizeof(x) == 1UL) ? 1 : 0;
17664 const int aretiny[] = { istiny(args)... };
17667 return lambda(1, 1L, 1.0f, '1');
17672 namespace test_binary_literals
17675 constexpr auto ivii = 0b0000000000101010;
17676 static_assert(ivii == 42, "wrong value");
17680 namespace test_generalized_constexpr
17683 template < typename CharT >
17684 constexpr unsigned long
17685 strlen_c(const CharT *const s) noexcept
17688 for (auto p = s; *p; ++p)
17693 static_assert(strlen_c("") == 0UL, "");
17694 static_assert(strlen_c("x") == 1UL, "");
17695 static_assert(strlen_c("test") == 4UL, "");
17696 static_assert(strlen_c("another\0test") == 7UL, "");
17700 namespace test_lambda_init_capture
17707 const auto lambda1 = [a = x](int b){ return a + b; };
17708 const auto lambda2 = [a = lambda1(x)](){ return a; };
17714 namespace test_digit_separators
17717 constexpr auto ten_million = 100'000'000;
17718 static_assert(ten_million == 100000000, "");
17722 namespace test_return_type_deduction
17725 auto f(int& x) { return x; }
17726 decltype(auto) g(int& x) { return x; }
17728 template < typename T1, typename T2 >
17731 static constexpr auto value = false;
17734 template < typename T >
17735 struct is_same<T, T>
17737 static constexpr auto value = true;
17744 static_assert(is_same<int, decltype(f(x))>::value, "");
17745 static_assert(is_same<int&, decltype(g(x))>::value, "");
17751 } // namespace cxx14
17753 #endif // __cplusplus >= 201402L
17758 // If the compiler admits that it is not ready for C++17, why torture it?
17759 // Hopefully, this will speed up the test.
17761 #ifndef __cplusplus
17763 #error "This is not a C++ compiler"
17765 #elif __cplusplus < 201703L && !defined _MSC_VER
17767 #error "This is not a C++17 compiler"
17771 #include <initializer_list>
17773 #include <type_traits>
17778 namespace test_constexpr_lambdas
17781 constexpr int foo = [](){return 42;}();
17785 namespace test::nested_namespace::definitions
17790 namespace test_fold_expression
17793 template<typename... Args>
17794 int multiply(Args... args)
17796 return (args * ... * 1);
17799 template<typename... Args>
17800 bool all(Args... args)
17802 return (args && ...);
17807 namespace test_extended_static_assert
17810 static_assert (true);
17814 namespace test_auto_brace_init_list
17820 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
17821 static_assert(std::is_same<int, decltype(bar)>::value);
17824 namespace test_typename_in_template_template_parameter
17827 template<template<typename> typename X> struct D;
17831 namespace test_fallthrough_nodiscard_maybe_unused_attributes
17839 [[nodiscard]] int f2()
17841 [[maybe_unused]] auto unused = f1();
17856 namespace test_extended_aggregate_initialization
17872 struct derived : base1, base2
17877 derived d1 {{1, 2}, {}, 4}; // full initialization
17878 derived d2 {{}, {}, 4}; // value-initialized bases
17882 namespace test_general_range_based_for_loop
17894 const int& operator* () const
17911 bool operator== (const iter& i, const sentinel& s)
17916 bool operator!= (const iter& i, const sentinel& s)
17928 sentinel end() const
17940 [[maybe_unused]] auto v = i;
17946 namespace test_lambda_capture_asterisk_this_by_value
17963 namespace test_enum_class_construction
17966 enum class byte : unsigned char
17973 namespace test_constexpr_if
17976 template <bool cond>
17991 namespace test_selection_statement_with_initializer
18001 if (auto i = f(); i > 0)
18006 switch (auto i = f(); i + 4)
18018 namespace test_template_argument_deduction_for_class_templates
18021 template <typename T1, typename T2>
18024 pair (T1 p1, T2 p2)
18035 [[maybe_unused]] auto p = pair{13, 42u};
18040 namespace test_non_type_auto_template_parameters
18052 namespace test_structured_bindings
18055 int arr[2] = { 1, 2 };
18056 std::pair<int, int> pr = { 1, 2 };
18058 auto f1() -> int(&)[2]
18063 auto f2() -> std::pair<int, int>&
18071 volatile double y1;
18079 auto [ x1, y1 ] = f1();
18080 auto& [ xr1, yr1 ] = f1();
18081 auto [ x2, y2 ] = f2();
18082 auto& [ xr2, yr2 ] = f2();
18083 const auto [ x3, y3 ] = f3();
18087 namespace test_exception_spec_type_system
18093 void g1() noexcept;
18096 template<typename T>
18100 template<typename T1, typename T2>
18104 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
18108 namespace test_inline_variables
18111 template<class T> void f(T)
18114 template<class T> inline T g(T)
18119 template<> inline void f<>(int)
18122 template<> int g<>(int)
18129 } // namespace cxx17
18131 #endif // __cplusplus < 201703L && !defined _MSC_VER
18136 if ac_fn_cxx_try_compile
"$LINENO"; then :
18141 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18144 eval ac_res
=\$
$cachevar
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18146 $as_echo "$ac_res" >&6; }
18147 if eval test x\$
$cachevar = xyes
; then
18148 CXX_DIALECT
="$switch"
18150 if test -n "$CXXCPP" ; then
18151 CXXCPP
="$CXXCPP $switch"
18159 if test x
$ac_success = xno
; then
18160 for alternative
in ${ax_cxx_compile_alternatives}; do
18161 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}" MSVC; do
18162 if test x"$switch" = xMSVC; then
18163 switch=-std:c++${alternative}
18164 cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_
${switch}_MSVC
" | $as_tr_sh`
18166 cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_
$switch" | $as_tr_sh`
18168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++17 features with
$switch" >&5
18169 $as_echo_n "checking whether
$CXX supports C
++17 features with
$switch...
" >&6; }
18170 if eval \${$cachevar+:} false; then :
18171 $as_echo_n "(cached
) " >&6
18175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18176 /* end confdefs.h. */
18179 // If the compiler admits that it is not ready for C++11, why torture it?
18180 // Hopefully, this will speed up the test.
18182 #ifndef __cplusplus
18184 #error "This is not a C
++ compiler
"
18186 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
18187 // only set it correctly if /Zc:__cplusplus is specified as well as a
18188 // /std:c++NN switch:
18189 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
18190 #elif __cplusplus < 201103L && !defined _MSC_VER
18192 #error "This is not a C
++11 compiler
"
18199 namespace test_static_assert
18202 template <typename T>
18205 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
18210 namespace test_final_override
18216 virtual void f() {}
18219 struct Derived : public Base
18221 virtual ~Derived() override {}
18222 virtual void f() override {}
18227 namespace test_double_right_angle_brackets
18230 template < typename T >
18233 typedef check<void> single_type;
18234 typedef check<check<void>> double_type;
18235 typedef check<check<check<void>>> triple_type;
18236 typedef check<check<check<check<void>>>> quadruple_type;
18240 namespace test_decltype
18253 namespace test_type_deduction
18256 template < typename T1, typename T2 >
18259 static const bool value = false;
18262 template < typename T >
18263 struct is_same<T, T>
18265 static const bool value = true;
18268 template < typename T1, typename T2 >
18270 add(T1 a1, T2 a2) -> decltype(a1 + a2)
18276 test(const int c, volatile int v)
18278 static_assert(is_same<int, decltype(0)>::value == true, "");
18279 static_assert(is_same<int, decltype(c)>::value == false, "");
18280 static_assert(is_same<int, decltype(v)>::value == false, "");
18283 auto sumi = ac + av + 'x';
18284 auto sumf = ac + av + 1.0;
18285 static_assert(is_same<int, decltype(ac)>::value == true, "");
18286 static_assert(is_same<int, decltype(av)>::value == true, "");
18287 static_assert(is_same<int, decltype(sumi)>::value == true, "");
18288 static_assert(is_same<int, decltype(sumf)>::value == false, "");
18289 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18290 return (sumf > 0.0) ? sumi : add(c, v);
18295 namespace test_noexcept
18298 int f() { return 0; }
18299 int g() noexcept { return 0; }
18301 static_assert(noexcept(f()) == false, "");
18302 static_assert(noexcept(g()) == true, "");
18306 namespace test_constexpr
18309 template < typename CharT >
18310 unsigned long constexpr
18311 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18313 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18316 template < typename CharT >
18317 unsigned long constexpr
18318 strlen_c(const CharT *const s) noexcept
18320 return strlen_c_r(s, 0UL);
18323 static_assert(strlen_c("") == 0UL, "");
18324 static_assert(strlen_c("1") == 1UL, "");
18325 static_assert(strlen_c("example
") == 7UL, "");
18326 static_assert(strlen_c("another\
0example
") == 7UL, "");
18330 namespace test_rvalue_references
18336 static constexpr int value = N;
18339 answer<1> f(int&) { return answer<1>(); }
18340 answer<2> f(const int&) { return answer<2>(); }
18341 answer<3> f(int&&) { return answer<3>(); }
18348 static_assert(decltype(f(i))::value == 1, "");
18349 static_assert(decltype(f(c))::value == 2, "");
18350 static_assert(decltype(f(0))::value == 3, "");
18355 namespace test_uniform_initialization
18360 static const int zero {};
18361 static const int one {1};
18364 static_assert(test::zero == 0, "");
18365 static_assert(test::one == 1, "");
18369 namespace test_lambdas
18375 auto lambda1 = [](){};
18376 auto lambda2 = lambda1;
18384 auto a = [](int i, int j){ return i + j; }(1, 2);
18385 auto b = []() -> int { return '0'; }();
18386 auto c = [=](){ return a + b; }();
18387 auto d = [&](){ return c; }();
18388 auto e = [a, &b](int x) mutable {
18389 const auto identity = [](int y){ return y; };
18390 for (auto i = 0; i < a; ++i)
18392 return x + identity(a + b);
18394 return a + b + c + d + e;
18400 const auto nullary = [](){ return 0; };
18401 const auto unary = [](int x){ return x; };
18402 using nullary_t = decltype(nullary);
18403 using unary_t = decltype(unary);
18404 const auto higher1st = [](nullary_t f){ return f(); };
18405 const auto higher2nd = [unary](nullary_t f1){
18406 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18408 return higher1st(nullary) + higher2nd(nullary)(unary);
18413 namespace test_variadic_templates
18419 template <int N0, int... N1toN>
18420 struct sum<N0, N1toN...>
18422 static constexpr auto value = N0 + sum<N1toN...>::value;
18428 static constexpr auto value = 0;
18431 static_assert(sum<>::value == 0, "");
18432 static_assert(sum<1>::value == 1, "");
18433 static_assert(sum<23>::value == 23, "");
18434 static_assert(sum<1, 2>::value == 3, "");
18435 static_assert(sum<5, 5, 11>::value == 21, "");
18436 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18440 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18441 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18442 // because of this.
18443 namespace test_template_alias_sfinae
18448 template<typename T>
18449 using member = typename T::member_type;
18451 template<typename T>
18454 template<typename T>
18455 void func(member<T>*) {}
18459 void test() { func<foo>(0); }
18463 } // namespace cxx11
18465 #endif // __cplusplus >= 201103L
18470 // If the compiler admits that it is not ready for C++14, why torture it?
18471 // Hopefully, this will speed up the test.
18473 #ifndef __cplusplus
18475 #error "This is not a C
++ compiler
"
18477 #elif __cplusplus < 201402L && !defined _MSC_VER
18479 #error "This is not a C
++14 compiler
"
18486 namespace test_polymorphic_lambdas
18492 const auto lambda = [](auto&&... args){
18493 const auto istiny = [](auto x){
18494 return (sizeof(x) == 1UL) ? 1 : 0;
18496 const int aretiny[] = { istiny(args)... };
18499 return lambda(1, 1L, 1.0f, '1');
18504 namespace test_binary_literals
18507 constexpr auto ivii = 0b0000000000101010;
18508 static_assert(ivii == 42, "wrong value
");
18512 namespace test_generalized_constexpr
18515 template < typename CharT >
18516 constexpr unsigned long
18517 strlen_c(const CharT *const s) noexcept
18520 for (auto p = s; *p; ++p)
18525 static_assert(strlen_c("") == 0UL, "");
18526 static_assert(strlen_c("x
") == 1UL, "");
18527 static_assert(strlen_c("test") == 4UL, "");
18528 static_assert(strlen_c("another\
0test") == 7UL, "");
18532 namespace test_lambda_init_capture
18539 const auto lambda1 = [a = x](int b){ return a + b; };
18540 const auto lambda2 = [a = lambda1(x)](){ return a; };
18546 namespace test_digit_separators
18549 constexpr auto ten_million = 100'000'000;
18550 static_assert(ten_million == 100000000, "");
18554 namespace test_return_type_deduction
18557 auto f(int& x) { return x; }
18558 decltype(auto) g(int& x) { return x; }
18560 template < typename T1, typename T2 >
18563 static constexpr auto value = false;
18566 template < typename T >
18567 struct is_same<T, T>
18569 static constexpr auto value = true;
18576 static_assert(is_same<int, decltype(f(x))>::value, "");
18577 static_assert(is_same<int&, decltype(g(x))>::value, "");
18583 } // namespace cxx14
18585 #endif // __cplusplus >= 201402L
18590 // If the compiler admits that it is not ready for C++17, why torture it?
18591 // Hopefully, this will speed up the test.
18593 #ifndef __cplusplus
18595 #error "This is not a C
++ compiler
"
18597 #elif __cplusplus < 201703L && !defined _MSC_VER
18599 #error "This is not a C
++17 compiler
"
18603 #include <initializer_list>
18605 #include <type_traits>
18610 namespace test_constexpr_lambdas
18613 constexpr int foo = [](){return 42;}();
18617 namespace test::nested_namespace::definitions
18622 namespace test_fold_expression
18625 template<typename... Args>
18626 int multiply(Args... args)
18628 return (args * ... * 1);
18631 template<typename... Args>
18632 bool all(Args... args)
18634 return (args && ...);
18639 namespace test_extended_static_assert
18642 static_assert (true);
18646 namespace test_auto_brace_init_list
18652 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
18653 static_assert(std::is_same<int, decltype(bar)>::value);
18656 namespace test_typename_in_template_template_parameter
18659 template<template<typename> typename X> struct D;
18663 namespace test_fallthrough_nodiscard_maybe_unused_attributes
18671 [[nodiscard]] int f2()
18673 [[maybe_unused]] auto unused = f1();
18688 namespace test_extended_aggregate_initialization
18704 struct derived : base1, base2
18709 derived d1 {{1, 2}, {}, 4}; // full initialization
18710 derived d2 {{}, {}, 4}; // value-initialized bases
18714 namespace test_general_range_based_for_loop
18726 const int& operator* () const
18743 bool operator== (const iter& i, const sentinel& s)
18748 bool operator!= (const iter& i, const sentinel& s)
18760 sentinel end() const
18772 [[maybe_unused]] auto v = i;
18778 namespace test_lambda_capture_asterisk_this_by_value
18795 namespace test_enum_class_construction
18798 enum class byte : unsigned char
18805 namespace test_constexpr_if
18808 template <bool cond>
18823 namespace test_selection_statement_with_initializer
18833 if (auto i = f(); i > 0)
18838 switch (auto i = f(); i + 4)
18850 namespace test_template_argument_deduction_for_class_templates
18853 template <typename T1, typename T2>
18856 pair (T1 p1, T2 p2)
18867 [[maybe_unused]] auto p = pair{13, 42u};
18872 namespace test_non_type_auto_template_parameters
18884 namespace test_structured_bindings
18887 int arr[2] = { 1, 2 };
18888 std::pair<int, int> pr = { 1, 2 };
18890 auto f1() -> int(&)[2]
18895 auto f2() -> std::pair<int, int>&
18903 volatile double y1;
18911 auto [ x1, y1 ] = f1();
18912 auto& [ xr1, yr1 ] = f1();
18913 auto [ x2, y2 ] = f2();
18914 auto& [ xr2, yr2 ] = f2();
18915 const auto [ x3, y3 ] = f3();
18919 namespace test_exception_spec_type_system
18925 void g1() noexcept;
18928 template<typename T>
18932 template<typename T1, typename T2>
18936 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
18940 namespace test_inline_variables
18943 template<class T> void f(T)
18946 template<class T> inline T g(T)
18951 template<> inline void f<>(int)
18954 template<> int g<>(int)
18961 } // namespace cxx17
18963 #endif // __cplusplus < 201703L && !defined _MSC_VER
18968 if ac_fn_cxx_try_compile "$LINENO"; then :
18973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18976 eval ac_res=\$$cachevar
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
18978 $as_echo "$ac_res" >&6; }
18979 if eval test x\$$cachevar = xyes; then
18980 CXX_DIALECT="$switch"
18982 if test -n "$CXXCPP" ; then
18983 CXXCPP="$CXXCPP $switch"
18989 if test x$ac_success = xyes; then
18995 ac_cpp='$CPP $CPPFLAGS'
18996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19000 if test x$ax_cxx_compile_cxx17_required = xtrue; then
19001 if test x$ac_success = xno; then
19002 as_fn_error $? "*** A compiler with support
for C
++17 language features is required.
" "$LINENO" 5
19005 if test x$ac_success = xno; then
19007 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++17 support was found
" >&5
19008 $as_echo "$as_me: No compiler with C
++17 support was found
" >&6;}
19012 $as_echo "#define HAVE_CXX17 1" >>confdefs.h
19019 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19020 if test "x$ac_cv_type_size_t" = xyes
; then :
19024 cat >>confdefs.h
<<_ACEOF
19025 #define size_t unsigned int
19033 for ac_header
in $ac_header_list
19035 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19036 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19038 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
19039 cat >>confdefs.h
<<_ACEOF
19040 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19053 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19054 if test "x$ac_cv_type_pid_t" = xyes
; then :
19058 cat >>confdefs.h
<<_ACEOF
19065 if test "X$prefix" = "XNONE"; then
19066 acl_final_prefix
="$ac_default_prefix"
19068 acl_final_prefix
="$prefix"
19070 if test "X$exec_prefix" = "XNONE"; then
19071 acl_final_exec_prefix
='${prefix}'
19073 acl_final_exec_prefix
="$exec_prefix"
19075 acl_save_prefix
="$prefix"
19076 prefix
="$acl_final_prefix"
19077 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
19078 prefix
="$acl_save_prefix"
19081 # Check whether --with-gnu-ld was given.
19082 if test "${with_gnu_ld+set}" = set; then :
19083 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
19088 # Prepare PATH_SEPARATOR.
19089 # The user is always right.
19090 if test "${PATH_SEPARATOR+set}" != set; then
19091 echo "#! /bin/sh" >conf$$.sh
19092 echo "exit 0" >>conf$$.sh
19094 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
19102 if test "$GCC" = yes; then
19103 # Check if gcc -print-prog-name=ld gives a path.
19104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
19105 $as_echo_n "checking for ld used by GCC... " >&6; }
19108 # gcc leaves a trailing carriage return which upsets mingw
19109 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19111 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
19114 # Accept absolute paths.
19115 [\\/]* |
[A-Za-z
]:[\\/]*)
19116 re_direlt
='/[^/][^/]*/\.\./'
19117 # Canonicalize the path of ld
19118 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
19119 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
19120 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
19122 test -z "$LD" && LD
="$ac_prog"
19125 # If it fails, then pretend we aren't using GCC.
19129 # If it is relative, then search for the first ld in PATH.
19130 with_gnu_ld
=unknown
19133 elif test "$with_gnu_ld" = yes; then
19134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19135 $as_echo_n "checking for GNU ld... " >&6; }
19137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19138 $as_echo_n "checking for non-GNU ld... " >&6; }
19140 if ${acl_cv_path_LD+:} false
; then :
19141 $as_echo_n "(cached) " >&6
19143 if test -z "$LD"; then
19144 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
19145 for ac_dir
in $PATH; do
19146 test -z "$ac_dir" && ac_dir
=.
19147 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
19148 acl_cv_path_LD
="$ac_dir/$ac_prog"
19149 # Check to see if the program is GNU ld. I'd rather use --version,
19150 # but apparently some GNU ld's only accept -v.
19151 # Break only if it was the GNU/non-GNU ld that we prefer.
19152 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
$EGREP '(GNU|with BFD)' > /dev
/null
; then
19153 test "$with_gnu_ld" != no
&& break
19155 test "$with_gnu_ld" != yes && break
19161 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
19165 LD
="$acl_cv_path_LD"
19166 if test -n "$LD"; then
19167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19168 $as_echo "$LD" >&6; }
19170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19171 $as_echo "no" >&6; }
19173 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
19174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19175 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19176 if ${acl_cv_prog_gnu_ld+:} false
; then :
19177 $as_echo_n "(cached) " >&6
19179 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
19180 if $LD -v 2>&1 </dev
/null |
$EGREP '(GNU|with BFD)' 1>&5; then
19181 acl_cv_prog_gnu_ld
=yes
19183 acl_cv_prog_gnu_ld
=no
19186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
19187 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
19188 with_gnu_ld
=$acl_cv_prog_gnu_ld
19192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
19193 $as_echo_n "checking for shared library run path origin... " >&6; }
19194 if ${acl_cv_rpath+:} false
; then :
19195 $as_echo_n "(cached) " >&6
19198 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
19199 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
19201 rm -f .
/conftest.sh
19205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
19206 $as_echo "$acl_cv_rpath" >&6; }
19208 libext
="$acl_cv_libext"
19209 shlibext
="$acl_cv_shlibext"
19210 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
19211 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
19212 hardcode_direct
="$acl_cv_hardcode_direct"
19213 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
19214 # Check whether --enable-rpath was given.
19215 if test "${enable_rpath+set}" = set; then :
19216 enableval
=$enable_rpath; :
19223 # Set the 'development' global.
19224 .
$srcdir/..
/bfd
/development.sh
19226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19227 $as_echo_n "checking for ANSI C header files... " >&6; }
19228 if ${ac_cv_header_stdc+:} false
; then :
19229 $as_echo_n "(cached) " >&6
19231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19232 /* end confdefs.h. */
19233 #include <stdlib.h>
19234 #include <stdarg.h>
19235 #include <string.h>
19246 if ac_fn_c_try_compile
"$LINENO"; then :
19247 ac_cv_header_stdc
=yes
19249 ac_cv_header_stdc
=no
19251 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19253 if test $ac_cv_header_stdc = yes; then
19254 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19256 /* end confdefs.h. */
19257 #include <string.h>
19260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19261 $EGREP "memchr" >/dev
/null
2>&1; then :
19264 ac_cv_header_stdc
=no
19270 if test $ac_cv_header_stdc = yes; then
19271 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19273 /* end confdefs.h. */
19274 #include <stdlib.h>
19277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19278 $EGREP "free" >/dev
/null
2>&1; then :
19281 ac_cv_header_stdc
=no
19287 if test $ac_cv_header_stdc = yes; then
19288 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19289 if test "$cross_compiling" = yes; then :
19292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19293 /* end confdefs.h. */
19295 #include <stdlib.h>
19296 #if ((' ' & 0x0FF) == 0x020)
19297 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19298 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19300 # define ISLOWER(c) \
19301 (('a' <= (c) && (c) <= 'i') \
19302 || ('j' <= (c) && (c) <= 'r') \
19303 || ('s' <= (c) && (c) <= 'z'))
19304 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19307 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19312 for (i = 0; i < 256; i++)
19313 if (XOR (islower (i), ISLOWER (i))
19314 || toupper (i) != TOUPPER (i))
19319 if ac_fn_c_try_run
"$LINENO"; then :
19322 ac_cv_header_stdc
=no
19324 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19325 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19331 $as_echo "$ac_cv_header_stdc" >&6; }
19332 if test $ac_cv_header_stdc = yes; then
19334 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
19338 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19339 # for constant arguments. Useless!
19340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19341 $as_echo_n "checking for working alloca.h... " >&6; }
19342 if ${ac_cv_working_alloca_h+:} false
; then :
19343 $as_echo_n "(cached) " >&6
19345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19346 /* end confdefs.h. */
19347 #include <alloca.h>
19351 char *p = (char *) alloca (2 * sizeof (int));
19357 if ac_fn_c_try_link
"$LINENO"; then :
19358 ac_cv_working_alloca_h
=yes
19360 ac_cv_working_alloca_h
=no
19362 rm -f core conftest.err conftest.
$ac_objext \
19363 conftest
$ac_exeext conftest.
$ac_ext
19365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19366 $as_echo "$ac_cv_working_alloca_h" >&6; }
19367 if test $ac_cv_working_alloca_h = yes; then
19369 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19374 $as_echo_n "checking for alloca... " >&6; }
19375 if ${ac_cv_func_alloca_works+:} false
; then :
19376 $as_echo_n "(cached) " >&6
19378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19379 /* end confdefs.h. */
19381 # define alloca __builtin_alloca
19384 # include <malloc.h>
19385 # define alloca _alloca
19387 # ifdef HAVE_ALLOCA_H
19388 # include <alloca.h>
19393 # ifndef alloca /* predefined by HP cc +Olibcalls */
19394 void *alloca (size_t);
19404 char *p = (char *) alloca (1);
19410 if ac_fn_c_try_link
"$LINENO"; then :
19411 ac_cv_func_alloca_works
=yes
19413 ac_cv_func_alloca_works
=no
19415 rm -f core conftest.err conftest.
$ac_objext \
19416 conftest
$ac_exeext conftest.
$ac_ext
19418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19419 $as_echo "$ac_cv_func_alloca_works" >&6; }
19421 if test $ac_cv_func_alloca_works = yes; then
19423 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19426 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19427 # that cause trouble. Some versions do not even contain alloca or
19428 # contain a buggy version. If you still want to use their alloca,
19429 # use ar to extract alloca.o from them instead of compiling alloca.c.
19431 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
19433 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19437 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19438 if ${ac_cv_os_cray+:} false
; then :
19439 $as_echo_n "(cached) " >&6
19441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19442 /* end confdefs.h. */
19443 #if defined CRAY && ! defined CRAY2
19450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19451 $EGREP "webecray" >/dev
/null
2>&1; then :
19459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19460 $as_echo "$ac_cv_os_cray" >&6; }
19461 if test $ac_cv_os_cray = yes; then
19462 for ac_func
in _getb67 GETB67 getb67
; do
19463 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19464 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
19465 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
19467 cat >>confdefs.h
<<_ACEOF
19468 #define CRAY_STACKSEG_END $ac_func
19477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19478 $as_echo_n "checking stack direction for C alloca... " >&6; }
19479 if ${ac_cv_c_stack_direction+:} false
; then :
19480 $as_echo_n "(cached) " >&6
19482 if test "$cross_compiling" = yes; then :
19483 ac_cv_c_stack_direction
=0
19485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19486 /* end confdefs.h. */
19487 $ac_includes_default
19489 find_stack_direction (int *addr, int depth)
19491 int dir, dummy = 0;
19494 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
19495 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
19496 return dir + dummy;
19500 main (int argc, char **argv)
19502 return find_stack_direction (0, argc + !argv + 20) < 0;
19505 if ac_fn_c_try_run
"$LINENO"; then :
19506 ac_cv_c_stack_direction
=1
19508 ac_cv_c_stack_direction
=-1
19510 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19511 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19516 $as_echo "$ac_cv_c_stack_direction" >&6; }
19517 cat >>confdefs.h
<<_ACEOF
19518 #define STACK_DIRECTION $ac_cv_c_stack_direction
19529 $as_echo "#define USE_WIN32API 1" >>confdefs.h
19531 WIN32APILIBS
="-lws2_32"
19536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19537 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19538 if ${am_cv_langinfo_codeset+:} false
; then :
19539 $as_echo_n "(cached) " >&6
19541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19542 /* end confdefs.h. */
19543 #include <langinfo.h>
19547 char* cs = nl_langinfo(CODESET);
19552 if ac_fn_c_try_link
"$LINENO"; then :
19553 am_cv_langinfo_codeset
=yes
19555 am_cv_langinfo_codeset
=no
19557 rm -f core conftest.err conftest.
$ac_objext \
19558 conftest
$ac_exeext conftest.
$ac_ext
19561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
19562 $as_echo "$am_cv_langinfo_codeset" >&6; }
19563 if test $am_cv_langinfo_codeset = yes; then
19565 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19570 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
19572 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19573 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19574 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
19575 cat >>confdefs.h
<<_ACEOF
19576 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19585 for ac_func
in getpagesize
19587 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19588 if test "x$ac_cv_func_getpagesize" = xyes
; then :
19589 cat >>confdefs.h
<<_ACEOF
19590 #define HAVE_GETPAGESIZE 1
19596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19597 $as_echo_n "checking for working mmap... " >&6; }
19598 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
19599 $as_echo_n "(cached) " >&6
19601 if test "$cross_compiling" = yes; then :
19602 ac_cv_func_mmap_fixed_mapped
=no
19604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19605 /* end confdefs.h. */
19606 $ac_includes_default
19607 /* malloc might have been renamed as rpl_malloc. */
19610 /* Thanks to Mike Haertel and Jim Avera for this test.
19611 Here is a matrix of mmap possibilities:
19612 mmap private not fixed
19613 mmap private fixed at somewhere currently unmapped
19614 mmap private fixed at somewhere already mapped
19615 mmap shared not fixed
19616 mmap shared fixed at somewhere currently unmapped
19617 mmap shared fixed at somewhere already mapped
19618 For private mappings, we should verify that changes cannot be read()
19619 back from the file, nor mmap's back from the file at a different
19620 address. (There have been systems where private was not correctly
19621 implemented like the infamous i386 svr4.0, and systems where the
19622 VM page cache was not coherent with the file system buffer cache
19623 like early versions of FreeBSD and possibly contemporary NetBSD.)
19624 For shared mappings, we should conversely verify that changes get
19625 propagated back to all the places they're supposed to be.
19627 Grep wants private fixed already mapped.
19628 The main things grep needs to know about mmap are:
19629 * does it exist and is it safe to write into the mmap'd area
19630 * how to use it (BSD variants) */
19633 #include <sys/mman.h>
19635 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19639 /* This mess was copied from the GNU getpagesize.h. */
19640 #ifndef HAVE_GETPAGESIZE
19641 # ifdef _SC_PAGESIZE
19642 # define getpagesize() sysconf(_SC_PAGESIZE)
19643 # else /* no _SC_PAGESIZE */
19644 # ifdef HAVE_SYS_PARAM_H
19645 # include <sys/param.h>
19646 # ifdef EXEC_PAGESIZE
19647 # define getpagesize() EXEC_PAGESIZE
19648 # else /* no EXEC_PAGESIZE */
19650 # define getpagesize() NBPG * CLSIZE
19653 # endif /* no CLSIZE */
19654 # else /* no NBPG */
19656 # define getpagesize() NBPC
19657 # else /* no NBPC */
19659 # define getpagesize() PAGESIZE
19660 # endif /* PAGESIZE */
19661 # endif /* no NBPC */
19662 # endif /* no NBPG */
19663 # endif /* no EXEC_PAGESIZE */
19664 # else /* no HAVE_SYS_PARAM_H */
19665 # define getpagesize() 8192 /* punt totally */
19666 # endif /* no HAVE_SYS_PARAM_H */
19667 # endif /* no _SC_PAGESIZE */
19669 #endif /* no HAVE_GETPAGESIZE */
19674 char *data, *data2, *data3;
19675 const char *cdata2;
19679 pagesize = getpagesize ();
19681 /* First, make a file with some known garbage in it. */
19682 data = (char *) malloc (pagesize);
19685 for (i = 0; i < pagesize; ++i)
19686 *(data + i) = rand ();
19688 fd = creat ("conftest.mmap", 0600);
19691 if (write (fd, data, pagesize) != pagesize)
19695 /* Next, check that the tail of a page is zero-filled. File must have
19696 non-zero length, otherwise we risk SIGBUS for entire page. */
19697 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
19701 if (write (fd2, cdata2, 1) != 1)
19703 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
19704 if (data2 == MAP_FAILED)
19706 for (i = 0; i < pagesize; ++i)
19710 if (munmap (data2, pagesize))
19713 /* Next, try to mmap the file at a fixed address which already has
19714 something else allocated at it. If we can, also make sure that
19715 we see the same garbage. */
19716 fd = open ("conftest.mmap", O_RDWR);
19719 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19720 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19722 for (i = 0; i < pagesize; ++i)
19723 if (*(data + i) != *(data2 + i))
19726 /* Finally, make sure that changes to the mapped area do not
19727 percolate back to the file as seen by read(). (This is a bug on
19728 some variants of i386 svr4.0.) */
19729 for (i = 0; i < pagesize; ++i)
19730 *(data2 + i) = *(data2 + i) + 1;
19731 data3 = (char *) malloc (pagesize);
19734 if (read (fd, data3, pagesize) != pagesize)
19736 for (i = 0; i < pagesize; ++i)
19737 if (*(data + i) != *(data3 + i))
19743 if ac_fn_c_try_run
"$LINENO"; then :
19744 ac_cv_func_mmap_fixed_mapped
=yes
19746 ac_cv_func_mmap_fixed_mapped
=no
19748 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19749 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
19754 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
19755 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19757 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
19760 rm -f conftest.mmap conftest.txt
19762 for ac_header
in vfork.h
19764 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
19765 if test "x$ac_cv_header_vfork_h" = xyes
; then :
19766 cat >>confdefs.h
<<_ACEOF
19767 #define HAVE_VFORK_H 1
19774 for ac_func
in fork vfork
19776 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19777 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
19778 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
19779 cat >>confdefs.h
<<_ACEOF
19780 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19786 if test "x$ac_cv_func_fork" = xyes
; then
19787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
19788 $as_echo_n "checking for working fork... " >&6; }
19789 if ${ac_cv_func_fork_works+:} false
; then :
19790 $as_echo_n "(cached) " >&6
19792 if test "$cross_compiling" = yes; then :
19793 ac_cv_func_fork_works
=cross
19795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19796 /* end confdefs.h. */
19797 $ac_includes_default
19802 /* By Ruediger Kuhlmann. */
19803 return fork () < 0;
19809 if ac_fn_c_try_run
"$LINENO"; then :
19810 ac_cv_func_fork_works
=yes
19812 ac_cv_func_fork_works
=no
19814 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19815 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
19820 $as_echo "$ac_cv_func_fork_works" >&6; }
19823 ac_cv_func_fork_works
=$ac_cv_func_fork
19825 if test "x$ac_cv_func_fork_works" = xcross
; then
19827 *-*-amigaos* |
*-*-msdosdjgpp*)
19828 # Override, as these systems have only a dummy fork() stub
19829 ac_cv_func_fork_works
=no
19832 ac_cv_func_fork_works
=yes
19835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19836 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19838 ac_cv_func_vfork_works
=$ac_cv_func_vfork
19839 if test "x$ac_cv_func_vfork" = xyes
; then
19840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
19841 $as_echo_n "checking for working vfork... " >&6; }
19842 if ${ac_cv_func_vfork_works+:} false
; then :
19843 $as_echo_n "(cached) " >&6
19845 if test "$cross_compiling" = yes; then :
19846 ac_cv_func_vfork_works
=cross
19848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19849 /* end confdefs.h. */
19850 /* Thanks to Paul Eggert for this test. */
19851 $ac_includes_default
19852 #include <sys/wait.h>
19853 #ifdef HAVE_VFORK_H
19854 # include <vfork.h>
19856 /* On some sparc systems, changes by the child to local and incoming
19857 argument registers are propagated back to the parent. The compiler
19858 is told about this with #include <vfork.h>, but some compilers
19859 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19860 static variable whose address is put into a register that is
19861 clobbered by the vfork. */
19864 sparc_address_test (int arg)
19866 sparc_address_test (arg) int arg;
19869 static pid_t child;
19887 pid_t parent = getpid ();
19890 sparc_address_test (0);
19895 /* Here is another test for sparc vfork register problems. This
19896 test uses lots of local variables, at least as many local
19897 variables as main has allocated so far including compiler
19898 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19899 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19900 reuse the register of parent for one of the local variables,
19901 since it will think that parent can't possibly be used any more
19902 in this routine. Assigning to the local variable will thus
19903 munge parent in the parent process. */
19905 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19906 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19907 /* Convince the compiler that p..p7 are live; otherwise, it might
19908 use the same hardware register for all 8 local variables. */
19909 if (p != p1 || p != p2 || p != p3 || p != p4
19910 || p != p5 || p != p6 || p != p7)
19913 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19914 from child file descriptors. If the child closes a descriptor
19915 before it execs or exits, this munges the parent's descriptor
19916 as well. Test for this by closing stdout in the child. */
19917 _exit(close(fileno(stdout)) != 0);
19922 while (wait(&status) != child)
19925 /* Was there some problem with vforking? */
19928 /* Did the child fail? (This shouldn't happen.) */
19931 /* Did the vfork/compiler bug occur? */
19932 || parent != getpid()
19934 /* Did the file descriptor bug occur? */
19935 || fstat(fileno(stdout), &st) != 0
19940 if ac_fn_c_try_run
"$LINENO"; then :
19941 ac_cv_func_vfork_works
=yes
19943 ac_cv_func_vfork_works
=no
19945 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19946 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19951 $as_echo "$ac_cv_func_vfork_works" >&6; }
19954 if test "x$ac_cv_func_fork_works" = xcross
; then
19955 ac_cv_func_vfork_works
=$ac_cv_func_vfork
19956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19957 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19960 if test "x$ac_cv_func_vfork_works" = xyes
; then
19962 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19966 $as_echo "#define vfork fork" >>confdefs.h
19969 if test "x$ac_cv_func_fork_works" = xyes
; then
19971 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19975 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
19976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
19977 $as_echo_n "checking for library containing socketpair... " >&6; }
19978 if ${ac_cv_search_socketpair+:} false
; then :
19979 $as_echo_n "(cached) " >&6
19981 ac_func_search_save_LIBS
=$LIBS
19982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19983 /* end confdefs.h. */
19985 /* Override any GCC internal prototype to avoid an error.
19986 Use char because int might match the return type of a GCC
19987 builtin and then its argument prototype would still apply. */
19991 char socketpair ();
19995 return socketpair ();
20000 for ac_lib
in '' socket
; do
20001 if test -z "$ac_lib"; then
20002 ac_res
="none required"
20005 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
20007 if ac_fn_c_try_link
"$LINENO"; then :
20008 ac_cv_search_socketpair
=$ac_res
20010 rm -f core conftest.err conftest.
$ac_objext \
20012 if ${ac_cv_search_socketpair+:} false
; then :
20016 if ${ac_cv_search_socketpair+:} false
; then :
20019 ac_cv_search_socketpair
=no
20021 rm conftest.
$ac_ext
20022 LIBS
=$ac_func_search_save_LIBS
20024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
20025 $as_echo "$ac_cv_search_socketpair" >&6; }
20026 ac_res
=$ac_cv_search_socketpair
20027 if test "$ac_res" != no
; then :
20028 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
20032 for ac_func
in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
20033 ptrace64 sbrk setns sigaltstack sigprocmask \
20034 setpgid setpgrp getrusage getauxval sigtimedwait
20036 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20037 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
20038 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
20039 cat >>confdefs.h
<<_ACEOF
20040 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20047 # This is needed for RHEL 5 and uclibc-ng < 1.0.39.
20048 # These did not define ADDR_NO_RANDOMIZE in sys/personality.h,
20049 # only in linux/personality.h.
20050 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
20052 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
20058 cat >>confdefs.h
<<_ACEOF
20059 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
20063 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
20064 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
20070 cat >>confdefs.h
<<_ACEOF
20071 #define HAVE_DECL_STRSTR $ac_have_decl
20075 # ----------------------- #
20076 # Checks for structures. #
20077 # ----------------------- #
20079 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
20080 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
20082 cat >>confdefs.h
<<_ACEOF
20083 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20088 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
20089 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
20091 cat >>confdefs.h
<<_ACEOF
20092 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20099 # On FreeBSD we need libutil for the kinfo_get* functions. On
20100 # GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
20101 # Figure out which one to use.
20102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
20103 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
20104 if ${ac_cv_search_kinfo_getfile+:} false
; then :
20105 $as_echo_n "(cached) " >&6
20107 ac_func_search_save_LIBS
=$LIBS
20108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20109 /* end confdefs.h. */
20111 /* Override any GCC internal prototype to avoid an error.
20112 Use char because int might match the return type of a GCC
20113 builtin and then its argument prototype would still apply. */
20117 char kinfo_getfile ();
20121 return kinfo_getfile ();
20126 for ac_lib
in '' util util-freebsd
; do
20127 if test -z "$ac_lib"; then
20128 ac_res
="none required"
20131 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
20133 if ac_fn_c_try_link
"$LINENO"; then :
20134 ac_cv_search_kinfo_getfile
=$ac_res
20136 rm -f core conftest.err conftest.
$ac_objext \
20138 if ${ac_cv_search_kinfo_getfile+:} false
; then :
20142 if ${ac_cv_search_kinfo_getfile+:} false
; then :
20145 ac_cv_search_kinfo_getfile
=no
20147 rm conftest.
$ac_ext
20148 LIBS
=$ac_func_search_save_LIBS
20150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
20151 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
20152 ac_res
=$ac_cv_search_kinfo_getfile
20153 if test "$ac_res" != no
; then :
20154 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
20159 # Define HAVE_KINFO_GETFILE if kinfo_getfile is available.
20160 for ac_func
in kinfo_getfile
20162 ac_fn_c_check_func
"$LINENO" "kinfo_getfile" "ac_cv_func_kinfo_getfile"
20163 if test "x$ac_cv_func_kinfo_getfile" = xyes
; then :
20164 cat >>confdefs.h
<<_ACEOF
20165 #define HAVE_KINFO_GETFILE 1
20172 # ----------------------- #
20173 # Check for threading. #
20174 # ----------------------- #
20176 # Check whether --enable-threading was given.
20177 if test "${enable_threading+set}" = set; then :
20178 enableval
=$enable_threading; case "$enableval" in
20179 yes) want_threading
=yes ;;
20180 no
) want_threading
=no
;;
20181 *) as_fn_error $?
"bad value $enableval for threading" "$LINENO" 5 ;;
20188 # Check for std::thread. This does not work on some platforms, like
20191 ac_cpp
='$CXXCPP $CPPFLAGS'
20192 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20193 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20194 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20201 ac_cpp
='$CPP $CPPFLAGS'
20202 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20203 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20204 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20208 # We used to check for pthread.h first, but this fails if pthread.h
20209 # requires special compiler flags (e.g. on Tru64 or Sequent).
20210 # It gets checked for in the link test anyway.
20212 # First of all, check if the user has set any of the PTHREAD_LIBS,
20213 # etcetera environment variables, and if threads linking works using
20215 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
20216 ax_pthread_save_CC
="$CC"
20217 ax_pthread_save_CFLAGS
="$CFLAGS"
20218 ax_pthread_save_LIBS
="$LIBS"
20219 if test "x$PTHREAD_CC" != "x"; then :
20222 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
20223 LIBS
="$PTHREAD_LIBS $LIBS"
20224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
20225 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
20226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20227 /* end confdefs.h. */
20229 /* Override any GCC internal prototype to avoid an error.
20230 Use char because int might match the return type of a GCC
20231 builtin and then its argument prototype would still apply. */
20235 char pthread_join ();
20239 return pthread_join ();
20244 if ac_fn_c_try_link
"$LINENO"; then :
20247 rm -f core conftest.err conftest.
$ac_objext \
20248 conftest
$ac_exeext conftest.
$ac_ext
20249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
20250 $as_echo "$ax_pthread_ok" >&6; }
20251 if test "x$ax_pthread_ok" = "xno"; then
20255 CC
="$ax_pthread_save_CC"
20256 CFLAGS
="$ax_pthread_save_CFLAGS"
20257 LIBS
="$ax_pthread_save_LIBS"
20260 # We must check for the threads library under a number of different
20261 # names; the ordering is very important because some systems
20262 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
20263 # libraries is broken (non-POSIX).
20265 # Create a list of thread flags to try. Items starting with a "-" are
20266 # C compiler flags, and other items are library names, except for "none"
20267 # which indicates that we try without any flags at all, and "pthread-config"
20268 # which is a program returning the flags for the Pth emulation library.
20270 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
20272 # The ordering *is* (sometimes) important. Some notes on the
20273 # individual items follow:
20275 # pthreads: AIX (must check this before -lpthread)
20276 # none: in case threads are in libc; should be tried before -Kthread and
20277 # other compiler flags to prevent continual compiler warnings
20278 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
20279 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
20280 # (Note: HP C rejects this with "bad form for `-t' option")
20281 # -pthreads: Solaris/gcc (Note: HP C also rejects)
20282 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
20283 # doesn't hurt to check since this sometimes defines pthreads and
20284 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
20285 # is present but should not be used directly; and before -mthreads,
20286 # because the compiler interprets this as "-mt" + "-hreads")
20287 # -mthreads: Mingw32/gcc, Lynx/gcc
20288 # pthread: Linux, etcetera
20289 # --thread-safe: KAI C++
20290 # pthread-config: use pthread-config program (for GNU Pth library)
20296 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
20297 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
20299 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
20304 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
20305 # multi-threading and also sets -lpthread."
20307 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
20312 # IBM z/OS requires a feature-test macro to be defined in order to
20313 # enable POSIX threads at all, so give the user a hint if this is
20314 # not set. (We don't define these ourselves, as they can affect
20315 # other portions of the system API in unpredictable ways.)
20317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20318 /* end confdefs.h. */
20320 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
20321 AX_PTHREAD_ZOS_MISSING
20325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20326 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
20327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
20328 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
20336 # On Solaris (at least, for some versions), libc contains stubbed
20337 # (non-functional) versions of the pthreads routines, so link-based
20338 # tests will erroneously succeed. (N.B.: The stubs are missing
20339 # pthread_cleanup_push, or rather a function called by this macro,
20340 # so we could check for that, but who knows whether they'll stub
20341 # that too in a future libc.) So we'll check first for the
20342 # standard Solaris way of linking pthreads (-mt -lpthread).
20344 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
20348 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
20350 if test "x$GCC" = "xyes"; then :
20351 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
20354 # The presence of a feature test macro requesting re-entrant function
20355 # definitions is, on some systems, a strong hint that pthreads support is
20356 # correctly enabled
20359 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
20360 ax_pthread_check_macro
="_REENTRANT"
20364 ax_pthread_check_macro
="_THREAD_SAFE"
20368 ax_pthread_check_macro
="--"
20371 if test "x$ax_pthread_check_macro" = "x--"; then :
20372 ax_pthread_check_cond
=0
20374 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
20377 # Are we compiling with Clang?
20379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
20380 $as_echo_n "checking whether $CC is Clang... " >&6; }
20381 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
20382 $as_echo_n "(cached) " >&6
20384 ax_cv_PTHREAD_CLANG
=no
20385 # Note that Autoconf sets GCC=yes for Clang as well as GCC
20386 if test "x$GCC" = "xyes"; then
20387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20388 /* end confdefs.h. */
20389 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
20390 # if defined(__clang__) && defined(__llvm__)
20391 AX_PTHREAD_CC_IS_CLANG
20395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20396 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
20397 ax_cv_PTHREAD_CLANG
=yes
20404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
20405 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
20406 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
20408 ax_pthread_clang_warning
=no
20410 # Clang needs special handling, because older versions handle the -pthread
20411 # option in a rather... idiosyncratic way
20413 if test "x$ax_pthread_clang" = "xyes"; then
20415 # Clang takes -pthread; it has never supported any other flag
20417 # (Note 1: This will need to be revisited if a system that Clang
20418 # supports has POSIX threads in a separate library. This tends not
20419 # to be the way of modern systems, but it's conceivable.)
20421 # (Note 2: On some systems, notably Darwin, -pthread is not needed
20422 # to get POSIX threads support; the API is always present and
20423 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
20424 # -pthread does define _REENTRANT, and while the Darwin headers
20425 # ignore this macro, third-party headers might not.)
20427 PTHREAD_CFLAGS
="-pthread"
20432 # However, older versions of Clang make a point of warning the user
20433 # that, in an invocation where only linking and no compilation is
20434 # taking place, the -pthread option has no effect ("argument unused
20435 # during compilation"). They expect -pthread to be passed in only
20436 # when source code is being compiled.
20438 # Problem is, this is at odds with the way Automake and most other
20439 # C build frameworks function, which is that the same flags used in
20440 # compilation (CFLAGS) are also used in linking. Many systems
20441 # supported by AX_PTHREAD require exactly this for POSIX threads
20442 # support, and in fact it is often not straightforward to specify a
20443 # flag that is used only in the compilation phase and not in
20444 # linking. Such a scenario is extremely rare in practice.
20446 # Even though use of the -pthread flag in linking would only print
20447 # a warning, this can be a nuisance for well-run software projects
20448 # that build with -Werror. So if the active version of Clang has
20449 # this misfeature, we search for an option to squash it.
20451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
20452 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
20453 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
20454 $as_echo_n "(cached) " >&6
20456 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
20457 # Create an alternate version of $ac_link that compiles and
20458 # links in two steps (.c -> .o, .o -> exe) instead of one
20459 # (.c -> exe), because the warning occurs only in the second
20461 ax_pthread_save_ac_link
="$ac_link"
20462 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
20463 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
20464 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
20465 ax_pthread_save_CFLAGS
="$CFLAGS"
20466 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
20467 if test "x$ax_pthread_try" = "xunknown"; then :
20470 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
20471 ac_link
="$ax_pthread_save_ac_link"
20472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20473 /* end confdefs.h. */
20474 int main(void){return 0;}
20476 if ac_fn_c_try_link
"$LINENO"; then :
20477 ac_link
="$ax_pthread_2step_ac_link"
20478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20479 /* end confdefs.h. */
20480 int main(void){return 0;}
20482 if ac_fn_c_try_link
"$LINENO"; then :
20485 rm -f core conftest.err conftest.
$ac_objext \
20486 conftest
$ac_exeext conftest.
$ac_ext
20489 rm -f core conftest.err conftest.
$ac_objext \
20490 conftest
$ac_exeext conftest.
$ac_ext
20492 ac_link
="$ax_pthread_save_ac_link"
20493 CFLAGS
="$ax_pthread_save_CFLAGS"
20494 if test "x$ax_pthread_try" = "x"; then :
20497 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
20500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
20501 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
20503 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
20505 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
20508 fi # $ax_pthread_clang = yes
20510 if test "x$ax_pthread_ok" = "xno"; then
20511 for ax_pthread_try_flag
in $ax_pthread_flags; do
20513 case $ax_pthread_try_flag in
20515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
20516 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
20520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
20521 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
20522 PTHREAD_CFLAGS
="-mt"
20523 PTHREAD_LIBS
="-lpthread"
20527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
20528 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
20529 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
20533 # Extract the first word of "pthread-config", so it can be a program name with args.
20534 set dummy pthread-config
; ac_word
=$2
20535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20536 $as_echo_n "checking for $ac_word... " >&6; }
20537 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
20538 $as_echo_n "(cached) " >&6
20540 if test -n "$ax_pthread_config"; then
20541 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
20543 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20544 for as_dir
in $PATH
20547 test -z "$as_dir" && as_dir
=.
20548 for ac_exec_ext
in '' $ac_executable_extensions; do
20549 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
20550 ac_cv_prog_ax_pthread_config
="yes"
20551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20558 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
20561 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
20562 if test -n "$ax_pthread_config"; then
20563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
20564 $as_echo "$ax_pthread_config" >&6; }
20566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20567 $as_echo "no" >&6; }
20571 if test "x$ax_pthread_config" = "xno"; then :
20574 PTHREAD_CFLAGS
="`pthread-config --cflags`"
20575 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
20579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
20580 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
20581 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
20585 ax_pthread_save_CFLAGS
="$CFLAGS"
20586 ax_pthread_save_LIBS
="$LIBS"
20587 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
20588 LIBS
="$PTHREAD_LIBS $LIBS"
20590 # Check for various functions. We must include pthread.h,
20591 # since some functions may be macros. (On the Sequent, we
20592 # need a special flag -Kthread to make this header compile.)
20593 # We check for pthread_join because it is in -lpthread on IRIX
20594 # while pthread_create is in libc. We check for pthread_attr_init
20595 # due to DEC craziness with -lpthreads. We check for
20596 # pthread_cleanup_push because it is one of the few pthread
20597 # functions on Solaris that doesn't have a non-functional libc stub.
20598 # We try pthread_create on general principles.
20600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20601 /* end confdefs.h. */
20602 #include <pthread.h>
20603 # if $ax_pthread_check_cond
20604 # error "$ax_pthread_check_macro must be defined"
20606 static void routine(void *a) { a = 0; }
20607 static void *start_routine(void *a) { return a; }
20611 pthread_t th; pthread_attr_t attr;
20612 pthread_create(&th, 0, start_routine, 0);
20613 pthread_join(th, 0);
20614 pthread_attr_init(&attr);
20615 pthread_cleanup_push(routine, 0);
20616 pthread_cleanup_pop(0) /* ; */
20621 if ac_fn_c_try_link
"$LINENO"; then :
20624 rm -f core conftest.err conftest.
$ac_objext \
20625 conftest
$ac_exeext conftest.
$ac_ext
20627 CFLAGS
="$ax_pthread_save_CFLAGS"
20628 LIBS
="$ax_pthread_save_LIBS"
20630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
20631 $as_echo "$ax_pthread_ok" >&6; }
20632 if test "x$ax_pthread_ok" = "xyes"; then :
20641 # Various other checks:
20642 if test "x$ax_pthread_ok" = "xyes"; then
20643 ax_pthread_save_CFLAGS
="$CFLAGS"
20644 ax_pthread_save_LIBS
="$LIBS"
20645 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
20646 LIBS
="$PTHREAD_LIBS $LIBS"
20648 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
20649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
20650 $as_echo_n "checking for joinable pthread attribute... " >&6; }
20651 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
20652 $as_echo_n "(cached) " >&6
20654 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
20655 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
20656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20657 /* end confdefs.h. */
20658 #include <pthread.h>
20662 int attr = $ax_pthread_attr; return attr /* ; */
20667 if ac_fn_c_try_link
"$LINENO"; then :
20668 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
20670 rm -f core conftest.err conftest.
$ac_objext \
20671 conftest
$ac_exeext conftest.
$ac_ext
20675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
20676 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
20677 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
20678 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
20679 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
20681 cat >>confdefs.h
<<_ACEOF
20682 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
20685 ax_pthread_joinable_attr_defined
=yes
20689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
20690 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
20691 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
20692 $as_echo_n "(cached) " >&6
20694 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
20697 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
20702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
20703 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
20704 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
20705 test "x$ax_pthread_special_flags_added" != "xyes"; then :
20706 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
20707 ax_pthread_special_flags_added
=yes
20710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
20711 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
20712 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
20713 $as_echo_n "(cached) " >&6
20715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20716 /* end confdefs.h. */
20717 #include <pthread.h>
20721 int i = PTHREAD_PRIO_INHERIT;
20726 if ac_fn_c_try_link
"$LINENO"; then :
20727 ax_cv_PTHREAD_PRIO_INHERIT
=yes
20729 ax_cv_PTHREAD_PRIO_INHERIT
=no
20731 rm -f core conftest.err conftest.
$ac_objext \
20732 conftest
$ac_exeext conftest.
$ac_ext
20735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
20736 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
20737 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
20738 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
20740 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
20742 ax_pthread_prio_inherit_defined
=yes
20746 CFLAGS
="$ax_pthread_save_CFLAGS"
20747 LIBS
="$ax_pthread_save_LIBS"
20749 # More AIX lossage: compile with *_r variant
20750 if test "x$GCC" != "xyes"; then
20754 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
20755 #handle absolute path differently from PATH based program lookup
20758 if as_fn_executable_p
${CC}_r
; then :
20759 PTHREAD_CC
="${CC}_r"
20762 for ac_prog
in ${CC}_r
20764 # Extract the first word of "$ac_prog", so it can be a program name with args.
20765 set dummy
$ac_prog; ac_word
=$2
20766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20767 $as_echo_n "checking for $ac_word... " >&6; }
20768 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
20769 $as_echo_n "(cached) " >&6
20771 if test -n "$PTHREAD_CC"; then
20772 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
20774 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20775 for as_dir
in $PATH
20778 test -z "$as_dir" && as_dir
=.
20779 for ac_exec_ext
in '' $ac_executable_extensions; do
20780 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
20781 ac_cv_prog_PTHREAD_CC
="$ac_prog"
20782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20791 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
20792 if test -n "$PTHREAD_CC"; then
20793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
20794 $as_echo "$PTHREAD_CC" >&6; }
20796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20797 $as_echo "no" >&6; }
20801 test -n "$PTHREAD_CC" && break
20803 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
20814 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
20820 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
20821 if test "x$ax_pthread_ok" = "xyes"; then
20829 ac_cpp
='$CXXCPP $CPPFLAGS'
20830 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20831 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20832 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20836 LIBS
="$PTHREAD_LIBS $LIBS"
20837 save_CXXFLAGS
="$CXXFLAGS"
20838 CXXFLAGS
="$PTHREAD_CFLAGS $save_CXXFLAGS"
20839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
20840 $as_echo_n "checking for std::thread... " >&6; }
20841 if ${gdb_cv_cxx_std_thread+:} false
; then :
20842 $as_echo_n "(cached) " >&6
20844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20845 /* end confdefs.h. */
20846 #if defined (__MINGW32__) || defined (__CYGWIN__)
20847 # ifdef _WIN32_WINNT
20848 # if _WIN32_WINNT < 0x0501
20849 # undef _WIN32_WINNT
20850 # define _WIN32_WINNT 0x0501
20853 # define _WIN32_WINNT 0x0501
20855 #endif /* __MINGW32__ || __CYGWIN__ */
20857 void callback() { }
20861 std::thread t(callback);
20866 if ac_fn_cxx_try_compile
"$LINENO"; then :
20867 gdb_cv_cxx_std_thread
=yes
20869 gdb_cv_cxx_std_thread
=no
20871 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
20874 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
20876 if test "$threads" = "yes"; then
20877 # This check must be here, while LIBS includes any necessary
20878 # threading library.
20879 for ac_func
in pthread_sigmask pthread_setname_np
20881 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20882 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
20883 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
20884 cat >>confdefs.h
<<_ACEOF
20885 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20893 CXXFLAGS
="$save_CXXFLAGS"
20895 if test "$want_threading" = "yes"; then
20896 if test "$gdb_cv_cxx_std_thread" = "yes"; then
20898 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
20903 ac_cpp
='$CPP $CPPFLAGS'
20904 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20905 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20906 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
20910 $as_echo_n "checking for sigsetjmp... " >&6; }
20911 if ${gdb_cv_func_sigsetjmp+:} false
; then :
20912 $as_echo_n "(cached) " >&6
20914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20915 /* end confdefs.h. */
20916 #include <setjmp.h>
20921 while (! sigsetjmp (env, 1))
20922 siglongjmp (env, 1);
20928 if ac_fn_c_try_compile
"$LINENO"; then :
20929 gdb_cv_func_sigsetjmp
=yes
20931 gdb_cv_func_sigsetjmp
=no
20934 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
20938 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
20939 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
20941 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
20946 # Check whether --with-intel_pt was given.
20947 if test "${with_intel_pt+set}" = set; then :
20948 withval
=$with_intel_pt;
20953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
20954 $as_echo_n "checking whether to use intel pt... " >&6; }
20955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
20956 $as_echo "$with_intel_pt" >&6; }
20958 if test "${with_intel_pt}" = no
; then
20959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
20960 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
20963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20964 /* end confdefs.h. */
20966 #include <linux/perf_event.h>
20967 #ifndef PERF_ATTR_SIZE_VER5
20972 if ac_fn_c_try_cpp
"$LINENO"; then :
20977 rm -f conftest.err conftest.i conftest.
$ac_ext
20978 if test "$perf_event" != yes; then
20979 if test "$with_intel_pt" = yes; then
20980 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
20982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
20983 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
20997 acl_save_prefix
="$prefix"
20998 prefix
="$acl_final_prefix"
20999 acl_save_exec_prefix
="$exec_prefix"
21000 exec_prefix
="$acl_final_exec_prefix"
21002 eval additional_includedir
=\"$includedir\"
21003 eval additional_libdir
=\"$libdir\"
21005 exec_prefix
="$acl_save_exec_prefix"
21006 prefix
="$acl_save_prefix"
21009 # Check whether --with-libipt-prefix was given.
21010 if test "${with_libipt_prefix+set}" = set; then :
21011 withval
=$with_libipt_prefix;
21012 if test "X$withval" = "Xno"; then
21015 if test "X$withval" = "X"; then
21017 acl_save_prefix
="$prefix"
21018 prefix
="$acl_final_prefix"
21019 acl_save_exec_prefix
="$exec_prefix"
21020 exec_prefix
="$acl_final_exec_prefix"
21022 eval additional_includedir
=\"$includedir\"
21023 eval additional_libdir
=\"$libdir\"
21025 exec_prefix
="$acl_save_exec_prefix"
21026 prefix
="$acl_save_prefix"
21029 additional_includedir
="$withval/include"
21030 additional_libdir
="$withval/lib"
21037 # Check whether --with-libipt-type was given.
21038 if test "${with_libipt_type+set}" = set; then :
21039 withval
=$with_libipt_type; with_libipt_type
=$withval
21041 with_libipt_type
=auto
21044 lib_type
=`eval echo \$with_libipt_type`
21051 names_already_handled
=
21052 names_next_round
='ipt '
21053 while test -n "$names_next_round"; do
21054 names_this_round
="$names_next_round"
21056 for name
in $names_this_round; do
21058 for n
in $names_already_handled; do
21059 if test "$n" = "$name"; then
21060 already_handled
=yes
21064 if test -z "$already_handled"; then
21065 names_already_handled
="$names_already_handled $name"
21066 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21067 eval value
=\"\
$HAVE_LIB$uppername\"
21068 if test -n "$value"; then
21069 if test "$value" = yes; then
21070 eval value
=\"\
$LIB$uppername\"
21071 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
21072 eval value
=\"\
$LTLIB$uppername\"
21073 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
21082 if test $use_additional = yes; then
21083 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
21084 found_dir
="$additional_libdir"
21085 found_so
="$additional_libdir/lib$name.$shlibext"
21086 if test -f "$additional_libdir/lib$name.la"; then
21087 found_la
="$additional_libdir/lib$name.la"
21089 elif test x
$lib_type != xshared
; then
21090 if test -f "$additional_libdir/lib$name.$libext"; then
21091 found_dir
="$additional_libdir"
21092 found_a
="$additional_libdir/lib$name.$libext"
21093 if test -f "$additional_libdir/lib$name.la"; then
21094 found_la
="$additional_libdir/lib$name.la"
21099 if test "X$found_dir" = "X"; then
21100 for x
in $LDFLAGS $LTLIBIPT; do
21102 acl_save_prefix
="$prefix"
21103 prefix
="$acl_final_prefix"
21104 acl_save_exec_prefix
="$exec_prefix"
21105 exec_prefix
="$acl_final_exec_prefix"
21107 exec_prefix
="$acl_save_exec_prefix"
21108 prefix
="$acl_save_prefix"
21112 dir
=`echo "X$x" | sed -e 's/^X-L//'`
21113 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
21115 found_so
="$dir/lib$name.$shlibext"
21116 if test -f "$dir/lib$name.la"; then
21117 found_la
="$dir/lib$name.la"
21119 elif test x
$lib_type != xshared
; then
21120 if test -f "$dir/lib$name.$libext"; then
21122 found_a
="$dir/lib$name.$libext"
21123 if test -f "$dir/lib$name.la"; then
21124 found_la
="$dir/lib$name.la"
21130 if test "X$found_dir" != "X"; then
21135 if test "X$found_dir" != "X"; then
21136 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
21137 if test "X$found_so" != "X"; then
21138 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
21139 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
21142 for x
in $ltrpathdirs; do
21143 if test "X$x" = "X$found_dir"; then
21148 if test -z "$haveit"; then
21149 ltrpathdirs
="$ltrpathdirs $found_dir"
21151 if test "$hardcode_direct" = yes; then
21152 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
21154 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
21155 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
21157 for x
in $rpathdirs; do
21158 if test "X$x" = "X$found_dir"; then
21163 if test -z "$haveit"; then
21164 rpathdirs
="$rpathdirs $found_dir"
21168 for x
in $LDFLAGS $LIBIPT; do
21170 acl_save_prefix
="$prefix"
21171 prefix
="$acl_final_prefix"
21172 acl_save_exec_prefix
="$exec_prefix"
21173 exec_prefix
="$acl_final_exec_prefix"
21175 exec_prefix
="$acl_save_exec_prefix"
21176 prefix
="$acl_save_prefix"
21178 if test "X$x" = "X-L$found_dir"; then
21183 if test -z "$haveit"; then
21184 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
21186 if test "$hardcode_minus_L" != no
; then
21187 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
21189 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
21195 if test "X$found_a" != "X"; then
21196 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
21198 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
21201 additional_includedir
=
21202 case "$found_dir" in
21204 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21205 additional_includedir
="$basedir/include"
21208 if test "X$additional_includedir" != "X"; then
21209 if test "X$additional_includedir" != "X/usr/include"; then
21211 if test "X$additional_includedir" = "X/usr/local/include"; then
21212 if test -n "$GCC"; then
21214 linux
*) haveit
=yes;;
21218 if test -z "$haveit"; then
21219 for x
in $CPPFLAGS $INCIPT; do
21221 acl_save_prefix
="$prefix"
21222 prefix
="$acl_final_prefix"
21223 acl_save_exec_prefix
="$exec_prefix"
21224 exec_prefix
="$acl_final_exec_prefix"
21226 exec_prefix
="$acl_save_exec_prefix"
21227 prefix
="$acl_save_prefix"
21229 if test "X$x" = "X-I$additional_includedir"; then
21234 if test -z "$haveit"; then
21235 if test -d "$additional_includedir"; then
21236 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
21242 if test -n "$found_la"; then
21243 save_libdir
="$libdir"
21244 case "$found_la" in
21245 */* |
*\\*) .
"$found_la" ;;
21246 *) .
"./$found_la" ;;
21248 libdir
="$save_libdir"
21249 for dep
in $dependency_libs; do
21252 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
21253 if test "X$additional_libdir" != "X/usr/lib"; then
21255 if test "X$additional_libdir" = "X/usr/local/lib"; then
21256 if test -n "$GCC"; then
21258 linux
*) haveit
=yes;;
21262 if test -z "$haveit"; then
21264 for x
in $LDFLAGS $LIBIPT; do
21266 acl_save_prefix
="$prefix"
21267 prefix
="$acl_final_prefix"
21268 acl_save_exec_prefix
="$exec_prefix"
21269 exec_prefix
="$acl_final_exec_prefix"
21271 exec_prefix
="$acl_save_exec_prefix"
21272 prefix
="$acl_save_prefix"
21274 if test "X$x" = "X-L$additional_libdir"; then
21279 if test -z "$haveit"; then
21280 if test -d "$additional_libdir"; then
21281 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
21285 for x
in $LDFLAGS $LTLIBIPT; do
21287 acl_save_prefix
="$prefix"
21288 prefix
="$acl_final_prefix"
21289 acl_save_exec_prefix
="$exec_prefix"
21290 exec_prefix
="$acl_final_exec_prefix"
21292 exec_prefix
="$acl_save_exec_prefix"
21293 prefix
="$acl_save_prefix"
21295 if test "X$x" = "X-L$additional_libdir"; then
21300 if test -z "$haveit"; then
21301 if test -d "$additional_libdir"; then
21302 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
21309 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
21310 if test "$enable_rpath" != no
; then
21312 for x
in $rpathdirs; do
21313 if test "X$x" = "X$dir"; then
21318 if test -z "$haveit"; then
21319 rpathdirs
="$rpathdirs $dir"
21322 for x
in $ltrpathdirs; do
21323 if test "X$x" = "X$dir"; then
21328 if test -z "$haveit"; then
21329 ltrpathdirs
="$ltrpathdirs $dir"
21334 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21337 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21340 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
21341 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
21347 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
21348 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
21349 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
21351 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
21352 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
21359 if test "X$rpathdirs" != "X"; then
21360 if test -n "$hardcode_libdir_separator"; then
21362 for found_dir
in $rpathdirs; do
21363 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21365 acl_save_libdir
="$libdir"
21367 eval flag
=\"$hardcode_libdir_flag_spec\"
21368 libdir
="$acl_save_libdir"
21369 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
21371 for found_dir
in $rpathdirs; do
21372 acl_save_libdir
="$libdir"
21373 libdir
="$found_dir"
21374 eval flag
=\"$hardcode_libdir_flag_spec\"
21375 libdir
="$acl_save_libdir"
21376 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
21380 if test "X$ltrpathdirs" != "X"; then
21381 for found_dir
in $ltrpathdirs; do
21382 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
21387 ac_save_CPPFLAGS
="$CPPFLAGS"
21389 for element
in $INCIPT; do
21391 for x
in $CPPFLAGS; do
21393 acl_save_prefix
="$prefix"
21394 prefix
="$acl_final_prefix"
21395 acl_save_exec_prefix
="$exec_prefix"
21396 exec_prefix
="$acl_final_exec_prefix"
21398 exec_prefix
="$acl_save_exec_prefix"
21399 prefix
="$acl_save_prefix"
21401 if test "X$x" = "X$element"; then
21406 if test -z "$haveit"; then
21407 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
21412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
21413 $as_echo_n "checking for libipt... " >&6; }
21414 if ${ac_cv_libipt+:} false
; then :
21415 $as_echo_n "(cached) " >&6
21418 ac_save_LIBS
="$LIBS"
21419 LIBS
="$LIBS $LIBIPT"
21420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21421 /* end confdefs.h. */
21422 #include "intel-pt.h"
21426 pt_insn_alloc_decoder (0);
21431 if ac_fn_c_try_link
"$LINENO"; then :
21436 rm -f core conftest.err conftest.
$ac_objext \
21437 conftest
$ac_exeext conftest.
$ac_ext
21438 LIBS
="$ac_save_LIBS"
21441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
21442 $as_echo "$ac_cv_libipt" >&6; }
21443 if test "$ac_cv_libipt" = yes; then
21446 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
21448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
21449 $as_echo_n "checking how to link with libipt... " >&6; }
21450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
21451 $as_echo "$LIBIPT" >&6; }
21454 CPPFLAGS
="$ac_save_CPPFLAGS"
21464 if test "$HAVE_LIBIPT" != yes; then
21465 if test "$with_intel_pt" = yes; then
21466 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
21468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
21469 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
21473 LIBS
="$LIBS $LIBIPT"
21474 for ac_func
in pt_insn_event
21476 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
21477 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
21478 cat >>confdefs.h
<<_ACEOF
21479 #define HAVE_PT_INSN_EVENT 1
21485 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
21487 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
21489 cat >>confdefs.h
<<_ACEOF
21490 #define HAVE_STRUCT_PT_INSN_ENABLED 1
21495 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
21497 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
21499 cat >>confdefs.h
<<_ACEOF
21500 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
21510 # Check if the compiler and runtime support printing long longs.
21512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
21513 $as_echo_n "checking for long long support in printf... " >&6; }
21514 if ${gdb_cv_printf_has_long_long+:} false
; then :
21515 $as_echo_n "(cached) " >&6
21517 if test "$cross_compiling" = yes; then :
21518 gdb_cv_printf_has_long_long
=no
21520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21521 /* end confdefs.h. */
21522 $ac_includes_default
21528 l = (l << 16) + 0x0123;
21529 l = (l << 16) + 0x4567;
21530 l = (l << 16) + 0x89ab;
21531 l = (l << 16) + 0xcdef;
21532 sprintf (buf, "0x%016llx", l);
21533 return (strcmp ("0x0123456789abcdef", buf));
21538 if ac_fn_c_try_run
"$LINENO"; then :
21539 gdb_cv_printf_has_long_long
=yes
21541 gdb_cv_printf_has_long_long
=no
21543 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21544 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
21549 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
21550 if test "$gdb_cv_printf_has_long_long" = yes; then
21552 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
21557 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
21559 for ac_header
in sys
/procfs.h
21561 ac_fn_c_check_header_mongrel
"$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
21562 if test "x$ac_cv_header_sys_procfs_h" = xyes
; then :
21563 cat >>confdefs.h
<<_ACEOF
21564 #define HAVE_SYS_PROCFS_H 1
21571 if test "$ac_cv_header_sys_procfs_h" = yes; then
21573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
21574 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
21575 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
21576 $as_echo_n "(cached) " >&6
21578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21579 /* end confdefs.h. */
21582 #include <sys/procfs.h>
21591 if ac_fn_c_try_compile
"$LINENO"; then :
21592 bfd_cv_have_sys_procfs_type_gregset_t
=yes
21594 bfd_cv_have_sys_procfs_type_gregset_t
=no
21597 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21600 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
21602 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
21605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
21606 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
21609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
21610 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
21611 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
21612 $as_echo_n "(cached) " >&6
21614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21615 /* end confdefs.h. */
21618 #include <sys/procfs.h>
21627 if ac_fn_c_try_compile
"$LINENO"; then :
21628 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
21630 bfd_cv_have_sys_procfs_type_fpregset_t
=no
21633 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21636 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
21638 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
21641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
21642 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
21645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
21646 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
21647 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
21648 $as_echo_n "(cached) " >&6
21650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21651 /* end confdefs.h. */
21654 #include <sys/procfs.h>
21663 if ac_fn_c_try_compile
"$LINENO"; then :
21664 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
21666 bfd_cv_have_sys_procfs_type_prgregset_t
=no
21669 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21672 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
21674 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
21677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
21678 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
21681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
21682 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
21683 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
21684 $as_echo_n "(cached) " >&6
21686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21687 /* end confdefs.h. */
21690 #include <sys/procfs.h>
21699 if ac_fn_c_try_compile
"$LINENO"; then :
21700 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
21702 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
21705 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21708 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
21710 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
21713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
21714 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
21717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
21718 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
21719 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
21720 $as_echo_n "(cached) " >&6
21722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21723 /* end confdefs.h. */
21726 #include <sys/procfs.h>
21735 if ac_fn_c_try_compile
"$LINENO"; then :
21736 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
21738 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
21741 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21744 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
21746 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
21749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
21750 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
21753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
21754 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
21755 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
21756 $as_echo_n "(cached) " >&6
21758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21759 /* end confdefs.h. */
21762 #include <sys/procfs.h>
21771 if ac_fn_c_try_compile
"$LINENO"; then :
21772 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
21774 bfd_cv_have_sys_procfs_type_lwpid_t
=no
21777 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21780 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
21782 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
21785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
21786 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
21789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
21790 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
21791 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
21792 $as_echo_n "(cached) " >&6
21794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21795 /* end confdefs.h. */
21798 #include <sys/procfs.h>
21807 if ac_fn_c_try_compile
"$LINENO"; then :
21808 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
21810 bfd_cv_have_sys_procfs_type_psaddr_t
=no
21813 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21816 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
21818 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
21821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
21822 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
21825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
21826 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
21827 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
21828 $as_echo_n "(cached) " >&6
21830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21831 /* end confdefs.h. */
21834 #include <sys/procfs.h>
21838 elf_fpregset_t avar
21843 if ac_fn_c_try_compile
"$LINENO"; then :
21844 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
21846 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
21849 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21852 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
21854 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
21857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
21858 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
21864 # Check whether --with-xxhash was given.
21865 if test "${with_xxhash+set}" = set; then :
21866 withval
=$with_xxhash;
21872 if test "x$with_xxhash" != "xno"; then
21883 acl_save_prefix
="$prefix"
21884 prefix
="$acl_final_prefix"
21885 acl_save_exec_prefix
="$exec_prefix"
21886 exec_prefix
="$acl_final_exec_prefix"
21888 eval additional_includedir
=\"$includedir\"
21889 eval additional_libdir
=\"$libdir\"
21891 exec_prefix
="$acl_save_exec_prefix"
21892 prefix
="$acl_save_prefix"
21895 # Check whether --with-libxxhash-prefix was given.
21896 if test "${with_libxxhash_prefix+set}" = set; then :
21897 withval
=$with_libxxhash_prefix;
21898 if test "X$withval" = "Xno"; then
21901 if test "X$withval" = "X"; then
21903 acl_save_prefix
="$prefix"
21904 prefix
="$acl_final_prefix"
21905 acl_save_exec_prefix
="$exec_prefix"
21906 exec_prefix
="$acl_final_exec_prefix"
21908 eval additional_includedir
=\"$includedir\"
21909 eval additional_libdir
=\"$libdir\"
21911 exec_prefix
="$acl_save_exec_prefix"
21912 prefix
="$acl_save_prefix"
21915 additional_includedir
="$withval/include"
21916 additional_libdir
="$withval/lib"
21923 # Check whether --with-libxxhash-type was given.
21924 if test "${with_libxxhash_type+set}" = set; then :
21925 withval
=$with_libxxhash_type; with_libxxhash_type
=$withval
21927 with_libxxhash_type
=auto
21930 lib_type
=`eval echo \$with_libxxhash_type`
21937 names_already_handled
=
21938 names_next_round
='xxhash '
21939 while test -n "$names_next_round"; do
21940 names_this_round
="$names_next_round"
21942 for name
in $names_this_round; do
21944 for n
in $names_already_handled; do
21945 if test "$n" = "$name"; then
21946 already_handled
=yes
21950 if test -z "$already_handled"; then
21951 names_already_handled
="$names_already_handled $name"
21952 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21953 eval value
=\"\
$HAVE_LIB$uppername\"
21954 if test -n "$value"; then
21955 if test "$value" = yes; then
21956 eval value
=\"\
$LIB$uppername\"
21957 test -z "$value" || LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$value"
21958 eval value
=\"\
$LTLIB$uppername\"
21959 test -z "$value" || LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$value"
21968 if test $use_additional = yes; then
21969 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
21970 found_dir
="$additional_libdir"
21971 found_so
="$additional_libdir/lib$name.$shlibext"
21972 if test -f "$additional_libdir/lib$name.la"; then
21973 found_la
="$additional_libdir/lib$name.la"
21975 elif test x
$lib_type != xshared
; then
21976 if test -f "$additional_libdir/lib$name.$libext"; then
21977 found_dir
="$additional_libdir"
21978 found_a
="$additional_libdir/lib$name.$libext"
21979 if test -f "$additional_libdir/lib$name.la"; then
21980 found_la
="$additional_libdir/lib$name.la"
21985 if test "X$found_dir" = "X"; then
21986 for x
in $LDFLAGS $LTLIBXXHASH; do
21988 acl_save_prefix
="$prefix"
21989 prefix
="$acl_final_prefix"
21990 acl_save_exec_prefix
="$exec_prefix"
21991 exec_prefix
="$acl_final_exec_prefix"
21993 exec_prefix
="$acl_save_exec_prefix"
21994 prefix
="$acl_save_prefix"
21998 dir
=`echo "X$x" | sed -e 's/^X-L//'`
21999 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
22001 found_so
="$dir/lib$name.$shlibext"
22002 if test -f "$dir/lib$name.la"; then
22003 found_la
="$dir/lib$name.la"
22005 elif test x
$lib_type != xshared
; then
22006 if test -f "$dir/lib$name.$libext"; then
22008 found_a
="$dir/lib$name.$libext"
22009 if test -f "$dir/lib$name.la"; then
22010 found_la
="$dir/lib$name.la"
22016 if test "X$found_dir" != "X"; then
22021 if test "X$found_dir" != "X"; then
22022 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$found_dir -l$name"
22023 if test "X$found_so" != "X"; then
22024 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
22025 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
22028 for x
in $ltrpathdirs; do
22029 if test "X$x" = "X$found_dir"; then
22034 if test -z "$haveit"; then
22035 ltrpathdirs
="$ltrpathdirs $found_dir"
22037 if test "$hardcode_direct" = yes; then
22038 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
22040 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
22041 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
22043 for x
in $rpathdirs; do
22044 if test "X$x" = "X$found_dir"; then
22049 if test -z "$haveit"; then
22050 rpathdirs
="$rpathdirs $found_dir"
22054 for x
in $LDFLAGS $LIBXXHASH; do
22056 acl_save_prefix
="$prefix"
22057 prefix
="$acl_final_prefix"
22058 acl_save_exec_prefix
="$exec_prefix"
22059 exec_prefix
="$acl_final_exec_prefix"
22061 exec_prefix
="$acl_save_exec_prefix"
22062 prefix
="$acl_save_prefix"
22064 if test "X$x" = "X-L$found_dir"; then
22069 if test -z "$haveit"; then
22070 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir"
22072 if test "$hardcode_minus_L" != no
; then
22073 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
22075 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
22081 if test "X$found_a" != "X"; then
22082 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_a"
22084 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir -l$name"
22087 additional_includedir
=
22088 case "$found_dir" in
22090 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
22091 additional_includedir
="$basedir/include"
22094 if test "X$additional_includedir" != "X"; then
22095 if test "X$additional_includedir" != "X/usr/include"; then
22097 if test "X$additional_includedir" = "X/usr/local/include"; then
22098 if test -n "$GCC"; then
22100 linux
*) haveit
=yes;;
22104 if test -z "$haveit"; then
22105 for x
in $CPPFLAGS $INCXXHASH; do
22107 acl_save_prefix
="$prefix"
22108 prefix
="$acl_final_prefix"
22109 acl_save_exec_prefix
="$exec_prefix"
22110 exec_prefix
="$acl_final_exec_prefix"
22112 exec_prefix
="$acl_save_exec_prefix"
22113 prefix
="$acl_save_prefix"
22115 if test "X$x" = "X-I$additional_includedir"; then
22120 if test -z "$haveit"; then
22121 if test -d "$additional_includedir"; then
22122 INCXXHASH
="${INCXXHASH}${INCXXHASH:+ }-I$additional_includedir"
22128 if test -n "$found_la"; then
22129 save_libdir
="$libdir"
22130 case "$found_la" in
22131 */* |
*\\*) .
"$found_la" ;;
22132 *) .
"./$found_la" ;;
22134 libdir
="$save_libdir"
22135 for dep
in $dependency_libs; do
22138 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
22139 if test "X$additional_libdir" != "X/usr/lib"; then
22141 if test "X$additional_libdir" = "X/usr/local/lib"; then
22142 if test -n "$GCC"; then
22144 linux
*) haveit
=yes;;
22148 if test -z "$haveit"; then
22150 for x
in $LDFLAGS $LIBXXHASH; do
22152 acl_save_prefix
="$prefix"
22153 prefix
="$acl_final_prefix"
22154 acl_save_exec_prefix
="$exec_prefix"
22155 exec_prefix
="$acl_final_exec_prefix"
22157 exec_prefix
="$acl_save_exec_prefix"
22158 prefix
="$acl_save_prefix"
22160 if test "X$x" = "X-L$additional_libdir"; then
22165 if test -z "$haveit"; then
22166 if test -d "$additional_libdir"; then
22167 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$additional_libdir"
22171 for x
in $LDFLAGS $LTLIBXXHASH; do
22173 acl_save_prefix
="$prefix"
22174 prefix
="$acl_final_prefix"
22175 acl_save_exec_prefix
="$exec_prefix"
22176 exec_prefix
="$acl_final_exec_prefix"
22178 exec_prefix
="$acl_save_exec_prefix"
22179 prefix
="$acl_save_prefix"
22181 if test "X$x" = "X-L$additional_libdir"; then
22186 if test -z "$haveit"; then
22187 if test -d "$additional_libdir"; then
22188 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$additional_libdir"
22195 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
22196 if test "$enable_rpath" != no
; then
22198 for x
in $rpathdirs; do
22199 if test "X$x" = "X$dir"; then
22204 if test -z "$haveit"; then
22205 rpathdirs
="$rpathdirs $dir"
22208 for x
in $ltrpathdirs; do
22209 if test "X$x" = "X$dir"; then
22214 if test -z "$haveit"; then
22215 ltrpathdirs
="$ltrpathdirs $dir"
22220 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22223 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22226 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$dep"
22227 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$dep"
22233 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
22234 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
22235 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l$name"
22237 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l:lib$name.$libext"
22238 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l:lib$name.$libext"
22245 if test "X$rpathdirs" != "X"; then
22246 if test -n "$hardcode_libdir_separator"; then
22248 for found_dir
in $rpathdirs; do
22249 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
22251 acl_save_libdir
="$libdir"
22253 eval flag
=\"$hardcode_libdir_flag_spec\"
22254 libdir
="$acl_save_libdir"
22255 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
22257 for found_dir
in $rpathdirs; do
22258 acl_save_libdir
="$libdir"
22259 libdir
="$found_dir"
22260 eval flag
=\"$hardcode_libdir_flag_spec\"
22261 libdir
="$acl_save_libdir"
22262 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
22266 if test "X$ltrpathdirs" != "X"; then
22267 for found_dir
in $ltrpathdirs; do
22268 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-R$found_dir"
22273 ac_save_CPPFLAGS
="$CPPFLAGS"
22275 for element
in $INCXXHASH; do
22277 for x
in $CPPFLAGS; do
22279 acl_save_prefix
="$prefix"
22280 prefix
="$acl_final_prefix"
22281 acl_save_exec_prefix
="$exec_prefix"
22282 exec_prefix
="$acl_final_exec_prefix"
22284 exec_prefix
="$acl_save_exec_prefix"
22285 prefix
="$acl_save_prefix"
22287 if test "X$x" = "X$element"; then
22292 if test -z "$haveit"; then
22293 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
22298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxxhash" >&5
22299 $as_echo_n "checking for libxxhash... " >&6; }
22300 if ${ac_cv_libxxhash+:} false
; then :
22301 $as_echo_n "(cached) " >&6
22304 ac_save_LIBS
="$LIBS"
22305 LIBS
="$LIBS $LIBXXHASH"
22306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22307 /* end confdefs.h. */
22308 #include <xxhash.h>
22312 XXH32("foo", 3, 0);
22318 if ac_fn_c_try_link
"$LINENO"; then :
22319 ac_cv_libxxhash
=yes
22323 rm -f core conftest.err conftest.
$ac_objext \
22324 conftest
$ac_exeext conftest.
$ac_ext
22325 LIBS
="$ac_save_LIBS"
22328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxxhash" >&5
22329 $as_echo "$ac_cv_libxxhash" >&6; }
22330 if test "$ac_cv_libxxhash" = yes; then
22333 $as_echo "#define HAVE_LIBXXHASH 1" >>confdefs.h
22335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libxxhash" >&5
22336 $as_echo_n "checking how to link with libxxhash... " >&6; }
22337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXXHASH" >&5
22338 $as_echo "$LIBXXHASH" >&6; }
22341 CPPFLAGS
="$ac_save_CPPFLAGS"
22351 if test "$HAVE_LIBXXHASH" != yes; then
22352 if test "$with_xxhash" = yes; then
22353 as_fn_error $?
"xxhash is missing or unusable" "$LINENO" 5
22356 if test "x$with_xxhash" = "xauto"; then
22357 with_xxhash
="$HAVE_LIBXXHASH"
22361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
22362 $as_echo_n "checking whether to use xxhash... " >&6; }
22363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
22364 $as_echo "$with_xxhash" >&6; }
22367 # Dependency checking.
22368 rm -rf .tst
2>/dev
/null
22369 mkdir .tst
2>/dev
/null
22370 if test -d .tst
; then
22375 rmdir .tst
2>/dev
/null
22377 DEPDIR
="${am__leading_dot}deps"
22379 ac_config_commands
="$ac_config_commands depdir"
22382 depcc
="$CC" am_compiler_list
=
22384 am_depcomp
=$ac_aux_dir/depcomp
22385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
22386 $as_echo_n "checking dependency style of $depcc... " >&6; }
22387 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
22388 $as_echo_n "(cached) " >&6
22390 if test -f "$am_depcomp"; then
22391 # We make a subdir and do the tests there. Otherwise we can end up
22392 # making bogus files that we don't know about and never remove. For
22393 # instance it was reported that on HP-UX the gcc test will end up
22394 # making a dummy file named `D' -- because `-MD' means `put the output
22397 # Copy depcomp to subdir because otherwise we won't find it if we're
22398 # using a relative directory.
22399 cp "$am_depcomp" conftest.dir
22401 # We will build objects and dependencies in a subdirectory because
22402 # it helps to detect inapplicable dependency modes. For instance
22403 # both Tru64's cc and ICC support -MD to output dependencies as a
22404 # side effect of compilation, but ICC will put the dependencies in
22405 # the current directory while Tru64 will put them in the object
22409 am_cv_CC_dependencies_compiler_type
=none
22410 if test "$am_compiler_list" = ""; then
22411 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22413 for depmode
in $am_compiler_list; do
22414 if test $depmode = none
; then break; fi
22416 $as_echo "$as_me:$LINENO: trying $depmode" >&5
22417 # Setup a source with many dependencies, because some compilers
22418 # like to wrap large dependency lists on column 80 (with \), and
22419 # we should not choose a depcomp mode which is confused by this.
22421 # We need to recreate these files for each test, as the compiler may
22422 # overwrite some of them when testing with obscure command lines.
22423 # This happens at least with the AIX C compiler.
22425 for i
in 1 2 3 4 5 6; do
22426 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
22427 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
22428 # Solaris 8's {/usr,}/bin/sh.
22429 touch sub
/conftst
$i.h
22431 echo "include sub/conftest.Po" > confmf
22433 # We check with `-c' and `-o' for the sake of the "dashmstdout"
22434 # mode. It turns out that the SunPro C++ compiler does not properly
22435 # handle `-M -o', and we need to detect this.
22436 depcmd
="depmode=$depmode \
22437 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
22438 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
22439 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
22440 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
22441 if env
$depcmd > conftest.err
2>&1 &&
22442 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
22443 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
22444 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
22445 # icc doesn't choke on unknown options, it will just issue warnings
22446 # or remarks (even with -Werror). So we grep stderr for any message
22447 # that says an option was ignored or not supported.
22448 # When given -MP, icc 7.0 and 7.1 complain thusly:
22449 # icc: Command line warning: ignoring option '-M'; no argument required
22450 # The diagnosis changed in icc 8.0:
22451 # icc: Command line remark: option '-MP' not supported
22452 if (grep 'ignoring option' conftest.err ||
22453 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
22454 am_cv_CC_dependencies_compiler_type
=$depmode
22455 $as_echo "$as_me:$LINENO: success" >&5
22459 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
22460 sed -e 's/^/| /' < conftest.err
>&5
22464 rm -rf conftest.dir
22466 am_cv_CC_dependencies_compiler_type
=none
22470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
22471 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
22472 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
22473 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
22474 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
22479 # Since the first call to PKG_CHECK_MODULES may not happen (is guarded by
22480 # a condition), we must call PKG_PROG_PKG_CONFIG explicitly to probe for
22489 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22490 if test -n "$ac_tool_prefix"; then
22491 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22492 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
22493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22494 $as_echo_n "checking for $ac_word... " >&6; }
22495 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
22496 $as_echo_n "(cached) " >&6
22498 case $PKG_CONFIG in
22500 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
22503 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22504 for as_dir
in $PATH
22507 test -z "$as_dir" && as_dir
=.
22508 for ac_exec_ext
in '' $ac_executable_extensions; do
22509 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22510 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
22511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22521 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
22522 if test -n "$PKG_CONFIG"; then
22523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22524 $as_echo "$PKG_CONFIG" >&6; }
22526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22527 $as_echo "no" >&6; }
22532 if test -z "$ac_cv_path_PKG_CONFIG"; then
22533 ac_pt_PKG_CONFIG
=$PKG_CONFIG
22534 # Extract the first word of "pkg-config", so it can be a program name with args.
22535 set dummy pkg-config
; ac_word
=$2
22536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22537 $as_echo_n "checking for $ac_word... " >&6; }
22538 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
22539 $as_echo_n "(cached) " >&6
22541 case $ac_pt_PKG_CONFIG in
22543 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22546 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22547 for as_dir
in $PATH
22550 test -z "$as_dir" && as_dir
=.
22551 for ac_exec_ext
in '' $ac_executable_extensions; do
22552 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22553 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
22554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22564 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
22565 if test -n "$ac_pt_PKG_CONFIG"; then
22566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
22567 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
22569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22570 $as_echo "no" >&6; }
22573 if test "x$ac_pt_PKG_CONFIG" = x
; then
22576 case $cross_compiling:$ac_tool_warned in
22578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22580 ac_tool_warned
=yes ;;
22582 PKG_CONFIG
=$ac_pt_PKG_CONFIG
22585 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
22589 if test -n "$PKG_CONFIG"; then
22590 _pkg_min_version
=0.9.0
22591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
22592 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
22593 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22595 $as_echo "yes" >&6; }
22597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22598 $as_echo "no" >&6; }
22614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
22615 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
22617 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22618 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
22619 $as_echo_n "(cached) " >&6
22621 cat >conftest.
make <<\_ACEOF
22624 @
echo '@@@%%%=$(MAKE)=@@@%%%'
22626 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
22627 case `${MAKE-make} -f conftest.make 2>/dev/null` in
22628 *@@@
%%%=?
*=@@@
%%%*)
22629 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
22631 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
22633 rm -f conftest.
make
22635 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
22636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22637 $as_echo "yes" >&6; }
22640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22641 $as_echo "no" >&6; }
22642 SET_MAKE
="MAKE=${MAKE-make}"
22645 # Find a good install program. We prefer a C program (faster),
22646 # so one script is as good as another. But avoid the broken or
22647 # incompatible versions:
22648 # SysV /etc/install, /usr/sbin/install
22649 # SunOS /usr/etc/install
22650 # IRIX /sbin/install
22652 # AmigaOS /C/install, which installs bootblocks on floppy discs
22653 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
22654 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
22655 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
22656 # OS/2's system install, which has a completely different semantic
22657 # ./install, which can be erroneously created by make from ./install.sh.
22658 # Reject install programs that cannot install multiple files.
22659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
22660 $as_echo_n "checking for a BSD-compatible install... " >&6; }
22661 if test -z "$INSTALL"; then
22662 if ${ac_cv_path_install+:} false
; then :
22663 $as_echo_n "(cached) " >&6
22665 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22666 for as_dir
in $PATH
22669 test -z "$as_dir" && as_dir
=.
22670 # Account for people who put trailing slashes in PATH elements.
22671 case $as_dir/ in #((
22672 .
/ | .
// |
/[cC
]/* | \
22673 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
22674 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
22677 # OSF1 and SCO ODT 3.0 have their own names for install.
22678 # Don't use installbsd from OSF since it installs stuff as root
22680 for ac_prog
in ginstall scoinst
install; do
22681 for ac_exec_ext
in '' $ac_executable_extensions; do
22682 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
22683 if test $ac_prog = install &&
22684 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
22685 # AIX install. It has an incompatible calling convention.
22687 elif test $ac_prog = install &&
22688 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
22689 # program-specific install script used by HP pwplus--don't use.
22692 rm -rf conftest.one conftest.two conftest.dir
22693 echo one
> conftest.one
22694 echo two
> conftest.two
22696 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
22697 test -s conftest.one
&& test -s conftest.two
&&
22698 test -s conftest.dir
/conftest.one
&&
22699 test -s conftest.dir
/conftest.two
22701 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
22714 rm -rf conftest.one conftest.two conftest.dir
22717 if test "${ac_cv_path_install+set}" = set; then
22718 INSTALL
=$ac_cv_path_install
22720 # As a last resort, use the slow shell script. Don't cache a
22721 # value for INSTALL within a source directory, because that will
22722 # break other packages using the cache if that directory is
22723 # removed, or if the value is a relative name.
22724 INSTALL
=$ac_install_sh
22727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
22728 $as_echo "$INSTALL" >&6; }
22730 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
22731 # It thinks the first close brace ends the variable substitution.
22732 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
22734 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
22736 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
22740 if test -n "$ac_aux_dir"; then
22741 case "$ac_aux_dir" in
22742 /*) MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs" ;;
22743 *) MKINSTALLDIRS
="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
22746 if test -z "$MKINSTALLDIRS"; then
22747 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
22752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
22753 $as_echo_n "checking whether NLS is requested... " >&6; }
22754 # Check whether --enable-nls was given.
22755 if test "${enable_nls+set}" = set; then :
22756 enableval
=$enable_nls; USE_NLS
=$enableval
22761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
22762 $as_echo "$USE_NLS" >&6; }
22769 # Prepare PATH_SEPARATOR.
22770 # The user is always right.
22771 if test "${PATH_SEPARATOR+set}" != set; then
22772 echo "#! /bin/sh" >conf$$.sh
22773 echo "exit 0" >>conf$$.sh
22775 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
22783 # Find out how to test for executable files. Don't use a zero-byte file,
22784 # as systems may use methods other than mode bits to determine executability.
22785 cat >conf$$.
file <<_ASEOF
22789 chmod +x conf$$.
file
22790 if test -x conf$$.
file >/dev
/null
2>&1; then
22791 ac_executable_p
="test -x"
22793 ac_executable_p
="test -f"
22797 # Extract the first word of "msgfmt", so it can be a program name with args.
22798 set dummy msgfmt
; ac_word
=$2
22799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22800 $as_echo_n "checking for $ac_word... " >&6; }
22801 if ${ac_cv_path_MSGFMT+:} false
; then :
22802 $as_echo_n "(cached) " >&6
22806 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
22809 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
22810 for ac_dir
in $PATH; do
22812 test -z "$ac_dir" && ac_dir
=.
22813 for ac_exec_ext
in '' $ac_executable_extensions; do
22814 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22815 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
22816 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
22817 ac_cv_path_MSGFMT
="$ac_dir/$ac_word$ac_exec_ext"
22824 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
22828 MSGFMT
="$ac_cv_path_MSGFMT"
22829 if test "$MSGFMT" != ":"; then
22830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
22831 $as_echo "$MSGFMT" >&6; }
22833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22834 $as_echo "no" >&6; }
22837 # Extract the first word of "gmsgfmt", so it can be a program name with args.
22838 set dummy gmsgfmt
; ac_word
=$2
22839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22840 $as_echo_n "checking for $ac_word... " >&6; }
22841 if ${ac_cv_path_GMSGFMT+:} false
; then :
22842 $as_echo_n "(cached) " >&6
22846 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
22849 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22850 for as_dir
in $PATH
22853 test -z "$as_dir" && as_dir
=.
22854 for ac_exec_ext
in '' $ac_executable_extensions; do
22855 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22856 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
22857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22864 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
22868 GMSGFMT
=$ac_cv_path_GMSGFMT
22869 if test -n "$GMSGFMT"; then
22870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
22871 $as_echo "$GMSGFMT" >&6; }
22873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22874 $as_echo "no" >&6; }
22880 # Prepare PATH_SEPARATOR.
22881 # The user is always right.
22882 if test "${PATH_SEPARATOR+set}" != set; then
22883 echo "#! /bin/sh" >conf$$.sh
22884 echo "exit 0" >>conf$$.sh
22886 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
22894 # Find out how to test for executable files. Don't use a zero-byte file,
22895 # as systems may use methods other than mode bits to determine executability.
22896 cat >conf$$.
file <<_ASEOF
22900 chmod +x conf$$.
file
22901 if test -x conf$$.
file >/dev
/null
2>&1; then
22902 ac_executable_p
="test -x"
22904 ac_executable_p
="test -f"
22908 # Extract the first word of "xgettext", so it can be a program name with args.
22909 set dummy xgettext
; ac_word
=$2
22910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22911 $as_echo_n "checking for $ac_word... " >&6; }
22912 if ${ac_cv_path_XGETTEXT+:} false
; then :
22913 $as_echo_n "(cached) " >&6
22915 case "$XGETTEXT" in
22917 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
22920 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
22921 for ac_dir
in $PATH; do
22923 test -z "$ac_dir" && ac_dir
=.
22924 for ac_exec_ext
in '' $ac_executable_extensions; do
22925 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22926 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
22927 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
22928 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word$ac_exec_ext"
22935 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
22939 XGETTEXT
="$ac_cv_path_XGETTEXT"
22940 if test "$XGETTEXT" != ":"; then
22941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
22942 $as_echo "$XGETTEXT" >&6; }
22944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22945 $as_echo "no" >&6; }
22951 # Prepare PATH_SEPARATOR.
22952 # The user is always right.
22953 if test "${PATH_SEPARATOR+set}" != set; then
22954 echo "#! /bin/sh" >conf$$.sh
22955 echo "exit 0" >>conf$$.sh
22957 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
22965 # Find out how to test for executable files. Don't use a zero-byte file,
22966 # as systems may use methods other than mode bits to determine executability.
22967 cat >conf$$.
file <<_ASEOF
22971 chmod +x conf$$.
file
22972 if test -x conf$$.
file >/dev
/null
2>&1; then
22973 ac_executable_p
="test -x"
22975 ac_executable_p
="test -f"
22979 # Extract the first word of "msgmerge", so it can be a program name with args.
22980 set dummy msgmerge
; ac_word
=$2
22981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22982 $as_echo_n "checking for $ac_word... " >&6; }
22983 if ${ac_cv_path_MSGMERGE+:} false
; then :
22984 $as_echo_n "(cached) " >&6
22986 case "$MSGMERGE" in
22988 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
22991 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
22992 for ac_dir
in $PATH; do
22994 test -z "$ac_dir" && ac_dir
=.
22995 for ac_exec_ext
in '' $ac_executable_extensions; do
22996 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22997 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
22998 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word$ac_exec_ext"
23005 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
23009 MSGMERGE
="$ac_cv_path_MSGMERGE"
23010 if test "$MSGMERGE" != ":"; then
23011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
23012 $as_echo "$MSGMERGE" >&6; }
23014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23015 $as_echo "no" >&6; }
23019 if test "$GMSGFMT" != ":"; then
23020 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
23021 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
23024 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
23025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
23026 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
23031 if test "$XGETTEXT" != ":"; then
23032 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
23033 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
23036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
23037 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
23043 ac_config_commands
="$ac_config_commands default-1"
23054 acl_save_prefix
="$prefix"
23055 prefix
="$acl_final_prefix"
23056 acl_save_exec_prefix
="$exec_prefix"
23057 exec_prefix
="$acl_final_exec_prefix"
23059 eval additional_includedir
=\"$includedir\"
23060 eval additional_libdir
=\"$libdir\"
23062 exec_prefix
="$acl_save_exec_prefix"
23063 prefix
="$acl_save_prefix"
23066 # Check whether --with-libiconv-prefix was given.
23067 if test "${with_libiconv_prefix+set}" = set; then :
23068 withval
=$with_libiconv_prefix;
23069 if test "X$withval" = "Xno"; then
23072 if test "X$withval" = "X"; then
23074 acl_save_prefix
="$prefix"
23075 prefix
="$acl_final_prefix"
23076 acl_save_exec_prefix
="$exec_prefix"
23077 exec_prefix
="$acl_final_exec_prefix"
23079 eval additional_includedir
=\"$includedir\"
23080 eval additional_libdir
=\"$libdir\"
23082 exec_prefix
="$acl_save_exec_prefix"
23083 prefix
="$acl_save_prefix"
23086 additional_includedir
="$withval/include"
23087 additional_libdir
="$withval/lib"
23094 # Check whether --with-libiconv-type was given.
23095 if test "${with_libiconv_type+set}" = set; then :
23096 withval
=$with_libiconv_type; with_libiconv_type
=$withval
23098 with_libiconv_type
=auto
23101 lib_type
=`eval echo \$with_libiconv_type`
23108 names_already_handled
=
23109 names_next_round
='iconv '
23110 while test -n "$names_next_round"; do
23111 names_this_round
="$names_next_round"
23113 for name
in $names_this_round; do
23115 for n
in $names_already_handled; do
23116 if test "$n" = "$name"; then
23117 already_handled
=yes
23121 if test -z "$already_handled"; then
23122 names_already_handled
="$names_already_handled $name"
23123 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23124 eval value
=\"\
$HAVE_LIB$uppername\"
23125 if test -n "$value"; then
23126 if test "$value" = yes; then
23127 eval value
=\"\
$LIB$uppername\"
23128 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
23129 eval value
=\"\
$LTLIB$uppername\"
23130 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
23139 if test $use_additional = yes; then
23140 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
23141 found_dir
="$additional_libdir"
23142 found_so
="$additional_libdir/lib$name.$shlibext"
23143 if test -f "$additional_libdir/lib$name.la"; then
23144 found_la
="$additional_libdir/lib$name.la"
23146 elif test x
$lib_type != xshared
; then
23147 if test -f "$additional_libdir/lib$name.$libext"; then
23148 found_dir
="$additional_libdir"
23149 found_a
="$additional_libdir/lib$name.$libext"
23150 if test -f "$additional_libdir/lib$name.la"; then
23151 found_la
="$additional_libdir/lib$name.la"
23156 if test "X$found_dir" = "X"; then
23157 for x
in $LDFLAGS $LTLIBICONV; do
23159 acl_save_prefix
="$prefix"
23160 prefix
="$acl_final_prefix"
23161 acl_save_exec_prefix
="$exec_prefix"
23162 exec_prefix
="$acl_final_exec_prefix"
23164 exec_prefix
="$acl_save_exec_prefix"
23165 prefix
="$acl_save_prefix"
23169 dir
=`echo "X$x" | sed -e 's/^X-L//'`
23170 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
23172 found_so
="$dir/lib$name.$shlibext"
23173 if test -f "$dir/lib$name.la"; then
23174 found_la
="$dir/lib$name.la"
23176 elif test x
$lib_type != xshared
; then
23177 if test -f "$dir/lib$name.$libext"; then
23179 found_a
="$dir/lib$name.$libext"
23180 if test -f "$dir/lib$name.la"; then
23181 found_la
="$dir/lib$name.la"
23187 if test "X$found_dir" != "X"; then
23192 if test "X$found_dir" != "X"; then
23193 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
23194 if test "X$found_so" != "X"; then
23195 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
23196 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
23199 for x
in $ltrpathdirs; do
23200 if test "X$x" = "X$found_dir"; then
23205 if test -z "$haveit"; then
23206 ltrpathdirs
="$ltrpathdirs $found_dir"
23208 if test "$hardcode_direct" = yes; then
23209 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
23211 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
23212 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
23214 for x
in $rpathdirs; do
23215 if test "X$x" = "X$found_dir"; then
23220 if test -z "$haveit"; then
23221 rpathdirs
="$rpathdirs $found_dir"
23225 for x
in $LDFLAGS $LIBICONV; do
23227 acl_save_prefix
="$prefix"
23228 prefix
="$acl_final_prefix"
23229 acl_save_exec_prefix
="$exec_prefix"
23230 exec_prefix
="$acl_final_exec_prefix"
23232 exec_prefix
="$acl_save_exec_prefix"
23233 prefix
="$acl_save_prefix"
23235 if test "X$x" = "X-L$found_dir"; then
23240 if test -z "$haveit"; then
23241 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
23243 if test "$hardcode_minus_L" != no
; then
23244 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
23246 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
23252 if test "X$found_a" != "X"; then
23253 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
23255 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
23258 additional_includedir
=
23259 case "$found_dir" in
23261 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23262 additional_includedir
="$basedir/include"
23265 if test "X$additional_includedir" != "X"; then
23266 if test "X$additional_includedir" != "X/usr/include"; then
23268 if test "X$additional_includedir" = "X/usr/local/include"; then
23269 if test -n "$GCC"; then
23271 linux
*) haveit
=yes;;
23275 if test -z "$haveit"; then
23276 for x
in $CPPFLAGS $INCICONV; do
23278 acl_save_prefix
="$prefix"
23279 prefix
="$acl_final_prefix"
23280 acl_save_exec_prefix
="$exec_prefix"
23281 exec_prefix
="$acl_final_exec_prefix"
23283 exec_prefix
="$acl_save_exec_prefix"
23284 prefix
="$acl_save_prefix"
23286 if test "X$x" = "X-I$additional_includedir"; then
23291 if test -z "$haveit"; then
23292 if test -d "$additional_includedir"; then
23293 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
23299 if test -n "$found_la"; then
23300 save_libdir
="$libdir"
23301 case "$found_la" in
23302 */* |
*\\*) .
"$found_la" ;;
23303 *) .
"./$found_la" ;;
23305 libdir
="$save_libdir"
23306 for dep
in $dependency_libs; do
23309 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
23310 if test "X$additional_libdir" != "X/usr/lib"; then
23312 if test "X$additional_libdir" = "X/usr/local/lib"; then
23313 if test -n "$GCC"; then
23315 linux
*) haveit
=yes;;
23319 if test -z "$haveit"; then
23321 for x
in $LDFLAGS $LIBICONV; do
23323 acl_save_prefix
="$prefix"
23324 prefix
="$acl_final_prefix"
23325 acl_save_exec_prefix
="$exec_prefix"
23326 exec_prefix
="$acl_final_exec_prefix"
23328 exec_prefix
="$acl_save_exec_prefix"
23329 prefix
="$acl_save_prefix"
23331 if test "X$x" = "X-L$additional_libdir"; then
23336 if test -z "$haveit"; then
23337 if test -d "$additional_libdir"; then
23338 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
23342 for x
in $LDFLAGS $LTLIBICONV; do
23344 acl_save_prefix
="$prefix"
23345 prefix
="$acl_final_prefix"
23346 acl_save_exec_prefix
="$exec_prefix"
23347 exec_prefix
="$acl_final_exec_prefix"
23349 exec_prefix
="$acl_save_exec_prefix"
23350 prefix
="$acl_save_prefix"
23352 if test "X$x" = "X-L$additional_libdir"; then
23357 if test -z "$haveit"; then
23358 if test -d "$additional_libdir"; then
23359 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
23366 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
23367 if test "$enable_rpath" != no
; then
23369 for x
in $rpathdirs; do
23370 if test "X$x" = "X$dir"; then
23375 if test -z "$haveit"; then
23376 rpathdirs
="$rpathdirs $dir"
23379 for x
in $ltrpathdirs; do
23380 if test "X$x" = "X$dir"; then
23385 if test -z "$haveit"; then
23386 ltrpathdirs
="$ltrpathdirs $dir"
23391 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23394 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23397 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
23398 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
23404 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
23405 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
23406 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
23408 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
23409 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
23416 if test "X$rpathdirs" != "X"; then
23417 if test -n "$hardcode_libdir_separator"; then
23419 for found_dir
in $rpathdirs; do
23420 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23422 acl_save_libdir
="$libdir"
23424 eval flag
=\"$hardcode_libdir_flag_spec\"
23425 libdir
="$acl_save_libdir"
23426 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
23428 for found_dir
in $rpathdirs; do
23429 acl_save_libdir
="$libdir"
23430 libdir
="$found_dir"
23431 eval flag
=\"$hardcode_libdir_flag_spec\"
23432 libdir
="$acl_save_libdir"
23433 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
23437 if test "X$ltrpathdirs" != "X"; then
23438 for found_dir
in $ltrpathdirs; do
23439 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
23447 if test -f ..
/gettext
/uninstalled-config.sh
; then
23448 relative_builddir
='$(top_builddir)/../gettext'
23449 . ..
/gettext
/uninstalled-config.sh
23451 # The sister gettext directory doesn't exist and won't collect information on
23452 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
23476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
23477 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
23478 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false
; then :
23479 $as_echo_n "(cached) " >&6
23481 gt_save_LIBS
="$LIBS"
23482 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
23483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23484 /* end confdefs.h. */
23485 #include <CoreFoundation/CFPreferences.h>
23489 CFPreferencesCopyAppValue(NULL, NULL)
23494 if ac_fn_c_try_link
"$LINENO"; then :
23495 gt_cv_func_CFPreferencesCopyAppValue
=yes
23497 gt_cv_func_CFPreferencesCopyAppValue
=no
23499 rm -f core conftest.err conftest.
$ac_objext \
23500 conftest
$ac_exeext conftest.
$ac_ext
23501 LIBS
="$gt_save_LIBS"
23503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23504 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23505 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23507 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
23510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
23511 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
23512 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false
; then :
23513 $as_echo_n "(cached) " >&6
23515 gt_save_LIBS
="$LIBS"
23516 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
23517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23518 /* end confdefs.h. */
23519 #include <CoreFoundation/CFLocale.h>
23523 CFLocaleCopyPreferredLanguages();
23528 if ac_fn_c_try_link
"$LINENO"; then :
23529 gt_cv_func_CFLocaleCopyPreferredLanguages
=yes
23531 gt_cv_func_CFLocaleCopyPreferredLanguages
=no
23533 rm -f core conftest.err conftest.
$ac_objext \
23534 conftest
$ac_exeext conftest.
$ac_ext
23535 LIBS
="$gt_save_LIBS"
23537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
23538 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
23539 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
23541 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
23545 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
23546 ||
test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
23547 INTL_MACOSX_LIBS
="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
23559 case " $gt_needs " in
23560 *" need-formatstring-macros "*) gt_api_version
=3 ;;
23561 *" need-ngettext "*) gt_api_version
=2 ;;
23562 *) gt_api_version
=1 ;;
23564 gt_func_gnugettext_libc
="gt_cv_func_gnugettext${gt_api_version}_libc"
23565 gt_func_gnugettext_libintl
="gt_cv_func_gnugettext${gt_api_version}_libintl"
23567 if test "$USE_NLS" = "yes"; then
23568 gt_use_preinstalled_gnugettext
=no
23571 if test $gt_api_version -ge 3; then
23572 gt_revision_test_code
='
23573 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
23574 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
23576 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
23579 gt_revision_test_code
=
23581 if test $gt_api_version -ge 2; then
23582 gt_expression_test_code
=' + * ngettext ("", "", 0)'
23584 gt_expression_test_code
=
23587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
23588 $as_echo_n "checking for GNU gettext in libc... " >&6; }
23589 if eval \
${$gt_func_gnugettext_libc+:} false
; then :
23590 $as_echo_n "(cached) " >&6
23592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23593 /* end confdefs.h. */
23595 #include <libintl.h>
23596 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
23597 extern int _nl_msg_cat_cntr;
23598 extern int *_nl_domain_bindings;
23599 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
23601 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
23603 $gt_revision_test_code
23609 bindtextdomain ("", "");
23610 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
23616 if ac_fn_c_try_link
"$LINENO"; then :
23617 eval "$gt_func_gnugettext_libc=yes"
23619 eval "$gt_func_gnugettext_libc=no"
23621 rm -f core conftest.err conftest.
$ac_objext \
23622 conftest
$ac_exeext conftest.
$ac_ext
23624 eval ac_res
=\$
$gt_func_gnugettext_libc
23625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23626 $as_echo "$ac_res" >&6; }
23628 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
23634 am_save_CPPFLAGS
="$CPPFLAGS"
23636 for element
in $INCICONV; do
23638 for x
in $CPPFLAGS; do
23640 acl_save_prefix
="$prefix"
23641 prefix
="$acl_final_prefix"
23642 acl_save_exec_prefix
="$exec_prefix"
23643 exec_prefix
="$acl_final_exec_prefix"
23645 exec_prefix
="$acl_save_exec_prefix"
23646 prefix
="$acl_save_prefix"
23648 if test "X$x" = "X$element"; then
23653 if test -z "$haveit"; then
23654 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
23659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
23660 $as_echo_n "checking for iconv... " >&6; }
23661 if ${am_cv_func_iconv+:} false
; then :
23662 $as_echo_n "(cached) " >&6
23665 am_cv_func_iconv
="no, consider installing GNU libiconv"
23667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23668 /* end confdefs.h. */
23670 #include <stdlib.h>
23676 iconv_t cd = iconv_open("","");
23677 iconv(cd,NULL,NULL,NULL,NULL);
23683 if ac_fn_c_try_link
"$LINENO"; then :
23684 am_cv_func_iconv
=yes
23686 rm -f core conftest.err conftest.
$ac_objext \
23687 conftest
$ac_exeext conftest.
$ac_ext
23688 if test "$am_cv_func_iconv" != yes; then
23689 am_save_LIBS
="$LIBS"
23690 LIBS
="$LIBS $LIBICONV"
23691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23692 /* end confdefs.h. */
23694 #include <stdlib.h>
23700 iconv_t cd = iconv_open("","");
23701 iconv(cd,NULL,NULL,NULL,NULL);
23707 if ac_fn_c_try_link
"$LINENO"; then :
23708 am_cv_lib_iconv
=yes
23709 am_cv_func_iconv
=yes
23711 rm -f core conftest.err conftest.
$ac_objext \
23712 conftest
$ac_exeext conftest.
$ac_ext
23713 LIBS
="$am_save_LIBS"
23717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
23718 $as_echo "$am_cv_func_iconv" >&6; }
23719 if test "$am_cv_func_iconv" = yes; then
23720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
23721 $as_echo_n "checking for working iconv... " >&6; }
23722 if ${am_cv_func_iconv_works+:} false
; then :
23723 $as_echo_n "(cached) " >&6
23726 am_save_LIBS
="$LIBS"
23727 if test $am_cv_lib_iconv = yes; then
23728 LIBS
="$LIBS $LIBICONV"
23730 am_cv_func_iconv_works
=no
23731 for ac_iconv_const
in '' 'const'; do
23732 if test "$cross_compiling" = yes; then :
23734 aix
* | hpux
*) am_cv_func_iconv_works
="guessing no" ;;
23735 *) am_cv_func_iconv_works
="guessing yes" ;;
23738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23739 /* end confdefs.h. */
23742 #include <string.h>
23744 #ifndef ICONV_CONST
23745 # define ICONV_CONST $ac_iconv_const
23752 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
23753 successful returns. This is even documented in
23754 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
23756 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
23757 if (cd_utf8_to_88591 != (iconv_t)(-1))
23759 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
23761 ICONV_CONST char *inptr = input;
23762 size_t inbytesleft = strlen (input);
23763 char *outptr = buf;
23764 size_t outbytesleft = sizeof (buf);
23765 size_t res = iconv (cd_utf8_to_88591,
23766 &inptr, &inbytesleft,
23767 &outptr, &outbytesleft);
23770 iconv_close (cd_utf8_to_88591);
23773 /* Test against Solaris 10 bug: Failures are not distinguishable from
23774 successful returns. */
23776 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
23777 if (cd_ascii_to_88591 != (iconv_t)(-1))
23779 static ICONV_CONST char input[] = "\263";
23781 ICONV_CONST char *inptr = input;
23782 size_t inbytesleft = strlen (input);
23783 char *outptr = buf;
23784 size_t outbytesleft = sizeof (buf);
23785 size_t res = iconv (cd_ascii_to_88591,
23786 &inptr, &inbytesleft,
23787 &outptr, &outbytesleft);
23790 iconv_close (cd_ascii_to_88591);
23793 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
23795 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
23796 if (cd_88591_to_utf8 != (iconv_t)(-1))
23798 static ICONV_CONST char input[] = "\304";
23799 static char buf[2] = { (char)0xDE, (char)0xAD };
23800 ICONV_CONST char *inptr = input;
23801 size_t inbytesleft = 1;
23802 char *outptr = buf;
23803 size_t outbytesleft = 1;
23804 size_t res = iconv (cd_88591_to_utf8,
23805 &inptr, &inbytesleft,
23806 &outptr, &outbytesleft);
23807 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
23809 iconv_close (cd_88591_to_utf8);
23812 #if 0 /* This bug could be worked around by the caller. */
23813 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
23815 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
23816 if (cd_88591_to_utf8 != (iconv_t)(-1))
23818 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
23820 ICONV_CONST char *inptr = input;
23821 size_t inbytesleft = strlen (input);
23822 char *outptr = buf;
23823 size_t outbytesleft = sizeof (buf);
23824 size_t res = iconv (cd_88591_to_utf8,
23825 &inptr, &inbytesleft,
23826 &outptr, &outbytesleft);
23829 iconv_close (cd_88591_to_utf8);
23833 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
23836 /* Try standardized names. */
23837 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
23838 /* Try IRIX, OSF/1 names. */
23839 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
23840 /* Try AIX names. */
23841 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
23842 /* Try HP-UX names. */
23843 iconv_t cd4 = iconv_open ("utf8", "eucJP");
23844 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
23845 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
23847 if (cd1 != (iconv_t)(-1))
23849 if (cd2 != (iconv_t)(-1))
23851 if (cd3 != (iconv_t)(-1))
23853 if (cd4 != (iconv_t)(-1))
23862 if ac_fn_c_try_run
"$LINENO"; then :
23863 am_cv_func_iconv_works
=yes
23865 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23866 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23869 test "$am_cv_func_iconv_works" = no ||
break
23871 LIBS
="$am_save_LIBS"
23874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
23875 $as_echo "$am_cv_func_iconv_works" >&6; }
23876 case "$am_cv_func_iconv_works" in
23877 *no
) am_func_iconv
=no am_cv_lib_iconv
=no
;;
23878 *) am_func_iconv
=yes ;;
23881 am_func_iconv
=no am_cv_lib_iconv
=no
23883 if test "$am_func_iconv" = yes; then
23885 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
23888 if test "$am_cv_lib_iconv" = yes; then
23889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
23890 $as_echo_n "checking how to link with libiconv... " >&6; }
23891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
23892 $as_echo "$LIBICONV" >&6; }
23894 CPPFLAGS
="$am_save_CPPFLAGS"
23906 acl_save_prefix
="$prefix"
23907 prefix
="$acl_final_prefix"
23908 acl_save_exec_prefix
="$exec_prefix"
23909 exec_prefix
="$acl_final_exec_prefix"
23911 eval additional_includedir
=\"$includedir\"
23912 eval additional_libdir
=\"$libdir\"
23914 exec_prefix
="$acl_save_exec_prefix"
23915 prefix
="$acl_save_prefix"
23918 # Check whether --with-libintl-prefix was given.
23919 if test "${with_libintl_prefix+set}" = set; then :
23920 withval
=$with_libintl_prefix;
23921 if test "X$withval" = "Xno"; then
23924 if test "X$withval" = "X"; then
23926 acl_save_prefix
="$prefix"
23927 prefix
="$acl_final_prefix"
23928 acl_save_exec_prefix
="$exec_prefix"
23929 exec_prefix
="$acl_final_exec_prefix"
23931 eval additional_includedir
=\"$includedir\"
23932 eval additional_libdir
=\"$libdir\"
23934 exec_prefix
="$acl_save_exec_prefix"
23935 prefix
="$acl_save_prefix"
23938 additional_includedir
="$withval/include"
23939 additional_libdir
="$withval/lib"
23946 # Check whether --with-libintl-type was given.
23947 if test "${with_libintl_type+set}" = set; then :
23948 withval
=$with_libintl_type; with_libintl_type
=$withval
23950 with_libintl_type
=auto
23953 lib_type
=`eval echo \$with_libintl_type`
23960 names_already_handled
=
23961 names_next_round
='intl '
23962 while test -n "$names_next_round"; do
23963 names_this_round
="$names_next_round"
23965 for name
in $names_this_round; do
23967 for n
in $names_already_handled; do
23968 if test "$n" = "$name"; then
23969 already_handled
=yes
23973 if test -z "$already_handled"; then
23974 names_already_handled
="$names_already_handled $name"
23975 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23976 eval value
=\"\
$HAVE_LIB$uppername\"
23977 if test -n "$value"; then
23978 if test "$value" = yes; then
23979 eval value
=\"\
$LIB$uppername\"
23980 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
23981 eval value
=\"\
$LTLIB$uppername\"
23982 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
23991 if test $use_additional = yes; then
23992 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
23993 found_dir
="$additional_libdir"
23994 found_so
="$additional_libdir/lib$name.$shlibext"
23995 if test -f "$additional_libdir/lib$name.la"; then
23996 found_la
="$additional_libdir/lib$name.la"
23998 elif test x
$lib_type != xshared
; then
23999 if test -f "$additional_libdir/lib$name.$libext"; then
24000 found_dir
="$additional_libdir"
24001 found_a
="$additional_libdir/lib$name.$libext"
24002 if test -f "$additional_libdir/lib$name.la"; then
24003 found_la
="$additional_libdir/lib$name.la"
24008 if test "X$found_dir" = "X"; then
24009 for x
in $LDFLAGS $LTLIBINTL; do
24011 acl_save_prefix
="$prefix"
24012 prefix
="$acl_final_prefix"
24013 acl_save_exec_prefix
="$exec_prefix"
24014 exec_prefix
="$acl_final_exec_prefix"
24016 exec_prefix
="$acl_save_exec_prefix"
24017 prefix
="$acl_save_prefix"
24021 dir
=`echo "X$x" | sed -e 's/^X-L//'`
24022 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
24024 found_so
="$dir/lib$name.$shlibext"
24025 if test -f "$dir/lib$name.la"; then
24026 found_la
="$dir/lib$name.la"
24028 elif test x
$lib_type != xshared
; then
24029 if test -f "$dir/lib$name.$libext"; then
24031 found_a
="$dir/lib$name.$libext"
24032 if test -f "$dir/lib$name.la"; then
24033 found_la
="$dir/lib$name.la"
24039 if test "X$found_dir" != "X"; then
24044 if test "X$found_dir" != "X"; then
24045 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
24046 if test "X$found_so" != "X"; then
24047 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
24048 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
24051 for x
in $ltrpathdirs; do
24052 if test "X$x" = "X$found_dir"; then
24057 if test -z "$haveit"; then
24058 ltrpathdirs
="$ltrpathdirs $found_dir"
24060 if test "$hardcode_direct" = yes; then
24061 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
24063 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
24064 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
24066 for x
in $rpathdirs; do
24067 if test "X$x" = "X$found_dir"; then
24072 if test -z "$haveit"; then
24073 rpathdirs
="$rpathdirs $found_dir"
24077 for x
in $LDFLAGS $LIBINTL; do
24079 acl_save_prefix
="$prefix"
24080 prefix
="$acl_final_prefix"
24081 acl_save_exec_prefix
="$exec_prefix"
24082 exec_prefix
="$acl_final_exec_prefix"
24084 exec_prefix
="$acl_save_exec_prefix"
24085 prefix
="$acl_save_prefix"
24087 if test "X$x" = "X-L$found_dir"; then
24092 if test -z "$haveit"; then
24093 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
24095 if test "$hardcode_minus_L" != no
; then
24096 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
24098 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
24104 if test "X$found_a" != "X"; then
24105 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
24107 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
24110 additional_includedir
=
24111 case "$found_dir" in
24113 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
24114 additional_includedir
="$basedir/include"
24117 if test "X$additional_includedir" != "X"; then
24118 if test "X$additional_includedir" != "X/usr/include"; then
24120 if test "X$additional_includedir" = "X/usr/local/include"; then
24121 if test -n "$GCC"; then
24123 linux
*) haveit
=yes;;
24127 if test -z "$haveit"; then
24128 for x
in $CPPFLAGS $INCINTL; do
24130 acl_save_prefix
="$prefix"
24131 prefix
="$acl_final_prefix"
24132 acl_save_exec_prefix
="$exec_prefix"
24133 exec_prefix
="$acl_final_exec_prefix"
24135 exec_prefix
="$acl_save_exec_prefix"
24136 prefix
="$acl_save_prefix"
24138 if test "X$x" = "X-I$additional_includedir"; then
24143 if test -z "$haveit"; then
24144 if test -d "$additional_includedir"; then
24145 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
24151 if test -n "$found_la"; then
24152 save_libdir
="$libdir"
24153 case "$found_la" in
24154 */* |
*\\*) .
"$found_la" ;;
24155 *) .
"./$found_la" ;;
24157 libdir
="$save_libdir"
24158 for dep
in $dependency_libs; do
24161 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
24162 if test "X$additional_libdir" != "X/usr/lib"; then
24164 if test "X$additional_libdir" = "X/usr/local/lib"; then
24165 if test -n "$GCC"; then
24167 linux
*) haveit
=yes;;
24171 if test -z "$haveit"; then
24173 for x
in $LDFLAGS $LIBINTL; do
24175 acl_save_prefix
="$prefix"
24176 prefix
="$acl_final_prefix"
24177 acl_save_exec_prefix
="$exec_prefix"
24178 exec_prefix
="$acl_final_exec_prefix"
24180 exec_prefix
="$acl_save_exec_prefix"
24181 prefix
="$acl_save_prefix"
24183 if test "X$x" = "X-L$additional_libdir"; then
24188 if test -z "$haveit"; then
24189 if test -d "$additional_libdir"; then
24190 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
24194 for x
in $LDFLAGS $LTLIBINTL; do
24196 acl_save_prefix
="$prefix"
24197 prefix
="$acl_final_prefix"
24198 acl_save_exec_prefix
="$exec_prefix"
24199 exec_prefix
="$acl_final_exec_prefix"
24201 exec_prefix
="$acl_save_exec_prefix"
24202 prefix
="$acl_save_prefix"
24204 if test "X$x" = "X-L$additional_libdir"; then
24209 if test -z "$haveit"; then
24210 if test -d "$additional_libdir"; then
24211 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
24218 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
24219 if test "$enable_rpath" != no
; then
24221 for x
in $rpathdirs; do
24222 if test "X$x" = "X$dir"; then
24227 if test -z "$haveit"; then
24228 rpathdirs
="$rpathdirs $dir"
24231 for x
in $ltrpathdirs; do
24232 if test "X$x" = "X$dir"; then
24237 if test -z "$haveit"; then
24238 ltrpathdirs
="$ltrpathdirs $dir"
24243 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
24246 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
24249 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
24250 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
24256 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
24257 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
24258 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
24260 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
24261 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
24268 if test "X$rpathdirs" != "X"; then
24269 if test -n "$hardcode_libdir_separator"; then
24271 for found_dir
in $rpathdirs; do
24272 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
24274 acl_save_libdir
="$libdir"
24276 eval flag
=\"$hardcode_libdir_flag_spec\"
24277 libdir
="$acl_save_libdir"
24278 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
24280 for found_dir
in $rpathdirs; do
24281 acl_save_libdir
="$libdir"
24282 libdir
="$found_dir"
24283 eval flag
=\"$hardcode_libdir_flag_spec\"
24284 libdir
="$acl_save_libdir"
24285 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
24289 if test "X$ltrpathdirs" != "X"; then
24290 for found_dir
in $ltrpathdirs; do
24291 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
24295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
24296 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
24297 if eval \
${$gt_func_gnugettext_libintl+:} false
; then :
24298 $as_echo_n "(cached) " >&6
24300 gt_save_CPPFLAGS
="$CPPFLAGS"
24301 CPPFLAGS
="$CPPFLAGS $INCINTL"
24302 gt_save_LIBS
="$LIBS"
24303 LIBS
="$LIBS $LIBINTL"
24304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24305 /* end confdefs.h. */
24307 #include <libintl.h>
24308 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
24309 extern int _nl_msg_cat_cntr;
24314 const char *_nl_expand_alias (const char *);
24315 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
24317 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
24319 $gt_revision_test_code
24325 bindtextdomain ("", "");
24326 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
24332 if ac_fn_c_try_link
"$LINENO"; then :
24333 eval "$gt_func_gnugettext_libintl=yes"
24335 eval "$gt_func_gnugettext_libintl=no"
24337 rm -f core conftest.err conftest.
$ac_objext \
24338 conftest
$ac_exeext conftest.
$ac_ext
24339 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
24340 LIBS
="$LIBS $LIBICONV"
24341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24342 /* end confdefs.h. */
24344 #include <libintl.h>
24345 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
24346 extern int _nl_msg_cat_cntr;
24351 const char *_nl_expand_alias (const char *);
24352 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
24354 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
24356 $gt_revision_test_code
24362 bindtextdomain ("", "");
24363 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
24369 if ac_fn_c_try_link
"$LINENO"; then :
24370 LIBINTL
="$LIBINTL $LIBICONV"
24371 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
24372 eval "$gt_func_gnugettext_libintl=yes"
24375 rm -f core conftest.err conftest.
$ac_objext \
24376 conftest
$ac_exeext conftest.
$ac_ext
24378 CPPFLAGS
="$gt_save_CPPFLAGS"
24379 LIBS
="$gt_save_LIBS"
24381 eval ac_res
=\$
$gt_func_gnugettext_libintl
24382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24383 $as_echo "$ac_res" >&6; }
24386 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
24387 ||
{ { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
24388 && test "$PACKAGE" != gettext-runtime \
24389 && test "$PACKAGE" != gettext-tools
; }; then
24390 gt_use_preinstalled_gnugettext
=yes
24399 if test -n "$INTL_MACOSX_LIBS"; then
24400 if test "$gt_use_preinstalled_gnugettext" = "yes" \
24401 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
24402 LIBINTL
="$LIBINTL $INTL_MACOSX_LIBS"
24403 LTLIBINTL
="$LTLIBINTL $INTL_MACOSX_LIBS"
24407 if test "$gt_use_preinstalled_gnugettext" = "yes" \
24408 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
24410 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
24417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
24418 $as_echo_n "checking whether to use NLS... " >&6; }
24419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
24420 $as_echo "$USE_NLS" >&6; }
24421 if test "$USE_NLS" = "yes"; then
24422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
24423 $as_echo_n "checking where the gettext function comes from... " >&6; }
24424 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
24425 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
24426 gt_source
="external libintl"
24431 gt_source
="included intl directory"
24433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
24434 $as_echo "$gt_source" >&6; }
24437 if test "$USE_NLS" = "yes"; then
24439 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
24440 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
24441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
24442 $as_echo_n "checking how to link with libintl... " >&6; }
24443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
24444 $as_echo "$LIBINTL" >&6; }
24446 for element
in $INCINTL; do
24448 for x
in $CPPFLAGS; do
24450 acl_save_prefix
="$prefix"
24451 prefix
="$acl_final_prefix"
24452 acl_save_exec_prefix
="$exec_prefix"
24453 exec_prefix
="$acl_final_exec_prefix"
24455 exec_prefix
="$acl_save_exec_prefix"
24456 prefix
="$acl_save_prefix"
24458 if test "X$x" = "X$element"; then
24463 if test -z "$haveit"; then
24464 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
24471 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
24474 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
24483 INTLLIBS
="$LIBINTL"
24502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
24503 $as_echo_n "checking whether NLS is requested... " >&6; }
24504 if test x
"$USE_NLS" != xyes
; then
24505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24506 $as_echo "no" >&6; }
24508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24509 $as_echo "yes" >&6; }
24511 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
24514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
24515 $as_echo_n "checking for catalogs to be installed... " >&6; }
24516 # Look for .po and .gmo files in the source directory.
24519 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
24520 # If there aren't any .gmo files the shell will give us the
24521 # literal string "../path/to/srcdir/po/*.gmo" which has to be
24523 case "$cat" in *\
**)
24526 # The quadruple backslash is collapsed to a double backslash
24527 # by the backticks, then collapsed again by the double quotes,
24528 # leaving us with one backslash in the sed expression (right
24529 # before the dot that mustn't act as a wildcard).
24530 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
24531 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
24532 # The user is allowed to set LINGUAS to a list of languages to
24533 # install catalogs for. If it's empty that means "all of them."
24534 if test "x$LINGUAS" = x
; then
24535 CATALOGS
="$CATALOGS $cat"
24536 XLINGUAS
="$XLINGUAS $lang"
24538 case "$LINGUAS" in *$lang*)
24539 CATALOGS
="$CATALOGS $cat"
24540 XLINGUAS
="$XLINGUAS $lang"
24545 LINGUAS
="$XLINGUAS"
24546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
24547 $as_echo "$LINGUAS" >&6; }
24560 localedir
='${datadir}/locale'
24563 if test x
"$USE_NLS" = xyes
; then
24564 CONFIG_ALL
="$CONFIG_ALL all-po"
24565 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
24566 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
24567 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
24572 cat >>confdefs.h
<<_ACEOF
24573 #define PACKAGE "$PACKAGE"
24578 # We never need to detect it in this sub-configure.
24579 # But preserve it for config.status --recheck.
24583 MAKEINFO_EXTRA_FLAGS
=""
24584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
24585 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
24586 if ${gdb_cv_have_makeinfo_click+:} false
; then :
24587 $as_echo_n "(cached) " >&6
24589 echo '@clicksequence{a @click{} b}' >conftest.texinfo
24590 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
24591 gdb_cv_have_makeinfo_click
=yes
24593 gdb_cv_have_makeinfo_click
=no
24596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
24597 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
24598 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
24599 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
24605 # Check whether --with-separate-debug-dir was given.
24606 if test "${with_separate_debug_dir+set}" = set; then :
24607 withval
=$with_separate_debug_dir;
24610 DEBUGDIR
=${libdir}/debug
24614 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
24615 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
24616 ac_define_dir
=`eval echo $DEBUGDIR`
24617 ac_define_dir
=`eval echo $ac_define_dir`
24619 cat >>confdefs.h
<<_ACEOF
24620 #define DEBUGDIR "$ac_define_dir"
24626 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
24627 if test "x$prefix" = xNONE
; then
24628 test_prefix
=/usr
/local
24630 test_prefix
=$prefix
24633 test_prefix
=$exec_prefix
24636 case ${ac_define_dir} in
24637 "${test_prefix}"|
"${test_prefix}/"*|\
24638 '${exec_prefix}'|
'${exec_prefix}/'*)
24643 cat >>confdefs.h
<<_ACEOF
24644 #define DEBUGDIR_RELOCATABLE $value
24651 # Check whether --with-additional-debug-dirs was given.
24652 if test "${with_additional_debug_dirs+set}" = set; then :
24653 withval
=$with_additional_debug_dirs;
24654 cat >>confdefs.h
<<_ACEOF
24655 #define ADDITIONAL_DEBUG_DIRS "${withval}"
24661 # We can't pass paths as command line arguments.
24662 # Mingw32 tries to be clever and will convert the paths for us.
24663 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
24664 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
24665 # This breaks GDB's relocatable path conversions since paths passed in
24666 # config.h would not get so translated, the path prefixes no longer match.
24668 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
24669 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
24670 ac_define_dir
=`eval echo $bindir`
24671 ac_define_dir
=`eval echo $ac_define_dir`
24673 cat >>confdefs.h
<<_ACEOF
24674 #define BINDIR "$ac_define_dir"
24679 # GDB's datadir relocation
24683 # Check whether --with-gdb-datadir was given.
24684 if test "${with_gdb_datadir+set}" = set; then :
24685 withval
=$with_gdb_datadir;
24686 GDB_DATADIR
=$withval
24688 GDB_DATADIR
=${datadir}/gdb
24692 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
24693 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
24694 ac_define_dir
=`eval echo $GDB_DATADIR`
24695 ac_define_dir
=`eval echo $ac_define_dir`
24697 cat >>confdefs.h
<<_ACEOF
24698 #define GDB_DATADIR "$ac_define_dir"
24704 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
24705 if test "x$prefix" = xNONE
; then
24706 test_prefix
=/usr
/local
24708 test_prefix
=$prefix
24711 test_prefix
=$exec_prefix
24714 case ${ac_define_dir} in
24715 "${test_prefix}"|
"${test_prefix}/"*|\
24716 '${exec_prefix}'|
'${exec_prefix}/'*)
24721 cat >>confdefs.h
<<_ACEOF
24722 #define GDB_DATADIR_RELOCATABLE $value
24729 # Check whether --with-relocated-sources was given.
24730 if test "${with_relocated_sources+set}" = set; then :
24731 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
24733 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
24734 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
24735 ac_define_dir
=`eval echo $reloc_srcdir`
24736 ac_define_dir
=`eval echo $ac_define_dir`
24738 cat >>confdefs.h
<<_ACEOF
24739 #define RELOC_SRCDIR "$ac_define_dir"
24747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
24748 $as_echo_n "checking for default auto-load directory... " >&6; }
24750 # Check whether --with-auto-load-dir was given.
24751 if test "${with_auto_load_dir+set}" = set; then :
24752 withval
=$with_auto_load_dir;
24754 with_auto_load_dir
='$debugdir:$datadir/auto-load'
24757 escape_dir
=`echo $with_auto_load_dir | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
24759 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
24760 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
24761 ac_define_dir
=`eval echo $escape_dir`
24762 ac_define_dir
=`eval echo $ac_define_dir`
24764 cat >>confdefs.h
<<_ACEOF
24765 #define AUTO_LOAD_DIR "$ac_define_dir"
24769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
24770 $as_echo "$with_auto_load_dir" >&6; }
24772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
24773 $as_echo_n "checking for default auto-load safe-path... " >&6; }
24775 # Check whether --with-auto-load-safe-path was given.
24776 if test "${with_auto_load_safe_path+set}" = set; then :
24777 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
24778 with_auto_load_safe_path
="/"
24781 with_auto_load_safe_path
="$with_auto_load_dir"
24784 escape_dir
=`echo $with_auto_load_safe_path | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
24786 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
24787 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
24788 ac_define_dir
=`eval echo $escape_dir`
24789 ac_define_dir
=`eval echo $ac_define_dir`
24791 cat >>confdefs.h
<<_ACEOF
24792 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
24796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
24797 $as_echo "$with_auto_load_safe_path" >&6; }
24801 subdirs
="$subdirs testsuite"
24804 # Check whether to support alternative target configurations
24805 # Check whether --enable-targets was given.
24806 if test "${enable_targets+set}" = set; then :
24807 enableval
=$enable_targets; case "${enableval}" in
24808 yes |
"") as_fn_error $?
"enable-targets option must specify target names or 'all'" "$LINENO" 5
24810 no
) enable_targets
= ;;
24811 *) enable_targets
=$enableval ;;
24816 # Check whether --enable-64-bit-bfd was given.
24817 if test "${enable_64_bit_bfd+set}" = set; then :
24818 enableval
=$enable_64_bit_bfd; case $enableval in #(
24822 as_fn_error $?
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; #(
24827 enable_64_bit_bfd
=no
24831 if test "x$enable_64_bit_bfd" = "xno"; then :
24832 # The cast to long int works around a bug in the HP C Compiler
24833 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24834 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24835 # This bug is HP SR number 8606223364.
24836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
24837 $as_echo_n "checking size of void *... " >&6; }
24838 if ${ac_cv_sizeof_void_p+:} false
; then :
24839 $as_echo_n "(cached) " >&6
24841 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
24844 if test "$ac_cv_type_void_p" = yes; then
24845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24847 as_fn_error
77 "cannot compute sizeof (void *)
24848 See \`config.log' for more details" "$LINENO" 5; }
24850 ac_cv_sizeof_void_p
=0
24855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
24856 $as_echo "$ac_cv_sizeof_void_p" >&6; }
24860 cat >>confdefs.h
<<_ACEOF
24861 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
24865 if test "x$ac_cv_sizeof_void_p" = "x8"; then :
24866 enable_64_bit_bfd
=yes
24871 if test "x$enable_64_bit_bfd" = "xyes"; then
24872 ENABLE_BFD_64_BIT_TRUE
=
24873 ENABLE_BFD_64_BIT_FALSE
='#'
24875 ENABLE_BFD_64_BIT_TRUE
='#'
24876 ENABLE_BFD_64_BIT_FALSE
=
24881 # Provide defaults for some variables set by the per-host and per-target
24883 gdb_host_obs
=posix-hdep.o
24885 if test "${target}" = "${host}"; then
24891 .
$srcdir/configure.
host
24893 # Accumulate some settings from configure.tgt over all enabled targets
24897 HAVE_NATIVE_GCORE_TARGET
=
24899 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
24901 if test "$targ_alias" = "all"; then
24904 # Canonicalize the secondary target names.
24905 result
=`$ac_config_sub $targ_alias 2>/dev/null`
24906 if test -n "$result"; then
24912 .
${srcdir}/configure.tgt
24914 if test -z "${gdb_target_obs}"; then :
24915 as_fn_error $?
"configuration ${targ} is unsupported." "$LINENO" 5
24918 # Target-specific object files
24919 for i
in ${gdb_target_obs}; do
24920 case " $TARGET_OBS " in
24923 TARGET_OBS
="$TARGET_OBS ${i}"
24928 # Check whether this target needs 64-bit CORE_ADDR
24929 if test x
${enable_64_bit_bfd} = xno
; then
24930 .
${srcdir}/..
/bfd
/config.bfd
24933 # Check whether this target is native and supports gcore.
24934 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
24935 && $gdb_have_gcore; then
24936 HAVE_NATIVE_GCORE_TARGET
=1
24941 if test x
${all_targets} = xtrue
; then
24942 if test x
${enable_64_bit_bfd} = xyes
; then
24943 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
24945 TARGET_OBS
='$(ALL_TARGET_OBS)'
24949 # AMD debugger API support.
24952 # Check whether --with-amd-dbgapi was given.
24953 if test "${with_amd_dbgapi+set}" = set; then :
24954 withval
=$with_amd_dbgapi;
24959 as_fn_error $?
"bad value $withval for --with-amd-dbgapi" "$LINENO" 5
24964 with_amd_dbgapi
=auto
24968 # If the user passes --without-amd-dbgapi but also explicitly enables a target
24969 # that requires amd-dbgapi, it is an error.
24970 if test "$with_amd_dbgapi" = no
-a "$gdb_require_amd_dbgapi" = true
; then
24971 as_fn_error $?
"an explicitly enabled target requires amd-dbgapi, but amd-dbgapi is explicitly disabled" "$LINENO" 5
24974 # Look for amd-dbgapi if:
24976 # - a target architecture requiring it has explicitly been enabled, or
24977 # - --enable-targets=all was provided and the user did not explicitly disable
24978 # amd-dbgapi support
24979 if test "$gdb_require_amd_dbgapi" = true \
24980 -o \
( "$all_targets" = true
-a "$with_amd_dbgapi" != no \
); then
24981 # amd-dbgapi version 0.68 is part of ROCm 5.4. There is no guarantee of API
24982 # stability until amd-dbgapi hits 1.0, but for convenience, still check for
24983 # greater or equal that version. It can be handy when testing with a newer
24984 # version of the library.
24987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for amd-dbgapi >= 0.68.0" >&5
24988 $as_echo_n "checking for amd-dbgapi >= 0.68.0... " >&6; }
24990 if test -n "$AMD_DBGAPI_CFLAGS"; then
24991 pkg_cv_AMD_DBGAPI_CFLAGS
="$AMD_DBGAPI_CFLAGS"
24992 elif test -n "$PKG_CONFIG"; then
24993 if test -n "$PKG_CONFIG" && \
24994 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"amd-dbgapi >= 0.68.0\""; } >&5
24995 ($PKG_CONFIG --exists --print-errors "amd-dbgapi >= 0.68.0") 2>&5
24997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24998 test $ac_status = 0; }; then
24999 pkg_cv_AMD_DBGAPI_CFLAGS
=`$PKG_CONFIG --cflags "amd-dbgapi >= 0.68.0" 2>/dev/null`
25000 test "x$?" != "x0" && pkg_failed
=yes
25007 if test -n "$AMD_DBGAPI_LIBS"; then
25008 pkg_cv_AMD_DBGAPI_LIBS
="$AMD_DBGAPI_LIBS"
25009 elif test -n "$PKG_CONFIG"; then
25010 if test -n "$PKG_CONFIG" && \
25011 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"amd-dbgapi >= 0.68.0\""; } >&5
25012 ($PKG_CONFIG --exists --print-errors "amd-dbgapi >= 0.68.0") 2>&5
25014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25015 test $ac_status = 0; }; then
25016 pkg_cv_AMD_DBGAPI_LIBS
=`$PKG_CONFIG --libs "amd-dbgapi >= 0.68.0" 2>/dev/null`
25017 test "x$?" != "x0" && pkg_failed
=yes
25025 if test $pkg_failed = no
; then
25026 pkg_save_LDFLAGS
="$LDFLAGS"
25027 LDFLAGS
="$LDFLAGS $pkg_cv_AMD_DBGAPI_LIBS"
25028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25029 /* end confdefs.h. */
25039 if ac_fn_c_try_link
"$LINENO"; then :
25044 rm -f core conftest.err conftest.
$ac_objext \
25045 conftest
$ac_exeext conftest.
$ac_ext
25046 LDFLAGS
=$pkg_save_LDFLAGS
25051 if test $pkg_failed = yes; then
25052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25053 $as_echo "no" >&6; }
25055 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25056 _pkg_short_errors_supported
=yes
25058 _pkg_short_errors_supported
=no
25060 if test $_pkg_short_errors_supported = yes; then
25061 AMD_DBGAPI_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "amd-dbgapi >= 0.68.0" 2>&1`
25063 AMD_DBGAPI_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "amd-dbgapi >= 0.68.0" 2>&1`
25065 # Put the nasty error message in config.log where it belongs
25066 echo "$AMD_DBGAPI_PKG_ERRORS" >&5
25069 elif test $pkg_failed = untried
; then
25070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25071 $as_echo "no" >&6; }
25074 AMD_DBGAPI_CFLAGS
=$pkg_cv_AMD_DBGAPI_CFLAGS
25075 AMD_DBGAPI_LIBS
=$pkg_cv_AMD_DBGAPI_LIBS
25076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25077 $as_echo "yes" >&6; }
25081 if test "$has_amd_dbgapi" = "yes"; then
25083 $as_echo "#define HAVE_AMD_DBGAPI 1" >>confdefs.h
25085 TARGET_OBS
="$TARGET_OBS amd-dbgapi-target.o"
25087 # If --enable-targets=all was provided, use the list of all files depending
25088 # on amd-dbgapi that is hardcoded in the Makefile. Else, the appropriate
25089 # architecture entry in configure.tgt will have added the files to
25091 if test "$all_targets" = true
; then
25092 TARGET_OBS
="$TARGET_OBS \$(ALL_AMD_DBGAPI_TARGET_OBS)"
25094 elif test "$gdb_require_amd_dbgapi" = true
-o "$with_amd_dbgapi" = yes; then
25095 # amd-dbgapi was not found and...
25097 # - a target requiring it was explicitly enabled, or
25098 # - the user explicitly wants to enable amd-dbgapi
25099 as_fn_error $?
"amd-dbgapi is required, but cannot find an appropriate version: $AMD_DBGAPI_PKG_ERRORS" "$LINENO" 5
25106 # For other settings, only the main target counts.
25109 targ
=$target; .
${srcdir}/configure.tgt
25111 # Fetch the default architecture and default target vector from BFD.
25112 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
25114 # We only want the first architecture, so strip off the others if
25115 # there is more than one.
25116 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
25118 if test "x$targ_archs" != x
; then
25120 cat >>confdefs.h
<<_ACEOF
25121 #define DEFAULT_BFD_ARCH $targ_archs
25125 if test "x$targ_defvec" != x
; then
25127 cat >>confdefs.h
<<_ACEOF
25128 #define DEFAULT_BFD_VEC $targ_defvec
25134 # Check whether --enable-tui was given.
25135 if test "${enable_tui+set}" = set; then :
25136 enableval
=$enable_tui;
25141 as_fn_error $?
"bad value $enableval for --enable-tui" "$LINENO" 5
25151 # Check whether --enable-gdbtk was given.
25152 if test "${enable_gdbtk+set}" = set; then :
25153 enableval
=$enable_gdbtk;
25158 as_fn_error $?
"bad value $enableval for --enable-gdbtk" "$LINENO" 5
25163 if test -d "$srcdir/gdbtk"; then
25170 # We unconditionally disable gdbtk tests on selected platforms.
25173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
25174 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
25178 # Handle optional debuginfod support
25180 # Handle optional debuginfod support as well as optional section
25181 # downloading support.
25183 # Define HAVE_LIBDEBUGINFOD if libdebuginfod is found with version >= 0.179.
25185 # Define HAVE_LIBDEBUGINFOD_FIND_SECTION if libdebuginfod is found with
25186 # version >= 0.188.
25188 # Check whether --with-debuginfod was given.
25189 if test "${with_debuginfod+set}" = set; then :
25190 withval
=$with_debuginfod;
25192 with_debuginfod
=auto
25195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
25196 $as_echo_n "checking whether to use debuginfod... " >&6; }
25197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
25198 $as_echo "$with_debuginfod" >&6; }
25200 if test "x$with_debuginfod" != xno
; then
25203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.188" >&5
25204 $as_echo_n "checking for libdebuginfod >= 0.188... " >&6; }
25206 if test -n "$DEBUGINFOD_CFLAGS"; then
25207 pkg_cv_DEBUGINFOD_CFLAGS
="$DEBUGINFOD_CFLAGS"
25208 elif test -n "$PKG_CONFIG"; then
25209 if test -n "$PKG_CONFIG" && \
25210 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.188\""; } >&5
25211 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.188") 2>&5
25213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25214 test $ac_status = 0; }; then
25215 pkg_cv_DEBUGINFOD_CFLAGS
=`$PKG_CONFIG --cflags "libdebuginfod >= 0.188" 2>/dev/null`
25216 test "x$?" != "x0" && pkg_failed
=yes
25223 if test -n "$DEBUGINFOD_LIBS"; then
25224 pkg_cv_DEBUGINFOD_LIBS
="$DEBUGINFOD_LIBS"
25225 elif test -n "$PKG_CONFIG"; then
25226 if test -n "$PKG_CONFIG" && \
25227 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.188\""; } >&5
25228 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.188") 2>&5
25230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25231 test $ac_status = 0; }; then
25232 pkg_cv_DEBUGINFOD_LIBS
=`$PKG_CONFIG --libs "libdebuginfod >= 0.188" 2>/dev/null`
25233 test "x$?" != "x0" && pkg_failed
=yes
25241 if test $pkg_failed = no
; then
25242 pkg_save_LDFLAGS
="$LDFLAGS"
25243 LDFLAGS
="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
25244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25245 /* end confdefs.h. */
25255 if ac_fn_c_try_link
"$LINENO"; then :
25260 rm -f core conftest.err conftest.
$ac_objext \
25261 conftest
$ac_exeext conftest.
$ac_ext
25262 LDFLAGS
=$pkg_save_LDFLAGS
25267 if test $pkg_failed = yes; then
25268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25269 $as_echo "no" >&6; }
25271 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25272 _pkg_short_errors_supported
=yes
25274 _pkg_short_errors_supported
=no
25276 if test $_pkg_short_errors_supported = yes; then
25277 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.188" 2>&1`
25279 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.188" 2>&1`
25281 # Put the nasty error message in config.log where it belongs
25282 echo "$DEBUGINFOD_PKG_ERRORS" >&5
25284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or some features may be unavailable." >&5
25285 $as_echo "$as_me: WARNING: libdebuginfod is missing or some features may be unavailable." >&2;}
25286 elif test $pkg_failed = untried
; then
25287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25288 $as_echo "no" >&6; }
25289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or some features may be unavailable." >&5
25290 $as_echo "$as_me: WARNING: libdebuginfod is missing or some features may be unavailable." >&2;}
25292 DEBUGINFOD_CFLAGS
=$pkg_cv_DEBUGINFOD_CFLAGS
25293 DEBUGINFOD_LIBS
=$pkg_cv_DEBUGINFOD_LIBS
25294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25295 $as_echo "yes" >&6; }
25297 $as_echo "#define HAVE_LIBDEBUGINFOD_FIND_SECTION 1" >>confdefs.h
25303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5
25304 $as_echo_n "checking for libdebuginfod >= 0.179... " >&6; }
25306 if test -n "$DEBUGINFOD_CFLAGS"; then
25307 pkg_cv_DEBUGINFOD_CFLAGS
="$DEBUGINFOD_CFLAGS"
25308 elif test -n "$PKG_CONFIG"; then
25309 if test -n "$PKG_CONFIG" && \
25310 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
25311 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
25313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25314 test $ac_status = 0; }; then
25315 pkg_cv_DEBUGINFOD_CFLAGS
=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
25316 test "x$?" != "x0" && pkg_failed
=yes
25323 if test -n "$DEBUGINFOD_LIBS"; then
25324 pkg_cv_DEBUGINFOD_LIBS
="$DEBUGINFOD_LIBS"
25325 elif test -n "$PKG_CONFIG"; then
25326 if test -n "$PKG_CONFIG" && \
25327 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
25328 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
25330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25331 test $ac_status = 0; }; then
25332 pkg_cv_DEBUGINFOD_LIBS
=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
25333 test "x$?" != "x0" && pkg_failed
=yes
25341 if test $pkg_failed = no
; then
25342 pkg_save_LDFLAGS
="$LDFLAGS"
25343 LDFLAGS
="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
25344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25345 /* end confdefs.h. */
25355 if ac_fn_c_try_link
"$LINENO"; then :
25360 rm -f core conftest.err conftest.
$ac_objext \
25361 conftest
$ac_exeext conftest.
$ac_ext
25362 LDFLAGS
=$pkg_save_LDFLAGS
25367 if test $pkg_failed = yes; then
25368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25369 $as_echo "no" >&6; }
25371 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25372 _pkg_short_errors_supported
=yes
25374 _pkg_short_errors_supported
=no
25376 if test $_pkg_short_errors_supported = yes; then
25377 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
25379 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
25381 # Put the nasty error message in config.log where it belongs
25382 echo "$DEBUGINFOD_PKG_ERRORS" >&5
25384 if test "x$with_debuginfod" = xyes
; then
25385 as_fn_error $?
"\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
25387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
25388 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
25390 elif test $pkg_failed = untried
; then
25391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25392 $as_echo "no" >&6; }
25393 if test "x$with_debuginfod" = xyes
; then
25394 as_fn_error $?
"\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
25396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
25397 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
25400 DEBUGINFOD_CFLAGS
=$pkg_cv_DEBUGINFOD_CFLAGS
25401 DEBUGINFOD_LIBS
=$pkg_cv_DEBUGINFOD_LIBS
25402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25403 $as_echo "yes" >&6; }
25405 $as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
25409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
25410 $as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
25414 # Libunwind support for ia64.
25416 # Check whether --with-libunwind-ia64 was given.
25417 if test "${with_libunwind_ia64+set}" = set; then :
25418 withval
=$with_libunwind_ia64;
25420 with_libunwind_ia64
=auto
25424 # Backward compatibility option.
25425 if test "${with_libunwind+set}" = set; then
25426 if test x
"$with_libunwind_ia64" != xauto
; then
25427 as_fn_error $?
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
25429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
25430 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
25431 with_libunwind_ia64
="$with_libunwind"
25434 case "$with_libunwind_ia64" in
25438 for ac_header
in libunwind-ia64.h
25440 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
25441 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
25442 cat >>confdefs.h
<<_ACEOF
25443 #define HAVE_LIBUNWIND_IA64_H 1
25450 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
25453 as_fn_error $?
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
25457 if test x
"$with_libunwind_ia64" = xyes
; then
25458 for ac_header
in libunwind-ia64.h
25460 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
25461 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
25462 cat >>confdefs.h
<<_ACEOF
25463 #define HAVE_LIBUNWIND_IA64_H 1
25470 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
25471 as_fn_error $?
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
25473 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
25474 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
25475 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
25480 # Check whether --with-curses was given.
25481 if test "${with_curses+set}" = set; then :
25482 withval
=$with_curses; opt_curses
=$withval
25487 if test "$opt_curses" = "yes"; then
25491 # Profiling support.
25492 # Check whether --enable-profiling was given.
25493 if test "${enable_profiling+set}" = set; then :
25494 enableval
=$enable_profiling;
25499 as_fn_error $?
"bad value $enableval for --enable-profiling" "$LINENO" 5
25504 enable_profiling
=no
25508 for ac_func
in monstartup _mcleanup
25510 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25511 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
25512 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
25513 cat >>confdefs.h
<<_ACEOF
25514 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
25521 $as_echo_n "checking for _etext... " >&6; }
25522 if ${ac_cv_var__etext+:} false
; then :
25523 $as_echo_n "(cached) " >&6
25525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25526 /* end confdefs.h. */
25527 #include <stdlib.h>
25528 extern char _etext;
25538 if ac_fn_c_try_link
"$LINENO"; then :
25539 ac_cv_var__etext
=yes
25541 ac_cv_var__etext
=no
25544 rm -f core conftest.err conftest.
$ac_objext \
25545 conftest
$ac_exeext conftest.
$ac_ext
25548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
25549 $as_echo "$ac_cv_var__etext" >&6; }
25550 if test "$ac_cv_var__etext" = yes; then
25552 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
25555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
25556 $as_echo_n "checking for etext... " >&6; }
25557 if ${ac_cv_var_etext+:} false
; then :
25558 $as_echo_n "(cached) " >&6
25560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25561 /* end confdefs.h. */
25562 #include <stdlib.h>
25573 if ac_fn_c_try_link
"$LINENO"; then :
25574 ac_cv_var_etext
=yes
25579 rm -f core conftest.err conftest.
$ac_objext \
25580 conftest
$ac_exeext conftest.
$ac_ext
25583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
25584 $as_echo "$ac_cv_var_etext" >&6; }
25585 if test "$ac_cv_var_etext" = yes; then
25587 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
25590 if test "$enable_profiling" = yes ; then
25591 if test "$ac_cv_func_monstartup" = no ||
test "$ac_cv_func__mcleanup" = no
; then
25592 as_fn_error $?
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
25595 OLD_CFLAGS
="$CFLAGS"
25596 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
25598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
25599 $as_echo_n "checking whether $CC supports -pg... " >&6; }
25600 if ${ac_cv_cc_supports_pg+:} false
; then :
25601 $as_echo_n "(cached) " >&6
25603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25604 /* end confdefs.h. */
25614 if ac_fn_c_try_compile
"$LINENO"; then :
25615 ac_cv_cc_supports_pg
=yes
25617 ac_cv_cc_supports_pg
=no
25620 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
25624 $as_echo "$ac_cv_cc_supports_pg" >&6; }
25626 if test "$ac_cv_cc_supports_pg" = no
; then
25627 as_fn_error $?
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
25630 CFLAGS
="$OLD_CFLAGS"
25634 # Check whether --enable-codesign was given.
25635 if test "${enable_codesign+set}" = set; then :
25636 enableval
=$enable_codesign; CODESIGN_CERT
=$enableval
25643 # Check whether --with-pkgversion was given.
25644 if test "${with_pkgversion+set}" = set; then :
25645 withval
=$with_pkgversion; case "$withval" in
25646 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
25648 *) PKGVERSION
="($withval) " ;;
25651 PKGVERSION
="(GDB) "
25659 # Check whether --with-bugurl was given.
25660 if test "${with_bugurl+set}" = set; then :
25661 withval
=$with_bugurl; case "$withval" in
25662 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
25665 *) BUGURL
="$withval"
25669 BUGURL
="https://www.gnu.org/software/gdb/bugs/"
25679 REPORT_BUGS_TO
="<$BUGURL>"
25680 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
25687 cat >>confdefs.h
<<_ACEOF
25688 #define PKGVERSION "$PKGVERSION"
25692 cat >>confdefs.h
<<_ACEOF
25693 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
25697 # --------------------- #
25698 # Checks for programs. #
25699 # --------------------- #
25701 for ac_prog
in gawk mawk nawk
awk
25703 # Extract the first word of "$ac_prog", so it can be a program name with args.
25704 set dummy
$ac_prog; ac_word
=$2
25705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25706 $as_echo_n "checking for $ac_word... " >&6; }
25707 if ${ac_cv_prog_AWK+:} false
; then :
25708 $as_echo_n "(cached) " >&6
25710 if test -n "$AWK"; then
25711 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
25713 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25714 for as_dir
in $PATH
25717 test -z "$as_dir" && as_dir
=.
25718 for ac_exec_ext
in '' $ac_executable_extensions; do
25719 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25720 ac_cv_prog_AWK
="$ac_prog"
25721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25730 AWK
=$ac_cv_prog_AWK
25731 if test -n "$AWK"; then
25732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
25733 $as_echo "$AWK" >&6; }
25735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25736 $as_echo "no" >&6; }
25740 test -n "$AWK" && break
25744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
25745 $as_echo_n "checking whether ln -s works... " >&6; }
25747 if test "$LN_S" = "ln -s"; then
25748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25749 $as_echo "yes" >&6; }
25751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
25752 $as_echo "no, using $LN_S" >&6; }
25755 if test -n "$ac_tool_prefix"; then
25756 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
25757 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
25758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25759 $as_echo_n "checking for $ac_word... " >&6; }
25760 if ${ac_cv_prog_RANLIB+:} false
; then :
25761 $as_echo_n "(cached) " >&6
25763 if test -n "$RANLIB"; then
25764 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
25766 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25767 for as_dir
in $PATH
25770 test -z "$as_dir" && as_dir
=.
25771 for ac_exec_ext
in '' $ac_executable_extensions; do
25772 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25773 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
25774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25783 RANLIB
=$ac_cv_prog_RANLIB
25784 if test -n "$RANLIB"; then
25785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
25786 $as_echo "$RANLIB" >&6; }
25788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25789 $as_echo "no" >&6; }
25794 if test -z "$ac_cv_prog_RANLIB"; then
25795 ac_ct_RANLIB
=$RANLIB
25796 # Extract the first word of "ranlib", so it can be a program name with args.
25797 set dummy ranlib
; ac_word
=$2
25798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25799 $as_echo_n "checking for $ac_word... " >&6; }
25800 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
25801 $as_echo_n "(cached) " >&6
25803 if test -n "$ac_ct_RANLIB"; then
25804 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
25806 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25807 for as_dir
in $PATH
25810 test -z "$as_dir" && as_dir
=.
25811 for ac_exec_ext
in '' $ac_executable_extensions; do
25812 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25813 ac_cv_prog_ac_ct_RANLIB
="ranlib"
25814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25823 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
25824 if test -n "$ac_ct_RANLIB"; then
25825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
25826 $as_echo "$ac_ct_RANLIB" >&6; }
25828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25829 $as_echo "no" >&6; }
25832 if test "x$ac_ct_RANLIB" = x
; then
25835 case $cross_compiling:$ac_tool_warned in
25837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25839 ac_tool_warned
=yes ;;
25841 RANLIB
=$ac_ct_RANLIB
25844 RANLIB
="$ac_cv_prog_RANLIB"
25847 for ac_prog
in 'bison -y' byacc
25849 # Extract the first word of "$ac_prog", so it can be a program name with args.
25850 set dummy
$ac_prog; ac_word
=$2
25851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25852 $as_echo_n "checking for $ac_word... " >&6; }
25853 if ${ac_cv_prog_YACC+:} false
; then :
25854 $as_echo_n "(cached) " >&6
25856 if test -n "$YACC"; then
25857 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
25859 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25860 for as_dir
in $PATH
25863 test -z "$as_dir" && as_dir
=.
25864 for ac_exec_ext
in '' $ac_executable_extensions; do
25865 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25866 ac_cv_prog_YACC
="$ac_prog"
25867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25876 YACC
=$ac_cv_prog_YACC
25877 if test -n "$YACC"; then
25878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
25879 $as_echo "$YACC" >&6; }
25881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25882 $as_echo "no" >&6; }
25886 test -n "$YACC" && break
25888 test -n "$YACC" || YACC
="yacc"
25891 if test -n "$ac_tool_prefix"; then
25892 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
25893 set dummy
${ac_tool_prefix}ar; ac_word
=$2
25894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25895 $as_echo_n "checking for $ac_word... " >&6; }
25896 if ${ac_cv_prog_AR+:} false
; then :
25897 $as_echo_n "(cached) " >&6
25899 if test -n "$AR"; then
25900 ac_cv_prog_AR
="$AR" # Let the user override the test.
25902 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25903 for as_dir
in $PATH
25906 test -z "$as_dir" && as_dir
=.
25907 for ac_exec_ext
in '' $ac_executable_extensions; do
25908 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25909 ac_cv_prog_AR
="${ac_tool_prefix}ar"
25910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25920 if test -n "$AR"; then
25921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
25922 $as_echo "$AR" >&6; }
25924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25925 $as_echo "no" >&6; }
25930 if test -z "$ac_cv_prog_AR"; then
25932 # Extract the first word of "ar", so it can be a program name with args.
25933 set dummy
ar; ac_word
=$2
25934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25935 $as_echo_n "checking for $ac_word... " >&6; }
25936 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
25937 $as_echo_n "(cached) " >&6
25939 if test -n "$ac_ct_AR"; then
25940 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
25942 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25943 for as_dir
in $PATH
25946 test -z "$as_dir" && as_dir
=.
25947 for ac_exec_ext
in '' $ac_executable_extensions; do
25948 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25949 ac_cv_prog_ac_ct_AR
="ar"
25950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25959 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
25960 if test -n "$ac_ct_AR"; then
25961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
25962 $as_echo "$ac_ct_AR" >&6; }
25964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25965 $as_echo "no" >&6; }
25968 if test "x$ac_ct_AR" = x
; then
25971 case $cross_compiling:$ac_tool_warned in
25973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25975 ac_tool_warned
=yes ;;
25980 AR
="$ac_cv_prog_AR"
25983 if test -n "$ac_tool_prefix"; then
25984 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
25985 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
25986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25987 $as_echo_n "checking for $ac_word... " >&6; }
25988 if ${ac_cv_prog_DLLTOOL+:} false
; then :
25989 $as_echo_n "(cached) " >&6
25991 if test -n "$DLLTOOL"; then
25992 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
25994 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25995 for as_dir
in $PATH
25998 test -z "$as_dir" && as_dir
=.
25999 for ac_exec_ext
in '' $ac_executable_extensions; do
26000 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
26001 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
26002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26011 DLLTOOL
=$ac_cv_prog_DLLTOOL
26012 if test -n "$DLLTOOL"; then
26013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
26014 $as_echo "$DLLTOOL" >&6; }
26016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26017 $as_echo "no" >&6; }
26022 if test -z "$ac_cv_prog_DLLTOOL"; then
26023 ac_ct_DLLTOOL
=$DLLTOOL
26024 # Extract the first word of "dlltool", so it can be a program name with args.
26025 set dummy dlltool
; ac_word
=$2
26026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26027 $as_echo_n "checking for $ac_word... " >&6; }
26028 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
26029 $as_echo_n "(cached) " >&6
26031 if test -n "$ac_ct_DLLTOOL"; then
26032 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
26034 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26035 for as_dir
in $PATH
26038 test -z "$as_dir" && as_dir
=.
26039 for ac_exec_ext
in '' $ac_executable_extensions; do
26040 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
26041 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
26042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26051 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
26052 if test -n "$ac_ct_DLLTOOL"; then
26053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
26054 $as_echo "$ac_ct_DLLTOOL" >&6; }
26056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26057 $as_echo "no" >&6; }
26060 if test "x$ac_ct_DLLTOOL" = x
; then
26063 case $cross_compiling:$ac_tool_warned in
26065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26067 ac_tool_warned
=yes ;;
26069 DLLTOOL
=$ac_ct_DLLTOOL
26072 DLLTOOL
="$ac_cv_prog_DLLTOOL"
26075 if test -n "$ac_tool_prefix"; then
26076 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
26077 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
26078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26079 $as_echo_n "checking for $ac_word... " >&6; }
26080 if ${ac_cv_prog_WINDRES+:} false
; then :
26081 $as_echo_n "(cached) " >&6
26083 if test -n "$WINDRES"; then
26084 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
26086 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26087 for as_dir
in $PATH
26090 test -z "$as_dir" && as_dir
=.
26091 for ac_exec_ext
in '' $ac_executable_extensions; do
26092 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
26093 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
26094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26103 WINDRES
=$ac_cv_prog_WINDRES
26104 if test -n "$WINDRES"; then
26105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
26106 $as_echo "$WINDRES" >&6; }
26108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26109 $as_echo "no" >&6; }
26114 if test -z "$ac_cv_prog_WINDRES"; then
26115 ac_ct_WINDRES
=$WINDRES
26116 # Extract the first word of "windres", so it can be a program name with args.
26117 set dummy windres
; ac_word
=$2
26118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26119 $as_echo_n "checking for $ac_word... " >&6; }
26120 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
26121 $as_echo_n "(cached) " >&6
26123 if test -n "$ac_ct_WINDRES"; then
26124 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
26126 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26127 for as_dir
in $PATH
26130 test -z "$as_dir" && as_dir
=.
26131 for ac_exec_ext
in '' $ac_executable_extensions; do
26132 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
26133 ac_cv_prog_ac_ct_WINDRES
="windres"
26134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26143 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
26144 if test -n "$ac_ct_WINDRES"; then
26145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
26146 $as_echo "$ac_ct_WINDRES" >&6; }
26148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26149 $as_echo "no" >&6; }
26152 if test "x$ac_ct_WINDRES" = x
; then
26155 case $cross_compiling:$ac_tool_warned in
26157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26159 ac_tool_warned
=yes ;;
26161 WINDRES
=$ac_ct_WINDRES
26164 WINDRES
="$ac_cv_prog_WINDRES"
26170 # Needed for GNU Hurd hosts.
26171 if test -n "$ac_tool_prefix"; then
26172 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
26173 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
26174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26175 $as_echo_n "checking for $ac_word... " >&6; }
26176 if ${ac_cv_prog_MIG+:} false
; then :
26177 $as_echo_n "(cached) " >&6
26179 if test -n "$MIG"; then
26180 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
26182 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26183 for as_dir
in $PATH
26186 test -z "$as_dir" && as_dir
=.
26187 for ac_exec_ext
in '' $ac_executable_extensions; do
26188 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
26189 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
26190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26199 MIG
=$ac_cv_prog_MIG
26200 if test -n "$MIG"; then
26201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
26202 $as_echo "$MIG" >&6; }
26204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26205 $as_echo "no" >&6; }
26210 if test -z "$ac_cv_prog_MIG"; then
26212 # Extract the first word of "mig", so it can be a program name with args.
26213 set dummy mig
; ac_word
=$2
26214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26215 $as_echo_n "checking for $ac_word... " >&6; }
26216 if ${ac_cv_prog_ac_ct_MIG+:} false
; then :
26217 $as_echo_n "(cached) " >&6
26219 if test -n "$ac_ct_MIG"; then
26220 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
26222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26223 for as_dir
in $PATH
26226 test -z "$as_dir" && as_dir
=.
26227 for ac_exec_ext
in '' $ac_executable_extensions; do
26228 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
26229 ac_cv_prog_ac_ct_MIG
="mig"
26230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26239 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
26240 if test -n "$ac_ct_MIG"; then
26241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
26242 $as_echo "$ac_ct_MIG" >&6; }
26244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26245 $as_echo "no" >&6; }
26248 if test "x$ac_ct_MIG" = x
; then
26251 case $cross_compiling:$ac_tool_warned in
26253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26255 ac_tool_warned
=yes ;;
26260 MIG
="$ac_cv_prog_MIG"
26263 if test x
"$MIG" = x
; then
26264 as_fn_error $?
"MIG not found but required for $host hosts" "$LINENO" 5
26269 # ---------------------- #
26270 # Checks for libraries. #
26271 # ---------------------- #
26273 # We might need to link with -lm; most simulators need it.
26274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
26275 $as_echo_n "checking for main in -lm... " >&6; }
26276 if ${ac_cv_lib_m_main+:} false
; then :
26277 $as_echo_n "(cached) " >&6
26279 ac_check_lib_save_LIBS
=$LIBS
26281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26282 /* end confdefs.h. */
26293 if ac_fn_c_try_link
"$LINENO"; then :
26294 ac_cv_lib_m_main
=yes
26296 ac_cv_lib_m_main
=no
26298 rm -f core conftest.err conftest.
$ac_objext \
26299 conftest
$ac_exeext conftest.
$ac_ext
26300 LIBS
=$ac_check_lib_save_LIBS
26302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
26303 $as_echo "$ac_cv_lib_m_main" >&6; }
26304 if test "x$ac_cv_lib_m_main" = xyes
; then :
26305 cat >>confdefs.h
<<_ACEOF
26306 #define HAVE_LIBM 1
26314 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
26315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
26316 $as_echo_n "checking for library containing gethostbyname... " >&6; }
26317 if ${ac_cv_search_gethostbyname+:} false
; then :
26318 $as_echo_n "(cached) " >&6
26320 ac_func_search_save_LIBS
=$LIBS
26321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26322 /* end confdefs.h. */
26324 /* Override any GCC internal prototype to avoid an error.
26325 Use char because int might match the return type of a GCC
26326 builtin and then its argument prototype would still apply. */
26330 char gethostbyname ();
26334 return gethostbyname ();
26339 for ac_lib
in '' nsl
; do
26340 if test -z "$ac_lib"; then
26341 ac_res
="none required"
26344 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26346 if ac_fn_c_try_link
"$LINENO"; then :
26347 ac_cv_search_gethostbyname
=$ac_res
26349 rm -f core conftest.err conftest.
$ac_objext \
26351 if ${ac_cv_search_gethostbyname+:} false
; then :
26355 if ${ac_cv_search_gethostbyname+:} false
; then :
26358 ac_cv_search_gethostbyname
=no
26360 rm conftest.
$ac_ext
26361 LIBS
=$ac_func_search_save_LIBS
26363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
26364 $as_echo "$ac_cv_search_gethostbyname" >&6; }
26365 ac_res
=$ac_cv_search_gethostbyname
26366 if test "$ac_res" != no
; then :
26367 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26372 # Link in zlib/zstd if we can. This allows us to read compressed debug
26375 # Use the system's zlib library.
26376 zlibdir
="-L\$(top_builddir)/../zlib"
26377 zlibinc
="-I\$(top_srcdir)/../zlib"
26379 # Check whether --with-system-zlib was given.
26380 if test "${with_system_zlib+set}" = set; then :
26381 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
26393 # Check whether --with-zstd was given.
26394 if test "${with_zstd+set}" = set; then :
26395 withval
=$with_zstd;
26401 if test "$with_zstd" != no
; then :
26404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
26405 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
26407 if test -n "$ZSTD_CFLAGS"; then
26408 pkg_cv_ZSTD_CFLAGS
="$ZSTD_CFLAGS"
26409 elif test -n "$PKG_CONFIG"; then
26410 if test -n "$PKG_CONFIG" && \
26411 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
26412 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
26414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26415 test $ac_status = 0; }; then
26416 pkg_cv_ZSTD_CFLAGS
=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
26417 test "x$?" != "x0" && pkg_failed
=yes
26424 if test -n "$ZSTD_LIBS"; then
26425 pkg_cv_ZSTD_LIBS
="$ZSTD_LIBS"
26426 elif test -n "$PKG_CONFIG"; then
26427 if test -n "$PKG_CONFIG" && \
26428 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
26429 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
26431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26432 test $ac_status = 0; }; then
26433 pkg_cv_ZSTD_LIBS
=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
26434 test "x$?" != "x0" && pkg_failed
=yes
26442 if test $pkg_failed = no
; then
26443 pkg_save_LDFLAGS
="$LDFLAGS"
26444 LDFLAGS
="$LDFLAGS $pkg_cv_ZSTD_LIBS"
26445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26446 /* end confdefs.h. */
26456 if ac_fn_c_try_link
"$LINENO"; then :
26461 rm -f core conftest.err conftest.
$ac_objext \
26462 conftest
$ac_exeext conftest.
$ac_ext
26463 LDFLAGS
=$pkg_save_LDFLAGS
26468 if test $pkg_failed = yes; then
26469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26470 $as_echo "no" >&6; }
26472 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26473 _pkg_short_errors_supported
=yes
26475 _pkg_short_errors_supported
=no
26477 if test $_pkg_short_errors_supported = yes; then
26478 ZSTD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
26480 ZSTD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
26482 # Put the nasty error message in config.log where it belongs
26483 echo "$ZSTD_PKG_ERRORS" >&5
26486 if test "$with_zstd" = yes; then
26487 as_fn_error $?
"--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
26490 elif test $pkg_failed = untried
; then
26491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26492 $as_echo "no" >&6; }
26494 if test "$with_zstd" = yes; then
26495 as_fn_error $?
"--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
26499 ZSTD_CFLAGS
=$pkg_cv_ZSTD_CFLAGS
26500 ZSTD_LIBS
=$pkg_cv_ZSTD_LIBS
26501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26502 $as_echo "yes" >&6; }
26505 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
26518 am_save_CPPFLAGS
="$CPPFLAGS"
26520 for element
in $INCICONV; do
26522 for x
in $CPPFLAGS; do
26524 acl_save_prefix
="$prefix"
26525 prefix
="$acl_final_prefix"
26526 acl_save_exec_prefix
="$exec_prefix"
26527 exec_prefix
="$acl_final_exec_prefix"
26529 exec_prefix
="$acl_save_exec_prefix"
26530 prefix
="$acl_save_prefix"
26532 if test "X$x" = "X$element"; then
26537 if test -z "$haveit"; then
26538 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
26543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
26544 $as_echo_n "checking for iconv... " >&6; }
26545 if ${am_cv_func_iconv+:} false
; then :
26546 $as_echo_n "(cached) " >&6
26549 am_cv_func_iconv
="no, consider installing GNU libiconv"
26551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26552 /* end confdefs.h. */
26554 #include <stdlib.h>
26560 iconv_t cd = iconv_open("","");
26561 iconv(cd,NULL,NULL,NULL,NULL);
26567 if ac_fn_c_try_link
"$LINENO"; then :
26568 am_cv_func_iconv
=yes
26570 rm -f core conftest.err conftest.
$ac_objext \
26571 conftest
$ac_exeext conftest.
$ac_ext
26572 if test "$am_cv_func_iconv" != yes; then
26573 am_save_LIBS
="$LIBS"
26574 LIBS
="$LIBS $LIBICONV"
26575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26576 /* end confdefs.h. */
26578 #include <stdlib.h>
26584 iconv_t cd = iconv_open("","");
26585 iconv(cd,NULL,NULL,NULL,NULL);
26591 if ac_fn_c_try_link
"$LINENO"; then :
26592 am_cv_lib_iconv
=yes
26593 am_cv_func_iconv
=yes
26595 rm -f core conftest.err conftest.
$ac_objext \
26596 conftest
$ac_exeext conftest.
$ac_ext
26597 LIBS
="$am_save_LIBS"
26601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
26602 $as_echo "$am_cv_func_iconv" >&6; }
26603 if test "$am_cv_func_iconv" = yes; then
26604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
26605 $as_echo_n "checking for working iconv... " >&6; }
26606 if ${am_cv_func_iconv_works+:} false
; then :
26607 $as_echo_n "(cached) " >&6
26610 am_save_LIBS
="$LIBS"
26611 if test $am_cv_lib_iconv = yes; then
26612 LIBS
="$LIBS $LIBICONV"
26614 am_cv_func_iconv_works
=no
26615 for ac_iconv_const
in '' 'const'; do
26616 if test "$cross_compiling" = yes; then :
26618 aix
* | hpux
*) am_cv_func_iconv_works
="guessing no" ;;
26619 *) am_cv_func_iconv_works
="guessing yes" ;;
26622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26623 /* end confdefs.h. */
26626 #include <string.h>
26628 #ifndef ICONV_CONST
26629 # define ICONV_CONST $ac_iconv_const
26636 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
26637 successful returns. This is even documented in
26638 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
26640 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
26641 if (cd_utf8_to_88591 != (iconv_t)(-1))
26643 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
26645 ICONV_CONST char *inptr = input;
26646 size_t inbytesleft = strlen (input);
26647 char *outptr = buf;
26648 size_t outbytesleft = sizeof (buf);
26649 size_t res = iconv (cd_utf8_to_88591,
26650 &inptr, &inbytesleft,
26651 &outptr, &outbytesleft);
26654 iconv_close (cd_utf8_to_88591);
26657 /* Test against Solaris 10 bug: Failures are not distinguishable from
26658 successful returns. */
26660 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
26661 if (cd_ascii_to_88591 != (iconv_t)(-1))
26663 static ICONV_CONST char input[] = "\263";
26665 ICONV_CONST char *inptr = input;
26666 size_t inbytesleft = strlen (input);
26667 char *outptr = buf;
26668 size_t outbytesleft = sizeof (buf);
26669 size_t res = iconv (cd_ascii_to_88591,
26670 &inptr, &inbytesleft,
26671 &outptr, &outbytesleft);
26674 iconv_close (cd_ascii_to_88591);
26677 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
26679 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
26680 if (cd_88591_to_utf8 != (iconv_t)(-1))
26682 static ICONV_CONST char input[] = "\304";
26683 static char buf[2] = { (char)0xDE, (char)0xAD };
26684 ICONV_CONST char *inptr = input;
26685 size_t inbytesleft = 1;
26686 char *outptr = buf;
26687 size_t outbytesleft = 1;
26688 size_t res = iconv (cd_88591_to_utf8,
26689 &inptr, &inbytesleft,
26690 &outptr, &outbytesleft);
26691 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
26693 iconv_close (cd_88591_to_utf8);
26696 #if 0 /* This bug could be worked around by the caller. */
26697 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
26699 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
26700 if (cd_88591_to_utf8 != (iconv_t)(-1))
26702 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
26704 ICONV_CONST char *inptr = input;
26705 size_t inbytesleft = strlen (input);
26706 char *outptr = buf;
26707 size_t outbytesleft = sizeof (buf);
26708 size_t res = iconv (cd_88591_to_utf8,
26709 &inptr, &inbytesleft,
26710 &outptr, &outbytesleft);
26713 iconv_close (cd_88591_to_utf8);
26717 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
26720 /* Try standardized names. */
26721 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
26722 /* Try IRIX, OSF/1 names. */
26723 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
26724 /* Try AIX names. */
26725 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
26726 /* Try HP-UX names. */
26727 iconv_t cd4 = iconv_open ("utf8", "eucJP");
26728 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
26729 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
26731 if (cd1 != (iconv_t)(-1))
26733 if (cd2 != (iconv_t)(-1))
26735 if (cd3 != (iconv_t)(-1))
26737 if (cd4 != (iconv_t)(-1))
26746 if ac_fn_c_try_run
"$LINENO"; then :
26747 am_cv_func_iconv_works
=yes
26749 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26750 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26753 test "$am_cv_func_iconv_works" = no ||
break
26755 LIBS
="$am_save_LIBS"
26758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
26759 $as_echo "$am_cv_func_iconv_works" >&6; }
26760 case "$am_cv_func_iconv_works" in
26761 *no
) am_func_iconv
=no am_cv_lib_iconv
=no
;;
26762 *) am_func_iconv
=yes ;;
26765 am_func_iconv
=no am_cv_lib_iconv
=no
26767 if test "$am_func_iconv" = yes; then
26769 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
26772 if test "$am_cv_lib_iconv" = yes; then
26773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
26774 $as_echo_n "checking how to link with libiconv... " >&6; }
26775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
26776 $as_echo "$LIBICONV" >&6; }
26778 CPPFLAGS
="$am_save_CPPFLAGS"
26785 if test "$am_cv_func_iconv" = yes; then
26786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv is compatible with its POSIX signature" >&5
26787 $as_echo_n "checking whether iconv is compatible with its POSIX signature... " >&6; }
26788 if ${gl_cv_iconv_nonconst+:} false
; then :
26789 $as_echo_n "(cached) " >&6
26791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26792 /* end confdefs.h. */
26794 #include <stdlib.h>
26800 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
26810 if ac_fn_c_try_compile
"$LINENO"; then :
26811 gl_cv_iconv_nonconst
=yes
26813 gl_cv_iconv_nonconst
=no
26815 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_iconv_nonconst" >&5
26819 $as_echo "$gl_cv_iconv_nonconst" >&6; }
26821 gl_cv_iconv_nonconst
=yes
26823 if test $gl_cv_iconv_nonconst = yes; then
26829 cat >>confdefs.h
<<_ACEOF
26830 #define ICONV_CONST $iconv_arg1
26835 if test "$am_func_iconv" = yes; then
26836 if test -n "$LIBICONV"; then
26837 am_cv_func_iconv_summary
='yes, in libiconv'
26839 am_cv_func_iconv_summary
='yes, in libc'
26842 if test "$am_cv_func_iconv" = yes; then
26843 am_cv_func_iconv_summary
='not working, consider installing GNU libiconv'
26845 am_cv_func_iconv_summary
='no, consider installing GNU libiconv'
26850 # GDB may fork/exec the iconv program to get the list of supported character
26851 # sets. Allow the user to specify where to find it.
26852 # There are several factors affecting the choice of option name:
26853 # - There is already --with-libiconv-prefix but we can't use it, it specifies
26854 # the build-time location of libiconv files.
26855 # - The program we need to find is iconv, which comes with glibc. The user
26856 # doesn't necessarily have libiconv installed. Therefore naming this
26857 # --with-libiconv-foo feels wrong.
26858 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
26859 # defined to work on directories not files (though it really doesn't know
26861 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
26862 # with --with-libiconv-prefix.
26863 # Putting these together is why the option name is --with-iconv-bin.
26866 # Check whether --with-iconv-bin was given.
26867 if test "${with_iconv_bin+set}" = set; then :
26868 withval
=$with_iconv_bin; iconv_bin
="${withval}"
26870 cat >>confdefs.h
<<_ACEOF
26871 #define ICONV_BIN "${iconv_bin}"
26875 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
26876 if test "x$prefix" = xNONE
; then
26877 test_prefix
=/usr
/local
26879 test_prefix
=$prefix
26882 test_prefix
=$exec_prefix
26885 case ${iconv_bin} in
26886 "${test_prefix}"|
"${test_prefix}/"*|\
26887 '${exec_prefix}'|
'${exec_prefix}/'*)
26892 cat >>confdefs.h
<<_ACEOF
26893 #define ICONV_BIN_RELOCATABLE $value
26901 # For the TUI, we need enhanced curses functionality.
26902 if test x
"$enable_tui" != xno
; then
26907 if test x
"$prefer_curses" = xyes
; then
26908 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
26909 # curses library because the latter might not provide all the
26910 # functionality we need. However, this leads to problems on systems
26911 # where the linker searches /usr/local/lib, but the compiler doesn't
26912 # search /usr/local/include, if ncurses is installed in /usr/local. A
26913 # default installation of ncurses on alpha*-dec-osf* will lead to such
26915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
26916 $as_echo_n "checking for library containing waddstr... " >&6; }
26917 if ${ac_cv_search_waddstr+:} false
; then :
26918 $as_echo_n "(cached) " >&6
26920 ac_func_search_save_LIBS
=$LIBS
26921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26922 /* end confdefs.h. */
26924 /* Override any GCC internal prototype to avoid an error.
26925 Use char because int might match the return type of a GCC
26926 builtin and then its argument prototype would still apply. */
26939 for ac_lib
in '' ncursesw ncurses cursesX curses
; do
26940 if test -z "$ac_lib"; then
26941 ac_res
="none required"
26944 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26946 if ac_fn_c_try_link
"$LINENO"; then :
26947 ac_cv_search_waddstr
=$ac_res
26949 rm -f core conftest.err conftest.
$ac_objext \
26951 if ${ac_cv_search_waddstr+:} false
; then :
26955 if ${ac_cv_search_waddstr+:} false
; then :
26958 ac_cv_search_waddstr
=no
26960 rm conftest.
$ac_ext
26961 LIBS
=$ac_func_search_save_LIBS
26963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
26964 $as_echo "$ac_cv_search_waddstr" >&6; }
26965 ac_res
=$ac_cv_search_waddstr
26966 if test "$ac_res" != no
; then :
26967 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26970 $as_echo "#define HAVE_LIBCURSES 1" >>confdefs.h
26977 # Check whether we should enable the TUI, but only do so if we really
26979 if test x
"$enable_tui" != xno
; then
26980 if test "$curses_found" != no
; then
26981 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
26982 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
26983 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
26984 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
26986 if test x
"$enable_tui" = xyes
; then
26987 as_fn_error $?
"no enhanced curses library found; disable TUI" "$LINENO" 5
26989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
26990 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
26995 # Since GDB uses Readline, we need termcap functionality. In many
26996 # cases this will be provided by the curses library, but some systems
26997 # have a separate termcap library, or no curses library at all.
27001 if test -d "$srcdir/libtermcap"; then
27002 LIBS
="../libtermcap/libtermcap.a $LIBS"
27003 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
27006 ac_cv_search_tgetent
="none required"
27010 # These are the libraries checked by Readline.
27011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
27012 $as_echo_n "checking for library containing tgetent... " >&6; }
27013 if ${ac_cv_search_tgetent+:} false
; then :
27014 $as_echo_n "(cached) " >&6
27016 ac_func_search_save_LIBS
=$LIBS
27017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27018 /* end confdefs.h. */
27020 /* Override any GCC internal prototype to avoid an error.
27021 Use char because int might match the return type of a GCC
27022 builtin and then its argument prototype would still apply. */
27035 for ac_lib
in '' termcap tinfow tinfo curses ncursesw ncurses
; do
27036 if test -z "$ac_lib"; then
27037 ac_res
="none required"
27040 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27042 if ac_fn_c_try_link
"$LINENO"; then :
27043 ac_cv_search_tgetent
=$ac_res
27045 rm -f core conftest.err conftest.
$ac_objext \
27047 if ${ac_cv_search_tgetent+:} false
; then :
27051 if ${ac_cv_search_tgetent+:} false
; then :
27054 ac_cv_search_tgetent
=no
27056 rm conftest.
$ac_ext
27057 LIBS
=$ac_func_search_save_LIBS
27059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
27060 $as_echo "$ac_cv_search_tgetent" >&6; }
27061 ac_res
=$ac_cv_search_tgetent
27062 if test "$ac_res" != no
; then :
27063 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27068 if test "$ac_cv_search_tgetent" = no
; then
27069 CONFIG_OBS
="$CONFIG_OBS stub-termcap.o"
27073 # Check whether --with-system-readline was given.
27074 if test "${with_system_readline+set}" = set; then :
27075 withval
=$with_system_readline;
27079 if test "$with_system_readline" = yes; then
27080 for ac_header
in readline
/readline.h
27082 ac_fn_c_check_header_mongrel
"$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
27083 if test "x$ac_cv_header_readline_readline_h" = xyes
; then :
27084 cat >>confdefs.h
<<_ACEOF
27085 #define HAVE_READLINE_READLINE_H 1
27094 if test "$readline_h" = "no"; then
27095 as_fn_error $?
"readline development packages are probably missing" "$LINENO" 5
27097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system readline is new enough" >&5
27098 $as_echo_n "checking whether system readline is new enough... " >&6; }
27099 if ${gdb_cv_readline_ok+:} false
; then :
27100 $as_echo_n "(cached) " >&6
27102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27103 /* end confdefs.h. */
27105 #include <readline/readline.h>
27109 #if RL_VERSION_MAJOR < 7
27110 # error "readline version 7 required"
27117 if ac_fn_c_try_compile
"$LINENO"; then :
27118 gdb_cv_readline_ok
=yes
27120 gdb_cv_readline_ok
=no
27123 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_readline_ok" >&5
27127 $as_echo "$gdb_cv_readline_ok" >&6; }
27128 if test "$gdb_cv_readline_ok" != yes; then
27129 as_fn_error $?
"system readline is not new enough" "$LINENO" 5
27132 READLINE
=-lreadline
27135 READLINE_TEXI_INCFLAG
=
27136 READLINE_DOC_SOURCE_INCLUDES
='$(READLINE_SYSTEM_DOC_INCLUDES)'
27138 READLINE
='$(READLINE_DIR)/libreadline.a'
27139 READLINE_DEPS
='$(READLINE)'
27140 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
27141 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
27142 READLINE_DOC_SOURCE_INCLUDES
='$(READLINE_INTREE_DOC_INCLUDES)'
27150 # Generate jit-reader.h
27152 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
27155 # The cast to long int works around a bug in the HP C Compiler
27156 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27157 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27158 # This bug is HP SR number 8606223364.
27159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
27160 $as_echo_n "checking size of unsigned long long... " >&6; }
27161 if ${ac_cv_sizeof_unsigned_long_long+:} false
; then :
27162 $as_echo_n "(cached) " >&6
27164 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
27167 if test "$ac_cv_type_unsigned_long_long" = yes; then
27168 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27170 as_fn_error
77 "cannot compute sizeof (unsigned long long)
27171 See \`config.log' for more details" "$LINENO" 5; }
27173 ac_cv_sizeof_unsigned_long_long
=0
27178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
27179 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
27183 cat >>confdefs.h
<<_ACEOF
27184 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
27188 # The cast to long int works around a bug in the HP C Compiler
27189 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27190 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27191 # This bug is HP SR number 8606223364.
27192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
27193 $as_echo_n "checking size of unsigned long... " >&6; }
27194 if ${ac_cv_sizeof_unsigned_long+:} false
; then :
27195 $as_echo_n "(cached) " >&6
27197 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
27200 if test "$ac_cv_type_unsigned_long" = yes; then
27201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27203 as_fn_error
77 "cannot compute sizeof (unsigned long)
27204 See \`config.log' for more details" "$LINENO" 5; }
27206 ac_cv_sizeof_unsigned_long
=0
27211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
27212 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
27216 cat >>confdefs.h
<<_ACEOF
27217 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
27221 # The cast to long int works around a bug in the HP C Compiler
27222 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27223 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27224 # This bug is HP SR number 8606223364.
27225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
27226 $as_echo_n "checking size of unsigned __int128... " >&6; }
27227 if ${ac_cv_sizeof_unsigned___int128+:} false
; then :
27228 $as_echo_n "(cached) " >&6
27230 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
27233 if test "$ac_cv_type_unsigned___int128" = yes; then
27234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27236 as_fn_error
77 "cannot compute sizeof (unsigned __int128)
27237 See \`config.log' for more details" "$LINENO" 5; }
27239 ac_cv_sizeof_unsigned___int128
=0
27244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
27245 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
27249 cat >>confdefs.h
<<_ACEOF
27250 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
27255 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
27256 TARGET_PTR
="unsigned long"
27257 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
27258 TARGET_PTR
="unsigned long long"
27259 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
27260 TARGET_PTR
="unsigned __int128"
27262 TARGET_PTR
="unsigned long"
27266 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
27269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27270 $as_echo_n "checking for library containing dlopen... " >&6; }
27271 if ${ac_cv_search_dlopen+:} false
; then :
27272 $as_echo_n "(cached) " >&6
27274 ac_func_search_save_LIBS
=$LIBS
27275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27276 /* end confdefs.h. */
27278 /* Override any GCC internal prototype to avoid an error.
27279 Use char because int might match the return type of a GCC
27280 builtin and then its argument prototype would still apply. */
27293 for ac_lib
in '' dl
; do
27294 if test -z "$ac_lib"; then
27295 ac_res
="none required"
27298 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27300 if ac_fn_c_try_link
"$LINENO"; then :
27301 ac_cv_search_dlopen
=$ac_res
27303 rm -f core conftest.err conftest.
$ac_objext \
27305 if ${ac_cv_search_dlopen+:} false
; then :
27309 if ${ac_cv_search_dlopen+:} false
; then :
27312 ac_cv_search_dlopen
=no
27314 rm conftest.
$ac_ext
27315 LIBS
=$ac_func_search_save_LIBS
27317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27318 $as_echo "$ac_cv_search_dlopen" >&6; }
27319 ac_res
=$ac_cv_search_dlopen
27320 if test "$ac_res" != no
; then :
27321 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27328 # Check whether --with-jit-reader-dir was given.
27329 if test "${with_jit_reader_dir+set}" = set; then :
27330 withval
=$with_jit_reader_dir;
27331 JIT_READER_DIR
=$withval
27333 JIT_READER_DIR
=${libdir}/gdb
27337 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
27338 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27339 ac_define_dir
=`eval echo $JIT_READER_DIR`
27340 ac_define_dir
=`eval echo $ac_define_dir`
27342 cat >>confdefs.h
<<_ACEOF
27343 #define JIT_READER_DIR "$ac_define_dir"
27349 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
27350 if test "x$prefix" = xNONE
; then
27351 test_prefix
=/usr
/local
27353 test_prefix
=$prefix
27356 test_prefix
=$exec_prefix
27359 case ${ac_define_dir} in
27360 "${test_prefix}"|
"${test_prefix}/"*|\
27361 '${exec_prefix}'|
'${exec_prefix}/'*)
27366 cat >>confdefs.h
<<_ACEOF
27367 #define JIT_READER_DIR_RELOCATABLE $value
27374 # Check whether --with-expat was given.
27375 if test "${with_expat+set}" = set; then :
27376 withval
=$with_expat;
27381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
27382 $as_echo_n "checking whether to use expat... " >&6; }
27383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
27384 $as_echo "$with_expat" >&6; }
27386 if test "${with_expat}" = no
; then
27387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
27388 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
27401 acl_save_prefix
="$prefix"
27402 prefix
="$acl_final_prefix"
27403 acl_save_exec_prefix
="$exec_prefix"
27404 exec_prefix
="$acl_final_exec_prefix"
27406 eval additional_includedir
=\"$includedir\"
27407 eval additional_libdir
=\"$libdir\"
27409 exec_prefix
="$acl_save_exec_prefix"
27410 prefix
="$acl_save_prefix"
27413 # Check whether --with-libexpat-prefix was given.
27414 if test "${with_libexpat_prefix+set}" = set; then :
27415 withval
=$with_libexpat_prefix;
27416 if test "X$withval" = "Xno"; then
27419 if test "X$withval" = "X"; then
27421 acl_save_prefix
="$prefix"
27422 prefix
="$acl_final_prefix"
27423 acl_save_exec_prefix
="$exec_prefix"
27424 exec_prefix
="$acl_final_exec_prefix"
27426 eval additional_includedir
=\"$includedir\"
27427 eval additional_libdir
=\"$libdir\"
27429 exec_prefix
="$acl_save_exec_prefix"
27430 prefix
="$acl_save_prefix"
27433 additional_includedir
="$withval/include"
27434 additional_libdir
="$withval/lib"
27441 # Check whether --with-libexpat-type was given.
27442 if test "${with_libexpat_type+set}" = set; then :
27443 withval
=$with_libexpat_type; with_libexpat_type
=$withval
27445 with_libexpat_type
=auto
27448 lib_type
=`eval echo \$with_libexpat_type`
27455 names_already_handled
=
27456 names_next_round
='expat '
27457 while test -n "$names_next_round"; do
27458 names_this_round
="$names_next_round"
27460 for name
in $names_this_round; do
27462 for n
in $names_already_handled; do
27463 if test "$n" = "$name"; then
27464 already_handled
=yes
27468 if test -z "$already_handled"; then
27469 names_already_handled
="$names_already_handled $name"
27470 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
27471 eval value
=\"\
$HAVE_LIB$uppername\"
27472 if test -n "$value"; then
27473 if test "$value" = yes; then
27474 eval value
=\"\
$LIB$uppername\"
27475 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
27476 eval value
=\"\
$LTLIB$uppername\"
27477 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
27486 if test $use_additional = yes; then
27487 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
27488 found_dir
="$additional_libdir"
27489 found_so
="$additional_libdir/lib$name.$shlibext"
27490 if test -f "$additional_libdir/lib$name.la"; then
27491 found_la
="$additional_libdir/lib$name.la"
27493 elif test x
$lib_type != xshared
; then
27494 if test -f "$additional_libdir/lib$name.$libext"; then
27495 found_dir
="$additional_libdir"
27496 found_a
="$additional_libdir/lib$name.$libext"
27497 if test -f "$additional_libdir/lib$name.la"; then
27498 found_la
="$additional_libdir/lib$name.la"
27503 if test "X$found_dir" = "X"; then
27504 for x
in $LDFLAGS $LTLIBEXPAT; do
27506 acl_save_prefix
="$prefix"
27507 prefix
="$acl_final_prefix"
27508 acl_save_exec_prefix
="$exec_prefix"
27509 exec_prefix
="$acl_final_exec_prefix"
27511 exec_prefix
="$acl_save_exec_prefix"
27512 prefix
="$acl_save_prefix"
27516 dir
=`echo "X$x" | sed -e 's/^X-L//'`
27517 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
27519 found_so
="$dir/lib$name.$shlibext"
27520 if test -f "$dir/lib$name.la"; then
27521 found_la
="$dir/lib$name.la"
27523 elif test x
$lib_type != xshared
; then
27524 if test -f "$dir/lib$name.$libext"; then
27526 found_a
="$dir/lib$name.$libext"
27527 if test -f "$dir/lib$name.la"; then
27528 found_la
="$dir/lib$name.la"
27534 if test "X$found_dir" != "X"; then
27539 if test "X$found_dir" != "X"; then
27540 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
27541 if test "X$found_so" != "X"; then
27542 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
27543 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
27546 for x
in $ltrpathdirs; do
27547 if test "X$x" = "X$found_dir"; then
27552 if test -z "$haveit"; then
27553 ltrpathdirs
="$ltrpathdirs $found_dir"
27555 if test "$hardcode_direct" = yes; then
27556 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
27558 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
27559 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
27561 for x
in $rpathdirs; do
27562 if test "X$x" = "X$found_dir"; then
27567 if test -z "$haveit"; then
27568 rpathdirs
="$rpathdirs $found_dir"
27572 for x
in $LDFLAGS $LIBEXPAT; do
27574 acl_save_prefix
="$prefix"
27575 prefix
="$acl_final_prefix"
27576 acl_save_exec_prefix
="$exec_prefix"
27577 exec_prefix
="$acl_final_exec_prefix"
27579 exec_prefix
="$acl_save_exec_prefix"
27580 prefix
="$acl_save_prefix"
27582 if test "X$x" = "X-L$found_dir"; then
27587 if test -z "$haveit"; then
27588 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
27590 if test "$hardcode_minus_L" != no
; then
27591 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
27593 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
27599 if test "X$found_a" != "X"; then
27600 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
27602 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
27605 additional_includedir
=
27606 case "$found_dir" in
27608 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
27609 additional_includedir
="$basedir/include"
27612 if test "X$additional_includedir" != "X"; then
27613 if test "X$additional_includedir" != "X/usr/include"; then
27615 if test "X$additional_includedir" = "X/usr/local/include"; then
27616 if test -n "$GCC"; then
27618 linux
*) haveit
=yes;;
27622 if test -z "$haveit"; then
27623 for x
in $CPPFLAGS $INCEXPAT; do
27625 acl_save_prefix
="$prefix"
27626 prefix
="$acl_final_prefix"
27627 acl_save_exec_prefix
="$exec_prefix"
27628 exec_prefix
="$acl_final_exec_prefix"
27630 exec_prefix
="$acl_save_exec_prefix"
27631 prefix
="$acl_save_prefix"
27633 if test "X$x" = "X-I$additional_includedir"; then
27638 if test -z "$haveit"; then
27639 if test -d "$additional_includedir"; then
27640 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
27646 if test -n "$found_la"; then
27647 save_libdir
="$libdir"
27648 case "$found_la" in
27649 */* |
*\\*) .
"$found_la" ;;
27650 *) .
"./$found_la" ;;
27652 libdir
="$save_libdir"
27653 for dep
in $dependency_libs; do
27656 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
27657 if test "X$additional_libdir" != "X/usr/lib"; then
27659 if test "X$additional_libdir" = "X/usr/local/lib"; then
27660 if test -n "$GCC"; then
27662 linux
*) haveit
=yes;;
27666 if test -z "$haveit"; then
27668 for x
in $LDFLAGS $LIBEXPAT; do
27670 acl_save_prefix
="$prefix"
27671 prefix
="$acl_final_prefix"
27672 acl_save_exec_prefix
="$exec_prefix"
27673 exec_prefix
="$acl_final_exec_prefix"
27675 exec_prefix
="$acl_save_exec_prefix"
27676 prefix
="$acl_save_prefix"
27678 if test "X$x" = "X-L$additional_libdir"; then
27683 if test -z "$haveit"; then
27684 if test -d "$additional_libdir"; then
27685 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
27689 for x
in $LDFLAGS $LTLIBEXPAT; do
27691 acl_save_prefix
="$prefix"
27692 prefix
="$acl_final_prefix"
27693 acl_save_exec_prefix
="$exec_prefix"
27694 exec_prefix
="$acl_final_exec_prefix"
27696 exec_prefix
="$acl_save_exec_prefix"
27697 prefix
="$acl_save_prefix"
27699 if test "X$x" = "X-L$additional_libdir"; then
27704 if test -z "$haveit"; then
27705 if test -d "$additional_libdir"; then
27706 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
27713 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
27714 if test "$enable_rpath" != no
; then
27716 for x
in $rpathdirs; do
27717 if test "X$x" = "X$dir"; then
27722 if test -z "$haveit"; then
27723 rpathdirs
="$rpathdirs $dir"
27726 for x
in $ltrpathdirs; do
27727 if test "X$x" = "X$dir"; then
27732 if test -z "$haveit"; then
27733 ltrpathdirs
="$ltrpathdirs $dir"
27738 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
27741 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
27744 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
27745 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
27751 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
27752 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
27753 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
27755 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l:lib$name.$libext"
27756 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l:lib$name.$libext"
27763 if test "X$rpathdirs" != "X"; then
27764 if test -n "$hardcode_libdir_separator"; then
27766 for found_dir
in $rpathdirs; do
27767 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
27769 acl_save_libdir
="$libdir"
27771 eval flag
=\"$hardcode_libdir_flag_spec\"
27772 libdir
="$acl_save_libdir"
27773 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
27775 for found_dir
in $rpathdirs; do
27776 acl_save_libdir
="$libdir"
27777 libdir
="$found_dir"
27778 eval flag
=\"$hardcode_libdir_flag_spec\"
27779 libdir
="$acl_save_libdir"
27780 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
27784 if test "X$ltrpathdirs" != "X"; then
27785 for found_dir
in $ltrpathdirs; do
27786 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
27791 ac_save_CPPFLAGS
="$CPPFLAGS"
27793 for element
in $INCEXPAT; do
27795 for x
in $CPPFLAGS; do
27797 acl_save_prefix
="$prefix"
27798 prefix
="$acl_final_prefix"
27799 acl_save_exec_prefix
="$exec_prefix"
27800 exec_prefix
="$acl_final_exec_prefix"
27802 exec_prefix
="$acl_save_exec_prefix"
27803 prefix
="$acl_save_prefix"
27805 if test "X$x" = "X$element"; then
27810 if test -z "$haveit"; then
27811 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
27816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
27817 $as_echo_n "checking for libexpat... " >&6; }
27818 if ${ac_cv_libexpat+:} false
; then :
27819 $as_echo_n "(cached) " >&6
27822 ac_save_LIBS
="$LIBS"
27823 LIBS
="$LIBS $LIBEXPAT"
27824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27825 /* end confdefs.h. */
27830 XML_Parser p = XML_ParserCreate (0);
27835 if ac_fn_c_try_link
"$LINENO"; then :
27840 rm -f core conftest.err conftest.
$ac_objext \
27841 conftest
$ac_exeext conftest.
$ac_ext
27842 LIBS
="$ac_save_LIBS"
27845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
27846 $as_echo "$ac_cv_libexpat" >&6; }
27847 if test "$ac_cv_libexpat" = yes; then
27850 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
27852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
27853 $as_echo_n "checking how to link with libexpat... " >&6; }
27854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
27855 $as_echo "$LIBEXPAT" >&6; }
27858 CPPFLAGS
="$ac_save_CPPFLAGS"
27868 if test "$HAVE_LIBEXPAT" != yes; then
27869 if test "$with_expat" = yes; then
27870 as_fn_error $?
"expat is missing or unusable" "$LINENO" 5
27872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
27873 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
27877 LIBS
="$LIBS $LIBEXPAT"
27878 for ac_func
in XML_StopParser
27880 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
27881 if test "x$ac_cv_func_XML_StopParser" = xyes
; then :
27882 cat >>confdefs.h
<<_ACEOF
27883 #define HAVE_XML_STOPPARSER 1
27896 # --------------------- #
27897 # Check for libpython. #
27898 # --------------------- #
27905 # Check whether --with-python was given.
27906 if test "${with_python+set}" = set; then :
27907 withval
=$with_python;
27912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
27913 $as_echo_n "checking whether to use python... " >&6; }
27914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
27915 $as_echo "$with_python" >&6; }
27917 if test "${with_python}" = no
; then
27918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
27919 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
27922 case "${with_python}" in
27924 if test -d "${with_python}"; then
27925 # Assume the python binary is ${with_python}/bin/python.
27926 python_prog
="${with_python}/bin/python"
27928 # If python does not exit ${with_python}/bin, then try in
27929 # ${with_python}. On Windows/MinGW, this is where the Python
27931 if test ! -x "${python_prog}"; then
27932 python_prog
="${with_python}/python"
27935 if test ! -x "${python_prog}"; then
27936 # Fall back to gdb 7.0/7.1 behaviour.
27937 python_prog
=missing
27938 python_prefix
=${with_python}
27940 elif test -x "${with_python}"; then
27941 # While we can't run python compiled for $host (unless host == build),
27942 # the user could write a script that provides the needed information,
27943 # so we support that.
27944 python_prog
=${with_python}
27947 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
27951 # Disallow --with-python=foo/bar.
27952 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
27955 # The user has either specified auto, yes, or the name of the python
27956 # program assumed to be in $PATH.
27958 case "${with_python}" in
27960 if test "${build}" = "${host}"; then
27961 # Look first for 'python', then 'python3'.
27962 for ac_prog
in python python3
27964 # Extract the first word of "$ac_prog", so it can be a program name with args.
27965 set dummy
$ac_prog; ac_word
=$2
27966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27967 $as_echo_n "checking for $ac_word... " >&6; }
27968 if ${ac_cv_path_python_prog_path+:} false
; then :
27969 $as_echo_n "(cached) " >&6
27971 case $python_prog_path in
27973 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
27976 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27977 for as_dir
in $PATH
27980 test -z "$as_dir" && as_dir
=.
27981 for ac_exec_ext
in '' $ac_executable_extensions; do
27982 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
27983 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
27984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27994 python_prog_path
=$ac_cv_path_python_prog_path
27995 if test -n "$python_prog_path"; then
27996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
27997 $as_echo "$python_prog_path" >&6; }
27999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28000 $as_echo "no" >&6; }
28004 test -n "$python_prog_path" && break
28006 test -n "$python_prog_path" || python_prog_path
="missing"
28008 if test "${python_prog_path}" = missing
; then
28009 python_prog
=missing
28011 python_prog
=${python_prog_path}
28014 # Not much we can do except assume the cross-compiler will find the
28016 python_prog
=missing
28020 # While we can't run python compiled for $host (unless host == build),
28021 # the user could write a script that provides the needed information,
28022 # so we support that.
28023 python_prog
="${with_python}"
28024 # Extract the first word of "${python_prog}", so it can be a program name with args.
28025 set dummy
${python_prog}; ac_word
=$2
28026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28027 $as_echo_n "checking for $ac_word... " >&6; }
28028 if ${ac_cv_path_python_prog_path+:} false
; then :
28029 $as_echo_n "(cached) " >&6
28031 case $python_prog_path in
28033 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
28036 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
28037 for as_dir
in $PATH
28040 test -z "$as_dir" && as_dir
=.
28041 for ac_exec_ext
in '' $ac_executable_extensions; do
28042 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
28043 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
28044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28051 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
28055 python_prog_path
=$ac_cv_path_python_prog_path
28056 if test -n "$python_prog_path"; then
28057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
28058 $as_echo "$python_prog_path" >&6; }
28060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28061 $as_echo "no" >&6; }
28065 if test "${python_prog_path}" = missing
; then
28066 as_fn_error $?
"unable to find python program ${python_prog}" "$LINENO" 5
28072 if test "${python_prog}" != missing
; then
28073 # We have a python program to use, but it may be too old.
28074 # Don't flag an error for --with-python=auto (the default).
28075 have_python_config
=yes
28076 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
28077 if test $?
!= 0; then
28078 have_python_config
=failed
28079 if test "${with_python}" != auto
; then
28080 as_fn_error $?
"failure running python-config --includes" "$LINENO" 5
28083 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
28084 if test $?
!= 0; then
28085 have_python_config
=failed
28086 if test "${with_python}" != auto
; then
28087 as_fn_error $?
"failure running python-config --ldflags" "$LINENO" 5
28090 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
28091 if test $?
!= 0; then
28092 have_python_config
=failed
28093 if test "${with_python}" != auto
; then
28094 as_fn_error $?
"failure running python-config --exec-prefix" "$LINENO" 5
28098 # We do not have a python executable we can use to determine where
28099 # to find the Python headers and libs. We cannot guess the include
28100 # path from the python_prefix either, because that include path
28101 # depends on the Python version. So, there is nothing much we can
28102 # do except assume that the compiler will be able to find those files.
28105 have_python_config
=no
28108 # If we have python-config, only try the configuration it provides.
28109 # Otherwise fallback on the old way of trying different versions of
28113 if test "${have_python_config}" = yes; then
28116 new_CPPFLAGS
=${python_includes}
28117 new_LIBS
=${python_libs}
28118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
28119 $as_echo_n "checking for python... " >&6; }
28120 save_CPPFLAGS
=$CPPFLAGS
28122 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
28123 LIBS
="$new_LIBS $LIBS"
28124 found_usable_python
=no
28125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28126 /* end confdefs.h. */
28127 #include "Python.h"
28132 #if PY_MAJOR_VERSION != 3
28133 # error "We only support Python 3"
28141 if ac_fn_c_try_link
"$LINENO"; then :
28143 found_usable_python
=yes
28144 PYTHON_CPPFLAGS
=$new_CPPFLAGS
28145 PYTHON_LIBS
=$new_LIBS
28147 rm -f core conftest.err conftest.
$ac_objext \
28148 conftest
$ac_exeext conftest.
$ac_ext
28149 CPPFLAGS
=$save_CPPFLAGS
28151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
28152 $as_echo "${found_usable_python}" >&6; }
28156 if test "${have_libpython}" = no
; then
28157 case "${with_python}" in
28159 as_fn_error $?
"python is missing or unusable" "$LINENO" 5
28162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
28163 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
28166 as_fn_error $?
"no usable python found at ${with_python}" "$LINENO" 5
28170 if test -n "${python_prefix}"; then
28172 cat >>confdefs.h
<<_ACEOF
28173 #define WITH_PYTHON_PATH "${python_prefix}"
28177 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
28178 if test "x$prefix" = xNONE
; then
28179 test_prefix
=/usr
/local
28181 test_prefix
=$prefix
28184 test_prefix
=$exec_prefix
28187 case ${python_prefix} in
28188 "${test_prefix}"|
"${test_prefix}/"*|\
28189 '${exec_prefix}'|
'${exec_prefix}/'*)
28194 cat >>confdefs.h
<<_ACEOF
28195 #define PYTHON_PATH_RELOCATABLE $value
28204 # Check whether --with-python-libdir was given.
28205 if test "${with_python_libdir+set}" = set; then :
28206 withval
=$with_python_libdir;
28209 # If no python libdir is specified then select one based on
28210 # python's prefix path.
28211 if test -n "${python_prefix}"; then
28212 with_python_libdir
=${python_prefix}/lib
28218 if test "${have_libpython}" != no
; then
28220 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
28222 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
28223 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
28224 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
28225 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
28226 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
28228 if test -n "${with_python_libdir}"; then
28230 cat >>confdefs.h
<<_ACEOF
28231 #define WITH_PYTHON_LIBDIR "${with_python_libdir}"
28235 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
28236 if test "x$prefix" = xNONE
; then
28237 test_prefix
=/usr
/local
28239 test_prefix
=$prefix
28242 test_prefix
=$exec_prefix
28245 case ${with_python_libdir} in
28246 "${test_prefix}"|
"${test_prefix}/"*|\
28247 '${exec_prefix}'|
'${exec_prefix}/'*)
28252 cat >>confdefs.h
<<_ACEOF
28253 #define PYTHON_LIBDIR_RELOCATABLE $value
28259 # Flags needed to compile Python code (taken from python-config --cflags).
28260 # We cannot call python-config directly because it will output whatever was
28261 # used when compiling the Python interpreter itself, including flags which
28262 # would make the python-related objects be compiled differently from the
28263 # rest of GDB (e.g., -O2 and -fPIC).
28264 if test "${GCC}" = yes; then
28265 tentative_python_cflags
="-fno-strict-aliasing -fwrapv"
28266 # Python headers recommend -DNDEBUG, but it's unclear if that just
28267 # refers to building Python itself. In release mode, though, it
28268 # doesn't hurt for the Python code in gdb to follow.
28269 $development || tentative_python_cflags
="$tentative_python_cflags -DNDEBUG"
28272 if test "x${tentative_python_cflags}" != x
; then
28273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
28274 $as_echo_n "checking compiler flags for python code... " >&6; }
28275 for flag
in ${tentative_python_cflags}; do
28276 # Check that the compiler accepts it
28277 saved_CFLAGS
="$CFLAGS"
28278 CFLAGS
="$CFLAGS $flag"
28279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28280 /* end confdefs.h. */
28290 if ac_fn_c_try_compile
"$LINENO"; then :
28291 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
28293 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28294 CFLAGS
="$saved_CFLAGS"
28296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
28297 $as_echo "${PYTHON_CFLAGS}" >&6; }
28300 # On x64 Windows, Python's include headers, and pyconfig.h in
28301 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
28302 # version of Windows. Unfortunately, MS_WIN64 is only defined if
28303 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
28304 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
28305 # The issue was reported to the Python community, but still isn't
28306 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
28308 case "$gdb_host" in
28310 if test "${GCC}" = yes; then
28311 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
28316 # Even if Python support is not compiled in, we need to have this file
28317 # included so that the "python" command, et.al., still exists.
28318 CONFIG_OBS
="$CONFIG_OBS python/python.o"
28319 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
28322 # Work around Python http://bugs.python.org/issue10112. See also
28323 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
28324 # no effect. Note that the only test after this that uses Python is
28325 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
28326 # run without -export-dynamic too.
28327 PYTHON_LIBS
=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
28332 if test "${have_libpython}" != no
; then
28334 HAVE_PYTHON_FALSE
='#'
28336 HAVE_PYTHON_TRUE
='#'
28341 # -------------------- #
28342 # Check for libguile. #
28343 # -------------------- #
28350 # Check whether --with-guile was given.
28351 if test "${with_guile+set}" = set; then :
28352 withval
=$with_guile;
28357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
28358 $as_echo_n "checking whether to use guile... " >&6; }
28359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
28360 $as_echo "$with_guile" >&6; }
28362 # Extract the first word of "pkg-config", so it can be a program name with args.
28363 set dummy pkg-config
; ac_word
=$2
28364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28365 $as_echo_n "checking for $ac_word... " >&6; }
28366 if ${ac_cv_path_pkg_config_prog_path+:} false
; then :
28367 $as_echo_n "(cached) " >&6
28369 case $pkg_config_prog_path in
28371 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
28374 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
28375 for as_dir
in $PATH
28378 test -z "$as_dir" && as_dir
=.
28379 for ac_exec_ext
in '' $ac_executable_extensions; do
28380 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
28381 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
28382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28389 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
28393 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
28394 if test -n "$pkg_config_prog_path"; then
28395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
28396 $as_echo "$pkg_config_prog_path" >&6; }
28398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28399 $as_echo "no" >&6; }
28404 try_guile_versions
="guile-3.0 guile-2.2 guile-2.0"
28406 case "${with_guile}" in
28408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
28409 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
28412 if test "${pkg_config_prog_path}" = "missing"; then
28413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
28414 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
28417 pkg_config
=${pkg_config_prog_path}
28418 guile_version_list
=${try_guile_versions}
28421 found_usable_guile
=checking
28422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
28423 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
28424 for guile_version
in ${guile_version_list}; do
28425 ${pkg_config} --exists ${guile_version} 2>/dev
/null
28426 if test $?
!= 0; then
28429 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
28430 if test $?
!= 0; then
28431 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
28433 new_LIBS
=`${pkg_config} --libs ${guile_version}`
28434 if test $?
!= 0; then
28435 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
28437 found_usable_guile
=${guile_version}
28440 if test "${found_usable_guile}" = "checking"; then
28441 if test "${flag_errors}" = "yes"; then
28442 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
28444 found_usable_guile
=no
28447 if test "${found_usable_guile}" != no
; then
28448 save_CPPFLAGS
=$CPPFLAGS
28450 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
28451 LIBS
="$LIBS $new_LIBS"
28452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28453 /* end confdefs.h. */
28454 #include "libguile.h"
28463 if ac_fn_c_try_link
"$LINENO"; then :
28465 GUILE_CPPFLAGS
=$new_CPPFLAGS
28466 GUILE_LIBS
=$new_LIBS
28468 found_usable_guile
=no
28470 rm -f core conftest.err conftest.
$ac_objext \
28471 conftest
$ac_exeext conftest.
$ac_ext
28472 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
28473 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
28475 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
28480 CPPFLAGS
=$save_CPPFLAGS
28482 if test "${found_usable_guile}" = no
; then
28483 if test "${flag_errors}" = yes; then
28484 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28485 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28486 as_fn_error $?
"linking guile version ${guile_version} test program failed
28487 See \`config.log' for more details" "$LINENO" 5; }
28491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
28492 $as_echo "${found_usable_guile}" >&6; }
28497 if test "${pkg_config_prog_path}" = "missing"; then
28498 as_fn_error $?
"pkg-config not found" "$LINENO" 5
28501 pkg_config
=${pkg_config_prog_path}
28502 guile_version_list
=${try_guile_versions}
28505 found_usable_guile
=checking
28506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
28507 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
28508 for guile_version
in ${guile_version_list}; do
28509 ${pkg_config} --exists ${guile_version} 2>/dev
/null
28510 if test $?
!= 0; then
28513 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
28514 if test $?
!= 0; then
28515 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
28517 new_LIBS
=`${pkg_config} --libs ${guile_version}`
28518 if test $?
!= 0; then
28519 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
28521 found_usable_guile
=${guile_version}
28524 if test "${found_usable_guile}" = "checking"; then
28525 if test "${flag_errors}" = "yes"; then
28526 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
28528 found_usable_guile
=no
28531 if test "${found_usable_guile}" != no
; then
28532 save_CPPFLAGS
=$CPPFLAGS
28534 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
28535 LIBS
="$LIBS $new_LIBS"
28536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28537 /* end confdefs.h. */
28538 #include "libguile.h"
28547 if ac_fn_c_try_link
"$LINENO"; then :
28549 GUILE_CPPFLAGS
=$new_CPPFLAGS
28550 GUILE_LIBS
=$new_LIBS
28552 found_usable_guile
=no
28554 rm -f core conftest.err conftest.
$ac_objext \
28555 conftest
$ac_exeext conftest.
$ac_ext
28556 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
28557 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
28559 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
28564 CPPFLAGS
=$save_CPPFLAGS
28566 if test "${found_usable_guile}" = no
; then
28567 if test "${flag_errors}" = yes; then
28568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28570 as_fn_error $?
"linking guile version ${guile_version} test program failed
28571 See \`config.log' for more details" "$LINENO" 5; }
28575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
28576 $as_echo "${found_usable_guile}" >&6; }
28580 if test -x "${with_guile}"; then
28582 pkg_config
=${with_guile}
28583 guile_version_list
=${try_guile_versions}
28586 found_usable_guile
=checking
28587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
28588 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
28589 for guile_version
in ${guile_version_list}; do
28590 ${pkg_config} --exists ${guile_version} 2>/dev
/null
28591 if test $?
!= 0; then
28594 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
28595 if test $?
!= 0; then
28596 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
28598 new_LIBS
=`${pkg_config} --libs ${guile_version}`
28599 if test $?
!= 0; then
28600 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
28602 found_usable_guile
=${guile_version}
28605 if test "${found_usable_guile}" = "checking"; then
28606 if test "${flag_errors}" = "yes"; then
28607 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
28609 found_usable_guile
=no
28612 if test "${found_usable_guile}" != no
; then
28613 save_CPPFLAGS
=$CPPFLAGS
28615 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
28616 LIBS
="$LIBS $new_LIBS"
28617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28618 /* end confdefs.h. */
28619 #include "libguile.h"
28628 if ac_fn_c_try_link
"$LINENO"; then :
28630 GUILE_CPPFLAGS
=$new_CPPFLAGS
28631 GUILE_LIBS
=$new_LIBS
28633 found_usable_guile
=no
28635 rm -f core conftest.err conftest.
$ac_objext \
28636 conftest
$ac_exeext conftest.
$ac_ext
28637 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
28638 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
28640 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
28645 CPPFLAGS
=$save_CPPFLAGS
28647 if test "${found_usable_guile}" = no
; then
28648 if test "${flag_errors}" = yes; then
28649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28651 as_fn_error $?
"linking guile version ${guile_version} test program failed
28652 See \`config.log' for more details" "$LINENO" 5; }
28656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
28657 $as_echo "${found_usable_guile}" >&6; }
28660 as_fn_error $?
"Guile config program not executable: ${with_guile}" "$LINENO" 5
28664 # Disallow --with=guile="" and --with-guile=foo/bar.
28665 as_fn_error $?
"invalid value for --with-guile" "$LINENO" 5
28668 # A space separate list of guile versions to try, in order.
28669 if test "${pkg_config_prog_path}" = "missing"; then
28670 as_fn_error $?
"pkg-config not found" "$LINENO" 5
28673 pkg_config
=${pkg_config_prog_path}
28674 guile_version_list
=${with_guile}
28677 found_usable_guile
=checking
28678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
28679 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
28680 for guile_version
in ${guile_version_list}; do
28681 ${pkg_config} --exists ${guile_version} 2>/dev
/null
28682 if test $?
!= 0; then
28685 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
28686 if test $?
!= 0; then
28687 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
28689 new_LIBS
=`${pkg_config} --libs ${guile_version}`
28690 if test $?
!= 0; then
28691 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
28693 found_usable_guile
=${guile_version}
28696 if test "${found_usable_guile}" = "checking"; then
28697 if test "${flag_errors}" = "yes"; then
28698 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
28700 found_usable_guile
=no
28703 if test "${found_usable_guile}" != no
; then
28704 save_CPPFLAGS
=$CPPFLAGS
28706 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
28707 LIBS
="$LIBS $new_LIBS"
28708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28709 /* end confdefs.h. */
28710 #include "libguile.h"
28719 if ac_fn_c_try_link
"$LINENO"; then :
28721 GUILE_CPPFLAGS
=$new_CPPFLAGS
28722 GUILE_LIBS
=$new_LIBS
28724 found_usable_guile
=no
28726 rm -f core conftest.err conftest.
$ac_objext \
28727 conftest
$ac_exeext conftest.
$ac_ext
28728 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
28729 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
28731 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
28736 CPPFLAGS
=$save_CPPFLAGS
28738 if test "${found_usable_guile}" = no
; then
28739 if test "${flag_errors}" = yes; then
28740 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28742 as_fn_error $?
"linking guile version ${guile_version} test program failed
28743 See \`config.log' for more details" "$LINENO" 5; }
28747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
28748 $as_echo "${found_usable_guile}" >&6; }
28753 if test "${have_libguile}" != no
; then
28754 case "${with_guile}" in
28757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
28758 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
28759 if ${ac_cv_guild_program_name+:} false
; then :
28760 $as_echo_n "(cached) " >&6
28762 ac_cv_guild_program_name
="`"${with_guile}" --variable guild "${guile_version}"`"
28764 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
28765 # the 'guild' and 'bindir' variables. In that case, try to guess
28766 # what the program name is, at the risk of getting it wrong if
28767 # Guile was configured with '--program-suffix' or similar.
28768 if test "x$ac_cv_guild_program_name" = "x"; then
28769 guile_exec_prefix
="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
28770 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
28774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
28775 $as_echo "$ac_cv_guild_program_name" >&6; }
28777 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
28778 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
28781 GUILD
="$ac_cv_guild_program_name"
28787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
28788 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
28789 if ${ac_cv_guild_program_name+:} false
; then :
28790 $as_echo_n "(cached) " >&6
28792 ac_cv_guild_program_name
="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
28794 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
28795 # the 'guild' and 'bindir' variables. In that case, try to guess
28796 # what the program name is, at the risk of getting it wrong if
28797 # Guile was configured with '--program-suffix' or similar.
28798 if test "x$ac_cv_guild_program_name" = "x"; then
28799 guile_exec_prefix
="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
28800 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
28804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
28805 $as_echo "$ac_cv_guild_program_name" >&6; }
28807 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
28808 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
28811 GUILD
="$ac_cv_guild_program_name"
28818 if test "$cross_compiling" = no
; then
28821 GUILD_TARGET_FLAG
="--target=$host"
28827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
28828 $as_echo_n "checking whether guild supports this host... " >&6; }
28829 if ${ac_cv_guild_ok+:} false
; then :
28830 $as_echo_n "(cached) " >&6
28832 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
28833 if "$ac_cv_guild_program_name" compile
$GUILD_TARGET_FLAG -o conftest.go
"$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
28839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
28840 $as_echo "$ac_cv_guild_ok" >&6; }
28842 if test "$ac_cv_guild_ok" = no
; then
28844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
28845 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
28849 if test "${have_libguile}" != no
; then
28851 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
28853 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
28854 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
28855 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
28856 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
28857 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
28860 save_CPPFLAGS
="$CPPFLAGS"
28862 CPPFLAGS
="$GUILE_CPPFLAGS"
28863 for ac_func
in scm_new_smob
28865 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
28866 if test "x$ac_cv_func_scm_new_smob" = xyes
; then :
28867 cat >>confdefs.h
<<_ACEOF
28868 #define HAVE_SCM_NEW_SMOB 1
28875 CPPFLAGS
="$save_CPPFLAGS"
28877 # Even if Guile support is not compiled in, we need to have these files
28879 CONFIG_OBS
="$CONFIG_OBS guile/guile.o"
28880 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
28884 if test "${have_libguile}" != no
; then
28886 HAVE_GUILE_FALSE
='#'
28888 HAVE_GUILE_TRUE
='#'
28893 # ---------------------------- #
28894 # Check for source highlight. #
28895 # ---------------------------- #
28900 # Check whether --enable-source-highlight was given.
28901 if test "${enable_source_highlight+set}" = set; then :
28902 enableval
=$enable_source_highlight;
28907 as_fn_error $?
"bad value $enableval for --enable-source-highlight" "$LINENO" 5
28912 enable_source_highlight
=auto
28916 if test "${enable_source_highlight}" != "no"; then
28917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the source-highlight library" >&5
28918 $as_echo_n "checking for the source-highlight library... " >&6; }
28919 if test "${pkg_config_prog_path}" = "missing"; then
28920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - pkg-config not found" >&5
28921 $as_echo "no - pkg-config not found" >&6; }
28922 if test "${enable_source_highlight}" = "yes"; then
28923 as_fn_error $?
"pkg-config was not found in your system" "$LINENO" 5
28926 if ${pkg_config_prog_path} --exists source-highlight
; then
28929 as_fn_error $?
"source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5
28933 srchigh_pkg_cflags
=`${pkg_config_prog_path} --cflags source-highlight`
28934 srchigh_pkg_libs
=`${pkg_config_prog_path} --libs source-highlight`
28936 # Now that we have found a source-highlight library, check if we can use
28937 # it. In particular, we're trying to detect the situation that the
28938 # library is using the new libstdc++ library abi ( see
28939 # https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html )
28940 # while the compiler being used to compile gdb is using the old abi.
28941 # Such a situation will result in an undefined reference to
28942 # srchilite::SourceHighlight::SourceHighlight(std::string const&).
28943 # This situation can occur for instance when using a source highlight
28944 # library compiled with g++ 7.5.0 while building gdb with g++ 4.8.5.
28946 ac_cpp
='$CXXCPP $CPPFLAGS'
28947 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28948 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28949 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
28951 save_CXXFLAGS
="$CXXFLAGS"
28953 CXXFLAGS
="$CXXFLAGS $srchigh_pkg_cflags"
28954 LIBS
="$LIBS $srchigh_pkg_libs"
28955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28956 /* end confdefs.h. */
28957 #include <srchilite/sourcehighlight.h>
28961 std::string outlang = "esc.outlang";
28962 new srchilite::SourceHighlight (outlang);
28968 if ac_fn_cxx_try_link
"$LINENO"; then :
28969 have_usable_source_highlight
=yes
28971 have_usable_source_highlight
=no
28974 rm -f core conftest.err conftest.
$ac_objext \
28975 conftest
$ac_exeext conftest.
$ac_ext
28976 CXXFLAGS
="$save_CXXFLAGS"
28979 ac_cpp
='$CPP $CPPFLAGS'
28980 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28981 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28982 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
28985 if test "${have_usable_source_highlight}" = "yes"; then
28987 $as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h
28989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28990 $as_echo "yes" >&6; }
28991 SRCHIGH_CFLAGS
="$srchigh_pkg_cflags"
28992 SRCHIGH_LIBS
="$srchigh_pkg_libs"
28994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28995 $as_echo "no" >&6; }
28996 if test "${enable_source_highlight}" = "yes"; then
28997 as_fn_error $?
"source-highlight in your system could not be used" "$LINENO" 5
29001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29002 $as_echo "no" >&6; }
29003 if test "${enable_source_highlight}" = "yes"; then
29004 as_fn_error $?
"source-highlight was not found in your system" "$LINENO" 5
29012 # ------------------------- #
29013 # Checks for header files. #
29014 # ------------------------- #
29016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
29017 $as_echo_n "checking for ANSI C header files... " >&6; }
29018 if ${ac_cv_header_stdc+:} false
; then :
29019 $as_echo_n "(cached) " >&6
29021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29022 /* end confdefs.h. */
29023 #include <stdlib.h>
29024 #include <stdarg.h>
29025 #include <string.h>
29036 if ac_fn_c_try_compile
"$LINENO"; then :
29037 ac_cv_header_stdc
=yes
29039 ac_cv_header_stdc
=no
29041 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29043 if test $ac_cv_header_stdc = yes; then
29044 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29046 /* end confdefs.h. */
29047 #include <string.h>
29050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29051 $EGREP "memchr" >/dev
/null
2>&1; then :
29054 ac_cv_header_stdc
=no
29060 if test $ac_cv_header_stdc = yes; then
29061 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29063 /* end confdefs.h. */
29064 #include <stdlib.h>
29067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29068 $EGREP "free" >/dev
/null
2>&1; then :
29071 ac_cv_header_stdc
=no
29077 if test $ac_cv_header_stdc = yes; then
29078 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29079 if test "$cross_compiling" = yes; then :
29082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29083 /* end confdefs.h. */
29085 #include <stdlib.h>
29086 #if ((' ' & 0x0FF) == 0x020)
29087 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29088 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29090 # define ISLOWER(c) \
29091 (('a' <= (c) && (c) <= 'i') \
29092 || ('j' <= (c) && (c) <= 'r') \
29093 || ('s' <= (c) && (c) <= 'z'))
29094 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29097 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29102 for (i = 0; i < 256; i++)
29103 if (XOR (islower (i), ISLOWER (i))
29104 || toupper (i) != TOUPPER (i))
29109 if ac_fn_c_try_run
"$LINENO"; then :
29112 ac_cv_header_stdc
=no
29114 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
29115 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
29120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
29121 $as_echo "$ac_cv_header_stdc" >&6; }
29122 if test $ac_cv_header_stdc = yes; then
29124 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
29128 # elf_hp.h is for HP/UX 64-bit shared library support.
29129 for ac_header
in nlist.h machine
/reg.h \
29131 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
29132 sys
/procctl.h sys
/resource.h sys
/ptrace.h ptrace.h \
29133 sys
/reg.h sys
/debugreg.h \
29136 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29137 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29138 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
29139 cat >>confdefs.h
<<_ACEOF
29140 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29147 for ac_header
in sys
/user.h
29149 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
29150 # include <sys/param.h>
29154 if test "x$ac_cv_header_sys_user_h" = xyes
; then :
29155 cat >>confdefs.h
<<_ACEOF
29156 #define HAVE_SYS_USER_H 1
29164 for ac_header
in curses.h cursesX.h ncurses.h ncursesw
/ncurses.h ncurses
/ncurses.h ncurses
/term.h
29166 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29167 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29168 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
29169 cat >>confdefs.h
<<_ACEOF
29170 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29177 for ac_header
in term.h
29179 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
29180 # include <curses.h>
29184 if test "x$ac_cv_header_term_h" = xyes
; then :
29185 cat >>confdefs.h
<<_ACEOF
29186 #define HAVE_TERM_H 1
29194 for ac_header
in sys
/socket.h
29196 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
29197 if test "x$ac_cv_header_sys_socket_h" = xyes
; then :
29198 cat >>confdefs.h
<<_ACEOF
29199 #define HAVE_SYS_SOCKET_H 1
29206 for ac_header
in ws2tcpip.h
29208 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
29209 if test "x$ac_cv_header_ws2tcpip_h" = xyes
; then :
29210 cat >>confdefs.h
<<_ACEOF
29211 #define HAVE_WS2TCPIP_H 1
29218 for ac_header
in execinfo.h
29220 ac_fn_c_check_header_mongrel
"$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
29221 if test "x$ac_cv_header_execinfo_h" = xyes
; then :
29222 cat >>confdefs.h
<<_ACEOF
29223 #define HAVE_EXECINFO_H 1
29231 # ------------------------- #
29232 # Checks for declarations. #
29233 # ------------------------- #
29236 # Check for presence and size of long long.
29237 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
29238 if test "x$ac_cv_type_long_long" = xyes
; then :
29240 cat >>confdefs.h
<<_ACEOF
29241 #define HAVE_LONG_LONG 1
29244 # The cast to long int works around a bug in the HP C Compiler
29245 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29246 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29247 # This bug is HP SR number 8606223364.
29248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
29249 $as_echo_n "checking size of long long... " >&6; }
29250 if ${ac_cv_sizeof_long_long+:} false
; then :
29251 $as_echo_n "(cached) " >&6
29253 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
29256 if test "$ac_cv_type_long_long" = yes; then
29257 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29259 as_fn_error
77 "cannot compute sizeof (long long)
29260 See \`config.log' for more details" "$LINENO" 5; }
29262 ac_cv_sizeof_long_long
=0
29267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
29268 $as_echo "$ac_cv_sizeof_long_long" >&6; }
29272 cat >>confdefs.h
<<_ACEOF
29273 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
29280 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
29281 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
29282 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
29288 cat >>confdefs.h
<<_ACEOF
29289 #define HAVE_DECL_BASENAME $ac_have_decl
29291 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
29292 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
29298 cat >>confdefs.h
<<_ACEOF
29299 #define HAVE_DECL_FFS $ac_have_decl
29301 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
29302 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
29308 cat >>confdefs.h
<<_ACEOF
29309 #define HAVE_DECL_ASPRINTF $ac_have_decl
29311 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
29312 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
29318 cat >>confdefs.h
<<_ACEOF
29319 #define HAVE_DECL_VASPRINTF $ac_have_decl
29321 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
29322 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
29328 cat >>confdefs.h
<<_ACEOF
29329 #define HAVE_DECL_SNPRINTF $ac_have_decl
29331 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
29332 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
29338 cat >>confdefs.h
<<_ACEOF
29339 #define HAVE_DECL_VSNPRINTF $ac_have_decl
29342 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
29343 if test "x$ac_cv_have_decl_strtol" = xyes
; then :
29349 cat >>confdefs.h
<<_ACEOF
29350 #define HAVE_DECL_STRTOL $ac_have_decl
29352 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
29353 if test "x$ac_cv_have_decl_strtoul" = xyes
; then :
29359 cat >>confdefs.h
<<_ACEOF
29360 #define HAVE_DECL_STRTOUL $ac_have_decl
29362 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
29363 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
29369 cat >>confdefs.h
<<_ACEOF
29370 #define HAVE_DECL_STRTOLL $ac_have_decl
29372 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
29373 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
29379 cat >>confdefs.h
<<_ACEOF
29380 #define HAVE_DECL_STRTOULL $ac_have_decl
29383 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
29384 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
29390 cat >>confdefs.h
<<_ACEOF
29391 #define HAVE_DECL_STRVERSCMP $ac_have_decl
29396 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
29397 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
29403 cat >>confdefs.h
<<_ACEOF
29404 #define HAVE_DECL_SNPRINTF $ac_have_decl
29408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
29409 $as_echo_n "checking for LC_MESSAGES... " >&6; }
29410 if ${am_cv_val_LC_MESSAGES+:} false
; then :
29411 $as_echo_n "(cached) " >&6
29413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29414 /* end confdefs.h. */
29415 #include <locale.h>
29424 if ac_fn_c_try_link
"$LINENO"; then :
29425 am_cv_val_LC_MESSAGES
=yes
29427 am_cv_val_LC_MESSAGES
=no
29429 rm -f core conftest.err conftest.
$ac_objext \
29430 conftest
$ac_exeext conftest.
$ac_ext
29432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
29433 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
29434 if test $am_cv_val_LC_MESSAGES = yes; then
29436 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
29441 # ------------------ #
29442 # Checks for types. #
29443 # ------------------ #
29445 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
29446 #if HAVE_SYS_SOCKET_H
29447 # include <sys/socket.h>
29448 #elif HAVE_WS2TCPIP_H
29449 # include <ws2tcpip.h>
29453 if test "x$ac_cv_type_socklen_t" = xyes
; then :
29455 cat >>confdefs.h
<<_ACEOF
29456 #define HAVE_SOCKLEN_T 1
29463 # ------------------------------------- #
29464 # Checks for compiler characteristics. #
29465 # ------------------------------------- #
29467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
29468 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
29469 if ${ac_cv_c_const+:} false
; then :
29470 $as_echo_n "(cached) " >&6
29472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29473 /* end confdefs.h. */
29479 #ifndef __cplusplus
29480 /* Ultrix mips cc rejects this sort of thing. */
29481 typedef int charset[2];
29482 const charset cs = { 0, 0 };
29483 /* SunOS 4.1.1 cc rejects this. */
29484 char const *const *pcpcc;
29486 /* NEC SVR4.0.2 mips cc rejects this. */
29487 struct point {int x, y;};
29488 static struct point const zero = {0,0};
29489 /* AIX XL C 1.02.0.0 rejects this.
29490 It does not let you subtract one const X* pointer from another in
29491 an arm of an if-expression whose if-part is not a constant
29493 const char *g = "string";
29494 pcpcc = &g + (g ? g-g : 0);
29495 /* HPUX 7.0 cc rejects these. */
29497 ppc = (char**) pcpcc;
29498 pcpcc = (char const *const *) ppc;
29499 { /* SCO 3.2v4 cc rejects this sort of thing. */
29502 char const *s = 0 ? (char *) 0 : (char const *) 0;
29507 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
29508 int x[] = {25, 17};
29509 const int *foo = &x[0];
29512 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
29513 typedef const int *iptr;
29517 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
29518 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
29519 struct s { int j; const int *ap[3]; } bx;
29520 struct s *b = &bx; b->j = 5;
29522 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
29523 const int foo = 10;
29524 if (!foo) return 0;
29526 return !cs[0] && !zero.x;
29533 if ac_fn_c_try_compile
"$LINENO"; then :
29538 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
29541 $as_echo "$ac_cv_c_const" >&6; }
29542 if test $ac_cv_c_const = no
; then
29544 $as_echo "#define const /**/" >>confdefs.h
29548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
29549 $as_echo_n "checking for inline... " >&6; }
29550 if ${ac_cv_c_inline+:} false
; then :
29551 $as_echo_n "(cached) " >&6
29554 for ac_kw
in inline __inline__ __inline
; do
29555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29556 /* end confdefs.h. */
29557 #ifndef __cplusplus
29559 static $ac_kw foo_t static_foo () {return 0; }
29560 $ac_kw foo_t foo () {return 0; }
29564 if ac_fn_c_try_compile
"$LINENO"; then :
29565 ac_cv_c_inline
=$ac_kw
29567 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29568 test "$ac_cv_c_inline" != no
&& break
29572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
29573 $as_echo "$ac_cv_c_inline" >&6; }
29575 case $ac_cv_c_inline in
29578 case $ac_cv_c_inline in
29580 *) ac_val
=$ac_cv_c_inline;;
29582 cat >>confdefs.h
<<_ACEOF
29583 #ifndef __cplusplus
29584 #define inline $ac_val
29590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
29591 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
29592 if ${ac_cv_c_bigendian+:} false
; then :
29593 $as_echo_n "(cached) " >&6
29595 ac_cv_c_bigendian
=unknown
29596 # See if we're dealing with a universal compiler.
29597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29598 /* end confdefs.h. */
29599 #ifndef __APPLE_CC__
29600 not a universal capable compiler
29605 if ac_fn_c_try_compile
"$LINENO"; then :
29607 # Check for potential -arch flags. It is not universal unless
29608 # there are at least two -arch flags with different values.
29611 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
29612 if test -n "$ac_prev"; then
29614 i?
86 | x86_64 | ppc | ppc64
)
29615 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
29618 ac_cv_c_bigendian
=universal
29624 elif test "x$ac_word" = "x-arch"; then
29629 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29630 if test $ac_cv_c_bigendian = unknown
; then
29631 # See if sys/param.h defines the BYTE_ORDER macro.
29632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29633 /* end confdefs.h. */
29634 #include <sys/types.h>
29635 #include <sys/param.h>
29640 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
29641 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
29643 bogus endian macros
29650 if ac_fn_c_try_compile
"$LINENO"; then :
29651 # It does; now see whether it defined to BIG_ENDIAN or not.
29652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29653 /* end confdefs.h. */
29654 #include <sys/types.h>
29655 #include <sys/param.h>
29660 #if BYTE_ORDER != BIG_ENDIAN
29668 if ac_fn_c_try_compile
"$LINENO"; then :
29669 ac_cv_c_bigendian
=yes
29671 ac_cv_c_bigendian
=no
29673 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29675 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29677 if test $ac_cv_c_bigendian = unknown
; then
29678 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
29679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29680 /* end confdefs.h. */
29681 #include <limits.h>
29686 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
29687 bogus endian macros
29694 if ac_fn_c_try_compile
"$LINENO"; then :
29695 # It does; now see whether it defined to _BIG_ENDIAN or not.
29696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29697 /* end confdefs.h. */
29698 #include <limits.h>
29703 #ifndef _BIG_ENDIAN
29711 if ac_fn_c_try_compile
"$LINENO"; then :
29712 ac_cv_c_bigendian
=yes
29714 ac_cv_c_bigendian
=no
29716 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29718 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29720 if test $ac_cv_c_bigendian = unknown
; then
29721 # Compile a test program.
29722 if test "$cross_compiling" = yes; then :
29723 # Try to guess by grepping values from an object file.
29724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29725 /* end confdefs.h. */
29726 short int ascii_mm[] =
29727 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
29728 short int ascii_ii[] =
29729 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
29730 int use_ascii (int i) {
29731 return ascii_mm[i] + ascii_ii[i];
29733 short int ebcdic_ii[] =
29734 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
29735 short int ebcdic_mm[] =
29736 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
29737 int use_ebcdic (int i) {
29738 return ebcdic_mm[i] + ebcdic_ii[i];
29745 return use_ascii (foo) == use_ebcdic (foo);
29750 if ac_fn_c_try_compile
"$LINENO"; then :
29751 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
29752 ac_cv_c_bigendian
=yes
29754 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
29755 if test "$ac_cv_c_bigendian" = unknown
; then
29756 ac_cv_c_bigendian
=no
29758 # finding both strings is unlikely to happen, but who knows?
29759 ac_cv_c_bigendian
=unknown
29763 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29766 /* end confdefs.h. */
29767 $ac_includes_default
29772 /* Are we little or big endian? From Harbison&Steele. */
29776 char c[sizeof (long int)];
29779 return u.c[sizeof (long int) - 1] == 1;
29785 if ac_fn_c_try_run
"$LINENO"; then :
29786 ac_cv_c_bigendian
=no
29788 ac_cv_c_bigendian
=yes
29790 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
29791 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
29796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
29797 $as_echo "$ac_cv_c_bigendian" >&6; }
29798 case $ac_cv_c_bigendian in #(
29800 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
29806 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
29810 as_fn_error $?
"unknown endianness
29811 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
29815 # ------------------------------ #
29816 # Checks for library functions. #
29817 # ------------------------------ #
29819 for ac_func
in getuid getgid \
29820 pread pread64 pwrite resize_term \
29823 ttrace wresize setlocale iconvlist libiconvlist btowc \
29824 setrlimit getrlimit posix_madvise waitpid \
29827 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29828 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
29829 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
29830 cat >>confdefs.h
<<_ACEOF
29831 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
29839 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
29840 if ${am_cv_langinfo_codeset+:} false
; then :
29841 $as_echo_n "(cached) " >&6
29843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29844 /* end confdefs.h. */
29845 #include <langinfo.h>
29849 char* cs = nl_langinfo(CODESET);
29854 if ac_fn_c_try_link
"$LINENO"; then :
29855 am_cv_langinfo_codeset
=yes
29857 am_cv_langinfo_codeset
=no
29859 rm -f core conftest.err conftest.
$ac_objext \
29860 conftest
$ac_exeext conftest.
$ac_ext
29863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
29864 $as_echo "$am_cv_langinfo_codeset" >&6; }
29865 if test $am_cv_langinfo_codeset = yes; then
29867 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
29872 # Check the return and argument types of ptrace.
29875 for ac_header
in sys
/ptrace.h ptrace.h
29877 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29878 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29879 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
29880 cat >>confdefs.h
<<_ACEOF
29881 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29889 gdb_ptrace_headers
='
29890 #include <sys/types.h>
29891 #if HAVE_SYS_PTRACE_H
29892 # include <sys/ptrace.h>
29895 # include <unistd.h>
29899 # Check return type. Varargs (used on GNU/Linux) conflict with the
29900 # empty argument list, so check for that explicitly.
29901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
29902 $as_echo_n "checking return type of ptrace... " >&6; }
29903 if ${gdb_cv_func_ptrace_ret+:} false
; then :
29904 $as_echo_n "(cached) " >&6
29906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29907 /* end confdefs.h. */
29908 Â $gdb_ptrace_headers
29912 extern long ptrace (enum __ptrace_request, ...);
29918 if ac_fn_c_try_compile
"$LINENO"; then :
29919 gdb_cv_func_ptrace_ret
='long'
29921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29922 /* end confdefs.h. */
29923 $gdb_ptrace_headers
29927 extern int ptrace ();
29933 if ac_fn_c_try_compile
"$LINENO"; then :
29934 gdb_cv_func_ptrace_ret
='int'
29936 gdb_cv_func_ptrace_ret
='long'
29939 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
29946 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
29949 cat >>confdefs.h
<<_ACEOF
29950 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
29954 # Check argument types.
29955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
29956 $as_echo_n "checking types of arguments for ptrace... " >&6; }
29957 if ${gdb_cv_func_ptrace_args+:} false
; then :
29958 $as_echo_n "(cached) " >&6
29960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29961 /* end confdefs.h. */
29962 $gdb_ptrace_headers
29966 extern long ptrace (enum __ptrace_request, ...);
29972 if ac_fn_c_try_compile
"$LINENO"; then :
29973 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
29975 for gdb_arg1
in 'int' 'long'; do
29976 for gdb_arg2
in 'pid_t' 'int' 'long'; do
29977 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
29978 for gdb_arg4
in 'int' 'long' 'void *'; do
29979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29980 /* end confdefs.h. */
29981 $gdb_ptrace_headers
29985 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
29991 if ac_fn_c_try_compile
"$LINENO"; then :
29992 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
29996 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29998 for gdb_arg5
in 'int *' 'int' 'long'; do
29999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30000 /* end confdefs.h. */
30001 $gdb_ptrace_headers
30005 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
30011 if ac_fn_c_try_compile
"$LINENO"; then :
30012 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
30016 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30022 # Provide a safe default value.
30023 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
30026 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
30030 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
30032 ac_save_IFS
=$IFS; IFS
=','
30033 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
30037 cat >>confdefs.h
<<_ACEOF
30038 #define PTRACE_TYPE_ARG1 $1
30042 cat >>confdefs.h
<<_ACEOF
30043 #define PTRACE_TYPE_ARG3 $3
30047 cat >>confdefs.h
<<_ACEOF
30048 #define PTRACE_TYPE_ARG4 $4
30051 if test -n "$5"; then
30053 cat >>confdefs.h
<<_ACEOF
30054 #define PTRACE_TYPE_ARG5 $5
30060 if test "$cross_compiling" = no
; then
30061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
30062 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
30063 if ${ac_cv_func_setpgrp_void+:} false
; then :
30064 $as_echo_n "(cached) " >&6
30066 if test "$cross_compiling" = yes; then :
30067 as_fn_error $?
"cannot check setpgrp when cross compiling" "$LINENO" 5
30069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30070 /* end confdefs.h. */
30071 $ac_includes_default
30075 /* If this system has a BSD-style setpgrp which takes arguments,
30076 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
30077 exit successfully. */
30078 return setpgrp (1,1) != -1;
30083 if ac_fn_c_try_run
"$LINENO"; then :
30084 ac_cv_func_setpgrp_void
=no
30086 ac_cv_func_setpgrp_void
=yes
30088 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
30089 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
30093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
30094 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
30095 if test $ac_cv_func_setpgrp_void = yes; then
30097 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
30102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
30103 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
30104 if ${ac_cv_func_setpgrp_void+:} false
; then :
30105 $as_echo_n "(cached) " >&6
30107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30108 /* end confdefs.h. */
30109 #include <unistd.h>
30113 if (setpgrp(1,1) == -1)
30122 if ac_fn_c_try_compile
"$LINENO"; then :
30123 ac_cv_func_setpgrp_void
=no
30125 ac_cv_func_setpgrp_void
=yes
30128 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
30132 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
30133 if test "$ac_cv_func_setpgrp_void" = yes; then
30134 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
30139 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
30140 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
30141 #include <sys/proc.h>
30144 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes
; then :
30146 cat >>confdefs.h
<<_ACEOF
30147 #define HAVE_STRUCT_THREAD_TD_PCB 1
30154 # See if <sys/lwp.h> defines `struct lwp`.
30155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
30156 $as_echo_n "checking for struct lwp... " >&6; }
30157 if ${gdb_cv_struct_lwp+:} false
; then :
30158 $as_echo_n "(cached) " >&6
30160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30161 /* end confdefs.h. */
30162 #include <sys/param.h>
30164 #include <sys/lwp.h>
30174 if ac_fn_c_try_compile
"$LINENO"; then :
30175 gdb_cv_struct_lwp
=yes
30177 gdb_cv_struct_lwp
=no
30180 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
30184 $as_echo "$gdb_cv_struct_lwp" >&6; }
30185 if test "$gdb_cv_struct_lwp" = yes; then
30187 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
30191 # See if <machine/reg.h> degines `struct reg'.
30192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
30193 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
30194 if ${gdb_cv_struct_reg+:} false
; then :
30195 $as_echo_n "(cached) " >&6
30197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30198 /* end confdefs.h. */
30199 #include <sys/types.h>
30200 #include <machine/reg.h>
30210 if ac_fn_c_try_compile
"$LINENO"; then :
30211 gdb_cv_struct_reg
=yes
30213 gdb_cv_struct_reg
=no
30216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
30220 $as_echo "$gdb_cv_struct_reg" >&6; }
30221 if test "$gdb_cv_struct_reg" = yes; then
30223 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
30227 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
30228 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
30229 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
30230 #include <machine/reg.h>
30232 if test "x$ac_cv_member_struct_reg_r_fs" = xyes
; then :
30234 cat >>confdefs.h
<<_ACEOF
30235 #define HAVE_STRUCT_REG_R_FS 1
30240 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
30241 #include <machine/reg.h>
30243 if test "x$ac_cv_member_struct_reg_r_gs" = xyes
; then :
30245 cat >>confdefs.h
<<_ACEOF
30246 #define HAVE_STRUCT_REG_R_GS 1
30253 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
30254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
30255 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
30256 if ${gdb_cv_have_ptrace_getregs+:} false
; then :
30257 $as_echo_n "(cached) " >&6
30259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30260 /* end confdefs.h. */
30261 #include <sys/ptrace.h>
30270 if ac_fn_c_try_compile
"$LINENO"; then :
30271 gdb_cv_have_ptrace_getregs
=yes
30273 gdb_cv_have_ptrace_getregs
=no
30276 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
30281 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
30282 if test "$gdb_cv_have_ptrace_getregs" = yes; then
30284 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
30288 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
30289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
30290 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
30291 if ${gdb_cv_have_ptrace_getfpxregs+:} false
; then :
30292 $as_echo_n "(cached) " >&6
30294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30295 /* end confdefs.h. */
30296 #include <sys/ptrace.h>
30305 if ac_fn_c_try_compile
"$LINENO"; then :
30306 gdb_cv_have_ptrace_getfpxregs
=yes
30308 gdb_cv_have_ptrace_getfpxregs
=no
30311 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
30316 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
30317 if test "$gdb_cv_have_ptrace_getfpxregs" = yes; then
30319 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
30323 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
30324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
30325 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
30326 if ${gdb_cv_have_pt_getdbregs+:} false
; then :
30327 $as_echo_n "(cached) " >&6
30329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30330 /* end confdefs.h. */
30331 #include <sys/types.h>
30332 #include <sys/ptrace.h>
30342 if ac_fn_c_try_compile
"$LINENO"; then :
30343 gdb_cv_have_pt_getdbregs
=yes
30345 gdb_cv_have_pt_getdbregs
=no
30348 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
30353 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
30354 if test "$gdb_cv_have_pt_getdbregs" = yes; then
30356 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
30360 # See if <sys/ptrace.h> supports LWP names on FreeBSD
30361 # Older FreeBSD versions don't have the pl_tdname member of
30362 # `struct ptrace_lwpinfo'.
30363 ac_fn_c_check_member
"$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
30365 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes
; then :
30367 cat >>confdefs.h
<<_ACEOF
30368 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
30375 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
30376 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
30378 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>
30380 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes
; then :
30382 cat >>confdefs.h
<<_ACEOF
30383 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
30390 # Check if the compiler supports the `long long' type.
30392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
30393 $as_echo_n "checking for long long support in compiler... " >&6; }
30394 if ${gdb_cv_c_long_long+:} false
; then :
30395 $as_echo_n "(cached) " >&6
30397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30398 /* end confdefs.h. */
30399 extern long long foo;
30403 switch (foo & 2) { case 0: return 1; }
30408 if ac_fn_c_try_compile
"$LINENO"; then :
30409 gdb_cv_c_long_long
=yes
30411 gdb_cv_c_long_long
=no
30413 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
30416 $as_echo "$gdb_cv_c_long_long" >&6; }
30417 if test "$gdb_cv_c_long_long" != yes; then
30418 # libdecnumber requires long long.
30419 as_fn_error $?
"Compiler must support long long for GDB." "$LINENO" 5
30422 # Check if the compiler and runtime support printing decfloats.
30424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
30425 $as_echo_n "checking for decfloat support in printf... " >&6; }
30426 if ${gdb_cv_printf_has_decfloat+:} false
; then :
30427 $as_echo_n "(cached) " >&6
30429 if test "$cross_compiling" = yes; then :
30430 gdb_cv_printf_has_decfloat
=no
30432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30433 /* end confdefs.h. */
30434 $ac_includes_default
30439 _Decimal32 d32 = 1.2345df;
30440 _Decimal64 d64 = 1.2345dd;
30441 _Decimal128 d128 = 1.2345dl;
30442 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
30443 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
30448 if ac_fn_c_try_run
"$LINENO"; then :
30449 gdb_cv_printf_has_decfloat
=yes
30451 gdb_cv_printf_has_decfloat
=no
30453 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
30454 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
30458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
30459 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
30460 if test "$gdb_cv_printf_has_decfloat" = yes; then
30462 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
30466 # Check if the compiler supports the `long double' type. We can't use
30467 # AC_C_LONG_DOUBLE because that one does additional checks on the
30468 # constants defined in <float.h> that fail on some systems,
30469 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
30471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
30472 $as_echo_n "checking for long double support in compiler... " >&6; }
30473 if ${gdb_cv_c_long_double+:} false
; then :
30474 $as_echo_n "(cached) " >&6
30476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30477 /* end confdefs.h. */
30480 if ac_fn_c_try_compile
"$LINENO"; then :
30481 gdb_cv_c_long_double
=yes
30483 gdb_cv_c_long_double
=no
30485 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
30488 $as_echo "$gdb_cv_c_long_double" >&6; }
30489 if test "$gdb_cv_c_long_double" = yes; then
30491 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
30495 # Check if the compiler and runtime support printing long doubles.
30497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
30498 $as_echo_n "checking for long double support in printf... " >&6; }
30499 if ${gdb_cv_printf_has_long_double+:} false
; then :
30500 $as_echo_n "(cached) " >&6
30502 if test "$cross_compiling" = yes; then :
30503 gdb_cv_printf_has_long_double
=no
30505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30506 /* end confdefs.h. */
30507 $ac_includes_default
30512 long double f = 3.141592653;
30513 sprintf (buf, "%Lg", f);
30514 return (strncmp ("3.14159", buf, 7));
30519 if ac_fn_c_try_run
"$LINENO"; then :
30520 gdb_cv_printf_has_long_double
=yes
30522 gdb_cv_printf_has_long_double
=no
30524 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
30525 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
30529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
30530 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
30531 if test "$gdb_cv_printf_has_long_double" = yes; then
30533 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
30537 # Check if the compiler and runtime support scanning long doubles.
30539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
30540 $as_echo_n "checking for long double support in scanf... " >&6; }
30541 if ${gdb_cv_scanf_has_long_double+:} false
; then :
30542 $as_echo_n "(cached) " >&6
30544 if test "$cross_compiling" = yes; then :
30545 gdb_cv_scanf_has_long_double
=no
30547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30548 /* end confdefs.h. */
30553 char *buf = "3.141592653";
30555 sscanf (buf, "%Lg", &f);
30556 return !(f > 3.14159 && f < 3.14160);
30561 if ac_fn_c_try_run
"$LINENO"; then :
30562 gdb_cv_scanf_has_long_double
=yes
30564 gdb_cv_scanf_has_long_double
=no
30566 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
30567 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
30571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
30572 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
30573 if test "$gdb_cv_scanf_has_long_double" = yes; then
30575 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
30581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
30582 $as_echo_n "checking for -bbigtoc option... " >&6; }
30583 if ${gdb_cv_bigtoc+:} false
; then :
30584 $as_echo_n "(cached) " >&6
30586 SAVE_LDFLAGS
=$LDFLAGS
30589 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
30590 *) gdb_cv_bigtoc
=-bbigtoc ;;
30593 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
30594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30595 /* end confdefs.h. */
30605 if ac_fn_c_try_link
"$LINENO"; then :
30611 rm -f core conftest.err conftest.
$ac_objext \
30612 conftest
$ac_exeext conftest.
$ac_ext
30613 LDFLAGS
="${SAVE_LDFLAGS}"
30616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
30617 $as_echo "$gdb_cv_bigtoc" >&6; }
30618 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
30622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
30623 $as_echo_n "checking for the dynamic export flag... " >&6; }
30625 if test "${gdb_native}" = yes; then
30626 # The dynamically loaded libthread_db needs access to symbols in the gdb
30627 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
30628 # may not be supported there.
30629 old_LDFLAGS
="$LDFLAGS"
30630 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
30631 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
30632 LDFLAGS
="$LDFLAGS $RDYNAMIC"
30633 if test "${have_libpython}" = no
; then
30634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30635 /* end confdefs.h. */
30645 if ac_fn_c_try_link
"$LINENO"; then :
30648 rm -f core conftest.err conftest.
$ac_objext \
30649 conftest
$ac_exeext conftest.
$ac_ext
30651 # Workaround http://bugs.python.org/issue4434 where static
30652 # libpythonX.Y.a would get its symbols required for
30653 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
30654 # Problem does not happen for the recommended libpythonX.Y.so linkage.
30656 # Note the workaround for Python
30657 # http://bugs.python.org/issue10112 earlier has removed
30658 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
30659 # here too, as otherwise it'd make this -Wl,--dynamic-list test
30661 old_CFLAGS
="$CFLAGS"
30662 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
30664 LIBS
="$LIBS $PYTHON_LIBS"
30665 old_CPPFLAGS
="$CPPFLAGS"
30666 CPPFLAGS
="$CPPFLAGS $PYTHON_CPPFLAGS"
30667 if test "$cross_compiling" = yes; then :
30670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30671 /* end confdefs.h. */
30672 #include "Python.h"
30678 err = PyRun_SimpleString ("import ctypes\n");
30680 return err == 0 ? 0 : 1;
30685 if ac_fn_c_try_run
"$LINENO"; then :
30688 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
30689 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
30693 CFLAGS
="$old_CFLAGS"
30694 CPPFLAGS
="$old_CPPFLAGS"
30696 LDFLAGS
="$old_LDFLAGS"
30698 if $dynamic_list; then
30699 found
="-Wl,--dynamic-list"
30700 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
30703 RDYNAMIC
="-rdynamic"
30706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
30707 $as_echo "$found" >&6; }
30709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether execinfo.h backtrace is available" >&5
30710 $as_echo_n "checking whether execinfo.h backtrace is available... " >&6; }
30711 if ${gdb_cv_execinfo_backtrace+:} false
; then :
30712 $as_echo_n "(cached) " >&6
30714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30715 /* end confdefs.h. */
30717 #include <execinfo.h>
30725 f = backtrace (b, 2);
30726 backtrace_symbols_fd (b, f, 2);
30732 if ac_fn_c_try_link
"$LINENO"; then :
30733 gdb_cv_execinfo_backtrace
=yes
30735 gdb_cv_execinfo_backtrace
=no
30737 rm -f core conftest.err conftest.
$ac_objext \
30738 conftest
$ac_exeext conftest.
$ac_ext
30740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_execinfo_backtrace" >&5
30741 $as_echo "$gdb_cv_execinfo_backtrace" >&6; }
30742 if test "$gdb_cv_execinfo_backtrace" = yes; then
30744 $as_echo "#define HAVE_EXECINFO_BACKTRACE 1" >>confdefs.h
30749 if test "${build}" = "${host}" -a "${host}" = "${target}" ; then
30752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
30753 $as_echo_n "checking for AiX thread debugging library... " >&6; }
30754 if ${gdb_cv_have_aix_thread_debug+:} false
; then :
30755 $as_echo_n "(cached) " >&6
30757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30758 /* end confdefs.h. */
30759 #include <sys/pthdebug.h>
30763 #ifndef PTHDB_VERSION_3
30771 if ac_fn_c_try_compile
"$LINENO"; then :
30772 gdb_cv_have_aix_thread_debug
=yes
30774 gdb_cv_have_aix_thread_debug
=no
30777 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
30782 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
30783 if test "$gdb_cv_have_aix_thread_debug" = yes; then
30784 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
30785 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
30786 LIBS
="$LIBS -lpthdebug"
30788 # Older versions of AIX do not provide the declaration for
30789 # the getthrds function (it appears that it was introduced
30791 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
30793 if test "x$ac_cv_have_decl_getthrds" = xyes
; then :
30799 cat >>confdefs.h
<<_ACEOF
30800 #define HAVE_DECL_GETTHRDS $ac_have_decl
30809 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
30810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
30811 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
30812 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false
; then :
30813 $as_echo_n "(cached) " >&6
30815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30816 /* end confdefs.h. */
30817 #include <thread_db.h>
30821 int i = TD_NOTALLOC;
30827 if ac_fn_c_try_compile
"$LINENO"; then :
30828 gdb_cv_thread_db_h_has_td_notalloc
=yes
30830 gdb_cv_thread_db_h_has_td_notalloc
=no
30833 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
30837 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
30839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
30840 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
30841 if ${gdb_cv_thread_db_h_has_td_version+:} false
; then :
30842 $as_echo_n "(cached) " >&6
30844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30845 /* end confdefs.h. */
30846 #include <thread_db.h>
30850 int i = TD_VERSION;
30856 if ac_fn_c_try_compile
"$LINENO"; then :
30857 gdb_cv_thread_db_h_has_td_version
=yes
30859 gdb_cv_thread_db_h_has_td_version
=no
30862 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
30866 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
30868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
30869 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
30870 if ${gdb_cv_thread_db_h_has_td_notls+:} false
; then :
30871 $as_echo_n "(cached) " >&6
30873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30874 /* end confdefs.h. */
30875 #include <thread_db.h>
30885 if ac_fn_c_try_compile
"$LINENO"; then :
30886 gdb_cv_thread_db_h_has_td_notls
=yes
30888 gdb_cv_thread_db_h_has_td_notls
=no
30891 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
30895 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
30897 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
30899 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
30902 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
30904 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
30907 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
30909 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
30922 cat >>confdefs.h
<<_ACEOF
30923 #define GDBINIT "$gdbinit"
30928 cat >>confdefs.h
<<_ACEOF
30929 #define GDBEARLYINIT ".gdbearlyinit"
30934 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
30935 # except that the argument to --with-sysroot is optional.
30936 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
30937 if test "x$with_sysroot" = xyes
; then
30938 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
30941 # Check whether --with-sysroot was given.
30942 if test "${with_sysroot+set}" = set; then :
30943 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
30945 TARGET_SYSTEM_ROOT
=
30949 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
30950 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
30951 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
30952 ac_define_dir
=`eval echo $ac_define_dir`
30954 cat >>confdefs.h
<<_ACEOF
30955 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
30961 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
30962 if test "x$prefix" = xNONE
; then
30963 test_prefix
=/usr
/local
30965 test_prefix
=$prefix
30968 test_prefix
=$exec_prefix
30971 case ${ac_define_dir} in
30972 "${test_prefix}"|
"${test_prefix}/"*|\
30973 '${exec_prefix}'|
'${exec_prefix}/'*)
30978 cat >>confdefs.h
<<_ACEOF
30979 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
30986 # Check whether --with-system-gdbinit was given.
30987 if test "${with_system_gdbinit+set}" = set; then :
30988 withval
=$with_system_gdbinit;
30989 SYSTEM_GDBINIT
=$withval
30995 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
30996 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
30997 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
30998 ac_define_dir
=`eval echo $ac_define_dir`
31000 cat >>confdefs.h
<<_ACEOF
31001 #define SYSTEM_GDBINIT "$ac_define_dir"
31007 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
31008 if test "x$prefix" = xNONE
; then
31009 test_prefix
=/usr
/local
31011 test_prefix
=$prefix
31014 test_prefix
=$exec_prefix
31017 case ${ac_define_dir} in
31018 "${test_prefix}"|
"${test_prefix}/"*|\
31019 '${exec_prefix}'|
'${exec_prefix}/'*)
31024 cat >>confdefs.h
<<_ACEOF
31025 #define SYSTEM_GDBINIT_RELOCATABLE $value
31032 # Check whether --with-system-gdbinit-dir was given.
31033 if test "${with_system_gdbinit_dir+set}" = set; then :
31034 withval
=$with_system_gdbinit_dir;
31035 SYSTEM_GDBINIT_DIR
=$withval
31037 SYSTEM_GDBINIT_DIR
=
31041 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
31042 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
31043 ac_define_dir
=`eval echo $SYSTEM_GDBINIT_DIR`
31044 ac_define_dir
=`eval echo $ac_define_dir`
31046 cat >>confdefs.h
<<_ACEOF
31047 #define SYSTEM_GDBINIT_DIR "$ac_define_dir"
31053 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
31054 if test "x$prefix" = xNONE
; then
31055 test_prefix
=/usr
/local
31057 test_prefix
=$prefix
31060 test_prefix
=$exec_prefix
31063 case ${ac_define_dir} in
31064 "${test_prefix}"|
"${test_prefix}/"*|\
31065 '${exec_prefix}'|
'${exec_prefix}/'*)
31070 cat >>confdefs.h
<<_ACEOF
31071 #define SYSTEM_GDBINIT_DIR_RELOCATABLE $value
31079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the compiler type" >&5
31080 $as_echo_n "checking the compiler type... " >&6; }
31081 if ${gdb_cv_compiler_type+:} false
; then :
31082 $as_echo_n "(cached) " >&6
31084 gdb_cv_compiler_type
=unknown
31085 if test "$gdb_cv_compiler_type" = unknown
; then
31086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31087 /* end confdefs.h. */
31093 #if !defined __GNUC__ || defined __clang__
31101 if ac_fn_c_try_compile
"$LINENO"; then :
31102 gdb_cv_compiler_type
=gcc
31104 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31107 if test "$gdb_cv_compiler_type" = unknown
; then
31108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31109 /* end confdefs.h. */
31123 if ac_fn_c_try_compile
"$LINENO"; then :
31124 gdb_cv_compiler_type
=clang
31126 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_compiler_type" >&5
31131 $as_echo "$gdb_cv_compiler_type" >&6; }
31133 GDB_COMPILER_TYPE
="$gdb_cv_compiler_type"
31136 # Check whether --enable-werror was given.
31137 if test "${enable_werror+set}" = set; then :
31138 enableval
=$enable_werror; case "${enableval}" in
31139 yes | y
) ERROR_ON_WARNING
="yes" ;;
31140 no | n
) ERROR_ON_WARNING
="no" ;;
31141 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
31146 # Enable -Werror by default when using gcc. Turn it off for releases.
31147 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
31148 ERROR_ON_WARNING
=yes
31152 if test "${ERROR_ON_WARNING}" = yes ; then
31153 WERROR_CFLAGS
="-Werror"
31156 # The options we'll try to enable.
31157 build_warnings
="-Wall -Wpointer-arith \
31158 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
31159 -Wno-switch -Wno-char-subscripts \
31160 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
31161 -Wno-sign-compare -Wno-error=maybe-uninitialized \
31162 -Wno-mismatched-tags \
31163 -Wno-error=deprecated-register \
31164 -Wsuggest-override \
31165 -Wimplicit-fallthrough=5 \
31166 -Wduplicated-cond \
31168 -Wdeprecated-copy \
31169 -Wdeprecated-copy-dtor \
31171 -Wmissing-declarations \
31172 -Wstrict-null-sentinel \
31175 # The -Wmissing-prototypes flag will be accepted by GCC, but results
31176 # in a warning being printed about the flag not being valid for C++,
31177 # this is something to do with using ccache, and argument ordering.
31178 if test "$GDB_COMPILER_TYPE" != gcc
; then
31179 build_warnings
="$build_warnings -Wmissing-prototypes"
31184 # Enable -Wno-format by default when using gcc on mingw since many
31185 # GCC versions complain about %I64.
31186 build_warnings
="$build_warnings -Wno-format" ;;
31188 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
31189 # doesn't understand.
31190 build_warnings
="$build_warnings -Wno-unknown-pragmas"
31191 # Solaris 11 <unistd.h> marks vfork deprecated.
31192 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
31194 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
31195 # but there's a special case for this below.
31196 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
31199 # Check whether --enable-build-warnings was given.
31200 if test "${enable_build_warnings+set}" = set; then :
31201 enableval
=$enable_build_warnings; case "${enableval}" in
31203 no
) build_warnings
="-w";;
31204 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
31205 build_warnings
="${build_warnings} ${t}";;
31206 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
31207 build_warnings
="${t} ${build_warnings}";;
31208 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
31210 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
31211 echo "Setting compiler warning flags = $build_warnings" 6>&1
31214 # Check whether --enable-gdb-build-warnings was given.
31215 if test "${enable_gdb_build_warnings+set}" = set; then :
31216 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
31218 no
) build_warnings
="-w";;
31219 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
31220 build_warnings
="${build_warnings} ${t}";;
31221 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
31222 build_warnings
="${t} ${build_warnings}";;
31223 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
31225 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
31226 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
31230 # The set of warnings supported by a C++ compiler is not the same as
31231 # of the C compiler.
31233 ac_cpp
='$CXXCPP $CPPFLAGS'
31234 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31235 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31236 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
31240 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
31242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
31243 $as_echo_n "checking compiler warning flags... " >&6; }
31244 # Separate out the -Werror flag as some files just cannot be
31245 # compiled with it enabled.
31246 for w
in ${build_warnings}; do
31247 # GCC does not complain about -Wno-unknown-warning. Invert
31248 # and test -Wunknown-warning instead.
31251 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
31252 -Wformat-nonliteral)
31253 # gcc requires -Wformat before -Wformat-nonliteral
31254 # will work, so stick them together.
31263 -Werr*) WERROR_CFLAGS
=-Werror ;;
31265 # Check whether GCC accepts it.
31266 saved_CFLAGS
="$CFLAGS"
31267 CFLAGS
="$CFLAGS -Werror $wtest"
31268 saved_CXXFLAGS
="$CXXFLAGS"
31269 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
31270 if test "x$w" = "x-Wunused-variable"; then
31271 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
31272 # fixed in GCC 4.9. This test is derived from the gdb
31273 # source code that triggered this bug in GCC.
31274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31275 /* end confdefs.h. */
31276 struct scoped_restore_base {};
31277 struct scoped_restore_tmpl : public scoped_restore_base {
31278 ~scoped_restore_tmpl() {}
31283 const scoped_restore_base &b = scoped_restore_tmpl();
31289 if ac_fn_cxx_try_compile
"$LINENO"; then :
31290 WARN_CFLAGS
="${WARN_CFLAGS} $w"
31292 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31295 /* end confdefs.h. */
31305 if ac_fn_cxx_try_compile
"$LINENO"; then :
31306 WARN_CFLAGS
="${WARN_CFLAGS} $w"
31308 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31310 CFLAGS
="$saved_CFLAGS"
31311 CXXFLAGS
="$saved_CXXFLAGS"
31314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
31315 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
31321 ac_cpp='$CPP $CPPFLAGS'
31322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31328 # Check whether --enable-ubsan was given.
31329 if test "${enable_ubsan+set}" = set; then :
31330 enableval=$enable_ubsan;
31335 if test "x
$enable_ubsan" = xauto; then
31336 if $development; then
31341 ac_cpp='$CXXCPP $CPPFLAGS'
31342 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31343 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31344 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31346 if test "x
$enable_ubsan" = xyes; then
31347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
-fsanitize=undefined is accepted
" >&5
31348 $as_echo_n "checking whether
-fsanitize=undefined is accepted...
" >&6; }
31349 saved_CXXFLAGS="$CXXFLAGS"
31350 CXXFLAGS="$CXXFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
31351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31352 /* end confdefs.h. */
31362 if ac_fn_cxx_try_link "$LINENO"; then :
31368 rm -f core conftest.err conftest.$ac_objext \
31369 conftest$ac_exeext conftest.$ac_ext
31370 CXXFLAGS="$saved_CXXFLAGS"
31371 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $enable_ubsan" >&5
31372 $as_echo "$enable_ubsan" >&6; }
31373 if test "x
$enable_ubsan" = xyes; then
31374 WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
31375 CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined
"
31379 ac_cpp='$CPP $CPPFLAGS'
31380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31386 # In the Cygwin environment, we need some additional flags.
31387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
31388 $as_echo_n "checking
for cygwin...
" >&6; }
31389 if ${gdb_cv_os_cygwin+:} false; then :
31390 $as_echo_n "(cached
) " >&6
31392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31393 /* end confdefs.h. */
31395 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
31399 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
31400 $EGREP "^lose$
" >/dev/null 2>&1; then :
31401 gdb_cv_os_cygwin=yes
31403 gdb_cv_os_cygwin=no
31408 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
31409 $as_echo "$gdb_cv_os_cygwin" >&6; }
31412 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
31414 *go32* ) SER_HARDWIRE=ser-go32.o ;;
31415 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
31416 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
31417 *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o
" ;;
31421 # libreadline needs libuser32.a in a cygwin environment
31423 if test x"$gdb_cv_os_cygwin" = xyes; then
31424 WIN32LIBS="-luser32"
31425 case "${target}" in
31426 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
31431 # The ser-tcp.c module requires sockets.
31432 # Note that WIN32APILIBS is set by GDB_AC_COMMON.
31433 WIN32LIBS="$WIN32LIBS $WIN32APILIBS"
31435 # Add ELF support to GDB, but only if BFD includes ELF support.
31438 OLD_LDFLAGS=$LDFLAGS
31441 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
31442 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
31443 # always want our bfd.
31444 CFLAGS="-I${srcdir}/..
/include
-I..
/bfd
-I${srcdir}/..
/bfd
$CFLAGS"
31445 LDFLAGS="-L..
/bfd
-L..
/libiberty
$LDFLAGS"
31446 # LTLIBINTL because we use libtool as CC below.
31447 intl="$
(echo "$LTLIBINTL" |
sed 's,\$[{(]top_builddir[)}]/,,')"
31448 LIBS="-lbfd -liberty $intl $LIBS"
31449 CC=".
/libtool
--quiet --mode=link
$CC"
31450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ELF support
in BFD
" >&5
31451 $as_echo_n "checking
for ELF support
in BFD...
" >&6; }
31452 if ${gdb_cv_var_elf+:} false; then :
31453 $as_echo_n "(cached
) " >&6
31455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31456 /* end confdefs.h. */
31457 #include <stdlib.h>
31458 #include <string.h>
31460 #include "elf-bfd.h
"
31464 return bfd_get_elf_phdr_upper_bound (NULL);
31470 if ac_fn_c_try_link "$LINENO"; then :
31476 rm -f core conftest.err conftest.$ac_objext \
31477 conftest$ac_exeext conftest.$ac_ext
31480 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_var_elf" >&5
31481 $as_echo "$gdb_cv_var_elf" >&6; }
31484 LDFLAGS=$OLD_LDFLAGS
31486 if test "$gdb_cv_var_elf" = yes; then
31487 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o \
31488 gcore-elf.o elf-none-tdep.o
"
31490 $as_echo "#define HAVE_ELF 1" >>confdefs.h
31492 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
31493 if test "$plugins" = "yes"; then
31494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
31495 $as_echo_n "checking for library containing dlopen... " >&6; }
31496 if ${ac_cv_search_dlopen+:} false
; then :
31497 $as_echo_n "(cached) " >&6
31499 ac_func_search_save_LIBS
=$LIBS
31500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31501 /* end confdefs.h. */
31503 /* Override any GCC internal prototype to avoid an error.
31504 Use char because int might match the return type of a GCC
31505 builtin and then its argument prototype would still apply. */
31518 for ac_lib
in '' dl
; do
31519 if test -z "$ac_lib"; then
31520 ac_res
="none required"
31523 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
31525 if ac_fn_c_try_link
"$LINENO"; then :
31526 ac_cv_search_dlopen
=$ac_res
31528 rm -f core conftest.err conftest.
$ac_objext \
31530 if ${ac_cv_search_dlopen+:} false
; then :
31534 if ${ac_cv_search_dlopen+:} false
; then :
31537 ac_cv_search_dlopen
=no
31539 rm conftest.
$ac_ext
31540 LIBS
=$ac_func_search_save_LIBS
31542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
31543 $as_echo "$ac_cv_search_dlopen" >&6; }
31544 ac_res
=$ac_cv_search_dlopen
31545 if test "$ac_res" != no
; then :
31546 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
31553 # Add macho support to GDB, but only if BFD includes it.
31556 OLD_LDFLAGS
=$LDFLAGS
31559 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
31560 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
31561 # always want our bfd.
31562 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
31563 LDFLAGS
="-L../bfd -L../libiberty $LDFLAGS"
31564 # LTLIBINTL because we use libtool as CC below.
31565 intl
="$(echo "$LTLIBINTL" | sed 's,\$[{(]top_builddir[)}]/,,')"
31566 LIBS
="-lbfd -liberty $intl $LIBS"
31567 CC
="./libtool --quiet --mode=link $CC"
31568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
31569 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
31570 if ${gdb_cv_var_macho+:} false
; then :
31571 $as_echo_n "(cached) " >&6
31573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31574 /* end confdefs.h. */
31575 #include <stdlib.h>
31576 #include <string.h>
31578 #include "mach-o.h"
31582 return bfd_mach_o_lookup_command (NULL, 0, NULL);
31588 if ac_fn_c_try_link
"$LINENO"; then :
31589 gdb_cv_var_macho
=yes
31591 gdb_cv_var_macho
=no
31594 rm -f core conftest.err conftest.
$ac_objext \
31595 conftest
$ac_exeext conftest.
$ac_ext
31598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
31599 $as_echo "$gdb_cv_var_macho" >&6; }
31602 LDFLAGS
=$OLD_LDFLAGS
31604 if test "$gdb_cv_var_macho" = yes; then
31605 CONFIG_OBS
="$CONFIG_OBS machoread.o"
31608 # Add any host-specific objects to GDB.
31609 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
31611 # If building on ELF, look for lzma support for embedded compressed debug info.
31612 if test "$gdb_cv_var_elf" = yes; then
31614 # Check whether --with-lzma was given.
31615 if test "${with_lzma+set}" = set; then :
31616 withval
=$with_lzma;
31621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
31622 $as_echo_n "checking whether to use lzma... " >&6; }
31623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
31624 $as_echo "$with_lzma" >&6; }
31626 if test "${with_lzma}" != no
; then
31637 acl_save_prefix
="$prefix"
31638 prefix
="$acl_final_prefix"
31639 acl_save_exec_prefix
="$exec_prefix"
31640 exec_prefix
="$acl_final_exec_prefix"
31642 eval additional_includedir
=\"$includedir\"
31643 eval additional_libdir
=\"$libdir\"
31645 exec_prefix
="$acl_save_exec_prefix"
31646 prefix
="$acl_save_prefix"
31649 # Check whether --with-liblzma-prefix was given.
31650 if test "${with_liblzma_prefix+set}" = set; then :
31651 withval
=$with_liblzma_prefix;
31652 if test "X$withval" = "Xno"; then
31655 if test "X$withval" = "X"; then
31657 acl_save_prefix
="$prefix"
31658 prefix
="$acl_final_prefix"
31659 acl_save_exec_prefix
="$exec_prefix"
31660 exec_prefix
="$acl_final_exec_prefix"
31662 eval additional_includedir
=\"$includedir\"
31663 eval additional_libdir
=\"$libdir\"
31665 exec_prefix
="$acl_save_exec_prefix"
31666 prefix
="$acl_save_prefix"
31669 additional_includedir
="$withval/include"
31670 additional_libdir
="$withval/lib"
31677 # Check whether --with-liblzma-type was given.
31678 if test "${with_liblzma_type+set}" = set; then :
31679 withval
=$with_liblzma_type; with_liblzma_type
=$withval
31681 with_liblzma_type
=auto
31684 lib_type
=`eval echo \$with_liblzma_type`
31691 names_already_handled
=
31692 names_next_round
='lzma '
31693 while test -n "$names_next_round"; do
31694 names_this_round
="$names_next_round"
31696 for name
in $names_this_round; do
31698 for n
in $names_already_handled; do
31699 if test "$n" = "$name"; then
31700 already_handled
=yes
31704 if test -z "$already_handled"; then
31705 names_already_handled
="$names_already_handled $name"
31706 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
31707 eval value
=\"\
$HAVE_LIB$uppername\"
31708 if test -n "$value"; then
31709 if test "$value" = yes; then
31710 eval value
=\"\
$LIB$uppername\"
31711 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
31712 eval value
=\"\
$LTLIB$uppername\"
31713 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
31722 if test $use_additional = yes; then
31723 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
31724 found_dir
="$additional_libdir"
31725 found_so
="$additional_libdir/lib$name.$shlibext"
31726 if test -f "$additional_libdir/lib$name.la"; then
31727 found_la
="$additional_libdir/lib$name.la"
31729 elif test x
$lib_type != xshared
; then
31730 if test -f "$additional_libdir/lib$name.$libext"; then
31731 found_dir
="$additional_libdir"
31732 found_a
="$additional_libdir/lib$name.$libext"
31733 if test -f "$additional_libdir/lib$name.la"; then
31734 found_la
="$additional_libdir/lib$name.la"
31739 if test "X$found_dir" = "X"; then
31740 for x
in $LDFLAGS $LTLIBLZMA; do
31742 acl_save_prefix
="$prefix"
31743 prefix
="$acl_final_prefix"
31744 acl_save_exec_prefix
="$exec_prefix"
31745 exec_prefix
="$acl_final_exec_prefix"
31747 exec_prefix
="$acl_save_exec_prefix"
31748 prefix
="$acl_save_prefix"
31752 dir
=`echo "X$x" | sed -e 's/^X-L//'`
31753 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
31755 found_so
="$dir/lib$name.$shlibext"
31756 if test -f "$dir/lib$name.la"; then
31757 found_la
="$dir/lib$name.la"
31759 elif test x
$lib_type != xshared
; then
31760 if test -f "$dir/lib$name.$libext"; then
31762 found_a
="$dir/lib$name.$libext"
31763 if test -f "$dir/lib$name.la"; then
31764 found_la
="$dir/lib$name.la"
31770 if test "X$found_dir" != "X"; then
31775 if test "X$found_dir" != "X"; then
31776 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
31777 if test "X$found_so" != "X"; then
31778 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
31779 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
31782 for x
in $ltrpathdirs; do
31783 if test "X$x" = "X$found_dir"; then
31788 if test -z "$haveit"; then
31789 ltrpathdirs
="$ltrpathdirs $found_dir"
31791 if test "$hardcode_direct" = yes; then
31792 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
31794 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
31795 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
31797 for x
in $rpathdirs; do
31798 if test "X$x" = "X$found_dir"; then
31803 if test -z "$haveit"; then
31804 rpathdirs
="$rpathdirs $found_dir"
31808 for x
in $LDFLAGS $LIBLZMA; do
31810 acl_save_prefix
="$prefix"
31811 prefix
="$acl_final_prefix"
31812 acl_save_exec_prefix
="$exec_prefix"
31813 exec_prefix
="$acl_final_exec_prefix"
31815 exec_prefix
="$acl_save_exec_prefix"
31816 prefix
="$acl_save_prefix"
31818 if test "X$x" = "X-L$found_dir"; then
31823 if test -z "$haveit"; then
31824 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
31826 if test "$hardcode_minus_L" != no
; then
31827 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
31829 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
31835 if test "X$found_a" != "X"; then
31836 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
31838 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
31841 additional_includedir
=
31842 case "$found_dir" in
31844 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
31845 additional_includedir
="$basedir/include"
31848 if test "X$additional_includedir" != "X"; then
31849 if test "X$additional_includedir" != "X/usr/include"; then
31851 if test "X$additional_includedir" = "X/usr/local/include"; then
31852 if test -n "$GCC"; then
31854 linux
*) haveit
=yes;;
31858 if test -z "$haveit"; then
31859 for x
in $CPPFLAGS $INCLZMA; do
31861 acl_save_prefix
="$prefix"
31862 prefix
="$acl_final_prefix"
31863 acl_save_exec_prefix
="$exec_prefix"
31864 exec_prefix
="$acl_final_exec_prefix"
31866 exec_prefix
="$acl_save_exec_prefix"
31867 prefix
="$acl_save_prefix"
31869 if test "X$x" = "X-I$additional_includedir"; then
31874 if test -z "$haveit"; then
31875 if test -d "$additional_includedir"; then
31876 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
31882 if test -n "$found_la"; then
31883 save_libdir
="$libdir"
31884 case "$found_la" in
31885 */* |
*\\*) .
"$found_la" ;;
31886 *) .
"./$found_la" ;;
31888 libdir
="$save_libdir"
31889 for dep
in $dependency_libs; do
31892 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
31893 if test "X$additional_libdir" != "X/usr/lib"; then
31895 if test "X$additional_libdir" = "X/usr/local/lib"; then
31896 if test -n "$GCC"; then
31898 linux
*) haveit
=yes;;
31902 if test -z "$haveit"; then
31904 for x
in $LDFLAGS $LIBLZMA; do
31906 acl_save_prefix
="$prefix"
31907 prefix
="$acl_final_prefix"
31908 acl_save_exec_prefix
="$exec_prefix"
31909 exec_prefix
="$acl_final_exec_prefix"
31911 exec_prefix
="$acl_save_exec_prefix"
31912 prefix
="$acl_save_prefix"
31914 if test "X$x" = "X-L$additional_libdir"; then
31919 if test -z "$haveit"; then
31920 if test -d "$additional_libdir"; then
31921 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
31925 for x
in $LDFLAGS $LTLIBLZMA; do
31927 acl_save_prefix
="$prefix"
31928 prefix
="$acl_final_prefix"
31929 acl_save_exec_prefix
="$exec_prefix"
31930 exec_prefix
="$acl_final_exec_prefix"
31932 exec_prefix
="$acl_save_exec_prefix"
31933 prefix
="$acl_save_prefix"
31935 if test "X$x" = "X-L$additional_libdir"; then
31940 if test -z "$haveit"; then
31941 if test -d "$additional_libdir"; then
31942 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
31949 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
31950 if test "$enable_rpath" != no
; then
31952 for x
in $rpathdirs; do
31953 if test "X$x" = "X$dir"; then
31958 if test -z "$haveit"; then
31959 rpathdirs
="$rpathdirs $dir"
31962 for x
in $ltrpathdirs; do
31963 if test "X$x" = "X$dir"; then
31968 if test -z "$haveit"; then
31969 ltrpathdirs
="$ltrpathdirs $dir"
31974 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
31977 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
31980 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
31981 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
31987 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
31988 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
31989 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
31991 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l:lib$name.$libext"
31992 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l:lib$name.$libext"
31999 if test "X$rpathdirs" != "X"; then
32000 if test -n "$hardcode_libdir_separator"; then
32002 for found_dir
in $rpathdirs; do
32003 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
32005 acl_save_libdir
="$libdir"
32007 eval flag
=\"$hardcode_libdir_flag_spec\"
32008 libdir
="$acl_save_libdir"
32009 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
32011 for found_dir
in $rpathdirs; do
32012 acl_save_libdir
="$libdir"
32013 libdir
="$found_dir"
32014 eval flag
=\"$hardcode_libdir_flag_spec\"
32015 libdir
="$acl_save_libdir"
32016 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
32020 if test "X$ltrpathdirs" != "X"; then
32021 for found_dir
in $ltrpathdirs; do
32022 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
32027 ac_save_CPPFLAGS
="$CPPFLAGS"
32029 for element
in $INCLZMA; do
32031 for x
in $CPPFLAGS; do
32033 acl_save_prefix
="$prefix"
32034 prefix
="$acl_final_prefix"
32035 acl_save_exec_prefix
="$exec_prefix"
32036 exec_prefix
="$acl_final_exec_prefix"
32038 exec_prefix
="$acl_save_exec_prefix"
32039 prefix
="$acl_save_prefix"
32041 if test "X$x" = "X$element"; then
32046 if test -z "$haveit"; then
32047 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
32052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
32053 $as_echo_n "checking for liblzma... " >&6; }
32054 if ${ac_cv_liblzma+:} false
; then :
32055 $as_echo_n "(cached) " >&6
32058 ac_save_LIBS
="$LIBS"
32059 LIBS
="$LIBS $LIBLZMA"
32060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32061 /* end confdefs.h. */
32066 lzma_index_iter iter;
32067 lzma_index_iter_init (&iter, 0);
32068 lzma_mf_is_supported (LZMA_MF_HC3);
32073 if ac_fn_c_try_link
"$LINENO"; then :
32078 rm -f core conftest.err conftest.
$ac_objext \
32079 conftest
$ac_exeext conftest.
$ac_ext
32080 LIBS
="$ac_save_LIBS"
32083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
32084 $as_echo "$ac_cv_liblzma" >&6; }
32085 if test "$ac_cv_liblzma" = yes; then
32088 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
32090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
32091 $as_echo_n "checking how to link with liblzma... " >&6; }
32092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
32093 $as_echo "$LIBLZMA" >&6; }
32096 CPPFLAGS
="$ac_save_CPPFLAGS"
32106 if test "$HAVE_LIBLZMA" != yes; then
32107 if test "$with_lzma" = yes; then
32108 as_fn_error $?
"missing liblzma for --with-lzma" "$LINENO" 5
32114 LIBGUI
="../libgui/src/libgui.a"
32115 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
32124 *-*-cygwin* |
*-*-mingw* )
32133 if test "${enable_gdbtk}" = "yes"; then
32135 # Gdbtk must have an absolute path to srcdir in order to run
32136 # properly when not installed.
32139 GDBTK_SRC_DIR
=`pwd`
32144 # Ok, lets find the tcl configuration
32145 # First, look for one uninstalled.
32146 # the alternative search directory is invoked by --with-tcl
32149 if test x
"${no_tcl}" = x
; then
32150 # we reset no_tcl in case something fails here
32153 # Check whether --with-tcl was given.
32154 if test "${with_tcl+set}" = set; then :
32155 withval
=$with_tcl; with_tclconfig
=${withval}
32158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
32159 $as_echo_n "checking for Tcl configuration... " >&6; }
32160 if ${ac_cv_c_tclconfig+:} false
; then :
32161 $as_echo_n "(cached) " >&6
32165 # First check to see if --with-tcl was specified.
32167 *-*-cygwin*) platDir
="win" ;;
32168 *) platDir
="unix" ;;
32170 if test x
"${with_tclconfig}" != x
; then
32171 if test -f "${with_tclconfig}/tclConfig.sh" ; then
32172 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
32174 as_fn_error $?
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
32178 # then check for a private Tcl installation
32179 if test x
"${ac_cv_c_tclconfig}" = x
; then
32182 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
32183 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
32184 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
32186 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
32187 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
32188 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
32190 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
32191 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
32192 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
32193 if test -f "$i/$platDir/tclConfig.sh" ; then
32194 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
32200 # on Darwin, check in Framework installation locations
32201 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
32202 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
32203 `ls -d /Library/Frameworks 2>/dev/null` \
32204 `ls -d /Network/Library/Frameworks 2>/dev/null` \
32205 `ls -d /System/Library/Frameworks 2>/dev/null` \
32207 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
32208 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
32214 # check in a few common install locations
32215 if test x
"${ac_cv_c_tclconfig}" = x
; then
32216 for i
in `ls -d ${libdir} 2>/dev/null` \
32217 `ls -d ${exec_prefix}/lib 2>/dev/null` \
32218 `ls -d ${prefix}/lib 2>/dev/null` \
32219 `ls -d /usr/local/lib 2>/dev/null` \
32220 `ls -d /usr/contrib/lib 2>/dev/null` \
32221 `ls -d /usr/lib 2>/dev/null` \
32223 if test -f "$i/tclConfig.sh" ; then
32224 ac_cv_c_tclconfig
=`(cd $i; pwd)`
32230 # check in a few other private locations
32231 if test x
"${ac_cv_c_tclconfig}" = x
; then
32234 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
32235 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
32236 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
32237 if test -f "$i/$platDir/tclConfig.sh" ; then
32238 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
32247 if test x
"${ac_cv_c_tclconfig}" = x
; then
32248 TCL_BIN_DIR
="# no Tcl configs found"
32249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
32250 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
32253 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
32254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
32255 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
32260 # If $no_tk is nonempty, then we can't do Tk, and there is no
32261 # point to doing Tcl.
32264 # Ok, lets find the tk configuration
32265 # First, look for one uninstalled.
32266 # the alternative search directory is invoked by --with-tk
32269 if test x
"${no_tk}" = x
; then
32270 # we reset no_tk in case something fails here
32273 # Check whether --with-tk was given.
32274 if test "${with_tk+set}" = set; then :
32275 withval
=$with_tk; with_tkconfig
=${withval}
32278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
32279 $as_echo_n "checking for Tk configuration... " >&6; }
32280 if ${ac_cv_c_tkconfig+:} false
; then :
32281 $as_echo_n "(cached) " >&6
32285 # First check to see if --with-tkconfig was specified.
32286 if test x
"${with_tkconfig}" != x
; then
32287 if test -f "${with_tkconfig}/tkConfig.sh" ; then
32288 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
32290 as_fn_error $?
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
32294 # then check for a private Tk library
32296 *-*-cygwin*) platDir
="win" ;;
32297 *) platDir
="unix" ;;
32299 if test x
"${ac_cv_c_tkconfig}" = x
; then
32302 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
32303 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
32304 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
32306 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
32307 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
32308 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
32310 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
32311 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
32312 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
32313 if test -f "$i/$platDir/tkConfig.sh" ; then
32314 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
32320 # on Darwin, check in Framework installation locations
32321 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
32322 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
32323 `ls -d /Library/Frameworks 2>/dev/null` \
32324 `ls -d /Network/Library/Frameworks 2>/dev/null` \
32325 `ls -d /System/Library/Frameworks 2>/dev/null` \
32327 if test -f "$i/Tk.framework/tkConfig.sh" ; then
32328 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
32334 # check in a few common install locations
32335 if test x
"${ac_cv_c_tkconfig}" = x
; then
32336 for i
in `ls -d ${libdir} 2>/dev/null` \
32337 `ls -d ${exec_prefix}/lib 2>/dev/null` \
32338 `ls -d ${prefix}/lib 2>/dev/null` \
32339 `ls -d /usr/local/lib 2>/dev/null` \
32340 `ls -d /usr/contrib/lib 2>/dev/null` \
32341 `ls -d /usr/lib 2>/dev/null` \
32343 if test -f "$i/tkConfig.sh" ; then
32344 ac_cv_c_tkconfig
=`(cd $i; pwd)`
32349 # check in a few other private locations
32350 if test x
"${ac_cv_c_tkconfig}" = x
; then
32353 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
32354 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
32355 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
32356 if test -f "$i/$platDir/tkConfig.sh" ; then
32357 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
32366 if test x
"${ac_cv_c_tkconfig}" = x
; then
32367 TK_BIN_DIR
="# no Tk configs found"
32368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
32369 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
32372 TK_BIN_DIR
=${ac_cv_c_tkconfig}
32373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
32374 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
32379 if test -z "${no_tcl}" -a -z "${no_tk}"; then
32381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
32382 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
32384 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
32385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
32386 $as_echo "loading" >&6; }
32387 .
${TCL_BIN_DIR}/tclConfig.sh
32389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
32390 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
32393 # eval is required to do the TCL_DBGX substitution
32394 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
32395 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
32397 # If the TCL_BIN_DIR is the build directory (not the install directory),
32398 # then set the common variable name to the value of the build variables.
32399 # For example, the variable TCL_LIB_SPEC will be set to the value
32400 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
32401 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
32402 # installed and uninstalled version of Tcl.
32403 if test -f "${TCL_BIN_DIR}/Makefile" ; then
32404 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
32405 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
32406 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
32407 elif test "`uname -s`" = "Darwin"; then
32408 # If Tcl was built as a framework, attempt to use the libraries
32409 # from the framework at the given location so that linking works
32410 # against Tcl.framework installed in an arbitrary location.
32411 case ${TCL_DEFS} in
32413 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
32414 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
32415 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
32416 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
32417 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
32422 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
32423 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
32424 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
32430 # eval is required to do the TCL_DBGX substitution
32431 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
32432 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
32433 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
32434 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
32450 # Check for in-tree tcl
32457 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
32461 # Find Tcl private headers
32462 if test x
"${intree}" = xno
; then
32464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
32465 $as_echo_n "checking for Tcl private headers... " >&6; }
32467 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
32468 if test -f ${dir}/tclInt.h
; then
32472 if test x
"${private_dir}" = x
; then
32473 as_fn_error $?
"could not find private Tcl headers" "$LINENO" 5
32475 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
32476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
32477 $as_echo "${private_dir}" >&6; }
32480 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
32481 TCL_LIBRARY
="${TCL_LIB_SPEC}"
32484 # If building tcl in the same src tree, private headers
32485 # are not needed, but we need to be sure to use the right
32487 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
32488 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
32489 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
32496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
32497 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
32499 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
32500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
32501 $as_echo "loading" >&6; }
32502 .
${TK_BIN_DIR}/tkConfig.sh
32504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
32505 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
32508 # eval is required to do the TK_DBGX substitution
32509 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
32510 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
32512 # If the TK_BIN_DIR is the build directory (not the install directory),
32513 # then set the common variable name to the value of the build variables.
32514 # For example, the variable TK_LIB_SPEC will be set to the value
32515 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
32516 # instead of TK_BUILD_LIB_SPEC since it will work with both an
32517 # installed and uninstalled version of Tcl.
32518 if test -f "${TK_BIN_DIR}/Makefile" ; then
32519 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
32520 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
32521 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
32522 elif test "`uname -s`" = "Darwin"; then
32523 # If Tk was built as a framework, attempt to use the libraries
32524 # from the framework at the given location so that linking works
32525 # against Tk.framework installed in an arbitrary location.
32528 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
32529 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
32530 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
32531 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
32532 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
32537 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
32538 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
32539 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
32545 # eval is required to do the TK_DBGX substitution
32546 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
32547 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
32548 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
32549 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
32564 # Check for in-tree Tk
32566 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
32570 # Find Tk private headers
32571 if test x
"${intree}" = xno
; then
32573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
32574 $as_echo_n "checking for Tk private headers... " >&6; }
32576 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
32577 if test -f ${dir}/tkInt.h
; then
32581 if test x
"${private_dir}" = x
; then
32582 as_fn_error $?
"could not find Tk private headers" "$LINENO" 5
32584 TK_PRIVATE_INCLUDE
="-I${private_dir}"
32585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
32586 $as_echo "${private_dir}" >&6; }
32589 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
32590 TK_LIBRARY
=${TK_LIB_SPEC}
32593 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
32594 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
32595 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
32602 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
32604 # Include some libraries that Tcl and Tk want.
32605 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
32606 # Yes, the ordering seems wrong here. But it isn't.
32607 # TK_LIBS is the list of libraries that need to be linked
32608 # after Tcl/Tk. Note that this isn't put into LIBS. If it
32609 # were in LIBS then any link tests after this point would
32610 # try to include things like `$(LIBGUI)', which wouldn't work.
32611 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
32613 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
32614 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
32615 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
32616 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
32617 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
32618 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
32619 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
32621 if test x
"$gdb_cv_os_cygwin" = xyes
; then
32622 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
32623 WIN32LDAPP
="-Wl,--subsystem,console"
32624 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
32627 subdirs
="$subdirs gdbtk"
32639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
32640 $as_echo_n "checking for X... " >&6; }
32643 # Check whether --with-x was given.
32644 if test "${with_x+set}" = set; then :
32648 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
32649 if test "x$with_x" = xno
; then
32650 # The user explicitly disabled X.
32653 case $x_includes,$x_libraries in #(
32654 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
32655 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
32656 $as_echo_n "(cached) " >&6
32658 # One or both of the vars are not set, and there is no cached value.
32659 ac_x_includes
=no ac_x_libraries
=no
32660 rm -f -r conftest.dir
32661 if mkdir conftest.dir
; then
32663 cat >Imakefile
<<'_ACEOF'
32665 @echo incroot='${INCROOT}'
32667 @echo usrlibdir='${USRLIBDIR}'
32669 @echo libdir='${LIBDIR}'
32671 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
32672 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
32673 for ac_var
in incroot usrlibdir libdir
; do
32674 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
32676 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
32677 for ac_extension
in a so sl dylib la dll
; do
32678 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
32679 test -f "$ac_im_libdir/libX11.$ac_extension"; then
32680 ac_im_usrlibdir
=$ac_im_libdir; break
32683 # Screen out bogus values from the imake configuration. They are
32684 # bogus both because they are the default anyway, and because
32685 # using them would break gcc on systems where it needs fixed includes.
32686 case $ac_im_incroot in
32687 /usr
/include
) ac_x_includes
= ;;
32688 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
32690 case $ac_im_usrlibdir in
32691 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
32692 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
32696 rm -f -r conftest.dir
32699 # Standard set of common directories for X headers.
32700 # Check X11 before X11Rn because it is often a symlink to the current release.
32714 /usr/local/X11/include
32715 /usr/local/X11R7/include
32716 /usr/local/X11R6/include
32717 /usr/local/X11R5/include
32718 /usr/local/X11R4/include
32720 /usr/local/include/X11
32721 /usr/local/include/X11R7
32722 /usr/local/include/X11R6
32723 /usr/local/include/X11R5
32724 /usr/local/include/X11R4
32728 /usr/XFree86/include/X11
32732 /usr/unsupported/include
32733 /usr/athena/include
32734 /usr/local/x11r5/include
32735 /usr/lpp/Xamples/include
32737 /usr/openwin/include
32738 /usr/openwin/share/include'
32740 if test "$ac_x_includes" = no
; then
32741 # Guess where to find include files, by looking for Xlib.h.
32742 # First, try using that file with no special directory specified.
32743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32744 /* end confdefs.h. */
32745 #include <X11/Xlib.h>
32747 if ac_fn_c_try_cpp
"$LINENO"; then :
32748 # We can compile using X headers with no special include directory.
32751 for ac_dir
in $ac_x_header_dirs; do
32752 if test -r "$ac_dir/X11/Xlib.h"; then
32753 ac_x_includes
=$ac_dir
32758 rm -f conftest.err conftest.i conftest.
$ac_ext
32759 fi # $ac_x_includes = no
32761 if test "$ac_x_libraries" = no
; then
32762 # Check for the libraries.
32763 # See if we find them without any special options.
32764 # Don't add to $LIBS permanently.
32767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32768 /* end confdefs.h. */
32769 #include <X11/Xlib.h>
32778 if ac_fn_c_try_link
"$LINENO"; then :
32780 # We can link X programs with no special library path.
32784 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
32786 # Don't even attempt the hair of trying to link an X program!
32787 for ac_extension
in a so sl dylib la dll
; do
32788 if test -r "$ac_dir/libX11.$ac_extension"; then
32789 ac_x_libraries
=$ac_dir
32795 rm -f core conftest.err conftest.
$ac_objext \
32796 conftest
$ac_exeext conftest.
$ac_ext
32797 fi # $ac_x_libraries = no
32799 case $ac_x_includes,$ac_x_libraries in #(
32800 no
,* |
*,no |
*\'*)
32801 # Didn't find X, or a directory has "'" in its name.
32802 ac_cv_have_x
="have_x=no";; #(
32804 # Record where we found X for the cache.
32805 ac_cv_have_x
="have_x=yes\
32806 ac_x_includes='$ac_x_includes'\
32807 ac_x_libraries='$ac_x_libraries'"
32813 eval "$ac_cv_have_x"
32816 if test "$have_x" != yes; then
32817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
32818 $as_echo "$have_x" >&6; }
32821 # If each of the values was on the command line, it overrides each guess.
32822 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
32823 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
32824 # Update the cache value to reflect the command line values.
32825 ac_cv_have_x
="have_x=yes\
32826 ac_x_includes='$x_includes'\
32827 ac_x_libraries='$x_libraries'"
32828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
32829 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
32833 # Unlike the sim directory, whether a simulator is linked is controlled by
32834 # presence of a gdb_sim definition in the target configure.tgt entry.
32835 # This code just checks for a few cases where we'd like to ignore those
32836 # definitions, even when they're present in the '.mt' file. These cases
32837 # are when --disable-sim is specified, or if the simulator directory is
32838 # not part of the source tree.
32840 # Check whether --enable-sim was given.
32841 if test "${enable_sim+set}" = set; then :
32842 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
32843 echo "enableval = ${enableval}";
32844 case "${enableval}" in
32845 yes) ignore_sim
=false
;;
32846 no
) ignore_sim
=true
;;
32847 *) ignore_sim
=false
;;
32854 if test ! -d "${srcdir}/../sim"; then
32860 if test "${ignore_sim}" = "false"; then
32861 if test x
"${gdb_sim}" != x
; then
32863 SIM_OBS
="remote-sim.o"
32865 # Some tdep code should only be compiled in when the ppc sim is
32866 # built. PR sim/13418.
32870 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
32890 # List of host floatformats.
32892 cat >>confdefs.h
<<_ACEOF
32893 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
32897 cat >>confdefs.h
<<_ACEOF
32898 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
32902 cat >>confdefs.h
<<_ACEOF
32903 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
32907 # target_subdir is used by the testsuite to find the target libraries.
32909 if test "${host}" != "${target}"; then
32910 target_subdir
="${target_alias}/"
32914 # Import nat definitions.
32915 nat_makefile_frag
=/dev
/null
32916 if test "${gdb_native}" = "yes"; then
32917 .
${srcdir}/configure.nat
32918 nativefile
=$NAT_FILE
32931 if test x
"${gdb_osabi}" != x
; then
32933 cat >>confdefs.h
<<_ACEOF
32934 #define GDB_OSABI_DEFAULT $gdb_osabi
32939 # Setup possible use of libbacktrace.
32940 # Check whether --enable-libbacktrace was given.
32941 if test "${enable_libbacktrace+set}" = set; then :
32942 enableval
=$enable_libbacktrace;
32947 as_fn_error $?
"bad value $enableval for --enable-libbacktrace" "$LINENO" 5
32952 enable_libbacktrace
=yes
32956 if test "${enable_libbacktrace}" = "yes"; then
32957 LIBBACKTRACE_INC
="-I$srcdir/../libbacktrace/ -I../libbacktrace/"
32958 LIBBACKTRACE_LIB
=..
/libbacktrace
/libbacktrace.la
32960 $as_echo "#define HAVE_LIBBACKTRACE 1" >>confdefs.h
32970 # Check for babeltrace and babeltrace-ctf
32972 # Check whether --with-babeltrace was given.
32973 if test "${with_babeltrace+set}" = set; then :
32974 withval
=$with_babeltrace;
32976 with_babeltrace
=auto
32979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
32980 $as_echo_n "checking whether to use babeltrace... " >&6; }
32981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
32982 $as_echo "$with_babeltrace" >&6; }
32984 if test "x$with_babeltrace" = "xno"; then
32985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
32986 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
32988 # Append -Werror to CFLAGS so that configure can catch the warning
32989 # "assignment from incompatible pointer type", which is related to
32990 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
32991 # in GDB, while babeltrace 1.0.3 is broken.
32992 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
32993 # safe to save and restore CFLAGS here.
32994 saved_CFLAGS
=$CFLAGS
32995 CFLAGS
="$CFLAGS -Werror"
33006 acl_save_prefix
="$prefix"
33007 prefix
="$acl_final_prefix"
33008 acl_save_exec_prefix
="$exec_prefix"
33009 exec_prefix
="$acl_final_exec_prefix"
33011 eval additional_includedir
=\"$includedir\"
33012 eval additional_libdir
=\"$libdir\"
33014 exec_prefix
="$acl_save_exec_prefix"
33015 prefix
="$acl_save_prefix"
33018 # Check whether --with-libbabeltrace-prefix was given.
33019 if test "${with_libbabeltrace_prefix+set}" = set; then :
33020 withval
=$with_libbabeltrace_prefix;
33021 if test "X$withval" = "Xno"; then
33024 if test "X$withval" = "X"; then
33026 acl_save_prefix
="$prefix"
33027 prefix
="$acl_final_prefix"
33028 acl_save_exec_prefix
="$exec_prefix"
33029 exec_prefix
="$acl_final_exec_prefix"
33031 eval additional_includedir
=\"$includedir\"
33032 eval additional_libdir
=\"$libdir\"
33034 exec_prefix
="$acl_save_exec_prefix"
33035 prefix
="$acl_save_prefix"
33038 additional_includedir
="$withval/include"
33039 additional_libdir
="$withval/lib"
33046 # Check whether --with-libbabeltrace-type was given.
33047 if test "${with_libbabeltrace_type+set}" = set; then :
33048 withval
=$with_libbabeltrace_type; with_libbabeltrace_type
=$withval
33050 with_libbabeltrace_type
=auto
33053 lib_type
=`eval echo \$with_libbabeltrace_type`
33060 names_already_handled
=
33061 names_next_round
='babeltrace babeltrace-ctf'
33062 while test -n "$names_next_round"; do
33063 names_this_round
="$names_next_round"
33065 for name
in $names_this_round; do
33067 for n
in $names_already_handled; do
33068 if test "$n" = "$name"; then
33069 already_handled
=yes
33073 if test -z "$already_handled"; then
33074 names_already_handled
="$names_already_handled $name"
33075 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
33076 eval value
=\"\
$HAVE_LIB$uppername\"
33077 if test -n "$value"; then
33078 if test "$value" = yes; then
33079 eval value
=\"\
$LIB$uppername\"
33080 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
33081 eval value
=\"\
$LTLIB$uppername\"
33082 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
33091 if test $use_additional = yes; then
33092 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
33093 found_dir
="$additional_libdir"
33094 found_so
="$additional_libdir/lib$name.$shlibext"
33095 if test -f "$additional_libdir/lib$name.la"; then
33096 found_la
="$additional_libdir/lib$name.la"
33098 elif test x
$lib_type != xshared
; then
33099 if test -f "$additional_libdir/lib$name.$libext"; then
33100 found_dir
="$additional_libdir"
33101 found_a
="$additional_libdir/lib$name.$libext"
33102 if test -f "$additional_libdir/lib$name.la"; then
33103 found_la
="$additional_libdir/lib$name.la"
33108 if test "X$found_dir" = "X"; then
33109 for x
in $LDFLAGS $LTLIBBABELTRACE; do
33111 acl_save_prefix
="$prefix"
33112 prefix
="$acl_final_prefix"
33113 acl_save_exec_prefix
="$exec_prefix"
33114 exec_prefix
="$acl_final_exec_prefix"
33116 exec_prefix
="$acl_save_exec_prefix"
33117 prefix
="$acl_save_prefix"
33121 dir
=`echo "X$x" | sed -e 's/^X-L//'`
33122 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
33124 found_so
="$dir/lib$name.$shlibext"
33125 if test -f "$dir/lib$name.la"; then
33126 found_la
="$dir/lib$name.la"
33128 elif test x
$lib_type != xshared
; then
33129 if test -f "$dir/lib$name.$libext"; then
33131 found_a
="$dir/lib$name.$libext"
33132 if test -f "$dir/lib$name.la"; then
33133 found_la
="$dir/lib$name.la"
33139 if test "X$found_dir" != "X"; then
33144 if test "X$found_dir" != "X"; then
33145 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
33146 if test "X$found_so" != "X"; then
33147 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
33148 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
33151 for x
in $ltrpathdirs; do
33152 if test "X$x" = "X$found_dir"; then
33157 if test -z "$haveit"; then
33158 ltrpathdirs
="$ltrpathdirs $found_dir"
33160 if test "$hardcode_direct" = yes; then
33161 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
33163 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
33164 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
33166 for x
in $rpathdirs; do
33167 if test "X$x" = "X$found_dir"; then
33172 if test -z "$haveit"; then
33173 rpathdirs
="$rpathdirs $found_dir"
33177 for x
in $LDFLAGS $LIBBABELTRACE; do
33179 acl_save_prefix
="$prefix"
33180 prefix
="$acl_final_prefix"
33181 acl_save_exec_prefix
="$exec_prefix"
33182 exec_prefix
="$acl_final_exec_prefix"
33184 exec_prefix
="$acl_save_exec_prefix"
33185 prefix
="$acl_save_prefix"
33187 if test "X$x" = "X-L$found_dir"; then
33192 if test -z "$haveit"; then
33193 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
33195 if test "$hardcode_minus_L" != no
; then
33196 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
33198 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
33204 if test "X$found_a" != "X"; then
33205 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
33207 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
33210 additional_includedir
=
33211 case "$found_dir" in
33213 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
33214 additional_includedir
="$basedir/include"
33217 if test "X$additional_includedir" != "X"; then
33218 if test "X$additional_includedir" != "X/usr/include"; then
33220 if test "X$additional_includedir" = "X/usr/local/include"; then
33221 if test -n "$GCC"; then
33223 linux
*) haveit
=yes;;
33227 if test -z "$haveit"; then
33228 for x
in $CPPFLAGS $INCBABELTRACE; do
33230 acl_save_prefix
="$prefix"
33231 prefix
="$acl_final_prefix"
33232 acl_save_exec_prefix
="$exec_prefix"
33233 exec_prefix
="$acl_final_exec_prefix"
33235 exec_prefix
="$acl_save_exec_prefix"
33236 prefix
="$acl_save_prefix"
33238 if test "X$x" = "X-I$additional_includedir"; then
33243 if test -z "$haveit"; then
33244 if test -d "$additional_includedir"; then
33245 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
33251 if test -n "$found_la"; then
33252 save_libdir
="$libdir"
33253 case "$found_la" in
33254 */* |
*\\*) .
"$found_la" ;;
33255 *) .
"./$found_la" ;;
33257 libdir
="$save_libdir"
33258 for dep
in $dependency_libs; do
33261 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
33262 if test "X$additional_libdir" != "X/usr/lib"; then
33264 if test "X$additional_libdir" = "X/usr/local/lib"; then
33265 if test -n "$GCC"; then
33267 linux
*) haveit
=yes;;
33271 if test -z "$haveit"; then
33273 for x
in $LDFLAGS $LIBBABELTRACE; do
33275 acl_save_prefix
="$prefix"
33276 prefix
="$acl_final_prefix"
33277 acl_save_exec_prefix
="$exec_prefix"
33278 exec_prefix
="$acl_final_exec_prefix"
33280 exec_prefix
="$acl_save_exec_prefix"
33281 prefix
="$acl_save_prefix"
33283 if test "X$x" = "X-L$additional_libdir"; then
33288 if test -z "$haveit"; then
33289 if test -d "$additional_libdir"; then
33290 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
33294 for x
in $LDFLAGS $LTLIBBABELTRACE; do
33296 acl_save_prefix
="$prefix"
33297 prefix
="$acl_final_prefix"
33298 acl_save_exec_prefix
="$exec_prefix"
33299 exec_prefix
="$acl_final_exec_prefix"
33301 exec_prefix
="$acl_save_exec_prefix"
33302 prefix
="$acl_save_prefix"
33304 if test "X$x" = "X-L$additional_libdir"; then
33309 if test -z "$haveit"; then
33310 if test -d "$additional_libdir"; then
33311 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
33318 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
33319 if test "$enable_rpath" != no
; then
33321 for x
in $rpathdirs; do
33322 if test "X$x" = "X$dir"; then
33327 if test -z "$haveit"; then
33328 rpathdirs
="$rpathdirs $dir"
33331 for x
in $ltrpathdirs; do
33332 if test "X$x" = "X$dir"; then
33337 if test -z "$haveit"; then
33338 ltrpathdirs
="$ltrpathdirs $dir"
33343 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
33346 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
33349 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
33350 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
33356 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
33357 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
33358 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
33360 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l:lib$name.$libext"
33361 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l:lib$name.$libext"
33368 if test "X$rpathdirs" != "X"; then
33369 if test -n "$hardcode_libdir_separator"; then
33371 for found_dir
in $rpathdirs; do
33372 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
33374 acl_save_libdir
="$libdir"
33376 eval flag
=\"$hardcode_libdir_flag_spec\"
33377 libdir
="$acl_save_libdir"
33378 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
33380 for found_dir
in $rpathdirs; do
33381 acl_save_libdir
="$libdir"
33382 libdir
="$found_dir"
33383 eval flag
=\"$hardcode_libdir_flag_spec\"
33384 libdir
="$acl_save_libdir"
33385 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
33389 if test "X$ltrpathdirs" != "X"; then
33390 for found_dir
in $ltrpathdirs; do
33391 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
33396 ac_save_CPPFLAGS
="$CPPFLAGS"
33398 for element
in $INCBABELTRACE; do
33400 for x
in $CPPFLAGS; do
33402 acl_save_prefix
="$prefix"
33403 prefix
="$acl_final_prefix"
33404 acl_save_exec_prefix
="$exec_prefix"
33405 exec_prefix
="$acl_final_exec_prefix"
33407 exec_prefix
="$acl_save_exec_prefix"
33408 prefix
="$acl_save_prefix"
33410 if test "X$x" = "X$element"; then
33415 if test -z "$haveit"; then
33416 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
33421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
33422 $as_echo_n "checking for libbabeltrace... " >&6; }
33423 if ${ac_cv_libbabeltrace+:} false
; then :
33424 $as_echo_n "(cached) " >&6
33427 ac_save_LIBS
="$LIBS"
33428 LIBS
="$LIBS $LIBBABELTRACE"
33429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
33430 /* end confdefs.h. */
33431 #include <babeltrace/babeltrace.h>
33432 #include <babeltrace/ctf/events.h>
33433 #include <babeltrace/ctf/iterator.h>
33437 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
33438 struct bt_ctf_event *event = NULL;
33439 const struct bt_definition *scope;
33441 pos->type = BT_SEEK_BEGIN;
33442 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
33443 scope = bt_ctf_get_top_level_scope (event,
33444 BT_STREAM_EVENT_HEADER);
33445 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
33451 if ac_fn_c_try_link
"$LINENO"; then :
33452 ac_cv_libbabeltrace
=yes
33454 ac_cv_libbabeltrace
=no
33456 rm -f core conftest.err conftest.
$ac_objext \
33457 conftest
$ac_exeext conftest.
$ac_ext
33458 LIBS
="$ac_save_LIBS"
33461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
33462 $as_echo "$ac_cv_libbabeltrace" >&6; }
33463 if test "$ac_cv_libbabeltrace" = yes; then
33464 HAVE_LIBBABELTRACE
=yes
33466 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
33468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
33469 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
33470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
33471 $as_echo "$LIBBABELTRACE" >&6; }
33473 HAVE_LIBBABELTRACE
=no
33474 CPPFLAGS
="$ac_save_CPPFLAGS"
33484 CFLAGS
=$saved_CFLAGS
33486 if test "$HAVE_LIBBABELTRACE" != yes; then
33487 if test "$with_babeltrace" = yes; then
33488 as_fn_error $?
"babeltrace is missing or unusable" "$LINENO" 5
33490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
33491 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
33496 # Check whether --enable-libctf was given.
33497 if test "${enable_libctf+set}" = set; then :
33498 enableval
=$enable_libctf;
33499 case "$enableval" in
33501 *) as_fn_error $?
"Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
33509 if test "${enable_libctf}" = yes; then
33511 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
33513 LIBCTF
="../libctf/libctf.la"
33514 CTF_DEPS
="../libctf/libctf.la"
33522 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
33527 if test "${nativefile}" != ""; then
33528 case "${nativefile}" in
33529 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
33530 * ) GDB_NM_FILE
="${nativefile}"
33532 ac_config_links
="$ac_config_links nm.h:$GDB_NM_FILE"
33535 cat >>confdefs.h
<<_ACEOF
33536 #define GDB_NM_FILE "${GDB_NM_FILE}"
33544 for ac_prog
in xsltproc
33546 # Extract the first word of "$ac_prog", so it can be a program name with args.
33547 set dummy
$ac_prog; ac_word
=$2
33548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33549 $as_echo_n "checking for $ac_word... " >&6; }
33550 if ${ac_cv_path_XSLTPROC+:} false
; then :
33551 $as_echo_n "(cached) " >&6
33555 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
33558 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
33559 for as_dir
in $PATH
33562 test -z "$as_dir" && as_dir
=.
33563 for ac_exec_ext
in '' $ac_executable_extensions; do
33564 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
33565 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
33566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33576 XSLTPROC
=$ac_cv_path_XSLTPROC
33577 if test -n "$XSLTPROC"; then
33578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
33579 $as_echo "$XSLTPROC" >&6; }
33581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33582 $as_echo "no" >&6; }
33586 test -n "$XSLTPROC" && break
33588 test -n "$XSLTPROC" || XSLTPROC
="missing"
33590 if test "x$USE_MAINTAINER_MODE" = xyes
; then
33591 if test "${XSLTPROC}" = missing
; then
33592 as_fn_error $?
"unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
33600 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
33604 # Check whether we will enable the inclusion of unit tests when
33607 # The default value of this option changes depending whether we're on
33608 # development mode (in which case it's "true") or not (in which case
33609 # it's "false"). The $development variable is set by the GDB_AC_COMMON
33610 # macro, which must therefore be used before GDB_AC_SELFTEST.
33612 if test "x$development" != xtrue
&& test "x$development" != xfalse
; then :
33613 as_fn_error $?
"Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
33616 # Check whether --enable-unit-tests was given.
33617 if test "${enable_unit_tests+set}" = set; then :
33618 enableval
=$enable_unit_tests; case "${enableval}" in
33619 yes) enable_unittests
=true
;;
33620 no
) enable_unittests
=false
;;
33621 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
33624 enable_unittests
=$development
33628 if $enable_unittests; then
33630 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
33633 CONFIG_OBS
="$CONFIG_OBS \$(SELFTESTS_OBS)"
33634 CONFIG_SRCS
="$CONFIG_SRCS \$(SELFTESTS_SRCS)"
33640 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
33641 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$gdb_ac_transform"`
33642 if test "x$GDB_TRANSFORM_NAME" = x
; then
33643 GDB_TRANSFORM_NAME
=gdb
33648 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
33649 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$gdb_ac_transform"`
33650 if test "x$GCORE_TRANSFORM_NAME" = x
; then
33651 GCORE_TRANSFORM_NAME
=gcore
33655 ac_config_files
="$ac_config_files gcore"
33657 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
33660 cat >confcache
<<\_ACEOF
33661 # This file is a shell script that caches the results of configure
33662 # tests run on this system so they can be shared between configure
33663 # scripts and configure runs, see configure's option --config-cache.
33664 # It is not useful on other systems. If it contains results you don't
33665 # want to keep, you may remove or edit it.
33667 # config.status only pays attention to the cache file if you give it
33668 # the --recheck option to rerun configure.
33670 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33671 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33672 # following values.
33676 # The following way of writing the cache mishandles newlines in values,
33677 # but we know of no workaround that is simple, portable, and efficient.
33678 # So, we kill variables containing newlines.
33679 # Ultrix sh set writes to stderr and can't be redirected directly,
33680 # and sets the high bit in the cache file unless we assign to the vars.
33682 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33683 eval ac_val
=\$
$ac_var
33687 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
33688 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
33691 _ | IFS | as_nl
) ;; #(
33692 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
33693 *) { eval $ac_var=; unset $ac_var;} ;;
33699 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33700 *${as_nl}ac_space
=\
*)
33701 # `set' does not quote correctly, so add quotes: double-quote
33702 # substitution turns \\\\ into \\, and sed turns \\ into \.
33705 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33708 # `set' quotes correctly as required by POSIX, so do not add quotes.
33709 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33718 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33720 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33722 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
33723 if test -w "$cache_file"; then
33724 if test "x$cache_file" != "x/dev/null"; then
33725 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
33726 $as_echo "$as_me: updating cache $cache_file" >&6;}
33727 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
33728 cat confcache
>"$cache_file"
33730 case $cache_file in #(
33732 mv -f confcache
"$cache_file"$$
&&
33733 mv -f "$cache_file"$$
"$cache_file" ;; #(
33735 mv -f confcache
"$cache_file" ;;
33740 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
33741 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33746 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
33747 # Let make expand exec_prefix.
33748 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
33750 DEFS
=-DHAVE_CONFIG_H
33755 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
33756 # 1. Remove the extension, and $U if already installed.
33757 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
33758 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
33759 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33760 # will be set to the directory where LIBOBJS objects are built.
33761 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33762 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
33764 LIBOBJS
=$ac_libobjs
33766 LTLIBOBJS
=$ac_ltlibobjs
33769 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
33770 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
33771 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33773 if test -z "${ENABLE_BFD_64_BIT_TRUE}" && test -z "${ENABLE_BFD_64_BIT_FALSE}"; then
33774 as_fn_error $?
"conditional \"ENABLE_BFD_64_BIT\" was never defined.
33775 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33777 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
33778 as_fn_error $?
"conditional \"HAVE_PYTHON\" was never defined.
33779 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33781 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
33782 as_fn_error $?
"conditional \"HAVE_GUILE\" was never defined.
33783 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33787 : "${CONFIG_STATUS=./config.status}"
33789 ac_clean_files_save
=$ac_clean_files
33790 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
33791 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
33792 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
33794 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
33796 # Generated by $as_me.
33797 # Run this file to recreate the current configuration.
33798 # Compiler output produced by configure, useful for debugging
33799 # configure, is in config.log if it exists.
33802 ac_cs_recheck=false
33805 SHELL=\${CONFIG_SHELL-$SHELL}
33808 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
33809 ## -------------------- ##
33810 ## M4sh Initialization. ##
33811 ## -------------------- ##
33813 # Be more Bourne compatible
33814 DUALCASE
=1; export DUALCASE
# for MKS sh
33815 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
33818 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33819 # is contrary to our usage. Disable this feature.
33820 alias -g '${1+"$@"}'='"$@"'
33821 setopt NO_GLOB_SUBST
33823 case `(set -o) 2>/dev/null` in #(
33835 # Printing a long string crashes Solaris 7 /usr/bin/printf.
33836 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33837 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33838 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
33839 # Prefer a ksh shell builtin over an external printf program on Solaris,
33840 # but without wasting forks for bash or zsh.
33841 if test -z "$BASH_VERSION$ZSH_VERSION" \
33842 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33843 as_echo='print
-r --'
33844 as_echo_n='print
-rn --'
33845 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
33846 as_echo='printf %s
\n'
33847 as_echo_n='printf %s
'
33849 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33850 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
33851 as_echo_n='/usr
/ucb
/echo -n'
33853 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33854 as_echo_n_body='eval
33858 expr "X$arg" : "X\\(.*\\)$as_nl";
33859 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33861 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
33863 export as_echo_n_body
33864 as_echo_n='sh
-c $as_echo_n_body as_echo
'
33866 export as_echo_body
33867 as_echo='sh
-c $as_echo_body as_echo
'
33870 # The user is always right.
33871 if test "${PATH_SEPARATOR+set}" != set; then
33873 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33874 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33881 # We need space, tab and new line, in precisely that order. Quoting is
33882 # there to prevent editors from complaining about space-tab.
33883 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33884 # splitting by setting IFS to empty value.)
33887 # Find who we are. Look in the path if we contain no directory separator.
33890 *[\\/]* ) as_myself=$0 ;;
33891 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33892 for as_dir in $PATH
33895 test -z "$as_dir" && as_dir=.
33896 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33902 # We did not find ourselves, most probably we were run as `sh COMMAND'
33903 # in which case we are not to be found in the path.
33904 if test "x$as_myself" = x
; then
33907 if test ! -f "$as_myself"; then
33908 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33912 # Unset variables that we do not need and which cause bugs (e.g. in
33913 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33914 # suppresses any "Segmentation fault" message there. '((' could
33915 # trigger a bug in pdksh 5.2.14.
33916 for as_var
in BASH_ENV ENV MAIL MAILPATH
33917 do eval test x\
${$as_var+set} = xset \
33918 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
33931 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
33934 # as_fn_error STATUS ERROR [LINENO LOG_FD]
33935 # ----------------------------------------
33936 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33937 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33938 # script with STATUS, using 1 if that was 0.
33941 as_status
=$1; test $as_status -eq 0 && as_status
=1
33943 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
33944 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
33946 $as_echo "$as_me: error: $2" >&2
33947 as_fn_exit
$as_status
33951 # as_fn_set_status STATUS
33952 # -----------------------
33953 # Set $? to STATUS, without forking.
33954 as_fn_set_status
()
33957 } # as_fn_set_status
33959 # as_fn_exit STATUS
33960 # -----------------
33961 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33965 as_fn_set_status
$1
33971 # Portably unset VAR.
33974 { eval $1=; unset $1;}
33976 as_unset
=as_fn_unset
33977 # as_fn_append VAR VALUE
33978 # ----------------------
33979 # Append the text in VALUE to the end of the definition contained in VAR. Take
33980 # advantage of any shell optimizations that allow amortized linear growth over
33981 # repeated appends, instead of the typical quadratic growth present in naive
33983 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
33984 eval 'as_fn_append ()
33995 # as_fn_arith ARG...
33996 # ------------------
33997 # Perform arithmetic evaluation on the ARGs, and store the result in the
33998 # global $as_val. Take advantage of shells that can avoid forks. The arguments
33999 # must be portable across $(()) and expr.
34000 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
34001 eval 'as_fn_arith ()
34008 as_val
=`expr "$@" || test $? -eq 1`
34013 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
34014 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
34020 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34021 as_basename
=basename
34026 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
34032 as_me
=`$as_basename -- "$0" ||
34033 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34034 X"$0" : 'X\(//\)$' \| \
34035 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34037 sed '/^.*\/\([^/][^/]*\)\/*$/{
34051 # Avoid depending upon Character Ranges.
34052 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
34053 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34054 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
34055 as_cr_digits
='0123456789'
34056 as_cr_alnum
=$as_cr_Letters$as_cr_digits
34058 ECHO_C
= ECHO_N
= ECHO_T
=
34059 case `echo -n x` in #(((((
34061 case `echo 'xy\c'` in
34062 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
34064 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
34071 rm -f conf$$ conf$$.exe conf$$.
file
34072 if test -d conf$$.dir
; then
34073 rm -f conf$$.dir
/conf$$.
file
34076 mkdir conf$$.dir
2>/dev
/null
34078 if (echo >conf$$.
file) 2>/dev
/null
; then
34079 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
34081 # ... but there are two gotchas:
34082 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34083 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34084 # In both cases, we have to default to `cp -pR'.
34085 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
34087 elif ln conf$$.
file conf$$
2>/dev
/null
; then
34095 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
34096 rmdir conf$$.dir
2>/dev
/null
34101 # Create "$as_dir" as a directory, including parents if necessary.
34106 -*) as_dir
=.
/$as_dir;;
34108 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
34112 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34113 *) as_qdir
=$as_dir;;
34115 as_dirs
="'$as_qdir' $as_dirs"
34116 as_dir
=`$as_dirname -- "$as_dir" ||
34117 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34118 X"$as_dir" : 'X\(//\)[^/]' \| \
34119 X"$as_dir" : 'X\(//\)$' \| \
34120 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34121 $as_echo X"$as_dir" |
34122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34126 /^X\(\/\/\)[^/].*/{
34139 test -d "$as_dir" && break
34141 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
34142 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
34146 if mkdir
-p .
2>/dev
/null
; then
34147 as_mkdir_p
='mkdir -p "$as_dir"'
34149 test -d .
/-p && rmdir .
/-p
34154 # as_fn_executable_p FILE
34155 # -----------------------
34156 # Test if FILE is an executable regular file.
34157 as_fn_executable_p
()
34159 test -f "$1" && test -x "$1"
34160 } # as_fn_executable_p
34161 as_test_x
='test -x'
34162 as_executable_p
=as_fn_executable_p
34164 # Sed expression to map a string onto a valid CPP name.
34165 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34167 # Sed expression to map a string onto a valid variable name.
34168 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34172 ## ----------------------------------- ##
34173 ## Main body of $CONFIG_STATUS script. ##
34174 ## ----------------------------------- ##
34176 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
34178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
34179 # Save the log message, to keep $0 and so on meaningful, and to
34180 # report actual input values of CONFIG_FILES etc. instead of their
34181 # values after options handling.
34183 This file was extended by $as_me, which was
34184 generated by GNU Autoconf 2.69. Invocation command line was
34186 CONFIG_FILES = $CONFIG_FILES
34187 CONFIG_HEADERS = $CONFIG_HEADERS
34188 CONFIG_LINKS = $CONFIG_LINKS
34189 CONFIG_COMMANDS = $CONFIG_COMMANDS
34192 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34197 case $ac_config_files in *"
34198 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
34201 case $ac_config_headers in *"
34202 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
34206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34207 # Files that config.status was made for.
34208 config_files="$ac_config_files"
34209 config_headers="$ac_config_headers"
34210 config_links="$ac_config_links"
34211 config_commands="$ac_config_commands"
34215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
34217 \`$as_me' instantiates files and other configuration actions
34218 from templates according to the current configuration. Unless the files
34219 and actions are specified as TAGs, all are instantiated by default.
34221 Usage: $0 [OPTION]... [TAG]...
34223 -h, --help print this help, then exit
34224 -V, --version print version number and configuration settings, then exit
34225 --config print configuration, then exit
34226 -q, --quiet, --silent
34227 do not print progress messages
34228 -d, --debug don't remove temporary files
34229 --recheck update $as_me by reconfiguring in the same conditions
34230 --file=FILE[:TEMPLATE]
34231 instantiate the configuration file FILE
34232 --header=FILE[:TEMPLATE]
34233 instantiate the configuration header FILE
34235 Configuration files:
34238 Configuration headers:
34241 Configuration links:
34244 Configuration commands:
34247 Report bugs to the package provider."
34250 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34251 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
34254 configured by $0, generated by GNU Autoconf 2.69,
34255 with options \\"\$ac_cs_config\\"
34257 Copyright (C) 2012 Free Software Foundation, Inc.
34258 This config.status script is free software; the Free Software Foundation
34259 gives unlimited permission to copy, distribute and modify it."
34265 test -n "\$AWK" || AWK=awk
34268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
34269 # The default lists apply if the user does not specify any file.
34275 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
34276 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
34280 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
34292 # Handling of the options.
34293 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
34295 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
34296 $as_echo "$ac_cs_version"; exit ;;
34297 --config |
--confi |
--conf |
--con |
--co |
--c )
34298 $as_echo "$ac_cs_config"; exit ;;
34299 --debug |
--debu |
--deb |
--de |
--d |
-d )
34301 --file |
--fil |
--fi |
--f )
34304 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34305 '') as_fn_error $?
"missing file argument" ;;
34307 as_fn_append CONFIG_FILES
" '$ac_optarg'"
34308 ac_need_defaults
=false
;;
34309 --header |
--heade |
--head |
--hea )
34312 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34314 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
34315 ac_need_defaults
=false
;;
34317 # Conflict between --help and --header
34318 as_fn_error $?
"ambiguous option: \`$1'
34319 Try \`$0 --help' for more information.";;
34320 --help |
--hel |
-h )
34321 $as_echo "$ac_cs_usage"; exit ;;
34322 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
34323 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
34326 # This is an error.
34327 -*) as_fn_error $?
"unrecognized option: \`$1'
34328 Try \`$0 --help' for more information." ;;
34330 *) as_fn_append ac_config_targets
" $1"
34331 ac_need_defaults
=false
;;
34337 ac_configure_extra_args
=
34339 if $ac_cs_silent; then
34341 ac_configure_extra_args
="$ac_configure_extra_args --silent"
34345 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34346 if \$ac_cs_recheck; then
34347 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34349 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
34350 CONFIG_SHELL='$SHELL'
34351 export CONFIG_SHELL
34356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
34360 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34361 ## Running $as_me. ##
34367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34373 # The HP-UX ksh and POSIX shell print the target directory to stdout
34374 # if CDPATH is set.
34375 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34377 sed_quote_subst='$sed_quote_subst'
34378 double_quote_subst='$double_quote_subst'
34379 delay_variable_subst='$delay_variable_subst'
34380 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
34381 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
34382 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
34383 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
34384 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
34385 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
34386 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
34387 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
34388 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
34389 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
34390 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
34391 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
34392 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
34393 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
34394 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
34395 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
34396 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
34397 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
34398 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
34399 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
34400 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
34401 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
34402 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
34403 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
34404 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
34405 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
34406 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
34407 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
34408 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
34409 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
34410 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
34411 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
34412 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
34413 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
34414 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
34415 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
34416 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
34417 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34418 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34419 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
34420 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
34421 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
34422 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
34423 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
34424 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
34425 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
34426 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
34427 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
34428 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"`'
34429 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
34430 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
34431 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
34432 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
34433 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
34434 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
34435 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
34436 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
34437 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
34438 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
34439 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
34440 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
34441 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
34442 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
34443 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
34444 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34445 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
34446 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
34447 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
34448 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
34449 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
34450 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
34451 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34452 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
34453 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34454 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
34455 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34456 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
34457 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
34458 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
34459 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
34460 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
34461 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
34462 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
34463 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
34464 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
34465 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
34466 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
34467 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
34468 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
34469 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
34470 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
34471 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
34472 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
34473 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
34474 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
34475 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
34476 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
34477 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
34478 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
34479 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
34480 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
34481 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
34482 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
34483 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
34484 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
34485 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
34486 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
34487 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34488 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34489 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
34490 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
34491 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
34492 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
34493 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
34494 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
34495 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
34496 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
34497 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
34498 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
34499 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
34500 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
34501 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
34502 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
34503 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
34504 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
34505 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
34506 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
34507 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
34508 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34509 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34510 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
34511 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
34512 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
34513 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
34514 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
34515 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
34516 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
34517 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
34518 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
34519 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34520 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34521 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
34522 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34523 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34524 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34525 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34526 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34527 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34528 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
34529 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
34530 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
34531 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34532 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
34533 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
34534 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
34535 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
34536 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
34537 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
34538 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
34539 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
34540 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
34541 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
34542 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
34543 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34544 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
34545 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
34546 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34547 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
34548 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
34549 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
34550 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
34551 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
34552 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
34553 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
34554 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
34557 LTCFLAGS='$LTCFLAGS'
34558 compiler='$compiler_DEFAULT'
34560 # A function that is used when there is no print builtin or printf.
34561 func_fallback_echo ()
34563 eval 'cat <<_LTECHO_EOF
34568 # Quote evaled strings.
34582 deplibs_check_method \
34591 lt_cv_sys_global_symbol_pipe \
34592 lt_cv_sys_global_symbol_to_cdecl \
34593 lt_cv_sys_global_symbol_to_c_name_address \
34594 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
34595 lt_prog_compiler_no_builtin_flag \
34596 lt_prog_compiler_wl \
34597 lt_prog_compiler_pic \
34598 lt_prog_compiler_static \
34599 lt_cv_prog_compiler_c_o \
34607 export_dynamic_flag_spec \
34608 whole_archive_flag_spec \
34609 compiler_needs_object \
34611 allow_undefined_flag \
34612 no_undefined_flag \
34613 hardcode_libdir_flag_spec \
34614 hardcode_libdir_flag_spec_ld \
34615 hardcode_libdir_separator \
34620 variables_saved_for_relink \
34622 library_names_spec \
34624 install_override_mode \
34628 compiler_lib_search_dirs \
34633 compiler_lib_search_path \
34637 lt_prog_compiler_no_builtin_flag_CXX \
34638 lt_prog_compiler_wl_CXX \
34639 lt_prog_compiler_pic_CXX \
34640 lt_prog_compiler_static_CXX \
34641 lt_cv_prog_compiler_c_o_CXX \
34642 export_dynamic_flag_spec_CXX \
34643 whole_archive_flag_spec_CXX \
34644 compiler_needs_object_CXX \
34646 allow_undefined_flag_CXX \
34647 no_undefined_flag_CXX \
34648 hardcode_libdir_flag_spec_CXX \
34649 hardcode_libdir_flag_spec_ld_CXX \
34650 hardcode_libdir_separator_CXX \
34651 fix_srcfile_path_CXX \
34652 exclude_expsyms_CXX \
34653 include_expsyms_CXX \
34654 file_list_spec_CXX \
34655 compiler_lib_search_dirs_CXX \
34656 predep_objects_CXX \
34657 postdep_objects_CXX \
34660 compiler_lib_search_path_CXX; do
34661 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
34662 *[\\\\\\\`\\"\\\$]*)
34663 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
34666 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34671 # Double-quote double-evaled strings.
34672 for var in reload_cmds \
34673 old_postinstall_cmds \
34674 old_postuninstall_cmds \
34676 extract_expsyms_cmds \
34677 old_archive_from_new_cmds \
34678 old_archive_from_expsyms_cmds \
34680 archive_expsym_cmds \
34682 module_expsym_cmds \
34683 export_symbols_cmds \
34686 postuninstall_cmds \
34688 sys_lib_search_path_spec \
34689 sys_lib_dlsearch_path_spec \
34691 old_archive_cmds_CXX \
34692 old_archive_from_new_cmds_CXX \
34693 old_archive_from_expsyms_cmds_CXX \
34695 archive_expsym_cmds_CXX \
34697 module_expsym_cmds_CXX \
34698 export_symbols_cmds_CXX \
34699 prelink_cmds_CXX; do
34700 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
34701 *[\\\\\\\`\\"\\\$]*)
34702 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
34705 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34710 ac_aux_dir='$ac_aux_dir'
34711 xsi_shell='$xsi_shell'
34712 lt_shell_append='$lt_shell_append'
34714 # See if we are running on zsh, and set the options which allow our
34715 # commands through without removal of \ escapes INIT.
34716 if test -n "\${ZSH_VERSION+set}" ; then
34717 setopt NO_GLOB_SUBST
34723 TIMESTAMP='$TIMESTAMP'
34729 ac_aux_dir='$ac_aux_dir'
34732 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
34733 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
34734 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
34736 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
34737 # Capture the value of LINGUAS because we need it to compute CATALOGS.
34738 LINGUAS="${LINGUAS-%UNSET%}"
34740 GDB_NM_FILE=$GDB_NM_FILE
34744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
34746 # Handling of arguments.
34747 for ac_config_target
in $ac_config_targets
34749 case $ac_config_target in
34750 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
34751 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
34752 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
34753 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
34754 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
34755 "nm.h") CONFIG_LINKS
="$CONFIG_LINKS nm.h:$GDB_NM_FILE" ;;
34756 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
34757 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
34758 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
34759 "gdb-gdb.py") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.py" ;;
34760 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
34761 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
34763 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
34768 # If the user did not use the arguments to specify the items to instantiate,
34769 # then the envvar interface is used. Set only those that are not.
34770 # We use the long form for the default assignment because of an extremely
34771 # bizarre bug on SunOS 4.1.3.
34772 if $ac_need_defaults; then
34773 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
34774 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
34775 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
34776 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
34779 # Have a temporary directory for convenience. Make it in the build tree
34780 # simply because there is no reason against having it here, and in addition,
34781 # creating and moving files from /tmp can sometimes cause problems.
34782 # Hook for its removal unless debugging.
34783 # Note that there is a small window in which the directory will not be cleaned:
34784 # after its creation but before its name has been assigned to `$tmp'.
34788 trap 'exit_status=$?
34789 : "${ac_tmp:=$tmp}"
34790 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
34792 trap 'as_fn_exit 1' 1 2 13 15
34794 # Create a (secure) tmp directory for tmp files.
34797 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34801 tmp
=.
/conf$$
-$RANDOM
34802 (umask 077 && mkdir
"$tmp")
34803 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
34806 # Set up the scripts for CONFIG_FILES section.
34807 # No need to generate them if there are no CONFIG_FILES.
34808 # This happens for instance with `./config.status config.h'.
34809 if test -n "$CONFIG_FILES"; then
34811 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
34812 ac_cs_awk_getline
=:
34813 ac_cs_awk_pipe_init
=
34814 ac_cs_awk_read_file
='
34815 while ((getline aline < (F[key])) > 0)
34818 ac_cs_awk_pipe_fini
=
34820 ac_cs_awk_getline
=false
34821 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
34822 ac_cs_awk_read_file
='
34824 print "cat " F[key] " &&"
34825 '$ac_cs_awk_pipe_init
34826 # The final `:' finishes the AND list.
34827 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
34829 ac_cr
=`echo X | tr X '\015'`
34830 # On cygwin, bash can eat \r inside `` if the user requested igncr.
34831 # But we know of no other shell where ac_cr would be empty at this
34832 # point, so we can use a bashism as a fallback.
34833 if test "x$ac_cr" = x
; then
34834 eval ac_cr
=\$
\'\\r
\'
34836 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34837 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
34840 ac_cs_awk_cr
=$ac_cr
34843 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
34846 # Create commands to substitute file output variables.
34848 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
34849 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
34850 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
34853 } >conf$
$files.sh
&&
34854 . .
/conf$
$files.sh ||
34855 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
34856 rm -f conf$
$files.sh
34859 echo "cat >conf$$subs.awk <<_ACEOF" &&
34860 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34862 } >conf$$subs.sh ||
34863 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
34864 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
34866 for ac_last_try in false false false false false :; do
34867 . ./conf$$subs.sh ||
34868 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
34870 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
34871 if test $ac_delim_n = $ac_delim_num; then
34873 elif $ac_last_try; then
34874 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
34876 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
34879 rm -f conf$$subs.sh
34881 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34882 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
34886 s/^/S["/; s
/!.
*/"]=/
34896 s/\(.\{148\}\)..*/\1/
34898 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
34903 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
34910 s/\(.\{148\}\)..*/\1/
34912 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
34916 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
34921 ' <conf$$subs.awk | sed '
34926 ' >>$CONFIG_STATUS || ac_write_fail=1
34927 rm -f conf$$subs.awk
34928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34930 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
34931 for (key in S) S_is_set[key] = 1
34933 \$ac_cs_awk_pipe_init
34937 nfields = split(line, field, "@
")
34939 len = length(field[1])
34940 for (i = 2; i < nfields; i++) {
34942 keylen = length(key)
34943 if (S_is_set[key]) {
34945 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34946 len += length(value) + length(field[++i])
34951 if (nfields == 3 && !substed) {
34953 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
34954 \$ac_cs_awk_read_file
34960 \$ac_cs_awk_pipe_fini
34963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34964 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34965 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
34968 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
34969 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
34972 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
34973 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
34974 # trailing colons and then remove the whole line if VPATH becomes empty
34975 # (actually we leave an empty line to preserve line numbers).
34976 if test "x
$srcdir" = x.; then
34977 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
34995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34996 fi # test -n "$CONFIG_FILES"
34998 # Set up the scripts for CONFIG_HEADERS section.
34999 # No need to generate them if there are no CONFIG_HEADERS.
35000 # This happens for instance with `./config.status Makefile'.
35001 if test -n "$CONFIG_HEADERS"; then
35002 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
35006 # Transform confdefs.h into an awk script `defines.awk', embedded as
35007 # here-document in config.status, that substitutes the proper values into
35008 # config.h.in to produce config.h.
35010 # Create a delimiter string that does not exist in confdefs.h, to ease
35011 # handling of long lines.
35013 for ac_last_try in false false :; do
35014 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
35015 if test -z "$ac_tt"; then
35017 elif $ac_last_try; then
35018 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
35020 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
35024 # For the awk script, D is an array of macro values keyed by name,
35025 # likewise P contains macro parameters if any. Preserve backslash
35026 # newline sequences.
35028 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35030 s/.\{148\}/&'"$ac_delim"'/g
35033 s/^[ ]*#[ ]*define[ ][ ]*/ /
35040 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
35042 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
35046 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
35047 D["\
1"]=" \
3\\\\\\n
"\\/p
35049 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
35054 s/.\{148\}/&'"$ac_delim"'/g
35059 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
35062 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
35064 ' <confdefs.h | sed '
35065 s/'"$ac_delim"'/"\\\
35066 "/g' >>$CONFIG_STATUS || ac_write_fail=1
35068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35069 for (key in D) D_is_set[key] = 1
35072 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
35074 split(line, arg, " ")
35075 if (arg[1] == "#") {
35079 defundef
= substr
(arg
[1], 2)
35082 split(mac1
, mac2
, "(") #)
35084 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
35085 if (D_is_set
[macro
]) {
35086 # Preserve the white space surrounding the "#".
35087 print prefix
"define", macro P
[macro
] D
[macro
]
35090 # Replace #undef with comments. This is necessary, for example,
35091 # in the case of _POSIX_SOURCE, which is predefined and required
35092 # on some systems where configure will not decide to define it.
35093 if (defundef
== "undef") {
35094 print
"/*", prefix defundef
, macro
, "*/"
35102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
35103 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
35104 fi # test -n "$CONFIG_HEADERS"
35107 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
35112 :[FHLC
]) ac_mode
=$ac_tag; continue;;
35114 case $ac_mode$ac_tag in
35116 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
35117 :[FH
]-) ac_tag
=-:-;;
35118 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
35135 -) ac_f
="$ac_tmp/stdin";;
35136 *) # Look for the file first in the build tree, then in the source tree
35137 # (if the path is not absolute). The absolute path cannot be DOS-style,
35138 # because $ac_f cannot contain `:'.
35142 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
35144 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
35146 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
35147 as_fn_append ac_file_inputs
" '$ac_f'"
35150 # Let's still pretend it is `configure' which instantiates (i.e., don't
35151 # use $as_me), people would be surprised to read:
35152 # /* config.h. Generated by config.status. */
35153 configure_input
='Generated from '`
35154 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
35156 if test x
"$ac_file" != x-
; then
35157 configure_input
="$ac_file. $configure_input"
35158 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
35159 $as_echo "$as_me: creating $ac_file" >&6;}
35161 # Neutralize special characters interpreted by sed in replacement strings.
35162 case $configure_input in #(
35163 *\
&* |
*\|
* |
*\\* )
35164 ac_sed_conf_input
=`$as_echo "$configure_input" |
35165 sed 's/[\\\\&|]/\\\\&/g'`;; #(
35166 *) ac_sed_conf_input
=$configure_input;;
35170 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
35171 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
35176 ac_dir
=`$as_dirname -- "$ac_file" ||
35177 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35178 X"$ac_file" : 'X\(//\)[^/]' \| \
35179 X"$ac_file" : 'X\(//\)$' \| \
35180 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35181 $as_echo X"$ac_file" |
35182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35186 /^X\(\/\/\)[^/].*/{
35199 as_dir
="$ac_dir"; as_fn_mkdir_p
35203 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
35205 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
35206 # A ".." for each directory in $ac_dir_suffix.
35207 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
35208 case $ac_top_builddir_sub in
35209 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
35210 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
35213 ac_abs_top_builddir
=$ac_pwd
35214 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
35215 # for backward compatibility:
35216 ac_top_builddir
=$ac_top_build_prefix
35219 .
) # We are building in place.
35221 ac_top_srcdir
=$ac_top_builddir_sub
35222 ac_abs_top_srcdir
=$ac_pwd ;;
35223 [\\/]* | ?
:[\\/]* ) # Absolute name.
35224 ac_srcdir
=$srcdir$ac_dir_suffix;
35225 ac_top_srcdir
=$srcdir
35226 ac_abs_top_srcdir
=$srcdir ;;
35227 *) # Relative name.
35228 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
35229 ac_top_srcdir
=$ac_top_build_prefix$srcdir
35230 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
35232 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
35242 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
35243 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
35247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
35248 # If the template does not know about datarootdir, expand it.
35249 # FIXME: This hack should be removed a few years after 2.60.
35250 ac_datarootdir_hack
=; ac_datarootdir_seen
=
35261 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
35262 *datarootdir
*) ac_datarootdir_seen
=yes;;
35263 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
35264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35265 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35268 ac_datarootdir_hack='
35269 s&@datadir@&$datadir&g
35270 s&@docdir@&$docdir&g
35271 s&@infodir@&$infodir&g
35272 s&@localedir@&$localedir&g
35273 s&@mandir@&$mandir&g
35274 s&\\\${datarootdir}&$datarootdir&g' ;;
35278 # Neutralize VPATH when `$srcdir' = `.'.
35279 # Shell code in configure.ac might set extrasub.
35280 # FIXME: do we really want to maintain this feature?
35281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35282 ac_sed_extra="$ac_vpsub
35285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
35287 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
35288 s|@configure_input@|
$ac_sed_conf_input|
;t t
35289 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
35290 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
35291 s
&@srcdir@
&$ac_srcdir&;t t
35292 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
35293 s
&@top_srcdir@
&$ac_top_srcdir&;t t
35294 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
35295 s
&@builddir@
&$ac_builddir&;t t
35296 s
&@abs_builddir@
&$ac_abs_builddir&;t t
35297 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
35298 s
&@INSTALL@
&$ac_INSTALL&;t t
35299 $ac_datarootdir_hack
35301 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
35302 if $ac_cs_awk_getline; then
35303 $AWK -f "$ac_tmp/subs.
awk"
35305 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
35307 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
35309 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35310 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
35311 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
35312 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
35313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
35314 which seems to be undefined. Please make sure it is defined" >&5
35315 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
35316 which seems to be undefined. Please make sure it is defined" >&2;}
35318 rm -f "$ac_tmp/stdin"
35320 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
35321 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
35323 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35329 if test x"$ac_file" != x-; then
35331 $as_echo "/* $configure_input */" \
35332 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
35333 } >"$ac_tmp/config.h" \
35334 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35335 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
35336 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
35337 $as_echo "$as_me: $ac_file is unchanged" >&6;}
35340 mv "$ac_tmp/config.h" "$ac_file" \
35341 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35344 $as_echo "/* $configure_input */" \
35345 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
35346 || as_fn_error $? "could not create -" "$LINENO" 5
35354 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
35357 # Prefer the file from the source tree if names are identical.
35358 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
35359 ac_source=$srcdir/$ac_source
35362 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
35363 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
35365 if test ! -r "$ac_source"; then
35366 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
35370 # Try a relative symlink, then a hard link, then a copy.
35372 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
35373 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
35375 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
35376 ln "$ac_source" "$ac_file" 2>/dev/null ||
35377 cp -p "$ac_source" "$ac_file" ||
35378 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
35381 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
35382 $as_echo "$as_me: executing $ac_file commands" >&6;}
35387 case $ac_file$ac_mode in
35388 "config.h":H) echo > stamp-h ;;
35391 # See if we are running on zsh, and set the options which allow our
35392 # commands through without removal of \ escapes.
35393 if test -n "${ZSH_VERSION+set}" ; then
35394 setopt NO_GLOB_SUBST
35397 cfgfile="${ofile}T"
35398 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
35401 cat <<_LT_EOF >> "$cfgfile"
35404 # `$ECHO "$ofile" | sed 's
%^.
*/%%'` - Provide generalized library-building support services.
35405 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
35406 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
35407 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
35409 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
35410 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
35411 # Written by Gordon Matzigkeit, 1996
35413 # This file is part of GNU Libtool.
35415 # GNU Libtool is free software; you can redistribute it and/or
35416 # modify it under the terms of the GNU General Public License as
35417 # published by the Free Software Foundation; either version 2 of
35418 # the License, or (at your option) any later version.
35420 # As a special exception to the GNU General Public License,
35421 # if you distribute this file as part of a program or library that
35422 # is built using GNU Libtool, you may include this file under the
35423 # same distribution terms that you use for the rest of that program.
35425 # GNU Libtool is distributed in the hope that it will be useful,
35426 # but WITHOUT ANY WARRANTY; without even the implied warranty of
35427 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35428 # GNU General Public License for more details.
35430 # You should have received a copy of the GNU General Public License
35431 # along with GNU Libtool; see the file COPYING. If not, a copy
35432 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
35433 # obtained by writing to the Free Software Foundation, Inc.,
35434 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35437 # The names of the tagged configurations supported by this script.
35438 available_tags="CXX "
35440 # ### BEGIN LIBTOOL CONFIG
35442 # Which release of libtool.m4 was used?
35443 macro_version=$macro_version
35444 macro_revision=$macro_revision
35446 # Whether or not to build shared libraries.
35447 build_libtool_libs=$enable_shared
35449 # Whether or not to build static libraries.
35450 build_old_libs=$enable_static
35452 # What type of objects to build.
35455 # Whether or not to optimize for fast installation.
35456 fast_install=$enable_fast_install
35458 # Shell to use when invoking shell scripts.
35461 # An echo program that protects backslashes.
35465 host_alias=$host_alias
35469 # The build system.
35470 build_alias=$build_alias
35474 # A sed program that does not truncate output.
35477 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
35478 Xsed="\$SED -e 1s/^X//"
35480 # A grep program that handles long lines.
35486 # A literal string matcher.
35489 # A BSD- or MS-compatible name lister.
35492 # Whether we need soft or hard links.
35495 # What is the maximum length of a command?
35496 max_cmd_len=$max_cmd_len
35498 # Object file suffix (normally "o").
35501 # Executable file suffix (normally "").
35504 # whether the shell understands "unset".
35507 # turn spaces into newlines.
35510 # turn newlines into spaces.
35513 # An object symbol dumper.
35514 OBJDUMP=$lt_OBJDUMP
35516 # Method to check whether dependent libraries are shared objects.
35517 deplibs_check_method=$lt_deplibs_check_method
35519 # Command to use when deplibs_check_method == "file_magic".
35520 file_magic_cmd=$lt_file_magic_cmd
35524 AR_FLAGS=$lt_AR_FLAGS
35526 # A symbol stripping program.
35529 # Commands used to install an old-style archive.
35531 old_postinstall_cmds=$lt_old_postinstall_cmds
35532 old_postuninstall_cmds=$lt_old_postuninstall_cmds
35534 # Whether to use a lock for old archive extraction.
35535 lock_old_archive_extraction=$lock_old_archive_extraction
35540 # LTCC compiler flags.
35541 LTCFLAGS=$lt_CFLAGS
35543 # Take the output of nm and produce a listing of raw symbols and C names.
35544 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
35546 # Transform the output of nm in a proper C declaration.
35547 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
35549 # Transform the output of nm in a C name address pair.
35550 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
35552 # Transform the output of nm in a C name address pair when lib prefix is needed.
35553 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
35555 # The name of the directory that contains temporary libtool files.
35558 # Used to examine libraries when file_magic_cmd begins with "file".
35559 MAGIC_CMD=$MAGIC_CMD
35561 # Must we lock files when doing compilation?
35562 need_locks=$lt_need_locks
35564 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
35565 DSYMUTIL=$lt_DSYMUTIL
35567 # Tool to change global to local symbols on Mac OS X.
35570 # Tool to manipulate fat objects and archives on Mac OS X.
35573 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
35576 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
35577 OTOOL64=$lt_OTOOL64
35579 # Old archive suffix (normally "a").
35582 # Shared library suffix (normally ".so").
35583 shrext_cmds=$lt_shrext_cmds
35585 # The commands to extract the exported symbol list from a shared archive.
35586 extract_expsyms_cmds=$lt_extract_expsyms_cmds
35588 # Variables whose values should be saved in libtool wrapper scripts and
35589 # restored at link time.
35590 variables_saved_for_relink=$lt_variables_saved_for_relink
35592 # Do we need the "lib" prefix for modules?
35593 need_lib_prefix=$need_lib_prefix
35595 # Do we need a version for libraries?
35596 need_version=$need_version
35598 # Library versioning type.
35599 version_type=$version_type
35601 # Shared library runtime path variable.
35602 runpath_var=$runpath_var
35604 # Shared library path variable.
35605 shlibpath_var=$shlibpath_var
35607 # Is shlibpath searched before the hard-coded library search path?
35608 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35610 # Format of library name prefix.
35611 libname_spec=$lt_libname_spec
35613 # List of archive names. First name is the real one, the rest are links.
35614 # The last name is the one that the linker finds with -lNAME
35615 library_names_spec=$lt_library_names_spec
35617 # The coded name of the library, if different from the real name.
35618 soname_spec=$lt_soname_spec
35620 # Permission mode override for installation of shared libraries.
35621 install_override_mode=$lt_install_override_mode
35623 # Command to use after installation of a shared archive.
35624 postinstall_cmds=$lt_postinstall_cmds
35626 # Command to use after uninstallation of a shared archive.
35627 postuninstall_cmds=$lt_postuninstall_cmds
35629 # Commands used to finish a libtool library installation in a directory.
35630 finish_cmds=$lt_finish_cmds
35632 # As "finish_cmds", except a single script fragment to be evaled but
35634 finish_eval=$lt_finish_eval
35636 # Whether we should hardcode library paths into libraries.
35637 hardcode_into_libs=$hardcode_into_libs
35639 # Compile-time system search path for libraries.
35640 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35642 # Run-time system search path for libraries.
35643 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
35645 # Whether dlopen is supported.
35646 dlopen_support=$enable_dlopen
35648 # Whether dlopen of programs is supported.
35649 dlopen_self=$enable_dlopen_self
35651 # Whether dlopen of statically linked programs is supported.
35652 dlopen_self_static=$enable_dlopen_self_static
35654 # Commands to strip libraries.
35655 old_striplib=$lt_old_striplib
35656 striplib=$lt_striplib
35659 # The linker used to build libraries.
35662 # How to create reloadable object files.
35663 reload_flag=$lt_reload_flag
35664 reload_cmds=$lt_reload_cmds
35666 # Commands used to build an old-style archive.
35667 old_archive_cmds=$lt_old_archive_cmds
35669 # A language specific compiler.
35672 # Is the compiler the GNU compiler?
35675 # Compiler flag to turn off builtin functions.
35676 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35678 # How to pass a linker flag through the compiler.
35679 wl=$lt_lt_prog_compiler_wl
35681 # Additional compiler flags for building library objects.
35682 pic_flag=$lt_lt_prog_compiler_pic
35684 # Compiler flag to prevent dynamic linking.
35685 link_static_flag=$lt_lt_prog_compiler_static
35687 # Does compiler simultaneously support -c and -o options?
35688 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35690 # Whether or not to add -lc for building shared libraries.
35691 build_libtool_need_lc=$archive_cmds_need_lc
35693 # Whether or not to disallow shared libs when runtime libs are static.
35694 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35696 # Compiler flag to allow reflexive dlopens.
35697 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35699 # Compiler flag to generate shared objects directly from archives.
35700 whole_archive_flag_spec=$lt_whole_archive_flag_spec
35702 # Whether the compiler copes with passing no objects directly.
35703 compiler_needs_object=$lt_compiler_needs_object
35705 # Create an old-style archive from a shared archive.
35706 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35708 # Create a temporary old-style archive to link instead of a shared archive.
35709 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35711 # Commands used to build a shared archive.
35712 archive_cmds=$lt_archive_cmds
35713 archive_expsym_cmds=$lt_archive_expsym_cmds
35715 # Commands used to build a loadable module if different from building
35716 # a shared archive.
35717 module_cmds=$lt_module_cmds
35718 module_expsym_cmds=$lt_module_expsym_cmds
35720 # Whether we are building with GNU ld or not.
35721 with_gnu_ld=$lt_with_gnu_ld
35723 # Flag that allows shared libraries with undefined symbols to be built.
35724 allow_undefined_flag=$lt_allow_undefined_flag
35726 # Flag that enforces no undefined symbols.
35727 no_undefined_flag=$lt_no_undefined_flag
35729 # Flag to hardcode \$libdir into a binary during linking.
35730 # This must work even if \$libdir does not exist
35731 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35733 # If ld is used when linking, flag to hardcode \$libdir into a binary
35734 # during linking. This must work even if \$libdir does not exist.
35735 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
35737 # Whether we need a single "-rpath" flag with a separated argument.
35738 hardcode_libdir_separator=$lt_hardcode_libdir_separator
35740 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35741 # DIR into the resulting binary.
35742 hardcode_direct=$hardcode_direct
35744 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35745 # DIR into the resulting binary and the resulting library dependency is
35746 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35747 # library is relocated.
35748 hardcode_direct_absolute=$hardcode_direct_absolute
35750 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35751 # into the resulting binary.
35752 hardcode_minus_L=$hardcode_minus_L
35754 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35755 # into the resulting binary.
35756 hardcode_shlibpath_var=$hardcode_shlibpath_var
35758 # Set to "yes" if building a shared library automatically hardcodes DIR
35759 # into the library and all subsequent libraries and executables linked
35761 hardcode_automatic=$hardcode_automatic
35763 # Set to yes if linker adds runtime paths of dependent libraries
35764 # to runtime path list.
35765 inherit_rpath=$inherit_rpath
35767 # Whether libtool must link a program against all its dependency libraries.
35768 link_all_deplibs=$link_all_deplibs
35770 # Fix the shell variable \$srcfile for the compiler.
35771 fix_srcfile_path=$lt_fix_srcfile_path
35773 # Set to "yes" if exported symbols are required.
35774 always_export_symbols=$always_export_symbols
35776 # The commands to list exported symbols.
35777 export_symbols_cmds=$lt_export_symbols_cmds
35779 # Symbols that should not be listed in the preloaded symbols.
35780 exclude_expsyms=$lt_exclude_expsyms
35782 # Symbols that must always be exported.
35783 include_expsyms=$lt_include_expsyms
35785 # Commands necessary for linking programs (against libraries) with templates.
35786 prelink_cmds=$lt_prelink_cmds
35788 # Specify filename containing input files.
35789 file_list_spec=$lt_file_list_spec
35791 # How to hardcode a shared library path into an executable.
35792 hardcode_action=$hardcode_action
35794 # The directories searched by this compiler when creating a shared library.
35795 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
35797 # Dependencies to place before and after the objects being linked to
35798 # create a shared library.
35799 predep_objects=$lt_predep_objects
35800 postdep_objects=$lt_postdep_objects
35801 predeps=$lt_predeps
35802 postdeps=$lt_postdeps
35804 # The library search path used internally by the compiler when linking
35805 # a shared library.
35806 compiler_lib_search_path=$lt_compiler_lib_search_path
35808 # ### END LIBTOOL CONFIG
35814 cat <<\_LT_EOF >> "$cfgfile"
35815 # AIX sometimes has problems with the GCC collect2 program. For some
35816 # reason, if we set the COLLECT_NAMES environment variable, the problems
35817 # vanish in a puff of smoke.
35818 if test "X${COLLECT_NAMES+set}" != Xset; then
35820 export COLLECT_NAMES
35827 ltmain="$ac_aux_dir/ltmain.sh"
35830 # We use sed instead of cat because bash on DJGPP gets confused if
35831 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35832 # text mode, it properly converts lines to CR/LF. This bash problem
35833 # is reportedly fixed, but why not run on old versions too?
35834 sed '/^
# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35835 ||
(rm -f "$cfgfile"; exit 1)
35839 cat << \_LT_EOF
>> "$cfgfile"
35841 # func_dirname file append nondir_replacement
35842 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
35843 # otherwise set result to NONDIR_REPLACEMENT.
35847 */*) func_dirname_result
="${1%/*}${2}" ;;
35848 * ) func_dirname_result
="${3}" ;;
35852 # func_basename file
35855 func_basename_result
="${1##*/}"
35858 # func_dirname_and_basename file append nondir_replacement
35859 # perform func_basename and func_dirname in a single function
35861 # dirname: Compute the dirname of FILE. If nonempty,
35862 # add APPEND to the result, otherwise set result
35863 # to NONDIR_REPLACEMENT.
35864 # value returned in "$func_dirname_result"
35865 # basename: Compute filename of FILE.
35866 # value retuned in "$func_basename_result"
35867 # Implementation must be kept synchronized with func_dirname
35868 # and func_basename. For efficiency, we do not delegate to
35869 # those functions but instead duplicate the functionality here.
35870 func_dirname_and_basename
()
35873 */*) func_dirname_result
="${1%/*}${2}" ;;
35874 * ) func_dirname_result
="${3}" ;;
35876 func_basename_result
="${1##*/}"
35879 # func_stripname prefix suffix name
35880 # strip PREFIX and SUFFIX off of NAME.
35881 # PREFIX and SUFFIX must not contain globbing or regex special
35882 # characters, hashes, percent signs, but SUFFIX may contain a leading
35883 # dot (in which case that matches only a dot).
35886 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
35887 # positional parameters, so assign one to ordinary parameter first.
35888 func_stripname_result
=${3}
35889 func_stripname_result
=${func_stripname_result#"${1}"}
35890 func_stripname_result
=${func_stripname_result%"${2}"}
35896 func_opt_split_opt
=${1%%=*}
35897 func_opt_split_arg
=${1#*=}
35904 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
35905 *) func_lo2o_result
=${1} ;;
35909 # func_xform libobj-or-source
35912 func_xform_result
=${1%.*}.lo
35915 # func_arith arithmetic-term...
35918 func_arith_result
=$
(( $
* ))
35922 # STRING may not start with a hyphen.
35925 func_len_result
=${#1}
35930 *) # Bourne compatible functions.
35931 cat << \_LT_EOF
>> "$cfgfile"
35933 # func_dirname file append nondir_replacement
35934 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
35935 # otherwise set result to NONDIR_REPLACEMENT.
35938 # Extract subdirectory from the argument.
35939 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
35940 if test "X$func_dirname_result" = "X${1}"; then
35941 func_dirname_result
="${3}"
35943 func_dirname_result
="$func_dirname_result${2}"
35947 # func_basename file
35950 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
35954 # func_stripname prefix suffix name
35955 # strip PREFIX and SUFFIX off of NAME.
35956 # PREFIX and SUFFIX must not contain globbing or regex special
35957 # characters, hashes, percent signs, but SUFFIX may contain a leading
35958 # dot (in which case that matches only a dot).
35959 # func_strip_suffix prefix name
35963 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
35964 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
35969 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
35970 my_sed_long_arg
='1s/^-[^=]*=//'
35975 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
35976 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
35982 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
35985 # func_xform libobj-or-source
35988 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
35991 # func_arith arithmetic-term...
35994 func_arith_result
=`expr "$@"`
35998 # STRING may not start with a hyphen.
36001 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
36007 case $lt_shell_append in
36009 cat << \_LT_EOF
>> "$cfgfile"
36011 # func_append var value
36012 # Append VALUE to the end of shell variable VAR.
36020 cat << \_LT_EOF
>> "$cfgfile"
36022 # func_append var value
36023 # Append VALUE to the end of shell variable VAR.
36034 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
36035 ||
(rm -f "$cfgfile"; exit 1)
36037 mv -f "$cfgfile" "$ofile" ||
36038 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
36042 cat <<_LT_EOF >> "$ofile"
36044 # ### BEGIN LIBTOOL TAG CONFIG: CXX
36046 # The linker used to build libraries.
36049 # How to create reloadable object files.
36050 reload_flag=$lt_reload_flag_CXX
36051 reload_cmds=$lt_reload_cmds_CXX
36053 # Commands used to build an old-style archive.
36054 old_archive_cmds=$lt_old_archive_cmds_CXX
36056 # A language specific compiler.
36057 CC=$lt_compiler_CXX
36059 # Is the compiler the GNU compiler?
36062 # Compiler flag to turn off builtin functions.
36063 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
36065 # How to pass a linker flag through the compiler.
36066 wl=$lt_lt_prog_compiler_wl_CXX
36068 # Additional compiler flags for building library objects.
36069 pic_flag=$lt_lt_prog_compiler_pic_CXX
36071 # Compiler flag to prevent dynamic linking.
36072 link_static_flag=$lt_lt_prog_compiler_static_CXX
36074 # Does compiler simultaneously support -c and -o options?
36075 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
36077 # Whether or not to add -lc for building shared libraries.
36078 build_libtool_need_lc=$archive_cmds_need_lc_CXX
36080 # Whether or not to disallow shared libs when runtime libs are static.
36081 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
36083 # Compiler flag to allow reflexive dlopens.
36084 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
36086 # Compiler flag to generate shared objects directly from archives.
36087 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
36089 # Whether the compiler copes with passing no objects directly.
36090 compiler_needs_object=$lt_compiler_needs_object_CXX
36092 # Create an old-style archive from a shared archive.
36093 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
36095 # Create a temporary old-style archive to link instead of a shared archive.
36096 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
36098 # Commands used to build a shared archive.
36099 archive_cmds=$lt_archive_cmds_CXX
36100 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
36102 # Commands used to build a loadable module if different from building
36103 # a shared archive.
36104 module_cmds=$lt_module_cmds_CXX
36105 module_expsym_cmds=$lt_module_expsym_cmds_CXX
36107 # Whether we are building with GNU ld or not.
36108 with_gnu_ld=$lt_with_gnu_ld_CXX
36110 # Flag that allows shared libraries with undefined symbols to be built.
36111 allow_undefined_flag=$lt_allow_undefined_flag_CXX
36113 # Flag that enforces no undefined symbols.
36114 no_undefined_flag=$lt_no_undefined_flag_CXX
36116 # Flag to hardcode \$libdir into a binary during linking.
36117 # This must work even if \$libdir does not exist
36118 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
36120 # If ld is used when linking, flag to hardcode \$libdir into a binary
36121 # during linking. This must work even if \$libdir does not exist.
36122 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
36124 # Whether we need a single "-rpath" flag with a separated argument.
36125 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
36127 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36128 # DIR into the resulting binary.
36129 hardcode_direct=$hardcode_direct_CXX
36131 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36132 # DIR into the resulting binary and the resulting library dependency is
36133 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
36134 # library is relocated.
36135 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
36137 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
36138 # into the resulting binary.
36139 hardcode_minus_L=$hardcode_minus_L_CXX
36141 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
36142 # into the resulting binary.
36143 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
36145 # Set to "yes" if building a shared library automatically hardcodes DIR
36146 # into the library and all subsequent libraries and executables linked
36148 hardcode_automatic=$hardcode_automatic_CXX
36150 # Set to yes if linker adds runtime paths of dependent libraries
36151 # to runtime path list.
36152 inherit_rpath=$inherit_rpath_CXX
36154 # Whether libtool must link a program against all its dependency libraries.
36155 link_all_deplibs=$link_all_deplibs_CXX
36157 # Fix the shell variable \$srcfile for the compiler.
36158 fix_srcfile_path=$lt_fix_srcfile_path_CXX
36160 # Set to "yes" if exported symbols are required.
36161 always_export_symbols=$always_export_symbols_CXX
36163 # The commands to list exported symbols.
36164 export_symbols_cmds=$lt_export_symbols_cmds_CXX
36166 # Symbols that should not be listed in the preloaded symbols.
36167 exclude_expsyms=$lt_exclude_expsyms_CXX
36169 # Symbols that must always be exported.
36170 include_expsyms=$lt_include_expsyms_CXX
36172 # Commands necessary for linking programs (against libraries) with templates.
36173 prelink_cmds=$lt_prelink_cmds_CXX
36175 # Specify filename containing input files.
36176 file_list_spec=$lt_file_list_spec_CXX
36178 # How to hardcode a shared library path into an executable.
36179 hardcode_action=$hardcode_action_CXX
36181 # The directories searched by this compiler when creating a shared library.
36182 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
36184 # Dependencies to place before and after the objects being linked to
36185 # create a shared library.
36186 predep_objects=$lt_predep_objects_CXX
36187 postdep_objects=$lt_postdep_objects_CXX
36188 predeps=$lt_predeps_CXX
36189 postdeps=$lt_postdeps_CXX
36191 # The library search path used internally by the compiler when linking
36192 # a shared library.
36193 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
36195 # ### END LIBTOOL TAG CONFIG: CXX
36199 "depdir":C
) $SHELL $ac_aux_dir/mkinstalldirs
$DEPDIR ;;
36201 for ac_file
in $CONFIG_FILES; do
36202 # Support "outfile[:infile[:infile...]]"
36204 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
36206 # PO directories have a Makefile.in generated from Makefile.in.in.
36207 case "$ac_file" in */Makefile.
in)
36208 # Adjust a relative srcdir.
36209 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
36210 ac_dir_suffix
=/`echo "$ac_dir"|sed 's%^\./%%'`
36211 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
36212 # In autoconf-2.13 it is called $ac_given_srcdir.
36213 # In autoconf-2.50 it is called $srcdir.
36214 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
36215 case "$ac_given_srcdir" in
36216 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
36217 /*) top_srcdir
="$ac_given_srcdir" ;;
36218 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
36220 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
36221 rm -f "$ac_dir/POTFILES"
36222 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
36223 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
36224 POMAKEFILEDEPS
="POTFILES.in"
36225 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
36226 # on $ac_dir but don't depend on user-specified configuration
36228 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
36229 # The LINGUAS file contains the set of available languages.
36230 if test -n "$OBSOLETE_ALL_LINGUAS"; then
36231 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" ||
echo "setting ALL_LINGUAS in configure.ac is obsolete"
36233 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
36234 # Hide the ALL_LINGUAS assigment from automake.
36235 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
36236 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
36238 # The set of available languages was given in configure.ac.
36239 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
36241 case "$ac_given_srcdir" in
36243 *) srcdirpre
='$(srcdir)/' ;;
36249 for lang
in $ALL_LINGUAS; do
36250 POFILES
="$POFILES $srcdirpre$lang.po"
36251 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
36252 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
36253 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
36255 # CATALOGS depends on both $ac_dir and the user's LINGUAS
36256 # environment variable.
36258 if test -n "$ALL_LINGUAS"; then
36259 for presentlang
in $ALL_LINGUAS; do
36261 if test "%UNSET%" != "$LINGUAS"; then
36262 desiredlanguages
="$LINGUAS"
36264 desiredlanguages
="$ALL_LINGUAS"
36266 for desiredlang
in $desiredlanguages; do
36267 # Use the presentlang catalog if desiredlang is
36268 # a. equal to presentlang, or
36269 # b. a variant of presentlang (because in this case,
36270 # presentlang can be used as a fallback for messages
36271 # which are not translated in the desiredlang catalog).
36272 case "$desiredlang" in
36273 "$presentlang"*) useit
=yes;;
36276 if test $useit = yes; then
36277 INST_LINGUAS
="$INST_LINGUAS $presentlang"
36282 if test -n "$INST_LINGUAS"; then
36283 for lang
in $INST_LINGUAS; do
36284 CATALOGS
="$CATALOGS $lang.gmo"
36287 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
36288 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
36289 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
36290 if test -f "$f"; then
36292 *.orig |
*.bak |
*~
) ;;
36293 *) cat "$f" >> "$ac_dir/Makefile" ;;
36301 "nm.h":L
) echo > stamp-nmh
;;
36302 "gcore":F
) chmod +x gcore
;;
36310 ac_clean_files
=$ac_clean_files_save
36312 test $ac_write_fail = 0 ||
36313 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
36316 # configure is writing to config.log, and then calls config.status.
36317 # config.status does its own redirection, appending to config.log.
36318 # Unfortunately, on DOS this fails, as config.log is still kept open
36319 # by configure, so config.status won't be able to write to it; its
36320 # output is simply discarded. So we exec the FD to /dev/null,
36321 # effectively closing config.log, so it can be properly (re)opened and
36322 # appended to by config.status. When coming back to configure, we
36323 # need to make the FD available again.
36324 if test "$no_create" != yes; then
36326 ac_config_status_args
=
36327 test "$silent" = yes &&
36328 ac_config_status_args
="$ac_config_status_args --quiet"
36330 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
36332 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36333 # would make configure fail if this is the last instruction.
36334 $ac_cs_success || as_fn_exit
1
36338 # CONFIG_SUBDIRS section.
36340 if test "$no_recursion" != yes; then
36342 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
36343 # so they do not pile up.
36344 ac_sub_configure_args
=
36346 eval "set x $ac_configure_args"
36350 if test -n "$ac_prev"; then
36355 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
36356 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
36357 ac_prev
=cache_file
;;
36358 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
36359 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
36362 --config-cache |
-C)
36364 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
36366 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
36368 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
36370 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
36372 --disable-option-checking)
36376 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36378 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
36382 # Always prepend --prefix to ensure using the same prefix
36383 # in subdir configurations.
36384 ac_arg
="--prefix=$prefix"
36386 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36388 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
36391 if test "$silent" = yes; then
36392 ac_sub_configure_args
="--silent $ac_sub_configure_args"
36395 # Always prepend --disable-option-checking to silence warnings, since
36396 # different subdirs can have different --enable and --with options.
36397 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
36400 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
36402 # Do not complain, so a configure script can configure whichever
36403 # parts of a large source tree are present.
36404 test -d "$srcdir/$ac_dir" ||
continue
36406 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36407 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
36408 $as_echo "$ac_msg" >&6
36409 as_dir
="$ac_dir"; as_fn_mkdir_p
36413 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36415 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36416 # A ".." for each directory in $ac_dir_suffix.
36417 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36418 case $ac_top_builddir_sub in
36419 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
36420 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
36423 ac_abs_top_builddir
=$ac_pwd
36424 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
36425 # for backward compatibility:
36426 ac_top_builddir
=$ac_top_build_prefix
36429 .
) # We are building in place.
36431 ac_top_srcdir
=$ac_top_builddir_sub
36432 ac_abs_top_srcdir
=$ac_pwd ;;
36433 [\\/]* | ?
:[\\/]* ) # Absolute name.
36434 ac_srcdir
=$srcdir$ac_dir_suffix;
36435 ac_top_srcdir
=$srcdir
36436 ac_abs_top_srcdir
=$srcdir ;;
36437 *) # Relative name.
36438 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
36439 ac_top_srcdir
=$ac_top_build_prefix$srcdir
36440 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
36442 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
36447 # Check for guested configure; otherwise get Cygnus style configure.
36448 if test -f "$ac_srcdir/configure.gnu"; then
36449 ac_sub_configure
=$ac_srcdir/configure.gnu
36450 elif test -f "$ac_srcdir/configure"; then
36451 ac_sub_configure
=$ac_srcdir/configure
36452 elif test -f "$ac_srcdir/configure.in"; then
36453 # This should be Cygnus configure.
36454 ac_sub_configure
=$ac_aux_dir/configure
36456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
36457 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36461 # The recursion is here.
36462 if test -n "$ac_sub_configure"; then
36463 # Make the cache file name correct relative to the subdirectory.
36464 case $cache_file in
36465 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
36466 *) # Relative name.
36467 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
36470 { $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
36471 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36472 # The eval makes quoting arguments work.
36473 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36474 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36475 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
36481 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
36482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
36483 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}