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"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="main.c"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
622 enable_option_checking
=no
624 ac_subst_vars
='LTLIBOBJS
641 HAVE_NATIVE_GCORE_HOST
744 READLINE_TEXI_INCFLAG
773 HAVE_NATIVE_GCORE_TARGET
800 INSTALL_STRIP_PROGRAM
830 MAINTAINER_MODE_FALSE
859 program_transform_name
870 ac_subst_files
='nat_makefile_frag'
872 enable_option_checking
873 enable_maintainer_mode
876 with_separate_debug_dir
878 with_relocated_sources
880 with_auto_load_safe_path
912 enable_source_highlight
918 with_system_gdbinit_dir
920 enable_build_warnings
921 enable_gdb_build_warnings
932 with_libbabeltrace_prefix
933 with_libbabeltrace_type
936 with_libxxhash_prefix
940 ac_precious_vars
='build_alias
962 ac_subdirs_all
='testsuite
965 # Initialize some variables set by options.
967 ac_init_version
=false
968 ac_unrecognized_opts
=
970 # The variables have the same names as the options, with
971 # dashes changed to underlines.
979 program_transform_name
=s
,x
,x
,
987 # Installation directory options.
988 # These are left unexpanded so users can "make install exec_prefix=/foo"
989 # and all the variables that are supposed to be based on exec_prefix
990 # by default will actually change.
991 # Use braces instead of parens because sh, perl, etc. also accept them.
992 # (The list follows the same order as the GNU Coding Standards.)
993 bindir
='${exec_prefix}/bin'
994 sbindir
='${exec_prefix}/sbin'
995 libexecdir
='${exec_prefix}/libexec'
996 datarootdir
='${prefix}/share'
997 datadir
='${datarootdir}'
998 sysconfdir
='${prefix}/etc'
999 sharedstatedir
='${prefix}/com'
1000 localstatedir
='${prefix}/var'
1001 includedir
='${prefix}/include'
1002 oldincludedir
='/usr/include'
1003 docdir
='${datarootdir}/doc/${PACKAGE}'
1004 infodir
='${datarootdir}/info'
1009 libdir
='${exec_prefix}/lib'
1010 localedir
='${datarootdir}/locale'
1011 mandir
='${datarootdir}/man'
1017 # If the previous option needs an argument, assign it.
1018 if test -n "$ac_prev"; then
1019 eval $ac_prev=\
$ac_option
1025 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1030 # Accept the important Cygnus configure options, so we can diagnose typos.
1032 case $ac_dashdash$ac_option in
1036 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1038 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1039 bindir
=$ac_optarg ;;
1041 -build |
--build |
--buil |
--bui |
--bu)
1042 ac_prev
=build_alias
;;
1043 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1044 build_alias
=$ac_optarg ;;
1046 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1047 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1048 ac_prev
=cache_file
;;
1049 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1050 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1051 cache_file
=$ac_optarg ;;
1053 --config-cache |
-C)
1054 cache_file
=config.cache
;;
1056 -datadir |
--datadir |
--datadi |
--datad)
1058 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1059 datadir
=$ac_optarg ;;
1061 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1062 |
--dataroo |
--dataro |
--datar)
1063 ac_prev
=datarootdir
;;
1064 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1065 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1066 datarootdir
=$ac_optarg ;;
1068 -disable-* |
--disable-*)
1069 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1072 as_fn_error $?
"invalid feature name: $ac_useropt"
1073 ac_useropt_orig
=$ac_useropt
1074 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075 case $ac_user_opts in
1077 "enable_
$ac_useropt"
1079 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1080 ac_unrecognized_sep
=', ';;
1082 eval enable_
$ac_useropt=no
;;
1084 -docdir |
--docdir |
--docdi |
--doc |
--do)
1086 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1087 docdir
=$ac_optarg ;;
1089 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1091 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1092 dvidir
=$ac_optarg ;;
1094 -enable-* |
--enable-*)
1095 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1098 as_fn_error $?
"invalid feature name: $ac_useropt"
1099 ac_useropt_orig
=$ac_useropt
1100 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101 case $ac_user_opts in
1103 "enable_
$ac_useropt"
1105 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1106 ac_unrecognized_sep
=', ';;
1108 eval enable_
$ac_useropt=\
$ac_optarg ;;
1110 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1111 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1112 |
--exec |
--exe |
--ex)
1113 ac_prev
=exec_prefix
;;
1114 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1115 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1116 |
--exec=* |
--exe=* |
--ex=*)
1117 exec_prefix
=$ac_optarg ;;
1119 -gas |
--gas |
--ga |
--g)
1120 # Obsolete; use --with-gas.
1123 -help |
--help |
--hel |
--he |
-h)
1124 ac_init_help
=long
;;
1125 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1126 ac_init_help
=recursive
;;
1127 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1128 ac_init_help
=short
;;
1130 -host |
--host |
--hos |
--ho)
1131 ac_prev
=host_alias
;;
1132 -host=* |
--host=* |
--hos=* |
--ho=*)
1133 host_alias
=$ac_optarg ;;
1135 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1137 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1139 htmldir
=$ac_optarg ;;
1141 -includedir |
--includedir |
--includedi |
--included |
--include \
1142 |
--includ |
--inclu |
--incl |
--inc)
1143 ac_prev
=includedir
;;
1144 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1145 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1146 includedir
=$ac_optarg ;;
1148 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1150 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1151 infodir
=$ac_optarg ;;
1153 -libdir |
--libdir |
--libdi |
--libd)
1155 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1156 libdir
=$ac_optarg ;;
1158 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1159 |
--libexe |
--libex |
--libe)
1160 ac_prev
=libexecdir
;;
1161 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1162 |
--libexe=* |
--libex=* |
--libe=*)
1163 libexecdir
=$ac_optarg ;;
1165 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1166 ac_prev
=localedir
;;
1167 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1168 localedir
=$ac_optarg ;;
1170 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1171 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1172 ac_prev
=localstatedir
;;
1173 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1174 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1175 localstatedir
=$ac_optarg ;;
1177 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1179 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1180 mandir
=$ac_optarg ;;
1182 -nfp |
--nfp |
--nf)
1183 # Obsolete; use --without-fp.
1186 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1187 |
--no-cr |
--no-c |
-n)
1190 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1191 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1194 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1195 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1196 |
--oldin |
--oldi |
--old |
--ol |
--o)
1197 ac_prev
=oldincludedir
;;
1198 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1199 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1200 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1201 oldincludedir
=$ac_optarg ;;
1203 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1205 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1206 prefix
=$ac_optarg ;;
1208 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1209 |
--program-pre |
--program-pr |
--program-p)
1210 ac_prev
=program_prefix
;;
1211 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1212 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1213 program_prefix
=$ac_optarg ;;
1215 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1216 |
--program-suf |
--program-su |
--program-s)
1217 ac_prev
=program_suffix
;;
1218 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1219 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1220 program_suffix
=$ac_optarg ;;
1222 -program-transform-name |
--program-transform-name \
1223 |
--program-transform-nam |
--program-transform-na \
1224 |
--program-transform-n |
--program-transform- \
1225 |
--program-transform |
--program-transfor \
1226 |
--program-transfo |
--program-transf \
1227 |
--program-trans |
--program-tran \
1228 |
--progr-tra |
--program-tr |
--program-t)
1229 ac_prev
=program_transform_name
;;
1230 -program-transform-name=* |
--program-transform-name=* \
1231 |
--program-transform-nam=* |
--program-transform-na=* \
1232 |
--program-transform-n=* |
--program-transform-=* \
1233 |
--program-transform=* |
--program-transfor=* \
1234 |
--program-transfo=* |
--program-transf=* \
1235 |
--program-trans=* |
--program-tran=* \
1236 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1237 program_transform_name
=$ac_optarg ;;
1239 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1241 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1242 pdfdir
=$ac_optarg ;;
1244 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1246 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1249 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1250 |
-silent |
--silent |
--silen |
--sile |
--sil)
1253 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1255 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1257 sbindir
=$ac_optarg ;;
1259 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1260 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1261 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1263 ac_prev
=sharedstatedir
;;
1264 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1265 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1266 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1268 sharedstatedir
=$ac_optarg ;;
1270 -site |
--site |
--sit)
1272 -site=* |
--site=* |
--sit=*)
1275 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1277 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1278 srcdir
=$ac_optarg ;;
1280 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1281 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1282 ac_prev
=sysconfdir
;;
1283 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1284 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1285 sysconfdir
=$ac_optarg ;;
1287 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1288 ac_prev
=target_alias
;;
1289 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1290 target_alias
=$ac_optarg ;;
1292 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1295 -version |
--version |
--versio |
--versi |
--vers |
-V)
1296 ac_init_version
=: ;;
1299 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1300 # Reject names that are not valid shell variable names.
1301 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1302 as_fn_error $?
"invalid package name: $ac_useropt"
1303 ac_useropt_orig
=$ac_useropt
1304 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1305 case $ac_user_opts in
1309 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1310 ac_unrecognized_sep
=', ';;
1312 eval with_
$ac_useropt=\
$ac_optarg ;;
1314 -without-* |
--without-*)
1315 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1316 # Reject names that are not valid shell variable names.
1317 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1318 as_fn_error $?
"invalid package name: $ac_useropt"
1319 ac_useropt_orig
=$ac_useropt
1320 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1321 case $ac_user_opts in
1325 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1326 ac_unrecognized_sep
=', ';;
1328 eval with_
$ac_useropt=no
;;
1331 # Obsolete; use --with-x.
1334 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1335 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1336 ac_prev
=x_includes
;;
1337 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1338 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1339 x_includes
=$ac_optarg ;;
1341 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1342 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1343 ac_prev
=x_libraries
;;
1344 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1345 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1346 x_libraries
=$ac_optarg ;;
1348 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1349 Try \`$0 --help' for more information"
1353 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1354 # Reject names that are not valid shell variable names.
1355 case $ac_envvar in #(
1356 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1357 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1359 eval $ac_envvar=\
$ac_optarg
1360 export $ac_envvar ;;
1363 # FIXME: should be removed in autoconf 3.0.
1364 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1365 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1366 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1367 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1373 if test -n "$ac_prev"; then
1374 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1375 as_fn_error $?
"missing argument to $ac_option"
1378 if test -n "$ac_unrecognized_opts"; then
1379 case $enable_option_checking in
1381 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1382 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1386 # Check all directory arguments for consistency.
1387 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1388 datadir sysconfdir sharedstatedir localstatedir includedir \
1389 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1390 libdir localedir mandir
1392 eval ac_val
=\$
$ac_var
1393 # Remove trailing slashes.
1396 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1397 eval $ac_var=\
$ac_val;;
1399 # Be sure to have absolute directory names.
1401 [\\/$
]* | ?
:[\\/]* ) continue;;
1402 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1404 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1407 # There might be people who depend on the old broken behavior: `$host'
1408 # used to hold the argument of --host etc.
1409 # FIXME: To remove some day.
1412 target
=$target_alias
1414 # FIXME: To remove some day.
1415 if test "x$host_alias" != x
; then
1416 if test "x$build_alias" = x
; then
1417 cross_compiling
=maybe
1418 elif test "x$build_alias" != "x$host_alias"; then
1424 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1426 test "$silent" = yes && exec 6>/dev
/null
1429 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1430 ac_ls_di
=`ls -di .` &&
1431 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1432 as_fn_error $?
"working directory cannot be determined"
1433 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1434 as_fn_error $?
"pwd does not report name of working directory"
1437 # Find the source files, if location was not specified.
1438 if test -z "$srcdir"; then
1439 ac_srcdir_defaulted
=yes
1440 # Try the directory containing this script, then the parent directory.
1441 ac_confdir
=`$as_dirname -- "$as_myself" ||
1442 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1443 X"$as_myself" : 'X\(//\)[^/]' \| \
1444 X"$as_myself" : 'X\(//\)$' \| \
1445 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1446 $as_echo X"$as_myself" |
1447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1465 if test ! -r "$srcdir/$ac_unique_file"; then
1469 ac_srcdir_defaulted
=no
1471 if test ! -r "$srcdir/$ac_unique_file"; then
1472 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1473 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1475 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1477 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1479 # When building in place, set srcdir=.
1480 if test "$ac_abs_confdir" = "$ac_pwd"; then
1483 # Remove unnecessary trailing slashes from srcdir.
1484 # Double slashes in file names in object file debugging info
1485 # mess up M-x gdb in Emacs.
1487 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1489 for ac_var
in $ac_precious_vars; do
1490 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1491 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1492 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1493 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1497 # Report the --help message.
1499 if test "$ac_init_help" = "long"; then
1500 # Omit some internal or obsolete options to make the list less imposing.
1501 # This message is too long to be a string in the A/UX 3.1 sh.
1503 \`configure' configures this package to adapt to many kinds of systems.
1505 Usage: $0 [OPTION]... [VAR=VALUE]...
1507 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1508 VAR=VALUE. See below for descriptions of some of the useful variables.
1510 Defaults for the options are specified in brackets.
1513 -h, --help display this help and exit
1514 --help=short display options specific to this package
1515 --help=recursive display the short help of all the included packages
1516 -V, --version display version information and exit
1517 -q, --quiet, --silent do not print \`checking ...' messages
1518 --cache-file=FILE cache test results in FILE [disabled]
1519 -C, --config-cache alias for \`--cache-file=config.cache'
1520 -n, --no-create do not create output files
1521 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1523 Installation directories:
1524 --prefix=PREFIX install architecture-independent files in PREFIX
1525 [$ac_default_prefix]
1526 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1529 By default, \`make install' will install all the files in
1530 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1531 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1532 for instance \`--prefix=\$HOME'.
1534 For better control, use the options below.
1536 Fine tuning of the installation directories:
1537 --bindir=DIR user executables [EPREFIX/bin]
1538 --sbindir=DIR system admin executables [EPREFIX/sbin]
1539 --libexecdir=DIR program executables [EPREFIX/libexec]
1540 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1541 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1542 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1543 --libdir=DIR object code libraries [EPREFIX/lib]
1544 --includedir=DIR C header files [PREFIX/include]
1545 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1546 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1547 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1548 --infodir=DIR info documentation [DATAROOTDIR/info]
1549 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1550 --mandir=DIR man documentation [DATAROOTDIR/man]
1551 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1552 --htmldir=DIR html documentation [DOCDIR]
1553 --dvidir=DIR dvi documentation [DOCDIR]
1554 --pdfdir=DIR pdf documentation [DOCDIR]
1555 --psdir=DIR ps documentation [DOCDIR]
1561 --program-prefix=PREFIX prepend PREFIX to installed program names
1562 --program-suffix=SUFFIX append SUFFIX to installed program names
1563 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1566 --x-includes=DIR X include files are
in DIR
1567 --x-libraries=DIR X library files are
in DIR
1570 --build=BUILD configure
for building on BUILD
[guessed
]
1571 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1572 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1576 if test -n "$ac_init_help"; then
1581 --disable-option-checking ignore unrecognized
--enable/--with options
1582 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1583 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1584 --enable-maintainer-mode
1585 enable make rules and dependencies not useful
(and
1586 sometimes confusing
) to the casual installer
1587 --enable-plugins Enable support
for plugins
1588 --disable-largefile omit support
for large files
1589 --enable-targets=TARGETS
1590 alternative target configurations
1591 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1592 --disable-gdbmi disable machine-interface
(MI
)
1593 --enable-tui enable full-screen terminal user interface
(TUI
)
1594 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1595 --enable-profiling enable profiling of GDB
1596 --enable-codesign=CERT sign gdb with
'codesign -s CERT'
1597 --disable-rpath do not hardcode runtime library paths
1598 --enable-source-highlight
1599 enable source-highlight
for source listings
1600 --enable-werror treat compile warnings as errors
1601 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1602 --enable-gdb-build-warnings
1603 enable GDB specific build-time compiler warnings
if
1605 --enable-ubsan enable undefined behavior sanitizer
(auto
/yes
/no
)
1606 --enable-sim link gdb with simulator
1607 --enable-libbacktrace use libbacktrace to
write a backtrace after a fatal
1609 --enable-libctf Handle .ctf type-info sections
[default
=yes]
1610 --enable-unit-tests Enable the inclusion of unit tests when compiling
1614 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1615 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1616 --with-separate-debug-dir=PATH
1617 look for global separate debug info
in this path
1619 --with-gdb-datadir=PATH
look for global separate data files
in this path
1621 --with-relocated-sources=PATH
1622 automatically relocate this path
for source files
1623 --with-auto-load-dir=PATH
1624 directories from
which to load auto-loaded scripts
1625 [$debugdir:$datadir/auto-load
]
1626 --with-auto-load-safe-path=PATH
1627 directories safe to hold auto-loaded files
1628 [--with-auto-load-dir]
1629 --without-auto-load-safe-path
1630 do not restrict auto-loaded files locations
1631 --with-debuginfod Enable debuginfo lookups with debuginfod
1633 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1634 --with-curses use the curses library instead of the termcap
1636 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1637 --with-bugurl=URL Direct users to URL to report a bug
1638 --with-system-zlib use installed libz
1639 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1640 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1641 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1642 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1643 --with-iconv-bin=PATH specify where to find the iconv program
1644 --with-system-readline use installed readline library
1645 --with-jit-reader-dir=PATH
1646 directory to load the JIT readers from
1647 --with-expat include expat support (auto/yes/no)
1648 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1649 --without-libexpat-prefix don't search
for libexpat
in includedir and libdir
1650 --with-libexpat-type=TYPE
type of library to search
for (auto
/static
/shared
)
1651 --with-libgmp-prefix[=DIR
] search
for libgmp
in DIR
/include and DIR
/lib
1652 --without-libgmp-prefix don
't search for libgmp in includedir and libdir
1653 --with-libgmp-type=TYPE type of library to search for (auto/static/shared)
1654 --with-mpfr include MPFR support (auto/yes/no)
1655 --with-libmpfr-prefix[=DIR] search for libmpfr in DIR/include and DIR/lib
1656 --without-libmpfr-prefix don't search
for libmpfr
in includedir and libdir
1657 --with-libmpfr-type=TYPE
type of library to search
for (auto
/static
/shared
)
1658 --with-python[=PYTHON
] include python support
1659 (auto
/yes
/no
/<python-program
>)
1660 --with-python-libdir[=DIR
]
1661 search
for python
's libraries in DIR
1662 --with-guile[=GUILE] include guile support
1663 (auto/yes/no/<guile-version>/<pkg-config-program>)
1664 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1665 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1666 --without-libipt-prefix don't search
for libipt
in includedir and libdir
1667 --with-libipt-type=TYPE
type of library to search
for (auto
/static
/shared
)
1668 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1669 --with-system-gdbinit=PATH
1670 automatically load a system-wide gdbinit
file
1671 --with-system-gdbinit-dir=PATH
1672 automatically load system-wide gdbinit files from
1674 --with-lzma support lzma compression
(auto
/yes
/no
)
1675 --with-liblzma-prefix[=DIR
] search
for liblzma
in DIR
/include and DIR
/lib
1676 --without-liblzma-prefix don
't search for liblzma in includedir and libdir
1677 --with-liblzma-type=TYPE type of library to search for (auto/static/shared)
1678 --with-tcl directory containing tcl configuration (tclConfig.sh)
1679 --with-tk directory containing tk configuration (tkConfig.sh)
1680 --with-x use the X Window System
1681 --with-babeltrace include babeltrace support (auto/yes/no)
1682 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1683 --without-libbabeltrace-prefix don't search
for libbabeltrace
in includedir and libdir
1684 --with-libbabeltrace-type=TYPE
type of library to search
for (auto
/static
/shared
)
1685 --with-xxhash use libxxhash
for hashing
(faster
) (auto
/yes
/no
)
1686 --with-libxxhash-prefix[=DIR
] search
for libxxhash
in DIR
/include and DIR
/lib
1687 --without-libxxhash-prefix don
't search for libxxhash in includedir and libdir
1688 --with-libxxhash-type=TYPE type of library to search for (auto/static/shared)
1690 Some influential environment variables:
1691 CC C compiler command
1692 CFLAGS C compiler flags
1693 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1694 nonstandard directory <lib dir>
1695 LIBS libraries to pass to the linker, e.g. -l<library>
1696 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1697 you have headers in a nonstandard directory <include dir>
1698 CXX C++ compiler command
1699 CXXFLAGS C++ compiler flags
1701 MAKEINFO Parent configure detects if it is of sufficient version.
1703 Parameters for MAKEINFO.
1704 PKG_CONFIG path to pkg-config utility
1706 directories to add to pkg-config's search path
1708 path overriding pkg-config
's built-in search path
1710 C compiler flags for DEBUGINFOD, overriding pkg-config
1712 linker flags for DEBUGINFOD, overriding pkg-config
1713 YACC The `Yet Another Compiler Compiler' implementation to use.
1714 Defaults to the first program found out of
: `bison -y', `byacc
',
1716 YFLAGS The list of arguments that will be passed by default to
$YACC.
1717 This
script will default YFLAGS to the empty string to avoid a
1718 default value of
`-d' given by some make applications.
1719 XMKMF Path to xmkmf, Makefile generator for X Window System
1721 Use these variables to override the choices made by `configure
' or to help
1722 it to find libraries and programs with nonstandard names/locations.
1724 Report bugs to the package provider.
1729 if test "$ac_init_help" = "recursive"; then
1730 # If there are subdirs, report their specific --help.
1731 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1732 test -d "$ac_dir" ||
1733 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1738 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1740 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.
[\\/]||
'`
1741 # A ".." for each directory in $ac_dir_suffix.
1742 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|
/[^
\\/]*|
/..|g
;s|
/||
'`
1743 case $ac_top_builddir_sub in
1744 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1745 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1748 ac_abs_top_builddir=$ac_pwd
1749 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1750 # for backward compatibility:
1751 ac_top_builddir=$ac_top_build_prefix
1754 .) # We are building in place.
1756 ac_top_srcdir=$ac_top_builddir_sub
1757 ac_abs_top_srcdir=$ac_pwd ;;
1758 [\\/]* | ?:[\\/]* ) # Absolute name.
1759 ac_srcdir=$srcdir$ac_dir_suffix;
1760 ac_top_srcdir=$srcdir
1761 ac_abs_top_srcdir=$srcdir ;;
1763 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1764 ac_top_srcdir=$ac_top_build_prefix$srcdir
1765 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1767 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1769 cd "$ac_dir" || { ac_status=$?; continue; }
1770 # Check for guested configure.
1771 if test -f "$ac_srcdir/configure.gnu"; then
1773 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1774 elif test -f "$ac_srcdir/configure"; then
1776 $SHELL "$ac_srcdir/configure" --help=recursive
1778 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1780 cd "$ac_pwd" || { ac_status=$?; break; }
1784 test -n "$ac_init_help" && exit $ac_status
1785 if $ac_init_version; then
1788 generated by GNU Autoconf 2.69
1790 Copyright (C) 2012 Free Software Foundation, Inc.
1791 This configure script is free software; the Free Software Foundation
1792 gives unlimited permission to copy, distribute and modify it.
1797 ## ------------------------ ##
1798 ## Autoconf initialization. ##
1799 ## ------------------------ ##
1801 # ac_fn_c_try_compile LINENO
1802 # --------------------------
1803 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1804 ac_fn_c_try_compile ()
1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807 rm -f conftest.$ac_objext
1808 if { { ac_try="$ac_compile"
1810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1811 *) ac_try_echo=$ac_try;;
1813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814 $as_echo "$ac_try_echo"; } >&5
1815 (eval "$ac_compile") 2>conftest.err
1817 if test -s conftest.err; then
1818 grep -v '^
*+' conftest.err >conftest.er1
1819 cat conftest.er1 >&5
1820 mv -f conftest.er1 conftest.err
1822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1823 test $ac_status = 0; } && {
1824 test -z "$ac_c_werror_flag" ||
1825 test ! -s conftest.err
1826 } && test -s conftest.$ac_objext; then :
1829 $as_echo "$as_me: failed program was:" >&5
1830 sed 's
/^
/|
/' conftest.$ac_ext >&5
1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835 as_fn_set_status $ac_retval
1837 } # ac_fn_c_try_compile
1839 # ac_fn_cxx_try_compile LINENO
1840 # ----------------------------
1841 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1842 ac_fn_cxx_try_compile ()
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 rm -f conftest.$ac_objext
1846 if { { ac_try="$ac_compile"
1848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849 *) ac_try_echo=$ac_try;;
1851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852 $as_echo "$ac_try_echo"; } >&5
1853 (eval "$ac_compile") 2>conftest.err
1855 if test -s conftest.err; then
1856 grep -v '^
*+' conftest.err >conftest.er1
1857 cat conftest.er1 >&5
1858 mv -f conftest.er1 conftest.err
1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; } && {
1862 test -z "$ac_cxx_werror_flag" ||
1863 test ! -s conftest.err
1864 } && test -s conftest.$ac_objext; then :
1867 $as_echo "$as_me: failed program was:" >&5
1868 sed 's
/^
/|
/' conftest.$ac_ext >&5
1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873 as_fn_set_status $ac_retval
1875 } # ac_fn_cxx_try_compile
1877 # ac_fn_c_try_cpp LINENO
1878 # ----------------------
1879 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 if { { ac_try="$ac_cpp conftest.$ac_ext"
1885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1886 *) ac_try_echo=$ac_try;;
1888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1889 $as_echo "$ac_try_echo"; } >&5
1890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1892 if test -s conftest.err; then
1893 grep -v '^
*+' conftest.err >conftest.er1
1894 cat conftest.er1 >&5
1895 mv -f conftest.er1 conftest.err
1897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898 test $ac_status = 0; } > conftest.i && {
1899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1900 test ! -s conftest.err
1904 $as_echo "$as_me: failed program was:" >&5
1905 sed 's
/^
/|
/' conftest.$ac_ext >&5
1909 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1910 as_fn_set_status $ac_retval
1914 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1915 # -------------------------------------------------------
1916 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1917 # the include files in INCLUDES and setting the cache variable VAR
1919 ac_fn_c_check_header_mongrel ()
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 if eval \${$3+:} false; then :
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1924 $as_echo_n "checking for $2... " >&6; }
1925 if eval \${$3+:} false; then :
1926 $as_echo_n "(cached) " >&6
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930 $as_echo "$ac_res" >&6; }
1932 # Is the header compilable?
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1934 $as_echo_n "checking $2 usability... " >&6; }
1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936 /* end confdefs.h. */
1940 if ac_fn_c_try_compile "$LINENO"; then :
1941 ac_header_compiler=yes
1943 ac_header_compiler=no
1945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1947 $as_echo "$ac_header_compiler" >&6; }
1949 # Is the header present?
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1951 $as_echo_n "checking $2 presence... " >&6; }
1952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953 /* end confdefs.h. */
1956 if ac_fn_c_try_cpp "$LINENO"; then :
1957 ac_header_preproc=yes
1959 ac_header_preproc=no
1961 rm -f conftest.err conftest.i conftest.$ac_ext
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1963 $as_echo "$ac_header_preproc" >&6; }
1965 # So? What about this header?
1966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1969 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1971 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1975 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1977 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1979 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1981 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1983 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1987 $as_echo_n "checking for $2... " >&6; }
1988 if eval \${$3+:} false; then :
1989 $as_echo_n "(cached) " >&6
1991 eval "$3=\$ac_header_compiler"
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995 $as_echo "$ac_res" >&6; }
1997 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999 } # ac_fn_c_check_header_mongrel
2001 # ac_fn_c_try_run LINENO
2002 # ----------------------
2003 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2004 # that executables *can* be run.
2007 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008 if { { ac_try="$ac_link"
2010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2011 *) ac_try_echo=$ac_try;;
2013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2014 $as_echo "$ac_try_echo"; } >&5
2015 (eval "$ac_link") 2>&5
2017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2018 test $ac_status = 0; } && { ac_try='.
/conftest
$ac_exeext'
2019 { { case "(($ac_try" in
2020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2021 *) ac_try_echo=$ac_try;;
2023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2024 $as_echo "$ac_try_echo"; } >&5
2025 (eval "$ac_try") 2>&5
2027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2028 test $ac_status = 0; }; }; then :
2031 $as_echo "$as_me: program exited with status $ac_status" >&5
2032 $as_echo "$as_me: failed program was:" >&5
2033 sed 's
/^
/|
/' conftest.$ac_ext >&5
2035 ac_retval=$ac_status
2037 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2038 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2039 as_fn_set_status $ac_retval
2043 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2044 # -------------------------------------------------------
2045 # Tests whether HEADER exists and can be compiled using the include files in
2046 # INCLUDES, setting the cache variable VAR accordingly.
2047 ac_fn_c_check_header_compile ()
2049 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2051 $as_echo_n "checking for $2... " >&6; }
2052 if eval \${$3+:} false; then :
2053 $as_echo_n "(cached) " >&6
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2060 if ac_fn_c_try_compile "$LINENO"; then :
2065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2069 $as_echo "$ac_res" >&6; }
2070 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2072 } # ac_fn_c_check_header_compile
2074 # ac_fn_c_try_link LINENO
2075 # -----------------------
2076 # Try to link conftest.$ac_ext, and return whether this succeeded.
2079 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2080 rm -f conftest.$ac_objext conftest$ac_exeext
2081 if { { ac_try="$ac_link"
2083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2084 *) ac_try_echo=$ac_try;;
2086 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2087 $as_echo "$ac_try_echo"; } >&5
2088 (eval "$ac_link") 2>conftest.err
2090 if test -s conftest.err; then
2091 grep -v '^
*+' conftest.err >conftest.er1
2092 cat conftest.er1 >&5
2093 mv -f conftest.er1 conftest.err
2095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2096 test $ac_status = 0; } && {
2097 test -z "$ac_c_werror_flag" ||
2098 test ! -s conftest.err
2099 } && test -s conftest$ac_exeext && {
2100 test "$cross_compiling" = yes ||
2101 test -x conftest$ac_exeext
2105 $as_echo "$as_me: failed program was:" >&5
2106 sed 's
/^
/|
/' conftest.$ac_ext >&5
2110 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2111 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2112 # interfere with the next link command; also delete a directory that is
2113 # left behind by Apple's compiler. We
do this before executing the actions.
2114 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2115 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2116 as_fn_set_status
$ac_retval
2118 } # ac_fn_c_try_link
2120 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2121 # --------------------------------------------
2122 # Tries to find the compile-time value of EXPR in a program that includes
2123 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2125 ac_fn_c_compute_int
()
2127 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2128 if test "$cross_compiling" = yes; then
2129 # Depending upon the size, compute the lo and hi bounds.
2130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2131 /* end confdefs.h. */
2136 static int test_array [1 - 2 * !(($2) >= 0)];
2138 return test_array [0];
2144 if ac_fn_c_try_compile
"$LINENO"; then :
2147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2153 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2155 return test_array [0];
2161 if ac_fn_c_try_compile
"$LINENO"; then :
2162 ac_hi
=$ac_mid; break
2164 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2165 if test $ac_lo -le $ac_mid; then
2169 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h. */
2180 static int test_array [1 - 2 * !(($2) < 0)];
2182 return test_array [0];
2188 if ac_fn_c_try_compile
"$LINENO"; then :
2191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h. */
2197 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2199 return test_array [0];
2205 if ac_fn_c_try_compile
"$LINENO"; then :
2206 ac_lo
=$ac_mid; break
2208 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2209 if test $ac_mid -le $ac_hi; then
2213 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2215 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2220 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2222 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2223 # Binary search between lo and hi bounds.
2224 while test "x$ac_lo" != "x$ac_hi"; do
2225 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h. */
2232 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2234 return test_array [0];
2240 if ac_fn_c_try_compile
"$LINENO"; then :
2243 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2245 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2248 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2255 static long int longval () { return $2; }
2256 static unsigned long int ulongval () { return $2; }
2263 FILE *f = fopen ("conftest.val", "w");
2268 long int i = longval ();
2271 fprintf (f, "%ld", i);
2275 unsigned long int i = ulongval ();
2278 fprintf (f, "%lu", i);
2280 /* Do not output a trailing newline, as this causes \r\n confusion
2281 on some platforms. */
2282 return ferror (f) || fclose (f) != 0;
2288 if ac_fn_c_try_run
"$LINENO"; then :
2289 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2293 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2294 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2298 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2299 as_fn_set_status
$ac_retval
2301 } # ac_fn_c_compute_int
2303 # ac_fn_c_check_func LINENO FUNC VAR
2304 # ----------------------------------
2305 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2306 ac_fn_c_check_func
()
2308 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2310 $as_echo_n "checking for $2... " >&6; }
2311 if eval \
${$3+:} false
; then :
2312 $as_echo_n "(cached) " >&6
2314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2315 /* end confdefs.h. */
2316 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2318 #define $2 innocuous_$2
2320 /* System header to define __stub macros and hopefully few prototypes,
2321 which can conflict with char $2 (); below.
2322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2323 <limits.h> exists even on freestanding compilers. */
2326 # include <limits.h>
2328 # include <assert.h>
2333 /* Override any GCC internal prototype to avoid an error.
2334 Use char because int might match the return type of a GCC
2335 builtin and then its argument prototype would still apply. */
2340 /* The GNU C library defines this for functions which it implements
2341 to always fail with ENOSYS. Some functions are actually named
2342 something starting with __ and the normal name is an alias. */
2343 #if defined __stub_$2 || defined __stub___$2
2355 if ac_fn_c_try_link
"$LINENO"; then :
2360 rm -f core conftest.err conftest.
$ac_objext \
2361 conftest
$ac_exeext conftest.
$ac_ext
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2365 $as_echo "$ac_res" >&6; }
2366 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2368 } # ac_fn_c_check_func
2370 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2371 # -------------------------------------------
2372 # Tests whether TYPE exists after having included INCLUDES, setting cache
2373 # variable VAR accordingly.
2374 ac_fn_c_check_type
()
2376 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2378 $as_echo_n "checking for $2... " >&6; }
2379 if eval \
${$3+:} false
; then :
2380 $as_echo_n "(cached) " >&6
2383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2384 /* end confdefs.h. */
2395 if ac_fn_c_try_compile
"$LINENO"; then :
2396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2397 /* end confdefs.h. */
2408 if ac_fn_c_try_compile
"$LINENO"; then :
2413 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2415 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2419 $as_echo "$ac_res" >&6; }
2420 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2422 } # ac_fn_c_check_type
2424 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2425 # ---------------------------------------------
2426 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2428 ac_fn_c_check_decl
()
2430 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2431 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2432 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2434 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2435 if eval \
${$3+:} false
; then :
2436 $as_echo_n "(cached) " >&6
2438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2439 /* end confdefs.h. */
2444 #ifndef $as_decl_name
2446 (void) $as_decl_use;
2448 (void) $as_decl_name;
2456 if ac_fn_c_try_compile
"$LINENO"; then :
2461 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2465 $as_echo "$ac_res" >&6; }
2466 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2468 } # ac_fn_c_check_decl
2470 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2471 # ----------------------------------------------------
2472 # Tries to find if the field MEMBER exists in type AGGR, after including
2473 # INCLUDES, setting cache variable VAR accordingly.
2474 ac_fn_c_check_member
()
2476 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2478 $as_echo_n "checking for $2.$3... " >&6; }
2479 if eval \
${$4+:} false
; then :
2480 $as_echo_n "(cached) " >&6
2482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2483 /* end confdefs.h. */
2495 if ac_fn_c_try_compile
"$LINENO"; then :
2498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2499 /* end confdefs.h. */
2505 if (sizeof ac_aggr.$3)
2511 if ac_fn_c_try_compile
"$LINENO"; then :
2516 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2518 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2522 $as_echo "$ac_res" >&6; }
2523 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2525 } # ac_fn_c_check_member
2527 # ac_fn_cxx_try_link LINENO
2528 # -------------------------
2529 # Try to link conftest.$ac_ext, and return whether this succeeded.
2530 ac_fn_cxx_try_link
()
2532 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2533 rm -f conftest.
$ac_objext conftest
$ac_exeext
2534 if { { ac_try
="$ac_link"
2536 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2537 *) ac_try_echo=$ac_try;;
2539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2540 $as_echo "$ac_try_echo"; } >&5
2541 (eval "$ac_link") 2>conftest.err
2543 if test -s conftest.err; then
2544 grep -v '^ *+' conftest.err >conftest.er1
2545 cat conftest.er1 >&5
2546 mv -f conftest.er1 conftest.err
2548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2549 test $ac_status = 0; } && {
2550 test -z "$ac_cxx_werror_flag" ||
2551 test ! -s conftest.err
2552 } && test -s conftest$ac_exeext && {
2553 test "$cross_compiling" = yes ||
2554 test -x conftest$ac_exeext
2558 $as_echo "$as_me: failed program was:" >&5
2559 sed 's/^/| /' conftest.$ac_ext >&5
2563 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2564 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2565 # interfere with the next link command; also delete a directory that is
2566 # left behind by Apple's compiler. We do this before executing the actions.
2567 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2568 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2569 as_fn_set_status $ac_retval
2571 } # ac_fn_cxx_try_link
2573 # ac_fn_cxx_check_func LINENO FUNC VAR
2574 # ------------------------------------
2575 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2576 ac_fn_cxx_check_func ()
2578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2580 $as_echo_n "checking for $2... " >&6; }
2581 if eval \${$3+:} false; then :
2582 $as_echo_n "(cached) " >&6
2584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2585 /* end confdefs.h. */
2586 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2588 #define $2 innocuous_$2
2590 /* System header to define __stub macros and hopefully few prototypes,
2591 which can conflict with char $2 (); below.
2592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2593 <limits.h> exists even on freestanding compilers. */
2596 # include <limits.h>
2598 # include <assert.h>
2603 /* Override any GCC internal prototype to avoid an error.
2604 Use char because int might match the return type of a GCC
2605 builtin and then its argument prototype would still apply. */
2610 /* The GNU C library defines this for functions which it implements
2611 to always fail with ENOSYS. Some functions are actually named
2612 something starting with __ and the normal name is an alias. */
2613 #if defined __stub_$2 || defined __stub___$2
2625 if ac_fn_cxx_try_link "$LINENO"; then :
2630 rm -f core conftest.err conftest.$ac_objext \
2631 conftest$ac_exeext conftest.$ac_ext
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2635 $as_echo "$ac_res" >&6; }
2636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2638 } # ac_fn_cxx_check_func
2639 cat >config.log <<_ACEOF
2640 This file contains any messages produced by compilers while
2641 running configure, to aid debugging if configure makes a mistake.
2643 It was created by $as_me, which was
2644 generated by GNU Autoconf 2.69. Invocation command line was
2656 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2657 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2658 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2659 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2660 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2662 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2663 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2665 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2666 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2667 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2668 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2669 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2670 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2671 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679 test -z "$as_dir" && as_dir=.
2680 $as_echo "PATH: $as_dir"
2696 # Keep a trace of the command line.
2697 # Strip out --no-create and --no-recursion so they do not pile up.
2698 # Strip out --silent because we don't want to record it for future runs.
2699 # Also quote any args containing shell meta-characters.
2700 # Make two passes to allow for proper duplicate-argument suppression.
2704 ac_must_keep_next=false
2710 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2711 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2712 | -silent | --silent | --silen | --sile | --sil)
2715 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2718 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2720 as_fn_append ac_configure_args1 " '$ac_arg'"
2721 if test $ac_must_keep_next = true; then
2722 ac_must_keep_next=false # Got value, back to normal.
2725 *=* | --config-cache | -C | -disable-* | --disable-* \
2726 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2727 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2728 | -with-* | --with-* | -without-* | --without-* | --x)
2729 case "$ac_configure_args0 " in
2730 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2733 -* ) ac_must_keep_next=true ;;
2736 as_fn_append ac_configure_args " '$ac_arg'"
2741 { ac_configure_args0=; unset ac_configure_args0;}
2742 { ac_configure_args1=; unset ac_configure_args1;}
2744 # When interrupted or exit'd, cleanup temporary files, and complete
2745 # config.log. We remove comments because anyway the quotes in there
2746 # would cause problems or look ugly.
2747 # WARNING: Use '\'' to represent an apostrophe within the trap.
2748 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2749 trap 'exit_status=$?
2750 # Save into config.log some information that might help in debugging.
2754 $as_echo "## ---------------- ##
2755 ## Cache variables. ##
2756 ## ---------------- ##"
2758 # The following way of writing the cache mishandles newlines in values,
2760 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2761 eval ac_val=\$$ac_var
2765 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2766 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2769 _ | IFS | as_nl) ;; #(
2770 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2771 *) { eval $ac_var=; unset $ac_var;} ;;
2776 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2777 *${as_nl}ac_space=\ *)
2779 "s/'\''/'\''\\\\'\'''\''/g;
2780 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2783 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2790 $as_echo "## ----------------- ##
2791 ## Output variables. ##
2792 ## ----------------- ##"
2794 for ac_var in $ac_subst_vars
2796 eval ac_val=\$$ac_var
2798 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2800 $as_echo "$ac_var='\''$ac_val'\''"
2804 if test -n "$ac_subst_files"; then
2805 $as_echo "## ------------------- ##
2806 ## File substitutions. ##
2807 ## ------------------- ##"
2809 for ac_var in $ac_subst_files
2811 eval ac_val=\$$ac_var
2813 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2815 $as_echo "$ac_var='\''$ac_val'\''"
2820 if test -s confdefs.h; then
2821 $as_echo "## ----------- ##
2828 test "$ac_signal" != 0 &&
2829 $as_echo "$as_me: caught signal $ac_signal"
2830 $as_echo "$as_me: exit $exit_status"
2832 rm -f core *.core core.conftest.* &&
2833 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2836 for ac_signal in 1 2 13 15; do
2837 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2841 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2842 rm -f -r conftest* confdefs.h
2844 $as_echo "/* confdefs.h */" > confdefs.h
2846 # Predefined preprocessor variables.
2848 cat >>confdefs.h <<_ACEOF
2849 #define PACKAGE_NAME "$PACKAGE_NAME"
2852 cat >>confdefs.h <<_ACEOF
2853 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2856 cat >>confdefs.h <<_ACEOF
2857 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2860 cat >>confdefs.h <<_ACEOF
2861 #define PACKAGE_STRING "$PACKAGE_STRING"
2864 cat >>confdefs.h <<_ACEOF
2865 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2868 cat >>confdefs.h <<_ACEOF
2869 #define PACKAGE_URL "$PACKAGE_URL"
2873 # Let the site file select an alternate cache file if it wants to.
2874 # Prefer an explicitly selected file to automatically selected ones.
2877 if test -n "$CONFIG_SITE"; then
2878 # We do not want a PATH search for config.site.
2879 case $CONFIG_SITE in #((
2880 -*) ac_site_file1=./$CONFIG_SITE;;
2881 */*) ac_site_file1=$CONFIG_SITE;;
2882 *) ac_site_file1=./$CONFIG_SITE;;
2884 elif test "x$prefix" != xNONE; then
2885 ac_site_file1=$prefix/share/config.site
2886 ac_site_file2=$prefix/etc/config.site
2888 ac_site_file1=$ac_default_prefix/share/config.site
2889 ac_site_file2=$ac_default_prefix/etc/config.site
2891 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2893 test "x$ac_site_file" = xNONE && continue
2894 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2896 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2897 sed 's/^/| /' "$ac_site_file" >&5
2899 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2901 as_fn_error $? "failed to load site
script $ac_site_file
2902 See \
`config.log' for more details" "$LINENO" 5; }
2906 if test -r "$cache_file"; then
2907 # Some versions of bash will fail to source /dev/null (special files
2908 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2909 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2911 $as_echo "$as_me: loading cache $cache_file" >&6;}
2913 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2914 *) . "./$cache_file";;
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2919 $as_echo "$as_me: creating cache $cache_file" >&6;}
2923 as_fn_append ac_header_list " stdlib.h"
2924 as_fn_append ac_header_list " unistd.h"
2925 as_fn_append ac_header_list " sys/param.h"
2926 # Check that the precious variables saved in the cache have kept the same
2928 ac_cache_corrupted=false
2929 for ac_var in $ac_precious_vars; do
2930 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2931 eval ac_new_set=\$ac_env_${ac_var}_set
2932 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2933 eval ac_new_val=\$ac_env_${ac_var}_value
2934 case $ac_old_set,$ac_new_set in
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2937 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2938 ac_cache_corrupted=: ;;
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2941 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2942 ac_cache_corrupted=: ;;
2945 if test "x$ac_old_val" != "x$ac_new_val"; then
2946 # differences in whitespace do not lead to failure.
2947 ac_old_val_w=`echo x
$ac_old_val`
2948 ac_new_val_w=`echo x
$ac_new_val`
2949 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2951 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2952 ac_cache_corrupted=:
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2955 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2956 eval $ac_var=\$ac_old_val
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2959 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2961 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2964 # Pass precious variables to config.status.
2965 if test "$ac_new_set" = set; then
2967 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2968 *) ac_arg=$ac_var=$ac_new_val ;;
2970 case " $ac_configure_args " in
2971 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2972 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2976 if $ac_cache_corrupted; then
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2980 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2981 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2983 ## -------------------- ##
2984 ## Main body of script. ##
2985 ## -------------------- ##
2988 ac_cpp='$CPP $CPPFLAGS'
2989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2999 ac_config_headers="$ac_config_headers config.h:config.in"
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3003 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3004 # Check whether --enable-maintainer-mode was given.
3005 if test "${enable_maintainer_mode+set}" = set; then :
3006 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3008 USE_MAINTAINER_MODE=no
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3012 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3013 if test $USE_MAINTAINER_MODE = yes; then
3014 MAINTAINER_MODE_TRUE=
3015 MAINTAINER_MODE_FALSE='#'
3017 MAINTAINER_MODE_TRUE='#'
3018 MAINTAINER_MODE_FALSE=
3021 MAINT=$MAINTAINER_MODE_TRUE
3026 ac_cpp='$CPP $CPPFLAGS'
3027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3030 if test -n "$ac_tool_prefix"; then
3031 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3032 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3034 $as_echo_n "checking for $ac_word... " >&6; }
3035 if ${ac_cv_prog_CC+:} false; then :
3036 $as_echo_n "(cached) " >&6
3038 if test -n "$CC"; then
3039 ac_cv_prog_CC="$CC" # Let the user override the test.
3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045 test -z "$as_dir" && as_dir=.
3046 for ac_exec_ext in '' $ac_executable_extensions; do
3047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3048 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3059 if test -n "$CC"; then
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3061 $as_echo "$CC" >&6; }
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3064 $as_echo "no" >&6; }
3069 if test -z "$ac_cv_prog_CC"; then
3071 # Extract the first word of "gcc", so it can be a program name with args.
3072 set dummy gcc; ac_word=$2
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3074 $as_echo_n "checking for $ac_word... " >&6; }
3075 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3076 $as_echo_n "(cached) " >&6
3078 if test -n "$ac_ct_CC"; then
3079 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 test -z "$as_dir" && as_dir=.
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3088 ac_cv_prog_ac_ct_CC="gcc"
3089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3099 if test -n "$ac_ct_CC"; then
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3101 $as_echo "$ac_ct_CC" >&6; }
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104 $as_echo "no" >&6; }
3107 if test "x$ac_ct_CC" = x; then
3110 case $cross_compiling:$ac_tool_warned in
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3114 ac_tool_warned=yes ;;
3122 if test -z "$CC"; then
3123 if test -n "$ac_tool_prefix"; then
3124 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3125 set dummy ${ac_tool_prefix}cc; ac_word=$2
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3127 $as_echo_n "checking for $ac_word... " >&6; }
3128 if ${ac_cv_prog_CC+:} false; then :
3129 $as_echo_n "(cached) " >&6
3131 if test -n "$CC"; then
3132 ac_cv_prog_CC="$CC" # Let the user override the test.
3134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138 test -z "$as_dir" && as_dir=.
3139 for ac_exec_ext in '' $ac_executable_extensions; do
3140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3141 ac_cv_prog_CC="${ac_tool_prefix}cc"
3142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3152 if test -n "$CC"; then
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3154 $as_echo "$CC" >&6; }
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3157 $as_echo "no" >&6; }
3163 if test -z "$CC"; then
3164 # Extract the first word of "cc", so it can be a program name with args.
3165 set dummy cc; ac_word=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if ${ac_cv_prog_CC+:} false; then :
3169 $as_echo_n "(cached) " >&6
3171 if test -n "$CC"; then
3172 ac_cv_prog_CC="$CC" # Let the user override the test.
3175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179 test -z "$as_dir" && as_dir=.
3180 for ac_exec_ext in '' $ac_executable_extensions; do
3181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3182 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3183 ac_prog_rejected=yes
3187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3194 if test $ac_prog_rejected = yes; then
3195 # We found a bogon in the path, so make sure we never use it.
3196 set dummy $ac_cv_prog_CC
3198 if test $# != 0; then
3199 # We chose a different compiler from the bogus one.
3200 # However, it has the same basename, so the bogon will be chosen
3201 # first if we set CC to just the basename; use the full file name.
3203 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3209 if test -n "$CC"; then
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3211 $as_echo "$CC" >&6; }
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214 $as_echo "no" >&6; }
3219 if test -z "$CC"; then
3220 if test -n "$ac_tool_prefix"; then
3221 for ac_prog in cl.exe
3223 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3224 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3226 $as_echo_n "checking for $ac_word... " >&6; }
3227 if ${ac_cv_prog_CC+:} false; then :
3228 $as_echo_n "(cached) " >&6
3230 if test -n "$CC"; then
3231 ac_cv_prog_CC="$CC" # Let the user override the test.
3233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237 test -z "$as_dir" && as_dir=.
3238 for ac_exec_ext in '' $ac_executable_extensions; do
3239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3240 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3251 if test -n "$CC"; then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3253 $as_echo "$CC" >&6; }
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256 $as_echo "no" >&6; }
3260 test -n "$CC" && break
3263 if test -z "$CC"; then
3265 for ac_prog in cl.exe
3267 # Extract the first word of "$ac_prog", so it can be a program name with args.
3268 set dummy $ac_prog; ac_word=$2
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3270 $as_echo_n "checking for $ac_word... " >&6; }
3271 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3272 $as_echo_n "(cached) " >&6
3274 if test -n "$ac_ct_CC"; then
3275 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 test -z "$as_dir" && as_dir=.
3282 for ac_exec_ext in '' $ac_executable_extensions; do
3283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3284 ac_cv_prog_ac_ct_CC="$ac_prog"
3285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3294 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3295 if test -n "$ac_ct_CC"; then
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3297 $as_echo "$ac_ct_CC" >&6; }
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300 $as_echo "no" >&6; }
3304 test -n "$ac_ct_CC" && break
3307 if test "x$ac_ct_CC" = x; then
3310 case $cross_compiling:$ac_tool_warned in
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3313 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3314 ac_tool_warned=yes ;;
3323 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3325 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3326 See \
`config.log' for more details" "$LINENO" 5; }
3328 # Provide some information about the compiler.
3329 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3332 for ac_option in --version -v -V -qversion; do
3333 { { ac_try="$ac_compiler $ac_option >&5"
3335 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3336 *) ac_try_echo
=$ac_try;;
3338 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3339 $as_echo "$ac_try_echo"; } >&5
3340 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3342 if test -s conftest.err
; then
3344 ... rest of stderr output deleted ...
3345 10q' conftest.err
>conftest.er1
3346 cat conftest.er1
>&5
3348 rm -f conftest.er1 conftest.err
3349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3350 test $ac_status = 0; }
3353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3354 /* end confdefs.h. */
3364 ac_clean_files_save
=$ac_clean_files
3365 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3366 # Try to create an executable without -o first, disregard a.out.
3367 # It will help us diagnose broken compilers, and finding out an intuition
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3370 $as_echo_n "checking whether the C compiler works... " >&6; }
3371 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3373 # The possible output files:
3374 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3377 for ac_file
in $ac_files
3380 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3381 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3386 if { { ac_try
="$ac_link_default"
3388 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;;
3391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3392 $as_echo "$ac_try_echo"; } >&5
3393 (eval "$ac_link_default") 2>&5
3395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3396 test $ac_status = 0; }; then :
3397 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3398 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3399 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3400 # so that the user can short-circuit this test for compilers unknown to
3402 for ac_file in $ac_files ''
3404 test -f "$ac_file" || continue
3406 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3409 # We found the default executable, but exeext='' is most
3413 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3415 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3417 # We set ac_cv_exeext here because the later test for it is not
3418 # safe: cross compilers may not add the suffix if given an `-o'
3419 # argument, so we may need to know it at that point already.
3420 # Even if this section looks crufty: it has the advantage of
3427 test "$ac_cv_exeext" = no && ac_cv_exeext=
3432 if test -z "$ac_file"; then :
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3434 $as_echo "no" >&6; }
3435 $as_echo "$as_me: failed program was:" >&5
3436 sed 's
/^
/|
/' conftest.$ac_ext >&5
3438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3439 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3440 as_fn_error 77 "C compiler cannot create executables
3441 See \`config.log
' for more details" "$LINENO" 5; }
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3444 $as_echo "yes" >&6; }
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3447 $as_echo_n "checking for C compiler default output file name... " >&6; }
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3449 $as_echo "$ac_file" >&6; }
3450 ac_exeext=$ac_cv_exeext
3452 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3453 ac_clean_files=$ac_clean_files_save
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3455 $as_echo_n "checking for suffix of executables... " >&6; }
3456 if { { ac_try="$ac_link"
3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459 *) ac_try_echo=$ac_try;;
3461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3462 $as_echo "$ac_try_echo"; } >&5
3463 (eval "$ac_link") 2>&5
3465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3466 test $ac_status = 0; }; then :
3467 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3468 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3469 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3471 for ac_file
in conftest.exe conftest conftest.
*; do
3472 test -f "$ac_file" ||
continue
3474 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3475 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3483 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3484 See \`config.log' for more details" "$LINENO" 5; }
3486 rm -f conftest conftest
$ac_cv_exeext
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3488 $as_echo "$ac_cv_exeext" >&6; }
3490 rm -f conftest.
$ac_ext
3491 EXEEXT
=$ac_cv_exeext
3493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3494 /* end confdefs.h. */
3499 FILE *f = fopen ("conftest.out", "w");
3500 return ferror (f) || fclose (f) != 0;
3506 ac_clean_files
="$ac_clean_files conftest.out"
3507 # Check that the compiler produces executables we can run. If not, either
3508 # the compiler is broken, or we cross compile.
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3510 $as_echo_n "checking whether we are cross compiling... " >&6; }
3511 if test "$cross_compiling" != yes; then
3512 { { ac_try
="$ac_link"
3514 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3515 *) ac_try_echo=$ac_try;;
3517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3518 $as_echo "$ac_try_echo"; } >&5
3519 (eval "$ac_link") 2>&5
3521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3522 test $ac_status = 0; }
3523 if { ac_try='./conftest$ac_cv_exeext'
3524 { { case "(($ac_try" in
3525 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3526 *) ac_try_echo
=$ac_try;;
3528 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3529 $as_echo "$ac_try_echo"; } >&5
3530 (eval "$ac_try") 2>&5
3532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3533 test $ac_status = 0; }; }; then
3536 if test "$cross_compiling" = maybe
; then
3539 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3540 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3541 as_fn_error $?
"cannot run C compiled programs.
3542 If you meant to cross compile, use \`--host'.
3543 See \`config.log' for more details" "$LINENO" 5; }
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3548 $as_echo "$cross_compiling" >&6; }
3550 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3551 ac_clean_files
=$ac_clean_files_save
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3553 $as_echo_n "checking for suffix of object files... " >&6; }
3554 if ${ac_cv_objext+:} false
; then :
3555 $as_echo_n "(cached) " >&6
3557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3558 /* end confdefs.h. */
3568 rm -f conftest.o conftest.obj
3569 if { { ac_try
="$ac_compile"
3571 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3572 *) ac_try_echo=$ac_try;;
3574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3575 $as_echo "$ac_try_echo"; } >&5
3576 (eval "$ac_compile") 2>&5
3578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3579 test $ac_status = 0; }; then :
3580 for ac_file in conftest.o conftest.obj conftest.*; do
3581 test -f "$ac_file" || continue;
3583 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3584 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3589 $as_echo "$as_me: failed program was:" >&5
3590 sed 's/^/| /' conftest.$ac_ext >&5
3592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3594 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3595 See \
`config.log' for more details" "$LINENO" 5; }
3597 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3600 $as_echo "$ac_cv_objext" >&6; }
3601 OBJEXT=$ac_cv_objext
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3604 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3605 if ${ac_cv_c_compiler_gnu+:} false; then :
3606 $as_echo_n "(cached) " >&6
3608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609 /* end confdefs.h. */
3622 if ac_fn_c_try_compile "$LINENO"; then :
3627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3628 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3632 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3633 if test $ac_compiler_gnu = yes; then
3638 ac_test_CFLAGS=${CFLAGS+set}
3639 ac_save_CFLAGS=$CFLAGS
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3641 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3642 if ${ac_cv_prog_cc_g+:} false; then :
3643 $as_echo_n "(cached) " >&6
3645 ac_save_c_werror_flag=$ac_c_werror_flag
3646 ac_c_werror_flag=yes
3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650 /* end confdefs.h. */
3660 if ac_fn_c_try_compile "$LINENO"; then :
3664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h. */
3675 if ac_fn_c_try_compile "$LINENO"; then :
3678 ac_c_werror_flag=$ac_save_c_werror_flag
3680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681 /* end confdefs.h. */
3691 if ac_fn_c_try_compile "$LINENO"; then :
3694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3699 ac_c_werror_flag=$ac_save_c_werror_flag
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3702 $as_echo "$ac_cv_prog_cc_g" >&6; }
3703 if test "$ac_test_CFLAGS" = set; then
3704 CFLAGS=$ac_save_CFLAGS
3705 elif test $ac_cv_prog_cc_g = yes; then
3706 if test "$GCC" = yes; then
3712 if test "$GCC" = yes; then
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3719 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3720 if ${ac_cv_prog_cc_c89+:} false; then :
3721 $as_echo_n "(cached) " >&6
3723 ac_cv_prog_cc_c89=no
3725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3726 /* end confdefs.h. */
3730 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3731 struct buf { int x; };
3732 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3733 static char *e (p, i)
3739 static char *f (char * (*g) (char **, int), char **p, ...)
3744 s = g (p, va_arg (v,int));
3749 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3750 function prototypes and stuff, but not '\xHH' hex character constants.
3751 These don't provoke an error unfortunately, instead are silently treated
3752 as 'x'. The following induces an error, until -std is added to get
3753 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3754 array size at least. It's necessary to write '\x00'==0 to get something
3755 that's true only with -std. */
3756 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3758 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3759 inside strings and character constants. */
3761 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3763 int test (int i, double x);
3764 struct s1 {int (*f) (int a);};
3765 struct s2 {int (*f) (double a);};
3766 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3772 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3777 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3778 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3780 CC="$ac_save_CC $ac_arg"
3781 if ac_fn_c_try_compile "$LINENO"; then :
3782 ac_cv_prog_cc_c89=$ac_arg
3784 rm -f core conftest.err conftest.$ac_objext
3785 test "x$ac_cv_prog_cc_c89" != "xno" && break
3787 rm -f conftest.$ac_ext
3792 case "x$ac_cv_prog_cc_c89" in
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3795 $as_echo "none needed" >&6; } ;;
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3798 $as_echo "unsupported" >&6; } ;;
3800 CC="$CC $ac_cv_prog_cc_c89"
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3802 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3804 if test "x$ac_cv_prog_cc_c89" != xno; then :
3809 ac_cpp='$CPP $CPPFLAGS'
3810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3815 ac_cpp='$CXXCPP $CPPFLAGS'
3816 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3817 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3818 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3819 if test -z "$CXX"; then
3820 if test -n "$CCC"; then
3823 if test -n "$ac_tool_prefix"; then
3824 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3826 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3827 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3829 $as_echo_n "checking for $ac_word... " >&6; }
3830 if ${ac_cv_prog_CXX+:} false; then :
3831 $as_echo_n "(cached) " >&6
3833 if test -n "$CXX"; then
3834 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840 test -z "$as_dir" && as_dir=.
3841 for ac_exec_ext in '' $ac_executable_extensions; do
3842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3843 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3854 if test -n "$CXX"; then
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3856 $as_echo "$CXX" >&6; }
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3859 $as_echo "no" >&6; }
3863 test -n "$CXX" && break
3866 if test -z "$CXX"; then
3868 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3870 # Extract the first word of "$ac_prog", so it can be a program name with args.
3871 set dummy $ac_prog; ac_word=$2
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3873 $as_echo_n "checking for $ac_word... " >&6; }
3874 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3875 $as_echo_n "(cached) " >&6
3877 if test -n "$ac_ct_CXX"; then
3878 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3884 test -z "$as_dir" && as_dir=.
3885 for ac_exec_ext in '' $ac_executable_extensions; do
3886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3887 ac_cv_prog_ac_ct_CXX="$ac_prog"
3888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3897 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3898 if test -n "$ac_ct_CXX"; then
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3900 $as_echo "$ac_ct_CXX" >&6; }
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3903 $as_echo "no" >&6; }
3907 test -n "$ac_ct_CXX" && break
3910 if test "x$ac_ct_CXX" = x; then
3913 case $cross_compiling:$ac_tool_warned in
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3917 ac_tool_warned=yes ;;
3925 # Provide some information about the compiler.
3926 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3929 for ac_option in --version -v -V -qversion; do
3930 { { ac_try="$ac_compiler $ac_option >&5"
3932 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3933 *) ac_try_echo
=$ac_try;;
3935 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3936 $as_echo "$ac_try_echo"; } >&5
3937 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3939 if test -s conftest.err
; then
3941 ... rest of stderr output deleted ...
3942 10q' conftest.err
>conftest.er1
3943 cat conftest.er1
>&5
3945 rm -f conftest.er1 conftest.err
3946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3947 test $ac_status = 0; }
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3951 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3952 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3953 $as_echo_n "(cached) " >&6
3955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h. */
3969 if ac_fn_cxx_try_compile
"$LINENO"; then :
3974 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3975 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3979 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3980 if test $ac_compiler_gnu = yes; then
3985 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3986 ac_save_CXXFLAGS
=$CXXFLAGS
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3988 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3989 if ${ac_cv_prog_cxx_g+:} false
; then :
3990 $as_echo_n "(cached) " >&6
3992 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3993 ac_cxx_werror_flag
=yes
3996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h. */
4007 if ac_fn_cxx_try_compile
"$LINENO"; then :
4008 ac_cv_prog_cxx_g
=yes
4011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4012 /* end confdefs.h. */
4022 if ac_fn_cxx_try_compile
"$LINENO"; then :
4025 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4028 /* end confdefs.h. */
4038 if ac_fn_cxx_try_compile
"$LINENO"; then :
4039 ac_cv_prog_cxx_g
=yes
4041 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4043 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4045 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4046 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4049 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4050 if test "$ac_test_CXXFLAGS" = set; then
4051 CXXFLAGS
=$ac_save_CXXFLAGS
4052 elif test $ac_cv_prog_cxx_g = yes; then
4053 if test "$GXX" = yes; then
4059 if test "$GXX" = yes; then
4066 ac_cpp
='$CPP $CPPFLAGS'
4067 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4068 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4069 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4074 ac_cpp
='$CPP $CPPFLAGS'
4075 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4076 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4077 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4079 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4080 # On Suns, sometimes $CPP names a directory.
4081 if test -n "$CPP" && test -d "$CPP"; then
4084 if test -z "$CPP"; then
4085 if ${ac_cv_prog_CPP+:} false
; then :
4086 $as_echo_n "(cached) " >&6
4088 # Double quotes because CPP needs to be expanded
4089 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4092 for ac_c_preproc_warn_flag
in '' yes
4094 # Use a header file that comes with gcc, so configuring glibc
4095 # with a fresh cross-compiler works.
4096 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4097 # <limits.h> exists even on freestanding compilers.
4098 # On the NeXT, cc -E runs the code through the compiler's parser,
4099 # not just through cpp. "Syntax error" is here to catch this case.
4100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h. */
4103 # include <limits.h>
4105 # include <assert.h>
4109 if ac_fn_c_try_cpp
"$LINENO"; then :
4112 # Broken: fails on valid input.
4115 rm -f conftest.err conftest.i conftest.
$ac_ext
4117 # OK, works on sane cases. Now check whether nonexistent headers
4118 # can be detected and how.
4119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4121 #include <ac_nonexistent.h>
4123 if ac_fn_c_try_cpp
"$LINENO"; then :
4124 # Broken: success on invalid input.
4127 # Passes both tests.
4131 rm -f conftest.err conftest.i conftest.
$ac_ext
4134 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4135 rm -f conftest.i conftest.err conftest.
$ac_ext
4136 if $ac_preproc_ok; then :
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4149 $as_echo "$CPP" >&6; }
4151 for ac_c_preproc_warn_flag
in '' yes
4153 # Use a header file that comes with gcc, so configuring glibc
4154 # with a fresh cross-compiler works.
4155 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4156 # <limits.h> exists even on freestanding compilers.
4157 # On the NeXT, cc -E runs the code through the compiler's parser,
4158 # not just through cpp. "Syntax error" is here to catch this case.
4159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4162 # include <limits.h>
4164 # include <assert.h>
4168 if ac_fn_c_try_cpp
"$LINENO"; then :
4171 # Broken: fails on valid input.
4174 rm -f conftest.err conftest.i conftest.
$ac_ext
4176 # OK, works on sane cases. Now check whether nonexistent headers
4177 # can be detected and how.
4178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4179 /* end confdefs.h. */
4180 #include <ac_nonexistent.h>
4182 if ac_fn_c_try_cpp
"$LINENO"; then :
4183 # Broken: success on invalid input.
4186 # Passes both tests.
4190 rm -f conftest.err conftest.i conftest.
$ac_ext
4193 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4194 rm -f conftest.i conftest.err conftest.
$ac_ext
4195 if $ac_preproc_ok; then :
4198 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4200 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4201 See \`config.log' for more details" "$LINENO" 5; }
4205 ac_cpp
='$CPP $CPPFLAGS'
4206 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4207 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4208 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4212 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4213 if ${ac_cv_path_GREP+:} false
; then :
4214 $as_echo_n "(cached) " >&6
4216 if test -z "$GREP"; then
4217 ac_path_GREP_found
=false
4218 # Loop through the user's path and test for each of PROGNAME-LIST
4219 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4220 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4223 test -z "$as_dir" && as_dir
=.
4224 for ac_prog
in grep ggrep
; do
4225 for ac_exec_ext
in '' $ac_executable_extensions; do
4226 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4227 as_fn_executable_p
"$ac_path_GREP" ||
continue
4228 # Check for GNU ac_path_GREP and select it if it is found.
4229 # Check for GNU $ac_path_GREP
4230 case `"$ac_path_GREP" --version 2>&1` in
4232 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4235 $as_echo_n 0123456789 >"conftest.in"
4238 cat "conftest.in" "conftest.in" >"conftest.tmp"
4239 mv "conftest.tmp" "conftest.in"
4240 cp "conftest.in" "conftest.nl"
4241 $as_echo 'GREP' >> "conftest.nl"
4242 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4243 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4244 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4245 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4246 # Best one so far, save it but keep looking for a better one
4247 ac_cv_path_GREP
="$ac_path_GREP"
4248 ac_path_GREP_max
=$ac_count
4250 # 10*(2^10) chars as input seems more than enough
4251 test $ac_count -gt 10 && break
4253 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4256 $ac_path_GREP_found && break 3
4261 if test -z "$ac_cv_path_GREP"; then
4262 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4265 ac_cv_path_GREP
=$GREP
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4270 $as_echo "$ac_cv_path_GREP" >&6; }
4271 GREP
="$ac_cv_path_GREP"
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4275 $as_echo_n "checking for egrep... " >&6; }
4276 if ${ac_cv_path_EGREP+:} false
; then :
4277 $as_echo_n "(cached) " >&6
4279 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4280 then ac_cv_path_EGREP
="$GREP -E"
4282 if test -z "$EGREP"; then
4283 ac_path_EGREP_found
=false
4284 # Loop through the user's path and test for each of PROGNAME-LIST
4285 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4286 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4289 test -z "$as_dir" && as_dir
=.
4290 for ac_prog
in egrep; do
4291 for ac_exec_ext
in '' $ac_executable_extensions; do
4292 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4293 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4294 # Check for GNU ac_path_EGREP and select it if it is found.
4295 # Check for GNU $ac_path_EGREP
4296 case `"$ac_path_EGREP" --version 2>&1` in
4298 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4301 $as_echo_n 0123456789 >"conftest.in"
4304 cat "conftest.in" "conftest.in" >"conftest.tmp"
4305 mv "conftest.tmp" "conftest.in"
4306 cp "conftest.in" "conftest.nl"
4307 $as_echo 'EGREP' >> "conftest.nl"
4308 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4309 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4310 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4311 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4312 # Best one so far, save it but keep looking for a better one
4313 ac_cv_path_EGREP
="$ac_path_EGREP"
4314 ac_path_EGREP_max
=$ac_count
4316 # 10*(2^10) chars as input seems more than enough
4317 test $ac_count -gt 10 && break
4319 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4322 $ac_path_EGREP_found && break 3
4327 if test -z "$ac_cv_path_EGREP"; then
4328 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4331 ac_cv_path_EGREP
=$EGREP
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4337 $as_echo "$ac_cv_path_EGREP" >&6; }
4338 EGREP
="$ac_cv_path_EGREP"
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4342 $as_echo_n "checking for ANSI C header files... " >&6; }
4343 if ${ac_cv_header_stdc+:} false
; then :
4344 $as_echo_n "(cached) " >&6
4346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4347 /* end confdefs.h. */
4361 if ac_fn_c_try_compile
"$LINENO"; then :
4362 ac_cv_header_stdc
=yes
4364 ac_cv_header_stdc
=no
4366 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4368 if test $ac_cv_header_stdc = yes; then
4369 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4371 /* end confdefs.h. */
4375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4376 $EGREP "memchr" >/dev
/null
2>&1; then :
4379 ac_cv_header_stdc
=no
4385 if test $ac_cv_header_stdc = yes; then
4386 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4388 /* end confdefs.h. */
4392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4393 $EGREP "free" >/dev
/null
2>&1; then :
4396 ac_cv_header_stdc
=no
4402 if test $ac_cv_header_stdc = yes; then
4403 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4404 if test "$cross_compiling" = yes; then :
4407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4408 /* end confdefs.h. */
4411 #if ((' ' & 0x0FF) == 0x020)
4412 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4413 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4415 # define ISLOWER(c) \
4416 (('a' <= (c) && (c) <= 'i') \
4417 || ('j' <= (c) && (c) <= 'r') \
4418 || ('s' <= (c) && (c) <= 'z'))
4419 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4422 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4427 for (i = 0; i < 256; i++)
4428 if (XOR (islower (i), ISLOWER (i))
4429 || toupper (i) != TOUPPER (i))
4434 if ac_fn_c_try_run
"$LINENO"; then :
4437 ac_cv_header_stdc
=no
4439 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4440 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4446 $as_echo "$ac_cv_header_stdc" >&6; }
4447 if test $ac_cv_header_stdc = yes; then
4449 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4453 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4454 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4455 inttypes.h stdint.h unistd.h
4457 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4458 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4460 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4461 cat >>confdefs.h
<<_ACEOF
4462 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4471 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4472 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4479 if test "$MINIX" = yes; then
4481 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4484 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4487 $as_echo "#define _MINIX 1" >>confdefs.h
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4493 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4494 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4495 $as_echo_n "(cached) " >&6
4497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4498 /* end confdefs.h. */
4500 # define __EXTENSIONS__ 1
4501 $ac_includes_default
4510 if ac_fn_c_try_compile
"$LINENO"; then :
4511 ac_cv_safe_to_define___extensions__
=yes
4513 ac_cv_safe_to_define___extensions__
=no
4515 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4518 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4519 test $ac_cv_safe_to_define___extensions__ = yes &&
4520 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4522 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4524 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4526 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4528 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4532 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4533 if test -f "$ac_dir/install-sh"; then
4535 ac_install_sh
="$ac_aux_dir/install-sh -c"
4537 elif test -f "$ac_dir/install.sh"; then
4539 ac_install_sh
="$ac_aux_dir/install.sh -c"
4541 elif test -f "$ac_dir/shtool"; then
4543 ac_install_sh
="$ac_aux_dir/shtool install -c"
4547 if test -z "$ac_aux_dir"; then
4548 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4551 # These three variables are undocumented and unsupported,
4552 # and are intended to be withdrawn in a future Autoconf release.
4553 # They can cause serious problems if a builder's source tree is in a directory
4554 # whose full name contains unusual characters.
4555 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4556 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4557 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4560 # Make sure we can run config.sub.
4561 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4562 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4565 $as_echo_n "checking build system type... " >&6; }
4566 if ${ac_cv_build+:} false
; then :
4567 $as_echo_n "(cached) " >&6
4569 ac_build_alias
=$build_alias
4570 test "x$ac_build_alias" = x
&&
4571 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4572 test "x$ac_build_alias" = x
&&
4573 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4574 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4575 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4579 $as_echo "$ac_cv_build" >&6; }
4580 case $ac_cv_build in
4582 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4585 ac_save_IFS
=$IFS; IFS
='-'
4591 # Remember, the first character of IFS is used to create $*,
4592 # except with old shells:
4595 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4599 $as_echo_n "checking host system type... " >&6; }
4600 if ${ac_cv_host+:} false
; then :
4601 $as_echo_n "(cached) " >&6
4603 if test "x$host_alias" = x
; then
4604 ac_cv_host
=$ac_cv_build
4606 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4607 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4612 $as_echo "$ac_cv_host" >&6; }
4615 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4618 ac_save_IFS
=$IFS; IFS
='-'
4624 # Remember, the first character of IFS is used to create $*,
4625 # except with old shells:
4628 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4632 $as_echo_n "checking target system type... " >&6; }
4633 if ${ac_cv_target+:} false
; then :
4634 $as_echo_n "(cached) " >&6
4636 if test "x$target_alias" = x
; then
4637 ac_cv_target
=$ac_cv_host
4639 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4640 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4645 $as_echo "$ac_cv_target" >&6; }
4646 case $ac_cv_target in
4648 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4650 target
=$ac_cv_target
4651 ac_save_IFS
=$IFS; IFS
='-'
4657 # Remember, the first character of IFS is used to create $*,
4658 # except with old shells:
4661 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4664 # The aliases save the names the user supplied, while $host etc.
4665 # will get canonicalized.
4666 test -n "$target_alias" &&
4667 test "$program_prefix$program_suffix$program_transform_name" = \
4669 program_prefix
=${target_alias}-
4671 # The tests for host and target for $enable_largefile require
4676 # As the $enable_largefile decision depends on --enable-plugins we must set it
4677 # even in directories otherwise not depending on the $plugins option.
4681 for ac_header
in dlfcn.h
4683 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4685 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
4686 cat >>confdefs.h
<<_ACEOF
4687 #define HAVE_DLFCN_H 1
4694 for ac_header
in windows.h
4696 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4698 if test "x$ac_cv_header_windows_h" = xyes
; then :
4699 cat >>confdefs.h
<<_ACEOF
4700 #define HAVE_WINDOWS_H 1
4708 # Check whether --enable-plugins was given.
4709 if test "${enable_plugins+set}" = set; then :
4710 enableval
=$enable_plugins; case "${enableval}" in
4713 if test "$maybe_plugins" != "yes" ; then
4714 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4718 plugins
=$maybe_plugins
4722 if test "$plugins" = "yes"; then
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4724 $as_echo_n "checking for library containing dlsym... " >&6; }
4725 if ${ac_cv_search_dlsym+:} false
; then :
4726 $as_echo_n "(cached) " >&6
4728 ac_func_search_save_LIBS
=$LIBS
4729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4730 /* end confdefs.h. */
4732 /* Override any GCC internal prototype to avoid an error.
4733 Use char because int might match the return type of a GCC
4734 builtin and then its argument prototype would still apply. */
4747 for ac_lib
in '' dl
; do
4748 if test -z "$ac_lib"; then
4749 ac_res
="none required"
4752 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4754 if ac_fn_c_try_link
"$LINENO"; then :
4755 ac_cv_search_dlsym
=$ac_res
4757 rm -f core conftest.err conftest.
$ac_objext \
4759 if ${ac_cv_search_dlsym+:} false
; then :
4763 if ${ac_cv_search_dlsym+:} false
; then :
4766 ac_cv_search_dlsym
=no
4769 LIBS
=$ac_func_search_save_LIBS
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4772 $as_echo "$ac_cv_search_dlsym" >&6; }
4773 ac_res
=$ac_cv_search_dlsym
4774 if test "$ac_res" != no
; then :
4775 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4783 sparc-
*-solaris*|i?
86-*-solaris*)
4784 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
4785 # were mutually exclusive until Solaris 11.3. Without procfs support,
4786 # the bfd/ elf module cannot provide certain routines such as
4787 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
4788 # explicitly requested large-file support through the
4789 # --enable-largefile switch, disable large-file support in favor of
4792 # Check if <sys/procfs.h> is incompatible with large-file support.
4793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4794 /* end confdefs.h. */
4795 #define _FILE_OFFSET_BITS 64
4796 #define _STRUCTURED_PROC 1
4797 #include <sys/procfs.h>
4806 if ac_fn_c_try_compile
"$LINENO"; then :
4807 acx_cv_procfs_lfs
=yes
4809 acx_cv_procfs_lfs
=no
4811 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4813 # Forcefully disable large-file support only if necessary, gdb is in
4815 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
4816 -a -d $srcdir/..
/gdb
-a "$enable_gdb" != no
; then
4817 : ${enable_largefile="no"}
4818 if test "$plugins" = yes; then
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
4820 plugin support disabled; require large-file support which is incompatible with GDB." >&5
4821 $as_echo "$as_me: WARNING:
4822 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
4827 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
4828 # benefit of g++ 9+ which predefines it on Solaris.
4829 if test "$enable_largefile" = no
; then
4830 LARGEFILE_CPPFLAGS
="-U_FILE_OFFSET_BITS"
4836 # Check whether --enable-largefile was given.
4837 if test "${enable_largefile+set}" = set; then :
4838 enableval
=$enable_largefile;
4841 if test "$enable_largefile" != no
; then
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4844 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4845 if ${ac_cv_sys_largefile_CC+:} false
; then :
4846 $as_echo_n "(cached) " >&6
4848 ac_cv_sys_largefile_CC
=no
4849 if test "$GCC" != yes; then
4852 # IRIX 6.2 and later do not support large files by default,
4853 # so use the C compiler's -n32 option if that helps.
4854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4855 /* end confdefs.h. */
4856 #include <sys/types.h>
4857 /* Check that off_t can represent 2**63 - 1 correctly.
4858 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4859 since some C++ compilers masquerading as C compilers
4860 incorrectly reject 9223372036854775807. */
4861 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4862 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4863 && LARGE_OFF_T % 2147483647 == 1)
4873 if ac_fn_c_try_compile
"$LINENO"; then :
4876 rm -f core conftest.err conftest.
$ac_objext
4878 if ac_fn_c_try_compile
"$LINENO"; then :
4879 ac_cv_sys_largefile_CC
=' -n32'; break
4881 rm -f core conftest.err conftest.
$ac_objext
4885 rm -f conftest.
$ac_ext
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4889 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4890 if test "$ac_cv_sys_largefile_CC" != no
; then
4891 CC
=$CC$ac_cv_sys_largefile_CC
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4895 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4896 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4897 $as_echo_n "(cached) " >&6
4900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4901 /* end confdefs.h. */
4902 #include <sys/types.h>
4903 /* Check that off_t can represent 2**63 - 1 correctly.
4904 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4905 since some C++ compilers masquerading as C compilers
4906 incorrectly reject 9223372036854775807. */
4907 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4908 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4909 && LARGE_OFF_T % 2147483647 == 1)
4919 if ac_fn_c_try_compile
"$LINENO"; then :
4920 ac_cv_sys_file_offset_bits
=no
; break
4922 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4924 /* end confdefs.h. */
4925 #define _FILE_OFFSET_BITS 64
4926 #include <sys/types.h>
4927 /* Check that off_t can represent 2**63 - 1 correctly.
4928 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4929 since some C++ compilers masquerading as C compilers
4930 incorrectly reject 9223372036854775807. */
4931 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4932 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4933 && LARGE_OFF_T % 2147483647 == 1)
4943 if ac_fn_c_try_compile
"$LINENO"; then :
4944 ac_cv_sys_file_offset_bits
=64; break
4946 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4947 ac_cv_sys_file_offset_bits
=unknown
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4952 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4953 case $ac_cv_sys_file_offset_bits in #(
4956 cat >>confdefs.h
<<_ACEOF
4957 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4962 if test $ac_cv_sys_file_offset_bits = unknown
; then
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4964 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4965 if ${ac_cv_sys_large_files+:} false
; then :
4966 $as_echo_n "(cached) " >&6
4969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4970 /* end confdefs.h. */
4971 #include <sys/types.h>
4972 /* Check that off_t can represent 2**63 - 1 correctly.
4973 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4974 since some C++ compilers masquerading as C compilers
4975 incorrectly reject 9223372036854775807. */
4976 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4977 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4978 && LARGE_OFF_T % 2147483647 == 1)
4988 if ac_fn_c_try_compile
"$LINENO"; then :
4989 ac_cv_sys_large_files
=no
; break
4991 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4993 /* end confdefs.h. */
4994 #define _LARGE_FILES 1
4995 #include <sys/types.h>
4996 /* Check that off_t can represent 2**63 - 1 correctly.
4997 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4998 since some C++ compilers masquerading as C compilers
4999 incorrectly reject 9223372036854775807. */
5000 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5001 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5002 && LARGE_OFF_T % 2147483647 == 1)
5012 if ac_fn_c_try_compile
"$LINENO"; then :
5013 ac_cv_sys_large_files
=1; break
5015 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5016 ac_cv_sys_large_files
=unknown
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5021 $as_echo "$ac_cv_sys_large_files" >&6; }
5022 case $ac_cv_sys_large_files in #(
5025 cat >>confdefs.h
<<_ACEOF
5026 #define _LARGE_FILES $ac_cv_sys_large_files
5037 # Expand $ac_aux_dir to an absolute path.
5038 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
5040 if test x
"${install_sh+set}" != xset
; then
5043 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
5045 install_sh
="\${SHELL} $am_aux_dir/install-sh"
5049 # Installed binaries are usually stripped using 'strip' when the user
5050 # run "make install-strip". However 'strip' might not be the right
5051 # tool to use in cross-compilation environments, therefore Automake
5052 # will honor the 'STRIP' environment variable to overrule this program.
5053 if test "$cross_compiling" != no
; then
5054 if test -n "$ac_tool_prefix"; then
5055 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5056 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5058 $as_echo_n "checking for $ac_word... " >&6; }
5059 if ${ac_cv_prog_STRIP+:} false
; then :
5060 $as_echo_n "(cached) " >&6
5062 if test -n "$STRIP"; then
5063 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
5065 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5069 test -z "$as_dir" && as_dir
=.
5070 for ac_exec_ext
in '' $ac_executable_extensions; do
5071 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5072 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
5073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5082 STRIP
=$ac_cv_prog_STRIP
5083 if test -n "$STRIP"; then
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5085 $as_echo "$STRIP" >&6; }
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5088 $as_echo "no" >&6; }
5093 if test -z "$ac_cv_prog_STRIP"; then
5095 # Extract the first word of "strip", so it can be a program name with args.
5096 set dummy strip
; ac_word
=$2
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5098 $as_echo_n "checking for $ac_word... " >&6; }
5099 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
5100 $as_echo_n "(cached) " >&6
5102 if test -n "$ac_ct_STRIP"; then
5103 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5105 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5109 test -z "$as_dir" && as_dir
=.
5110 for ac_exec_ext
in '' $ac_executable_extensions; do
5111 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5112 ac_cv_prog_ac_ct_STRIP
="strip"
5113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5122 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5123 if test -n "$ac_ct_STRIP"; then
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5125 $as_echo "$ac_ct_STRIP" >&6; }
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5128 $as_echo "no" >&6; }
5131 if test "x$ac_ct_STRIP" = x
; then
5134 case $cross_compiling:$ac_tool_warned in
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5138 ac_tool_warned
=yes ;;
5143 STRIP
="$ac_cv_prog_STRIP"
5147 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
5151 for ac_dir
in ..
"$srcdir"/..
; do
5152 if test -f "$ac_dir/install-sh"; then
5154 ac_install_sh
="$ac_aux_dir/install-sh -c"
5156 elif test -f "$ac_dir/install.sh"; then
5158 ac_install_sh
="$ac_aux_dir/install.sh -c"
5160 elif test -f "$ac_dir/shtool"; then
5162 ac_install_sh
="$ac_aux_dir/shtool install -c"
5166 if test -z "$ac_aux_dir"; then
5167 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
5170 # These three variables are undocumented and unsupported,
5171 # and are intended to be withdrawn in a future Autoconf release.
5172 # They can cause serious problems if a builder's source tree is in a directory
5173 # whose full name contains unusual characters.
5174 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5175 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5176 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5180 # Set build, build_cpu, build_vendor and build_os.
5183 # Set host, host_cpu, host_vendor, and host_os.
5186 # Set target, target_cpu, target_vendor, and target_os.
5189 case ${build_alias} in
5190 "") build_noncanonical
=${build} ;;
5191 *) build_noncanonical
=${build_alias} ;;
5194 case ${host_alias} in
5195 "") host_noncanonical
=${build_noncanonical} ;;
5196 *) host_noncanonical
=${host_alias} ;;
5199 case ${target_alias} in
5200 "") target_noncanonical
=${host_noncanonical} ;;
5201 *) target_noncanonical
=${target_alias} ;;
5207 test "$program_prefix" != NONE
&&
5208 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
5209 # Use a double $ so make ignores it.
5210 test "$program_suffix" != NONE
&&
5211 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
5212 # Double any \ or $.
5213 # By default was `s,x,x', remove it if useless.
5214 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
5215 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
5218 # We require a C++11 compiler. Check if one is available, and if
5219 # necessary, set CXX_DIALECT to some -std=xxx switch.
5221 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5223 ac_cpp
='$CXXCPP $CPPFLAGS'
5224 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5225 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5226 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5230 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5231 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5232 $as_echo_n "(cached) " >&6
5234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5235 /* end confdefs.h. */
5238 // If the compiler admits that it is not ready for C++11, why torture it?
5239 // Hopefully, this will speed up the test.
5243 #error "This is not a C++ compiler"
5245 #elif __cplusplus < 201103L
5247 #error "This is not a C++11 compiler"
5254 namespace test_static_assert
5257 template <typename T>
5260 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5265 namespace test_final_override
5273 struct Derived : public Base
5275 virtual void f() override {}
5280 namespace test_double_right_angle_brackets
5283 template < typename T >
5286 typedef check<void> single_type;
5287 typedef check<check<void>> double_type;
5288 typedef check<check<check<void>>> triple_type;
5289 typedef check<check<check<check<void>>>> quadruple_type;
5293 namespace test_decltype
5306 namespace test_type_deduction
5309 template < typename T1, typename T2 >
5312 static const bool value = false;
5315 template < typename T >
5316 struct is_same<T, T>
5318 static const bool value = true;
5321 template < typename T1, typename T2 >
5323 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5329 test(const int c, volatile int v)
5331 static_assert(is_same<int, decltype(0)>::value == true, "");
5332 static_assert(is_same<int, decltype(c)>::value == false, "");
5333 static_assert(is_same<int, decltype(v)>::value == false, "");
5336 auto sumi = ac + av + 'x';
5337 auto sumf = ac + av + 1.0;
5338 static_assert(is_same<int, decltype(ac)>::value == true, "");
5339 static_assert(is_same<int, decltype(av)>::value == true, "");
5340 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5341 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5342 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5343 return (sumf > 0.0) ? sumi : add(c, v);
5348 namespace test_noexcept
5351 int f() { return 0; }
5352 int g() noexcept { return 0; }
5354 static_assert(noexcept(f()) == false, "");
5355 static_assert(noexcept(g()) == true, "");
5359 namespace test_constexpr
5362 template < typename CharT >
5363 unsigned long constexpr
5364 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5366 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5369 template < typename CharT >
5370 unsigned long constexpr
5371 strlen_c(const CharT *const s) noexcept
5373 return strlen_c_r(s, 0UL);
5376 static_assert(strlen_c("") == 0UL, "");
5377 static_assert(strlen_c("1") == 1UL, "");
5378 static_assert(strlen_c("example") == 7UL, "");
5379 static_assert(strlen_c("another\0example") == 7UL, "");
5383 namespace test_rvalue_references
5389 static constexpr int value = N;
5392 answer<1> f(int&) { return answer<1>(); }
5393 answer<2> f(const int&) { return answer<2>(); }
5394 answer<3> f(int&&) { return answer<3>(); }
5401 static_assert(decltype(f(i))::value == 1, "");
5402 static_assert(decltype(f(c))::value == 2, "");
5403 static_assert(decltype(f(0))::value == 3, "");
5408 namespace test_uniform_initialization
5413 static const int zero {};
5414 static const int one {1};
5417 static_assert(test::zero == 0, "");
5418 static_assert(test::one == 1, "");
5422 namespace test_lambdas
5428 auto lambda1 = [](){};
5429 auto lambda2 = lambda1;
5437 auto a = [](int i, int j){ return i + j; }(1, 2);
5438 auto b = []() -> int { return '0'; }();
5439 auto c = [=](){ return a + b; }();
5440 auto d = [&](){ return c; }();
5441 auto e = [a, &b](int x) mutable {
5442 const auto identity = [](int y){ return y; };
5443 for (auto i = 0; i < a; ++i)
5445 return x + identity(a + b);
5447 return a + b + c + d + e;
5453 const auto nullary = [](){ return 0; };
5454 const auto unary = [](int x){ return x; };
5455 using nullary_t = decltype(nullary);
5456 using unary_t = decltype(unary);
5457 const auto higher1st = [](nullary_t f){ return f(); };
5458 const auto higher2nd = [unary](nullary_t f1){
5459 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5461 return higher1st(nullary) + higher2nd(nullary)(unary);
5466 namespace test_variadic_templates
5472 template <int N0, int... N1toN>
5473 struct sum<N0, N1toN...>
5475 static constexpr auto value = N0 + sum<N1toN...>::value;
5481 static constexpr auto value = 0;
5484 static_assert(sum<>::value == 0, "");
5485 static_assert(sum<1>::value == 1, "");
5486 static_assert(sum<23>::value == 23, "");
5487 static_assert(sum<1, 2>::value == 3, "");
5488 static_assert(sum<5, 5, 11>::value == 21, "");
5489 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5493 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5494 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5496 namespace test_template_alias_sfinae
5501 template<typename T>
5502 using member = typename T::member_type;
5504 template<typename T>
5507 template<typename T>
5508 void func(member<T>*) {}
5512 void test() { func<foo>(0); }
5516 } // namespace cxx11
5518 #endif // __cplusplus >= 201103L
5523 if ac_fn_cxx_try_compile
"$LINENO"; then :
5524 ax_cv_cxx_compile_cxx11
=yes
5526 ax_cv_cxx_compile_cxx11
=no
5528 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5531 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5532 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
5536 if test x
$ac_success = xno
; then
5537 for alternative
in ${ax_cxx_compile_alternatives}; do
5538 switch
="-std=gnu++${alternative}"
5539 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5541 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5542 if eval \
${$cachevar+:} false
; then :
5543 $as_echo_n "(cached) " >&6
5547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5548 /* end confdefs.h. */
5551 // If the compiler admits that it is not ready for C++11, why torture it?
5552 // Hopefully, this will speed up the test.
5556 #error "This is not a C++ compiler"
5558 #elif __cplusplus < 201103L
5560 #error "This is not a C++11 compiler"
5567 namespace test_static_assert
5570 template <typename T>
5573 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5578 namespace test_final_override
5586 struct Derived : public Base
5588 virtual void f() override {}
5593 namespace test_double_right_angle_brackets
5596 template < typename T >
5599 typedef check<void> single_type;
5600 typedef check<check<void>> double_type;
5601 typedef check<check<check<void>>> triple_type;
5602 typedef check<check<check<check<void>>>> quadruple_type;
5606 namespace test_decltype
5619 namespace test_type_deduction
5622 template < typename T1, typename T2 >
5625 static const bool value = false;
5628 template < typename T >
5629 struct is_same<T, T>
5631 static const bool value = true;
5634 template < typename T1, typename T2 >
5636 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5642 test(const int c, volatile int v)
5644 static_assert(is_same<int, decltype(0)>::value == true, "");
5645 static_assert(is_same<int, decltype(c)>::value == false, "");
5646 static_assert(is_same<int, decltype(v)>::value == false, "");
5649 auto sumi = ac + av + 'x';
5650 auto sumf = ac + av + 1.0;
5651 static_assert(is_same<int, decltype(ac)>::value == true, "");
5652 static_assert(is_same<int, decltype(av)>::value == true, "");
5653 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5654 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5655 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5656 return (sumf > 0.0) ? sumi : add(c, v);
5661 namespace test_noexcept
5664 int f() { return 0; }
5665 int g() noexcept { return 0; }
5667 static_assert(noexcept(f()) == false, "");
5668 static_assert(noexcept(g()) == true, "");
5672 namespace test_constexpr
5675 template < typename CharT >
5676 unsigned long constexpr
5677 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5679 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5682 template < typename CharT >
5683 unsigned long constexpr
5684 strlen_c(const CharT *const s) noexcept
5686 return strlen_c_r(s, 0UL);
5689 static_assert(strlen_c("") == 0UL, "");
5690 static_assert(strlen_c("1") == 1UL, "");
5691 static_assert(strlen_c("example") == 7UL, "");
5692 static_assert(strlen_c("another\0example") == 7UL, "");
5696 namespace test_rvalue_references
5702 static constexpr int value = N;
5705 answer<1> f(int&) { return answer<1>(); }
5706 answer<2> f(const int&) { return answer<2>(); }
5707 answer<3> f(int&&) { return answer<3>(); }
5714 static_assert(decltype(f(i))::value == 1, "");
5715 static_assert(decltype(f(c))::value == 2, "");
5716 static_assert(decltype(f(0))::value == 3, "");
5721 namespace test_uniform_initialization
5726 static const int zero {};
5727 static const int one {1};
5730 static_assert(test::zero == 0, "");
5731 static_assert(test::one == 1, "");
5735 namespace test_lambdas
5741 auto lambda1 = [](){};
5742 auto lambda2 = lambda1;
5750 auto a = [](int i, int j){ return i + j; }(1, 2);
5751 auto b = []() -> int { return '0'; }();
5752 auto c = [=](){ return a + b; }();
5753 auto d = [&](){ return c; }();
5754 auto e = [a, &b](int x) mutable {
5755 const auto identity = [](int y){ return y; };
5756 for (auto i = 0; i < a; ++i)
5758 return x + identity(a + b);
5760 return a + b + c + d + e;
5766 const auto nullary = [](){ return 0; };
5767 const auto unary = [](int x){ return x; };
5768 using nullary_t = decltype(nullary);
5769 using unary_t = decltype(unary);
5770 const auto higher1st = [](nullary_t f){ return f(); };
5771 const auto higher2nd = [unary](nullary_t f1){
5772 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5774 return higher1st(nullary) + higher2nd(nullary)(unary);
5779 namespace test_variadic_templates
5785 template <int N0, int... N1toN>
5786 struct sum<N0, N1toN...>
5788 static constexpr auto value = N0 + sum<N1toN...>::value;
5794 static constexpr auto value = 0;
5797 static_assert(sum<>::value == 0, "");
5798 static_assert(sum<1>::value == 1, "");
5799 static_assert(sum<23>::value == 23, "");
5800 static_assert(sum<1, 2>::value == 3, "");
5801 static_assert(sum<5, 5, 11>::value == 21, "");
5802 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5806 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5807 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5809 namespace test_template_alias_sfinae
5814 template<typename T>
5815 using member = typename T::member_type;
5817 template<typename T>
5820 template<typename T>
5821 void func(member<T>*) {}
5825 void test() { func<foo>(0); }
5829 } // namespace cxx11
5831 #endif // __cplusplus >= 201103L
5836 if ac_fn_cxx_try_compile
"$LINENO"; then :
5841 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5844 eval ac_res
=\$
$cachevar
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5846 $as_echo "$ac_res" >&6; }
5847 if eval test x\$
$cachevar = xyes
; then
5848 CXX_DIALECT
="$switch"
5850 if test -n "$CXXCPP" ; then
5851 CXXCPP
="$CXXCPP $switch"
5859 if test x
$ac_success = xno
; then
5860 for alternative
in ${ax_cxx_compile_alternatives}; do
5861 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5862 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
5864 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
5865 if eval \${$cachevar+:} false; then :
5866 $as_echo_n "(cached
) " >&6
5870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5871 /* end confdefs.h. */
5874 // If the compiler admits that it is not ready for C++11, why torture it?
5875 // Hopefully, this will speed up the test.
5879 #error "This is not a C
++ compiler
"
5881 #elif __cplusplus < 201103L
5883 #error "This is not a C
++11 compiler
"
5890 namespace test_static_assert
5893 template <typename T>
5896 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
5901 namespace test_final_override
5909 struct Derived : public Base
5911 virtual void f() override {}
5916 namespace test_double_right_angle_brackets
5919 template < typename T >
5922 typedef check<void> single_type;
5923 typedef check<check<void>> double_type;
5924 typedef check<check<check<void>>> triple_type;
5925 typedef check<check<check<check<void>>>> quadruple_type;
5929 namespace test_decltype
5942 namespace test_type_deduction
5945 template < typename T1, typename T2 >
5948 static const bool value = false;
5951 template < typename T >
5952 struct is_same<T, T>
5954 static const bool value = true;
5957 template < typename T1, typename T2 >
5959 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5965 test(const int c, volatile int v)
5967 static_assert(is_same<int, decltype(0)>::value == true, "");
5968 static_assert(is_same<int, decltype(c)>::value == false, "");
5969 static_assert(is_same<int, decltype(v)>::value == false, "");
5972 auto sumi = ac + av + 'x';
5973 auto sumf = ac + av + 1.0;
5974 static_assert(is_same<int, decltype(ac)>::value == true, "");
5975 static_assert(is_same<int, decltype(av)>::value == true, "");
5976 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5977 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5978 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5979 return (sumf > 0.0) ? sumi : add(c, v);
5984 namespace test_noexcept
5987 int f() { return 0; }
5988 int g() noexcept { return 0; }
5990 static_assert(noexcept(f()) == false, "");
5991 static_assert(noexcept(g()) == true, "");
5995 namespace test_constexpr
5998 template < typename CharT >
5999 unsigned long constexpr
6000 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6002 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6005 template < typename CharT >
6006 unsigned long constexpr
6007 strlen_c(const CharT *const s) noexcept
6009 return strlen_c_r(s, 0UL);
6012 static_assert(strlen_c("") == 0UL, "");
6013 static_assert(strlen_c("1") == 1UL, "");
6014 static_assert(strlen_c("example
") == 7UL, "");
6015 static_assert(strlen_c("another\
0example
") == 7UL, "");
6019 namespace test_rvalue_references
6025 static constexpr int value = N;
6028 answer<1> f(int&) { return answer<1>(); }
6029 answer<2> f(const int&) { return answer<2>(); }
6030 answer<3> f(int&&) { return answer<3>(); }
6037 static_assert(decltype(f(i))::value == 1, "");
6038 static_assert(decltype(f(c))::value == 2, "");
6039 static_assert(decltype(f(0))::value == 3, "");
6044 namespace test_uniform_initialization
6049 static const int zero {};
6050 static const int one {1};
6053 static_assert(test::zero == 0, "");
6054 static_assert(test::one == 1, "");
6058 namespace test_lambdas
6064 auto lambda1 = [](){};
6065 auto lambda2 = lambda1;
6073 auto a = [](int i, int j){ return i + j; }(1, 2);
6074 auto b = []() -> int { return '0'; }();
6075 auto c = [=](){ return a + b; }();
6076 auto d = [&](){ return c; }();
6077 auto e = [a, &b](int x) mutable {
6078 const auto identity = [](int y){ return y; };
6079 for (auto i = 0; i < a; ++i)
6081 return x + identity(a + b);
6083 return a + b + c + d + e;
6089 const auto nullary = [](){ return 0; };
6090 const auto unary = [](int x){ return x; };
6091 using nullary_t = decltype(nullary);
6092 using unary_t = decltype(unary);
6093 const auto higher1st = [](nullary_t f){ return f(); };
6094 const auto higher2nd = [unary](nullary_t f1){
6095 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6097 return higher1st(nullary) + higher2nd(nullary)(unary);
6102 namespace test_variadic_templates
6108 template <int N0, int... N1toN>
6109 struct sum<N0, N1toN...>
6111 static constexpr auto value = N0 + sum<N1toN...>::value;
6117 static constexpr auto value = 0;
6120 static_assert(sum<>::value == 0, "");
6121 static_assert(sum<1>::value == 1, "");
6122 static_assert(sum<23>::value == 23, "");
6123 static_assert(sum<1, 2>::value == 3, "");
6124 static_assert(sum<5, 5, 11>::value == 21, "");
6125 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6129 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6130 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6132 namespace test_template_alias_sfinae
6137 template<typename T>
6138 using member = typename T::member_type;
6140 template<typename T>
6143 template<typename T>
6144 void func(member<T>*) {}
6148 void test() { func<foo>(0); }
6152 } // namespace cxx11
6154 #endif // __cplusplus >= 201103L
6159 if ac_fn_cxx_try_compile "$LINENO"; then :
6164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6167 eval ac_res=\$$cachevar
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6169 $as_echo "$ac_res" >&6; }
6170 if eval test x\$$cachevar = xyes; then
6171 CXX_DIALECT="$switch"
6173 if test -n "$CXXCPP" ; then
6174 CXXCPP="$CXXCPP $switch"
6180 if test x$ac_success = xyes; then
6186 ac_cpp='$CPP $CPPFLAGS'
6187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6191 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6192 if test x$ac_success = xno; then
6193 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6196 if test x$ac_success = xno; then
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6199 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6203 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6210 # Dependency checking.
6211 rm -rf .tst
2>/dev
/null
6212 mkdir .tst
2>/dev
/null
6213 if test -d .tst
; then
6218 rmdir .tst
2>/dev
/null
6220 DEPDIR
="${am__leading_dot}deps"
6222 ac_config_commands
="$ac_config_commands depdir"
6225 depcc
="$CC" am_compiler_list
=
6227 am_depcomp
=$ac_aux_dir/depcomp
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6229 $as_echo_n "checking dependency style of $depcc... " >&6; }
6230 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
6231 $as_echo_n "(cached) " >&6
6233 if test -f "$am_depcomp"; then
6234 # We make a subdir and do the tests there. Otherwise we can end up
6235 # making bogus files that we don't know about and never remove. For
6236 # instance it was reported that on HP-UX the gcc test will end up
6237 # making a dummy file named `D' -- because `-MD' means `put the output
6240 # Copy depcomp to subdir because otherwise we won't find it if we're
6241 # using a relative directory.
6242 cp "$am_depcomp" conftest.dir
6244 # We will build objects and dependencies in a subdirectory because
6245 # it helps to detect inapplicable dependency modes. For instance
6246 # both Tru64's cc and ICC support -MD to output dependencies as a
6247 # side effect of compilation, but ICC will put the dependencies in
6248 # the current directory while Tru64 will put them in the object
6252 am_cv_CC_dependencies_compiler_type
=none
6253 if test "$am_compiler_list" = ""; then
6254 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6256 for depmode
in $am_compiler_list; do
6257 if test $depmode = none
; then break; fi
6259 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6260 # Setup a source with many dependencies, because some compilers
6261 # like to wrap large dependency lists on column 80 (with \), and
6262 # we should not choose a depcomp mode which is confused by this.
6264 # We need to recreate these files for each test, as the compiler may
6265 # overwrite some of them when testing with obscure command lines.
6266 # This happens at least with the AIX C compiler.
6268 for i
in 1 2 3 4 5 6; do
6269 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6270 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6271 # Solaris 8's {/usr,}/bin/sh.
6272 touch sub
/conftst
$i.h
6274 echo "include sub/conftest.Po" > confmf
6276 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6277 # mode. It turns out that the SunPro C++ compiler does not properly
6278 # handle `-M -o', and we need to detect this.
6279 depcmd
="depmode=$depmode \
6280 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6281 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6282 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6283 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
6284 if env
$depcmd > conftest.err
2>&1 &&
6285 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
6286 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
6287 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
6288 # icc doesn't choke on unknown options, it will just issue warnings
6289 # or remarks (even with -Werror). So we grep stderr for any message
6290 # that says an option was ignored or not supported.
6291 # When given -MP, icc 7.0 and 7.1 complain thusly:
6292 # icc: Command line warning: ignoring option '-M'; no argument required
6293 # The diagnosis changed in icc 8.0:
6294 # icc: Command line remark: option '-MP' not supported
6295 if (grep 'ignoring option' conftest.err ||
6296 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6297 am_cv_CC_dependencies_compiler_type
=$depmode
6298 $as_echo "$as_me:$LINENO: success" >&5
6302 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6303 sed -e 's/^/| /' < conftest.err
>&5
6309 am_cv_CC_dependencies_compiler_type
=none
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6314 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6315 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
6316 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
6317 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
6333 # If we haven't got the data from the intl directory,
6334 # assume NLS is disabled.
6343 if test -f ..
/intl
/config.intl
; then
6344 . ..
/intl
/config.intl
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6347 $as_echo_n "checking whether NLS is requested... " >&6; }
6348 if test x
"$USE_NLS" != xyes
; then
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6350 $as_echo "no" >&6; }
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6353 $as_echo "yes" >&6; }
6355 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6359 $as_echo_n "checking for catalogs to be installed... " >&6; }
6360 # Look for .po and .gmo files in the source directory.
6363 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
6364 # If there aren't any .gmo files the shell will give us the
6365 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6367 case "$cat" in *\
**)
6370 # The quadruple backslash is collapsed to a double backslash
6371 # by the backticks, then collapsed again by the double quotes,
6372 # leaving us with one backslash in the sed expression (right
6373 # before the dot that mustn't act as a wildcard).
6374 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6375 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
6376 # The user is allowed to set LINGUAS to a list of languages to
6377 # install catalogs for. If it's empty that means "all of them."
6378 if test "x$LINGUAS" = x
; then
6379 CATALOGS
="$CATALOGS $cat"
6380 XLINGUAS
="$XLINGUAS $lang"
6382 case "$LINGUAS" in *$lang*)
6383 CATALOGS
="$CATALOGS $cat"
6384 XLINGUAS
="$XLINGUAS $lang"
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6391 $as_echo "$LINGUAS" >&6; }
6404 localedir
='${datadir}/locale'
6407 if test x
"$USE_NLS" = xyes
; then
6408 CONFIG_ALL
="$CONFIG_ALL all-po"
6409 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
6410 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
6411 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
6416 cat >>confdefs.h
<<_ACEOF
6417 #define PACKAGE "$PACKAGE"
6422 # We never need to detect it in this sub-configure.
6423 # But preserve it for config.status --recheck.
6427 MAKEINFO_EXTRA_FLAGS
=""
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
6429 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
6430 if ${gdb_cv_have_makeinfo_click+:} false
; then :
6431 $as_echo_n "(cached) " >&6
6433 echo '@clicksequence{a @click{} b}' >conftest.texinfo
6434 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
6435 gdb_cv_have_makeinfo_click
=yes
6437 gdb_cv_have_makeinfo_click
=no
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
6441 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
6442 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
6443 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
6449 # Check whether --with-separate-debug-dir was given.
6450 if test "${with_separate_debug_dir+set}" = set; then :
6451 withval
=$with_separate_debug_dir;
6454 DEBUGDIR
=${libdir}/debug
6458 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6459 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6460 ac_define_dir
=`eval echo $DEBUGDIR`
6461 ac_define_dir
=`eval echo $ac_define_dir`
6463 cat >>confdefs.h
<<_ACEOF
6464 #define DEBUGDIR "$ac_define_dir"
6470 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6471 if test "x$prefix" = xNONE
; then
6472 test_prefix
=/usr
/local
6477 test_prefix
=$exec_prefix
6480 case ${ac_define_dir} in
6481 "${test_prefix}"|
"${test_prefix}/"*|\
6482 '${exec_prefix}'|
'${exec_prefix}/'*)
6487 cat >>confdefs.h
<<_ACEOF
6488 #define DEBUGDIR_RELOCATABLE $value
6494 # We can't pass paths as command line arguments.
6495 # Mingw32 tries to be clever and will convert the paths for us.
6496 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
6497 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
6498 # This breaks GDB's relocatable path conversions since paths passed in
6499 # config.h would not get so translated, the path prefixes no longer match.
6501 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6502 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6503 ac_define_dir
=`eval echo $bindir`
6504 ac_define_dir
=`eval echo $ac_define_dir`
6506 cat >>confdefs.h
<<_ACEOF
6507 #define BINDIR "$ac_define_dir"
6512 # GDB's datadir relocation
6516 # Check whether --with-gdb-datadir was given.
6517 if test "${with_gdb_datadir+set}" = set; then :
6518 withval
=$with_gdb_datadir;
6519 GDB_DATADIR
=$withval
6521 GDB_DATADIR
=${datadir}/gdb
6525 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6526 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6527 ac_define_dir
=`eval echo $GDB_DATADIR`
6528 ac_define_dir
=`eval echo $ac_define_dir`
6530 cat >>confdefs.h
<<_ACEOF
6531 #define GDB_DATADIR "$ac_define_dir"
6537 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6538 if test "x$prefix" = xNONE
; then
6539 test_prefix
=/usr
/local
6544 test_prefix
=$exec_prefix
6547 case ${ac_define_dir} in
6548 "${test_prefix}"|
"${test_prefix}/"*|\
6549 '${exec_prefix}'|
'${exec_prefix}/'*)
6554 cat >>confdefs.h
<<_ACEOF
6555 #define GDB_DATADIR_RELOCATABLE $value
6562 # Check whether --with-relocated-sources was given.
6563 if test "${with_relocated_sources+set}" = set; then :
6564 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
6566 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6567 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6568 ac_define_dir
=`eval echo $reloc_srcdir`
6569 ac_define_dir
=`eval echo $ac_define_dir`
6571 cat >>confdefs.h
<<_ACEOF
6572 #define RELOC_SRCDIR "$ac_define_dir"
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
6581 $as_echo_n "checking for default auto-load directory... " >&6; }
6583 # Check whether --with-auto-load-dir was given.
6584 if test "${with_auto_load_dir+set}" = set; then :
6585 withval
=$with_auto_load_dir;
6587 with_auto_load_dir
='$debugdir:$datadir/auto-load'
6590 escape_dir
=`echo $with_auto_load_dir | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6592 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6593 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6594 ac_define_dir
=`eval echo $escape_dir`
6595 ac_define_dir
=`eval echo $ac_define_dir`
6597 cat >>confdefs.h
<<_ACEOF
6598 #define AUTO_LOAD_DIR "$ac_define_dir"
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
6603 $as_echo "$with_auto_load_dir" >&6; }
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
6606 $as_echo_n "checking for default auto-load safe-path... " >&6; }
6608 # Check whether --with-auto-load-safe-path was given.
6609 if test "${with_auto_load_safe_path+set}" = set; then :
6610 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
6611 with_auto_load_safe_path
="/"
6614 with_auto_load_safe_path
="$with_auto_load_dir"
6617 escape_dir
=`echo $with_auto_load_safe_path | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6619 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6620 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6621 ac_define_dir
=`eval echo $escape_dir`
6622 ac_define_dir
=`eval echo $ac_define_dir`
6624 cat >>confdefs.h
<<_ACEOF
6625 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
6630 $as_echo "$with_auto_load_safe_path" >&6; }
6634 subdirs
="$subdirs testsuite"
6637 # Check whether to support alternative target configurations
6638 # Check whether --enable-targets was given.
6639 if test "${enable_targets+set}" = set; then :
6640 enableval
=$enable_targets; case "${enableval}" in
6641 yes |
"") as_fn_error $?
"enable-targets option must specify target names or 'all'" "$LINENO" 5
6643 no
) enable_targets
= ;;
6644 *) enable_targets
=$enableval ;;
6649 # Check whether to enable 64-bit support on 32-bit hosts
6650 # Check whether --enable-64-bit-bfd was given.
6651 if test "${enable_64_bit_bfd+set}" = set; then :
6652 enableval
=$enable_64_bit_bfd; case "${enableval}" in
6655 *) as_fn_error $?
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
6661 # Provide defaults for some variables set by the per-host and per-target
6663 gdb_host_obs
=posix-hdep.o
6665 if test "${target}" = "${host}"; then
6671 .
$srcdir/configure.
host
6673 # Accumulate some settings from configure.tgt over all enabled targets
6677 HAVE_NATIVE_GCORE_TARGET
=
6679 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6681 if test "$targ_alias" = "all"; then
6684 # Canonicalize the secondary target names.
6685 result
=`$ac_config_sub $targ_alias 2>/dev/null`
6686 if test -n "$result"; then
6692 .
${srcdir}/configure.tgt
6694 if test -z "${gdb_target_obs}"; then :
6695 as_fn_error $?
"configuration ${targ} is unsupported." "$LINENO" 5
6698 # Target-specific object files
6699 for i
in ${gdb_target_obs}; do
6700 case " $TARGET_OBS " in
6703 TARGET_OBS
="$TARGET_OBS ${i}"
6708 # Check whether this target needs 64-bit CORE_ADDR
6709 if test x
${want64} = xfalse
; then
6710 .
${srcdir}/..
/bfd
/config.bfd
6713 # Check whether this target is native and supports gcore.
6714 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
6715 && $gdb_have_gcore; then
6716 HAVE_NATIVE_GCORE_TARGET
=1
6721 if test x
${all_targets} = xtrue
; then
6723 # We want all 64-bit targets if we either:
6724 # - run on a 64-bit host or
6725 # - already require 64-bit support for some other target or
6726 # - the --enable-64-bit-bfd option was supplied
6727 # Otherwise we only support all 32-bit targets.
6729 # NOTE: This test must be in sync with the corresponding
6732 if test x
${want64} = xfalse
; then
6733 # The cast to long int works around a bug in the HP C Compiler
6734 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6735 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6736 # This bug is HP SR number 8606223364.
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6738 $as_echo_n "checking size of long... " >&6; }
6739 if ${ac_cv_sizeof_long+:} false
; then :
6740 $as_echo_n "(cached) " >&6
6742 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6745 if test "$ac_cv_type_long" = yes; then
6746 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6748 as_fn_error
77 "cannot compute sizeof (long)
6749 See \`config.log' for more details" "$LINENO" 5; }
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6757 $as_echo "$ac_cv_sizeof_long" >&6; }
6761 cat >>confdefs.h
<<_ACEOF
6762 #define SIZEOF_LONG $ac_cv_sizeof_long
6766 if test "x${ac_cv_sizeof_long}" = "x8"; then
6770 if test x
${want64} = xtrue
; then
6771 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
6773 TARGET_OBS
='$(ALL_TARGET_OBS)'
6780 # For other settings, only the main target counts.
6783 targ
=$target; .
${srcdir}/configure.tgt
6785 # Fetch the default architecture and default target vector from BFD.
6786 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
6788 # We only want the first architecture, so strip off the others if
6789 # there is more than one.
6790 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
6792 if test "x$targ_archs" != x
; then
6794 cat >>confdefs.h
<<_ACEOF
6795 #define DEFAULT_BFD_ARCH $targ_archs
6799 if test "x$targ_defvec" != x
; then
6801 cat >>confdefs.h
<<_ACEOF
6802 #define DEFAULT_BFD_VEC $targ_defvec
6808 # Check whether --enable-gdbmi was given.
6809 if test "${enable_gdbmi+set}" = set; then :
6810 enableval
=$enable_gdbmi; case $enableval in
6814 as_fn_error $?
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
6820 if test x
"$enable_gdbmi" = xyes
; then
6821 if test -d "$srcdir/mi"; then
6822 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6823 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6824 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6825 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6830 # Check whether --enable-tui was given.
6831 if test "${enable_tui+set}" = set; then :
6832 enableval
=$enable_tui; case $enableval in
6836 as_fn_error $?
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
6844 # Check whether --enable-gdbtk was given.
6845 if test "${enable_gdbtk+set}" = set; then :
6846 enableval
=$enable_gdbtk; case $enableval in
6850 as_fn_error $?
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
6853 if test -d "$srcdir/gdbtk"; then
6860 # We unconditionally disable gdbtk tests on selected platforms.
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
6864 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6868 # Handle optional debuginfod support
6876 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6877 if test -n "$ac_tool_prefix"; then
6878 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6879 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6881 $as_echo_n "checking for $ac_word... " >&6; }
6882 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
6883 $as_echo_n "(cached) " >&6
6887 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6890 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6894 test -z "$as_dir" && as_dir
=.
6895 for ac_exec_ext
in '' $ac_executable_extensions; do
6896 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6897 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6908 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6909 if test -n "$PKG_CONFIG"; then
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6911 $as_echo "$PKG_CONFIG" >&6; }
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6914 $as_echo "no" >&6; }
6919 if test -z "$ac_cv_path_PKG_CONFIG"; then
6920 ac_pt_PKG_CONFIG
=$PKG_CONFIG
6921 # Extract the first word of "pkg-config", so it can be a program name with args.
6922 set dummy pkg-config
; ac_word
=$2
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6924 $as_echo_n "checking for $ac_word... " >&6; }
6925 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
6926 $as_echo_n "(cached) " >&6
6928 case $ac_pt_PKG_CONFIG in
6930 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6933 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6937 test -z "$as_dir" && as_dir
=.
6938 for ac_exec_ext
in '' $ac_executable_extensions; do
6939 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6940 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
6952 if test -n "$ac_pt_PKG_CONFIG"; then
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6954 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6957 $as_echo "no" >&6; }
6960 if test "x$ac_pt_PKG_CONFIG" = x
; then
6963 case $cross_compiling:$ac_tool_warned in
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6967 ac_tool_warned
=yes ;;
6969 PKG_CONFIG
=$ac_pt_PKG_CONFIG
6972 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
6976 if test -n "$PKG_CONFIG"; then
6977 _pkg_min_version
=0.9.0
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6979 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6980 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6982 $as_echo "yes" >&6; }
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6985 $as_echo "no" >&6; }
6990 # Handle optional debuginfod support
6992 # Check whether --with-debuginfod was given.
6993 if test "${with_debuginfod+set}" = set; then :
6994 withval
=$with_debuginfod;
6996 with_debuginfod
=auto
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
7000 $as_echo_n "checking whether to use debuginfod... " >&6; }
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
7002 $as_echo "$with_debuginfod" >&6; }
7004 if test "x$with_debuginfod" != xno
; then
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5
7008 $as_echo_n "checking for libdebuginfod >= 0.179... " >&6; }
7010 if test -n "$DEBUGINFOD_CFLAGS"; then
7011 pkg_cv_DEBUGINFOD_CFLAGS
="$DEBUGINFOD_CFLAGS"
7012 elif test -n "$PKG_CONFIG"; then
7013 if test -n "$PKG_CONFIG" && \
7014 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
7015 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
7017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7018 test $ac_status = 0; }; then
7019 pkg_cv_DEBUGINFOD_CFLAGS
=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
7020 test "x$?" != "x0" && pkg_failed
=yes
7027 if test -n "$DEBUGINFOD_LIBS"; then
7028 pkg_cv_DEBUGINFOD_LIBS
="$DEBUGINFOD_LIBS"
7029 elif test -n "$PKG_CONFIG"; then
7030 if test -n "$PKG_CONFIG" && \
7031 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
7032 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
7034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7035 test $ac_status = 0; }; then
7036 pkg_cv_DEBUGINFOD_LIBS
=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
7037 test "x$?" != "x0" && pkg_failed
=yes
7045 if test $pkg_failed = no
; then
7046 pkg_save_LDFLAGS
="$LDFLAGS"
7047 LDFLAGS
="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
7048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7049 /* end confdefs.h. */
7059 if ac_fn_c_try_link
"$LINENO"; then :
7064 rm -f core conftest.err conftest.
$ac_objext \
7065 conftest
$ac_exeext conftest.
$ac_ext
7066 LDFLAGS
=$pkg_save_LDFLAGS
7071 if test $pkg_failed = yes; then
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7073 $as_echo "no" >&6; }
7075 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7076 _pkg_short_errors_supported
=yes
7078 _pkg_short_errors_supported
=no
7080 if test $_pkg_short_errors_supported = yes; then
7081 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
7083 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
7085 # Put the nasty error message in config.log where it belongs
7086 echo "$DEBUGINFOD_PKG_ERRORS" >&5
7088 if test "x$with_debuginfod" = xyes
; then
7089 as_fn_error $?
"\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
7092 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
7094 elif test $pkg_failed = untried
; then
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7096 $as_echo "no" >&6; }
7097 if test "x$with_debuginfod" = xyes
; then
7098 as_fn_error $?
"\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
7101 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
7104 DEBUGINFOD_CFLAGS
=$pkg_cv_DEBUGINFOD_CFLAGS
7105 DEBUGINFOD_LIBS
=$pkg_cv_DEBUGINFOD_LIBS
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7107 $as_echo "yes" >&6; }
7109 $as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
7114 $as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
7118 # Libunwind support for ia64.
7120 # Check whether --with-libunwind-ia64 was given.
7121 if test "${with_libunwind_ia64+set}" = set; then :
7122 withval
=$with_libunwind_ia64;
7124 with_libunwind_ia64
=auto
7128 # Backward compatibility option.
7129 if test "${with_libunwind+set}" = set; then
7130 if test x
"$with_libunwind_ia64" != xauto
; then
7131 as_fn_error $?
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
7134 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
7135 with_libunwind_ia64
="$with_libunwind"
7138 case "$with_libunwind_ia64" in
7142 for ac_header
in libunwind-ia64.h
7144 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
7145 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
7146 cat >>confdefs.h
<<_ACEOF
7147 #define HAVE_LIBUNWIND_IA64_H 1
7154 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
7157 as_fn_error $?
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
7161 if test x
"$with_libunwind_ia64" = xyes
; then
7162 for ac_header
in libunwind-ia64.h
7164 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
7165 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
7166 cat >>confdefs.h
<<_ACEOF
7167 #define HAVE_LIBUNWIND_IA64_H 1
7174 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
7175 as_fn_error $?
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
7177 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
7178 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
7179 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
7184 # Check whether --with-curses was given.
7185 if test "${with_curses+set}" = set; then :
7186 withval
=$with_curses; opt_curses
=$withval
7191 if test "$opt_curses" = "yes"; then
7195 # Profiling support.
7196 # Check whether --enable-profiling was given.
7197 if test "${enable_profiling+set}" = set; then :
7198 enableval
=$enable_profiling; case $enableval in
7202 as_fn_error $?
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
7209 for ac_func
in monstartup _mcleanup
7211 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7212 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7213 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7214 cat >>confdefs.h
<<_ACEOF
7215 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
7222 $as_echo_n "checking for _etext... " >&6; }
7223 if ${ac_cv_var__etext+:} false
; then :
7224 $as_echo_n "(cached) " >&6
7226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7227 /* end confdefs.h. */
7239 if ac_fn_c_try_link
"$LINENO"; then :
7240 ac_cv_var__etext
=yes
7245 rm -f core conftest.err conftest.
$ac_objext \
7246 conftest
$ac_exeext conftest.
$ac_ext
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
7250 $as_echo "$ac_cv_var__etext" >&6; }
7251 if test "$ac_cv_var__etext" = yes; then
7253 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
7257 $as_echo_n "checking for etext... " >&6; }
7258 if ${ac_cv_var_etext+:} false
; then :
7259 $as_echo_n "(cached) " >&6
7261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7262 /* end confdefs.h. */
7274 if ac_fn_c_try_link
"$LINENO"; then :
7280 rm -f core conftest.err conftest.
$ac_objext \
7281 conftest
$ac_exeext conftest.
$ac_ext
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
7285 $as_echo "$ac_cv_var_etext" >&6; }
7286 if test "$ac_cv_var_etext" = yes; then
7288 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
7291 if test "$enable_profiling" = yes ; then
7292 if test "$ac_cv_func_monstartup" = no ||
test "$ac_cv_func__mcleanup" = no
; then
7293 as_fn_error $?
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
7296 OLD_CFLAGS
="$CFLAGS"
7297 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
7300 $as_echo_n "checking whether $CC supports -pg... " >&6; }
7301 if ${ac_cv_cc_supports_pg+:} false
; then :
7302 $as_echo_n "(cached) " >&6
7304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7305 /* end confdefs.h. */
7315 if ac_fn_c_try_compile
"$LINENO"; then :
7316 ac_cv_cc_supports_pg
=yes
7318 ac_cv_cc_supports_pg
=no
7321 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
7325 $as_echo "$ac_cv_cc_supports_pg" >&6; }
7327 if test "$ac_cv_cc_supports_pg" = no
; then
7328 as_fn_error $?
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
7331 CFLAGS
="$OLD_CFLAGS"
7335 # Check whether --enable-codesign was given.
7336 if test "${enable_codesign+set}" = set; then :
7337 enableval
=$enable_codesign; CODESIGN_CERT
=$enableval
7344 # Check whether --with-pkgversion was given.
7345 if test "${with_pkgversion+set}" = set; then :
7346 withval
=$with_pkgversion; case "$withval" in
7347 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
7349 *) PKGVERSION
="($withval) " ;;
7360 # Check whether --with-bugurl was given.
7361 if test "${with_bugurl+set}" = set; then :
7362 withval
=$with_bugurl; case "$withval" in
7363 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
7366 *) BUGURL
="$withval"
7370 BUGURL
="https://www.gnu.org/software/gdb/bugs/"
7380 REPORT_BUGS_TO
="<$BUGURL>"
7381 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7388 cat >>confdefs.h
<<_ACEOF
7389 #define PKGVERSION "$PKGVERSION"
7393 cat >>confdefs.h
<<_ACEOF
7394 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7398 # --------------------- #
7399 # Checks for programs. #
7400 # --------------------- #
7402 for ac_prog
in gawk mawk nawk
awk
7404 # Extract the first word of "$ac_prog", so it can be a program name with args.
7405 set dummy
$ac_prog; ac_word
=$2
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7407 $as_echo_n "checking for $ac_word... " >&6; }
7408 if ${ac_cv_prog_AWK+:} false
; then :
7409 $as_echo_n "(cached) " >&6
7411 if test -n "$AWK"; then
7412 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7414 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7418 test -z "$as_dir" && as_dir
=.
7419 for ac_exec_ext
in '' $ac_executable_extensions; do
7420 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7421 ac_cv_prog_AWK
="$ac_prog"
7422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7432 if test -n "$AWK"; then
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7434 $as_echo "$AWK" >&6; }
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437 $as_echo "no" >&6; }
7441 test -n "$AWK" && break
7444 # Find a good install program. We prefer a C program (faster),
7445 # so one script is as good as another. But avoid the broken or
7446 # incompatible versions:
7447 # SysV /etc/install, /usr/sbin/install
7448 # SunOS /usr/etc/install
7449 # IRIX /sbin/install
7451 # AmigaOS /C/install, which installs bootblocks on floppy discs
7452 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7453 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7454 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7455 # OS/2's system install, which has a completely different semantic
7456 # ./install, which can be erroneously created by make from ./install.sh.
7457 # Reject install programs that cannot install multiple files.
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7459 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7460 if test -z "$INSTALL"; then
7461 if ${ac_cv_path_install+:} false
; then :
7462 $as_echo_n "(cached) " >&6
7464 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7468 test -z "$as_dir" && as_dir
=.
7469 # Account for people who put trailing slashes in PATH elements.
7470 case $as_dir/ in #((
7471 .
/ | .
// |
/[cC
]/* | \
7472 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7473 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
7476 # OSF1 and SCO ODT 3.0 have their own names for install.
7477 # Don't use installbsd from OSF since it installs stuff as root
7479 for ac_prog
in ginstall scoinst
install; do
7480 for ac_exec_ext
in '' $ac_executable_extensions; do
7481 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
7482 if test $ac_prog = install &&
7483 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7484 # AIX install. It has an incompatible calling convention.
7486 elif test $ac_prog = install &&
7487 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7488 # program-specific install script used by HP pwplus--don't use.
7491 rm -rf conftest.one conftest.two conftest.dir
7492 echo one
> conftest.one
7493 echo two
> conftest.two
7495 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
7496 test -s conftest.one
&& test -s conftest.two
&&
7497 test -s conftest.dir
/conftest.one
&&
7498 test -s conftest.dir
/conftest.two
7500 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7513 rm -rf conftest.one conftest.two conftest.dir
7516 if test "${ac_cv_path_install+set}" = set; then
7517 INSTALL
=$ac_cv_path_install
7519 # As a last resort, use the slow shell script. Don't cache a
7520 # value for INSTALL within a source directory, because that will
7521 # break other packages using the cache if that directory is
7522 # removed, or if the value is a relative name.
7523 INSTALL
=$ac_install_sh
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7527 $as_echo "$INSTALL" >&6; }
7529 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7530 # It thinks the first close brace ends the variable substitution.
7531 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7533 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7535 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7538 $as_echo_n "checking whether ln -s works... " >&6; }
7540 if test "$LN_S" = "ln -s"; then
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7542 $as_echo "yes" >&6; }
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7545 $as_echo "no, using $LN_S" >&6; }
7548 if test -n "$ac_tool_prefix"; then
7549 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7550 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7552 $as_echo_n "checking for $ac_word... " >&6; }
7553 if ${ac_cv_prog_RANLIB+:} false
; then :
7554 $as_echo_n "(cached) " >&6
7556 if test -n "$RANLIB"; then
7557 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7559 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7563 test -z "$as_dir" && as_dir
=.
7564 for ac_exec_ext
in '' $ac_executable_extensions; do
7565 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7566 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7576 RANLIB
=$ac_cv_prog_RANLIB
7577 if test -n "$RANLIB"; then
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7579 $as_echo "$RANLIB" >&6; }
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7582 $as_echo "no" >&6; }
7587 if test -z "$ac_cv_prog_RANLIB"; then
7588 ac_ct_RANLIB
=$RANLIB
7589 # Extract the first word of "ranlib", so it can be a program name with args.
7590 set dummy ranlib
; ac_word
=$2
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7592 $as_echo_n "checking for $ac_word... " >&6; }
7593 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
7594 $as_echo_n "(cached) " >&6
7596 if test -n "$ac_ct_RANLIB"; then
7597 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7599 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7603 test -z "$as_dir" && as_dir
=.
7604 for ac_exec_ext
in '' $ac_executable_extensions; do
7605 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7606 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7616 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7617 if test -n "$ac_ct_RANLIB"; then
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7619 $as_echo "$ac_ct_RANLIB" >&6; }
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7622 $as_echo "no" >&6; }
7625 if test "x$ac_ct_RANLIB" = x
; then
7628 case $cross_compiling:$ac_tool_warned in
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7632 ac_tool_warned
=yes ;;
7634 RANLIB
=$ac_ct_RANLIB
7637 RANLIB
="$ac_cv_prog_RANLIB"
7640 for ac_prog
in 'bison -y' byacc
7642 # Extract the first word of "$ac_prog", so it can be a program name with args.
7643 set dummy
$ac_prog; ac_word
=$2
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7645 $as_echo_n "checking for $ac_word... " >&6; }
7646 if ${ac_cv_prog_YACC+:} false
; then :
7647 $as_echo_n "(cached) " >&6
7649 if test -n "$YACC"; then
7650 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
7652 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7656 test -z "$as_dir" && as_dir
=.
7657 for ac_exec_ext
in '' $ac_executable_extensions; do
7658 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7659 ac_cv_prog_YACC
="$ac_prog"
7660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7669 YACC
=$ac_cv_prog_YACC
7670 if test -n "$YACC"; then
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7672 $as_echo "$YACC" >&6; }
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7675 $as_echo "no" >&6; }
7679 test -n "$YACC" && break
7681 test -n "$YACC" || YACC
="yacc"
7684 if test -n "$ac_tool_prefix"; then
7685 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7686 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7688 $as_echo_n "checking for $ac_word... " >&6; }
7689 if ${ac_cv_prog_AR+:} false
; then :
7690 $as_echo_n "(cached) " >&6
7692 if test -n "$AR"; then
7693 ac_cv_prog_AR
="$AR" # Let the user override the test.
7695 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7699 test -z "$as_dir" && as_dir
=.
7700 for ac_exec_ext
in '' $ac_executable_extensions; do
7701 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7702 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7713 if test -n "$AR"; then
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7715 $as_echo "$AR" >&6; }
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7718 $as_echo "no" >&6; }
7723 if test -z "$ac_cv_prog_AR"; then
7725 # Extract the first word of "ar", so it can be a program name with args.
7726 set dummy
ar; ac_word
=$2
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7728 $as_echo_n "checking for $ac_word... " >&6; }
7729 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
7730 $as_echo_n "(cached) " >&6
7732 if test -n "$ac_ct_AR"; then
7733 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7735 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7739 test -z "$as_dir" && as_dir
=.
7740 for ac_exec_ext
in '' $ac_executable_extensions; do
7741 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7742 ac_cv_prog_ac_ct_AR
="ar"
7743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7752 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7753 if test -n "$ac_ct_AR"; then
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7755 $as_echo "$ac_ct_AR" >&6; }
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7758 $as_echo "no" >&6; }
7761 if test "x$ac_ct_AR" = x
; then
7764 case $cross_compiling:$ac_tool_warned in
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7768 ac_tool_warned
=yes ;;
7776 if test -n "$ac_tool_prefix"; then
7777 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7778 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7780 $as_echo_n "checking for $ac_word... " >&6; }
7781 if ${ac_cv_prog_DLLTOOL+:} false
; then :
7782 $as_echo_n "(cached) " >&6
7784 if test -n "$DLLTOOL"; then
7785 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
7787 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7791 test -z "$as_dir" && as_dir
=.
7792 for ac_exec_ext
in '' $ac_executable_extensions; do
7793 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7794 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
7795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7804 DLLTOOL
=$ac_cv_prog_DLLTOOL
7805 if test -n "$DLLTOOL"; then
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7807 $as_echo "$DLLTOOL" >&6; }
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7810 $as_echo "no" >&6; }
7815 if test -z "$ac_cv_prog_DLLTOOL"; then
7816 ac_ct_DLLTOOL
=$DLLTOOL
7817 # Extract the first word of "dlltool", so it can be a program name with args.
7818 set dummy dlltool
; ac_word
=$2
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7820 $as_echo_n "checking for $ac_word... " >&6; }
7821 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
7822 $as_echo_n "(cached) " >&6
7824 if test -n "$ac_ct_DLLTOOL"; then
7825 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
7827 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7831 test -z "$as_dir" && as_dir
=.
7832 for ac_exec_ext
in '' $ac_executable_extensions; do
7833 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7834 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
7835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7844 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
7845 if test -n "$ac_ct_DLLTOOL"; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7847 $as_echo "$ac_ct_DLLTOOL" >&6; }
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7850 $as_echo "no" >&6; }
7853 if test "x$ac_ct_DLLTOOL" = x
; then
7856 case $cross_compiling:$ac_tool_warned in
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7860 ac_tool_warned
=yes ;;
7862 DLLTOOL
=$ac_ct_DLLTOOL
7865 DLLTOOL
="$ac_cv_prog_DLLTOOL"
7868 if test -n "$ac_tool_prefix"; then
7869 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7870 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7872 $as_echo_n "checking for $ac_word... " >&6; }
7873 if ${ac_cv_prog_WINDRES+:} false
; then :
7874 $as_echo_n "(cached) " >&6
7876 if test -n "$WINDRES"; then
7877 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
7879 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7883 test -z "$as_dir" && as_dir
=.
7884 for ac_exec_ext
in '' $ac_executable_extensions; do
7885 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7886 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
7887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7896 WINDRES
=$ac_cv_prog_WINDRES
7897 if test -n "$WINDRES"; then
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7899 $as_echo "$WINDRES" >&6; }
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7902 $as_echo "no" >&6; }
7907 if test -z "$ac_cv_prog_WINDRES"; then
7908 ac_ct_WINDRES
=$WINDRES
7909 # Extract the first word of "windres", so it can be a program name with args.
7910 set dummy windres
; ac_word
=$2
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7912 $as_echo_n "checking for $ac_word... " >&6; }
7913 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
7914 $as_echo_n "(cached) " >&6
7916 if test -n "$ac_ct_WINDRES"; then
7917 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
7919 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7923 test -z "$as_dir" && as_dir
=.
7924 for ac_exec_ext
in '' $ac_executable_extensions; do
7925 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7926 ac_cv_prog_ac_ct_WINDRES
="windres"
7927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7936 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
7937 if test -n "$ac_ct_WINDRES"; then
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7939 $as_echo "$ac_ct_WINDRES" >&6; }
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7942 $as_echo "no" >&6; }
7945 if test "x$ac_ct_WINDRES" = x
; then
7948 case $cross_compiling:$ac_tool_warned in
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7952 ac_tool_warned
=yes ;;
7954 WINDRES
=$ac_ct_WINDRES
7957 WINDRES
="$ac_cv_prog_WINDRES"
7963 # Needed for GNU Hurd hosts.
7964 if test -n "$ac_tool_prefix"; then
7965 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7966 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7968 $as_echo_n "checking for $ac_word... " >&6; }
7969 if ${ac_cv_prog_MIG+:} false
; then :
7970 $as_echo_n "(cached) " >&6
7972 if test -n "$MIG"; then
7973 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
7975 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7979 test -z "$as_dir" && as_dir
=.
7980 for ac_exec_ext
in '' $ac_executable_extensions; do
7981 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7982 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
7983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7993 if test -n "$MIG"; then
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
7995 $as_echo "$MIG" >&6; }
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7998 $as_echo "no" >&6; }
8003 if test -z "$ac_cv_prog_MIG"; then
8005 # Extract the first word of "mig", so it can be a program name with args.
8006 set dummy mig
; ac_word
=$2
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8008 $as_echo_n "checking for $ac_word... " >&6; }
8009 if ${ac_cv_prog_ac_ct_MIG+:} false
; then :
8010 $as_echo_n "(cached) " >&6
8012 if test -n "$ac_ct_MIG"; then
8013 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
8015 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8019 test -z "$as_dir" && as_dir
=.
8020 for ac_exec_ext
in '' $ac_executable_extensions; do
8021 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8022 ac_cv_prog_ac_ct_MIG
="mig"
8023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8032 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
8033 if test -n "$ac_ct_MIG"; then
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
8035 $as_echo "$ac_ct_MIG" >&6; }
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8038 $as_echo "no" >&6; }
8041 if test "x$ac_ct_MIG" = x
; then
8044 case $cross_compiling:$ac_tool_warned in
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8048 ac_tool_warned
=yes ;;
8053 MIG
="$ac_cv_prog_MIG"
8056 if test x
"$MIG" = x
; then
8057 as_fn_error $?
"MIG not found but required for $host hosts" "$LINENO" 5
8062 # ---------------------- #
8063 # Checks for libraries. #
8064 # ---------------------- #
8066 # We might need to link with -lm; most simulators need it.
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
8068 $as_echo_n "checking for main in -lm... " >&6; }
8069 if ${ac_cv_lib_m_main+:} false
; then :
8070 $as_echo_n "(cached) " >&6
8072 ac_check_lib_save_LIBS
=$LIBS
8074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8075 /* end confdefs.h. */
8086 if ac_fn_c_try_link
"$LINENO"; then :
8087 ac_cv_lib_m_main
=yes
8091 rm -f core conftest.err conftest.
$ac_objext \
8092 conftest
$ac_exeext conftest.
$ac_ext
8093 LIBS
=$ac_check_lib_save_LIBS
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
8096 $as_echo "$ac_cv_lib_m_main" >&6; }
8097 if test "x$ac_cv_lib_m_main" = xyes
; then :
8098 cat >>confdefs.h
<<_ACEOF
8107 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
8109 $as_echo_n "checking for library containing gethostbyname... " >&6; }
8110 if ${ac_cv_search_gethostbyname+:} false
; then :
8111 $as_echo_n "(cached) " >&6
8113 ac_func_search_save_LIBS
=$LIBS
8114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8115 /* end confdefs.h. */
8117 /* Override any GCC internal prototype to avoid an error.
8118 Use char because int might match the return type of a GCC
8119 builtin and then its argument prototype would still apply. */
8123 char gethostbyname ();
8127 return gethostbyname ();
8132 for ac_lib
in '' nsl
; do
8133 if test -z "$ac_lib"; then
8134 ac_res
="none required"
8137 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8139 if ac_fn_c_try_link
"$LINENO"; then :
8140 ac_cv_search_gethostbyname
=$ac_res
8142 rm -f core conftest.err conftest.
$ac_objext \
8144 if ${ac_cv_search_gethostbyname+:} false
; then :
8148 if ${ac_cv_search_gethostbyname+:} false
; then :
8151 ac_cv_search_gethostbyname
=no
8154 LIBS
=$ac_func_search_save_LIBS
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
8157 $as_echo "$ac_cv_search_gethostbyname" >&6; }
8158 ac_res
=$ac_cv_search_gethostbyname
8159 if test "$ac_res" != no
; then :
8160 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8165 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
8167 $as_echo_n "checking for library containing socketpair... " >&6; }
8168 if ${ac_cv_search_socketpair+:} false
; then :
8169 $as_echo_n "(cached) " >&6
8171 ac_func_search_save_LIBS
=$LIBS
8172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8173 /* end confdefs.h. */
8175 /* Override any GCC internal prototype to avoid an error.
8176 Use char because int might match the return type of a GCC
8177 builtin and then its argument prototype would still apply. */
8185 return socketpair ();
8190 for ac_lib
in '' socket
; do
8191 if test -z "$ac_lib"; then
8192 ac_res
="none required"
8195 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8197 if ac_fn_c_try_link
"$LINENO"; then :
8198 ac_cv_search_socketpair
=$ac_res
8200 rm -f core conftest.err conftest.
$ac_objext \
8202 if ${ac_cv_search_socketpair+:} false
; then :
8206 if ${ac_cv_search_socketpair+:} false
; then :
8209 ac_cv_search_socketpair
=no
8212 LIBS
=$ac_func_search_save_LIBS
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
8215 $as_echo "$ac_cv_search_socketpair" >&6; }
8216 ac_res
=$ac_cv_search_socketpair
8217 if test "$ac_res" != no
; then :
8218 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8223 # Link in zlib if we can. This allows us to read compressed debug sections.
8225 # Use the system's zlib library.
8226 zlibdir
="-L\$(top_builddir)/../zlib"
8227 zlibinc
="-I\$(top_srcdir)/../zlib"
8229 # Check whether --with-system-zlib was given.
8230 if test "${with_system_zlib+set}" = set; then :
8231 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
8243 if test "X$prefix" = "XNONE"; then
8244 acl_final_prefix
="$ac_default_prefix"
8246 acl_final_prefix
="$prefix"
8248 if test "X$exec_prefix" = "XNONE"; then
8249 acl_final_exec_prefix
='${prefix}'
8251 acl_final_exec_prefix
="$exec_prefix"
8253 acl_save_prefix
="$prefix"
8254 prefix
="$acl_final_prefix"
8255 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8256 prefix
="$acl_save_prefix"
8259 # Check whether --with-gnu-ld was given.
8260 if test "${with_gnu_ld+set}" = set; then :
8261 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8266 # Prepare PATH_SEPARATOR.
8267 # The user is always right.
8268 if test "${PATH_SEPARATOR+set}" != set; then
8269 echo "#! /bin/sh" >conf$$.sh
8270 echo "exit 0" >>conf$$.sh
8272 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8280 if test "$GCC" = yes; then
8281 # Check if gcc -print-prog-name=ld gives a path.
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8283 $as_echo_n "checking for ld used by GCC... " >&6; }
8286 # gcc leaves a trailing carriage return which upsets mingw
8287 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8289 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8292 # Accept absolute paths.
8293 [\\/]* |
[A-Za-z
]:[\\/]*)
8294 re_direlt
='/[^/][^/]*/\.\./'
8295 # Canonicalize the path of ld
8296 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8297 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8298 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8300 test -z "$LD" && LD
="$ac_prog"
8303 # If it fails, then pretend we aren't using GCC.
8307 # If it is relative, then search for the first ld in PATH.
8311 elif test "$with_gnu_ld" = yes; then
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8313 $as_echo_n "checking for GNU ld... " >&6; }
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8316 $as_echo_n "checking for non-GNU ld... " >&6; }
8318 if ${acl_cv_path_LD+:} false
; then :
8319 $as_echo_n "(cached) " >&6
8321 if test -z "$LD"; then
8322 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8323 for ac_dir
in $PATH; do
8324 test -z "$ac_dir" && ac_dir
=.
8325 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8326 acl_cv_path_LD
="$ac_dir/$ac_prog"
8327 # Check to see if the program is GNU ld. I'd rather use --version,
8328 # but apparently some GNU ld's only accept -v.
8329 # Break only if it was the GNU/non-GNU ld that we prefer.
8330 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
8331 test "$with_gnu_ld" != no
&& break
8333 test "$with_gnu_ld" != yes && break
8339 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8343 LD
="$acl_cv_path_LD"
8344 if test -n "$LD"; then
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8346 $as_echo "$LD" >&6; }
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8349 $as_echo "no" >&6; }
8351 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8353 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8354 if ${acl_cv_prog_gnu_ld+:} false
; then :
8355 $as_echo_n "(cached) " >&6
8357 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8358 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
8359 acl_cv_prog_gnu_ld
=yes
8361 acl_cv_prog_gnu_ld
=no
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8365 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8366 with_gnu_ld
=$acl_cv_prog_gnu_ld
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8371 $as_echo_n "checking for shared library run path origin... " >&6; }
8372 if ${acl_cv_rpath+:} false
; then :
8373 $as_echo_n "(cached) " >&6
8376 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8377 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8384 $as_echo "$acl_cv_rpath" >&6; }
8386 libext
="$acl_cv_libext"
8387 shlibext
="$acl_cv_shlibext"
8388 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8389 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8390 hardcode_direct
="$acl_cv_hardcode_direct"
8391 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8392 # Check whether --enable-rpath was given.
8393 if test "${enable_rpath+set}" = set; then :
8394 enableval
=$enable_rpath; :
8408 acl_save_prefix
="$prefix"
8409 prefix
="$acl_final_prefix"
8410 acl_save_exec_prefix
="$exec_prefix"
8411 exec_prefix
="$acl_final_exec_prefix"
8413 eval additional_includedir
=\"$includedir\"
8414 eval additional_libdir
=\"$libdir\"
8416 exec_prefix
="$acl_save_exec_prefix"
8417 prefix
="$acl_save_prefix"
8420 # Check whether --with-libiconv-prefix was given.
8421 if test "${with_libiconv_prefix+set}" = set; then :
8422 withval
=$with_libiconv_prefix;
8423 if test "X$withval" = "Xno"; then
8426 if test "X$withval" = "X"; then
8428 acl_save_prefix
="$prefix"
8429 prefix
="$acl_final_prefix"
8430 acl_save_exec_prefix
="$exec_prefix"
8431 exec_prefix
="$acl_final_exec_prefix"
8433 eval additional_includedir
=\"$includedir\"
8434 eval additional_libdir
=\"$libdir\"
8436 exec_prefix
="$acl_save_exec_prefix"
8437 prefix
="$acl_save_prefix"
8440 additional_includedir
="$withval/include"
8441 additional_libdir
="$withval/lib"
8448 # Check whether --with-libiconv-type was given.
8449 if test "${with_libiconv_type+set}" = set; then :
8450 withval
=$with_libiconv_type; with_libiconv_type
=$withval
8452 with_libiconv_type
=auto
8455 lib_type
=`eval echo \$with_libiconv_type`
8462 names_already_handled
=
8463 names_next_round
='iconv '
8464 while test -n "$names_next_round"; do
8465 names_this_round
="$names_next_round"
8467 for name
in $names_this_round; do
8469 for n
in $names_already_handled; do
8470 if test "$n" = "$name"; then
8475 if test -z "$already_handled"; then
8476 names_already_handled
="$names_already_handled $name"
8477 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8478 eval value
=\"\
$HAVE_LIB$uppername\"
8479 if test -n "$value"; then
8480 if test "$value" = yes; then
8481 eval value
=\"\
$LIB$uppername\"
8482 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
8483 eval value
=\"\
$LTLIB$uppername\"
8484 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
8493 if test $use_additional = yes; then
8494 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
8495 found_dir
="$additional_libdir"
8496 found_so
="$additional_libdir/lib$name.$shlibext"
8497 if test -f "$additional_libdir/lib$name.la"; then
8498 found_la
="$additional_libdir/lib$name.la"
8500 elif test x
$lib_type != xshared
; then
8501 if test -f "$additional_libdir/lib$name.$libext"; then
8502 found_dir
="$additional_libdir"
8503 found_a
="$additional_libdir/lib$name.$libext"
8504 if test -f "$additional_libdir/lib$name.la"; then
8505 found_la
="$additional_libdir/lib$name.la"
8510 if test "X$found_dir" = "X"; then
8511 for x
in $LDFLAGS $LTLIBICONV; do
8513 acl_save_prefix
="$prefix"
8514 prefix
="$acl_final_prefix"
8515 acl_save_exec_prefix
="$exec_prefix"
8516 exec_prefix
="$acl_final_exec_prefix"
8518 exec_prefix
="$acl_save_exec_prefix"
8519 prefix
="$acl_save_prefix"
8523 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8524 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
8526 found_so
="$dir/lib$name.$shlibext"
8527 if test -f "$dir/lib$name.la"; then
8528 found_la
="$dir/lib$name.la"
8530 elif test x
$lib_type != xshared
; then
8531 if test -f "$dir/lib$name.$libext"; then
8533 found_a
="$dir/lib$name.$libext"
8534 if test -f "$dir/lib$name.la"; then
8535 found_la
="$dir/lib$name.la"
8541 if test "X$found_dir" != "X"; then
8546 if test "X$found_dir" != "X"; then
8547 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8548 if test "X$found_so" != "X"; then
8549 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8550 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8553 for x
in $ltrpathdirs; do
8554 if test "X$x" = "X$found_dir"; then
8559 if test -z "$haveit"; then
8560 ltrpathdirs
="$ltrpathdirs $found_dir"
8562 if test "$hardcode_direct" = yes; then
8563 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8565 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8566 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8568 for x
in $rpathdirs; do
8569 if test "X$x" = "X$found_dir"; then
8574 if test -z "$haveit"; then
8575 rpathdirs
="$rpathdirs $found_dir"
8579 for x
in $LDFLAGS $LIBICONV; do
8581 acl_save_prefix
="$prefix"
8582 prefix
="$acl_final_prefix"
8583 acl_save_exec_prefix
="$exec_prefix"
8584 exec_prefix
="$acl_final_exec_prefix"
8586 exec_prefix
="$acl_save_exec_prefix"
8587 prefix
="$acl_save_prefix"
8589 if test "X$x" = "X-L$found_dir"; then
8594 if test -z "$haveit"; then
8595 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8597 if test "$hardcode_minus_L" != no
; then
8598 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8600 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8606 if test "X$found_a" != "X"; then
8607 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
8609 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8612 additional_includedir
=
8613 case "$found_dir" in
8615 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8616 additional_includedir
="$basedir/include"
8619 if test "X$additional_includedir" != "X"; then
8620 if test "X$additional_includedir" != "X/usr/include"; then
8622 if test "X$additional_includedir" = "X/usr/local/include"; then
8623 if test -n "$GCC"; then
8625 linux
*) haveit
=yes;;
8629 if test -z "$haveit"; then
8630 for x
in $CPPFLAGS $INCICONV; do
8632 acl_save_prefix
="$prefix"
8633 prefix
="$acl_final_prefix"
8634 acl_save_exec_prefix
="$exec_prefix"
8635 exec_prefix
="$acl_final_exec_prefix"
8637 exec_prefix
="$acl_save_exec_prefix"
8638 prefix
="$acl_save_prefix"
8640 if test "X$x" = "X-I$additional_includedir"; then
8645 if test -z "$haveit"; then
8646 if test -d "$additional_includedir"; then
8647 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8653 if test -n "$found_la"; then
8654 save_libdir
="$libdir"
8656 */* |
*\\*) .
"$found_la" ;;
8657 *) .
"./$found_la" ;;
8659 libdir
="$save_libdir"
8660 for dep
in $dependency_libs; do
8663 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8664 if test "X$additional_libdir" != "X/usr/lib"; then
8666 if test "X$additional_libdir" = "X/usr/local/lib"; then
8667 if test -n "$GCC"; then
8669 linux
*) haveit
=yes;;
8673 if test -z "$haveit"; then
8675 for x
in $LDFLAGS $LIBICONV; do
8677 acl_save_prefix
="$prefix"
8678 prefix
="$acl_final_prefix"
8679 acl_save_exec_prefix
="$exec_prefix"
8680 exec_prefix
="$acl_final_exec_prefix"
8682 exec_prefix
="$acl_save_exec_prefix"
8683 prefix
="$acl_save_prefix"
8685 if test "X$x" = "X-L$additional_libdir"; then
8690 if test -z "$haveit"; then
8691 if test -d "$additional_libdir"; then
8692 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8696 for x
in $LDFLAGS $LTLIBICONV; do
8698 acl_save_prefix
="$prefix"
8699 prefix
="$acl_final_prefix"
8700 acl_save_exec_prefix
="$exec_prefix"
8701 exec_prefix
="$acl_final_exec_prefix"
8703 exec_prefix
="$acl_save_exec_prefix"
8704 prefix
="$acl_save_prefix"
8706 if test "X$x" = "X-L$additional_libdir"; then
8711 if test -z "$haveit"; then
8712 if test -d "$additional_libdir"; then
8713 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8720 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8721 if test "$enable_rpath" != no
; then
8723 for x
in $rpathdirs; do
8724 if test "X$x" = "X$dir"; then
8729 if test -z "$haveit"; then
8730 rpathdirs
="$rpathdirs $dir"
8733 for x
in $ltrpathdirs; do
8734 if test "X$x" = "X$dir"; then
8739 if test -z "$haveit"; then
8740 ltrpathdirs
="$ltrpathdirs $dir"
8745 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8748 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8751 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
8752 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8758 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
8759 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8760 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8762 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
8763 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
8770 if test "X$rpathdirs" != "X"; then
8771 if test -n "$hardcode_libdir_separator"; then
8773 for found_dir
in $rpathdirs; do
8774 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8776 acl_save_libdir
="$libdir"
8778 eval flag
=\"$hardcode_libdir_flag_spec\"
8779 libdir
="$acl_save_libdir"
8780 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8782 for found_dir
in $rpathdirs; do
8783 acl_save_libdir
="$libdir"
8785 eval flag
=\"$hardcode_libdir_flag_spec\"
8786 libdir
="$acl_save_libdir"
8787 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8791 if test "X$ltrpathdirs" != "X"; then
8792 for found_dir
in $ltrpathdirs; do
8793 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8804 $as_echo_n "checking for iconv... " >&6; }
8805 if ${am_cv_func_iconv+:} false
; then :
8806 $as_echo_n "(cached) " >&6
8809 am_cv_func_iconv
="no, consider installing GNU libiconv"
8811 am_save_CPPFLAGS
="$CPPFLAGS"
8812 CPPFLAGS
="$CPPFLAGS $INCICONV"
8813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8814 /* end confdefs.h. */
8820 iconv_t cd = iconv_open("","");
8821 iconv(cd,NULL,NULL,NULL,NULL);
8827 if ac_fn_c_try_link
"$LINENO"; then :
8828 am_cv_func_iconv
=yes
8830 rm -f core conftest.err conftest.
$ac_objext \
8831 conftest
$ac_exeext conftest.
$ac_ext
8832 CPPFLAGS
="$am_save_CPPFLAGS"
8834 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
8835 for _libs
in .libs _libs
; do
8836 am_save_CPPFLAGS
="$CPPFLAGS"
8837 am_save_LIBS
="$LIBS"
8838 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
8839 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
8840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8841 /* end confdefs.h. */
8847 iconv_t cd = iconv_open("","");
8848 iconv(cd,NULL,NULL,NULL,NULL);
8854 if ac_fn_c_try_link
"$LINENO"; then :
8855 INCICONV
="-I../libiconv/include"
8856 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
8857 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
8859 am_cv_func_iconv
=yes
8861 rm -f core conftest.err conftest.
$ac_objext \
8862 conftest
$ac_exeext conftest.
$ac_ext
8863 CPPFLAGS
="$am_save_CPPFLAGS"
8864 LIBS
="$am_save_LIBS"
8865 if test "$am_cv_func_iconv" = "yes"; then
8871 if test "$am_cv_func_iconv" != yes; then
8872 am_save_CPPFLAGS
="$CPPFLAGS"
8873 am_save_LIBS
="$LIBS"
8874 CPPFLAGS
="$CPPFLAGS $INCICONV"
8875 LIBS
="$LIBS $LIBICONV"
8876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8877 /* end confdefs.h. */
8883 iconv_t cd = iconv_open("","");
8884 iconv(cd,NULL,NULL,NULL,NULL);
8890 if ac_fn_c_try_link
"$LINENO"; then :
8892 am_cv_func_iconv
=yes
8894 rm -f core conftest.err conftest.
$ac_objext \
8895 conftest
$ac_exeext conftest.
$ac_ext
8896 CPPFLAGS
="$am_save_CPPFLAGS"
8897 LIBS
="$am_save_LIBS"
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8902 $as_echo "$am_cv_func_iconv" >&6; }
8903 if test "$am_cv_func_iconv" = yes; then
8905 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8908 if test "$am_cv_lib_iconv" = yes; then
8910 for element
in $INCICONV; do
8912 for x
in $CPPFLAGS; do
8914 acl_save_prefix
="$prefix"
8915 prefix
="$acl_final_prefix"
8916 acl_save_exec_prefix
="$exec_prefix"
8917 exec_prefix
="$acl_final_exec_prefix"
8919 exec_prefix
="$acl_save_exec_prefix"
8920 prefix
="$acl_save_prefix"
8922 if test "X$x" = "X$element"; then
8927 if test -z "$haveit"; then
8928 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8933 $as_echo_n "checking how to link with libiconv... " >&6; }
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8935 $as_echo "$LIBICONV" >&6; }
8943 if test "$am_cv_func_iconv" = yes; then
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8945 $as_echo_n "checking for iconv declaration... " >&6; }
8946 if ${am_cv_proto_iconv+:} false
; then :
8947 $as_echo_n "(cached) " >&6
8950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8951 /* end confdefs.h. */
8959 #if defined(__STDC__) || defined(__cplusplus)
8960 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8973 if ac_fn_c_try_compile
"$LINENO"; then :
8974 am_cv_proto_iconv_arg1
=""
8976 am_cv_proto_iconv_arg1
="const"
8978 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8979 am_cv_proto_iconv
="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
8982 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8984 }$am_cv_proto_iconv" >&5
8986 }$am_cv_proto_iconv" >&6; }
8988 cat >>confdefs.h
<<_ACEOF
8989 #define ICONV_CONST $am_cv_proto_iconv_arg1
8995 # GDB may fork/exec the iconv program to get the list of supported character
8996 # sets. Allow the user to specify where to find it.
8997 # There are several factors affecting the choice of option name:
8998 # - There is already --with-libiconv-prefix but we can't use it, it specifies
8999 # the build-time location of libiconv files.
9000 # - The program we need to find is iconv, which comes with glibc. The user
9001 # doesn't necessarily have libiconv installed. Therefore naming this
9002 # --with-libiconv-foo feels wrong.
9003 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
9004 # defined to work on directories not files (though it really doesn't know
9006 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
9007 # with --with-libiconv-prefix.
9008 # Putting these together is why the option name is --with-iconv-bin.
9011 # Check whether --with-iconv-bin was given.
9012 if test "${with_iconv_bin+set}" = set; then :
9013 withval
=$with_iconv_bin; iconv_bin
="${withval}"
9015 cat >>confdefs.h
<<_ACEOF
9016 #define ICONV_BIN "${iconv_bin}"
9020 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9021 if test "x$prefix" = xNONE
; then
9022 test_prefix
=/usr
/local
9027 test_prefix
=$exec_prefix
9030 case ${iconv_bin} in
9031 "${test_prefix}"|
"${test_prefix}/"*|\
9032 '${exec_prefix}'|
'${exec_prefix}/'*)
9037 cat >>confdefs.h
<<_ACEOF
9038 #define ICONV_BIN_RELOCATABLE $value
9046 # For the TUI, we need enhanced curses functionality.
9047 if test x
"$enable_tui" != xno
; then
9052 if test x
"$prefer_curses" = xyes
; then
9053 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9054 # curses library because the latter might not provide all the
9055 # functionality we need. However, this leads to problems on systems
9056 # where the linker searches /usr/local/lib, but the compiler doesn't
9057 # search /usr/local/include, if ncurses is installed in /usr/local. A
9058 # default installation of ncurses on alpha*-dec-osf* will lead to such
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
9061 $as_echo_n "checking for library containing waddstr... " >&6; }
9062 if ${ac_cv_search_waddstr+:} false
; then :
9063 $as_echo_n "(cached) " >&6
9065 ac_func_search_save_LIBS
=$LIBS
9066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9067 /* end confdefs.h. */
9069 /* Override any GCC internal prototype to avoid an error.
9070 Use char because int might match the return type of a GCC
9071 builtin and then its argument prototype would still apply. */
9084 for ac_lib
in '' ncursesw ncurses cursesX curses
; do
9085 if test -z "$ac_lib"; then
9086 ac_res
="none required"
9089 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9091 if ac_fn_c_try_link
"$LINENO"; then :
9092 ac_cv_search_waddstr
=$ac_res
9094 rm -f core conftest.err conftest.
$ac_objext \
9096 if ${ac_cv_search_waddstr+:} false
; then :
9100 if ${ac_cv_search_waddstr+:} false
; then :
9103 ac_cv_search_waddstr
=no
9106 LIBS
=$ac_func_search_save_LIBS
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
9109 $as_echo "$ac_cv_search_waddstr" >&6; }
9110 ac_res
=$ac_cv_search_waddstr
9111 if test "$ac_res" != no
; then :
9112 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9117 if test "$ac_cv_search_waddstr" != no
; then
9122 # Check whether we should enable the TUI, but only do so if we really
9124 if test x
"$enable_tui" != xno
; then
9125 if test -d "$srcdir/tui"; then
9126 if test "$curses_found" != no
; then
9127 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
9128 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
9129 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
9130 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
9132 if test x
"$enable_tui" = xyes
; then
9133 as_fn_error $?
"no enhanced curses library found; disable TUI" "$LINENO" 5
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
9136 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9142 # Since GDB uses Readline, we need termcap functionality. In many
9143 # cases this will be provided by the curses library, but some systems
9144 # have a separate termcap library, or no curses library at all.
9148 if test -d "$srcdir/libtermcap"; then
9149 LIBS
="../libtermcap/libtermcap.a $LIBS"
9150 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
9153 ac_cv_search_tgetent
="none required"
9157 # These are the libraries checked by Readline.
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9159 $as_echo_n "checking for library containing tgetent... " >&6; }
9160 if ${ac_cv_search_tgetent+:} false
; then :
9161 $as_echo_n "(cached) " >&6
9163 ac_func_search_save_LIBS
=$LIBS
9164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9165 /* end confdefs.h. */
9167 /* Override any GCC internal prototype to avoid an error.
9168 Use char because int might match the return type of a GCC
9169 builtin and then its argument prototype would still apply. */
9182 for ac_lib
in '' termcap tinfow tinfo curses ncursesw ncurses
; do
9183 if test -z "$ac_lib"; then
9184 ac_res
="none required"
9187 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9189 if ac_fn_c_try_link
"$LINENO"; then :
9190 ac_cv_search_tgetent
=$ac_res
9192 rm -f core conftest.err conftest.
$ac_objext \
9194 if ${ac_cv_search_tgetent+:} false
; then :
9198 if ${ac_cv_search_tgetent+:} false
; then :
9201 ac_cv_search_tgetent
=no
9204 LIBS
=$ac_func_search_save_LIBS
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9207 $as_echo "$ac_cv_search_tgetent" >&6; }
9208 ac_res
=$ac_cv_search_tgetent
9209 if test "$ac_res" != no
; then :
9210 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9215 if test "$ac_cv_search_tgetent" = no
; then
9216 CONFIG_OBS
="$CONFIG_OBS stub-termcap.o"
9220 # Check whether --with-system-readline was given.
9221 if test "${with_system_readline+set}" = set; then :
9222 withval
=$with_system_readline;
9226 if test "$with_system_readline" = yes; then
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system readline is new enough" >&5
9228 $as_echo_n "checking whether system readline is new enough... " >&6; }
9229 if ${gdb_cv_readline_ok+:} false
; then :
9230 $as_echo_n "(cached) " >&6
9232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9233 /* end confdefs.h. */
9235 #include <readline/readline.h>
9239 #if RL_VERSION_MAJOR < 7
9240 # error "readline version 7 required"
9247 if ac_fn_c_try_compile
"$LINENO"; then :
9248 gdb_cv_readline_ok
=yes
9250 gdb_cv_readline_ok
=no
9253 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_readline_ok" >&5
9257 $as_echo "$gdb_cv_readline_ok" >&6; }
9258 if test "$gdb_cv_readline_ok" != yes; then
9259 as_fn_error $?
"system readline is not new enough" "$LINENO" 5
9265 READLINE_TEXI_INCFLAG
=
9267 READLINE
='$(READLINE_DIR)/libreadline.a'
9268 READLINE_DEPS
='$(READLINE)'
9269 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
9270 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
9277 # Generate jit-reader.h
9279 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
9282 # The cast to long int works around a bug in the HP C Compiler
9283 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9284 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9285 # This bug is HP SR number 8606223364.
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
9287 $as_echo_n "checking size of unsigned long long... " >&6; }
9288 if ${ac_cv_sizeof_unsigned_long_long+:} false
; then :
9289 $as_echo_n "(cached) " >&6
9291 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
9294 if test "$ac_cv_type_unsigned_long_long" = yes; then
9295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9297 as_fn_error
77 "cannot compute sizeof (unsigned long long)
9298 See \`config.log' for more details" "$LINENO" 5; }
9300 ac_cv_sizeof_unsigned_long_long
=0
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
9306 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
9310 cat >>confdefs.h
<<_ACEOF
9311 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
9315 # The cast to long int works around a bug in the HP C Compiler
9316 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9317 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9318 # This bug is HP SR number 8606223364.
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
9320 $as_echo_n "checking size of unsigned long... " >&6; }
9321 if ${ac_cv_sizeof_unsigned_long+:} false
; then :
9322 $as_echo_n "(cached) " >&6
9324 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
9327 if test "$ac_cv_type_unsigned_long" = yes; then
9328 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9330 as_fn_error
77 "cannot compute sizeof (unsigned long)
9331 See \`config.log' for more details" "$LINENO" 5; }
9333 ac_cv_sizeof_unsigned_long
=0
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
9339 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
9343 cat >>confdefs.h
<<_ACEOF
9344 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
9348 # The cast to long int works around a bug in the HP C Compiler
9349 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9350 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9351 # This bug is HP SR number 8606223364.
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
9353 $as_echo_n "checking size of unsigned __int128... " >&6; }
9354 if ${ac_cv_sizeof_unsigned___int128+:} false
; then :
9355 $as_echo_n "(cached) " >&6
9357 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
9360 if test "$ac_cv_type_unsigned___int128" = yes; then
9361 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9363 as_fn_error
77 "cannot compute sizeof (unsigned __int128)
9364 See \`config.log' for more details" "$LINENO" 5; }
9366 ac_cv_sizeof_unsigned___int128
=0
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
9372 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
9376 cat >>confdefs.h
<<_ACEOF
9377 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
9382 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9383 TARGET_PTR
="unsigned long"
9384 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
9385 TARGET_PTR
="unsigned long long"
9386 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
9387 TARGET_PTR
="unsigned __int128"
9389 TARGET_PTR
="unsigned long"
9393 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9397 $as_echo_n "checking for library containing dlopen... " >&6; }
9398 if ${ac_cv_search_dlopen+:} false
; then :
9399 $as_echo_n "(cached) " >&6
9401 ac_func_search_save_LIBS
=$LIBS
9402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9403 /* end confdefs.h. */
9405 /* Override any GCC internal prototype to avoid an error.
9406 Use char because int might match the return type of a GCC
9407 builtin and then its argument prototype would still apply. */
9420 for ac_lib
in '' dl
; do
9421 if test -z "$ac_lib"; then
9422 ac_res
="none required"
9425 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9427 if ac_fn_c_try_link
"$LINENO"; then :
9428 ac_cv_search_dlopen
=$ac_res
9430 rm -f core conftest.err conftest.
$ac_objext \
9432 if ${ac_cv_search_dlopen+:} false
; then :
9436 if ${ac_cv_search_dlopen+:} false
; then :
9439 ac_cv_search_dlopen
=no
9442 LIBS
=$ac_func_search_save_LIBS
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9445 $as_echo "$ac_cv_search_dlopen" >&6; }
9446 ac_res
=$ac_cv_search_dlopen
9447 if test "$ac_res" != no
; then :
9448 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9455 # Check whether --with-jit-reader-dir was given.
9456 if test "${with_jit_reader_dir+set}" = set; then :
9457 withval
=$with_jit_reader_dir;
9458 JIT_READER_DIR
=$withval
9460 JIT_READER_DIR
=${libdir}/gdb
9464 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9465 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9466 ac_define_dir
=`eval echo $JIT_READER_DIR`
9467 ac_define_dir
=`eval echo $ac_define_dir`
9469 cat >>confdefs.h
<<_ACEOF
9470 #define JIT_READER_DIR "$ac_define_dir"
9476 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9477 if test "x$prefix" = xNONE
; then
9478 test_prefix
=/usr
/local
9483 test_prefix
=$exec_prefix
9486 case ${ac_define_dir} in
9487 "${test_prefix}"|
"${test_prefix}/"*|\
9488 '${exec_prefix}'|
'${exec_prefix}/'*)
9493 cat >>confdefs.h
<<_ACEOF
9494 #define JIT_READER_DIR_RELOCATABLE $value
9501 # Check whether --with-expat was given.
9502 if test "${with_expat+set}" = set; then :
9503 withval
=$with_expat;
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9509 $as_echo_n "checking whether to use expat... " >&6; }
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9511 $as_echo "$with_expat" >&6; }
9513 if test "${with_expat}" = no
; then
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9515 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9528 acl_save_prefix
="$prefix"
9529 prefix
="$acl_final_prefix"
9530 acl_save_exec_prefix
="$exec_prefix"
9531 exec_prefix
="$acl_final_exec_prefix"
9533 eval additional_includedir
=\"$includedir\"
9534 eval additional_libdir
=\"$libdir\"
9536 exec_prefix
="$acl_save_exec_prefix"
9537 prefix
="$acl_save_prefix"
9540 # Check whether --with-libexpat-prefix was given.
9541 if test "${with_libexpat_prefix+set}" = set; then :
9542 withval
=$with_libexpat_prefix;
9543 if test "X$withval" = "Xno"; then
9546 if test "X$withval" = "X"; then
9548 acl_save_prefix
="$prefix"
9549 prefix
="$acl_final_prefix"
9550 acl_save_exec_prefix
="$exec_prefix"
9551 exec_prefix
="$acl_final_exec_prefix"
9553 eval additional_includedir
=\"$includedir\"
9554 eval additional_libdir
=\"$libdir\"
9556 exec_prefix
="$acl_save_exec_prefix"
9557 prefix
="$acl_save_prefix"
9560 additional_includedir
="$withval/include"
9561 additional_libdir
="$withval/lib"
9568 # Check whether --with-libexpat-type was given.
9569 if test "${with_libexpat_type+set}" = set; then :
9570 withval
=$with_libexpat_type; with_libexpat_type
=$withval
9572 with_libexpat_type
=auto
9575 lib_type
=`eval echo \$with_libexpat_type`
9582 names_already_handled
=
9583 names_next_round
='expat '
9584 while test -n "$names_next_round"; do
9585 names_this_round
="$names_next_round"
9587 for name
in $names_this_round; do
9589 for n
in $names_already_handled; do
9590 if test "$n" = "$name"; then
9595 if test -z "$already_handled"; then
9596 names_already_handled
="$names_already_handled $name"
9597 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9598 eval value
=\"\
$HAVE_LIB$uppername\"
9599 if test -n "$value"; then
9600 if test "$value" = yes; then
9601 eval value
=\"\
$LIB$uppername\"
9602 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
9603 eval value
=\"\
$LTLIB$uppername\"
9604 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
9613 if test $use_additional = yes; then
9614 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9615 found_dir
="$additional_libdir"
9616 found_so
="$additional_libdir/lib$name.$shlibext"
9617 if test -f "$additional_libdir/lib$name.la"; then
9618 found_la
="$additional_libdir/lib$name.la"
9620 elif test x
$lib_type != xshared
; then
9621 if test -f "$additional_libdir/lib$name.$libext"; then
9622 found_dir
="$additional_libdir"
9623 found_a
="$additional_libdir/lib$name.$libext"
9624 if test -f "$additional_libdir/lib$name.la"; then
9625 found_la
="$additional_libdir/lib$name.la"
9630 if test "X$found_dir" = "X"; then
9631 for x
in $LDFLAGS $LTLIBEXPAT; do
9633 acl_save_prefix
="$prefix"
9634 prefix
="$acl_final_prefix"
9635 acl_save_exec_prefix
="$exec_prefix"
9636 exec_prefix
="$acl_final_exec_prefix"
9638 exec_prefix
="$acl_save_exec_prefix"
9639 prefix
="$acl_save_prefix"
9643 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9644 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9646 found_so
="$dir/lib$name.$shlibext"
9647 if test -f "$dir/lib$name.la"; then
9648 found_la
="$dir/lib$name.la"
9650 elif test x
$lib_type != xshared
; then
9651 if test -f "$dir/lib$name.$libext"; then
9653 found_a
="$dir/lib$name.$libext"
9654 if test -f "$dir/lib$name.la"; then
9655 found_la
="$dir/lib$name.la"
9661 if test "X$found_dir" != "X"; then
9666 if test "X$found_dir" != "X"; then
9667 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
9668 if test "X$found_so" != "X"; then
9669 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9670 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9673 for x
in $ltrpathdirs; do
9674 if test "X$x" = "X$found_dir"; then
9679 if test -z "$haveit"; then
9680 ltrpathdirs
="$ltrpathdirs $found_dir"
9682 if test "$hardcode_direct" = yes; then
9683 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9685 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9686 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9688 for x
in $rpathdirs; do
9689 if test "X$x" = "X$found_dir"; then
9694 if test -z "$haveit"; then
9695 rpathdirs
="$rpathdirs $found_dir"
9699 for x
in $LDFLAGS $LIBEXPAT; do
9701 acl_save_prefix
="$prefix"
9702 prefix
="$acl_final_prefix"
9703 acl_save_exec_prefix
="$exec_prefix"
9704 exec_prefix
="$acl_final_exec_prefix"
9706 exec_prefix
="$acl_save_exec_prefix"
9707 prefix
="$acl_save_prefix"
9709 if test "X$x" = "X-L$found_dir"; then
9714 if test -z "$haveit"; then
9715 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
9717 if test "$hardcode_minus_L" != no
; then
9718 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9720 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9726 if test "X$found_a" != "X"; then
9727 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
9729 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
9732 additional_includedir
=
9733 case "$found_dir" in
9735 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9736 additional_includedir
="$basedir/include"
9739 if test "X$additional_includedir" != "X"; then
9740 if test "X$additional_includedir" != "X/usr/include"; then
9742 if test "X$additional_includedir" = "X/usr/local/include"; then
9743 if test -n "$GCC"; then
9745 linux
*) haveit
=yes;;
9749 if test -z "$haveit"; then
9750 for x
in $CPPFLAGS $INCEXPAT; do
9752 acl_save_prefix
="$prefix"
9753 prefix
="$acl_final_prefix"
9754 acl_save_exec_prefix
="$exec_prefix"
9755 exec_prefix
="$acl_final_exec_prefix"
9757 exec_prefix
="$acl_save_exec_prefix"
9758 prefix
="$acl_save_prefix"
9760 if test "X$x" = "X-I$additional_includedir"; then
9765 if test -z "$haveit"; then
9766 if test -d "$additional_includedir"; then
9767 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
9773 if test -n "$found_la"; then
9774 save_libdir
="$libdir"
9776 */* |
*\\*) .
"$found_la" ;;
9777 *) .
"./$found_la" ;;
9779 libdir
="$save_libdir"
9780 for dep
in $dependency_libs; do
9783 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9784 if test "X$additional_libdir" != "X/usr/lib"; then
9786 if test "X$additional_libdir" = "X/usr/local/lib"; then
9787 if test -n "$GCC"; then
9789 linux
*) haveit
=yes;;
9793 if test -z "$haveit"; then
9795 for x
in $LDFLAGS $LIBEXPAT; do
9797 acl_save_prefix
="$prefix"
9798 prefix
="$acl_final_prefix"
9799 acl_save_exec_prefix
="$exec_prefix"
9800 exec_prefix
="$acl_final_exec_prefix"
9802 exec_prefix
="$acl_save_exec_prefix"
9803 prefix
="$acl_save_prefix"
9805 if test "X$x" = "X-L$additional_libdir"; then
9810 if test -z "$haveit"; then
9811 if test -d "$additional_libdir"; then
9812 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
9816 for x
in $LDFLAGS $LTLIBEXPAT; do
9818 acl_save_prefix
="$prefix"
9819 prefix
="$acl_final_prefix"
9820 acl_save_exec_prefix
="$exec_prefix"
9821 exec_prefix
="$acl_final_exec_prefix"
9823 exec_prefix
="$acl_save_exec_prefix"
9824 prefix
="$acl_save_prefix"
9826 if test "X$x" = "X-L$additional_libdir"; then
9831 if test -z "$haveit"; then
9832 if test -d "$additional_libdir"; then
9833 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
9840 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9841 if test "$enable_rpath" != no
; then
9843 for x
in $rpathdirs; do
9844 if test "X$x" = "X$dir"; then
9849 if test -z "$haveit"; then
9850 rpathdirs
="$rpathdirs $dir"
9853 for x
in $ltrpathdirs; do
9854 if test "X$x" = "X$dir"; then
9859 if test -z "$haveit"; then
9860 ltrpathdirs
="$ltrpathdirs $dir"
9865 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9868 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9871 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
9872 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
9878 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
9879 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9880 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
9882 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l:lib$name.$libext"
9883 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l:lib$name.$libext"
9890 if test "X$rpathdirs" != "X"; then
9891 if test -n "$hardcode_libdir_separator"; then
9893 for found_dir
in $rpathdirs; do
9894 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9896 acl_save_libdir
="$libdir"
9898 eval flag
=\"$hardcode_libdir_flag_spec\"
9899 libdir
="$acl_save_libdir"
9900 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9902 for found_dir
in $rpathdirs; do
9903 acl_save_libdir
="$libdir"
9905 eval flag
=\"$hardcode_libdir_flag_spec\"
9906 libdir
="$acl_save_libdir"
9907 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9911 if test "X$ltrpathdirs" != "X"; then
9912 for found_dir
in $ltrpathdirs; do
9913 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
9918 ac_save_CPPFLAGS
="$CPPFLAGS"
9920 for element
in $INCEXPAT; do
9922 for x
in $CPPFLAGS; do
9924 acl_save_prefix
="$prefix"
9925 prefix
="$acl_final_prefix"
9926 acl_save_exec_prefix
="$exec_prefix"
9927 exec_prefix
="$acl_final_exec_prefix"
9929 exec_prefix
="$acl_save_exec_prefix"
9930 prefix
="$acl_save_prefix"
9932 if test "X$x" = "X$element"; then
9937 if test -z "$haveit"; then
9938 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
9944 $as_echo_n "checking for libexpat... " >&6; }
9945 if ${ac_cv_libexpat+:} false
; then :
9946 $as_echo_n "(cached) " >&6
9949 ac_save_LIBS
="$LIBS"
9950 LIBS
="$LIBS $LIBEXPAT"
9951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9952 /* end confdefs.h. */
9957 XML_Parser p = XML_ParserCreate (0);
9962 if ac_fn_c_try_link
"$LINENO"; then :
9967 rm -f core conftest.err conftest.
$ac_objext \
9968 conftest
$ac_exeext conftest.
$ac_ext
9969 LIBS
="$ac_save_LIBS"
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
9973 $as_echo "$ac_cv_libexpat" >&6; }
9974 if test "$ac_cv_libexpat" = yes; then
9977 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
9980 $as_echo_n "checking how to link with libexpat... " >&6; }
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
9982 $as_echo "$LIBEXPAT" >&6; }
9985 CPPFLAGS
="$ac_save_CPPFLAGS"
9995 if test "$HAVE_LIBEXPAT" != yes; then
9996 if test "$with_expat" = yes; then
9997 as_fn_error $?
"expat is missing or unusable" "$LINENO" 5
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
10000 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
10004 LIBS
="$LIBS $LIBEXPAT"
10005 for ac_func
in XML_StopParser
10007 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
10008 if test "x$ac_cv_func_XML_StopParser" = xyes
; then :
10009 cat >>confdefs.h
<<_ACEOF
10010 #define HAVE_XML_STOPPARSER 1
10020 # Verify that we have a usable GMP library.
10031 acl_save_prefix
="$prefix"
10032 prefix
="$acl_final_prefix"
10033 acl_save_exec_prefix
="$exec_prefix"
10034 exec_prefix
="$acl_final_exec_prefix"
10036 eval additional_includedir
=\"$includedir\"
10037 eval additional_libdir
=\"$libdir\"
10039 exec_prefix
="$acl_save_exec_prefix"
10040 prefix
="$acl_save_prefix"
10043 # Check whether --with-libgmp-prefix was given.
10044 if test "${with_libgmp_prefix+set}" = set; then :
10045 withval
=$with_libgmp_prefix;
10046 if test "X$withval" = "Xno"; then
10049 if test "X$withval" = "X"; then
10051 acl_save_prefix
="$prefix"
10052 prefix
="$acl_final_prefix"
10053 acl_save_exec_prefix
="$exec_prefix"
10054 exec_prefix
="$acl_final_exec_prefix"
10056 eval additional_includedir
=\"$includedir\"
10057 eval additional_libdir
=\"$libdir\"
10059 exec_prefix
="$acl_save_exec_prefix"
10060 prefix
="$acl_save_prefix"
10063 additional_includedir
="$withval/include"
10064 additional_libdir
="$withval/lib"
10071 # Check whether --with-libgmp-type was given.
10072 if test "${with_libgmp_type+set}" = set; then :
10073 withval
=$with_libgmp_type; with_libgmp_type
=$withval
10075 with_libgmp_type
=auto
10078 lib_type
=`eval echo \$with_libgmp_type`
10085 names_already_handled
=
10086 names_next_round
='gmp '
10087 while test -n "$names_next_round"; do
10088 names_this_round
="$names_next_round"
10090 for name
in $names_this_round; do
10092 for n
in $names_already_handled; do
10093 if test "$n" = "$name"; then
10094 already_handled
=yes
10098 if test -z "$already_handled"; then
10099 names_already_handled
="$names_already_handled $name"
10100 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10101 eval value
=\"\
$HAVE_LIB$uppername\"
10102 if test -n "$value"; then
10103 if test "$value" = yes; then
10104 eval value
=\"\
$LIB$uppername\"
10105 test -z "$value" || LIBGMP
="${LIBGMP}${LIBGMP:+ }$value"
10106 eval value
=\"\
$LTLIB$uppername\"
10107 test -z "$value" || LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }$value"
10116 if test $use_additional = yes; then
10117 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10118 found_dir
="$additional_libdir"
10119 found_so
="$additional_libdir/lib$name.$shlibext"
10120 if test -f "$additional_libdir/lib$name.la"; then
10121 found_la
="$additional_libdir/lib$name.la"
10123 elif test x
$lib_type != xshared
; then
10124 if test -f "$additional_libdir/lib$name.$libext"; then
10125 found_dir
="$additional_libdir"
10126 found_a
="$additional_libdir/lib$name.$libext"
10127 if test -f "$additional_libdir/lib$name.la"; then
10128 found_la
="$additional_libdir/lib$name.la"
10133 if test "X$found_dir" = "X"; then
10134 for x
in $LDFLAGS $LTLIBGMP; do
10136 acl_save_prefix
="$prefix"
10137 prefix
="$acl_final_prefix"
10138 acl_save_exec_prefix
="$exec_prefix"
10139 exec_prefix
="$acl_final_exec_prefix"
10141 exec_prefix
="$acl_save_exec_prefix"
10142 prefix
="$acl_save_prefix"
10146 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10147 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10149 found_so
="$dir/lib$name.$shlibext"
10150 if test -f "$dir/lib$name.la"; then
10151 found_la
="$dir/lib$name.la"
10153 elif test x
$lib_type != xshared
; then
10154 if test -f "$dir/lib$name.$libext"; then
10156 found_a
="$dir/lib$name.$libext"
10157 if test -f "$dir/lib$name.la"; then
10158 found_la
="$dir/lib$name.la"
10164 if test "X$found_dir" != "X"; then
10169 if test "X$found_dir" != "X"; then
10170 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }-L$found_dir -l$name"
10171 if test "X$found_so" != "X"; then
10172 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10173 LIBGMP
="${LIBGMP}${LIBGMP:+ }$found_so"
10176 for x
in $ltrpathdirs; do
10177 if test "X$x" = "X$found_dir"; then
10182 if test -z "$haveit"; then
10183 ltrpathdirs
="$ltrpathdirs $found_dir"
10185 if test "$hardcode_direct" = yes; then
10186 LIBGMP
="${LIBGMP}${LIBGMP:+ }$found_so"
10188 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10189 LIBGMP
="${LIBGMP}${LIBGMP:+ }$found_so"
10191 for x
in $rpathdirs; do
10192 if test "X$x" = "X$found_dir"; then
10197 if test -z "$haveit"; then
10198 rpathdirs
="$rpathdirs $found_dir"
10202 for x
in $LDFLAGS $LIBGMP; do
10204 acl_save_prefix
="$prefix"
10205 prefix
="$acl_final_prefix"
10206 acl_save_exec_prefix
="$exec_prefix"
10207 exec_prefix
="$acl_final_exec_prefix"
10209 exec_prefix
="$acl_save_exec_prefix"
10210 prefix
="$acl_save_prefix"
10212 if test "X$x" = "X-L$found_dir"; then
10217 if test -z "$haveit"; then
10218 LIBGMP
="${LIBGMP}${LIBGMP:+ }-L$found_dir"
10220 if test "$hardcode_minus_L" != no
; then
10221 LIBGMP
="${LIBGMP}${LIBGMP:+ }$found_so"
10223 LIBGMP
="${LIBGMP}${LIBGMP:+ }-l$name"
10229 if test "X$found_a" != "X"; then
10230 LIBGMP
="${LIBGMP}${LIBGMP:+ }$found_a"
10232 LIBGMP
="${LIBGMP}${LIBGMP:+ }-L$found_dir -l$name"
10235 additional_includedir
=
10236 case "$found_dir" in
10238 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10239 additional_includedir
="$basedir/include"
10242 if test "X$additional_includedir" != "X"; then
10243 if test "X$additional_includedir" != "X/usr/include"; then
10245 if test "X$additional_includedir" = "X/usr/local/include"; then
10246 if test -n "$GCC"; then
10248 linux
*) haveit
=yes;;
10252 if test -z "$haveit"; then
10253 for x
in $CPPFLAGS $INCGMP; do
10255 acl_save_prefix
="$prefix"
10256 prefix
="$acl_final_prefix"
10257 acl_save_exec_prefix
="$exec_prefix"
10258 exec_prefix
="$acl_final_exec_prefix"
10260 exec_prefix
="$acl_save_exec_prefix"
10261 prefix
="$acl_save_prefix"
10263 if test "X$x" = "X-I$additional_includedir"; then
10268 if test -z "$haveit"; then
10269 if test -d "$additional_includedir"; then
10270 INCGMP
="${INCGMP}${INCGMP:+ }-I$additional_includedir"
10276 if test -n "$found_la"; then
10277 save_libdir
="$libdir"
10278 case "$found_la" in
10279 */* |
*\\*) .
"$found_la" ;;
10280 *) .
"./$found_la" ;;
10282 libdir
="$save_libdir"
10283 for dep
in $dependency_libs; do
10286 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10287 if test "X$additional_libdir" != "X/usr/lib"; then
10289 if test "X$additional_libdir" = "X/usr/local/lib"; then
10290 if test -n "$GCC"; then
10292 linux
*) haveit
=yes;;
10296 if test -z "$haveit"; then
10298 for x
in $LDFLAGS $LIBGMP; do
10300 acl_save_prefix
="$prefix"
10301 prefix
="$acl_final_prefix"
10302 acl_save_exec_prefix
="$exec_prefix"
10303 exec_prefix
="$acl_final_exec_prefix"
10305 exec_prefix
="$acl_save_exec_prefix"
10306 prefix
="$acl_save_prefix"
10308 if test "X$x" = "X-L$additional_libdir"; then
10313 if test -z "$haveit"; then
10314 if test -d "$additional_libdir"; then
10315 LIBGMP
="${LIBGMP}${LIBGMP:+ }-L$additional_libdir"
10319 for x
in $LDFLAGS $LTLIBGMP; do
10321 acl_save_prefix
="$prefix"
10322 prefix
="$acl_final_prefix"
10323 acl_save_exec_prefix
="$exec_prefix"
10324 exec_prefix
="$acl_final_exec_prefix"
10326 exec_prefix
="$acl_save_exec_prefix"
10327 prefix
="$acl_save_prefix"
10329 if test "X$x" = "X-L$additional_libdir"; then
10334 if test -z "$haveit"; then
10335 if test -d "$additional_libdir"; then
10336 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }-L$additional_libdir"
10343 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10344 if test "$enable_rpath" != no
; then
10346 for x
in $rpathdirs; do
10347 if test "X$x" = "X$dir"; then
10352 if test -z "$haveit"; then
10353 rpathdirs
="$rpathdirs $dir"
10356 for x
in $ltrpathdirs; do
10357 if test "X$x" = "X$dir"; then
10362 if test -z "$haveit"; then
10363 ltrpathdirs
="$ltrpathdirs $dir"
10368 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10371 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10374 LIBGMP
="${LIBGMP}${LIBGMP:+ }$dep"
10375 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }$dep"
10381 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
10382 LIBGMP
="${LIBGMP}${LIBGMP:+ }-l$name"
10383 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }-l$name"
10385 LIBGMP
="${LIBGMP}${LIBGMP:+ }-l:lib$name.$libext"
10386 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }-l:lib$name.$libext"
10393 if test "X$rpathdirs" != "X"; then
10394 if test -n "$hardcode_libdir_separator"; then
10396 for found_dir
in $rpathdirs; do
10397 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10399 acl_save_libdir
="$libdir"
10401 eval flag
=\"$hardcode_libdir_flag_spec\"
10402 libdir
="$acl_save_libdir"
10403 LIBGMP
="${LIBGMP}${LIBGMP:+ }$flag"
10405 for found_dir
in $rpathdirs; do
10406 acl_save_libdir
="$libdir"
10407 libdir
="$found_dir"
10408 eval flag
=\"$hardcode_libdir_flag_spec\"
10409 libdir
="$acl_save_libdir"
10410 LIBGMP
="${LIBGMP}${LIBGMP:+ }$flag"
10414 if test "X$ltrpathdirs" != "X"; then
10415 for found_dir
in $ltrpathdirs; do
10416 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }-R$found_dir"
10421 ac_save_CPPFLAGS
="$CPPFLAGS"
10423 for element
in $INCGMP; do
10425 for x
in $CPPFLAGS; do
10427 acl_save_prefix
="$prefix"
10428 prefix
="$acl_final_prefix"
10429 acl_save_exec_prefix
="$exec_prefix"
10430 exec_prefix
="$acl_final_exec_prefix"
10432 exec_prefix
="$acl_save_exec_prefix"
10433 prefix
="$acl_save_prefix"
10435 if test "X$x" = "X$element"; then
10440 if test -z "$haveit"; then
10441 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgmp" >&5
10447 $as_echo_n "checking for libgmp... " >&6; }
10448 if ${ac_cv_libgmp+:} false
; then :
10449 $as_echo_n "(cached) " >&6
10452 ac_save_LIBS
="$LIBS"
10453 LIBS
="$LIBS $LIBGMP"
10454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10455 /* end confdefs.h. */
10466 if ac_fn_c_try_link
"$LINENO"; then :
10471 rm -f core conftest.err conftest.
$ac_objext \
10472 conftest
$ac_exeext conftest.
$ac_ext
10473 LIBS
="$ac_save_LIBS"
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgmp" >&5
10477 $as_echo "$ac_cv_libgmp" >&6; }
10478 if test "$ac_cv_libgmp" = yes; then
10481 $as_echo "#define HAVE_LIBGMP 1" >>confdefs.h
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libgmp" >&5
10484 $as_echo_n "checking how to link with libgmp... " >&6; }
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGMP" >&5
10486 $as_echo "$LIBGMP" >&6; }
10489 CPPFLAGS
="$ac_save_CPPFLAGS"
10499 if test "$HAVE_LIBGMP" != yes; then
10500 as_fn_error $?
"GMP is missing or unusable" "$LINENO" 5
10504 # Check whether --with-mpfr was given.
10505 if test "${with_mpfr+set}" = set; then :
10506 withval
=$with_mpfr;
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MPFR" >&5
10512 $as_echo_n "checking whether to use MPFR... " >&6; }
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mpfr" >&5
10514 $as_echo "$with_mpfr" >&6; }
10516 if test "${with_mpfr}" = no
; then
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR support disabled; some features may be unavailable." >&5
10518 $as_echo "$as_me: WARNING: MPFR support disabled; some features may be unavailable." >&2;}
10531 acl_save_prefix
="$prefix"
10532 prefix
="$acl_final_prefix"
10533 acl_save_exec_prefix
="$exec_prefix"
10534 exec_prefix
="$acl_final_exec_prefix"
10536 eval additional_includedir
=\"$includedir\"
10537 eval additional_libdir
=\"$libdir\"
10539 exec_prefix
="$acl_save_exec_prefix"
10540 prefix
="$acl_save_prefix"
10543 # Check whether --with-libmpfr-prefix was given.
10544 if test "${with_libmpfr_prefix+set}" = set; then :
10545 withval
=$with_libmpfr_prefix;
10546 if test "X$withval" = "Xno"; then
10549 if test "X$withval" = "X"; then
10551 acl_save_prefix
="$prefix"
10552 prefix
="$acl_final_prefix"
10553 acl_save_exec_prefix
="$exec_prefix"
10554 exec_prefix
="$acl_final_exec_prefix"
10556 eval additional_includedir
=\"$includedir\"
10557 eval additional_libdir
=\"$libdir\"
10559 exec_prefix
="$acl_save_exec_prefix"
10560 prefix
="$acl_save_prefix"
10563 additional_includedir
="$withval/include"
10564 additional_libdir
="$withval/lib"
10571 # Check whether --with-libmpfr-type was given.
10572 if test "${with_libmpfr_type+set}" = set; then :
10573 withval
=$with_libmpfr_type; with_libmpfr_type
=$withval
10575 with_libmpfr_type
=auto
10578 lib_type
=`eval echo \$with_libmpfr_type`
10585 names_already_handled
=
10586 names_next_round
='mpfr gmp'
10587 while test -n "$names_next_round"; do
10588 names_this_round
="$names_next_round"
10590 for name
in $names_this_round; do
10592 for n
in $names_already_handled; do
10593 if test "$n" = "$name"; then
10594 already_handled
=yes
10598 if test -z "$already_handled"; then
10599 names_already_handled
="$names_already_handled $name"
10600 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10601 eval value
=\"\
$HAVE_LIB$uppername\"
10602 if test -n "$value"; then
10603 if test "$value" = yes; then
10604 eval value
=\"\
$LIB$uppername\"
10605 test -z "$value" || LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$value"
10606 eval value
=\"\
$LTLIB$uppername\"
10607 test -z "$value" || LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$value"
10616 if test $use_additional = yes; then
10617 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10618 found_dir
="$additional_libdir"
10619 found_so
="$additional_libdir/lib$name.$shlibext"
10620 if test -f "$additional_libdir/lib$name.la"; then
10621 found_la
="$additional_libdir/lib$name.la"
10623 elif test x
$lib_type != xshared
; then
10624 if test -f "$additional_libdir/lib$name.$libext"; then
10625 found_dir
="$additional_libdir"
10626 found_a
="$additional_libdir/lib$name.$libext"
10627 if test -f "$additional_libdir/lib$name.la"; then
10628 found_la
="$additional_libdir/lib$name.la"
10633 if test "X$found_dir" = "X"; then
10634 for x
in $LDFLAGS $LTLIBMPFR; do
10636 acl_save_prefix
="$prefix"
10637 prefix
="$acl_final_prefix"
10638 acl_save_exec_prefix
="$exec_prefix"
10639 exec_prefix
="$acl_final_exec_prefix"
10641 exec_prefix
="$acl_save_exec_prefix"
10642 prefix
="$acl_save_prefix"
10646 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10647 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10649 found_so
="$dir/lib$name.$shlibext"
10650 if test -f "$dir/lib$name.la"; then
10651 found_la
="$dir/lib$name.la"
10653 elif test x
$lib_type != xshared
; then
10654 if test -f "$dir/lib$name.$libext"; then
10656 found_a
="$dir/lib$name.$libext"
10657 if test -f "$dir/lib$name.la"; then
10658 found_la
="$dir/lib$name.la"
10664 if test "X$found_dir" != "X"; then
10669 if test "X$found_dir" != "X"; then
10670 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$found_dir -l$name"
10671 if test "X$found_so" != "X"; then
10672 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10673 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10676 for x
in $ltrpathdirs; do
10677 if test "X$x" = "X$found_dir"; then
10682 if test -z "$haveit"; then
10683 ltrpathdirs
="$ltrpathdirs $found_dir"
10685 if test "$hardcode_direct" = yes; then
10686 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10688 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10689 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10691 for x
in $rpathdirs; do
10692 if test "X$x" = "X$found_dir"; then
10697 if test -z "$haveit"; then
10698 rpathdirs
="$rpathdirs $found_dir"
10702 for x
in $LDFLAGS $LIBMPFR; do
10704 acl_save_prefix
="$prefix"
10705 prefix
="$acl_final_prefix"
10706 acl_save_exec_prefix
="$exec_prefix"
10707 exec_prefix
="$acl_final_exec_prefix"
10709 exec_prefix
="$acl_save_exec_prefix"
10710 prefix
="$acl_save_prefix"
10712 if test "X$x" = "X-L$found_dir"; then
10717 if test -z "$haveit"; then
10718 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir"
10720 if test "$hardcode_minus_L" != no
; then
10721 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10723 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10729 if test "X$found_a" != "X"; then
10730 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_a"
10732 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir -l$name"
10735 additional_includedir
=
10736 case "$found_dir" in
10738 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10739 additional_includedir
="$basedir/include"
10742 if test "X$additional_includedir" != "X"; then
10743 if test "X$additional_includedir" != "X/usr/include"; then
10745 if test "X$additional_includedir" = "X/usr/local/include"; then
10746 if test -n "$GCC"; then
10748 linux
*) haveit
=yes;;
10752 if test -z "$haveit"; then
10753 for x
in $CPPFLAGS $INCMPFR; do
10755 acl_save_prefix
="$prefix"
10756 prefix
="$acl_final_prefix"
10757 acl_save_exec_prefix
="$exec_prefix"
10758 exec_prefix
="$acl_final_exec_prefix"
10760 exec_prefix
="$acl_save_exec_prefix"
10761 prefix
="$acl_save_prefix"
10763 if test "X$x" = "X-I$additional_includedir"; then
10768 if test -z "$haveit"; then
10769 if test -d "$additional_includedir"; then
10770 INCMPFR
="${INCMPFR}${INCMPFR:+ }-I$additional_includedir"
10776 if test -n "$found_la"; then
10777 save_libdir
="$libdir"
10778 case "$found_la" in
10779 */* |
*\\*) .
"$found_la" ;;
10780 *) .
"./$found_la" ;;
10782 libdir
="$save_libdir"
10783 for dep
in $dependency_libs; do
10786 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10787 if test "X$additional_libdir" != "X/usr/lib"; then
10789 if test "X$additional_libdir" = "X/usr/local/lib"; then
10790 if test -n "$GCC"; then
10792 linux
*) haveit
=yes;;
10796 if test -z "$haveit"; then
10798 for x
in $LDFLAGS $LIBMPFR; do
10800 acl_save_prefix
="$prefix"
10801 prefix
="$acl_final_prefix"
10802 acl_save_exec_prefix
="$exec_prefix"
10803 exec_prefix
="$acl_final_exec_prefix"
10805 exec_prefix
="$acl_save_exec_prefix"
10806 prefix
="$acl_save_prefix"
10808 if test "X$x" = "X-L$additional_libdir"; then
10813 if test -z "$haveit"; then
10814 if test -d "$additional_libdir"; then
10815 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$additional_libdir"
10819 for x
in $LDFLAGS $LTLIBMPFR; do
10821 acl_save_prefix
="$prefix"
10822 prefix
="$acl_final_prefix"
10823 acl_save_exec_prefix
="$exec_prefix"
10824 exec_prefix
="$acl_final_exec_prefix"
10826 exec_prefix
="$acl_save_exec_prefix"
10827 prefix
="$acl_save_prefix"
10829 if test "X$x" = "X-L$additional_libdir"; then
10834 if test -z "$haveit"; then
10835 if test -d "$additional_libdir"; then
10836 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$additional_libdir"
10843 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10844 if test "$enable_rpath" != no
; then
10846 for x
in $rpathdirs; do
10847 if test "X$x" = "X$dir"; then
10852 if test -z "$haveit"; then
10853 rpathdirs
="$rpathdirs $dir"
10856 for x
in $ltrpathdirs; do
10857 if test "X$x" = "X$dir"; then
10862 if test -z "$haveit"; then
10863 ltrpathdirs
="$ltrpathdirs $dir"
10868 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10871 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10874 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$dep"
10875 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$dep"
10881 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
10882 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10883 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-l$name"
10885 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l:lib$name.$libext"
10886 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-l:lib$name.$libext"
10893 if test "X$rpathdirs" != "X"; then
10894 if test -n "$hardcode_libdir_separator"; then
10896 for found_dir
in $rpathdirs; do
10897 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10899 acl_save_libdir
="$libdir"
10901 eval flag
=\"$hardcode_libdir_flag_spec\"
10902 libdir
="$acl_save_libdir"
10903 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10905 for found_dir
in $rpathdirs; do
10906 acl_save_libdir
="$libdir"
10907 libdir
="$found_dir"
10908 eval flag
=\"$hardcode_libdir_flag_spec\"
10909 libdir
="$acl_save_libdir"
10910 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10914 if test "X$ltrpathdirs" != "X"; then
10915 for found_dir
in $ltrpathdirs; do
10916 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-R$found_dir"
10921 ac_save_CPPFLAGS
="$CPPFLAGS"
10923 for element
in $INCMPFR; do
10925 for x
in $CPPFLAGS; do
10927 acl_save_prefix
="$prefix"
10928 prefix
="$acl_final_prefix"
10929 acl_save_exec_prefix
="$exec_prefix"
10930 exec_prefix
="$acl_final_exec_prefix"
10932 exec_prefix
="$acl_save_exec_prefix"
10933 prefix
="$acl_save_prefix"
10935 if test "X$x" = "X$element"; then
10940 if test -z "$haveit"; then
10941 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpfr" >&5
10947 $as_echo_n "checking for libmpfr... " >&6; }
10948 if ${ac_cv_libmpfr+:} false
; then :
10949 $as_echo_n "(cached) " >&6
10952 ac_save_LIBS
="$LIBS"
10953 LIBS
="$LIBS $LIBMPFR"
10954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10955 /* end confdefs.h. */
10960 mpfr_exp_t exp; mpfr_t x;
10961 mpfr_frexp (&exp, x, x, MPFR_RNDN);
10966 if ac_fn_c_try_link
"$LINENO"; then :
10971 rm -f core conftest.err conftest.
$ac_objext \
10972 conftest
$ac_exeext conftest.
$ac_ext
10973 LIBS
="$ac_save_LIBS"
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libmpfr" >&5
10977 $as_echo "$ac_cv_libmpfr" >&6; }
10978 if test "$ac_cv_libmpfr" = yes; then
10981 $as_echo "#define HAVE_LIBMPFR 1" >>confdefs.h
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libmpfr" >&5
10984 $as_echo_n "checking how to link with libmpfr... " >&6; }
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPFR" >&5
10986 $as_echo "$LIBMPFR" >&6; }
10989 CPPFLAGS
="$ac_save_CPPFLAGS"
10999 if test "$HAVE_LIBMPFR" != yes; then
11000 if test "$with_mpfr" = yes; then
11001 as_fn_error $?
"MPFR is missing or unusable" "$LINENO" 5
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR is missing or unusable; some features may be unavailable." >&5
11004 $as_echo "$as_me: WARNING: MPFR is missing or unusable; some features may be unavailable." >&2;}
11009 # --------------------- #
11010 # Check for libpython. #
11011 # --------------------- #
11018 # Check whether --with-python was given.
11019 if test "${with_python+set}" = set; then :
11020 withval
=$with_python;
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
11026 $as_echo_n "checking whether to use python... " >&6; }
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
11028 $as_echo "$with_python" >&6; }
11030 if test "${with_python}" = no
; then
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
11032 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
11035 case "${with_python}" in
11037 if test -d "${with_python}"; then
11038 # Assume the python binary is ${with_python}/bin/python.
11039 python_prog
="${with_python}/bin/python"
11041 # If python does not exit ${with_python}/bin, then try in
11042 # ${with_python}. On Windows/MinGW, this is where the Python
11044 if test ! -x "${python_prog}"; then
11045 python_prog
="${with_python}/python"
11048 if test ! -x "${python_prog}"; then
11049 # Fall back to gdb 7.0/7.1 behaviour.
11050 python_prog
=missing
11051 python_prefix
=${with_python}
11053 elif test -x "${with_python}"; then
11054 # While we can't run python compiled for $host (unless host == build),
11055 # the user could write a script that provides the needed information,
11056 # so we support that.
11057 python_prog
=${with_python}
11060 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
11064 # Disallow --with-python=foo/bar.
11065 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
11068 # The user has either specified auto, yes, or the name of the python
11069 # program assumed to be in $PATH.
11071 case "${with_python}" in
11073 if test "${build}" = "${host}"; then
11074 # Extract the first word of "python", so it can be a program name with args.
11075 set dummy python
; ac_word
=$2
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11077 $as_echo_n "checking for $ac_word... " >&6; }
11078 if ${ac_cv_path_python_prog_path+:} false
; then :
11079 $as_echo_n "(cached) " >&6
11081 case $python_prog_path in
11083 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
11086 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11087 for as_dir
in $PATH
11090 test -z "$as_dir" && as_dir
=.
11091 for ac_exec_ext
in '' $ac_executable_extensions; do
11092 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11093 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
11094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11101 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
11105 python_prog_path
=$ac_cv_path_python_prog_path
11106 if test -n "$python_prog_path"; then
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
11108 $as_echo "$python_prog_path" >&6; }
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11111 $as_echo "no" >&6; }
11115 if test "${python_prog_path}" = missing
; then
11116 python_prog
=missing
11118 python_prog
=${python_prog_path}
11121 # Not much we can do except assume the cross-compiler will find the
11123 python_prog
=missing
11127 # While we can't run python compiled for $host (unless host == build),
11128 # the user could write a script that provides the needed information,
11129 # so we support that.
11130 python_prog
="${with_python}"
11131 # Extract the first word of "${python_prog}", so it can be a program name with args.
11132 set dummy
${python_prog}; ac_word
=$2
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11134 $as_echo_n "checking for $ac_word... " >&6; }
11135 if ${ac_cv_path_python_prog_path+:} false
; then :
11136 $as_echo_n "(cached) " >&6
11138 case $python_prog_path in
11140 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
11143 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11144 for as_dir
in $PATH
11147 test -z "$as_dir" && as_dir
=.
11148 for ac_exec_ext
in '' $ac_executable_extensions; do
11149 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11150 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
11151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11158 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
11162 python_prog_path
=$ac_cv_path_python_prog_path
11163 if test -n "$python_prog_path"; then
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
11165 $as_echo "$python_prog_path" >&6; }
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11168 $as_echo "no" >&6; }
11172 if test "${python_prog_path}" = missing
; then
11173 as_fn_error $?
"unable to find python program ${python_prog}" "$LINENO" 5
11179 if test "${python_prog}" != missing
; then
11180 # We have a python program to use, but it may be too old.
11181 # Don't flag an error for --with-python=auto (the default).
11182 have_python_config
=yes
11183 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
11184 if test $?
!= 0; then
11185 have_python_config
=failed
11186 if test "${with_python}" != auto
; then
11187 as_fn_error $?
"failure running python-config --includes" "$LINENO" 5
11190 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
11191 if test $?
!= 0; then
11192 have_python_config
=failed
11193 if test "${with_python}" != auto
; then
11194 as_fn_error $?
"failure running python-config --ldflags" "$LINENO" 5
11197 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
11198 if test $?
!= 0; then
11199 have_python_config
=failed
11200 if test "${with_python}" != auto
; then
11201 as_fn_error $?
"failure running python-config --exec-prefix" "$LINENO" 5
11205 # We do not have a python executable we can use to determine where
11206 # to find the Python headers and libs. We cannot guess the include
11207 # path from the python_prefix either, because that include path
11208 # depends on the Python version. So, there is nothing much we can
11209 # do except assume that the compiler will be able to find those files.
11212 have_python_config
=no
11215 # If we have python-config, only try the configuration it provides.
11216 # Otherwise fallback on the old way of trying different versions of
11220 if test "${have_python_config}" = yes; then
11223 new_CPPFLAGS
=${python_includes}
11224 new_LIBS
=${python_libs}
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
11226 $as_echo_n "checking for python... " >&6; }
11227 save_CPPFLAGS
=$CPPFLAGS
11229 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11230 LIBS
="$new_LIBS $LIBS"
11231 found_usable_python
=no
11232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11233 /* end confdefs.h. */
11234 #include "Python.h"
11243 if ac_fn_c_try_link
"$LINENO"; then :
11245 found_usable_python
=yes
11246 PYTHON_CPPFLAGS
=$new_CPPFLAGS
11247 PYTHON_LIBS
=$new_LIBS
11249 rm -f core conftest.err conftest.
$ac_objext \
11250 conftest
$ac_exeext conftest.
$ac_ext
11251 CPPFLAGS
=$save_CPPFLAGS
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11254 $as_echo "${found_usable_python}" >&6; }
11256 elif test "${have_python_config}" != failed
; then
11257 if test "${have_libpython}" = no
; then
11260 new_CPPFLAGS
=${python_includes}
11261 new_LIBS
="-lpython2.7 ${python_libs}"
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
11263 $as_echo_n "checking for python... " >&6; }
11264 save_CPPFLAGS
=$CPPFLAGS
11266 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11267 LIBS
="$new_LIBS $LIBS"
11268 found_usable_python
=no
11269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11270 /* end confdefs.h. */
11271 #include "Python.h"
11280 if ac_fn_c_try_link
"$LINENO"; then :
11282 found_usable_python
=yes
11283 PYTHON_CPPFLAGS
=$new_CPPFLAGS
11284 PYTHON_LIBS
=$new_LIBS
11286 rm -f core conftest.err conftest.
$ac_objext \
11287 conftest
$ac_exeext conftest.
$ac_ext
11288 CPPFLAGS
=$save_CPPFLAGS
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11291 $as_echo "${found_usable_python}" >&6; }
11294 if test "${have_libpython}" = no
; then
11297 new_CPPFLAGS
=${python_includes}
11298 new_LIBS
="-lpython2.6 ${python_libs}"
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
11300 $as_echo_n "checking for python... " >&6; }
11301 save_CPPFLAGS
=$CPPFLAGS
11303 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11304 LIBS
="$new_LIBS $LIBS"
11305 found_usable_python
=no
11306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11307 /* end confdefs.h. */
11308 #include "Python.h"
11317 if ac_fn_c_try_link
"$LINENO"; then :
11319 found_usable_python
=yes
11320 PYTHON_CPPFLAGS
=$new_CPPFLAGS
11321 PYTHON_LIBS
=$new_LIBS
11323 rm -f core conftest.err conftest.
$ac_objext \
11324 conftest
$ac_exeext conftest.
$ac_ext
11325 CPPFLAGS
=$save_CPPFLAGS
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11328 $as_echo "${found_usable_python}" >&6; }
11333 if test "${have_libpython}" = no
; then
11334 case "${with_python}" in
11336 as_fn_error $?
"python is missing or unusable" "$LINENO" 5
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
11340 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
11343 as_fn_error $?
"no usable python found at ${with_python}" "$LINENO" 5
11347 if test -n "${python_prefix}"; then
11349 cat >>confdefs.h
<<_ACEOF
11350 #define WITH_PYTHON_PATH "${python_prefix}"
11354 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
11355 if test "x$prefix" = xNONE
; then
11356 test_prefix
=/usr
/local
11358 test_prefix
=$prefix
11361 test_prefix
=$exec_prefix
11364 case ${python_prefix} in
11365 "${test_prefix}"|
"${test_prefix}/"*|\
11366 '${exec_prefix}'|
'${exec_prefix}/'*)
11371 cat >>confdefs.h
<<_ACEOF
11372 #define PYTHON_PATH_RELOCATABLE $value
11381 # Check whether --with-python-libdir was given.
11382 if test "${with_python_libdir+set}" = set; then :
11383 withval
=$with_python_libdir;
11386 # If no python libdir is specified then select one based on
11387 # python's prefix path.
11388 if test -n "${python_prefix}"; then
11389 with_python_libdir
=${python_prefix}/lib
11395 if test "${have_libpython}" != no
; then
11397 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
11399 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
11400 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
11401 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
11402 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
11403 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
11405 if test -n "${with_python_libdir}"; then
11407 cat >>confdefs.h
<<_ACEOF
11408 #define WITH_PYTHON_LIBDIR "${with_python_libdir}"
11412 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
11413 if test "x$prefix" = xNONE
; then
11414 test_prefix
=/usr
/local
11416 test_prefix
=$prefix
11419 test_prefix
=$exec_prefix
11422 case ${with_python_libdir} in
11423 "${test_prefix}"|
"${test_prefix}/"*|\
11424 '${exec_prefix}'|
'${exec_prefix}/'*)
11429 cat >>confdefs.h
<<_ACEOF
11430 #define PYTHON_LIBDIR_RELOCATABLE $value
11436 # Flags needed to compile Python code (taken from python-config --cflags).
11437 # We cannot call python-config directly because it will output whatever was
11438 # used when compiling the Python interpreter itself, including flags which
11439 # would make the python-related objects be compiled differently from the
11440 # rest of GDB (e.g., -O2 and -fPIC).
11441 if test "${GCC}" = yes; then
11442 tentative_python_cflags
="-fno-strict-aliasing -fwrapv"
11443 # Python headers recommend -DNDEBUG, but it's unclear if that just
11444 # refers to building Python itself. In release mode, though, it
11445 # doesn't hurt for the Python code in gdb to follow.
11446 $development || tentative_python_cflags
="$tentative_python_cflags -DNDEBUG"
11449 if test "x${tentative_python_cflags}" != x
; then
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
11451 $as_echo_n "checking compiler flags for python code... " >&6; }
11452 for flag
in ${tentative_python_cflags}; do
11453 # Check that the compiler accepts it
11454 saved_CFLAGS
="$CFLAGS"
11455 CFLAGS
="$CFLAGS $flag"
11456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11457 /* end confdefs.h. */
11467 if ac_fn_c_try_compile
"$LINENO"; then :
11468 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
11470 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11471 CFLAGS
="$saved_CFLAGS"
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
11474 $as_echo "${PYTHON_CFLAGS}" >&6; }
11477 # On x64 Windows, Python's include headers, and pyconfig.h in
11478 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
11479 # version of Windows. Unfortunately, MS_WIN64 is only defined if
11480 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
11481 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
11482 # The issue was reported to the Python community, but still isn't
11483 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
11485 case "$gdb_host" in
11487 if test "${GCC}" = yes; then
11488 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
11493 # Even if Python support is not compiled in, we need to have this file
11494 # included so that the "python" command, et.al., still exists.
11495 CONFIG_OBS
="$CONFIG_OBS python/python.o"
11496 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
11499 # Work around Python http://bugs.python.org/issue10112. See also
11500 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
11501 # no effect. Note that the only test after this that uses Python is
11502 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
11503 # run without -export-dynamic too.
11504 PYTHON_LIBS
=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
11509 if test "${have_libpython}" != no
; then
11511 HAVE_PYTHON_FALSE
='#'
11513 HAVE_PYTHON_TRUE
='#'
11518 # -------------------- #
11519 # Check for libguile. #
11520 # -------------------- #
11527 # Check whether --with-guile was given.
11528 if test "${with_guile+set}" = set; then :
11529 withval
=$with_guile;
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
11535 $as_echo_n "checking whether to use guile... " >&6; }
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
11537 $as_echo "$with_guile" >&6; }
11539 # Extract the first word of "pkg-config", so it can be a program name with args.
11540 set dummy pkg-config
; ac_word
=$2
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11542 $as_echo_n "checking for $ac_word... " >&6; }
11543 if ${ac_cv_path_pkg_config_prog_path+:} false
; then :
11544 $as_echo_n "(cached) " >&6
11546 case $pkg_config_prog_path in
11548 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
11551 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11552 for as_dir
in $PATH
11555 test -z "$as_dir" && as_dir
=.
11556 for ac_exec_ext
in '' $ac_executable_extensions; do
11557 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11558 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
11559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11566 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
11570 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
11571 if test -n "$pkg_config_prog_path"; then
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
11573 $as_echo "$pkg_config_prog_path" >&6; }
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11576 $as_echo "no" >&6; }
11581 try_guile_versions
="guile-3.0 guile-2.2 guile-2.0"
11583 case "${with_guile}" in
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
11586 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
11589 if test "${pkg_config_prog_path}" = "missing"; then
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
11591 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
11594 pkg_config
=${pkg_config_prog_path}
11595 guile_version_list
=${try_guile_versions}
11598 found_usable_guile
=checking
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11600 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11601 for guile_version
in ${guile_version_list}; do
11602 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11603 if test $?
!= 0; then
11606 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11607 if test $?
!= 0; then
11608 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11610 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11611 if test $?
!= 0; then
11612 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11614 found_usable_guile
=${guile_version}
11617 if test "${found_usable_guile}" = "checking"; then
11618 if test "${flag_errors}" = "yes"; then
11619 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11621 found_usable_guile
=no
11624 if test "${found_usable_guile}" != no
; then
11625 save_CPPFLAGS
=$CPPFLAGS
11627 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11628 LIBS
="$LIBS $new_LIBS"
11629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11630 /* end confdefs.h. */
11631 #include "libguile.h"
11640 if ac_fn_c_try_link
"$LINENO"; then :
11642 GUILE_CPPFLAGS
=$new_CPPFLAGS
11643 GUILE_LIBS
=$new_LIBS
11645 found_usable_guile
=no
11647 rm -f core conftest.err conftest.
$ac_objext \
11648 conftest
$ac_exeext conftest.
$ac_ext
11649 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11650 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11652 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11657 CPPFLAGS
=$save_CPPFLAGS
11659 if test "${found_usable_guile}" = no
; then
11660 if test "${flag_errors}" = yes; then
11661 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11663 as_fn_error $?
"linking guile version ${guile_version} test program failed
11664 See \`config.log' for more details" "$LINENO" 5; }
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11669 $as_echo "${found_usable_guile}" >&6; }
11674 if test "${pkg_config_prog_path}" = "missing"; then
11675 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11678 pkg_config
=${pkg_config_prog_path}
11679 guile_version_list
=${try_guile_versions}
11682 found_usable_guile
=checking
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11684 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11685 for guile_version
in ${guile_version_list}; do
11686 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11687 if test $?
!= 0; then
11690 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11691 if test $?
!= 0; then
11692 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11694 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11695 if test $?
!= 0; then
11696 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11698 found_usable_guile
=${guile_version}
11701 if test "${found_usable_guile}" = "checking"; then
11702 if test "${flag_errors}" = "yes"; then
11703 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11705 found_usable_guile
=no
11708 if test "${found_usable_guile}" != no
; then
11709 save_CPPFLAGS
=$CPPFLAGS
11711 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11712 LIBS
="$LIBS $new_LIBS"
11713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11714 /* end confdefs.h. */
11715 #include "libguile.h"
11724 if ac_fn_c_try_link
"$LINENO"; then :
11726 GUILE_CPPFLAGS
=$new_CPPFLAGS
11727 GUILE_LIBS
=$new_LIBS
11729 found_usable_guile
=no
11731 rm -f core conftest.err conftest.
$ac_objext \
11732 conftest
$ac_exeext conftest.
$ac_ext
11733 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11734 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11736 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11741 CPPFLAGS
=$save_CPPFLAGS
11743 if test "${found_usable_guile}" = no
; then
11744 if test "${flag_errors}" = yes; then
11745 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11746 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11747 as_fn_error $?
"linking guile version ${guile_version} test program failed
11748 See \`config.log' for more details" "$LINENO" 5; }
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11753 $as_echo "${found_usable_guile}" >&6; }
11757 if test -x "${with_guile}"; then
11759 pkg_config
=${with_guile}
11760 guile_version_list
=${try_guile_versions}
11763 found_usable_guile
=checking
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11765 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11766 for guile_version
in ${guile_version_list}; do
11767 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11768 if test $?
!= 0; then
11771 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11772 if test $?
!= 0; then
11773 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11775 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11776 if test $?
!= 0; then
11777 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11779 found_usable_guile
=${guile_version}
11782 if test "${found_usable_guile}" = "checking"; then
11783 if test "${flag_errors}" = "yes"; then
11784 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11786 found_usable_guile
=no
11789 if test "${found_usable_guile}" != no
; then
11790 save_CPPFLAGS
=$CPPFLAGS
11792 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11793 LIBS
="$LIBS $new_LIBS"
11794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11795 /* end confdefs.h. */
11796 #include "libguile.h"
11805 if ac_fn_c_try_link
"$LINENO"; then :
11807 GUILE_CPPFLAGS
=$new_CPPFLAGS
11808 GUILE_LIBS
=$new_LIBS
11810 found_usable_guile
=no
11812 rm -f core conftest.err conftest.
$ac_objext \
11813 conftest
$ac_exeext conftest.
$ac_ext
11814 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11815 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11817 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11822 CPPFLAGS
=$save_CPPFLAGS
11824 if test "${found_usable_guile}" = no
; then
11825 if test "${flag_errors}" = yes; then
11826 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11828 as_fn_error $?
"linking guile version ${guile_version} test program failed
11829 See \`config.log' for more details" "$LINENO" 5; }
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11834 $as_echo "${found_usable_guile}" >&6; }
11837 as_fn_error $?
"Guile config program not executable: ${with_guile}" "$LINENO" 5
11841 # Disallow --with=guile="" and --with-guile=foo/bar.
11842 as_fn_error $?
"invalid value for --with-guile" "$LINENO" 5
11845 # A space separate list of guile versions to try, in order.
11846 if test "${pkg_config_prog_path}" = "missing"; then
11847 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11850 pkg_config
=${pkg_config_prog_path}
11851 guile_version_list
=${with_guile}
11854 found_usable_guile
=checking
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11856 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11857 for guile_version
in ${guile_version_list}; do
11858 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11859 if test $?
!= 0; then
11862 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11863 if test $?
!= 0; then
11864 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11866 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11867 if test $?
!= 0; then
11868 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11870 found_usable_guile
=${guile_version}
11873 if test "${found_usable_guile}" = "checking"; then
11874 if test "${flag_errors}" = "yes"; then
11875 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11877 found_usable_guile
=no
11880 if test "${found_usable_guile}" != no
; then
11881 save_CPPFLAGS
=$CPPFLAGS
11883 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11884 LIBS
="$LIBS $new_LIBS"
11885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11886 /* end confdefs.h. */
11887 #include "libguile.h"
11896 if ac_fn_c_try_link
"$LINENO"; then :
11898 GUILE_CPPFLAGS
=$new_CPPFLAGS
11899 GUILE_LIBS
=$new_LIBS
11901 found_usable_guile
=no
11903 rm -f core conftest.err conftest.
$ac_objext \
11904 conftest
$ac_exeext conftest.
$ac_ext
11905 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11906 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11908 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11913 CPPFLAGS
=$save_CPPFLAGS
11915 if test "${found_usable_guile}" = no
; then
11916 if test "${flag_errors}" = yes; then
11917 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11919 as_fn_error $?
"linking guile version ${guile_version} test program failed
11920 See \`config.log' for more details" "$LINENO" 5; }
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11925 $as_echo "${found_usable_guile}" >&6; }
11930 if test "${have_libguile}" != no
; then
11931 case "${with_guile}" in
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11935 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11936 if ${ac_cv_guild_program_name+:} false
; then :
11937 $as_echo_n "(cached) " >&6
11939 ac_cv_guild_program_name
="`"${with_guile}" --variable guild "${guile_version}"`"
11941 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11942 # the 'guild' and 'bindir' variables. In that case, try to guess
11943 # what the program name is, at the risk of getting it wrong if
11944 # Guile was configured with '--program-suffix' or similar.
11945 if test "x$ac_cv_guild_program_name" = "x"; then
11946 guile_exec_prefix
="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
11947 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11952 $as_echo "$ac_cv_guild_program_name" >&6; }
11954 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11955 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11958 GUILD
="$ac_cv_guild_program_name"
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11965 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11966 if ${ac_cv_guild_program_name+:} false
; then :
11967 $as_echo_n "(cached) " >&6
11969 ac_cv_guild_program_name
="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
11971 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11972 # the 'guild' and 'bindir' variables. In that case, try to guess
11973 # what the program name is, at the risk of getting it wrong if
11974 # Guile was configured with '--program-suffix' or similar.
11975 if test "x$ac_cv_guild_program_name" = "x"; then
11976 guile_exec_prefix
="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
11977 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11982 $as_echo "$ac_cv_guild_program_name" >&6; }
11984 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11985 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11988 GUILD
="$ac_cv_guild_program_name"
11995 if test "$cross_compiling" = no
; then
11998 GUILD_TARGET_FLAG
="--target=$host"
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
12005 $as_echo_n "checking whether guild supports this host... " >&6; }
12006 if ${ac_cv_guild_ok+:} false
; then :
12007 $as_echo_n "(cached) " >&6
12009 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
12010 if "$ac_cv_guild_program_name" compile
$GUILD_TARGET_FLAG -o conftest.go
"$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
12017 $as_echo "$ac_cv_guild_ok" >&6; }
12019 if test "$ac_cv_guild_ok" = no
; then
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
12022 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
12026 if test "${have_libguile}" != no
; then
12028 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
12030 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
12031 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
12032 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
12033 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
12034 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
12037 save_CPPFLAGS
="$CPPFLAGS"
12039 CPPFLAGS
="$GUILE_CPPFLAGS"
12040 for ac_func
in scm_new_smob
12042 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
12043 if test "x$ac_cv_func_scm_new_smob" = xyes
; then :
12044 cat >>confdefs.h
<<_ACEOF
12045 #define HAVE_SCM_NEW_SMOB 1
12052 CPPFLAGS
="$save_CPPFLAGS"
12054 # Even if Guile support is not compiled in, we need to have these files
12056 CONFIG_OBS
="$CONFIG_OBS guile/guile.o"
12057 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
12061 if test "${have_libguile}" != no
; then
12063 HAVE_GUILE_FALSE
='#'
12065 HAVE_GUILE_TRUE
='#'
12070 # ---------------------------- #
12071 # Check for source highlight. #
12072 # ---------------------------- #
12077 # Check whether --enable-source-highlight was given.
12078 if test "${enable_source_highlight+set}" = set; then :
12079 enableval
=$enable_source_highlight; case "${enableval}" in
12080 yes) enable_source_highlight
=yes ;;
12081 no
) enable_source_highlight
=no
;;
12082 *) as_fn_error $?
"bad value ${enableval} for source-highlight option" "$LINENO" 5 ;;
12085 enable_source_highlight
=auto
12089 if test "${enable_source_highlight}" != "no"; then
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the source-highlight library" >&5
12091 $as_echo_n "checking for the source-highlight library... " >&6; }
12092 if test "${pkg_config_prog_path}" = "missing"; then
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - pkg-config not found" >&5
12094 $as_echo "no - pkg-config not found" >&6; }
12095 if test "${enable_source_highlight}" = "yes"; then
12096 as_fn_error $?
"pkg-config was not found in your system" "$LINENO" 5
12099 if ${pkg_config_prog_path} --exists source-highlight
; then
12102 as_fn_error $?
"source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5
12106 SRCHIGH_CFLAGS
=`${pkg_config_prog_path} --cflags source-highlight`
12107 SRCHIGH_LIBS
=`${pkg_config_prog_path} --libs source-highlight`
12109 $as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12112 $as_echo "yes" >&6; }
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12115 $as_echo "no" >&6; }
12116 if test "${enable_source_highlight}" = "yes"; then
12117 as_fn_error $?
"source-highlight was not found in your system" "$LINENO" 5
12125 # ------------------------- #
12126 # Checks for header files. #
12127 # ------------------------- #
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12130 $as_echo_n "checking for ANSI C header files... " >&6; }
12131 if ${ac_cv_header_stdc+:} false
; then :
12132 $as_echo_n "(cached) " >&6
12134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12135 /* end confdefs.h. */
12136 #include <stdlib.h>
12137 #include <stdarg.h>
12138 #include <string.h>
12149 if ac_fn_c_try_compile
"$LINENO"; then :
12150 ac_cv_header_stdc
=yes
12152 ac_cv_header_stdc
=no
12154 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12156 if test $ac_cv_header_stdc = yes; then
12157 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12159 /* end confdefs.h. */
12160 #include <string.h>
12163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12164 $EGREP "memchr" >/dev
/null
2>&1; then :
12167 ac_cv_header_stdc
=no
12173 if test $ac_cv_header_stdc = yes; then
12174 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12176 /* end confdefs.h. */
12177 #include <stdlib.h>
12180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12181 $EGREP "free" >/dev
/null
2>&1; then :
12184 ac_cv_header_stdc
=no
12190 if test $ac_cv_header_stdc = yes; then
12191 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12192 if test "$cross_compiling" = yes; then :
12195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12196 /* end confdefs.h. */
12198 #include <stdlib.h>
12199 #if ((' ' & 0x0FF) == 0x020)
12200 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12201 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12203 # define ISLOWER(c) \
12204 (('a' <= (c) && (c) <= 'i') \
12205 || ('j' <= (c) && (c) <= 'r') \
12206 || ('s' <= (c) && (c) <= 'z'))
12207 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12210 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12215 for (i = 0; i < 256; i++)
12216 if (XOR (islower (i), ISLOWER (i))
12217 || toupper (i) != TOUPPER (i))
12222 if ac_fn_c_try_run
"$LINENO"; then :
12225 ac_cv_header_stdc
=no
12227 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12228 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12234 $as_echo "$ac_cv_header_stdc" >&6; }
12235 if test $ac_cv_header_stdc = yes; then
12237 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12241 # elf_hp.h is for HP/UX 64-bit shared library support.
12242 for ac_header
in nlist.h machine
/reg.h \
12244 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
12245 sys
/procctl.h sys
/resource.h sys
/ptrace.h ptrace.h \
12246 sys
/reg.h sys
/debugreg.h \
12249 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12250 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12251 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12252 cat >>confdefs.h
<<_ACEOF
12253 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12260 for ac_header
in sys
/user.h
12262 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
12263 # include <sys/param.h>
12267 if test "x$ac_cv_header_sys_user_h" = xyes
; then :
12268 cat >>confdefs.h
<<_ACEOF
12269 #define HAVE_SYS_USER_H 1
12277 for ac_header
in curses.h cursesX.h ncurses.h ncursesw
/ncurses.h ncurses
/ncurses.h ncurses
/term.h
12279 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12280 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12281 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12282 cat >>confdefs.h
<<_ACEOF
12283 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12290 for ac_header
in term.h
12292 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
12293 # include <curses.h>
12297 if test "x$ac_cv_header_term_h" = xyes
; then :
12298 cat >>confdefs.h
<<_ACEOF
12299 #define HAVE_TERM_H 1
12307 for ac_header
in sys
/socket.h
12309 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
12310 if test "x$ac_cv_header_sys_socket_h" = xyes
; then :
12311 cat >>confdefs.h
<<_ACEOF
12312 #define HAVE_SYS_SOCKET_H 1
12319 for ac_header
in ws2tcpip.h
12321 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
12322 if test "x$ac_cv_header_ws2tcpip_h" = xyes
; then :
12323 cat >>confdefs.h
<<_ACEOF
12324 #define HAVE_WS2TCPIP_H 1
12331 for ac_header
in execinfo.h
12333 ac_fn_c_check_header_mongrel
"$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
12334 if test "x$ac_cv_header_execinfo_h" = xyes
; then :
12335 cat >>confdefs.h
<<_ACEOF
12336 #define HAVE_EXECINFO_H 1
12344 # ------------------------- #
12345 # Checks for declarations. #
12346 # ------------------------- #
12349 # Check for presence and size of long long.
12350 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12351 if test "x$ac_cv_type_long_long" = xyes
; then :
12353 cat >>confdefs.h
<<_ACEOF
12354 #define HAVE_LONG_LONG 1
12357 # The cast to long int works around a bug in the HP C Compiler
12358 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12359 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12360 # This bug is HP SR number 8606223364.
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12362 $as_echo_n "checking size of long long... " >&6; }
12363 if ${ac_cv_sizeof_long_long+:} false
; then :
12364 $as_echo_n "(cached) " >&6
12366 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12369 if test "$ac_cv_type_long_long" = yes; then
12370 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12372 as_fn_error
77 "cannot compute sizeof (long long)
12373 See \`config.log' for more details" "$LINENO" 5; }
12375 ac_cv_sizeof_long_long
=0
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12381 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12385 cat >>confdefs.h
<<_ACEOF
12386 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12393 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
12394 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
12395 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
12401 cat >>confdefs.h
<<_ACEOF
12402 #define HAVE_DECL_BASENAME $ac_have_decl
12404 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
12405 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
12411 cat >>confdefs.h
<<_ACEOF
12412 #define HAVE_DECL_FFS $ac_have_decl
12414 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
12415 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
12421 cat >>confdefs.h
<<_ACEOF
12422 #define HAVE_DECL_ASPRINTF $ac_have_decl
12424 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
12425 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
12431 cat >>confdefs.h
<<_ACEOF
12432 #define HAVE_DECL_VASPRINTF $ac_have_decl
12434 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12435 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12441 cat >>confdefs.h
<<_ACEOF
12442 #define HAVE_DECL_SNPRINTF $ac_have_decl
12444 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12445 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
12451 cat >>confdefs.h
<<_ACEOF
12452 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12455 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
12456 if test "x$ac_cv_have_decl_strtol" = xyes
; then :
12462 cat >>confdefs.h
<<_ACEOF
12463 #define HAVE_DECL_STRTOL $ac_have_decl
12465 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
12466 if test "x$ac_cv_have_decl_strtoul" = xyes
; then :
12472 cat >>confdefs.h
<<_ACEOF
12473 #define HAVE_DECL_STRTOUL $ac_have_decl
12475 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
12476 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
12482 cat >>confdefs.h
<<_ACEOF
12483 #define HAVE_DECL_STRTOLL $ac_have_decl
12485 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
12486 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
12492 cat >>confdefs.h
<<_ACEOF
12493 #define HAVE_DECL_STRTOULL $ac_have_decl
12496 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
12497 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
12503 cat >>confdefs.h
<<_ACEOF
12504 #define HAVE_DECL_STRVERSCMP $ac_have_decl
12509 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12510 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12516 cat >>confdefs.h
<<_ACEOF
12517 #define HAVE_DECL_SNPRINTF $ac_have_decl
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12522 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12523 if ${am_cv_val_LC_MESSAGES+:} false
; then :
12524 $as_echo_n "(cached) " >&6
12526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12527 /* end confdefs.h. */
12528 #include <locale.h>
12537 if ac_fn_c_try_link
"$LINENO"; then :
12538 am_cv_val_LC_MESSAGES
=yes
12540 am_cv_val_LC_MESSAGES
=no
12542 rm -f core conftest.err conftest.
$ac_objext \
12543 conftest
$ac_exeext conftest.
$ac_ext
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12546 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12547 if test $am_cv_val_LC_MESSAGES = yes; then
12549 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12554 # ------------------ #
12555 # Checks for types. #
12556 # ------------------ #
12558 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12559 #if HAVE_SYS_SOCKET_H
12560 # include <sys/socket.h>
12561 #elif HAVE_WS2TCPIP_H
12562 # include <ws2tcpip.h>
12566 if test "x$ac_cv_type_socklen_t" = xyes
; then :
12568 cat >>confdefs.h
<<_ACEOF
12569 #define HAVE_SOCKLEN_T 1
12576 # ------------------------------------- #
12577 # Checks for compiler characteristics. #
12578 # ------------------------------------- #
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12581 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12582 if ${ac_cv_c_const+:} false
; then :
12583 $as_echo_n "(cached) " >&6
12585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12586 /* end confdefs.h. */
12592 #ifndef __cplusplus
12593 /* Ultrix mips cc rejects this sort of thing. */
12594 typedef int charset[2];
12595 const charset cs = { 0, 0 };
12596 /* SunOS 4.1.1 cc rejects this. */
12597 char const *const *pcpcc;
12599 /* NEC SVR4.0.2 mips cc rejects this. */
12600 struct point {int x, y;};
12601 static struct point const zero = {0,0};
12602 /* AIX XL C 1.02.0.0 rejects this.
12603 It does not let you subtract one const X* pointer from another in
12604 an arm of an if-expression whose if-part is not a constant
12606 const char *g = "string";
12607 pcpcc = &g + (g ? g-g : 0);
12608 /* HPUX 7.0 cc rejects these. */
12610 ppc = (char**) pcpcc;
12611 pcpcc = (char const *const *) ppc;
12612 { /* SCO 3.2v4 cc rejects this sort of thing. */
12615 char const *s = 0 ? (char *) 0 : (char const *) 0;
12620 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12621 int x[] = {25, 17};
12622 const int *foo = &x[0];
12625 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12626 typedef const int *iptr;
12630 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12631 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12632 struct s { int j; const int *ap[3]; } bx;
12633 struct s *b = &bx; b->j = 5;
12635 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12636 const int foo = 10;
12637 if (!foo) return 0;
12639 return !cs[0] && !zero.x;
12646 if ac_fn_c_try_compile
"$LINENO"; then :
12651 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12654 $as_echo "$ac_cv_c_const" >&6; }
12655 if test $ac_cv_c_const = no
; then
12657 $as_echo "#define const /**/" >>confdefs.h
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12662 $as_echo_n "checking for inline... " >&6; }
12663 if ${ac_cv_c_inline+:} false
; then :
12664 $as_echo_n "(cached) " >&6
12667 for ac_kw
in inline __inline__ __inline
; do
12668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12669 /* end confdefs.h. */
12670 #ifndef __cplusplus
12672 static $ac_kw foo_t static_foo () {return 0; }
12673 $ac_kw foo_t foo () {return 0; }
12677 if ac_fn_c_try_compile
"$LINENO"; then :
12678 ac_cv_c_inline
=$ac_kw
12680 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12681 test "$ac_cv_c_inline" != no
&& break
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12686 $as_echo "$ac_cv_c_inline" >&6; }
12688 case $ac_cv_c_inline in
12691 case $ac_cv_c_inline in
12693 *) ac_val
=$ac_cv_c_inline;;
12695 cat >>confdefs.h
<<_ACEOF
12696 #ifndef __cplusplus
12697 #define inline $ac_val
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12704 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12705 if ${ac_cv_c_bigendian+:} false
; then :
12706 $as_echo_n "(cached) " >&6
12708 ac_cv_c_bigendian
=unknown
12709 # See if we're dealing with a universal compiler.
12710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12711 /* end confdefs.h. */
12712 #ifndef __APPLE_CC__
12713 not a universal capable compiler
12718 if ac_fn_c_try_compile
"$LINENO"; then :
12720 # Check for potential -arch flags. It is not universal unless
12721 # there are at least two -arch flags with different values.
12724 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12725 if test -n "$ac_prev"; then
12727 i?
86 | x86_64 | ppc | ppc64
)
12728 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
12731 ac_cv_c_bigendian
=universal
12737 elif test "x$ac_word" = "x-arch"; then
12742 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12743 if test $ac_cv_c_bigendian = unknown
; then
12744 # See if sys/param.h defines the BYTE_ORDER macro.
12745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12746 /* end confdefs.h. */
12747 #include <sys/types.h>
12748 #include <sys/param.h>
12753 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12754 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12756 bogus endian macros
12763 if ac_fn_c_try_compile
"$LINENO"; then :
12764 # It does; now see whether it defined to BIG_ENDIAN or not.
12765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12766 /* end confdefs.h. */
12767 #include <sys/types.h>
12768 #include <sys/param.h>
12773 #if BYTE_ORDER != BIG_ENDIAN
12781 if ac_fn_c_try_compile
"$LINENO"; then :
12782 ac_cv_c_bigendian
=yes
12784 ac_cv_c_bigendian
=no
12786 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12788 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12790 if test $ac_cv_c_bigendian = unknown
; then
12791 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12793 /* end confdefs.h. */
12794 #include <limits.h>
12799 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12800 bogus endian macros
12807 if ac_fn_c_try_compile
"$LINENO"; then :
12808 # It does; now see whether it defined to _BIG_ENDIAN or not.
12809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12810 /* end confdefs.h. */
12811 #include <limits.h>
12816 #ifndef _BIG_ENDIAN
12824 if ac_fn_c_try_compile
"$LINENO"; then :
12825 ac_cv_c_bigendian
=yes
12827 ac_cv_c_bigendian
=no
12829 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12833 if test $ac_cv_c_bigendian = unknown
; then
12834 # Compile a test program.
12835 if test "$cross_compiling" = yes; then :
12836 # Try to guess by grepping values from an object file.
12837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12838 /* end confdefs.h. */
12839 short int ascii_mm[] =
12840 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12841 short int ascii_ii[] =
12842 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12843 int use_ascii (int i) {
12844 return ascii_mm[i] + ascii_ii[i];
12846 short int ebcdic_ii[] =
12847 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12848 short int ebcdic_mm[] =
12849 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12850 int use_ebcdic (int i) {
12851 return ebcdic_mm[i] + ebcdic_ii[i];
12858 return use_ascii (foo) == use_ebcdic (foo);
12863 if ac_fn_c_try_compile
"$LINENO"; then :
12864 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12865 ac_cv_c_bigendian
=yes
12867 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12868 if test "$ac_cv_c_bigendian" = unknown
; then
12869 ac_cv_c_bigendian
=no
12871 # finding both strings is unlikely to happen, but who knows?
12872 ac_cv_c_bigendian
=unknown
12876 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12879 /* end confdefs.h. */
12880 $ac_includes_default
12885 /* Are we little or big endian? From Harbison&Steele. */
12889 char c[sizeof (long int)];
12892 return u.c[sizeof (long int) - 1] == 1;
12898 if ac_fn_c_try_run
"$LINENO"; then :
12899 ac_cv_c_bigendian
=no
12901 ac_cv_c_bigendian
=yes
12903 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12904 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12910 $as_echo "$ac_cv_c_bigendian" >&6; }
12911 case $ac_cv_c_bigendian in #(
12913 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12919 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12923 as_fn_error $?
"unknown endianness
12924 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12928 # ------------------------------ #
12929 # Checks for library functions. #
12930 # ------------------------------ #
12932 for ac_func
in getuid getgid \
12933 pipe pread pread64 pwrite resize_term \
12935 sigaction sigsetmask socketpair \
12936 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
12937 setrlimit getrlimit posix_madvise waitpid \
12940 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12941 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12942 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12943 cat >>confdefs.h
<<_ACEOF
12944 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12952 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12953 if ${am_cv_langinfo_codeset+:} false
; then :
12954 $as_echo_n "(cached) " >&6
12956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12957 /* end confdefs.h. */
12958 #include <langinfo.h>
12962 char* cs = nl_langinfo(CODESET);
12967 if ac_fn_c_try_link
"$LINENO"; then :
12968 am_cv_langinfo_codeset
=yes
12970 am_cv_langinfo_codeset
=no
12972 rm -f core conftest.err conftest.
$ac_objext \
12973 conftest
$ac_exeext conftest.
$ac_ext
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12977 $as_echo "$am_cv_langinfo_codeset" >&6; }
12978 if test $am_cv_langinfo_codeset = yes; then
12980 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12984 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12985 if test "x$ac_cv_type_size_t" = xyes
; then :
12989 cat >>confdefs.h
<<_ACEOF
12990 #define size_t unsigned int
12998 for ac_header
in $ac_header_list
13000 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13001 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13003 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13004 cat >>confdefs.h
<<_ACEOF
13005 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13018 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13019 if test "x$ac_cv_type_pid_t" = xyes
; then :
13023 cat >>confdefs.h
<<_ACEOF
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13030 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13031 if ${ac_cv_path_SED+:} false
; then :
13032 $as_echo_n "(cached) " >&6
13034 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
13035 for ac_i
in 1 2 3 4 5 6 7; do
13036 ac_script
="$ac_script$as_nl$ac_script"
13038 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
13039 { ac_script
=; unset ac_script
;}
13040 if test -z "$SED"; then
13041 ac_path_SED_found
=false
13042 # Loop through the user's path and test for each of PROGNAME-LIST
13043 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13044 for as_dir
in $PATH
13047 test -z "$as_dir" && as_dir
=.
13048 for ac_prog
in sed gsed
; do
13049 for ac_exec_ext
in '' $ac_executable_extensions; do
13050 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
13051 as_fn_executable_p
"$ac_path_SED" ||
continue
13052 # Check for GNU ac_path_SED and select it if it is found.
13053 # Check for GNU $ac_path_SED
13054 case `"$ac_path_SED" --version 2>&1` in
13056 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
13059 $as_echo_n 0123456789 >"conftest.in"
13062 cat "conftest.in" "conftest.in" >"conftest.tmp"
13063 mv "conftest.tmp" "conftest.in"
13064 cp "conftest.in" "conftest.nl"
13065 $as_echo '' >> "conftest.nl"
13066 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13067 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13068 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13069 if test $ac_count -gt ${ac_path_SED_max-0}; then
13070 # Best one so far, save it but keep looking for a better one
13071 ac_cv_path_SED
="$ac_path_SED"
13072 ac_path_SED_max
=$ac_count
13074 # 10*(2^10) chars as input seems more than enough
13075 test $ac_count -gt 10 && break
13077 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13080 $ac_path_SED_found && break 3
13085 if test -z "$ac_cv_path_SED"; then
13086 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
13089 ac_cv_path_SED
=$SED
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13094 $as_echo "$ac_cv_path_SED" >&6; }
13095 SED
="$ac_cv_path_SED"
13099 # Set the 'development' global.
13100 .
$srcdir/..
/bfd
/development.sh
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13103 $as_echo_n "checking for ANSI C header files... " >&6; }
13104 if ${ac_cv_header_stdc+:} false
; then :
13105 $as_echo_n "(cached) " >&6
13107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13108 /* end confdefs.h. */
13109 #include <stdlib.h>
13110 #include <stdarg.h>
13111 #include <string.h>
13122 if ac_fn_c_try_compile
"$LINENO"; then :
13123 ac_cv_header_stdc
=yes
13125 ac_cv_header_stdc
=no
13127 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13129 if test $ac_cv_header_stdc = yes; then
13130 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13132 /* end confdefs.h. */
13133 #include <string.h>
13136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13137 $EGREP "memchr" >/dev
/null
2>&1; then :
13140 ac_cv_header_stdc
=no
13146 if test $ac_cv_header_stdc = yes; then
13147 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13149 /* end confdefs.h. */
13150 #include <stdlib.h>
13153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13154 $EGREP "free" >/dev
/null
2>&1; then :
13157 ac_cv_header_stdc
=no
13163 if test $ac_cv_header_stdc = yes; then
13164 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13165 if test "$cross_compiling" = yes; then :
13168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13169 /* end confdefs.h. */
13171 #include <stdlib.h>
13172 #if ((' ' & 0x0FF) == 0x020)
13173 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13174 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13176 # define ISLOWER(c) \
13177 (('a' <= (c) && (c) <= 'i') \
13178 || ('j' <= (c) && (c) <= 'r') \
13179 || ('s' <= (c) && (c) <= 'z'))
13180 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13183 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13188 for (i = 0; i < 256; i++)
13189 if (XOR (islower (i), ISLOWER (i))
13190 || toupper (i) != TOUPPER (i))
13195 if ac_fn_c_try_run
"$LINENO"; then :
13198 ac_cv_header_stdc
=no
13200 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13201 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13207 $as_echo "$ac_cv_header_stdc" >&6; }
13208 if test $ac_cv_header_stdc = yes; then
13210 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13214 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13215 # for constant arguments. Useless!
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13217 $as_echo_n "checking for working alloca.h... " >&6; }
13218 if ${ac_cv_working_alloca_h+:} false
; then :
13219 $as_echo_n "(cached) " >&6
13221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13222 /* end confdefs.h. */
13223 #include <alloca.h>
13227 char *p = (char *) alloca (2 * sizeof (int));
13233 if ac_fn_c_try_link
"$LINENO"; then :
13234 ac_cv_working_alloca_h
=yes
13236 ac_cv_working_alloca_h
=no
13238 rm -f core conftest.err conftest.
$ac_objext \
13239 conftest
$ac_exeext conftest.
$ac_ext
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13242 $as_echo "$ac_cv_working_alloca_h" >&6; }
13243 if test $ac_cv_working_alloca_h = yes; then
13245 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13250 $as_echo_n "checking for alloca... " >&6; }
13251 if ${ac_cv_func_alloca_works+:} false
; then :
13252 $as_echo_n "(cached) " >&6
13254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13255 /* end confdefs.h. */
13257 # define alloca __builtin_alloca
13260 # include <malloc.h>
13261 # define alloca _alloca
13263 # ifdef HAVE_ALLOCA_H
13264 # include <alloca.h>
13269 # ifndef alloca /* predefined by HP cc +Olibcalls */
13270 void *alloca (size_t);
13280 char *p = (char *) alloca (1);
13286 if ac_fn_c_try_link
"$LINENO"; then :
13287 ac_cv_func_alloca_works
=yes
13289 ac_cv_func_alloca_works
=no
13291 rm -f core conftest.err conftest.
$ac_objext \
13292 conftest
$ac_exeext conftest.
$ac_ext
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13295 $as_echo "$ac_cv_func_alloca_works" >&6; }
13297 if test $ac_cv_func_alloca_works = yes; then
13299 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13302 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13303 # that cause trouble. Some versions do not even contain alloca or
13304 # contain a buggy version. If you still want to use their alloca,
13305 # use ar to extract alloca.o from them instead of compiling alloca.c.
13307 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
13309 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13313 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13314 if ${ac_cv_os_cray+:} false
; then :
13315 $as_echo_n "(cached) " >&6
13317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13318 /* end confdefs.h. */
13319 #if defined CRAY && ! defined CRAY2
13326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13327 $EGREP "webecray" >/dev
/null
2>&1; then :
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13336 $as_echo "$ac_cv_os_cray" >&6; }
13337 if test $ac_cv_os_cray = yes; then
13338 for ac_func
in _getb67 GETB67 getb67
; do
13339 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13340 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13341 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13343 cat >>confdefs.h
<<_ACEOF
13344 #define CRAY_STACKSEG_END $ac_func
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13354 $as_echo_n "checking stack direction for C alloca... " >&6; }
13355 if ${ac_cv_c_stack_direction+:} false
; then :
13356 $as_echo_n "(cached) " >&6
13358 if test "$cross_compiling" = yes; then :
13359 ac_cv_c_stack_direction
=0
13361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13362 /* end confdefs.h. */
13363 $ac_includes_default
13365 find_stack_direction (int *addr, int depth)
13367 int dir, dummy = 0;
13370 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13371 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13372 return dir + dummy;
13376 main (int argc, char **argv)
13378 return find_stack_direction (0, argc + !argv + 20) < 0;
13381 if ac_fn_c_try_run
"$LINENO"; then :
13382 ac_cv_c_stack_direction
=1
13384 ac_cv_c_stack_direction
=-1
13386 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13387 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13392 $as_echo "$ac_cv_c_stack_direction" >&6; }
13393 cat >>confdefs.h
<<_ACEOF
13394 #define STACK_DIRECTION $ac_cv_c_stack_direction
13405 $as_echo "#define USE_WIN32API 1" >>confdefs.h
13407 WIN32APILIBS
="-lws2_32"
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13413 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13414 if ${am_cv_langinfo_codeset+:} false
; then :
13415 $as_echo_n "(cached) " >&6
13417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13418 /* end confdefs.h. */
13419 #include <langinfo.h>
13423 char* cs = nl_langinfo(CODESET);
13428 if ac_fn_c_try_link
"$LINENO"; then :
13429 am_cv_langinfo_codeset
=yes
13431 am_cv_langinfo_codeset
=no
13433 rm -f core conftest.err conftest.
$ac_objext \
13434 conftest
$ac_exeext conftest.
$ac_ext
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13438 $as_echo "$am_cv_langinfo_codeset" >&6; }
13439 if test $am_cv_langinfo_codeset = yes; then
13441 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13446 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
13448 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13449 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13450 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13451 cat >>confdefs.h
<<_ACEOF
13452 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13461 for ac_func
in getpagesize
13463 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13464 if test "x$ac_cv_func_getpagesize" = xyes
; then :
13465 cat >>confdefs.h
<<_ACEOF
13466 #define HAVE_GETPAGESIZE 1
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13473 $as_echo_n "checking for working mmap... " >&6; }
13474 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
13475 $as_echo_n "(cached) " >&6
13477 if test "$cross_compiling" = yes; then :
13478 ac_cv_func_mmap_fixed_mapped
=no
13480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13481 /* end confdefs.h. */
13482 $ac_includes_default
13483 /* malloc might have been renamed as rpl_malloc. */
13486 /* Thanks to Mike Haertel and Jim Avera for this test.
13487 Here is a matrix of mmap possibilities:
13488 mmap private not fixed
13489 mmap private fixed at somewhere currently unmapped
13490 mmap private fixed at somewhere already mapped
13491 mmap shared not fixed
13492 mmap shared fixed at somewhere currently unmapped
13493 mmap shared fixed at somewhere already mapped
13494 For private mappings, we should verify that changes cannot be read()
13495 back from the file, nor mmap's back from the file at a different
13496 address. (There have been systems where private was not correctly
13497 implemented like the infamous i386 svr4.0, and systems where the
13498 VM page cache was not coherent with the file system buffer cache
13499 like early versions of FreeBSD and possibly contemporary NetBSD.)
13500 For shared mappings, we should conversely verify that changes get
13501 propagated back to all the places they're supposed to be.
13503 Grep wants private fixed already mapped.
13504 The main things grep needs to know about mmap are:
13505 * does it exist and is it safe to write into the mmap'd area
13506 * how to use it (BSD variants) */
13509 #include <sys/mman.h>
13511 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13515 /* This mess was copied from the GNU getpagesize.h. */
13516 #ifndef HAVE_GETPAGESIZE
13517 # ifdef _SC_PAGESIZE
13518 # define getpagesize() sysconf(_SC_PAGESIZE)
13519 # else /* no _SC_PAGESIZE */
13520 # ifdef HAVE_SYS_PARAM_H
13521 # include <sys/param.h>
13522 # ifdef EXEC_PAGESIZE
13523 # define getpagesize() EXEC_PAGESIZE
13524 # else /* no EXEC_PAGESIZE */
13526 # define getpagesize() NBPG * CLSIZE
13529 # endif /* no CLSIZE */
13530 # else /* no NBPG */
13532 # define getpagesize() NBPC
13533 # else /* no NBPC */
13535 # define getpagesize() PAGESIZE
13536 # endif /* PAGESIZE */
13537 # endif /* no NBPC */
13538 # endif /* no NBPG */
13539 # endif /* no EXEC_PAGESIZE */
13540 # else /* no HAVE_SYS_PARAM_H */
13541 # define getpagesize() 8192 /* punt totally */
13542 # endif /* no HAVE_SYS_PARAM_H */
13543 # endif /* no _SC_PAGESIZE */
13545 #endif /* no HAVE_GETPAGESIZE */
13550 char *data, *data2, *data3;
13551 const char *cdata2;
13555 pagesize = getpagesize ();
13557 /* First, make a file with some known garbage in it. */
13558 data = (char *) malloc (pagesize);
13561 for (i = 0; i < pagesize; ++i)
13562 *(data + i) = rand ();
13564 fd = creat ("conftest.mmap", 0600);
13567 if (write (fd, data, pagesize) != pagesize)
13571 /* Next, check that the tail of a page is zero-filled. File must have
13572 non-zero length, otherwise we risk SIGBUS for entire page. */
13573 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13577 if (write (fd2, cdata2, 1) != 1)
13579 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13580 if (data2 == MAP_FAILED)
13582 for (i = 0; i < pagesize; ++i)
13586 if (munmap (data2, pagesize))
13589 /* Next, try to mmap the file at a fixed address which already has
13590 something else allocated at it. If we can, also make sure that
13591 we see the same garbage. */
13592 fd = open ("conftest.mmap", O_RDWR);
13595 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13596 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13598 for (i = 0; i < pagesize; ++i)
13599 if (*(data + i) != *(data2 + i))
13602 /* Finally, make sure that changes to the mapped area do not
13603 percolate back to the file as seen by read(). (This is a bug on
13604 some variants of i386 svr4.0.) */
13605 for (i = 0; i < pagesize; ++i)
13606 *(data2 + i) = *(data2 + i) + 1;
13607 data3 = (char *) malloc (pagesize);
13610 if (read (fd, data3, pagesize) != pagesize)
13612 for (i = 0; i < pagesize; ++i)
13613 if (*(data + i) != *(data3 + i))
13619 if ac_fn_c_try_run
"$LINENO"; then :
13620 ac_cv_func_mmap_fixed_mapped
=yes
13622 ac_cv_func_mmap_fixed_mapped
=no
13624 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13625 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13630 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13631 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13633 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13636 rm -f conftest.mmap conftest.txt
13638 for ac_header
in vfork.h
13640 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13641 if test "x$ac_cv_header_vfork_h" = xyes
; then :
13642 cat >>confdefs.h
<<_ACEOF
13643 #define HAVE_VFORK_H 1
13650 for ac_func
in fork vfork
13652 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13653 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13654 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13655 cat >>confdefs.h
<<_ACEOF
13656 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13662 if test "x$ac_cv_func_fork" = xyes
; then
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13664 $as_echo_n "checking for working fork... " >&6; }
13665 if ${ac_cv_func_fork_works+:} false
; then :
13666 $as_echo_n "(cached) " >&6
13668 if test "$cross_compiling" = yes; then :
13669 ac_cv_func_fork_works
=cross
13671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13672 /* end confdefs.h. */
13673 $ac_includes_default
13678 /* By Ruediger Kuhlmann. */
13679 return fork () < 0;
13685 if ac_fn_c_try_run
"$LINENO"; then :
13686 ac_cv_func_fork_works
=yes
13688 ac_cv_func_fork_works
=no
13690 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13691 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13696 $as_echo "$ac_cv_func_fork_works" >&6; }
13699 ac_cv_func_fork_works
=$ac_cv_func_fork
13701 if test "x$ac_cv_func_fork_works" = xcross
; then
13703 *-*-amigaos* |
*-*-msdosdjgpp*)
13704 # Override, as these systems have only a dummy fork() stub
13705 ac_cv_func_fork_works
=no
13708 ac_cv_func_fork_works
=yes
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13712 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13714 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13715 if test "x$ac_cv_func_vfork" = xyes
; then
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13717 $as_echo_n "checking for working vfork... " >&6; }
13718 if ${ac_cv_func_vfork_works+:} false
; then :
13719 $as_echo_n "(cached) " >&6
13721 if test "$cross_compiling" = yes; then :
13722 ac_cv_func_vfork_works
=cross
13724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13725 /* end confdefs.h. */
13726 /* Thanks to Paul Eggert for this test. */
13727 $ac_includes_default
13728 #include <sys/wait.h>
13729 #ifdef HAVE_VFORK_H
13730 # include <vfork.h>
13732 /* On some sparc systems, changes by the child to local and incoming
13733 argument registers are propagated back to the parent. The compiler
13734 is told about this with #include <vfork.h>, but some compilers
13735 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13736 static variable whose address is put into a register that is
13737 clobbered by the vfork. */
13740 sparc_address_test (int arg)
13742 sparc_address_test (arg) int arg;
13745 static pid_t child;
13763 pid_t parent = getpid ();
13766 sparc_address_test (0);
13771 /* Here is another test for sparc vfork register problems. This
13772 test uses lots of local variables, at least as many local
13773 variables as main has allocated so far including compiler
13774 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13775 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13776 reuse the register of parent for one of the local variables,
13777 since it will think that parent can't possibly be used any more
13778 in this routine. Assigning to the local variable will thus
13779 munge parent in the parent process. */
13781 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13782 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13783 /* Convince the compiler that p..p7 are live; otherwise, it might
13784 use the same hardware register for all 8 local variables. */
13785 if (p != p1 || p != p2 || p != p3 || p != p4
13786 || p != p5 || p != p6 || p != p7)
13789 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13790 from child file descriptors. If the child closes a descriptor
13791 before it execs or exits, this munges the parent's descriptor
13792 as well. Test for this by closing stdout in the child. */
13793 _exit(close(fileno(stdout)) != 0);
13798 while (wait(&status) != child)
13801 /* Was there some problem with vforking? */
13804 /* Did the child fail? (This shouldn't happen.) */
13807 /* Did the vfork/compiler bug occur? */
13808 || parent != getpid()
13810 /* Did the file descriptor bug occur? */
13811 || fstat(fileno(stdout), &st) != 0
13816 if ac_fn_c_try_run
"$LINENO"; then :
13817 ac_cv_func_vfork_works
=yes
13819 ac_cv_func_vfork_works
=no
13821 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13822 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13827 $as_echo "$ac_cv_func_vfork_works" >&6; }
13830 if test "x$ac_cv_func_fork_works" = xcross
; then
13831 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13833 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13836 if test "x$ac_cv_func_vfork_works" = xyes
; then
13838 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13842 $as_echo "#define vfork fork" >>confdefs.h
13845 if test "x$ac_cv_func_fork_works" = xyes
; then
13847 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13851 for ac_func
in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
13852 ptrace64 sbrk setns sigaltstack sigprocmask \
13853 setpgid setpgrp getrusage getauxval sigtimedwait
13855 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13856 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13857 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13858 cat >>confdefs.h
<<_ACEOF
13859 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13866 # This is needed for RHEL 5 and uclibc-ng < 1.0.39.
13867 # These did not define ADDR_NO_RANDOMIZE in sys/personality.h,
13868 # only in linux/personality.h.
13869 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
13871 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
13877 cat >>confdefs.h
<<_ACEOF
13878 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
13882 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13883 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
13889 cat >>confdefs.h
<<_ACEOF
13890 #define HAVE_DECL_STRSTR $ac_have_decl
13894 # ----------------------- #
13895 # Checks for structures. #
13896 # ----------------------- #
13898 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13899 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
13901 cat >>confdefs.h
<<_ACEOF
13902 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13907 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
13908 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
13910 cat >>confdefs.h
<<_ACEOF
13911 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13918 # On FreeBSD we need libutil for the kinfo_get* functions. On
13919 # GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
13920 # Figure out which one to use.
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
13922 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
13923 if ${ac_cv_search_kinfo_getfile+:} false
; then :
13924 $as_echo_n "(cached) " >&6
13926 ac_func_search_save_LIBS
=$LIBS
13927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13928 /* end confdefs.h. */
13930 /* Override any GCC internal prototype to avoid an error.
13931 Use char because int might match the return type of a GCC
13932 builtin and then its argument prototype would still apply. */
13936 char kinfo_getfile ();
13940 return kinfo_getfile ();
13945 for ac_lib
in '' util util-freebsd
; do
13946 if test -z "$ac_lib"; then
13947 ac_res
="none required"
13950 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13952 if ac_fn_c_try_link
"$LINENO"; then :
13953 ac_cv_search_kinfo_getfile
=$ac_res
13955 rm -f core conftest.err conftest.
$ac_objext \
13957 if ${ac_cv_search_kinfo_getfile+:} false
; then :
13961 if ${ac_cv_search_kinfo_getfile+:} false
; then :
13964 ac_cv_search_kinfo_getfile
=no
13966 rm conftest.
$ac_ext
13967 LIBS
=$ac_func_search_save_LIBS
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
13970 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
13971 ac_res
=$ac_cv_search_kinfo_getfile
13972 if test "$ac_res" != no
; then :
13973 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13978 # Define HAVE_KINFO_GETFILE if kinfo_getfile is available.
13979 for ac_func
in kinfo_getfile
13981 ac_fn_c_check_func
"$LINENO" "kinfo_getfile" "ac_cv_func_kinfo_getfile"
13982 if test "x$ac_cv_func_kinfo_getfile" = xyes
; then :
13983 cat >>confdefs.h
<<_ACEOF
13984 #define HAVE_KINFO_GETFILE 1
13991 # Check for std::thread. This does not work on some platforms, like
13994 ac_cpp
='$CXXCPP $CPPFLAGS'
13995 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13996 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13997 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
14004 ac_cpp
='$CPP $CPPFLAGS'
14005 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14006 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14007 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14011 # We used to check for pthread.h first, but this fails if pthread.h
14012 # requires special compiler flags (e.g. on Tru64 or Sequent).
14013 # It gets checked for in the link test anyway.
14015 # First of all, check if the user has set any of the PTHREAD_LIBS,
14016 # etcetera environment variables, and if threads linking works using
14018 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
14019 ax_pthread_save_CC
="$CC"
14020 ax_pthread_save_CFLAGS
="$CFLAGS"
14021 ax_pthread_save_LIBS
="$LIBS"
14022 if test "x$PTHREAD_CC" != "x"; then :
14025 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
14026 LIBS
="$PTHREAD_LIBS $LIBS"
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
14028 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
14029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14030 /* end confdefs.h. */
14032 /* Override any GCC internal prototype to avoid an error.
14033 Use char because int might match the return type of a GCC
14034 builtin and then its argument prototype would still apply. */
14038 char pthread_join ();
14042 return pthread_join ();
14047 if ac_fn_c_try_link
"$LINENO"; then :
14050 rm -f core conftest.err conftest.
$ac_objext \
14051 conftest
$ac_exeext conftest.
$ac_ext
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14053 $as_echo "$ax_pthread_ok" >&6; }
14054 if test "x$ax_pthread_ok" = "xno"; then
14058 CC
="$ax_pthread_save_CC"
14059 CFLAGS
="$ax_pthread_save_CFLAGS"
14060 LIBS
="$ax_pthread_save_LIBS"
14063 # We must check for the threads library under a number of different
14064 # names; the ordering is very important because some systems
14065 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14066 # libraries is broken (non-POSIX).
14068 # Create a list of thread flags to try. Items starting with a "-" are
14069 # C compiler flags, and other items are library names, except for "none"
14070 # which indicates that we try without any flags at all, and "pthread-config"
14071 # which is a program returning the flags for the Pth emulation library.
14073 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14075 # The ordering *is* (sometimes) important. Some notes on the
14076 # individual items follow:
14078 # pthreads: AIX (must check this before -lpthread)
14079 # none: in case threads are in libc; should be tried before -Kthread and
14080 # other compiler flags to prevent continual compiler warnings
14081 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14082 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
14083 # (Note: HP C rejects this with "bad form for `-t' option")
14084 # -pthreads: Solaris/gcc (Note: HP C also rejects)
14085 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14086 # doesn't hurt to check since this sometimes defines pthreads and
14087 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
14088 # is present but should not be used directly; and before -mthreads,
14089 # because the compiler interprets this as "-mt" + "-hreads")
14090 # -mthreads: Mingw32/gcc, Lynx/gcc
14091 # pthread: Linux, etcetera
14092 # --thread-safe: KAI C++
14093 # pthread-config: use pthread-config program (for GNU Pth library)
14099 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14100 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14102 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
14107 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
14108 # multi-threading and also sets -lpthread."
14110 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
14115 # IBM z/OS requires a feature-test macro to be defined in order to
14116 # enable POSIX threads at all, so give the user a hint if this is
14117 # not set. (We don't define these ourselves, as they can affect
14118 # other portions of the system API in unpredictable ways.)
14120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14121 /* end confdefs.h. */
14123 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
14124 AX_PTHREAD_ZOS_MISSING
14128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14129 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
14131 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
14139 # On Solaris (at least, for some versions), libc contains stubbed
14140 # (non-functional) versions of the pthreads routines, so link-based
14141 # tests will erroneously succeed. (N.B.: The stubs are missing
14142 # pthread_cleanup_push, or rather a function called by this macro,
14143 # so we could check for that, but who knows whether they'll stub
14144 # that too in a future libc.) So we'll check first for the
14145 # standard Solaris way of linking pthreads (-mt -lpthread).
14147 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
14151 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
14153 if test "x$GCC" = "xyes"; then :
14154 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
14157 # The presence of a feature test macro requesting re-entrant function
14158 # definitions is, on some systems, a strong hint that pthreads support is
14159 # correctly enabled
14162 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
14163 ax_pthread_check_macro
="_REENTRANT"
14167 ax_pthread_check_macro
="_THREAD_SAFE"
14171 ax_pthread_check_macro
="--"
14174 if test "x$ax_pthread_check_macro" = "x--"; then :
14175 ax_pthread_check_cond
=0
14177 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
14180 # Are we compiling with Clang?
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
14183 $as_echo_n "checking whether $CC is Clang... " >&6; }
14184 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
14185 $as_echo_n "(cached) " >&6
14187 ax_cv_PTHREAD_CLANG
=no
14188 # Note that Autoconf sets GCC=yes for Clang as well as GCC
14189 if test "x$GCC" = "xyes"; then
14190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14191 /* end confdefs.h. */
14192 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
14193 # if defined(__clang__) && defined(__llvm__)
14194 AX_PTHREAD_CC_IS_CLANG
14198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14199 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
14200 ax_cv_PTHREAD_CLANG
=yes
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
14208 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
14209 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
14211 ax_pthread_clang_warning
=no
14213 # Clang needs special handling, because older versions handle the -pthread
14214 # option in a rather... idiosyncratic way
14216 if test "x$ax_pthread_clang" = "xyes"; then
14218 # Clang takes -pthread; it has never supported any other flag
14220 # (Note 1: This will need to be revisited if a system that Clang
14221 # supports has POSIX threads in a separate library. This tends not
14222 # to be the way of modern systems, but it's conceivable.)
14224 # (Note 2: On some systems, notably Darwin, -pthread is not needed
14225 # to get POSIX threads support; the API is always present and
14226 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
14227 # -pthread does define _REENTRANT, and while the Darwin headers
14228 # ignore this macro, third-party headers might not.)
14230 PTHREAD_CFLAGS
="-pthread"
14235 # However, older versions of Clang make a point of warning the user
14236 # that, in an invocation where only linking and no compilation is
14237 # taking place, the -pthread option has no effect ("argument unused
14238 # during compilation"). They expect -pthread to be passed in only
14239 # when source code is being compiled.
14241 # Problem is, this is at odds with the way Automake and most other
14242 # C build frameworks function, which is that the same flags used in
14243 # compilation (CFLAGS) are also used in linking. Many systems
14244 # supported by AX_PTHREAD require exactly this for POSIX threads
14245 # support, and in fact it is often not straightforward to specify a
14246 # flag that is used only in the compilation phase and not in
14247 # linking. Such a scenario is extremely rare in practice.
14249 # Even though use of the -pthread flag in linking would only print
14250 # a warning, this can be a nuisance for well-run software projects
14251 # that build with -Werror. So if the active version of Clang has
14252 # this misfeature, we search for an option to squash it.
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
14255 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
14256 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
14257 $as_echo_n "(cached) " >&6
14259 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
14260 # Create an alternate version of $ac_link that compiles and
14261 # links in two steps (.c -> .o, .o -> exe) instead of one
14262 # (.c -> exe), because the warning occurs only in the second
14264 ax_pthread_save_ac_link
="$ac_link"
14265 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
14266 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
14267 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
14268 ax_pthread_save_CFLAGS
="$CFLAGS"
14269 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
14270 if test "x$ax_pthread_try" = "xunknown"; then :
14273 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
14274 ac_link
="$ax_pthread_save_ac_link"
14275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14276 /* end confdefs.h. */
14277 int main(void){return 0;}
14279 if ac_fn_c_try_link
"$LINENO"; then :
14280 ac_link
="$ax_pthread_2step_ac_link"
14281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14282 /* end confdefs.h. */
14283 int main(void){return 0;}
14285 if ac_fn_c_try_link
"$LINENO"; then :
14288 rm -f core conftest.err conftest.
$ac_objext \
14289 conftest
$ac_exeext conftest.
$ac_ext
14292 rm -f core conftest.err conftest.
$ac_objext \
14293 conftest
$ac_exeext conftest.
$ac_ext
14295 ac_link
="$ax_pthread_save_ac_link"
14296 CFLAGS
="$ax_pthread_save_CFLAGS"
14297 if test "x$ax_pthread_try" = "x"; then :
14300 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
14304 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
14306 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
14308 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
14311 fi # $ax_pthread_clang = yes
14313 if test "x$ax_pthread_ok" = "xno"; then
14314 for ax_pthread_try_flag
in $ax_pthread_flags; do
14316 case $ax_pthread_try_flag in
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14319 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
14324 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
14325 PTHREAD_CFLAGS
="-mt"
14326 PTHREAD_LIBS
="-lpthread"
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
14331 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
14332 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
14336 # Extract the first word of "pthread-config", so it can be a program name with args.
14337 set dummy pthread-config
; ac_word
=$2
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14339 $as_echo_n "checking for $ac_word... " >&6; }
14340 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
14341 $as_echo_n "(cached) " >&6
14343 if test -n "$ax_pthread_config"; then
14344 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
14346 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14347 for as_dir
in $PATH
14350 test -z "$as_dir" && as_dir
=.
14351 for ac_exec_ext
in '' $ac_executable_extensions; do
14352 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14353 ac_cv_prog_ax_pthread_config
="yes"
14354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14361 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
14364 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
14365 if test -n "$ax_pthread_config"; then
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
14367 $as_echo "$ax_pthread_config" >&6; }
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14370 $as_echo "no" >&6; }
14374 if test "x$ax_pthread_config" = "xno"; then :
14377 PTHREAD_CFLAGS
="`pthread-config --cflags`"
14378 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
14383 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
14384 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
14388 ax_pthread_save_CFLAGS
="$CFLAGS"
14389 ax_pthread_save_LIBS
="$LIBS"
14390 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
14391 LIBS
="$PTHREAD_LIBS $LIBS"
14393 # Check for various functions. We must include pthread.h,
14394 # since some functions may be macros. (On the Sequent, we
14395 # need a special flag -Kthread to make this header compile.)
14396 # We check for pthread_join because it is in -lpthread on IRIX
14397 # while pthread_create is in libc. We check for pthread_attr_init
14398 # due to DEC craziness with -lpthreads. We check for
14399 # pthread_cleanup_push because it is one of the few pthread
14400 # functions on Solaris that doesn't have a non-functional libc stub.
14401 # We try pthread_create on general principles.
14403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14404 /* end confdefs.h. */
14405 #include <pthread.h>
14406 # if $ax_pthread_check_cond
14407 # error "$ax_pthread_check_macro must be defined"
14409 static void routine(void *a) { a = 0; }
14410 static void *start_routine(void *a) { return a; }
14414 pthread_t th; pthread_attr_t attr;
14415 pthread_create(&th, 0, start_routine, 0);
14416 pthread_join(th, 0);
14417 pthread_attr_init(&attr);
14418 pthread_cleanup_push(routine, 0);
14419 pthread_cleanup_pop(0) /* ; */
14424 if ac_fn_c_try_link
"$LINENO"; then :
14427 rm -f core conftest.err conftest.
$ac_objext \
14428 conftest
$ac_exeext conftest.
$ac_ext
14430 CFLAGS
="$ax_pthread_save_CFLAGS"
14431 LIBS
="$ax_pthread_save_LIBS"
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14434 $as_echo "$ax_pthread_ok" >&6; }
14435 if test "x$ax_pthread_ok" = "xyes"; then :
14444 # Various other checks:
14445 if test "x$ax_pthread_ok" = "xyes"; then
14446 ax_pthread_save_CFLAGS
="$CFLAGS"
14447 ax_pthread_save_LIBS
="$LIBS"
14448 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
14449 LIBS
="$PTHREAD_LIBS $LIBS"
14451 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14453 $as_echo_n "checking for joinable pthread attribute... " >&6; }
14454 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
14455 $as_echo_n "(cached) " >&6
14457 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
14458 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
14459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14460 /* end confdefs.h. */
14461 #include <pthread.h>
14465 int attr = $ax_pthread_attr; return attr /* ; */
14470 if ac_fn_c_try_link
"$LINENO"; then :
14471 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
14473 rm -f core conftest.err conftest.
$ac_objext \
14474 conftest
$ac_exeext conftest.
$ac_ext
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
14479 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
14480 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
14481 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
14482 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
14484 cat >>confdefs.h
<<_ACEOF
14485 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
14488 ax_pthread_joinable_attr_defined
=yes
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
14493 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
14494 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
14495 $as_echo_n "(cached) " >&6
14497 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
14500 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
14506 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
14507 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
14508 test "x$ax_pthread_special_flags_added" != "xyes"; then :
14509 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
14510 ax_pthread_special_flags_added
=yes
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
14514 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
14515 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
14516 $as_echo_n "(cached) " >&6
14518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14519 /* end confdefs.h. */
14520 #include <pthread.h>
14524 int i = PTHREAD_PRIO_INHERIT;
14529 if ac_fn_c_try_link
"$LINENO"; then :
14530 ax_cv_PTHREAD_PRIO_INHERIT
=yes
14532 ax_cv_PTHREAD_PRIO_INHERIT
=no
14534 rm -f core conftest.err conftest.
$ac_objext \
14535 conftest
$ac_exeext conftest.
$ac_ext
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
14539 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
14540 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
14541 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
14543 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
14545 ax_pthread_prio_inherit_defined
=yes
14549 CFLAGS
="$ax_pthread_save_CFLAGS"
14550 LIBS
="$ax_pthread_save_LIBS"
14552 # More AIX lossage: compile with *_r variant
14553 if test "x$GCC" != "xyes"; then
14557 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
14558 #handle absolute path differently from PATH based program lookup
14561 if as_fn_executable_p
${CC}_r
; then :
14562 PTHREAD_CC
="${CC}_r"
14565 for ac_prog
in ${CC}_r
14567 # Extract the first word of "$ac_prog", so it can be a program name with args.
14568 set dummy
$ac_prog; ac_word
=$2
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14570 $as_echo_n "checking for $ac_word... " >&6; }
14571 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
14572 $as_echo_n "(cached) " >&6
14574 if test -n "$PTHREAD_CC"; then
14575 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
14577 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14578 for as_dir
in $PATH
14581 test -z "$as_dir" && as_dir
=.
14582 for ac_exec_ext
in '' $ac_executable_extensions; do
14583 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14584 ac_cv_prog_PTHREAD_CC
="$ac_prog"
14585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14594 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
14595 if test -n "$PTHREAD_CC"; then
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14597 $as_echo "$PTHREAD_CC" >&6; }
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14600 $as_echo "no" >&6; }
14604 test -n "$PTHREAD_CC" && break
14606 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
14617 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
14623 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14624 if test "x$ax_pthread_ok" = "xyes"; then
14632 ac_cpp
='$CXXCPP $CPPFLAGS'
14633 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14634 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14635 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
14638 if test "$threads" = "yes"; then
14640 LIBS
="$PTHREAD_LIBS $LIBS"
14641 save_CXXFLAGS
="$CXXFLAGS"
14642 CXXFLAGS
="$PTHREAD_CFLAGS $save_CXXFLAGS"
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
14644 $as_echo_n "checking for std::thread... " >&6; }
14645 if ${gdb_cv_cxx_std_thread+:} false
; then :
14646 $as_echo_n "(cached) " >&6
14648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14649 /* end confdefs.h. */
14651 void callback() { }
14655 std::thread t(callback);
14660 if ac_fn_cxx_try_compile
"$LINENO"; then :
14661 gdb_cv_cxx_std_thread
=yes
14663 gdb_cv_cxx_std_thread
=no
14665 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
14668 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
14670 # This check must be here, while LIBS includes any necessary
14671 # threading library.
14672 for ac_func
in pthread_sigmask pthread_setname_np
14674 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14675 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14676 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14677 cat >>confdefs.h
<<_ACEOF
14678 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14686 CXXFLAGS
="$save_CXXFLAGS"
14688 if test "$gdb_cv_cxx_std_thread" = "yes"; then
14690 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
14694 ac_cpp
='$CPP $CPPFLAGS'
14695 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14696 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14697 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
14701 $as_echo_n "checking for sigsetjmp... " >&6; }
14702 if ${gdb_cv_func_sigsetjmp+:} false
; then :
14703 $as_echo_n "(cached) " >&6
14705 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14706 /* end confdefs.h. */
14707 #include <setjmp.h>
14712 while (! sigsetjmp (env, 1))
14713 siglongjmp (env, 1);
14719 if ac_fn_c_try_compile
"$LINENO"; then :
14720 gdb_cv_func_sigsetjmp
=yes
14722 gdb_cv_func_sigsetjmp
=no
14725 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
14729 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
14730 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
14732 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
14737 # Check whether --with-intel_pt was given.
14738 if test "${with_intel_pt+set}" = set; then :
14739 withval
=$with_intel_pt;
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
14745 $as_echo_n "checking whether to use intel pt... " >&6; }
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
14747 $as_echo "$with_intel_pt" >&6; }
14749 if test "${with_intel_pt}" = no
; then
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
14751 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
14754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14755 /* end confdefs.h. */
14757 #include <linux/perf_event.h>
14758 #ifndef PERF_ATTR_SIZE_VER5
14763 if ac_fn_c_try_cpp
"$LINENO"; then :
14768 rm -f conftest.err conftest.i conftest.
$ac_ext
14769 if test "$perf_event" != yes; then
14770 if test "$with_intel_pt" = yes; then
14771 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
14774 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
14788 acl_save_prefix
="$prefix"
14789 prefix
="$acl_final_prefix"
14790 acl_save_exec_prefix
="$exec_prefix"
14791 exec_prefix
="$acl_final_exec_prefix"
14793 eval additional_includedir
=\"$includedir\"
14794 eval additional_libdir
=\"$libdir\"
14796 exec_prefix
="$acl_save_exec_prefix"
14797 prefix
="$acl_save_prefix"
14800 # Check whether --with-libipt-prefix was given.
14801 if test "${with_libipt_prefix+set}" = set; then :
14802 withval
=$with_libipt_prefix;
14803 if test "X$withval" = "Xno"; then
14806 if test "X$withval" = "X"; then
14808 acl_save_prefix
="$prefix"
14809 prefix
="$acl_final_prefix"
14810 acl_save_exec_prefix
="$exec_prefix"
14811 exec_prefix
="$acl_final_exec_prefix"
14813 eval additional_includedir
=\"$includedir\"
14814 eval additional_libdir
=\"$libdir\"
14816 exec_prefix
="$acl_save_exec_prefix"
14817 prefix
="$acl_save_prefix"
14820 additional_includedir
="$withval/include"
14821 additional_libdir
="$withval/lib"
14828 # Check whether --with-libipt-type was given.
14829 if test "${with_libipt_type+set}" = set; then :
14830 withval
=$with_libipt_type; with_libipt_type
=$withval
14832 with_libipt_type
=auto
14835 lib_type
=`eval echo \$with_libipt_type`
14842 names_already_handled
=
14843 names_next_round
='ipt '
14844 while test -n "$names_next_round"; do
14845 names_this_round
="$names_next_round"
14847 for name
in $names_this_round; do
14849 for n
in $names_already_handled; do
14850 if test "$n" = "$name"; then
14851 already_handled
=yes
14855 if test -z "$already_handled"; then
14856 names_already_handled
="$names_already_handled $name"
14857 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14858 eval value
=\"\
$HAVE_LIB$uppername\"
14859 if test -n "$value"; then
14860 if test "$value" = yes; then
14861 eval value
=\"\
$LIB$uppername\"
14862 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
14863 eval value
=\"\
$LTLIB$uppername\"
14864 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
14873 if test $use_additional = yes; then
14874 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
14875 found_dir
="$additional_libdir"
14876 found_so
="$additional_libdir/lib$name.$shlibext"
14877 if test -f "$additional_libdir/lib$name.la"; then
14878 found_la
="$additional_libdir/lib$name.la"
14880 elif test x
$lib_type != xshared
; then
14881 if test -f "$additional_libdir/lib$name.$libext"; then
14882 found_dir
="$additional_libdir"
14883 found_a
="$additional_libdir/lib$name.$libext"
14884 if test -f "$additional_libdir/lib$name.la"; then
14885 found_la
="$additional_libdir/lib$name.la"
14890 if test "X$found_dir" = "X"; then
14891 for x
in $LDFLAGS $LTLIBIPT; do
14893 acl_save_prefix
="$prefix"
14894 prefix
="$acl_final_prefix"
14895 acl_save_exec_prefix
="$exec_prefix"
14896 exec_prefix
="$acl_final_exec_prefix"
14898 exec_prefix
="$acl_save_exec_prefix"
14899 prefix
="$acl_save_prefix"
14903 dir
=`echo "X$x" | sed -e 's/^X-L//'`
14904 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
14906 found_so
="$dir/lib$name.$shlibext"
14907 if test -f "$dir/lib$name.la"; then
14908 found_la
="$dir/lib$name.la"
14910 elif test x
$lib_type != xshared
; then
14911 if test -f "$dir/lib$name.$libext"; then
14913 found_a
="$dir/lib$name.$libext"
14914 if test -f "$dir/lib$name.la"; then
14915 found_la
="$dir/lib$name.la"
14921 if test "X$found_dir" != "X"; then
14926 if test "X$found_dir" != "X"; then
14927 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
14928 if test "X$found_so" != "X"; then
14929 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
14930 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14933 for x
in $ltrpathdirs; do
14934 if test "X$x" = "X$found_dir"; then
14939 if test -z "$haveit"; then
14940 ltrpathdirs
="$ltrpathdirs $found_dir"
14942 if test "$hardcode_direct" = yes; then
14943 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14945 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
14946 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14948 for x
in $rpathdirs; do
14949 if test "X$x" = "X$found_dir"; then
14954 if test -z "$haveit"; then
14955 rpathdirs
="$rpathdirs $found_dir"
14959 for x
in $LDFLAGS $LIBIPT; do
14961 acl_save_prefix
="$prefix"
14962 prefix
="$acl_final_prefix"
14963 acl_save_exec_prefix
="$exec_prefix"
14964 exec_prefix
="$acl_final_exec_prefix"
14966 exec_prefix
="$acl_save_exec_prefix"
14967 prefix
="$acl_save_prefix"
14969 if test "X$x" = "X-L$found_dir"; then
14974 if test -z "$haveit"; then
14975 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
14977 if test "$hardcode_minus_L" != no
; then
14978 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14980 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
14986 if test "X$found_a" != "X"; then
14987 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
14989 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
14992 additional_includedir
=
14993 case "$found_dir" in
14995 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14996 additional_includedir
="$basedir/include"
14999 if test "X$additional_includedir" != "X"; then
15000 if test "X$additional_includedir" != "X/usr/include"; then
15002 if test "X$additional_includedir" = "X/usr/local/include"; then
15003 if test -n "$GCC"; then
15005 linux
*) haveit
=yes;;
15009 if test -z "$haveit"; then
15010 for x
in $CPPFLAGS $INCIPT; do
15012 acl_save_prefix
="$prefix"
15013 prefix
="$acl_final_prefix"
15014 acl_save_exec_prefix
="$exec_prefix"
15015 exec_prefix
="$acl_final_exec_prefix"
15017 exec_prefix
="$acl_save_exec_prefix"
15018 prefix
="$acl_save_prefix"
15020 if test "X$x" = "X-I$additional_includedir"; then
15025 if test -z "$haveit"; then
15026 if test -d "$additional_includedir"; then
15027 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
15033 if test -n "$found_la"; then
15034 save_libdir
="$libdir"
15035 case "$found_la" in
15036 */* |
*\\*) .
"$found_la" ;;
15037 *) .
"./$found_la" ;;
15039 libdir
="$save_libdir"
15040 for dep
in $dependency_libs; do
15043 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
15044 if test "X$additional_libdir" != "X/usr/lib"; then
15046 if test "X$additional_libdir" = "X/usr/local/lib"; then
15047 if test -n "$GCC"; then
15049 linux
*) haveit
=yes;;
15053 if test -z "$haveit"; then
15055 for x
in $LDFLAGS $LIBIPT; do
15057 acl_save_prefix
="$prefix"
15058 prefix
="$acl_final_prefix"
15059 acl_save_exec_prefix
="$exec_prefix"
15060 exec_prefix
="$acl_final_exec_prefix"
15062 exec_prefix
="$acl_save_exec_prefix"
15063 prefix
="$acl_save_prefix"
15065 if test "X$x" = "X-L$additional_libdir"; then
15070 if test -z "$haveit"; then
15071 if test -d "$additional_libdir"; then
15072 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
15076 for x
in $LDFLAGS $LTLIBIPT; do
15078 acl_save_prefix
="$prefix"
15079 prefix
="$acl_final_prefix"
15080 acl_save_exec_prefix
="$exec_prefix"
15081 exec_prefix
="$acl_final_exec_prefix"
15083 exec_prefix
="$acl_save_exec_prefix"
15084 prefix
="$acl_save_prefix"
15086 if test "X$x" = "X-L$additional_libdir"; then
15091 if test -z "$haveit"; then
15092 if test -d "$additional_libdir"; then
15093 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
15100 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
15101 if test "$enable_rpath" != no
; then
15103 for x
in $rpathdirs; do
15104 if test "X$x" = "X$dir"; then
15109 if test -z "$haveit"; then
15110 rpathdirs
="$rpathdirs $dir"
15113 for x
in $ltrpathdirs; do
15114 if test "X$x" = "X$dir"; then
15119 if test -z "$haveit"; then
15120 ltrpathdirs
="$ltrpathdirs $dir"
15125 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15128 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15131 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
15132 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
15138 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
15139 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
15140 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
15142 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
15143 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
15150 if test "X$rpathdirs" != "X"; then
15151 if test -n "$hardcode_libdir_separator"; then
15153 for found_dir
in $rpathdirs; do
15154 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15156 acl_save_libdir
="$libdir"
15158 eval flag
=\"$hardcode_libdir_flag_spec\"
15159 libdir
="$acl_save_libdir"
15160 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
15162 for found_dir
in $rpathdirs; do
15163 acl_save_libdir
="$libdir"
15164 libdir
="$found_dir"
15165 eval flag
=\"$hardcode_libdir_flag_spec\"
15166 libdir
="$acl_save_libdir"
15167 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
15171 if test "X$ltrpathdirs" != "X"; then
15172 for found_dir
in $ltrpathdirs; do
15173 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
15178 ac_save_CPPFLAGS
="$CPPFLAGS"
15180 for element
in $INCIPT; do
15182 for x
in $CPPFLAGS; do
15184 acl_save_prefix
="$prefix"
15185 prefix
="$acl_final_prefix"
15186 acl_save_exec_prefix
="$exec_prefix"
15187 exec_prefix
="$acl_final_exec_prefix"
15189 exec_prefix
="$acl_save_exec_prefix"
15190 prefix
="$acl_save_prefix"
15192 if test "X$x" = "X$element"; then
15197 if test -z "$haveit"; then
15198 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
15204 $as_echo_n "checking for libipt... " >&6; }
15205 if ${ac_cv_libipt+:} false
; then :
15206 $as_echo_n "(cached) " >&6
15209 ac_save_LIBS
="$LIBS"
15210 LIBS
="$LIBS $LIBIPT"
15211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15212 /* end confdefs.h. */
15213 #include "intel-pt.h"
15217 pt_insn_alloc_decoder (0);
15222 if ac_fn_c_try_link
"$LINENO"; then :
15227 rm -f core conftest.err conftest.
$ac_objext \
15228 conftest
$ac_exeext conftest.
$ac_ext
15229 LIBS
="$ac_save_LIBS"
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
15233 $as_echo "$ac_cv_libipt" >&6; }
15234 if test "$ac_cv_libipt" = yes; then
15237 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
15240 $as_echo_n "checking how to link with libipt... " >&6; }
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
15242 $as_echo "$LIBIPT" >&6; }
15245 CPPFLAGS
="$ac_save_CPPFLAGS"
15255 if test "$HAVE_LIBIPT" != yes; then
15256 if test "$with_intel_pt" = yes; then
15257 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
15260 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
15264 LIBS
="$LIBS $LIBIPT"
15265 for ac_func
in pt_insn_event
15267 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
15268 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
15269 cat >>confdefs.h
<<_ACEOF
15270 #define HAVE_PT_INSN_EVENT 1
15276 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
15278 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
15280 cat >>confdefs.h
<<_ACEOF
15281 #define HAVE_STRUCT_PT_INSN_ENABLED 1
15286 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
15288 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
15290 cat >>confdefs.h
<<_ACEOF
15291 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
15301 # Check if the compiler and runtime support printing long longs.
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
15304 $as_echo_n "checking for long long support in printf... " >&6; }
15305 if ${gdb_cv_printf_has_long_long+:} false
; then :
15306 $as_echo_n "(cached) " >&6
15308 if test "$cross_compiling" = yes; then :
15309 gdb_cv_printf_has_long_long
=no
15311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15312 /* end confdefs.h. */
15313 $ac_includes_default
15319 l = (l << 16) + 0x0123;
15320 l = (l << 16) + 0x4567;
15321 l = (l << 16) + 0x89ab;
15322 l = (l << 16) + 0xcdef;
15323 sprintf (buf, "0x%016llx", l);
15324 return (strcmp ("0x0123456789abcdef", buf));
15329 if ac_fn_c_try_run
"$LINENO"; then :
15330 gdb_cv_printf_has_long_long
=yes
15332 gdb_cv_printf_has_long_long
=no
15334 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15335 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
15340 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
15341 if test "$gdb_cv_printf_has_long_long" = yes; then
15343 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
15348 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
15350 for ac_header
in sys
/procfs.h
15352 ac_fn_c_check_header_mongrel
"$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
15353 if test "x$ac_cv_header_sys_procfs_h" = xyes
; then :
15354 cat >>confdefs.h
<<_ACEOF
15355 #define HAVE_SYS_PROCFS_H 1
15362 if test "$ac_cv_header_sys_procfs_h" = yes; then
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
15365 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
15366 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
15367 $as_echo_n "(cached) " >&6
15369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15370 /* end confdefs.h. */
15373 #include <sys/procfs.h>
15382 if ac_fn_c_try_compile
"$LINENO"; then :
15383 bfd_cv_have_sys_procfs_type_gregset_t
=yes
15385 bfd_cv_have_sys_procfs_type_gregset_t
=no
15388 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15391 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
15393 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
15397 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
15401 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
15402 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
15403 $as_echo_n "(cached) " >&6
15405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15406 /* end confdefs.h. */
15409 #include <sys/procfs.h>
15418 if ac_fn_c_try_compile
"$LINENO"; then :
15419 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
15421 bfd_cv_have_sys_procfs_type_fpregset_t
=no
15424 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15427 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
15429 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
15433 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
15436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
15437 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
15438 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
15439 $as_echo_n "(cached) " >&6
15441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15442 /* end confdefs.h. */
15445 #include <sys/procfs.h>
15454 if ac_fn_c_try_compile
"$LINENO"; then :
15455 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
15457 bfd_cv_have_sys_procfs_type_prgregset_t
=no
15460 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15463 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
15465 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
15469 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
15473 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
15474 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
15475 $as_echo_n "(cached) " >&6
15477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15478 /* end confdefs.h. */
15481 #include <sys/procfs.h>
15490 if ac_fn_c_try_compile
"$LINENO"; then :
15491 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
15493 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
15496 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15499 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
15501 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
15504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
15505 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
15509 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
15510 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
15511 $as_echo_n "(cached) " >&6
15513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15514 /* end confdefs.h. */
15517 #include <sys/procfs.h>
15526 if ac_fn_c_try_compile
"$LINENO"; then :
15527 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
15529 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
15532 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15535 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
15537 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
15541 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
15545 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
15546 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
15547 $as_echo_n "(cached) " >&6
15549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15550 /* end confdefs.h. */
15553 #include <sys/procfs.h>
15562 if ac_fn_c_try_compile
"$LINENO"; then :
15563 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
15565 bfd_cv_have_sys_procfs_type_lwpid_t
=no
15568 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15571 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
15573 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
15577 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
15581 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
15582 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
15583 $as_echo_n "(cached) " >&6
15585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15586 /* end confdefs.h. */
15589 #include <sys/procfs.h>
15598 if ac_fn_c_try_compile
"$LINENO"; then :
15599 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
15601 bfd_cv_have_sys_procfs_type_psaddr_t
=no
15604 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15607 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
15609 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
15613 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
15617 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
15618 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
15619 $as_echo_n "(cached) " >&6
15621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15622 /* end confdefs.h. */
15625 #include <sys/procfs.h>
15629 elf_fpregset_t avar
15634 if ac_fn_c_try_compile
"$LINENO"; then :
15635 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
15637 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
15640 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15643 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
15645 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
15649 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
15654 # Check the return and argument types of ptrace.
15657 for ac_header
in sys
/ptrace.h ptrace.h
15659 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15660 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15661 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
15662 cat >>confdefs.h
<<_ACEOF
15663 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15671 gdb_ptrace_headers
='
15672 #include <sys/types.h>
15673 #if HAVE_SYS_PTRACE_H
15674 # include <sys/ptrace.h>
15677 # include <unistd.h>
15681 # Check return type. Varargs (used on GNU/Linux) conflict with the
15682 # empty argument list, so check for that explicitly.
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
15684 $as_echo_n "checking return type of ptrace... " >&6; }
15685 if ${gdb_cv_func_ptrace_ret+:} false
; then :
15686 $as_echo_n "(cached) " >&6
15688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15689 /* end confdefs.h. */
15690 Â $gdb_ptrace_headers
15694 extern long ptrace (enum __ptrace_request, ...);
15700 if ac_fn_c_try_compile
"$LINENO"; then :
15701 gdb_cv_func_ptrace_ret
='long'
15703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15704 /* end confdefs.h. */
15705 $gdb_ptrace_headers
15709 extern int ptrace ();
15715 if ac_fn_c_try_compile
"$LINENO"; then :
15716 gdb_cv_func_ptrace_ret
='int'
15718 gdb_cv_func_ptrace_ret
='long'
15721 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15724 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
15728 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
15731 cat >>confdefs.h
<<_ACEOF
15732 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
15736 # Check argument types.
15737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
15738 $as_echo_n "checking types of arguments for ptrace... " >&6; }
15739 if ${gdb_cv_func_ptrace_args+:} false
; then :
15740 $as_echo_n "(cached) " >&6
15742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15743 /* end confdefs.h. */
15744 $gdb_ptrace_headers
15748 extern long ptrace (enum __ptrace_request, ...);
15754 if ac_fn_c_try_compile
"$LINENO"; then :
15755 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
15757 for gdb_arg1
in 'int' 'long'; do
15758 for gdb_arg2
in 'pid_t' 'int' 'long'; do
15759 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
15760 for gdb_arg4
in 'int' 'long' 'void *'; do
15761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15762 /* end confdefs.h. */
15763 $gdb_ptrace_headers
15767 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
15773 if ac_fn_c_try_compile
"$LINENO"; then :
15774 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
15778 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15780 for gdb_arg5
in 'int *' 'int' 'long'; do
15781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15782 /* end confdefs.h. */
15783 $gdb_ptrace_headers
15787 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
15793 if ac_fn_c_try_compile
"$LINENO"; then :
15794 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
15798 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15804 # Provide a safe default value.
15805 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
15808 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
15812 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
15814 ac_save_IFS
=$IFS; IFS
=','
15815 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
15819 cat >>confdefs.h
<<_ACEOF
15820 #define PTRACE_TYPE_ARG1 $1
15824 cat >>confdefs.h
<<_ACEOF
15825 #define PTRACE_TYPE_ARG3 $3
15829 cat >>confdefs.h
<<_ACEOF
15830 #define PTRACE_TYPE_ARG4 $4
15833 if test -n "$5"; then
15835 cat >>confdefs.h
<<_ACEOF
15836 #define PTRACE_TYPE_ARG5 $5
15842 if test "$cross_compiling" = no
; then
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
15844 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
15845 if ${ac_cv_func_setpgrp_void+:} false
; then :
15846 $as_echo_n "(cached) " >&6
15848 if test "$cross_compiling" = yes; then :
15849 as_fn_error $?
"cannot check setpgrp when cross compiling" "$LINENO" 5
15851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15852 /* end confdefs.h. */
15853 $ac_includes_default
15857 /* If this system has a BSD-style setpgrp which takes arguments,
15858 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
15859 exit successfully. */
15860 return setpgrp (1,1) != -1;
15865 if ac_fn_c_try_run
"$LINENO"; then :
15866 ac_cv_func_setpgrp_void
=no
15868 ac_cv_func_setpgrp_void
=yes
15870 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15871 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
15876 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
15877 if test $ac_cv_func_setpgrp_void = yes; then
15879 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
15885 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
15886 if ${ac_cv_func_setpgrp_void+:} false
; then :
15887 $as_echo_n "(cached) " >&6
15889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15890 /* end confdefs.h. */
15891 #include <unistd.h>
15895 if (setpgrp(1,1) == -1)
15904 if ac_fn_c_try_compile
"$LINENO"; then :
15905 ac_cv_func_setpgrp_void
=no
15907 ac_cv_func_setpgrp_void
=yes
15910 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
15914 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
15915 if test "$ac_cv_func_setpgrp_void" = yes; then
15916 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
15921 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
15922 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
15923 #include <sys/proc.h>
15926 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes
; then :
15928 cat >>confdefs.h
<<_ACEOF
15929 #define HAVE_STRUCT_THREAD_TD_PCB 1
15936 # See if <sys/lwp.h> defines `struct lwp`.
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
15938 $as_echo_n "checking for struct lwp... " >&6; }
15939 if ${gdb_cv_struct_lwp+:} false
; then :
15940 $as_echo_n "(cached) " >&6
15942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15943 /* end confdefs.h. */
15944 #include <sys/param.h>
15946 #include <sys/lwp.h>
15956 if ac_fn_c_try_compile
"$LINENO"; then :
15957 gdb_cv_struct_lwp
=yes
15959 gdb_cv_struct_lwp
=no
15962 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
15966 $as_echo "$gdb_cv_struct_lwp" >&6; }
15967 if test "$gdb_cv_struct_lwp" = yes; then
15969 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
15973 # See if <machine/reg.h> degines `struct reg'.
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
15975 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
15976 if ${gdb_cv_struct_reg+:} false
; then :
15977 $as_echo_n "(cached) " >&6
15979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15980 /* end confdefs.h. */
15981 #include <sys/types.h>
15982 #include <machine/reg.h>
15992 if ac_fn_c_try_compile
"$LINENO"; then :
15993 gdb_cv_struct_reg
=yes
15995 gdb_cv_struct_reg
=no
15998 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
16002 $as_echo "$gdb_cv_struct_reg" >&6; }
16003 if test "$gdb_cv_struct_reg" = yes; then
16005 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
16009 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
16010 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
16011 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
16012 #include <machine/reg.h>
16014 if test "x$ac_cv_member_struct_reg_r_fs" = xyes
; then :
16016 cat >>confdefs.h
<<_ACEOF
16017 #define HAVE_STRUCT_REG_R_FS 1
16022 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
16023 #include <machine/reg.h>
16025 if test "x$ac_cv_member_struct_reg_r_gs" = xyes
; then :
16027 cat >>confdefs.h
<<_ACEOF
16028 #define HAVE_STRUCT_REG_R_GS 1
16035 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
16037 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
16038 if ${gdb_cv_have_ptrace_getregs+:} false
; then :
16039 $as_echo_n "(cached) " >&6
16041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16042 /* end confdefs.h. */
16043 #include <sys/ptrace.h>
16052 if ac_fn_c_try_compile
"$LINENO"; then :
16053 gdb_cv_have_ptrace_getregs
=yes
16055 gdb_cv_have_ptrace_getregs
=no
16058 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
16063 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
16064 if test "$gdb_cv_have_ptrace_getregs" = yes; then
16066 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
16070 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
16072 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
16073 if ${gdb_cv_have_ptrace_getfpxregs+:} false
; then :
16074 $as_echo_n "(cached) " >&6
16076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16077 /* end confdefs.h. */
16078 #include <sys/ptrace.h>
16087 if ac_fn_c_try_compile
"$LINENO"; then :
16088 gdb_cv_have_ptrace_getfpxregs
=yes
16090 gdb_cv_have_ptrace_getfpxregs
=no
16093 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
16098 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
16099 if test "$gdb_cv_have_ptrace_getfpxregs" = yes; then
16101 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
16105 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
16107 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
16108 if ${gdb_cv_have_pt_getdbregs+:} false
; then :
16109 $as_echo_n "(cached) " >&6
16111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16112 /* end confdefs.h. */
16113 #include <sys/types.h>
16114 #include <sys/ptrace.h>
16124 if ac_fn_c_try_compile
"$LINENO"; then :
16125 gdb_cv_have_pt_getdbregs
=yes
16127 gdb_cv_have_pt_getdbregs
=no
16130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
16135 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
16136 if test "$gdb_cv_have_pt_getdbregs" = yes; then
16138 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
16142 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
16144 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
16145 if ${gdb_cv_have_pt_getxmmregs+:} false
; then :
16146 $as_echo_n "(cached) " >&6
16148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16149 /* end confdefs.h. */
16150 #include <sys/types.h>
16151 #include <sys/ptrace.h>
16161 if ac_fn_c_try_compile
"$LINENO"; then :
16162 gdb_cv_have_pt_getxmmregs
=yes
16164 gdb_cv_have_pt_getxmmregs
=no
16167 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
16172 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
16173 if test "$gdb_cv_have_pt_getxmmregs" = yes; then
16175 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
16179 # See if <sys/ptrace.h> supports LWP names on FreeBSD
16180 # Older FreeBSD versions don't have the pl_tdname member of
16181 # `struct ptrace_lwpinfo'.
16182 ac_fn_c_check_member
"$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
16184 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes
; then :
16186 cat >>confdefs.h
<<_ACEOF
16187 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
16194 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
16195 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
16197 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>
16199 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes
; then :
16201 cat >>confdefs.h
<<_ACEOF
16202 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
16209 # Check if the compiler supports the `long long' type.
16211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
16212 $as_echo_n "checking for long long support in compiler... " >&6; }
16213 if ${gdb_cv_c_long_long+:} false
; then :
16214 $as_echo_n "(cached) " >&6
16216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16217 /* end confdefs.h. */
16218 extern long long foo;
16222 switch (foo & 2) { case 0: return 1; }
16227 if ac_fn_c_try_compile
"$LINENO"; then :
16228 gdb_cv_c_long_long
=yes
16230 gdb_cv_c_long_long
=no
16232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
16235 $as_echo "$gdb_cv_c_long_long" >&6; }
16236 if test "$gdb_cv_c_long_long" != yes; then
16237 # libdecnumber requires long long.
16238 as_fn_error $?
"Compiler must support long long for GDB." "$LINENO" 5
16241 # Check if the compiler and runtime support printing decfloats.
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
16244 $as_echo_n "checking for decfloat support in printf... " >&6; }
16245 if ${gdb_cv_printf_has_decfloat+:} false
; then :
16246 $as_echo_n "(cached) " >&6
16248 if test "$cross_compiling" = yes; then :
16249 gdb_cv_printf_has_decfloat
=no
16251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16252 /* end confdefs.h. */
16253 $ac_includes_default
16258 _Decimal32 d32 = 1.2345df;
16259 _Decimal64 d64 = 1.2345dd;
16260 _Decimal128 d128 = 1.2345dl;
16261 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
16262 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
16267 if ac_fn_c_try_run
"$LINENO"; then :
16268 gdb_cv_printf_has_decfloat
=yes
16270 gdb_cv_printf_has_decfloat
=no
16272 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16273 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
16278 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
16279 if test "$gdb_cv_printf_has_decfloat" = yes; then
16281 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
16285 # Check if the compiler supports the `long double' type. We can't use
16286 # AC_C_LONG_DOUBLE because that one does additional checks on the
16287 # constants defined in <float.h> that fail on some systems,
16288 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
16291 $as_echo_n "checking for long double support in compiler... " >&6; }
16292 if ${gdb_cv_c_long_double+:} false
; then :
16293 $as_echo_n "(cached) " >&6
16295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16296 /* end confdefs.h. */
16299 if ac_fn_c_try_compile
"$LINENO"; then :
16300 gdb_cv_c_long_double
=yes
16302 gdb_cv_c_long_double
=no
16304 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
16307 $as_echo "$gdb_cv_c_long_double" >&6; }
16308 if test "$gdb_cv_c_long_double" = yes; then
16310 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
16314 # Check if the compiler and runtime support printing long doubles.
16316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
16317 $as_echo_n "checking for long double support in printf... " >&6; }
16318 if ${gdb_cv_printf_has_long_double+:} false
; then :
16319 $as_echo_n "(cached) " >&6
16321 if test "$cross_compiling" = yes; then :
16322 gdb_cv_printf_has_long_double
=no
16324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16325 /* end confdefs.h. */
16326 $ac_includes_default
16331 long double f = 3.141592653;
16332 sprintf (buf, "%Lg", f);
16333 return (strncmp ("3.14159", buf, 7));
16338 if ac_fn_c_try_run
"$LINENO"; then :
16339 gdb_cv_printf_has_long_double
=yes
16341 gdb_cv_printf_has_long_double
=no
16343 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16344 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
16349 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
16350 if test "$gdb_cv_printf_has_long_double" = yes; then
16352 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
16356 # Check if the compiler and runtime support scanning long doubles.
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
16359 $as_echo_n "checking for long double support in scanf... " >&6; }
16360 if ${gdb_cv_scanf_has_long_double+:} false
; then :
16361 $as_echo_n "(cached) " >&6
16363 if test "$cross_compiling" = yes; then :
16364 gdb_cv_scanf_has_long_double
=no
16366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16367 /* end confdefs.h. */
16372 char *buf = "3.141592653";
16374 sscanf (buf, "%Lg", &f);
16375 return !(f > 3.14159 && f < 3.14160);
16380 if ac_fn_c_try_run
"$LINENO"; then :
16381 gdb_cv_scanf_has_long_double
=yes
16383 gdb_cv_scanf_has_long_double
=no
16385 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16386 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
16391 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
16392 if test "$gdb_cv_scanf_has_long_double" = yes; then
16394 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
16401 $as_echo_n "checking for -bbigtoc option... " >&6; }
16402 if ${gdb_cv_bigtoc+:} false
; then :
16403 $as_echo_n "(cached) " >&6
16405 SAVE_LDFLAGS
=$LDFLAGS
16408 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
16409 *) gdb_cv_bigtoc
=-bbigtoc ;;
16412 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
16413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16414 /* end confdefs.h. */
16424 if ac_fn_c_try_link
"$LINENO"; then :
16430 rm -f core conftest.err conftest.
$ac_objext \
16431 conftest
$ac_exeext conftest.
$ac_ext
16432 LDFLAGS
="${SAVE_LDFLAGS}"
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
16436 $as_echo "$gdb_cv_bigtoc" >&6; }
16437 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
16442 $as_echo_n "checking for the dynamic export flag... " >&6; }
16444 if test "${gdb_native}" = yes; then
16445 # The dynamically loaded libthread_db needs access to symbols in the gdb
16446 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
16447 # may not be supported there.
16448 old_LDFLAGS
="$LDFLAGS"
16449 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
16450 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
16451 LDFLAGS
="$LDFLAGS $RDYNAMIC"
16452 if test "${have_libpython}" = no
; then
16453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16454 /* end confdefs.h. */
16464 if ac_fn_c_try_link
"$LINENO"; then :
16467 rm -f core conftest.err conftest.
$ac_objext \
16468 conftest
$ac_exeext conftest.
$ac_ext
16470 # Workaround http://bugs.python.org/issue4434 where static
16471 # libpythonX.Y.a would get its symbols required for
16472 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
16473 # Problem does not happen for the recommended libpythonX.Y.so linkage.
16475 # Note the workaround for Python
16476 # http://bugs.python.org/issue10112 earlier has removed
16477 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
16478 # here too, as otherwise it'd make this -Wl,--dynamic-list test
16480 old_CFLAGS
="$CFLAGS"
16481 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
16483 LIBS
="$LIBS $PYTHON_LIBS"
16484 old_CPPFLAGS
="$CPPFLAGS"
16485 CPPFLAGS
="$CPPFLAGS $PYTHON_CPPFLAGS"
16486 if test "$cross_compiling" = yes; then :
16489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16490 /* end confdefs.h. */
16491 #include "Python.h"
16497 err = PyRun_SimpleString ("import ctypes\n");
16499 return err == 0 ? 0 : 1;
16504 if ac_fn_c_try_run
"$LINENO"; then :
16507 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16508 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16512 CFLAGS
="$old_CFLAGS"
16513 CPPFLAGS
="$old_CPPFLAGS"
16515 LDFLAGS
="$old_LDFLAGS"
16517 if $dynamic_list; then
16518 found
="-Wl,--dynamic-list"
16519 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
16522 RDYNAMIC
="-rdynamic"
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
16526 $as_echo "$found" >&6; }
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether execinfo.h backtrace is available" >&5
16529 $as_echo_n "checking whether execinfo.h backtrace is available... " >&6; }
16530 if ${gdb_cv_execinfo_backtrace+:} false
; then :
16531 $as_echo_n "(cached) " >&6
16533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16534 /* end confdefs.h. */
16536 #include <execinfo.h>
16544 f = backtrace (b, 2);
16545 backtrace_symbols_fd (b, f, 2);
16551 if ac_fn_c_try_link
"$LINENO"; then :
16552 gdb_cv_execinfo_backtrace
=yes
16554 gdb_cv_execinfo_backtrace
=no
16556 rm -f core conftest.err conftest.
$ac_objext \
16557 conftest
$ac_exeext conftest.
$ac_ext
16559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_execinfo_backtrace" >&5
16560 $as_echo "$gdb_cv_execinfo_backtrace" >&6; }
16561 if test "$gdb_cv_execinfo_backtrace" = yes; then
16563 $as_echo "#define HAVE_EXECINFO_BACKTRACE 1" >>confdefs.h
16568 if test "${build}" = "${host}" -a "${host}" = "${target}" ; then
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
16572 $as_echo_n "checking for AiX thread debugging library... " >&6; }
16573 if ${gdb_cv_have_aix_thread_debug+:} false
; then :
16574 $as_echo_n "(cached) " >&6
16576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16577 /* end confdefs.h. */
16578 #include <sys/pthdebug.h>
16582 #ifndef PTHDB_VERSION_3
16590 if ac_fn_c_try_compile
"$LINENO"; then :
16591 gdb_cv_have_aix_thread_debug
=yes
16593 gdb_cv_have_aix_thread_debug
=no
16596 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
16601 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
16602 if test "$gdb_cv_have_aix_thread_debug" = yes; then
16603 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
16604 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
16605 LIBS
="$LIBS -lpthdebug"
16607 # Older versions of AIX do not provide the declaration for
16608 # the getthrds function (it appears that it was introduced
16610 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
16612 if test "x$ac_cv_have_decl_getthrds" = xyes
; then :
16618 cat >>confdefs.h
<<_ACEOF
16619 #define HAVE_DECL_GETTHRDS $ac_have_decl
16628 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
16630 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
16631 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false
; then :
16632 $as_echo_n "(cached) " >&6
16634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16635 /* end confdefs.h. */
16636 #include <thread_db.h>
16640 int i = TD_NOTALLOC;
16646 if ac_fn_c_try_compile
"$LINENO"; then :
16647 gdb_cv_thread_db_h_has_td_notalloc
=yes
16649 gdb_cv_thread_db_h_has_td_notalloc
=no
16652 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
16656 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
16659 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
16660 if ${gdb_cv_thread_db_h_has_td_version+:} false
; then :
16661 $as_echo_n "(cached) " >&6
16663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16664 /* end confdefs.h. */
16665 #include <thread_db.h>
16669 int i = TD_VERSION;
16675 if ac_fn_c_try_compile
"$LINENO"; then :
16676 gdb_cv_thread_db_h_has_td_version
=yes
16678 gdb_cv_thread_db_h_has_td_version
=no
16681 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
16685 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
16688 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
16689 if ${gdb_cv_thread_db_h_has_td_notls+:} false
; then :
16690 $as_echo_n "(cached) " >&6
16692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16693 /* end confdefs.h. */
16694 #include <thread_db.h>
16704 if ac_fn_c_try_compile
"$LINENO"; then :
16705 gdb_cv_thread_db_h_has_td_notls
=yes
16707 gdb_cv_thread_db_h_has_td_notls
=no
16710 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
16714 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
16716 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
16718 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
16721 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
16723 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
16726 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
16728 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
16741 cat >>confdefs.h
<<_ACEOF
16742 #define GDBINIT "$gdbinit"
16747 cat >>confdefs.h
<<_ACEOF
16748 #define GDBEARLYINIT ".gdbearlyinit"
16753 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
16754 # except that the argument to --with-sysroot is optional.
16755 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
16756 if test "x$with_sysroot" = xyes
; then
16757 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
16760 # Check whether --with-sysroot was given.
16761 if test "${with_sysroot+set}" = set; then :
16762 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
16764 TARGET_SYSTEM_ROOT
=
16768 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16769 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16770 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
16771 ac_define_dir
=`eval echo $ac_define_dir`
16773 cat >>confdefs.h
<<_ACEOF
16774 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
16780 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16781 if test "x$prefix" = xNONE
; then
16782 test_prefix
=/usr
/local
16784 test_prefix
=$prefix
16787 test_prefix
=$exec_prefix
16790 case ${ac_define_dir} in
16791 "${test_prefix}"|
"${test_prefix}/"*|\
16792 '${exec_prefix}'|
'${exec_prefix}/'*)
16797 cat >>confdefs.h
<<_ACEOF
16798 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
16805 # Check whether --with-system-gdbinit was given.
16806 if test "${with_system_gdbinit+set}" = set; then :
16807 withval
=$with_system_gdbinit;
16808 SYSTEM_GDBINIT
=$withval
16814 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16815 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16816 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
16817 ac_define_dir
=`eval echo $ac_define_dir`
16819 cat >>confdefs.h
<<_ACEOF
16820 #define SYSTEM_GDBINIT "$ac_define_dir"
16826 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16827 if test "x$prefix" = xNONE
; then
16828 test_prefix
=/usr
/local
16830 test_prefix
=$prefix
16833 test_prefix
=$exec_prefix
16836 case ${ac_define_dir} in
16837 "${test_prefix}"|
"${test_prefix}/"*|\
16838 '${exec_prefix}'|
'${exec_prefix}/'*)
16843 cat >>confdefs.h
<<_ACEOF
16844 #define SYSTEM_GDBINIT_RELOCATABLE $value
16851 # Check whether --with-system-gdbinit-dir was given.
16852 if test "${with_system_gdbinit_dir+set}" = set; then :
16853 withval
=$with_system_gdbinit_dir;
16854 SYSTEM_GDBINIT_DIR
=$withval
16856 SYSTEM_GDBINIT_DIR
=
16860 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16861 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16862 ac_define_dir
=`eval echo $SYSTEM_GDBINIT_DIR`
16863 ac_define_dir
=`eval echo $ac_define_dir`
16865 cat >>confdefs.h
<<_ACEOF
16866 #define SYSTEM_GDBINIT_DIR "$ac_define_dir"
16872 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16873 if test "x$prefix" = xNONE
; then
16874 test_prefix
=/usr
/local
16876 test_prefix
=$prefix
16879 test_prefix
=$exec_prefix
16882 case ${ac_define_dir} in
16883 "${test_prefix}"|
"${test_prefix}/"*|\
16884 '${exec_prefix}'|
'${exec_prefix}/'*)
16889 cat >>confdefs.h
<<_ACEOF
16890 #define SYSTEM_GDBINIT_DIR_RELOCATABLE $value
16897 # Check whether --enable-werror was given.
16898 if test "${enable_werror+set}" = set; then :
16899 enableval
=$enable_werror; case "${enableval}" in
16900 yes | y
) ERROR_ON_WARNING
="yes" ;;
16901 no | n
) ERROR_ON_WARNING
="no" ;;
16902 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
16907 # Enable -Werror by default when using gcc. Turn it off for releases.
16908 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
16909 ERROR_ON_WARNING
=yes
16913 if test "${ERROR_ON_WARNING}" = yes ; then
16914 WERROR_CFLAGS
="-Werror"
16917 # The options we'll try to enable.
16918 build_warnings
="-Wall -Wpointer-arith \
16919 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
16920 -Wno-switch -Wno-char-subscripts \
16921 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
16922 -Wno-sign-compare -Wno-error=maybe-uninitialized \
16923 -Wno-mismatched-tags \
16924 -Wno-error=deprecated-register \
16925 -Wsuggest-override \
16926 -Wimplicit-fallthrough=3 \
16927 -Wduplicated-cond \
16929 -Wdeprecated-copy \
16930 -Wdeprecated-copy-dtor \
16932 -Wmissing-declarations \
16933 -Wmissing-prototypes \
16934 -Wstrict-null-sentinel \
16939 # Enable -Wno-format by default when using gcc on mingw since many
16940 # GCC versions complain about %I64.
16941 build_warnings
="$build_warnings -Wno-format" ;;
16943 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
16944 # doesn't understand.
16945 build_warnings
="$build_warnings -Wno-unknown-pragmas"
16946 # Solaris 11 <unistd.h> marks vfork deprecated.
16947 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
16949 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
16950 # but there's a special case for this below.
16951 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
16954 # Check whether --enable-build-warnings was given.
16955 if test "${enable_build_warnings+set}" = set; then :
16956 enableval
=$enable_build_warnings; case "${enableval}" in
16958 no
) build_warnings
="-w";;
16959 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16960 build_warnings
="${build_warnings} ${t}";;
16961 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16962 build_warnings
="${t} ${build_warnings}";;
16963 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16965 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
16966 echo "Setting compiler warning flags = $build_warnings" 6>&1
16969 # Check whether --enable-gdb-build-warnings was given.
16970 if test "${enable_gdb_build_warnings+set}" = set; then :
16971 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
16973 no
) build_warnings
="-w";;
16974 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16975 build_warnings
="${build_warnings} ${t}";;
16976 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16977 build_warnings
="${t} ${build_warnings}";;
16978 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16980 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
16981 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
16985 # The set of warnings supported by a C++ compiler is not the same as
16986 # of the C compiler.
16988 ac_cpp
='$CXXCPP $CPPFLAGS'
16989 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16990 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16991 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
16995 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
16997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
16998 $as_echo_n "checking compiler warning flags... " >&6; }
16999 # Separate out the -Werror flag as some files just cannot be
17000 # compiled with it enabled.
17001 for w
in ${build_warnings}; do
17002 # GCC does not complain about -Wno-unknown-warning. Invert
17003 # and test -Wunknown-warning instead.
17006 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
17007 -Wformat-nonliteral)
17008 # gcc requires -Wformat before -Wformat-nonliteral
17009 # will work, so stick them together.
17018 -Werr*) WERROR_CFLAGS
=-Werror ;;
17020 # Check whether GCC accepts it.
17021 saved_CFLAGS
="$CFLAGS"
17022 CFLAGS
="$CFLAGS -Werror $wtest"
17023 saved_CXXFLAGS
="$CXXFLAGS"
17024 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
17025 if test "x$w" = "x-Wunused-variable"; then
17026 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
17027 # fixed in GCC 4.9. This test is derived from the gdb
17028 # source code that triggered this bug in GCC.
17029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17030 /* end confdefs.h. */
17031 struct scoped_restore_base {};
17032 struct scoped_restore_tmpl : public scoped_restore_base {
17033 ~scoped_restore_tmpl() {}
17038 const scoped_restore_base &b = scoped_restore_tmpl();
17044 if ac_fn_cxx_try_compile
"$LINENO"; then :
17045 WARN_CFLAGS
="${WARN_CFLAGS} $w"
17047 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17050 /* end confdefs.h. */
17060 if ac_fn_cxx_try_compile
"$LINENO"; then :
17061 WARN_CFLAGS
="${WARN_CFLAGS} $w"
17063 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17065 CFLAGS
="$saved_CFLAGS"
17066 CXXFLAGS
="$saved_CXXFLAGS"
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
17070 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
17076 ac_cpp='$CPP $CPPFLAGS'
17077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17083 # Check whether --enable-ubsan was given.
17084 if test "${enable_ubsan+set}" = set; then :
17085 enableval=$enable_ubsan;
17090 if test "x
$enable_ubsan" = xauto; then
17091 if $development; then
17096 ac_cpp='$CXXCPP $CPPFLAGS'
17097 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17098 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17099 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17101 if test "x
$enable_ubsan" = xyes; then
17102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
-fsanitize=undefined is accepted
" >&5
17103 $as_echo_n "checking whether
-fsanitize=undefined is accepted...
" >&6; }
17104 saved_CXXFLAGS="$CXXFLAGS"
17105 CXXFLAGS="$CXXFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
17106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17107 /* end confdefs.h. */
17117 if ac_fn_cxx_try_link "$LINENO"; then :
17123 rm -f core conftest.err conftest.$ac_objext \
17124 conftest$ac_exeext conftest.$ac_ext
17125 CXXFLAGS="$saved_CXXFLAGS"
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $enable_ubsan" >&5
17127 $as_echo "$enable_ubsan" >&6; }
17128 if test "x
$enable_ubsan" = xyes; then
17129 WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
17130 CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined
"
17134 ac_cpp='$CPP $CPPFLAGS'
17135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17141 # In the Cygwin environment, we need some additional flags.
17142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
17143 $as_echo_n "checking
for cygwin...
" >&6; }
17144 if ${gdb_cv_os_cygwin+:} false; then :
17145 $as_echo_n "(cached
) " >&6
17147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17148 /* end confdefs.h. */
17150 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
17154 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
17155 $EGREP "^lose$
" >/dev/null 2>&1; then :
17156 gdb_cv_os_cygwin=yes
17158 gdb_cv_os_cygwin=no
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
17164 $as_echo "$gdb_cv_os_cygwin" >&6; }
17167 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
17169 *go32* ) SER_HARDWIRE=ser-go32.o ;;
17170 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
17171 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
17172 *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o
" ;;
17176 # libreadline needs libuser32.a in a cygwin environment
17178 if test x"$gdb_cv_os_cygwin" = xyes; then
17179 WIN32LIBS="-luser32"
17180 case "${target}" in
17181 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
17186 # The ser-tcp.c module requires sockets.
17187 # Note that WIN32APILIBS is set by GDB_AC_COMMON.
17188 WIN32LIBS="$WIN32LIBS $WIN32APILIBS"
17190 # Add ELF support to GDB, but only if BFD includes ELF support.
17193 OLD_LDFLAGS=$LDFLAGS
17195 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
17196 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
17197 # always want our bfd.
17198 CFLAGS="-I${srcdir}/..
/include
-I..
/bfd
-I${srcdir}/..
/bfd
$CFLAGS"
17199 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
17200 LDFLAGS="-L..
/bfd
-L..
/libiberty
$ZLIBDIR $LDFLAGS"
17201 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
17202 LIBS="-lbfd -liberty -lz $intl $LIBS"
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ELF support
in BFD
" >&5
17204 $as_echo_n "checking
for ELF support
in BFD...
" >&6; }
17205 if ${gdb_cv_var_elf+:} false; then :
17206 $as_echo_n "(cached
) " >&6
17208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17209 /* end confdefs.h. */
17210 #include <stdlib.h>
17211 #include <string.h>
17213 #include "elf-bfd.h
"
17217 return bfd_get_elf_phdr_upper_bound (NULL);
17223 if ac_fn_c_try_link "$LINENO"; then :
17229 rm -f core conftest.err conftest.$ac_objext \
17230 conftest$ac_exeext conftest.$ac_ext
17233 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_var_elf" >&5
17234 $as_echo "$gdb_cv_var_elf" >&6; }
17236 LDFLAGS=$OLD_LDFLAGS
17238 if test "$gdb_cv_var_elf" = yes; then
17239 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o \
17240 gcore-elf.o elf-none-tdep.o
"
17242 $as_echo "#define HAVE_ELF 1" >>confdefs.h
17244 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
17245 if test "$plugins" = "yes"; then
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
17247 $as_echo_n "checking for library containing dlopen... " >&6; }
17248 if ${ac_cv_search_dlopen+:} false
; then :
17249 $as_echo_n "(cached) " >&6
17251 ac_func_search_save_LIBS
=$LIBS
17252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17253 /* end confdefs.h. */
17255 /* Override any GCC internal prototype to avoid an error.
17256 Use char because int might match the return type of a GCC
17257 builtin and then its argument prototype would still apply. */
17270 for ac_lib
in '' dl
; do
17271 if test -z "$ac_lib"; then
17272 ac_res
="none required"
17275 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
17277 if ac_fn_c_try_link
"$LINENO"; then :
17278 ac_cv_search_dlopen
=$ac_res
17280 rm -f core conftest.err conftest.
$ac_objext \
17282 if ${ac_cv_search_dlopen+:} false
; then :
17286 if ${ac_cv_search_dlopen+:} false
; then :
17289 ac_cv_search_dlopen
=no
17291 rm conftest.
$ac_ext
17292 LIBS
=$ac_func_search_save_LIBS
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17295 $as_echo "$ac_cv_search_dlopen" >&6; }
17296 ac_res
=$ac_cv_search_dlopen
17297 if test "$ac_res" != no
; then :
17298 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
17305 # Add macho support to GDB, but only if BFD includes it.
17308 OLD_LDFLAGS
=$LDFLAGS
17310 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
17311 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
17312 # always want our bfd.
17313 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
17314 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
17315 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
17316 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
17317 LIBS
="-lbfd -liberty -lz $intl $LIBS"
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
17319 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
17320 if ${gdb_cv_var_macho+:} false
; then :
17321 $as_echo_n "(cached) " >&6
17323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17324 /* end confdefs.h. */
17325 #include <stdlib.h>
17326 #include <string.h>
17328 #include "mach-o.h"
17332 return bfd_mach_o_lookup_command (NULL, 0, NULL);
17338 if ac_fn_c_try_link
"$LINENO"; then :
17339 gdb_cv_var_macho
=yes
17341 gdb_cv_var_macho
=no
17344 rm -f core conftest.err conftest.
$ac_objext \
17345 conftest
$ac_exeext conftest.
$ac_ext
17348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
17349 $as_echo "$gdb_cv_var_macho" >&6; }
17351 LDFLAGS
=$OLD_LDFLAGS
17353 if test "$gdb_cv_var_macho" = yes; then
17354 CONFIG_OBS
="$CONFIG_OBS machoread.o"
17357 # Add any host-specific objects to GDB.
17358 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
17360 # If building on ELF, look for lzma support for embedded compressed debug info.
17361 if test "$gdb_cv_var_elf" = yes; then
17363 # Check whether --with-lzma was given.
17364 if test "${with_lzma+set}" = set; then :
17365 withval
=$with_lzma;
17370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
17371 $as_echo_n "checking whether to use lzma... " >&6; }
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
17373 $as_echo "$with_lzma" >&6; }
17375 if test "${with_lzma}" != no
; then
17386 acl_save_prefix
="$prefix"
17387 prefix
="$acl_final_prefix"
17388 acl_save_exec_prefix
="$exec_prefix"
17389 exec_prefix
="$acl_final_exec_prefix"
17391 eval additional_includedir
=\"$includedir\"
17392 eval additional_libdir
=\"$libdir\"
17394 exec_prefix
="$acl_save_exec_prefix"
17395 prefix
="$acl_save_prefix"
17398 # Check whether --with-liblzma-prefix was given.
17399 if test "${with_liblzma_prefix+set}" = set; then :
17400 withval
=$with_liblzma_prefix;
17401 if test "X$withval" = "Xno"; then
17404 if test "X$withval" = "X"; then
17406 acl_save_prefix
="$prefix"
17407 prefix
="$acl_final_prefix"
17408 acl_save_exec_prefix
="$exec_prefix"
17409 exec_prefix
="$acl_final_exec_prefix"
17411 eval additional_includedir
=\"$includedir\"
17412 eval additional_libdir
=\"$libdir\"
17414 exec_prefix
="$acl_save_exec_prefix"
17415 prefix
="$acl_save_prefix"
17418 additional_includedir
="$withval/include"
17419 additional_libdir
="$withval/lib"
17426 # Check whether --with-liblzma-type was given.
17427 if test "${with_liblzma_type+set}" = set; then :
17428 withval
=$with_liblzma_type; with_liblzma_type
=$withval
17430 with_liblzma_type
=auto
17433 lib_type
=`eval echo \$with_liblzma_type`
17440 names_already_handled
=
17441 names_next_round
='lzma '
17442 while test -n "$names_next_round"; do
17443 names_this_round
="$names_next_round"
17445 for name
in $names_this_round; do
17447 for n
in $names_already_handled; do
17448 if test "$n" = "$name"; then
17449 already_handled
=yes
17453 if test -z "$already_handled"; then
17454 names_already_handled
="$names_already_handled $name"
17455 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17456 eval value
=\"\
$HAVE_LIB$uppername\"
17457 if test -n "$value"; then
17458 if test "$value" = yes; then
17459 eval value
=\"\
$LIB$uppername\"
17460 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
17461 eval value
=\"\
$LTLIB$uppername\"
17462 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
17471 if test $use_additional = yes; then
17472 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
17473 found_dir
="$additional_libdir"
17474 found_so
="$additional_libdir/lib$name.$shlibext"
17475 if test -f "$additional_libdir/lib$name.la"; then
17476 found_la
="$additional_libdir/lib$name.la"
17478 elif test x
$lib_type != xshared
; then
17479 if test -f "$additional_libdir/lib$name.$libext"; then
17480 found_dir
="$additional_libdir"
17481 found_a
="$additional_libdir/lib$name.$libext"
17482 if test -f "$additional_libdir/lib$name.la"; then
17483 found_la
="$additional_libdir/lib$name.la"
17488 if test "X$found_dir" = "X"; then
17489 for x
in $LDFLAGS $LTLIBLZMA; do
17491 acl_save_prefix
="$prefix"
17492 prefix
="$acl_final_prefix"
17493 acl_save_exec_prefix
="$exec_prefix"
17494 exec_prefix
="$acl_final_exec_prefix"
17496 exec_prefix
="$acl_save_exec_prefix"
17497 prefix
="$acl_save_prefix"
17501 dir
=`echo "X$x" | sed -e 's/^X-L//'`
17502 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
17504 found_so
="$dir/lib$name.$shlibext"
17505 if test -f "$dir/lib$name.la"; then
17506 found_la
="$dir/lib$name.la"
17508 elif test x
$lib_type != xshared
; then
17509 if test -f "$dir/lib$name.$libext"; then
17511 found_a
="$dir/lib$name.$libext"
17512 if test -f "$dir/lib$name.la"; then
17513 found_la
="$dir/lib$name.la"
17519 if test "X$found_dir" != "X"; then
17524 if test "X$found_dir" != "X"; then
17525 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
17526 if test "X$found_so" != "X"; then
17527 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
17528 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17531 for x
in $ltrpathdirs; do
17532 if test "X$x" = "X$found_dir"; then
17537 if test -z "$haveit"; then
17538 ltrpathdirs
="$ltrpathdirs $found_dir"
17540 if test "$hardcode_direct" = yes; then
17541 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17543 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
17544 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17546 for x
in $rpathdirs; do
17547 if test "X$x" = "X$found_dir"; then
17552 if test -z "$haveit"; then
17553 rpathdirs
="$rpathdirs $found_dir"
17557 for x
in $LDFLAGS $LIBLZMA; do
17559 acl_save_prefix
="$prefix"
17560 prefix
="$acl_final_prefix"
17561 acl_save_exec_prefix
="$exec_prefix"
17562 exec_prefix
="$acl_final_exec_prefix"
17564 exec_prefix
="$acl_save_exec_prefix"
17565 prefix
="$acl_save_prefix"
17567 if test "X$x" = "X-L$found_dir"; then
17572 if test -z "$haveit"; then
17573 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
17575 if test "$hardcode_minus_L" != no
; then
17576 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17578 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
17584 if test "X$found_a" != "X"; then
17585 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
17587 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
17590 additional_includedir
=
17591 case "$found_dir" in
17593 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17594 additional_includedir
="$basedir/include"
17597 if test "X$additional_includedir" != "X"; then
17598 if test "X$additional_includedir" != "X/usr/include"; then
17600 if test "X$additional_includedir" = "X/usr/local/include"; then
17601 if test -n "$GCC"; then
17603 linux
*) haveit
=yes;;
17607 if test -z "$haveit"; then
17608 for x
in $CPPFLAGS $INCLZMA; do
17610 acl_save_prefix
="$prefix"
17611 prefix
="$acl_final_prefix"
17612 acl_save_exec_prefix
="$exec_prefix"
17613 exec_prefix
="$acl_final_exec_prefix"
17615 exec_prefix
="$acl_save_exec_prefix"
17616 prefix
="$acl_save_prefix"
17618 if test "X$x" = "X-I$additional_includedir"; then
17623 if test -z "$haveit"; then
17624 if test -d "$additional_includedir"; then
17625 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
17631 if test -n "$found_la"; then
17632 save_libdir
="$libdir"
17633 case "$found_la" in
17634 */* |
*\\*) .
"$found_la" ;;
17635 *) .
"./$found_la" ;;
17637 libdir
="$save_libdir"
17638 for dep
in $dependency_libs; do
17641 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
17642 if test "X$additional_libdir" != "X/usr/lib"; then
17644 if test "X$additional_libdir" = "X/usr/local/lib"; then
17645 if test -n "$GCC"; then
17647 linux
*) haveit
=yes;;
17651 if test -z "$haveit"; then
17653 for x
in $LDFLAGS $LIBLZMA; do
17655 acl_save_prefix
="$prefix"
17656 prefix
="$acl_final_prefix"
17657 acl_save_exec_prefix
="$exec_prefix"
17658 exec_prefix
="$acl_final_exec_prefix"
17660 exec_prefix
="$acl_save_exec_prefix"
17661 prefix
="$acl_save_prefix"
17663 if test "X$x" = "X-L$additional_libdir"; then
17668 if test -z "$haveit"; then
17669 if test -d "$additional_libdir"; then
17670 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
17674 for x
in $LDFLAGS $LTLIBLZMA; do
17676 acl_save_prefix
="$prefix"
17677 prefix
="$acl_final_prefix"
17678 acl_save_exec_prefix
="$exec_prefix"
17679 exec_prefix
="$acl_final_exec_prefix"
17681 exec_prefix
="$acl_save_exec_prefix"
17682 prefix
="$acl_save_prefix"
17684 if test "X$x" = "X-L$additional_libdir"; then
17689 if test -z "$haveit"; then
17690 if test -d "$additional_libdir"; then
17691 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
17698 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
17699 if test "$enable_rpath" != no
; then
17701 for x
in $rpathdirs; do
17702 if test "X$x" = "X$dir"; then
17707 if test -z "$haveit"; then
17708 rpathdirs
="$rpathdirs $dir"
17711 for x
in $ltrpathdirs; do
17712 if test "X$x" = "X$dir"; then
17717 if test -z "$haveit"; then
17718 ltrpathdirs
="$ltrpathdirs $dir"
17723 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17726 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17729 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
17730 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
17736 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
17737 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
17738 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
17740 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l:lib$name.$libext"
17741 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l:lib$name.$libext"
17748 if test "X$rpathdirs" != "X"; then
17749 if test -n "$hardcode_libdir_separator"; then
17751 for found_dir
in $rpathdirs; do
17752 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17754 acl_save_libdir
="$libdir"
17756 eval flag
=\"$hardcode_libdir_flag_spec\"
17757 libdir
="$acl_save_libdir"
17758 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
17760 for found_dir
in $rpathdirs; do
17761 acl_save_libdir
="$libdir"
17762 libdir
="$found_dir"
17763 eval flag
=\"$hardcode_libdir_flag_spec\"
17764 libdir
="$acl_save_libdir"
17765 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
17769 if test "X$ltrpathdirs" != "X"; then
17770 for found_dir
in $ltrpathdirs; do
17771 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
17776 ac_save_CPPFLAGS
="$CPPFLAGS"
17778 for element
in $INCLZMA; do
17780 for x
in $CPPFLAGS; do
17782 acl_save_prefix
="$prefix"
17783 prefix
="$acl_final_prefix"
17784 acl_save_exec_prefix
="$exec_prefix"
17785 exec_prefix
="$acl_final_exec_prefix"
17787 exec_prefix
="$acl_save_exec_prefix"
17788 prefix
="$acl_save_prefix"
17790 if test "X$x" = "X$element"; then
17795 if test -z "$haveit"; then
17796 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
17802 $as_echo_n "checking for liblzma... " >&6; }
17803 if ${ac_cv_liblzma+:} false
; then :
17804 $as_echo_n "(cached) " >&6
17807 ac_save_LIBS
="$LIBS"
17808 LIBS
="$LIBS $LIBLZMA"
17809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17810 /* end confdefs.h. */
17815 lzma_index_iter iter;
17816 lzma_index_iter_init (&iter, 0);
17817 lzma_mf_is_supported (LZMA_MF_HC3);
17822 if ac_fn_c_try_link
"$LINENO"; then :
17827 rm -f core conftest.err conftest.
$ac_objext \
17828 conftest
$ac_exeext conftest.
$ac_ext
17829 LIBS
="$ac_save_LIBS"
17832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
17833 $as_echo "$ac_cv_liblzma" >&6; }
17834 if test "$ac_cv_liblzma" = yes; then
17837 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
17840 $as_echo_n "checking how to link with liblzma... " >&6; }
17841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
17842 $as_echo "$LIBLZMA" >&6; }
17845 CPPFLAGS
="$ac_save_CPPFLAGS"
17855 if test "$HAVE_LIBLZMA" != yes; then
17856 if test "$with_lzma" = yes; then
17857 as_fn_error $?
"missing liblzma for --with-lzma" "$LINENO" 5
17863 LIBGUI
="../libgui/src/libgui.a"
17864 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
17873 *-*-cygwin* |
*-*-mingw* )
17882 if test "${enable_gdbtk}" = "yes"; then
17884 # Gdbtk must have an absolute path to srcdir in order to run
17885 # properly when not installed.
17888 GDBTK_SRC_DIR
=`pwd`
17893 # Ok, lets find the tcl configuration
17894 # First, look for one uninstalled.
17895 # the alternative search directory is invoked by --with-tcl
17898 if test x
"${no_tcl}" = x
; then
17899 # we reset no_tcl in case something fails here
17902 # Check whether --with-tcl was given.
17903 if test "${with_tcl+set}" = set; then :
17904 withval
=$with_tcl; with_tclconfig
=${withval}
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
17908 $as_echo_n "checking for Tcl configuration... " >&6; }
17909 if ${ac_cv_c_tclconfig+:} false
; then :
17910 $as_echo_n "(cached) " >&6
17914 # First check to see if --with-tcl was specified.
17916 *-*-cygwin*) platDir
="win" ;;
17917 *) platDir
="unix" ;;
17919 if test x
"${with_tclconfig}" != x
; then
17920 if test -f "${with_tclconfig}/tclConfig.sh" ; then
17921 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
17923 as_fn_error $?
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
17927 # then check for a private Tcl installation
17928 if test x
"${ac_cv_c_tclconfig}" = x
; then
17931 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17932 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
17933 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
17935 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17936 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
17937 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
17939 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17940 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
17941 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
17942 if test -f "$i/$platDir/tclConfig.sh" ; then
17943 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
17949 # on Darwin, check in Framework installation locations
17950 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
17951 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
17952 `ls -d /Library/Frameworks 2>/dev/null` \
17953 `ls -d /Network/Library/Frameworks 2>/dev/null` \
17954 `ls -d /System/Library/Frameworks 2>/dev/null` \
17956 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
17957 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
17963 # check in a few common install locations
17964 if test x
"${ac_cv_c_tclconfig}" = x
; then
17965 for i
in `ls -d ${libdir} 2>/dev/null` \
17966 `ls -d ${exec_prefix}/lib 2>/dev/null` \
17967 `ls -d ${prefix}/lib 2>/dev/null` \
17968 `ls -d /usr/local/lib 2>/dev/null` \
17969 `ls -d /usr/contrib/lib 2>/dev/null` \
17970 `ls -d /usr/lib 2>/dev/null` \
17972 if test -f "$i/tclConfig.sh" ; then
17973 ac_cv_c_tclconfig
=`(cd $i; pwd)`
17979 # check in a few other private locations
17980 if test x
"${ac_cv_c_tclconfig}" = x
; then
17983 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17984 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
17985 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
17986 if test -f "$i/$platDir/tclConfig.sh" ; then
17987 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
17996 if test x
"${ac_cv_c_tclconfig}" = x
; then
17997 TCL_BIN_DIR
="# no Tcl configs found"
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
17999 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
18002 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
18003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
18004 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
18009 # If $no_tk is nonempty, then we can't do Tk, and there is no
18010 # point to doing Tcl.
18013 # Ok, lets find the tk configuration
18014 # First, look for one uninstalled.
18015 # the alternative search directory is invoked by --with-tk
18018 if test x
"${no_tk}" = x
; then
18019 # we reset no_tk in case something fails here
18022 # Check whether --with-tk was given.
18023 if test "${with_tk+set}" = set; then :
18024 withval
=$with_tk; with_tkconfig
=${withval}
18027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
18028 $as_echo_n "checking for Tk configuration... " >&6; }
18029 if ${ac_cv_c_tkconfig+:} false
; then :
18030 $as_echo_n "(cached) " >&6
18034 # First check to see if --with-tkconfig was specified.
18035 if test x
"${with_tkconfig}" != x
; then
18036 if test -f "${with_tkconfig}/tkConfig.sh" ; then
18037 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
18039 as_fn_error $?
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
18043 # then check for a private Tk library
18045 *-*-cygwin*) platDir
="win" ;;
18046 *) platDir
="unix" ;;
18048 if test x
"${ac_cv_c_tkconfig}" = x
; then
18051 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
18052 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
18053 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
18055 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
18056 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
18057 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
18059 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
18060 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
18061 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
18062 if test -f "$i/$platDir/tkConfig.sh" ; then
18063 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
18069 # on Darwin, check in Framework installation locations
18070 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
18071 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
18072 `ls -d /Library/Frameworks 2>/dev/null` \
18073 `ls -d /Network/Library/Frameworks 2>/dev/null` \
18074 `ls -d /System/Library/Frameworks 2>/dev/null` \
18076 if test -f "$i/Tk.framework/tkConfig.sh" ; then
18077 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
18083 # check in a few common install locations
18084 if test x
"${ac_cv_c_tkconfig}" = x
; then
18085 for i
in `ls -d ${libdir} 2>/dev/null` \
18086 `ls -d ${exec_prefix}/lib 2>/dev/null` \
18087 `ls -d ${prefix}/lib 2>/dev/null` \
18088 `ls -d /usr/local/lib 2>/dev/null` \
18089 `ls -d /usr/contrib/lib 2>/dev/null` \
18090 `ls -d /usr/lib 2>/dev/null` \
18092 if test -f "$i/tkConfig.sh" ; then
18093 ac_cv_c_tkconfig
=`(cd $i; pwd)`
18098 # check in a few other private locations
18099 if test x
"${ac_cv_c_tkconfig}" = x
; then
18102 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
18103 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
18104 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
18105 if test -f "$i/$platDir/tkConfig.sh" ; then
18106 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
18115 if test x
"${ac_cv_c_tkconfig}" = x
; then
18116 TK_BIN_DIR
="# no Tk configs found"
18117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
18118 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
18121 TK_BIN_DIR
=${ac_cv_c_tkconfig}
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
18123 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
18128 if test -z "${no_tcl}" -a -z "${no_tk}"; then
18130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
18131 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
18133 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
18135 $as_echo "loading" >&6; }
18136 .
${TCL_BIN_DIR}/tclConfig.sh
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
18139 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
18142 # eval is required to do the TCL_DBGX substitution
18143 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
18144 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
18146 # If the TCL_BIN_DIR is the build directory (not the install directory),
18147 # then set the common variable name to the value of the build variables.
18148 # For example, the variable TCL_LIB_SPEC will be set to the value
18149 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
18150 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
18151 # installed and uninstalled version of Tcl.
18152 if test -f "${TCL_BIN_DIR}/Makefile" ; then
18153 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
18154 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
18155 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
18156 elif test "`uname -s`" = "Darwin"; then
18157 # If Tcl was built as a framework, attempt to use the libraries
18158 # from the framework at the given location so that linking works
18159 # against Tcl.framework installed in an arbitrary location.
18160 case ${TCL_DEFS} in
18162 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
18163 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
18164 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
18165 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
18166 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
18171 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
18172 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
18173 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
18179 # eval is required to do the TCL_DBGX substitution
18180 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
18181 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
18182 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
18183 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
18199 # Check for in-tree tcl
18206 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
18210 # Find Tcl private headers
18211 if test x
"${intree}" = xno
; then
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
18214 $as_echo_n "checking for Tcl private headers... " >&6; }
18216 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
18217 if test -f ${dir}/tclInt.h
; then
18221 if test x
"${private_dir}" = x
; then
18222 as_fn_error $?
"could not find private Tcl headers" "$LINENO" 5
18224 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
18226 $as_echo "${private_dir}" >&6; }
18229 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
18230 TCL_LIBRARY
="${TCL_LIB_SPEC}"
18233 # If building tcl in the same src tree, private headers
18234 # are not needed, but we need to be sure to use the right
18236 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
18237 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
18238 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
18246 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
18248 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
18250 $as_echo "loading" >&6; }
18251 .
${TK_BIN_DIR}/tkConfig.sh
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
18254 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
18257 # eval is required to do the TK_DBGX substitution
18258 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
18259 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
18261 # If the TK_BIN_DIR is the build directory (not the install directory),
18262 # then set the common variable name to the value of the build variables.
18263 # For example, the variable TK_LIB_SPEC will be set to the value
18264 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
18265 # instead of TK_BUILD_LIB_SPEC since it will work with both an
18266 # installed and uninstalled version of Tcl.
18267 if test -f "${TK_BIN_DIR}/Makefile" ; then
18268 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
18269 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
18270 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
18271 elif test "`uname -s`" = "Darwin"; then
18272 # If Tk was built as a framework, attempt to use the libraries
18273 # from the framework at the given location so that linking works
18274 # against Tk.framework installed in an arbitrary location.
18277 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
18278 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
18279 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
18280 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
18281 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
18286 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
18287 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
18288 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
18294 # eval is required to do the TK_DBGX substitution
18295 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
18296 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
18297 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
18298 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
18313 # Check for in-tree Tk
18315 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
18319 # Find Tk private headers
18320 if test x
"${intree}" = xno
; then
18322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
18323 $as_echo_n "checking for Tk private headers... " >&6; }
18325 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
18326 if test -f ${dir}/tkInt.h
; then
18330 if test x
"${private_dir}" = x
; then
18331 as_fn_error $?
"could not find Tk private headers" "$LINENO" 5
18333 TK_PRIVATE_INCLUDE
="-I${private_dir}"
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
18335 $as_echo "${private_dir}" >&6; }
18338 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
18339 TK_LIBRARY
=${TK_LIB_SPEC}
18342 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
18343 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
18344 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
18351 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
18353 # Include some libraries that Tcl and Tk want.
18354 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
18355 # Yes, the ordering seems wrong here. But it isn't.
18356 # TK_LIBS is the list of libraries that need to be linked
18357 # after Tcl/Tk. Note that this isn't put into LIBS. If it
18358 # were in LIBS then any link tests after this point would
18359 # try to include things like `$(LIBGUI)', which wouldn't work.
18360 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
18362 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
18363 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
18364 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
18365 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
18366 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
18367 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
18368 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
18370 if test x
"$gdb_cv_os_cygwin" = xyes
; then
18371 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
18372 WIN32LDAPP
="-Wl,--subsystem,console"
18373 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
18376 subdirs
="$subdirs gdbtk"
18388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
18389 $as_echo_n "checking for X... " >&6; }
18392 # Check whether --with-x was given.
18393 if test "${with_x+set}" = set; then :
18397 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18398 if test "x$with_x" = xno
; then
18399 # The user explicitly disabled X.
18402 case $x_includes,$x_libraries in #(
18403 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
18404 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
18405 $as_echo_n "(cached) " >&6
18407 # One or both of the vars are not set, and there is no cached value.
18408 ac_x_includes
=no ac_x_libraries
=no
18409 rm -f -r conftest.dir
18410 if mkdir conftest.dir
; then
18412 cat >Imakefile
<<'_ACEOF'
18414 @echo incroot='${INCROOT}'
18416 @echo usrlibdir='${USRLIBDIR}'
18418 @echo libdir='${LIBDIR}'
18420 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
18421 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
18422 for ac_var
in incroot usrlibdir libdir
; do
18423 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18425 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18426 for ac_extension
in a so sl dylib la dll
; do
18427 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18428 test -f "$ac_im_libdir/libX11.$ac_extension"; then
18429 ac_im_usrlibdir
=$ac_im_libdir; break
18432 # Screen out bogus values from the imake configuration. They are
18433 # bogus both because they are the default anyway, and because
18434 # using them would break gcc on systems where it needs fixed includes.
18435 case $ac_im_incroot in
18436 /usr
/include
) ac_x_includes
= ;;
18437 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
18439 case $ac_im_usrlibdir in
18440 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
18441 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
18445 rm -f -r conftest.dir
18448 # Standard set of common directories for X headers.
18449 # Check X11 before X11Rn because it is often a symlink to the current release.
18463 /usr/local/X11/include
18464 /usr/local/X11R7/include
18465 /usr/local/X11R6/include
18466 /usr/local/X11R5/include
18467 /usr/local/X11R4/include
18469 /usr/local/include/X11
18470 /usr/local/include/X11R7
18471 /usr/local/include/X11R6
18472 /usr/local/include/X11R5
18473 /usr/local/include/X11R4
18477 /usr/XFree86/include/X11
18481 /usr/unsupported/include
18482 /usr/athena/include
18483 /usr/local/x11r5/include
18484 /usr/lpp/Xamples/include
18486 /usr/openwin/include
18487 /usr/openwin/share/include'
18489 if test "$ac_x_includes" = no
; then
18490 # Guess where to find include files, by looking for Xlib.h.
18491 # First, try using that file with no special directory specified.
18492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18493 /* end confdefs.h. */
18494 #include <X11/Xlib.h>
18496 if ac_fn_c_try_cpp
"$LINENO"; then :
18497 # We can compile using X headers with no special include directory.
18500 for ac_dir
in $ac_x_header_dirs; do
18501 if test -r "$ac_dir/X11/Xlib.h"; then
18502 ac_x_includes
=$ac_dir
18507 rm -f conftest.err conftest.i conftest.
$ac_ext
18508 fi # $ac_x_includes = no
18510 if test "$ac_x_libraries" = no
; then
18511 # Check for the libraries.
18512 # See if we find them without any special options.
18513 # Don't add to $LIBS permanently.
18516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18517 /* end confdefs.h. */
18518 #include <X11/Xlib.h>
18527 if ac_fn_c_try_link
"$LINENO"; then :
18529 # We can link X programs with no special library path.
18533 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18535 # Don't even attempt the hair of trying to link an X program!
18536 for ac_extension
in a so sl dylib la dll
; do
18537 if test -r "$ac_dir/libX11.$ac_extension"; then
18538 ac_x_libraries
=$ac_dir
18544 rm -f core conftest.err conftest.
$ac_objext \
18545 conftest
$ac_exeext conftest.
$ac_ext
18546 fi # $ac_x_libraries = no
18548 case $ac_x_includes,$ac_x_libraries in #(
18549 no
,* |
*,no |
*\'*)
18550 # Didn't find X, or a directory has "'" in its name.
18551 ac_cv_have_x
="have_x=no";; #(
18553 # Record where we found X for the cache.
18554 ac_cv_have_x
="have_x=yes\
18555 ac_x_includes='$ac_x_includes'\
18556 ac_x_libraries='$ac_x_libraries'"
18562 eval "$ac_cv_have_x"
18565 if test "$have_x" != yes; then
18566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
18567 $as_echo "$have_x" >&6; }
18570 # If each of the values was on the command line, it overrides each guess.
18571 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
18572 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
18573 # Update the cache value to reflect the command line values.
18574 ac_cv_have_x
="have_x=yes\
18575 ac_x_includes='$x_includes'\
18576 ac_x_libraries='$x_libraries'"
18577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
18578 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
18582 # Unlike the sim directory, whether a simulator is linked is controlled by
18583 # presence of a gdb_sim definition in the target configure.tgt entry.
18584 # This code just checks for a few cases where we'd like to ignore those
18585 # definitions, even when they're present in the '.mt' file. These cases
18586 # are when --disable-sim is specified, or if the simulator directory is
18587 # not part of the source tree.
18589 # Check whether --enable-sim was given.
18590 if test "${enable_sim+set}" = set; then :
18591 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
18592 echo "enableval = ${enableval}";
18593 case "${enableval}" in
18594 yes) ignore_sim
=false
;;
18595 no
) ignore_sim
=true
;;
18596 *) ignore_sim
=false
;;
18603 if test ! -d "${srcdir}/../sim"; then
18609 if test "${ignore_sim}" = "false"; then
18610 if test x
"${gdb_sim}" != x
; then
18612 SIM_OBS
="remote-sim.o"
18614 $as_echo "#define WITH_SIM 1" >>confdefs.h
18617 # Some tdep code should only be compiled in when the ppc sim is
18618 # built. PR sim/13418.
18622 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
18642 # List of host floatformats.
18644 cat >>confdefs.h
<<_ACEOF
18645 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
18649 cat >>confdefs.h
<<_ACEOF
18650 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
18654 cat >>confdefs.h
<<_ACEOF
18655 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
18659 # target_subdir is used by the testsuite to find the target libraries.
18661 if test "${host}" != "${target}"; then
18662 target_subdir
="${target_alias}/"
18666 # Import nat definitions.
18667 nat_makefile_frag
=/dev
/null
18668 if test "${gdb_native}" = "yes"; then
18669 .
${srcdir}/configure.nat
18670 nativefile
=$NAT_FILE
18683 if test x
"${gdb_osabi}" != x
; then
18685 cat >>confdefs.h
<<_ACEOF
18686 #define GDB_OSABI_DEFAULT $gdb_osabi
18691 # Setup possible use of libbacktrace.
18692 # Check whether --enable-libbacktrace was given.
18693 if test "${enable_libbacktrace+set}" = set; then :
18694 enableval
=$enable_libbacktrace; case "${enableval}" in
18695 yes) enable_libbacktrace
=yes ;;
18696 no
) enable_libbacktrace
=no
;;
18697 *) as_fn_error $?
"bad value ${enableval} for --enable-libbacktrace option" "$LINENO" 5 ;;
18700 enable_libbacktrace
=yes
18704 if test "${enable_libbacktrace}" == "yes"; then
18705 LIBBACKTRACE_INC
="-I$srcdir/../libbacktrace/ -I../libbacktrace/"
18706 LIBBACKTRACE_LIB
=..
/libbacktrace
/.libs
/libbacktrace.a
18708 $as_echo "#define HAVE_LIBBACKTRACE 1" >>confdefs.h
18718 # Check for babeltrace and babeltrace-ctf
18720 # Check whether --with-babeltrace was given.
18721 if test "${with_babeltrace+set}" = set; then :
18722 withval
=$with_babeltrace;
18724 with_babeltrace
=auto
18727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
18728 $as_echo_n "checking whether to use babeltrace... " >&6; }
18729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
18730 $as_echo "$with_babeltrace" >&6; }
18732 if test "x$with_babeltrace" = "xno"; then
18733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
18734 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
18736 # Append -Werror to CFLAGS so that configure can catch the warning
18737 # "assignment from incompatible pointer type", which is related to
18738 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
18739 # in GDB, while babeltrace 1.0.3 is broken.
18740 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
18741 # safe to save and restore CFLAGS here.
18742 saved_CFLAGS
=$CFLAGS
18743 CFLAGS
="$CFLAGS -Werror"
18754 acl_save_prefix
="$prefix"
18755 prefix
="$acl_final_prefix"
18756 acl_save_exec_prefix
="$exec_prefix"
18757 exec_prefix
="$acl_final_exec_prefix"
18759 eval additional_includedir
=\"$includedir\"
18760 eval additional_libdir
=\"$libdir\"
18762 exec_prefix
="$acl_save_exec_prefix"
18763 prefix
="$acl_save_prefix"
18766 # Check whether --with-libbabeltrace-prefix was given.
18767 if test "${with_libbabeltrace_prefix+set}" = set; then :
18768 withval
=$with_libbabeltrace_prefix;
18769 if test "X$withval" = "Xno"; then
18772 if test "X$withval" = "X"; then
18774 acl_save_prefix
="$prefix"
18775 prefix
="$acl_final_prefix"
18776 acl_save_exec_prefix
="$exec_prefix"
18777 exec_prefix
="$acl_final_exec_prefix"
18779 eval additional_includedir
=\"$includedir\"
18780 eval additional_libdir
=\"$libdir\"
18782 exec_prefix
="$acl_save_exec_prefix"
18783 prefix
="$acl_save_prefix"
18786 additional_includedir
="$withval/include"
18787 additional_libdir
="$withval/lib"
18794 # Check whether --with-libbabeltrace-type was given.
18795 if test "${with_libbabeltrace_type+set}" = set; then :
18796 withval
=$with_libbabeltrace_type; with_libbabeltrace_type
=$withval
18798 with_libbabeltrace_type
=auto
18801 lib_type
=`eval echo \$with_libbabeltrace_type`
18808 names_already_handled
=
18809 names_next_round
='babeltrace babeltrace-ctf'
18810 while test -n "$names_next_round"; do
18811 names_this_round
="$names_next_round"
18813 for name
in $names_this_round; do
18815 for n
in $names_already_handled; do
18816 if test "$n" = "$name"; then
18817 already_handled
=yes
18821 if test -z "$already_handled"; then
18822 names_already_handled
="$names_already_handled $name"
18823 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18824 eval value
=\"\
$HAVE_LIB$uppername\"
18825 if test -n "$value"; then
18826 if test "$value" = yes; then
18827 eval value
=\"\
$LIB$uppername\"
18828 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
18829 eval value
=\"\
$LTLIB$uppername\"
18830 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
18839 if test $use_additional = yes; then
18840 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18841 found_dir
="$additional_libdir"
18842 found_so
="$additional_libdir/lib$name.$shlibext"
18843 if test -f "$additional_libdir/lib$name.la"; then
18844 found_la
="$additional_libdir/lib$name.la"
18846 elif test x
$lib_type != xshared
; then
18847 if test -f "$additional_libdir/lib$name.$libext"; then
18848 found_dir
="$additional_libdir"
18849 found_a
="$additional_libdir/lib$name.$libext"
18850 if test -f "$additional_libdir/lib$name.la"; then
18851 found_la
="$additional_libdir/lib$name.la"
18856 if test "X$found_dir" = "X"; then
18857 for x
in $LDFLAGS $LTLIBBABELTRACE; do
18859 acl_save_prefix
="$prefix"
18860 prefix
="$acl_final_prefix"
18861 acl_save_exec_prefix
="$exec_prefix"
18862 exec_prefix
="$acl_final_exec_prefix"
18864 exec_prefix
="$acl_save_exec_prefix"
18865 prefix
="$acl_save_prefix"
18869 dir
=`echo "X$x" | sed -e 's/^X-L//'`
18870 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18872 found_so
="$dir/lib$name.$shlibext"
18873 if test -f "$dir/lib$name.la"; then
18874 found_la
="$dir/lib$name.la"
18876 elif test x
$lib_type != xshared
; then
18877 if test -f "$dir/lib$name.$libext"; then
18879 found_a
="$dir/lib$name.$libext"
18880 if test -f "$dir/lib$name.la"; then
18881 found_la
="$dir/lib$name.la"
18887 if test "X$found_dir" != "X"; then
18892 if test "X$found_dir" != "X"; then
18893 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
18894 if test "X$found_so" != "X"; then
18895 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
18896 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18899 for x
in $ltrpathdirs; do
18900 if test "X$x" = "X$found_dir"; then
18905 if test -z "$haveit"; then
18906 ltrpathdirs
="$ltrpathdirs $found_dir"
18908 if test "$hardcode_direct" = yes; then
18909 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18911 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
18912 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18914 for x
in $rpathdirs; do
18915 if test "X$x" = "X$found_dir"; then
18920 if test -z "$haveit"; then
18921 rpathdirs
="$rpathdirs $found_dir"
18925 for x
in $LDFLAGS $LIBBABELTRACE; do
18927 acl_save_prefix
="$prefix"
18928 prefix
="$acl_final_prefix"
18929 acl_save_exec_prefix
="$exec_prefix"
18930 exec_prefix
="$acl_final_exec_prefix"
18932 exec_prefix
="$acl_save_exec_prefix"
18933 prefix
="$acl_save_prefix"
18935 if test "X$x" = "X-L$found_dir"; then
18940 if test -z "$haveit"; then
18941 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
18943 if test "$hardcode_minus_L" != no
; then
18944 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18946 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
18952 if test "X$found_a" != "X"; then
18953 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
18955 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
18958 additional_includedir
=
18959 case "$found_dir" in
18961 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18962 additional_includedir
="$basedir/include"
18965 if test "X$additional_includedir" != "X"; then
18966 if test "X$additional_includedir" != "X/usr/include"; then
18968 if test "X$additional_includedir" = "X/usr/local/include"; then
18969 if test -n "$GCC"; then
18971 linux
*) haveit
=yes;;
18975 if test -z "$haveit"; then
18976 for x
in $CPPFLAGS $INCBABELTRACE; do
18978 acl_save_prefix
="$prefix"
18979 prefix
="$acl_final_prefix"
18980 acl_save_exec_prefix
="$exec_prefix"
18981 exec_prefix
="$acl_final_exec_prefix"
18983 exec_prefix
="$acl_save_exec_prefix"
18984 prefix
="$acl_save_prefix"
18986 if test "X$x" = "X-I$additional_includedir"; then
18991 if test -z "$haveit"; then
18992 if test -d "$additional_includedir"; then
18993 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
18999 if test -n "$found_la"; then
19000 save_libdir
="$libdir"
19001 case "$found_la" in
19002 */* |
*\\*) .
"$found_la" ;;
19003 *) .
"./$found_la" ;;
19005 libdir
="$save_libdir"
19006 for dep
in $dependency_libs; do
19009 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
19010 if test "X$additional_libdir" != "X/usr/lib"; then
19012 if test "X$additional_libdir" = "X/usr/local/lib"; then
19013 if test -n "$GCC"; then
19015 linux
*) haveit
=yes;;
19019 if test -z "$haveit"; then
19021 for x
in $LDFLAGS $LIBBABELTRACE; do
19023 acl_save_prefix
="$prefix"
19024 prefix
="$acl_final_prefix"
19025 acl_save_exec_prefix
="$exec_prefix"
19026 exec_prefix
="$acl_final_exec_prefix"
19028 exec_prefix
="$acl_save_exec_prefix"
19029 prefix
="$acl_save_prefix"
19031 if test "X$x" = "X-L$additional_libdir"; then
19036 if test -z "$haveit"; then
19037 if test -d "$additional_libdir"; then
19038 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
19042 for x
in $LDFLAGS $LTLIBBABELTRACE; do
19044 acl_save_prefix
="$prefix"
19045 prefix
="$acl_final_prefix"
19046 acl_save_exec_prefix
="$exec_prefix"
19047 exec_prefix
="$acl_final_exec_prefix"
19049 exec_prefix
="$acl_save_exec_prefix"
19050 prefix
="$acl_save_prefix"
19052 if test "X$x" = "X-L$additional_libdir"; then
19057 if test -z "$haveit"; then
19058 if test -d "$additional_libdir"; then
19059 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
19066 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
19067 if test "$enable_rpath" != no
; then
19069 for x
in $rpathdirs; do
19070 if test "X$x" = "X$dir"; then
19075 if test -z "$haveit"; then
19076 rpathdirs
="$rpathdirs $dir"
19079 for x
in $ltrpathdirs; do
19080 if test "X$x" = "X$dir"; then
19085 if test -z "$haveit"; then
19086 ltrpathdirs
="$ltrpathdirs $dir"
19091 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19094 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19097 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
19098 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
19104 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
19105 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
19106 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
19108 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l:lib$name.$libext"
19109 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l:lib$name.$libext"
19116 if test "X$rpathdirs" != "X"; then
19117 if test -n "$hardcode_libdir_separator"; then
19119 for found_dir
in $rpathdirs; do
19120 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
19122 acl_save_libdir
="$libdir"
19124 eval flag
=\"$hardcode_libdir_flag_spec\"
19125 libdir
="$acl_save_libdir"
19126 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
19128 for found_dir
in $rpathdirs; do
19129 acl_save_libdir
="$libdir"
19130 libdir
="$found_dir"
19131 eval flag
=\"$hardcode_libdir_flag_spec\"
19132 libdir
="$acl_save_libdir"
19133 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
19137 if test "X$ltrpathdirs" != "X"; then
19138 for found_dir
in $ltrpathdirs; do
19139 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
19144 ac_save_CPPFLAGS
="$CPPFLAGS"
19146 for element
in $INCBABELTRACE; do
19148 for x
in $CPPFLAGS; do
19150 acl_save_prefix
="$prefix"
19151 prefix
="$acl_final_prefix"
19152 acl_save_exec_prefix
="$exec_prefix"
19153 exec_prefix
="$acl_final_exec_prefix"
19155 exec_prefix
="$acl_save_exec_prefix"
19156 prefix
="$acl_save_prefix"
19158 if test "X$x" = "X$element"; then
19163 if test -z "$haveit"; then
19164 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
19169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
19170 $as_echo_n "checking for libbabeltrace... " >&6; }
19171 if ${ac_cv_libbabeltrace+:} false
; then :
19172 $as_echo_n "(cached) " >&6
19175 ac_save_LIBS
="$LIBS"
19176 LIBS
="$LIBS $LIBBABELTRACE"
19177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19178 /* end confdefs.h. */
19179 #include <babeltrace/babeltrace.h>
19180 #include <babeltrace/ctf/events.h>
19181 #include <babeltrace/ctf/iterator.h>
19185 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
19186 struct bt_ctf_event *event = NULL;
19187 const struct bt_definition *scope;
19189 pos->type = BT_SEEK_BEGIN;
19190 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
19191 scope = bt_ctf_get_top_level_scope (event,
19192 BT_STREAM_EVENT_HEADER);
19193 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
19199 if ac_fn_c_try_link
"$LINENO"; then :
19200 ac_cv_libbabeltrace
=yes
19202 ac_cv_libbabeltrace
=no
19204 rm -f core conftest.err conftest.
$ac_objext \
19205 conftest
$ac_exeext conftest.
$ac_ext
19206 LIBS
="$ac_save_LIBS"
19209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
19210 $as_echo "$ac_cv_libbabeltrace" >&6; }
19211 if test "$ac_cv_libbabeltrace" = yes; then
19212 HAVE_LIBBABELTRACE
=yes
19214 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
19216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
19217 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
19218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
19219 $as_echo "$LIBBABELTRACE" >&6; }
19221 HAVE_LIBBABELTRACE
=no
19222 CPPFLAGS
="$ac_save_CPPFLAGS"
19232 CFLAGS
=$saved_CFLAGS
19234 if test "$HAVE_LIBBABELTRACE" != yes; then
19235 if test "$with_babeltrace" = yes; then
19236 as_fn_error $?
"babeltrace is missing or unusable" "$LINENO" 5
19238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
19239 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
19246 # Check whether --with-xxhash was given.
19247 if test "${with_xxhash+set}" = set; then :
19248 withval
=$with_xxhash;
19254 # Check whether --enable-libctf was given.
19255 if test "${enable_libctf+set}" = set; then :
19256 enableval
=$enable_libctf;
19257 case "$enableval" in
19259 *) as_fn_error $?
"Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
19267 if test x
${enable_static} = xno
; then
19268 LIBCTF
="-Wl,--rpath,../libctf/.libs ../libctf/.libs/libctf.so"
19269 CTF_DEPS
="../libctf/.libs/libctf.so"
19271 LIBCTF
="../libctf/.libs/libctf.a"
19274 if test "${enable_libctf}" = yes; then
19276 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
19285 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
19288 if test "x$with_xxhash" != "xno"; then
19299 acl_save_prefix
="$prefix"
19300 prefix
="$acl_final_prefix"
19301 acl_save_exec_prefix
="$exec_prefix"
19302 exec_prefix
="$acl_final_exec_prefix"
19304 eval additional_includedir
=\"$includedir\"
19305 eval additional_libdir
=\"$libdir\"
19307 exec_prefix
="$acl_save_exec_prefix"
19308 prefix
="$acl_save_prefix"
19311 # Check whether --with-libxxhash-prefix was given.
19312 if test "${with_libxxhash_prefix+set}" = set; then :
19313 withval
=$with_libxxhash_prefix;
19314 if test "X$withval" = "Xno"; then
19317 if test "X$withval" = "X"; then
19319 acl_save_prefix
="$prefix"
19320 prefix
="$acl_final_prefix"
19321 acl_save_exec_prefix
="$exec_prefix"
19322 exec_prefix
="$acl_final_exec_prefix"
19324 eval additional_includedir
=\"$includedir\"
19325 eval additional_libdir
=\"$libdir\"
19327 exec_prefix
="$acl_save_exec_prefix"
19328 prefix
="$acl_save_prefix"
19331 additional_includedir
="$withval/include"
19332 additional_libdir
="$withval/lib"
19339 # Check whether --with-libxxhash-type was given.
19340 if test "${with_libxxhash_type+set}" = set; then :
19341 withval
=$with_libxxhash_type; with_libxxhash_type
=$withval
19343 with_libxxhash_type
=auto
19346 lib_type
=`eval echo \$with_libxxhash_type`
19353 names_already_handled
=
19354 names_next_round
='xxhash '
19355 while test -n "$names_next_round"; do
19356 names_this_round
="$names_next_round"
19358 for name
in $names_this_round; do
19360 for n
in $names_already_handled; do
19361 if test "$n" = "$name"; then
19362 already_handled
=yes
19366 if test -z "$already_handled"; then
19367 names_already_handled
="$names_already_handled $name"
19368 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
19369 eval value
=\"\
$HAVE_LIB$uppername\"
19370 if test -n "$value"; then
19371 if test "$value" = yes; then
19372 eval value
=\"\
$LIB$uppername\"
19373 test -z "$value" || LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$value"
19374 eval value
=\"\
$LTLIB$uppername\"
19375 test -z "$value" || LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$value"
19384 if test $use_additional = yes; then
19385 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
19386 found_dir
="$additional_libdir"
19387 found_so
="$additional_libdir/lib$name.$shlibext"
19388 if test -f "$additional_libdir/lib$name.la"; then
19389 found_la
="$additional_libdir/lib$name.la"
19391 elif test x
$lib_type != xshared
; then
19392 if test -f "$additional_libdir/lib$name.$libext"; then
19393 found_dir
="$additional_libdir"
19394 found_a
="$additional_libdir/lib$name.$libext"
19395 if test -f "$additional_libdir/lib$name.la"; then
19396 found_la
="$additional_libdir/lib$name.la"
19401 if test "X$found_dir" = "X"; then
19402 for x
in $LDFLAGS $LTLIBXXHASH; do
19404 acl_save_prefix
="$prefix"
19405 prefix
="$acl_final_prefix"
19406 acl_save_exec_prefix
="$exec_prefix"
19407 exec_prefix
="$acl_final_exec_prefix"
19409 exec_prefix
="$acl_save_exec_prefix"
19410 prefix
="$acl_save_prefix"
19414 dir
=`echo "X$x" | sed -e 's/^X-L//'`
19415 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
19417 found_so
="$dir/lib$name.$shlibext"
19418 if test -f "$dir/lib$name.la"; then
19419 found_la
="$dir/lib$name.la"
19421 elif test x
$lib_type != xshared
; then
19422 if test -f "$dir/lib$name.$libext"; then
19424 found_a
="$dir/lib$name.$libext"
19425 if test -f "$dir/lib$name.la"; then
19426 found_la
="$dir/lib$name.la"
19432 if test "X$found_dir" != "X"; then
19437 if test "X$found_dir" != "X"; then
19438 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$found_dir -l$name"
19439 if test "X$found_so" != "X"; then
19440 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
19441 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19444 for x
in $ltrpathdirs; do
19445 if test "X$x" = "X$found_dir"; then
19450 if test -z "$haveit"; then
19451 ltrpathdirs
="$ltrpathdirs $found_dir"
19453 if test "$hardcode_direct" = yes; then
19454 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19456 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
19457 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19459 for x
in $rpathdirs; do
19460 if test "X$x" = "X$found_dir"; then
19465 if test -z "$haveit"; then
19466 rpathdirs
="$rpathdirs $found_dir"
19470 for x
in $LDFLAGS $LIBXXHASH; do
19472 acl_save_prefix
="$prefix"
19473 prefix
="$acl_final_prefix"
19474 acl_save_exec_prefix
="$exec_prefix"
19475 exec_prefix
="$acl_final_exec_prefix"
19477 exec_prefix
="$acl_save_exec_prefix"
19478 prefix
="$acl_save_prefix"
19480 if test "X$x" = "X-L$found_dir"; then
19485 if test -z "$haveit"; then
19486 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir"
19488 if test "$hardcode_minus_L" != no
; then
19489 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19491 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
19497 if test "X$found_a" != "X"; then
19498 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_a"
19500 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir -l$name"
19503 additional_includedir
=
19504 case "$found_dir" in
19506 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
19507 additional_includedir
="$basedir/include"
19510 if test "X$additional_includedir" != "X"; then
19511 if test "X$additional_includedir" != "X/usr/include"; then
19513 if test "X$additional_includedir" = "X/usr/local/include"; then
19514 if test -n "$GCC"; then
19516 linux
*) haveit
=yes;;
19520 if test -z "$haveit"; then
19521 for x
in $CPPFLAGS $INCXXHASH; do
19523 acl_save_prefix
="$prefix"
19524 prefix
="$acl_final_prefix"
19525 acl_save_exec_prefix
="$exec_prefix"
19526 exec_prefix
="$acl_final_exec_prefix"
19528 exec_prefix
="$acl_save_exec_prefix"
19529 prefix
="$acl_save_prefix"
19531 if test "X$x" = "X-I$additional_includedir"; then
19536 if test -z "$haveit"; then
19537 if test -d "$additional_includedir"; then
19538 INCXXHASH
="${INCXXHASH}${INCXXHASH:+ }-I$additional_includedir"
19544 if test -n "$found_la"; then
19545 save_libdir
="$libdir"
19546 case "$found_la" in
19547 */* |
*\\*) .
"$found_la" ;;
19548 *) .
"./$found_la" ;;
19550 libdir
="$save_libdir"
19551 for dep
in $dependency_libs; do
19554 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
19555 if test "X$additional_libdir" != "X/usr/lib"; then
19557 if test "X$additional_libdir" = "X/usr/local/lib"; then
19558 if test -n "$GCC"; then
19560 linux
*) haveit
=yes;;
19564 if test -z "$haveit"; then
19566 for x
in $LDFLAGS $LIBXXHASH; do
19568 acl_save_prefix
="$prefix"
19569 prefix
="$acl_final_prefix"
19570 acl_save_exec_prefix
="$exec_prefix"
19571 exec_prefix
="$acl_final_exec_prefix"
19573 exec_prefix
="$acl_save_exec_prefix"
19574 prefix
="$acl_save_prefix"
19576 if test "X$x" = "X-L$additional_libdir"; then
19581 if test -z "$haveit"; then
19582 if test -d "$additional_libdir"; then
19583 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$additional_libdir"
19587 for x
in $LDFLAGS $LTLIBXXHASH; do
19589 acl_save_prefix
="$prefix"
19590 prefix
="$acl_final_prefix"
19591 acl_save_exec_prefix
="$exec_prefix"
19592 exec_prefix
="$acl_final_exec_prefix"
19594 exec_prefix
="$acl_save_exec_prefix"
19595 prefix
="$acl_save_prefix"
19597 if test "X$x" = "X-L$additional_libdir"; then
19602 if test -z "$haveit"; then
19603 if test -d "$additional_libdir"; then
19604 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$additional_libdir"
19611 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
19612 if test "$enable_rpath" != no
; then
19614 for x
in $rpathdirs; do
19615 if test "X$x" = "X$dir"; then
19620 if test -z "$haveit"; then
19621 rpathdirs
="$rpathdirs $dir"
19624 for x
in $ltrpathdirs; do
19625 if test "X$x" = "X$dir"; then
19630 if test -z "$haveit"; then
19631 ltrpathdirs
="$ltrpathdirs $dir"
19636 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19639 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19642 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$dep"
19643 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$dep"
19649 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
19650 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
19651 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l$name"
19653 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l:lib$name.$libext"
19654 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l:lib$name.$libext"
19661 if test "X$rpathdirs" != "X"; then
19662 if test -n "$hardcode_libdir_separator"; then
19664 for found_dir
in $rpathdirs; do
19665 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
19667 acl_save_libdir
="$libdir"
19669 eval flag
=\"$hardcode_libdir_flag_spec\"
19670 libdir
="$acl_save_libdir"
19671 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
19673 for found_dir
in $rpathdirs; do
19674 acl_save_libdir
="$libdir"
19675 libdir
="$found_dir"
19676 eval flag
=\"$hardcode_libdir_flag_spec\"
19677 libdir
="$acl_save_libdir"
19678 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
19682 if test "X$ltrpathdirs" != "X"; then
19683 for found_dir
in $ltrpathdirs; do
19684 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-R$found_dir"
19689 ac_save_CPPFLAGS
="$CPPFLAGS"
19691 for element
in $INCXXHASH; do
19693 for x
in $CPPFLAGS; do
19695 acl_save_prefix
="$prefix"
19696 prefix
="$acl_final_prefix"
19697 acl_save_exec_prefix
="$exec_prefix"
19698 exec_prefix
="$acl_final_exec_prefix"
19700 exec_prefix
="$acl_save_exec_prefix"
19701 prefix
="$acl_save_prefix"
19703 if test "X$x" = "X$element"; then
19708 if test -z "$haveit"; then
19709 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
19714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxxhash" >&5
19715 $as_echo_n "checking for libxxhash... " >&6; }
19716 if ${ac_cv_libxxhash+:} false
; then :
19717 $as_echo_n "(cached) " >&6
19720 ac_save_LIBS
="$LIBS"
19721 LIBS
="$LIBS $LIBXXHASH"
19722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19723 /* end confdefs.h. */
19724 #include <xxhash.h>
19728 XXH32("foo", 3, 0);
19734 if ac_fn_c_try_link
"$LINENO"; then :
19735 ac_cv_libxxhash
=yes
19739 rm -f core conftest.err conftest.
$ac_objext \
19740 conftest
$ac_exeext conftest.
$ac_ext
19741 LIBS
="$ac_save_LIBS"
19744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxxhash" >&5
19745 $as_echo "$ac_cv_libxxhash" >&6; }
19746 if test "$ac_cv_libxxhash" = yes; then
19749 $as_echo "#define HAVE_LIBXXHASH 1" >>confdefs.h
19751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libxxhash" >&5
19752 $as_echo_n "checking how to link with libxxhash... " >&6; }
19753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXXHASH" >&5
19754 $as_echo "$LIBXXHASH" >&6; }
19757 CPPFLAGS
="$ac_save_CPPFLAGS"
19767 if test "$HAVE_LIBXXHASH" != yes; then
19768 if test "$with_xxhash" = yes; then
19769 as_fn_error $?
"xxhash is missing or unusable" "$LINENO" 5
19772 if test "x$with_xxhash" = "xauto"; then
19773 with_xxhash
="$HAVE_LIBXXHASH"
19777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
19778 $as_echo_n "checking whether to use xxhash... " >&6; }
19779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
19780 $as_echo "$with_xxhash" >&6; }
19784 if test "${nativefile}" != ""; then
19785 case "${nativefile}" in
19786 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
19787 * ) GDB_NM_FILE
="${nativefile}"
19789 ac_config_links
="$ac_config_links nm.h:$GDB_NM_FILE"
19792 cat >>confdefs.h
<<_ACEOF
19793 #define GDB_NM_FILE "${GDB_NM_FILE}"
19801 for ac_prog
in xsltproc
19803 # Extract the first word of "$ac_prog", so it can be a program name with args.
19804 set dummy
$ac_prog; ac_word
=$2
19805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19806 $as_echo_n "checking for $ac_word... " >&6; }
19807 if ${ac_cv_path_XSLTPROC+:} false
; then :
19808 $as_echo_n "(cached) " >&6
19812 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
19815 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19816 for as_dir
in $PATH
19819 test -z "$as_dir" && as_dir
=.
19820 for ac_exec_ext
in '' $ac_executable_extensions; do
19821 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19822 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
19823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19833 XSLTPROC
=$ac_cv_path_XSLTPROC
19834 if test -n "$XSLTPROC"; then
19835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19836 $as_echo "$XSLTPROC" >&6; }
19838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19839 $as_echo "no" >&6; }
19843 test -n "$XSLTPROC" && break
19845 test -n "$XSLTPROC" || XSLTPROC
="missing"
19847 if test "x$USE_MAINTAINER_MODE" = xyes
; then
19848 if test "${XSLTPROC}" = missing
; then
19849 as_fn_error $?
"unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
19857 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
19861 # Check whether we will enable the inclusion of unit tests when
19864 # The default value of this option changes depending whether we're on
19865 # development mode (in which case it's "true") or not (in which case
19866 # it's "false"). The $development variable is set by the GDB_AC_COMMON
19867 # macro, which must therefore be used before GDB_AC_SELFTEST.
19869 if test "x$development" != xtrue
&& test "x$development" != xfalse
; then :
19870 as_fn_error $?
"Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
19873 # Check whether --enable-unit-tests was given.
19874 if test "${enable_unit_tests+set}" = set; then :
19875 enableval
=$enable_unit_tests; case "${enableval}" in
19876 yes) enable_unittests
=true
;;
19877 no
) enable_unittests
=false
;;
19878 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
19881 enable_unittests
=$development
19885 if $enable_unittests; then
19887 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
19890 CONFIG_OBS
="$CONFIG_OBS \$(SELFTESTS_OBS)"
19891 CONFIG_SRCS
="$CONFIG_SRCS \$(SELFTESTS_SRCS)"
19897 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19898 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$gdb_ac_transform"`
19899 if test "x$GDB_TRANSFORM_NAME" = x
; then
19900 GDB_TRANSFORM_NAME
=gdb
19905 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19906 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$gdb_ac_transform"`
19907 if test "x$GCORE_TRANSFORM_NAME" = x
; then
19908 GCORE_TRANSFORM_NAME
=gcore
19912 ac_config_files
="$ac_config_files gcore"
19914 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
19917 cat >confcache
<<\_ACEOF
19918 # This file is a shell script that caches the results of configure
19919 # tests run on this system so they can be shared between configure
19920 # scripts and configure runs, see configure's option --config-cache.
19921 # It is not useful on other systems. If it contains results you don't
19922 # want to keep, you may remove or edit it.
19924 # config.status only pays attention to the cache file if you give it
19925 # the --recheck option to rerun configure.
19927 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19928 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19929 # following values.
19933 # The following way of writing the cache mishandles newlines in values,
19934 # but we know of no workaround that is simple, portable, and efficient.
19935 # So, we kill variables containing newlines.
19936 # Ultrix sh set writes to stderr and can't be redirected directly,
19937 # and sets the high bit in the cache file unless we assign to the vars.
19939 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19940 eval ac_val
=\$
$ac_var
19944 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19945 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19948 _ | IFS | as_nl
) ;; #(
19949 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
19950 *) { eval $ac_var=; unset $ac_var;} ;;
19956 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19957 *${as_nl}ac_space
=\
*)
19958 # `set' does not quote correctly, so add quotes: double-quote
19959 # substitution turns \\\\ into \\, and sed turns \\ into \.
19962 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19965 # `set' quotes correctly as required by POSIX, so do not add quotes.
19966 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19975 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19977 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19979 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
19980 if test -w "$cache_file"; then
19981 if test "x$cache_file" != "x/dev/null"; then
19982 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19983 $as_echo "$as_me: updating cache $cache_file" >&6;}
19984 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
19985 cat confcache
>"$cache_file"
19987 case $cache_file in #(
19989 mv -f confcache
"$cache_file"$$
&&
19990 mv -f "$cache_file"$$
"$cache_file" ;; #(
19992 mv -f confcache
"$cache_file" ;;
19997 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19998 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20003 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
20004 # Let make expand exec_prefix.
20005 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
20007 DEFS
=-DHAVE_CONFIG_H
20012 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
20013 # 1. Remove the extension, and $U if already installed.
20014 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
20015 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
20016 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20017 # will be set to the directory where LIBOBJS objects are built.
20018 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20019 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
20021 LIBOBJS
=$ac_libobjs
20023 LTLIBOBJS
=$ac_ltlibobjs
20026 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20027 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
20028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20030 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
20031 as_fn_error $?
"conditional \"HAVE_PYTHON\" was never defined.
20032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20034 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
20035 as_fn_error $?
"conditional \"HAVE_GUILE\" was never defined.
20036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20040 : "${CONFIG_STATUS=./config.status}"
20042 ac_clean_files_save
=$ac_clean_files
20043 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
20044 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20045 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20047 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20049 # Generated by $as_me.
20050 # Run this file to recreate the current configuration.
20051 # Compiler output produced by configure, useful for debugging
20052 # configure, is in config.log if it exists.
20055 ac_cs_recheck=false
20058 SHELL=\${CONFIG_SHELL-$SHELL}
20061 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
20062 ## -------------------- ##
20063 ## M4sh Initialization. ##
20064 ## -------------------- ##
20066 # Be more Bourne compatible
20067 DUALCASE
=1; export DUALCASE
# for MKS sh
20068 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20071 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20072 # is contrary to our usage. Disable this feature.
20073 alias -g '${1+"$@"}'='"$@"'
20074 setopt NO_GLOB_SUBST
20076 case `(set -o) 2>/dev/null` in #(
20088 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20089 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20090 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20091 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20092 # Prefer a ksh shell builtin over an external printf program on Solaris,
20093 # but without wasting forks for bash or zsh.
20094 if test -z "$BASH_VERSION$ZSH_VERSION" \
20095 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20096 as_echo='print
-r --'
20097 as_echo_n='print
-rn --'
20098 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20099 as_echo='printf %s
\n'
20100 as_echo_n='printf %s
'
20102 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20103 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
20104 as_echo_n='/usr
/ucb
/echo -n'
20106 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20107 as_echo_n_body='eval
20111 expr "X$arg" : "X\\(.*\\)$as_nl";
20112 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20114 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
20116 export as_echo_n_body
20117 as_echo_n='sh
-c $as_echo_n_body as_echo
'
20119 export as_echo_body
20120 as_echo='sh
-c $as_echo_body as_echo
'
20123 # The user is always right.
20124 if test "${PATH_SEPARATOR+set}" != set; then
20126 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20127 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20134 # We need space, tab and new line, in precisely that order. Quoting is
20135 # there to prevent editors from complaining about space-tab.
20136 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20137 # splitting by setting IFS to empty value.)
20140 # Find who we are. Look in the path if we contain no directory separator.
20143 *[\\/]* ) as_myself=$0 ;;
20144 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20145 for as_dir in $PATH
20148 test -z "$as_dir" && as_dir=.
20149 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20155 # We did not find ourselves, most probably we were run as `sh COMMAND'
20156 # in which case we are not to be found in the path.
20157 if test "x$as_myself" = x
; then
20160 if test ! -f "$as_myself"; then
20161 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20165 # Unset variables that we do not need and which cause bugs (e.g. in
20166 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20167 # suppresses any "Segmentation fault" message there. '((' could
20168 # trigger a bug in pdksh 5.2.14.
20169 for as_var
in BASH_ENV ENV MAIL MAILPATH
20170 do eval test x\
${$as_var+set} = xset \
20171 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
20184 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
20187 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20188 # ----------------------------------------
20189 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20190 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20191 # script with STATUS, using 1 if that was 0.
20194 as_status
=$1; test $as_status -eq 0 && as_status
=1
20196 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
20197 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20199 $as_echo "$as_me: error: $2" >&2
20200 as_fn_exit
$as_status
20204 # as_fn_set_status STATUS
20205 # -----------------------
20206 # Set $? to STATUS, without forking.
20207 as_fn_set_status
()
20210 } # as_fn_set_status
20212 # as_fn_exit STATUS
20213 # -----------------
20214 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20218 as_fn_set_status
$1
20224 # Portably unset VAR.
20227 { eval $1=; unset $1;}
20229 as_unset
=as_fn_unset
20230 # as_fn_append VAR VALUE
20231 # ----------------------
20232 # Append the text in VALUE to the end of the definition contained in VAR. Take
20233 # advantage of any shell optimizations that allow amortized linear growth over
20234 # repeated appends, instead of the typical quadratic growth present in naive
20236 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
20237 eval 'as_fn_append ()
20248 # as_fn_arith ARG...
20249 # ------------------
20250 # Perform arithmetic evaluation on the ARGs, and store the result in the
20251 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20252 # must be portable across $(()) and expr.
20253 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
20254 eval 'as_fn_arith ()
20261 as_val
=`expr "$@" || test $? -eq 1`
20266 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20267 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20273 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20274 as_basename
=basename
20279 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
20285 as_me
=`$as_basename -- "$0" ||
20286 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20287 X"$0" : 'X\(//\)$' \| \
20288 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20290 sed '/^.*\/\([^/][^/]*\)\/*$/{
20304 # Avoid depending upon Character Ranges.
20305 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
20306 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20307 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
20308 as_cr_digits
='0123456789'
20309 as_cr_alnum
=$as_cr_Letters$as_cr_digits
20311 ECHO_C
= ECHO_N
= ECHO_T
=
20312 case `echo -n x` in #(((((
20314 case `echo 'xy\c'` in
20315 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
20317 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
20324 rm -f conf$$ conf$$.exe conf$$.
file
20325 if test -d conf$$.dir
; then
20326 rm -f conf$$.dir
/conf$$.
file
20329 mkdir conf$$.dir
2>/dev
/null
20331 if (echo >conf$$.
file) 2>/dev
/null
; then
20332 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20334 # ... but there are two gotchas:
20335 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20336 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20337 # In both cases, we have to default to `cp -pR'.
20338 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
20340 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20348 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
20349 rmdir conf$$.dir
2>/dev
/null
20354 # Create "$as_dir" as a directory, including parents if necessary.
20359 -*) as_dir
=.
/$as_dir;;
20361 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
20365 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20366 *) as_qdir
=$as_dir;;
20368 as_dirs
="'$as_qdir' $as_dirs"
20369 as_dir
=`$as_dirname -- "$as_dir" ||
20370 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20371 X"$as_dir" : 'X\(//\)[^/]' \| \
20372 X"$as_dir" : 'X\(//\)$' \| \
20373 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20374 $as_echo X"$as_dir" |
20375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20379 /^X\(\/\/\)[^/].*/{
20392 test -d "$as_dir" && break
20394 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
20395 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
20399 if mkdir
-p .
2>/dev
/null
; then
20400 as_mkdir_p
='mkdir -p "$as_dir"'
20402 test -d .
/-p && rmdir .
/-p
20407 # as_fn_executable_p FILE
20408 # -----------------------
20409 # Test if FILE is an executable regular file.
20410 as_fn_executable_p
()
20412 test -f "$1" && test -x "$1"
20413 } # as_fn_executable_p
20414 as_test_x
='test -x'
20415 as_executable_p
=as_fn_executable_p
20417 # Sed expression to map a string onto a valid CPP name.
20418 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20420 # Sed expression to map a string onto a valid variable name.
20421 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20425 ## ----------------------------------- ##
20426 ## Main body of $CONFIG_STATUS script. ##
20427 ## ----------------------------------- ##
20429 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
20431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20432 # Save the log message, to keep $0 and so on meaningful, and to
20433 # report actual input values of CONFIG_FILES etc. instead of their
20434 # values after options handling.
20436 This file was extended by $as_me, which was
20437 generated by GNU Autoconf 2.69. Invocation command line was
20439 CONFIG_FILES = $CONFIG_FILES
20440 CONFIG_HEADERS = $CONFIG_HEADERS
20441 CONFIG_LINKS = $CONFIG_LINKS
20442 CONFIG_COMMANDS = $CONFIG_COMMANDS
20445 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20450 case $ac_config_files in *"
20451 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
20454 case $ac_config_headers in *"
20455 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
20459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20460 # Files that config.status was made for.
20461 config_files="$ac_config_files"
20462 config_headers="$ac_config_headers"
20463 config_links="$ac_config_links"
20464 config_commands="$ac_config_commands"
20468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20470 \`$as_me' instantiates files and other configuration actions
20471 from templates according to the current configuration. Unless the files
20472 and actions are specified as TAGs, all are instantiated by default.
20474 Usage: $0 [OPTION]... [TAG]...
20476 -h, --help print this help, then exit
20477 -V, --version print version number and configuration settings, then exit
20478 --config print configuration, then exit
20479 -q, --quiet, --silent
20480 do not print progress messages
20481 -d, --debug don't remove temporary files
20482 --recheck update $as_me by reconfiguring in the same conditions
20483 --file=FILE[:TEMPLATE]
20484 instantiate the configuration file FILE
20485 --header=FILE[:TEMPLATE]
20486 instantiate the configuration header FILE
20488 Configuration files:
20491 Configuration headers:
20494 Configuration links:
20497 Configuration commands:
20500 Report bugs to the package provider."
20503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20504 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20507 configured by $0, generated by GNU Autoconf 2.69,
20508 with options \\"\$ac_cs_config\\"
20510 Copyright (C) 2012 Free Software Foundation, Inc.
20511 This config.status script is free software; the Free Software Foundation
20512 gives unlimited permission to copy, distribute and modify it."
20518 test -n "\$AWK" || AWK=awk
20521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20522 # The default lists apply if the user does not specify any file.
20528 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20529 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
20533 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20545 # Handling of the options.
20546 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20548 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
20549 $as_echo "$ac_cs_version"; exit ;;
20550 --config |
--confi |
--conf |
--con |
--co |
--c )
20551 $as_echo "$ac_cs_config"; exit ;;
20552 --debug |
--debu |
--deb |
--de |
--d |
-d )
20554 --file |
--fil |
--fi |
--f )
20557 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20558 '') as_fn_error $?
"missing file argument" ;;
20560 as_fn_append CONFIG_FILES
" '$ac_optarg'"
20561 ac_need_defaults
=false
;;
20562 --header |
--heade |
--head |
--hea )
20565 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20567 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
20568 ac_need_defaults
=false
;;
20570 # Conflict between --help and --header
20571 as_fn_error $?
"ambiguous option: \`$1'
20572 Try \`$0 --help' for more information.";;
20573 --help |
--hel |
-h )
20574 $as_echo "$ac_cs_usage"; exit ;;
20575 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20576 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20579 # This is an error.
20580 -*) as_fn_error $?
"unrecognized option: \`$1'
20581 Try \`$0 --help' for more information." ;;
20583 *) as_fn_append ac_config_targets
" $1"
20584 ac_need_defaults
=false
;;
20590 ac_configure_extra_args
=
20592 if $ac_cs_silent; then
20594 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20599 if \$ac_cs_recheck; then
20600 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20602 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20603 CONFIG_SHELL='$SHELL'
20604 export CONFIG_SHELL
20609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20613 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20614 ## Running $as_me. ##
20620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20624 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
20625 GDB_NM_FILE=$GDB_NM_FILE
20629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20631 # Handling of arguments.
20632 for ac_config_target
in $ac_config_targets
20634 case $ac_config_target in
20635 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
20636 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
20637 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
20638 "nm.h") CONFIG_LINKS
="$CONFIG_LINKS nm.h:$GDB_NM_FILE" ;;
20639 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
20640 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20641 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
20642 "gdb-gdb.py") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.py" ;;
20643 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
20644 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
20646 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20651 # If the user did not use the arguments to specify the items to instantiate,
20652 # then the envvar interface is used. Set only those that are not.
20653 # We use the long form for the default assignment because of an extremely
20654 # bizarre bug on SunOS 4.1.3.
20655 if $ac_need_defaults; then
20656 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20657 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20658 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
20659 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20662 # Have a temporary directory for convenience. Make it in the build tree
20663 # simply because there is no reason against having it here, and in addition,
20664 # creating and moving files from /tmp can sometimes cause problems.
20665 # Hook for its removal unless debugging.
20666 # Note that there is a small window in which the directory will not be cleaned:
20667 # after its creation but before its name has been assigned to `$tmp'.
20671 trap 'exit_status=$?
20672 : "${ac_tmp:=$tmp}"
20673 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20675 trap 'as_fn_exit 1' 1 2 13 15
20677 # Create a (secure) tmp directory for tmp files.
20680 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20684 tmp
=.
/conf$$
-$RANDOM
20685 (umask 077 && mkdir
"$tmp")
20686 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
20689 # Set up the scripts for CONFIG_FILES section.
20690 # No need to generate them if there are no CONFIG_FILES.
20691 # This happens for instance with `./config.status config.h'.
20692 if test -n "$CONFIG_FILES"; then
20694 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
20695 ac_cs_awk_getline
=:
20696 ac_cs_awk_pipe_init
=
20697 ac_cs_awk_read_file
='
20698 while ((getline aline < (F[key])) > 0)
20701 ac_cs_awk_pipe_fini
=
20703 ac_cs_awk_getline
=false
20704 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
20705 ac_cs_awk_read_file
='
20707 print "cat " F[key] " &&"
20708 '$ac_cs_awk_pipe_init
20709 # The final `:' finishes the AND list.
20710 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
20712 ac_cr
=`echo X | tr X '\015'`
20713 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20714 # But we know of no other shell where ac_cr would be empty at this
20715 # point, so we can use a bashism as a fallback.
20716 if test "x$ac_cr" = x
; then
20717 eval ac_cr
=\$
\'\\r
\'
20719 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20720 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20723 ac_cs_awk_cr
=$ac_cr
20726 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20729 # Create commands to substitute file output variables.
20731 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20732 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
20733 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
20736 } >conf$
$files.sh
&&
20737 . .
/conf$
$files.sh ||
20738 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
20739 rm -f conf$
$files.sh
20742 echo "cat >conf$$subs.awk <<_ACEOF" &&
20743 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20745 } >conf$$subs.sh ||
20746 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20747 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20749 for ac_last_try in false false false false false :; do
20750 . ./conf$$subs.sh ||
20751 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20753 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
20754 if test $ac_delim_n = $ac_delim_num; then
20756 elif $ac_last_try; then
20757 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20759 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20762 rm -f conf$$subs.sh
20764 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20765 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
20769 s/^/S["/; s
/!.
*/"]=/
20779 s/\(.\{148\}\)..*/\1/
20781 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
20786 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20793 s/\(.\{148\}\)..*/\1/
20795 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
20799 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20804 ' <conf$$subs.awk | sed '
20809 ' >>$CONFIG_STATUS || ac_write_fail=1
20810 rm -f conf$$subs.awk
20811 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20813 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
20814 for (key in S) S_is_set[key] = 1
20816 \$ac_cs_awk_pipe_init
20820 nfields = split(line, field, "@
")
20822 len = length(field[1])
20823 for (i = 2; i < nfields; i++) {
20825 keylen = length(key)
20826 if (S_is_set[key]) {
20828 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20829 len += length(value) + length(field[++i])
20834 if (nfields == 3 && !substed) {
20836 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
20837 \$ac_cs_awk_read_file
20843 \$ac_cs_awk_pipe_fini
20846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20847 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20848 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
20851 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
20852 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
20855 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20856 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
20857 # trailing colons and then remove the whole line if VPATH becomes empty
20858 # (actually we leave an empty line to preserve line numbers).
20859 if test "x
$srcdir" = x.; then
20860 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20879 fi # test -n "$CONFIG_FILES"
20881 # Set up the scripts for CONFIG_HEADERS section.
20882 # No need to generate them if there are no CONFIG_HEADERS.
20883 # This happens for instance with `./config.status Makefile'.
20884 if test -n "$CONFIG_HEADERS"; then
20885 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
20889 # Transform confdefs.h into an awk script `defines.awk', embedded as
20890 # here-document in config.status, that substitutes the proper values into
20891 # config.h.in to produce config.h.
20893 # Create a delimiter string that does not exist in confdefs.h, to ease
20894 # handling of long lines.
20896 for ac_last_try in false false :; do
20897 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
20898 if test -z "$ac_tt"; then
20900 elif $ac_last_try; then
20901 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
20903 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20907 # For the awk script, D is an array of macro values keyed by name,
20908 # likewise P contains macro parameters if any. Preserve backslash
20909 # newline sequences.
20911 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20913 s/.\{148\}/&'"$ac_delim"'/g
20916 s/^[ ]*#[ ]*define[ ][ ]*/ /
20923 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
20925 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
20929 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
20930 D["\
1"]=" \
3\\\\\\n
"\\/p
20932 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
20937 s/.\{148\}/&'"$ac_delim"'/g
20942 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
20945 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
20947 ' <confdefs.h | sed '
20948 s/'"$ac_delim"'/"\\\
20949 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20951 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20952 for (key in D) D_is_set[key] = 1
20955 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20957 split(line, arg, " ")
20958 if (arg[1] == "#") {
20962 defundef
= substr
(arg
[1], 2)
20965 split(mac1
, mac2
, "(") #)
20967 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
20968 if (D_is_set
[macro
]) {
20969 # Preserve the white space surrounding the "#".
20970 print prefix
"define", macro P
[macro
] D
[macro
]
20973 # Replace #undef with comments. This is necessary, for example,
20974 # in the case of _POSIX_SOURCE, which is predefined and required
20975 # on some systems where configure will not decide to define it.
20976 if (defundef
== "undef") {
20977 print
"/*", prefix defundef
, macro
, "*/"
20985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20986 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
20987 fi # test -n "$CONFIG_HEADERS"
20990 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
20995 :[FHLC
]) ac_mode
=$ac_tag; continue;;
20997 case $ac_mode$ac_tag in
20999 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
21000 :[FH
]-) ac_tag
=-:-;;
21001 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
21018 -) ac_f
="$ac_tmp/stdin";;
21019 *) # Look for the file first in the build tree, then in the source tree
21020 # (if the path is not absolute). The absolute path cannot be DOS-style,
21021 # because $ac_f cannot contain `:'.
21025 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
21027 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21029 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21030 as_fn_append ac_file_inputs
" '$ac_f'"
21033 # Let's still pretend it is `configure' which instantiates (i.e., don't
21034 # use $as_me), people would be surprised to read:
21035 # /* config.h. Generated by config.status. */
21036 configure_input
='Generated from '`
21037 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21039 if test x
"$ac_file" != x-
; then
21040 configure_input
="$ac_file. $configure_input"
21041 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21042 $as_echo "$as_me: creating $ac_file" >&6;}
21044 # Neutralize special characters interpreted by sed in replacement strings.
21045 case $configure_input in #(
21046 *\
&* |
*\|
* |
*\\* )
21047 ac_sed_conf_input
=`$as_echo "$configure_input" |
21048 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21049 *) ac_sed_conf_input
=$configure_input;;
21053 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
21054 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
21059 ac_dir
=`$as_dirname -- "$ac_file" ||
21060 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21061 X"$ac_file" : 'X\(//\)[^/]' \| \
21062 X"$ac_file" : 'X\(//\)$' \| \
21063 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21064 $as_echo X"$ac_file" |
21065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21069 /^X\(\/\/\)[^/].*/{
21082 as_dir
="$ac_dir"; as_fn_mkdir_p
21086 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21088 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21089 # A ".." for each directory in $ac_dir_suffix.
21090 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21091 case $ac_top_builddir_sub in
21092 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21093 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
21096 ac_abs_top_builddir
=$ac_pwd
21097 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
21098 # for backward compatibility:
21099 ac_top_builddir
=$ac_top_build_prefix
21102 .
) # We are building in place.
21104 ac_top_srcdir
=$ac_top_builddir_sub
21105 ac_abs_top_srcdir
=$ac_pwd ;;
21106 [\\/]* | ?
:[\\/]* ) # Absolute name.
21107 ac_srcdir
=$srcdir$ac_dir_suffix;
21108 ac_top_srcdir
=$srcdir
21109 ac_abs_top_srcdir
=$srcdir ;;
21110 *) # Relative name.
21111 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
21112 ac_top_srcdir
=$ac_top_build_prefix$srcdir
21113 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
21115 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
21125 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
21126 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
21130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21131 # If the template does not know about datarootdir, expand it.
21132 # FIXME: This hack should be removed a few years after 2.60.
21133 ac_datarootdir_hack
=; ac_datarootdir_seen
=
21144 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21145 *datarootdir
*) ac_datarootdir_seen
=yes;;
21146 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
21147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21148 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21151 ac_datarootdir_hack='
21152 s&@datadir@&$datadir&g
21153 s&@docdir@&$docdir&g
21154 s&@infodir@&$infodir&g
21155 s&@localedir@&$localedir&g
21156 s&@mandir@&$mandir&g
21157 s&\\\${datarootdir}&$datarootdir&g' ;;
21161 # Neutralize VPATH when `$srcdir' = `.'.
21162 # Shell code in configure.ac might set extrasub.
21163 # FIXME: do we really want to maintain this feature?
21164 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21165 ac_sed_extra="$ac_vpsub
21168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21170 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
21171 s|@configure_input@|
$ac_sed_conf_input|
;t t
21172 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
21173 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
21174 s
&@srcdir@
&$ac_srcdir&;t t
21175 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
21176 s
&@top_srcdir@
&$ac_top_srcdir&;t t
21177 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
21178 s
&@builddir@
&$ac_builddir&;t t
21179 s
&@abs_builddir@
&$ac_abs_builddir&;t t
21180 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
21181 s
&@INSTALL@
&$ac_INSTALL&;t t
21182 $ac_datarootdir_hack
21184 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
21185 if $ac_cs_awk_getline; then
21186 $AWK -f "$ac_tmp/subs.
awk"
21188 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
21190 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
21192 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21193 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
21194 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21195 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
21196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
21197 which seems to be undefined. Please make sure it is defined" >&5
21198 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
21199 which seems to be undefined. Please make sure it is defined" >&2;}
21201 rm -f "$ac_tmp/stdin"
21203 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21204 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21206 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21212 if test x"$ac_file" != x-; then
21214 $as_echo "/* $configure_input */" \
21215 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21216 } >"$ac_tmp/config.h" \
21217 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21218 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21219 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21220 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21223 mv "$ac_tmp/config.h" "$ac_file" \
21224 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21227 $as_echo "/* $configure_input */" \
21228 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21229 || as_fn_error $? "could not create -" "$LINENO" 5
21237 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
21240 # Prefer the file from the source tree if names are identical.
21241 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
21242 ac_source=$srcdir/$ac_source
21245 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
21246 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
21248 if test ! -r "$ac_source"; then
21249 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
21253 # Try a relative symlink, then a hard link, then a copy.
21255 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
21256 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
21258 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
21259 ln "$ac_source" "$ac_file" 2>/dev/null ||
21260 cp -p "$ac_source" "$ac_file" ||
21261 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
21264 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21265 $as_echo "$as_me: executing $ac_file commands" >&6;}
21270 case $ac_file$ac_mode in
21271 "config.h":H) echo > stamp-h ;;
21272 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
21273 "nm.h":L) echo > stamp-nmh ;;
21274 "gcore":F) chmod +x gcore ;;
21282 ac_clean_files=$ac_clean_files_save
21284 test $ac_write_fail = 0 ||
21285 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21288 # configure is writing to config.log, and then calls config.status.
21289 # config.status does its own redirection, appending to config.log.
21290 # Unfortunately, on DOS this fails, as config.log is still kept open
21291 # by configure, so config.status won't be able to
write to it
; its
21292 # output is simply discarded. So we exec the FD to /dev/null,
21293 # effectively closing config.log, so it can be properly (re)opened and
21294 # appended to by config.status. When coming back to configure, we
21295 # need to make the FD available again.
21296 if test "$no_create" != yes; then
21298 ac_config_status_args
=
21299 test "$silent" = yes &&
21300 ac_config_status_args
="$ac_config_status_args --quiet"
21302 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21304 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21305 # would make configure fail if this is the last instruction.
21306 $ac_cs_success || as_fn_exit
1
21310 # CONFIG_SUBDIRS section.
21312 if test "$no_recursion" != yes; then
21314 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
21315 # so they do not pile up.
21316 ac_sub_configure_args
=
21318 eval "set x $ac_configure_args"
21322 if test -n "$ac_prev"; then
21327 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
21328 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
21329 ac_prev
=cache_file
;;
21330 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
21331 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
21334 --config-cache |
-C)
21336 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
21338 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
21340 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
21342 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
21344 --disable-option-checking)
21348 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21350 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
21354 # Always prepend --prefix to ensure using the same prefix
21355 # in subdir configurations.
21356 ac_arg
="--prefix=$prefix"
21358 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21360 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
21363 if test "$silent" = yes; then
21364 ac_sub_configure_args
="--silent $ac_sub_configure_args"
21367 # Always prepend --disable-option-checking to silence warnings, since
21368 # different subdirs can have different --enable and --with options.
21369 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
21372 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
21374 # Do not complain, so a configure script can configure whichever
21375 # parts of a large source tree are present.
21376 test -d "$srcdir/$ac_dir" ||
continue
21378 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21379 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
21380 $as_echo "$ac_msg" >&6
21381 as_dir
="$ac_dir"; as_fn_mkdir_p
21385 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21387 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21388 # A ".." for each directory in $ac_dir_suffix.
21389 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21390 case $ac_top_builddir_sub in
21391 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21392 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
21395 ac_abs_top_builddir
=$ac_pwd
21396 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
21397 # for backward compatibility:
21398 ac_top_builddir
=$ac_top_build_prefix
21401 .
) # We are building in place.
21403 ac_top_srcdir
=$ac_top_builddir_sub
21404 ac_abs_top_srcdir
=$ac_pwd ;;
21405 [\\/]* | ?
:[\\/]* ) # Absolute name.
21406 ac_srcdir
=$srcdir$ac_dir_suffix;
21407 ac_top_srcdir
=$srcdir
21408 ac_abs_top_srcdir
=$srcdir ;;
21409 *) # Relative name.
21410 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
21411 ac_top_srcdir
=$ac_top_build_prefix$srcdir
21412 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
21414 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
21419 # Check for guested configure; otherwise get Cygnus style configure.
21420 if test -f "$ac_srcdir/configure.gnu"; then
21421 ac_sub_configure
=$ac_srcdir/configure.gnu
21422 elif test -f "$ac_srcdir/configure"; then
21423 ac_sub_configure
=$ac_srcdir/configure
21424 elif test -f "$ac_srcdir/configure.in"; then
21425 # This should be Cygnus configure.
21426 ac_sub_configure
=$ac_aux_dir/configure
21428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
21429 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21433 # The recursion is here.
21434 if test -n "$ac_sub_configure"; then
21435 # Make the cache file name correct relative to the subdirectory.
21436 case $cache_file in
21437 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
21438 *) # Relative name.
21439 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
21442 { $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
21443 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21444 # The eval makes quoting arguments work.
21445 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21446 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21447 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
21453 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
21454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21455 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}