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
637 HAVE_NATIVE_GCORE_HOST
732 READLINE_TEXI_INCFLAG
756 HAVE_NATIVE_GCORE_TARGET
782 INSTALL_STRIP_PROGRAM
811 MAINTAINER_MODE_FALSE
840 program_transform_name
851 ac_subst_files
='nat_makefile_frag'
853 enable_option_checking
854 enable_maintainer_mode
857 with_separate_debug_dir
859 with_relocated_sources
861 with_auto_load_safe_path
886 enable_source_highlight
892 with_system_gdbinit_dir
894 enable_build_warnings
895 enable_gdb_build_warnings
905 with_libbabeltrace_prefix
907 with_libxxhash_prefix
910 ac_precious_vars
='build_alias
927 ac_subdirs_all
='testsuite
931 # Initialize some variables set by options.
933 ac_init_version
=false
934 ac_unrecognized_opts
=
936 # The variables have the same names as the options, with
937 # dashes changed to underlines.
945 program_transform_name
=s
,x
,x
,
953 # Installation directory options.
954 # These are left unexpanded so users can "make install exec_prefix=/foo"
955 # and all the variables that are supposed to be based on exec_prefix
956 # by default will actually change.
957 # Use braces instead of parens because sh, perl, etc. also accept them.
958 # (The list follows the same order as the GNU Coding Standards.)
959 bindir
='${exec_prefix}/bin'
960 sbindir
='${exec_prefix}/sbin'
961 libexecdir
='${exec_prefix}/libexec'
962 datarootdir
='${prefix}/share'
963 datadir
='${datarootdir}'
964 sysconfdir
='${prefix}/etc'
965 sharedstatedir
='${prefix}/com'
966 localstatedir
='${prefix}/var'
967 includedir
='${prefix}/include'
968 oldincludedir
='/usr/include'
969 docdir
='${datarootdir}/doc/${PACKAGE}'
970 infodir
='${datarootdir}/info'
975 libdir
='${exec_prefix}/lib'
976 localedir
='${datarootdir}/locale'
977 mandir
='${datarootdir}/man'
983 # If the previous option needs an argument, assign it.
984 if test -n "$ac_prev"; then
985 eval $ac_prev=\
$ac_option
991 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
996 # Accept the important Cygnus configure options, so we can diagnose typos.
998 case $ac_dashdash$ac_option in
1002 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1004 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1005 bindir
=$ac_optarg ;;
1007 -build |
--build |
--buil |
--bui |
--bu)
1008 ac_prev
=build_alias
;;
1009 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1010 build_alias
=$ac_optarg ;;
1012 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1013 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1014 ac_prev
=cache_file
;;
1015 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1016 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1017 cache_file
=$ac_optarg ;;
1019 --config-cache |
-C)
1020 cache_file
=config.cache
;;
1022 -datadir |
--datadir |
--datadi |
--datad)
1024 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1025 datadir
=$ac_optarg ;;
1027 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1028 |
--dataroo |
--dataro |
--datar)
1029 ac_prev
=datarootdir
;;
1030 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1031 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1032 datarootdir
=$ac_optarg ;;
1034 -disable-* |
--disable-*)
1035 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1038 as_fn_error $?
"invalid feature name: $ac_useropt"
1039 ac_useropt_orig
=$ac_useropt
1040 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1041 case $ac_user_opts in
1043 "enable_
$ac_useropt"
1045 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1046 ac_unrecognized_sep
=', ';;
1048 eval enable_
$ac_useropt=no
;;
1050 -docdir |
--docdir |
--docdi |
--doc |
--do)
1052 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1053 docdir
=$ac_optarg ;;
1055 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1057 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1058 dvidir
=$ac_optarg ;;
1060 -enable-* |
--enable-*)
1061 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1062 # Reject names that are not valid shell variable names.
1063 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1064 as_fn_error $?
"invalid feature name: $ac_useropt"
1065 ac_useropt_orig
=$ac_useropt
1066 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1067 case $ac_user_opts in
1069 "enable_
$ac_useropt"
1071 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1072 ac_unrecognized_sep
=', ';;
1074 eval enable_
$ac_useropt=\
$ac_optarg ;;
1076 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1077 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1078 |
--exec |
--exe |
--ex)
1079 ac_prev
=exec_prefix
;;
1080 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1081 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1082 |
--exec=* |
--exe=* |
--ex=*)
1083 exec_prefix
=$ac_optarg ;;
1085 -gas |
--gas |
--ga |
--g)
1086 # Obsolete; use --with-gas.
1089 -help |
--help |
--hel |
--he |
-h)
1090 ac_init_help
=long
;;
1091 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1092 ac_init_help
=recursive
;;
1093 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1094 ac_init_help
=short
;;
1096 -host |
--host |
--hos |
--ho)
1097 ac_prev
=host_alias
;;
1098 -host=* |
--host=* |
--hos=* |
--ho=*)
1099 host_alias
=$ac_optarg ;;
1101 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1103 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1105 htmldir
=$ac_optarg ;;
1107 -includedir |
--includedir |
--includedi |
--included |
--include \
1108 |
--includ |
--inclu |
--incl |
--inc)
1109 ac_prev
=includedir
;;
1110 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1111 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1112 includedir
=$ac_optarg ;;
1114 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1116 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1117 infodir
=$ac_optarg ;;
1119 -libdir |
--libdir |
--libdi |
--libd)
1121 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1122 libdir
=$ac_optarg ;;
1124 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1125 |
--libexe |
--libex |
--libe)
1126 ac_prev
=libexecdir
;;
1127 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1128 |
--libexe=* |
--libex=* |
--libe=*)
1129 libexecdir
=$ac_optarg ;;
1131 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1132 ac_prev
=localedir
;;
1133 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1134 localedir
=$ac_optarg ;;
1136 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1137 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1138 ac_prev
=localstatedir
;;
1139 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1140 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1141 localstatedir
=$ac_optarg ;;
1143 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1145 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1146 mandir
=$ac_optarg ;;
1148 -nfp |
--nfp |
--nf)
1149 # Obsolete; use --without-fp.
1152 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1153 |
--no-cr |
--no-c |
-n)
1156 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1157 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1160 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1161 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1162 |
--oldin |
--oldi |
--old |
--ol |
--o)
1163 ac_prev
=oldincludedir
;;
1164 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1165 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1166 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1167 oldincludedir
=$ac_optarg ;;
1169 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1171 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1172 prefix
=$ac_optarg ;;
1174 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1175 |
--program-pre |
--program-pr |
--program-p)
1176 ac_prev
=program_prefix
;;
1177 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1178 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1179 program_prefix
=$ac_optarg ;;
1181 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1182 |
--program-suf |
--program-su |
--program-s)
1183 ac_prev
=program_suffix
;;
1184 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1185 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1186 program_suffix
=$ac_optarg ;;
1188 -program-transform-name |
--program-transform-name \
1189 |
--program-transform-nam |
--program-transform-na \
1190 |
--program-transform-n |
--program-transform- \
1191 |
--program-transform |
--program-transfor \
1192 |
--program-transfo |
--program-transf \
1193 |
--program-trans |
--program-tran \
1194 |
--progr-tra |
--program-tr |
--program-t)
1195 ac_prev
=program_transform_name
;;
1196 -program-transform-name=* |
--program-transform-name=* \
1197 |
--program-transform-nam=* |
--program-transform-na=* \
1198 |
--program-transform-n=* |
--program-transform-=* \
1199 |
--program-transform=* |
--program-transfor=* \
1200 |
--program-transfo=* |
--program-transf=* \
1201 |
--program-trans=* |
--program-tran=* \
1202 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1203 program_transform_name
=$ac_optarg ;;
1205 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1207 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1208 pdfdir
=$ac_optarg ;;
1210 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1212 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1215 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1216 |
-silent |
--silent |
--silen |
--sile |
--sil)
1219 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1221 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1223 sbindir
=$ac_optarg ;;
1225 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1226 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1227 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1229 ac_prev
=sharedstatedir
;;
1230 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1231 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1232 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1234 sharedstatedir
=$ac_optarg ;;
1236 -site |
--site |
--sit)
1238 -site=* |
--site=* |
--sit=*)
1241 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1243 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1244 srcdir
=$ac_optarg ;;
1246 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1247 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1248 ac_prev
=sysconfdir
;;
1249 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1250 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1251 sysconfdir
=$ac_optarg ;;
1253 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1254 ac_prev
=target_alias
;;
1255 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1256 target_alias
=$ac_optarg ;;
1258 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1261 -version |
--version |
--versio |
--versi |
--vers |
-V)
1262 ac_init_version
=: ;;
1265 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1266 # Reject names that are not valid shell variable names.
1267 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1268 as_fn_error $?
"invalid package name: $ac_useropt"
1269 ac_useropt_orig
=$ac_useropt
1270 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1271 case $ac_user_opts in
1275 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1276 ac_unrecognized_sep
=', ';;
1278 eval with_
$ac_useropt=\
$ac_optarg ;;
1280 -without-* |
--without-*)
1281 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1282 # Reject names that are not valid shell variable names.
1283 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1284 as_fn_error $?
"invalid package name: $ac_useropt"
1285 ac_useropt_orig
=$ac_useropt
1286 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1287 case $ac_user_opts in
1291 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1292 ac_unrecognized_sep
=', ';;
1294 eval with_
$ac_useropt=no
;;
1297 # Obsolete; use --with-x.
1300 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1301 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1302 ac_prev
=x_includes
;;
1303 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1304 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1305 x_includes
=$ac_optarg ;;
1307 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1308 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1309 ac_prev
=x_libraries
;;
1310 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1311 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1312 x_libraries
=$ac_optarg ;;
1314 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1315 Try \`$0 --help' for more information"
1319 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1320 # Reject names that are not valid shell variable names.
1321 case $ac_envvar in #(
1322 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1323 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1325 eval $ac_envvar=\
$ac_optarg
1326 export $ac_envvar ;;
1329 # FIXME: should be removed in autoconf 3.0.
1330 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1331 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1332 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1333 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1339 if test -n "$ac_prev"; then
1340 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1341 as_fn_error $?
"missing argument to $ac_option"
1344 if test -n "$ac_unrecognized_opts"; then
1345 case $enable_option_checking in
1347 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1348 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1352 # Check all directory arguments for consistency.
1353 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1354 datadir sysconfdir sharedstatedir localstatedir includedir \
1355 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1356 libdir localedir mandir
1358 eval ac_val
=\$
$ac_var
1359 # Remove trailing slashes.
1362 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1363 eval $ac_var=\
$ac_val;;
1365 # Be sure to have absolute directory names.
1367 [\\/$
]* | ?
:[\\/]* ) continue;;
1368 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1370 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1373 # There might be people who depend on the old broken behavior: `$host'
1374 # used to hold the argument of --host etc.
1375 # FIXME: To remove some day.
1378 target
=$target_alias
1380 # FIXME: To remove some day.
1381 if test "x$host_alias" != x
; then
1382 if test "x$build_alias" = x
; then
1383 cross_compiling
=maybe
1384 elif test "x$build_alias" != "x$host_alias"; then
1390 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1392 test "$silent" = yes && exec 6>/dev
/null
1395 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1396 ac_ls_di
=`ls -di .` &&
1397 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1398 as_fn_error $?
"working directory cannot be determined"
1399 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1400 as_fn_error $?
"pwd does not report name of working directory"
1403 # Find the source files, if location was not specified.
1404 if test -z "$srcdir"; then
1405 ac_srcdir_defaulted
=yes
1406 # Try the directory containing this script, then the parent directory.
1407 ac_confdir
=`$as_dirname -- "$as_myself" ||
1408 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1409 X"$as_myself" : 'X\(//\)[^/]' \| \
1410 X"$as_myself" : 'X\(//\)$' \| \
1411 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1412 $as_echo X"$as_myself" |
1413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1431 if test ! -r "$srcdir/$ac_unique_file"; then
1435 ac_srcdir_defaulted
=no
1437 if test ! -r "$srcdir/$ac_unique_file"; then
1438 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1439 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1441 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1443 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1445 # When building in place, set srcdir=.
1446 if test "$ac_abs_confdir" = "$ac_pwd"; then
1449 # Remove unnecessary trailing slashes from srcdir.
1450 # Double slashes in file names in object file debugging info
1451 # mess up M-x gdb in Emacs.
1453 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1455 for ac_var
in $ac_precious_vars; do
1456 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1457 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1458 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1459 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1463 # Report the --help message.
1465 if test "$ac_init_help" = "long"; then
1466 # Omit some internal or obsolete options to make the list less imposing.
1467 # This message is too long to be a string in the A/UX 3.1 sh.
1469 \`configure' configures this package to adapt to many kinds of systems.
1471 Usage: $0 [OPTION]... [VAR=VALUE]...
1473 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1474 VAR=VALUE. See below for descriptions of some of the useful variables.
1476 Defaults for the options are specified in brackets.
1479 -h, --help display this help and exit
1480 --help=short display options specific to this package
1481 --help=recursive display the short help of all the included packages
1482 -V, --version display version information and exit
1483 -q, --quiet, --silent do not print \`checking ...' messages
1484 --cache-file=FILE cache test results in FILE [disabled]
1485 -C, --config-cache alias for \`--cache-file=config.cache'
1486 -n, --no-create do not create output files
1487 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1489 Installation directories:
1490 --prefix=PREFIX install architecture-independent files in PREFIX
1491 [$ac_default_prefix]
1492 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1495 By default, \`make install' will install all the files in
1496 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1497 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1498 for instance \`--prefix=\$HOME'.
1500 For better control, use the options below.
1502 Fine tuning of the installation directories:
1503 --bindir=DIR user executables [EPREFIX/bin]
1504 --sbindir=DIR system admin executables [EPREFIX/sbin]
1505 --libexecdir=DIR program executables [EPREFIX/libexec]
1506 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1507 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1508 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1509 --libdir=DIR object code libraries [EPREFIX/lib]
1510 --includedir=DIR C header files [PREFIX/include]
1511 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1512 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1513 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1514 --infodir=DIR info documentation [DATAROOTDIR/info]
1515 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1516 --mandir=DIR man documentation [DATAROOTDIR/man]
1517 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1518 --htmldir=DIR html documentation [DOCDIR]
1519 --dvidir=DIR dvi documentation [DOCDIR]
1520 --pdfdir=DIR pdf documentation [DOCDIR]
1521 --psdir=DIR ps documentation [DOCDIR]
1527 --program-prefix=PREFIX prepend PREFIX to installed program names
1528 --program-suffix=SUFFIX append SUFFIX to installed program names
1529 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1532 --x-includes=DIR X include files are
in DIR
1533 --x-libraries=DIR X library files are
in DIR
1536 --build=BUILD configure
for building on BUILD
[guessed
]
1537 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1538 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1542 if test -n "$ac_init_help"; then
1547 --disable-option-checking ignore unrecognized
--enable/--with options
1548 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1549 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1550 --enable-maintainer-mode
1551 enable make rules and dependencies not useful
(and
1552 sometimes confusing
) to the casual installer
1553 --enable-plugins Enable support
for plugins
1554 --disable-largefile omit support
for large files
1555 --enable-targets=TARGETS
1556 alternative target configurations
1557 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1558 --disable-gdbmi disable machine-interface
(MI
)
1559 --enable-tui enable full-screen terminal user interface
(TUI
)
1560 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1561 --enable-profiling enable profiling of GDB
1562 --enable-codesign=CERT sign gdb with
'codesign -s CERT'
1563 --disable-rpath do not hardcode runtime library paths
1564 --enable-source-highlight
1565 enable source-highlight
for source listings
1566 --enable-werror treat compile warnings as errors
1567 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1568 --enable-gdb-build-warnings
1569 enable GDB specific build-time compiler warnings
if
1571 --enable-ubsan enable undefined behavior sanitizer
(auto
/yes
/no
)
1572 --enable-sim link gdb with simulator
1573 --enable-gdbserver automatically build gdbserver
(yes
/no
/auto
, default
1575 --enable-unit-tests Enable the inclusion of unit tests when compiling
1579 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1580 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1581 --with-separate-debug-dir=PATH
1582 look for global separate debug info
in this path
1584 --with-gdb-datadir=PATH
look for global separate data files
in this path
1586 --with-relocated-sources=PATH
1587 automatically relocate this path
for source files
1588 --with-auto-load-dir=PATH
1589 directories from
which to load auto-loaded scripts
1590 [$debugdir:$datadir/auto-load
]
1591 --with-auto-load-safe-path=PATH
1592 directories safe to hold auto-loaded files
1593 [--with-auto-load-dir]
1594 --without-auto-load-safe-path
1595 do not restrict auto-loaded files locations
1596 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1597 --with-curses use the curses library instead of the termcap
1599 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1600 --with-bugurl=URL Direct users to URL to report a bug
1601 --with-system-zlib use installed libz
1602 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1603 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1604 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1605 --with-iconv-bin=PATH specify where to find the iconv program
1606 --with-system-readline use installed readline library
1607 --with-jit-reader-dir=PATH
1608 directory to load the JIT readers from
1609 --with-expat include expat support (auto/yes/no)
1610 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1611 --without-libexpat-prefix don't search
for libexpat
in includedir and libdir
1612 --with-mpfr include MPFR support
(auto
/yes
/no
)
1613 --with-libmpfr-prefix[=DIR
] search
for libmpfr
in DIR
/include and DIR
/lib
1614 --without-libmpfr-prefix don
't search for libmpfr in includedir and libdir
1615 --with-python[=PYTHON] include python support
1616 (auto/yes/no/<python-program>)
1617 --with-guile[=GUILE] include guile support
1618 (auto/yes/no/<guile-version>/<pkg-config-program>)
1619 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1620 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1621 --without-libipt-prefix don't search
for libipt
in includedir and libdir
1622 --without-included-regex
1623 don
't use included regex; this is the default on
1624 systems with version 2 of the GNU C library (use
1625 with caution on other system)
1626 --with-sysroot[=DIR] search for usr/lib et al within DIR
1627 --with-system-gdbinit=PATH
1628 automatically load a system-wide gdbinit file
1629 --with-system-gdbinit-dir=PATH
1630 automatically load system-wide gdbinit files from
1632 --with-lzma support lzma compression (auto/yes/no)
1633 --with-liblzma-prefix[=DIR] search for liblzma in DIR/include and DIR/lib
1634 --without-liblzma-prefix don't search
for liblzma
in includedir and libdir
1635 --with-tcl directory containing tcl configuration
(tclConfig.sh
)
1636 --with-tk directory containing tk configuration
(tkConfig.sh
)
1637 --with-x use the X Window System
1638 --with-babeltrace include babeltrace support
(auto
/yes
/no
)
1639 --with-libbabeltrace-prefix[=DIR
] search
for libbabeltrace
in DIR
/include and DIR
/lib
1640 --without-libbabeltrace-prefix don
't search for libbabeltrace in includedir and libdir
1641 --with-xxhash use libxxhash for hashing (faster) (auto/yes/no)
1642 --with-libxxhash-prefix[=DIR] search for libxxhash in DIR/include and DIR/lib
1643 --without-libxxhash-prefix don't search
for libxxhash
in includedir and libdir
1645 Some influential environment variables
:
1646 CC C compiler
command
1647 CFLAGS C compiler flags
1648 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1649 nonstandard directory
<lib dir
>
1650 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1651 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1652 you have headers
in a nonstandard directory
<include dir
>
1653 CXX C
++ compiler
command
1654 CXXFLAGS C
++ compiler flags
1656 MAKEINFO Parent configure detects
if it is of sufficient version.
1658 Parameters
for MAKEINFO.
1659 YACC The
`Yet Another Compiler Compiler' implementation to use.
1660 Defaults to the first program found out of: `bison
-y', `byacc',
1662 YFLAGS The list of arguments that will be passed by default to $YACC.
1663 This script will default YFLAGS to the empty string to avoid a
1664 default value of `-d' given by some make applications.
1665 XMKMF Path to xmkmf, Makefile generator for X Window System
1667 Use these variables to override the choices made by `configure' or to
help
1668 it to
find libraries and programs with nonstandard names
/locations.
1670 Report bugs to the package provider.
1675 if test "$ac_init_help" = "recursive"; then
1676 # If there are subdirs, report their specific --help.
1677 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1678 test -d "$ac_dir" ||
1679 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1684 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1686 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1687 # A ".." for each directory in $ac_dir_suffix.
1688 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1689 case $ac_top_builddir_sub in
1690 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1691 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1694 ac_abs_top_builddir
=$ac_pwd
1695 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1696 # for backward compatibility:
1697 ac_top_builddir
=$ac_top_build_prefix
1700 .
) # We are building in place.
1702 ac_top_srcdir
=$ac_top_builddir_sub
1703 ac_abs_top_srcdir
=$ac_pwd ;;
1704 [\\/]* | ?
:[\\/]* ) # Absolute name.
1705 ac_srcdir
=$srcdir$ac_dir_suffix;
1706 ac_top_srcdir
=$srcdir
1707 ac_abs_top_srcdir
=$srcdir ;;
1709 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1710 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1711 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1713 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1715 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1716 # Check for guested configure.
1717 if test -f "$ac_srcdir/configure.gnu"; then
1719 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1720 elif test -f "$ac_srcdir/configure"; then
1722 $SHELL "$ac_srcdir/configure" --help=recursive
1724 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1726 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1730 test -n "$ac_init_help" && exit $ac_status
1731 if $ac_init_version; then
1734 generated by GNU Autoconf
2.69
1736 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1737 This configure
script is free software
; the Free Software Foundation
1738 gives unlimited permission to copy
, distribute and modify it.
1743 ## ------------------------ ##
1744 ## Autoconf initialization. ##
1745 ## ------------------------ ##
1747 # ac_fn_c_try_compile LINENO
1748 # --------------------------
1749 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1750 ac_fn_c_try_compile
()
1752 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1753 rm -f conftest.
$ac_objext
1754 if { { ac_try
="$ac_compile"
1756 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_compile") 2>conftest.err
1763 if test -s conftest.err; then
1764 grep -v '^ *+' conftest.err >conftest.er1
1765 cat conftest.er1 >&5
1766 mv -f conftest.er1 conftest.err
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; } && {
1770 test -z "$ac_c_werror_flag" ||
1771 test ! -s conftest.err
1772 } && test -s conftest.$ac_objext; then :
1775 $as_echo "$as_me: failed program was:" >&5
1776 sed 's/^/| /' conftest.$ac_ext >&5
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781 as_fn_set_status $ac_retval
1783 } # ac_fn_c_try_compile
1785 # ac_fn_cxx_try_compile LINENO
1786 # ----------------------------
1787 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1788 ac_fn_cxx_try_compile ()
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 rm -f conftest.$ac_objext
1792 if { { ac_try="$ac_compile"
1794 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1795 *) ac_try_echo
=$ac_try;;
1797 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798 $as_echo "$ac_try_echo"; } >&5
1799 (eval "$ac_compile") 2>conftest.err
1801 if test -s conftest.err
; then
1802 grep -v '^ *+' conftest.err
>conftest.er1
1803 cat conftest.er1
>&5
1804 mv -f conftest.er1 conftest.err
1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807 test $ac_status = 0; } && {
1808 test -z "$ac_cxx_werror_flag" ||
1809 test ! -s conftest.err
1810 } && test -s conftest.
$ac_objext; then :
1813 $as_echo "$as_me: failed program was:" >&5
1814 sed 's/^/| /' conftest.
$ac_ext >&5
1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819 as_fn_set_status
$ac_retval
1821 } # ac_fn_cxx_try_compile
1823 # ac_fn_c_try_cpp LINENO
1824 # ----------------------
1825 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1828 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1829 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1831 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1832 *) ac_try_echo=$ac_try;;
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1838 if test -s conftest.err; then
1839 grep -v '^ *+' conftest.err >conftest.er1
1840 cat conftest.er1 >&5
1841 mv -f conftest.er1 conftest.err
1843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1844 test $ac_status = 0; } > conftest.i && {
1845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1846 test ! -s conftest.err
1850 $as_echo "$as_me: failed program was:" >&5
1851 sed 's/^/| /' conftest.$ac_ext >&5
1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1856 as_fn_set_status $ac_retval
1860 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1861 # -------------------------------------------------------
1862 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1863 # the include files in INCLUDES and setting the cache variable VAR
1865 ac_fn_c_check_header_mongrel ()
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 if eval \${$3+:} false; then :
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1870 $as_echo_n "checking for $2... " >&6; }
1871 if eval \${$3+:} false; then :
1872 $as_echo_n "(cached) " >&6
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1878 # Is the header compilable?
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1880 $as_echo_n "checking $2 usability... " >&6; }
1881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882 /* end confdefs.h. */
1886 if ac_fn_c_try_compile "$LINENO"; then :
1887 ac_header_compiler=yes
1889 ac_header_compiler=no
1891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1893 $as_echo "$ac_header_compiler" >&6; }
1895 # Is the header present?
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1897 $as_echo_n "checking $2 presence... " >&6; }
1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899 /* end confdefs.h. */
1902 if ac_fn_c_try_cpp "$LINENO"; then :
1903 ac_header_preproc=yes
1905 ac_header_preproc=no
1907 rm -f conftest.err conftest.i conftest.$ac_ext
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1909 $as_echo "$ac_header_preproc" >&6; }
1911 # So? What about this header?
1912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1915 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1917 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1921 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1923 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1925 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1927 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1929 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1933 $as_echo_n "checking for $2... " >&6; }
1934 if eval \${$3+:} false; then :
1935 $as_echo_n "(cached) " >&6
1937 eval "$3=\$ac_header_compiler"
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941 $as_echo "$ac_res" >&6; }
1943 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945 } # ac_fn_c_check_header_mongrel
1947 # ac_fn_c_try_run LINENO
1948 # ----------------------
1949 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1950 # that executables *can* be run.
1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954 if { { ac_try="$ac_link"
1956 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1957 *) ac_try_echo
=$ac_try;;
1959 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1960 $as_echo "$ac_try_echo"; } >&5
1961 (eval "$ac_link") 2>&5
1963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1964 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1965 { { case "(($ac_try" in
1966 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1967 *) ac_try_echo=$ac_try;;
1969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1970 $as_echo "$ac_try_echo"; } >&5
1971 (eval "$ac_try") 2>&5
1973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1974 test $ac_status = 0; }; }; then :
1977 $as_echo "$as_me: program exited with status $ac_status" >&5
1978 $as_echo "$as_me: failed program was:" >&5
1979 sed 's/^/| /' conftest.$ac_ext >&5
1981 ac_retval=$ac_status
1983 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1984 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985 as_fn_set_status $ac_retval
1989 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1990 # -------------------------------------------------------
1991 # Tests whether HEADER exists and can be compiled using the include files in
1992 # INCLUDES, setting the cache variable VAR accordingly.
1993 ac_fn_c_check_header_compile ()
1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1997 $as_echo_n "checking for $2... " >&6; }
1998 if eval \${$3+:} false; then :
1999 $as_echo_n "(cached) " >&6
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2006 if ac_fn_c_try_compile "$LINENO"; then :
2011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2015 $as_echo "$ac_res" >&6; }
2016 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018 } # ac_fn_c_check_header_compile
2020 # ac_fn_c_try_link LINENO
2021 # -----------------------
2022 # Try to link conftest.$ac_ext, and return whether this succeeded.
2025 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2026 rm -f conftest.$ac_objext conftest$ac_exeext
2027 if { { ac_try="$ac_link"
2029 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2030 *) ac_try_echo
=$ac_try;;
2032 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2033 $as_echo "$ac_try_echo"; } >&5
2034 (eval "$ac_link") 2>conftest.err
2036 if test -s conftest.err
; then
2037 grep -v '^ *+' conftest.err
>conftest.er1
2038 cat conftest.er1
>&5
2039 mv -f conftest.er1 conftest.err
2041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2042 test $ac_status = 0; } && {
2043 test -z "$ac_c_werror_flag" ||
2044 test ! -s conftest.err
2045 } && test -s conftest
$ac_exeext && {
2046 test "$cross_compiling" = yes ||
2047 test -x conftest
$ac_exeext
2051 $as_echo "$as_me: failed program was:" >&5
2052 sed 's/^/| /' conftest.
$ac_ext >&5
2056 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2057 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2058 # interfere with the next link command; also delete a directory that is
2059 # left behind by Apple's compiler. We do this before executing the actions.
2060 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2061 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2062 as_fn_set_status
$ac_retval
2064 } # ac_fn_c_try_link
2066 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2067 # --------------------------------------------
2068 # Tries to find the compile-time value of EXPR in a program that includes
2069 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2071 ac_fn_c_compute_int
()
2073 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2074 if test "$cross_compiling" = yes; then
2075 # Depending upon the size, compute the lo and hi bounds.
2076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2082 static int test_array [1 - 2 * !(($2) >= 0)];
2084 return test_array [0];
2090 if ac_fn_c_try_compile
"$LINENO"; then :
2093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h. */
2099 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2101 return test_array [0];
2107 if ac_fn_c_try_compile
"$LINENO"; then :
2108 ac_hi
=$ac_mid; break
2110 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2111 if test $ac_lo -le $ac_mid; then
2115 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2117 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h. */
2126 static int test_array [1 - 2 * !(($2) < 0)];
2128 return test_array [0];
2134 if ac_fn_c_try_compile
"$LINENO"; then :
2137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h. */
2143 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2145 return test_array [0];
2151 if ac_fn_c_try_compile
"$LINENO"; then :
2152 ac_lo
=$ac_mid; break
2154 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2155 if test $ac_mid -le $ac_hi; then
2159 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2161 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2166 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2168 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2169 # Binary search between lo and hi bounds.
2170 while test "x$ac_lo" != "x$ac_hi"; do
2171 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2173 /* end confdefs.h. */
2178 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2180 return test_array [0];
2186 if ac_fn_c_try_compile
"$LINENO"; then :
2189 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2191 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2194 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h. */
2201 static long int longval () { return $2; }
2202 static unsigned long int ulongval () { return $2; }
2209 FILE *f = fopen ("conftest.val", "w");
2214 long int i = longval ();
2217 fprintf (f, "%ld", i);
2221 unsigned long int i = ulongval ();
2224 fprintf (f, "%lu", i);
2226 /* Do not output a trailing newline, as this causes \r\n confusion
2227 on some platforms. */
2228 return ferror (f) || fclose (f) != 0;
2234 if ac_fn_c_try_run
"$LINENO"; then :
2235 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2239 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2240 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2244 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2245 as_fn_set_status
$ac_retval
2247 } # ac_fn_c_compute_int
2249 # ac_fn_c_check_func LINENO FUNC VAR
2250 # ----------------------------------
2251 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2252 ac_fn_c_check_func
()
2254 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2256 $as_echo_n "checking for $2... " >&6; }
2257 if eval \
${$3+:} false
; then :
2258 $as_echo_n "(cached) " >&6
2260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h. */
2262 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2264 #define $2 innocuous_$2
2266 /* System header to define __stub macros and hopefully few prototypes,
2267 which can conflict with char $2 (); below.
2268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2269 <limits.h> exists even on freestanding compilers. */
2272 # include <limits.h>
2274 # include <assert.h>
2279 /* Override any GCC internal prototype to avoid an error.
2280 Use char because int might match the return type of a GCC
2281 builtin and then its argument prototype would still apply. */
2286 /* The GNU C library defines this for functions which it implements
2287 to always fail with ENOSYS. Some functions are actually named
2288 something starting with __ and the normal name is an alias. */
2289 #if defined __stub_$2 || defined __stub___$2
2301 if ac_fn_c_try_link
"$LINENO"; then :
2306 rm -f core conftest.err conftest.
$ac_objext \
2307 conftest
$ac_exeext conftest.
$ac_ext
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2311 $as_echo "$ac_res" >&6; }
2312 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2314 } # ac_fn_c_check_func
2316 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2317 # ----------------------------------------------------
2318 # Tries to find if the field MEMBER exists in type AGGR, after including
2319 # INCLUDES, setting cache variable VAR accordingly.
2320 ac_fn_c_check_member
()
2322 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2324 $as_echo_n "checking for $2.$3... " >&6; }
2325 if eval \
${$4+:} false
; then :
2326 $as_echo_n "(cached) " >&6
2328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2329 /* end confdefs.h. */
2341 if ac_fn_c_try_compile
"$LINENO"; then :
2344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2345 /* end confdefs.h. */
2351 if (sizeof ac_aggr.$3)
2357 if ac_fn_c_try_compile
"$LINENO"; then :
2362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2364 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2368 $as_echo "$ac_res" >&6; }
2369 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2371 } # ac_fn_c_check_member
2373 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2374 # -------------------------------------------
2375 # Tests whether TYPE exists after having included INCLUDES, setting cache
2376 # variable VAR accordingly.
2377 ac_fn_c_check_type
()
2379 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2381 $as_echo_n "checking for $2... " >&6; }
2382 if eval \
${$3+:} false
; then :
2383 $as_echo_n "(cached) " >&6
2386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2387 /* end confdefs.h. */
2398 if ac_fn_c_try_compile
"$LINENO"; then :
2399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2400 /* end confdefs.h. */
2411 if ac_fn_c_try_compile
"$LINENO"; then :
2416 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2418 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2422 $as_echo "$ac_res" >&6; }
2423 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2425 } # ac_fn_c_check_type
2427 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2428 # ---------------------------------------------
2429 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2431 ac_fn_c_check_decl
()
2433 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2434 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2435 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2437 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2438 if eval \
${$3+:} false
; then :
2439 $as_echo_n "(cached) " >&6
2441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2442 /* end confdefs.h. */
2447 #ifndef $as_decl_name
2449 (void) $as_decl_use;
2451 (void) $as_decl_name;
2459 if ac_fn_c_try_compile
"$LINENO"; then :
2464 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2468 $as_echo "$ac_res" >&6; }
2469 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2471 } # ac_fn_c_check_decl
2473 # ac_fn_cxx_try_link LINENO
2474 # -------------------------
2475 # Try to link conftest.$ac_ext, and return whether this succeeded.
2476 ac_fn_cxx_try_link
()
2478 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2479 rm -f conftest.
$ac_objext conftest
$ac_exeext
2480 if { { ac_try
="$ac_link"
2482 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2483 *) ac_try_echo=$ac_try;;
2485 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2486 $as_echo "$ac_try_echo"; } >&5
2487 (eval "$ac_link") 2>conftest.err
2489 if test -s conftest.err; then
2490 grep -v '^ *+' conftest.err >conftest.er1
2491 cat conftest.er1 >&5
2492 mv -f conftest.er1 conftest.err
2494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2495 test $ac_status = 0; } && {
2496 test -z "$ac_cxx_werror_flag" ||
2497 test ! -s conftest.err
2498 } && test -s conftest$ac_exeext && {
2499 test "$cross_compiling" = yes ||
2500 test -x conftest$ac_exeext
2504 $as_echo "$as_me: failed program was:" >&5
2505 sed 's/^/| /' conftest.$ac_ext >&5
2509 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2510 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2511 # interfere with the next link command; also delete a directory that is
2512 # left behind by Apple's compiler. We do this before executing the actions.
2513 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2514 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2515 as_fn_set_status $ac_retval
2517 } # ac_fn_cxx_try_link
2518 cat >config.log <<_ACEOF
2519 This file contains any messages produced by compilers while
2520 running configure, to aid debugging if configure makes a mistake.
2522 It was created by $as_me, which was
2523 generated by GNU Autoconf 2.69. Invocation command line was
2535 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2536 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2537 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2538 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2539 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2541 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2542 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2544 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2545 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2546 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2547 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2548 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2549 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2550 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558 test -z "$as_dir" && as_dir=.
2559 $as_echo "PATH: $as_dir"
2575 # Keep a trace of the command line.
2576 # Strip out --no-create and --no-recursion so they do not pile up.
2577 # Strip out --silent because we don't want to record it for future runs.
2578 # Also quote any args containing shell meta-characters.
2579 # Make two passes to allow for proper duplicate-argument suppression.
2583 ac_must_keep_next=false
2589 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2590 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2591 | -silent | --silent | --silen | --sile | --sil)
2594 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2597 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2599 as_fn_append ac_configure_args1 " '$ac_arg'"
2600 if test $ac_must_keep_next = true; then
2601 ac_must_keep_next=false # Got value, back to normal.
2604 *=* | --config-cache | -C | -disable-* | --disable-* \
2605 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2606 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2607 | -with-* | --with-* | -without-* | --without-* | --x)
2608 case "$ac_configure_args0 " in
2609 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2612 -* ) ac_must_keep_next=true ;;
2615 as_fn_append ac_configure_args " '$ac_arg'"
2620 { ac_configure_args0=; unset ac_configure_args0;}
2621 { ac_configure_args1=; unset ac_configure_args1;}
2623 # When interrupted or exit'd, cleanup temporary files, and complete
2624 # config.log. We remove comments because anyway the quotes in there
2625 # would cause problems or look ugly.
2626 # WARNING: Use '\'' to represent an apostrophe within the trap.
2627 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2628 trap 'exit_status=$?
2629 # Save into config.log some information that might help in debugging.
2633 $as_echo "## ---------------- ##
2634 ## Cache variables. ##
2635 ## ---------------- ##"
2637 # The following way of writing the cache mishandles newlines in values,
2639 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2640 eval ac_val=\$$ac_var
2644 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2645 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2648 _ | IFS | as_nl) ;; #(
2649 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2650 *) { eval $ac_var=; unset $ac_var;} ;;
2655 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2656 *${as_nl}ac_space=\ *)
2658 "s/'\''/'\''\\\\'\'''\''/g;
2659 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2662 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2669 $as_echo "## ----------------- ##
2670 ## Output variables. ##
2671 ## ----------------- ##"
2673 for ac_var in $ac_subst_vars
2675 eval ac_val=\$$ac_var
2677 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2679 $as_echo "$ac_var='\''$ac_val'\''"
2683 if test -n "$ac_subst_files"; then
2684 $as_echo "## ------------------- ##
2685 ## File substitutions. ##
2686 ## ------------------- ##"
2688 for ac_var in $ac_subst_files
2690 eval ac_val=\$$ac_var
2692 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2694 $as_echo "$ac_var='\''$ac_val'\''"
2699 if test -s confdefs.h; then
2700 $as_echo "## ----------- ##
2707 test "$ac_signal" != 0 &&
2708 $as_echo "$as_me: caught signal $ac_signal"
2709 $as_echo "$as_me: exit $exit_status"
2711 rm -f core *.core core.conftest.* &&
2712 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2715 for ac_signal in 1 2 13 15; do
2716 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2720 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2721 rm -f -r conftest* confdefs.h
2723 $as_echo "/* confdefs.h */" > confdefs.h
2725 # Predefined preprocessor variables.
2727 cat >>confdefs.h <<_ACEOF
2728 #define PACKAGE_NAME "$PACKAGE_NAME"
2731 cat >>confdefs.h <<_ACEOF
2732 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2735 cat >>confdefs.h <<_ACEOF
2736 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2739 cat >>confdefs.h <<_ACEOF
2740 #define PACKAGE_STRING "$PACKAGE_STRING"
2743 cat >>confdefs.h <<_ACEOF
2744 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2747 cat >>confdefs.h <<_ACEOF
2748 #define PACKAGE_URL "$PACKAGE_URL"
2752 # Let the site file select an alternate cache file if it wants to.
2753 # Prefer an explicitly selected file to automatically selected ones.
2756 if test -n "$CONFIG_SITE"; then
2757 # We do not want a PATH search for config.site.
2758 case $CONFIG_SITE in #((
2759 -*) ac_site_file1=./$CONFIG_SITE;;
2760 */*) ac_site_file1=$CONFIG_SITE;;
2761 *) ac_site_file1=./$CONFIG_SITE;;
2763 elif test "x$prefix" != xNONE; then
2764 ac_site_file1=$prefix/share/config.site
2765 ac_site_file2=$prefix/etc/config.site
2767 ac_site_file1=$ac_default_prefix/share/config.site
2768 ac_site_file2=$ac_default_prefix/etc/config.site
2770 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2772 test "x$ac_site_file" = xNONE && continue
2773 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2775 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2776 sed 's/^/| /' "$ac_site_file" >&5
2778 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2779 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2780 as_fn_error $? "failed to load site
script $ac_site_file
2781 See \
`config.log' for more details" "$LINENO" 5; }
2785 if test -r "$cache_file"; then
2786 # Some versions of bash will fail to source /dev/null (special files
2787 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2788 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2790 $as_echo "$as_me: loading cache $cache_file" >&6;}
2792 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2793 *) . "./$cache_file";;
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2798 $as_echo "$as_me: creating cache $cache_file" >&6;}
2802 as_fn_append ac_header_list " stdlib.h"
2803 as_fn_append ac_header_list " unistd.h"
2804 as_fn_append ac_header_list " sys/param.h"
2805 # Check that the precious variables saved in the cache have kept the same
2807 ac_cache_corrupted=false
2808 for ac_var in $ac_precious_vars; do
2809 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2810 eval ac_new_set=\$ac_env_${ac_var}_set
2811 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2812 eval ac_new_val=\$ac_env_${ac_var}_value
2813 case $ac_old_set,$ac_new_set in
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2816 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2817 ac_cache_corrupted=: ;;
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2820 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2821 ac_cache_corrupted=: ;;
2824 if test "x$ac_old_val" != "x$ac_new_val"; then
2825 # differences in whitespace do not lead to failure.
2826 ac_old_val_w=`echo x
$ac_old_val`
2827 ac_new_val_w=`echo x
$ac_new_val`
2828 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2830 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2831 ac_cache_corrupted=:
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2834 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2835 eval $ac_var=\$ac_old_val
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2838 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2840 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2843 # Pass precious variables to config.status.
2844 if test "$ac_new_set" = set; then
2846 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2847 *) ac_arg=$ac_var=$ac_new_val ;;
2849 case " $ac_configure_args " in
2850 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2851 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2855 if $ac_cache_corrupted; then
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2859 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2860 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2862 ## -------------------- ##
2863 ## Main body of script. ##
2864 ## -------------------- ##
2867 ac_cpp='$CPP $CPPFLAGS'
2868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2876 ac_config_headers="$ac_config_headers config.h:config.in"
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2880 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2881 # Check whether --enable-maintainer-mode was given.
2882 if test "${enable_maintainer_mode+set}" = set; then :
2883 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2885 USE_MAINTAINER_MODE=no
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2889 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2890 if test $USE_MAINTAINER_MODE = yes; then
2891 MAINTAINER_MODE_TRUE=
2892 MAINTAINER_MODE_FALSE='#'
2894 MAINTAINER_MODE_TRUE='#'
2895 MAINTAINER_MODE_FALSE=
2898 MAINT=$MAINTAINER_MODE_TRUE
2902 # Set the 'development' global.
2903 . $srcdir/../bfd/development.sh
2906 ac_cpp='$CPP $CPPFLAGS'
2907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2910 if test -n "$ac_tool_prefix"; then
2911 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2912 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2914 $as_echo_n "checking for $ac_word... " >&6; }
2915 if ${ac_cv_prog_CC+:} false; then :
2916 $as_echo_n "(cached) " >&6
2918 if test -n "$CC"; then
2919 ac_cv_prog_CC="$CC" # Let the user override the test.
2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925 test -z "$as_dir" && as_dir=.
2926 for ac_exec_ext in '' $ac_executable_extensions; do
2927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2928 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2939 if test -n "$CC"; then
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2941 $as_echo "$CC" >&6; }
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2944 $as_echo "no" >&6; }
2949 if test -z "$ac_cv_prog_CC"; then
2951 # Extract the first word of "gcc", so it can be a program name with args.
2952 set dummy gcc; ac_word=$2
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2954 $as_echo_n "checking for $ac_word... " >&6; }
2955 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2956 $as_echo_n "(cached) " >&6
2958 if test -n "$ac_ct_CC"; then
2959 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965 test -z "$as_dir" && as_dir=.
2966 for ac_exec_ext in '' $ac_executable_extensions; do
2967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2968 ac_cv_prog_ac_ct_CC="gcc"
2969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2978 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2979 if test -n "$ac_ct_CC"; then
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2981 $as_echo "$ac_ct_CC" >&6; }
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2984 $as_echo "no" >&6; }
2987 if test "x$ac_ct_CC" = x; then
2990 case $cross_compiling:$ac_tool_warned in
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2994 ac_tool_warned=yes ;;
3002 if test -z "$CC"; then
3003 if test -n "$ac_tool_prefix"; then
3004 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3005 set dummy ${ac_tool_prefix}cc; ac_word=$2
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3007 $as_echo_n "checking for $ac_word... " >&6; }
3008 if ${ac_cv_prog_CC+:} false; then :
3009 $as_echo_n "(cached) " >&6
3011 if test -n "$CC"; then
3012 ac_cv_prog_CC="$CC" # Let the user override the test.
3014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018 test -z "$as_dir" && as_dir=.
3019 for ac_exec_ext in '' $ac_executable_extensions; do
3020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3021 ac_cv_prog_CC="${ac_tool_prefix}cc"
3022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3032 if test -n "$CC"; then
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3034 $as_echo "$CC" >&6; }
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3037 $as_echo "no" >&6; }
3043 if test -z "$CC"; then
3044 # Extract the first word of "cc", so it can be a program name with args.
3045 set dummy cc; ac_word=$2
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047 $as_echo_n "checking for $ac_word... " >&6; }
3048 if ${ac_cv_prog_CC+:} false; then :
3049 $as_echo_n "(cached) " >&6
3051 if test -n "$CC"; then
3052 ac_cv_prog_CC="$CC" # Let the user override the test.
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059 test -z "$as_dir" && as_dir=.
3060 for ac_exec_ext in '' $ac_executable_extensions; do
3061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3062 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3063 ac_prog_rejected=yes
3067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3074 if test $ac_prog_rejected = yes; then
3075 # We found a bogon in the path, so make sure we never use it.
3076 set dummy $ac_cv_prog_CC
3078 if test $# != 0; then
3079 # We chose a different compiler from the bogus one.
3080 # However, it has the same basename, so the bogon will be chosen
3081 # first if we set CC to just the basename; use the full file name.
3083 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3089 if test -n "$CC"; then
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3091 $as_echo "$CC" >&6; }
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 $as_echo "no" >&6; }
3099 if test -z "$CC"; then
3100 if test -n "$ac_tool_prefix"; then
3101 for ac_prog in cl.exe
3103 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3104 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106 $as_echo_n "checking for $ac_word... " >&6; }
3107 if ${ac_cv_prog_CC+:} false; then :
3108 $as_echo_n "(cached) " >&6
3110 if test -n "$CC"; then
3111 ac_cv_prog_CC="$CC" # Let the user override the test.
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117 test -z "$as_dir" && as_dir=.
3118 for ac_exec_ext in '' $ac_executable_extensions; do
3119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3120 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3131 if test -n "$CC"; then
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3133 $as_echo "$CC" >&6; }
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136 $as_echo "no" >&6; }
3140 test -n "$CC" && break
3143 if test -z "$CC"; then
3145 for ac_prog in cl.exe
3147 # Extract the first word of "$ac_prog", so it can be a program name with args.
3148 set dummy $ac_prog; ac_word=$2
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3150 $as_echo_n "checking for $ac_word... " >&6; }
3151 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3152 $as_echo_n "(cached) " >&6
3154 if test -n "$ac_ct_CC"; then
3155 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161 test -z "$as_dir" && as_dir=.
3162 for ac_exec_ext in '' $ac_executable_extensions; do
3163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3164 ac_cv_prog_ac_ct_CC="$ac_prog"
3165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3174 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3175 if test -n "$ac_ct_CC"; then
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3177 $as_echo "$ac_ct_CC" >&6; }
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180 $as_echo "no" >&6; }
3184 test -n "$ac_ct_CC" && break
3187 if test "x$ac_ct_CC" = x; then
3190 case $cross_compiling:$ac_tool_warned in
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3194 ac_tool_warned=yes ;;
3203 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3205 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3206 See \
`config.log' for more details" "$LINENO" 5; }
3208 # Provide some information about the compiler.
3209 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3212 for ac_option in --version -v -V -qversion; do
3213 { { ac_try="$ac_compiler $ac_option >&5"
3215 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3216 *) ac_try_echo
=$ac_try;;
3218 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3219 $as_echo "$ac_try_echo"; } >&5
3220 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3222 if test -s conftest.err
; then
3224 ... rest of stderr output deleted ...
3225 10q' conftest.err
>conftest.er1
3226 cat conftest.er1
>&5
3228 rm -f conftest.er1 conftest.err
3229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3230 test $ac_status = 0; }
3233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3234 /* end confdefs.h. */
3244 ac_clean_files_save
=$ac_clean_files
3245 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3246 # Try to create an executable without -o first, disregard a.out.
3247 # It will help us diagnose broken compilers, and finding out an intuition
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3250 $as_echo_n "checking whether the C compiler works... " >&6; }
3251 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3253 # The possible output files:
3254 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3257 for ac_file
in $ac_files
3260 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3261 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3266 if { { ac_try
="$ac_link_default"
3268 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3271 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3272 $as_echo "$ac_try_echo"; } >&5
3273 (eval "$ac_link_default") 2>&5
3275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3276 test $ac_status = 0; }; then :
3277 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3278 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3279 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3280 # so that the user can short-circuit this test for compilers unknown to
3282 for ac_file in $ac_files ''
3284 test -f "$ac_file" || continue
3286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3289 # We found the default executable, but exeext='' is most
3293 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3295 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3297 # We set ac_cv_exeext here because the later test for it is not
3298 # safe: cross compilers may not add the suffix if given an `-o'
3299 # argument, so we may need to know it at that point already.
3300 # Even if this section looks crufty: it has the advantage of
3307 test "$ac_cv_exeext" = no && ac_cv_exeext=
3312 if test -z "$ac_file"; then :
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314 $as_echo "no" >&6; }
3315 $as_echo "$as_me: failed program was:" >&5
3316 sed 's
/^
/|
/' conftest.$ac_ext >&5
3318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3319 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3320 as_fn_error 77 "C compiler cannot create executables
3321 See \`config.log
' for more details" "$LINENO" 5; }
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3324 $as_echo "yes" >&6; }
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3327 $as_echo_n "checking for C compiler default output file name... " >&6; }
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3329 $as_echo "$ac_file" >&6; }
3330 ac_exeext=$ac_cv_exeext
3332 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3333 ac_clean_files=$ac_clean_files_save
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3335 $as_echo_n "checking for suffix of executables... " >&6; }
3336 if { { ac_try="$ac_link"
3338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339 *) ac_try_echo=$ac_try;;
3341 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3342 $as_echo "$ac_try_echo"; } >&5
3343 (eval "$ac_link") 2>&5
3345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3346 test $ac_status = 0; }; then :
3347 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3348 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3349 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3351 for ac_file
in conftest.exe conftest conftest.
*; do
3352 test -f "$ac_file" ||
continue
3354 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3355 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3361 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3363 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3364 See \`config.log' for more details" "$LINENO" 5; }
3366 rm -f conftest conftest
$ac_cv_exeext
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3368 $as_echo "$ac_cv_exeext" >&6; }
3370 rm -f conftest.
$ac_ext
3371 EXEEXT
=$ac_cv_exeext
3373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3374 /* end confdefs.h. */
3379 FILE *f = fopen ("conftest.out", "w");
3380 return ferror (f) || fclose (f) != 0;
3386 ac_clean_files
="$ac_clean_files conftest.out"
3387 # Check that the compiler produces executables we can run. If not, either
3388 # the compiler is broken, or we cross compile.
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3390 $as_echo_n "checking whether we are cross compiling... " >&6; }
3391 if test "$cross_compiling" != yes; then
3392 { { ac_try
="$ac_link"
3394 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3395 *) ac_try_echo=$ac_try;;
3397 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3398 $as_echo "$ac_try_echo"; } >&5
3399 (eval "$ac_link") 2>&5
3401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3402 test $ac_status = 0; }
3403 if { ac_try='./conftest$ac_cv_exeext'
3404 { { case "(($ac_try" in
3405 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3406 *) ac_try_echo
=$ac_try;;
3408 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3409 $as_echo "$ac_try_echo"; } >&5
3410 (eval "$ac_try") 2>&5
3412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3413 test $ac_status = 0; }; }; then
3416 if test "$cross_compiling" = maybe
; then
3419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3421 as_fn_error $?
"cannot run C compiled programs.
3422 If you meant to cross compile, use \`--host'.
3423 See \`config.log' for more details" "$LINENO" 5; }
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3428 $as_echo "$cross_compiling" >&6; }
3430 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3431 ac_clean_files
=$ac_clean_files_save
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3433 $as_echo_n "checking for suffix of object files... " >&6; }
3434 if ${ac_cv_objext+:} false
; then :
3435 $as_echo_n "(cached) " >&6
3437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3438 /* end confdefs.h. */
3448 rm -f conftest.o conftest.obj
3449 if { { ac_try
="$ac_compile"
3451 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3455 $as_echo "$ac_try_echo"; } >&5
3456 (eval "$ac_compile") 2>&5
3458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3459 test $ac_status = 0; }; then :
3460 for ac_file in conftest.o conftest.obj conftest.*; do
3461 test -f "$ac_file" || continue;
3463 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3464 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3469 $as_echo "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3474 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3475 See \
`config.log' for more details" "$LINENO" 5; }
3477 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3480 $as_echo "$ac_cv_objext" >&6; }
3481 OBJEXT=$ac_cv_objext
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3484 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3485 if ${ac_cv_c_compiler_gnu+:} false; then :
3486 $as_echo_n "(cached) " >&6
3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h. */
3502 if ac_fn_c_try_compile "$LINENO"; then :
3507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3508 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3512 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3513 if test $ac_compiler_gnu = yes; then
3518 ac_test_CFLAGS=${CFLAGS+set}
3519 ac_save_CFLAGS=$CFLAGS
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3521 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3522 if ${ac_cv_prog_cc_g+:} false; then :
3523 $as_echo_n "(cached) " >&6
3525 ac_save_c_werror_flag=$ac_c_werror_flag
3526 ac_c_werror_flag=yes
3529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3530 /* end confdefs.h. */
3540 if ac_fn_c_try_compile "$LINENO"; then :
3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545 /* end confdefs.h. */
3555 if ac_fn_c_try_compile "$LINENO"; then :
3558 ac_c_werror_flag=$ac_save_c_werror_flag
3560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3561 /* end confdefs.h. */
3571 if ac_fn_c_try_compile "$LINENO"; then :
3574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3579 ac_c_werror_flag=$ac_save_c_werror_flag
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3582 $as_echo "$ac_cv_prog_cc_g" >&6; }
3583 if test "$ac_test_CFLAGS" = set; then
3584 CFLAGS=$ac_save_CFLAGS
3585 elif test $ac_cv_prog_cc_g = yes; then
3586 if test "$GCC" = yes; then
3592 if test "$GCC" = yes; then
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3599 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3600 if ${ac_cv_prog_cc_c89+:} false; then :
3601 $as_echo_n "(cached) " >&6
3603 ac_cv_prog_cc_c89=no
3605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3606 /* end confdefs.h. */
3610 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3611 struct buf { int x; };
3612 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3613 static char *e (p, i)
3619 static char *f (char * (*g) (char **, int), char **p, ...)
3624 s = g (p, va_arg (v,int));
3629 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3630 function prototypes and stuff, but not '\xHH' hex character constants.
3631 These don't provoke an error unfortunately, instead are silently treated
3632 as 'x'. The following induces an error, until -std is added to get
3633 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3634 array size at least. It's necessary to write '\x00'==0 to get something
3635 that's true only with -std. */
3636 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3638 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3639 inside strings and character constants. */
3641 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3643 int test (int i, double x);
3644 struct s1 {int (*f) (int a);};
3645 struct s2 {int (*f) (double a);};
3646 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3652 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3657 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3658 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3660 CC="$ac_save_CC $ac_arg"
3661 if ac_fn_c_try_compile "$LINENO"; then :
3662 ac_cv_prog_cc_c89=$ac_arg
3664 rm -f core conftest.err conftest.$ac_objext
3665 test "x$ac_cv_prog_cc_c89" != "xno" && break
3667 rm -f conftest.$ac_ext
3672 case "x$ac_cv_prog_cc_c89" in
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3675 $as_echo "none needed" >&6; } ;;
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3678 $as_echo "unsupported" >&6; } ;;
3680 CC="$CC $ac_cv_prog_cc_c89"
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3682 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3684 if test "x$ac_cv_prog_cc_c89" != xno; then :
3689 ac_cpp='$CPP $CPPFLAGS'
3690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3695 ac_cpp='$CXXCPP $CPPFLAGS'
3696 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3697 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3698 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3699 if test -z "$CXX"; then
3700 if test -n "$CCC"; then
3703 if test -n "$ac_tool_prefix"; then
3704 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3706 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3707 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3709 $as_echo_n "checking for $ac_word... " >&6; }
3710 if ${ac_cv_prog_CXX+:} false; then :
3711 $as_echo_n "(cached) " >&6
3713 if test -n "$CXX"; then
3714 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720 test -z "$as_dir" && as_dir=.
3721 for ac_exec_ext in '' $ac_executable_extensions; do
3722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3723 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3734 if test -n "$CXX"; then
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3736 $as_echo "$CXX" >&6; }
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3739 $as_echo "no" >&6; }
3743 test -n "$CXX" && break
3746 if test -z "$CXX"; then
3748 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3750 # Extract the first word of "$ac_prog", so it can be a program name with args.
3751 set dummy $ac_prog; ac_word=$2
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3753 $as_echo_n "checking for $ac_word... " >&6; }
3754 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3755 $as_echo_n "(cached) " >&6
3757 if test -n "$ac_ct_CXX"; then
3758 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764 test -z "$as_dir" && as_dir=.
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3767 ac_cv_prog_ac_ct_CXX="$ac_prog"
3768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3777 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3778 if test -n "$ac_ct_CXX"; then
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3780 $as_echo "$ac_ct_CXX" >&6; }
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3783 $as_echo "no" >&6; }
3787 test -n "$ac_ct_CXX" && break
3790 if test "x$ac_ct_CXX" = x; then
3793 case $cross_compiling:$ac_tool_warned in
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3797 ac_tool_warned=yes ;;
3805 # Provide some information about the compiler.
3806 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3809 for ac_option in --version -v -V -qversion; do
3810 { { ac_try="$ac_compiler $ac_option >&5"
3812 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3813 *) ac_try_echo
=$ac_try;;
3815 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3816 $as_echo "$ac_try_echo"; } >&5
3817 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3819 if test -s conftest.err
; then
3821 ... rest of stderr output deleted ...
3822 10q' conftest.err
>conftest.er1
3823 cat conftest.er1
>&5
3825 rm -f conftest.er1 conftest.err
3826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3827 test $ac_status = 0; }
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3831 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3832 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3833 $as_echo_n "(cached) " >&6
3835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3849 if ac_fn_cxx_try_compile
"$LINENO"; then :
3854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3855 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3859 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3860 if test $ac_compiler_gnu = yes; then
3865 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3866 ac_save_CXXFLAGS
=$CXXFLAGS
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3868 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3869 if ${ac_cv_prog_cxx_g+:} false
; then :
3870 $as_echo_n "(cached) " >&6
3872 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3873 ac_cxx_werror_flag
=yes
3876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3887 if ac_fn_cxx_try_compile
"$LINENO"; then :
3888 ac_cv_prog_cxx_g
=yes
3891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3892 /* end confdefs.h. */
3902 if ac_fn_cxx_try_compile
"$LINENO"; then :
3905 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3908 /* end confdefs.h. */
3918 if ac_fn_cxx_try_compile
"$LINENO"; then :
3919 ac_cv_prog_cxx_g
=yes
3921 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3923 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3925 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3926 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3929 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3930 if test "$ac_test_CXXFLAGS" = set; then
3931 CXXFLAGS
=$ac_save_CXXFLAGS
3932 elif test $ac_cv_prog_cxx_g = yes; then
3933 if test "$GXX" = yes; then
3939 if test "$GXX" = yes; then
3946 ac_cpp
='$CPP $CPPFLAGS'
3947 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3948 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3949 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3954 ac_cpp
='$CPP $CPPFLAGS'
3955 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3956 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3957 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3959 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3960 # On Suns, sometimes $CPP names a directory.
3961 if test -n "$CPP" && test -d "$CPP"; then
3964 if test -z "$CPP"; then
3965 if ${ac_cv_prog_CPP+:} false
; then :
3966 $as_echo_n "(cached) " >&6
3968 # Double quotes because CPP needs to be expanded
3969 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3972 for ac_c_preproc_warn_flag
in '' yes
3974 # Use a header file that comes with gcc, so configuring glibc
3975 # with a fresh cross-compiler works.
3976 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3977 # <limits.h> exists even on freestanding compilers.
3978 # On the NeXT, cc -E runs the code through the compiler's parser,
3979 # not just through cpp. "Syntax error" is here to catch this case.
3980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3981 /* end confdefs.h. */
3983 # include <limits.h>
3985 # include <assert.h>
3989 if ac_fn_c_try_cpp
"$LINENO"; then :
3992 # Broken: fails on valid input.
3995 rm -f conftest.err conftest.i conftest.
$ac_ext
3997 # OK, works on sane cases. Now check whether nonexistent headers
3998 # can be detected and how.
3999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h. */
4001 #include <ac_nonexistent.h>
4003 if ac_fn_c_try_cpp
"$LINENO"; then :
4004 # Broken: success on invalid input.
4007 # Passes both tests.
4011 rm -f conftest.err conftest.i conftest.
$ac_ext
4014 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4015 rm -f conftest.i conftest.err conftest.
$ac_ext
4016 if $ac_preproc_ok; then :
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4029 $as_echo "$CPP" >&6; }
4031 for ac_c_preproc_warn_flag
in '' yes
4033 # Use a header file that comes with gcc, so configuring glibc
4034 # with a fresh cross-compiler works.
4035 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4036 # <limits.h> exists even on freestanding compilers.
4037 # On the NeXT, cc -E runs the code through the compiler's parser,
4038 # not just through cpp. "Syntax error" is here to catch this case.
4039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4040 /* end confdefs.h. */
4042 # include <limits.h>
4044 # include <assert.h>
4048 if ac_fn_c_try_cpp
"$LINENO"; then :
4051 # Broken: fails on valid input.
4054 rm -f conftest.err conftest.i conftest.
$ac_ext
4056 # OK, works on sane cases. Now check whether nonexistent headers
4057 # can be detected and how.
4058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4059 /* end confdefs.h. */
4060 #include <ac_nonexistent.h>
4062 if ac_fn_c_try_cpp
"$LINENO"; then :
4063 # Broken: success on invalid input.
4066 # Passes both tests.
4070 rm -f conftest.err conftest.i conftest.
$ac_ext
4073 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4074 rm -f conftest.i conftest.err conftest.
$ac_ext
4075 if $ac_preproc_ok; then :
4078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4080 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4081 See \`config.log' for more details" "$LINENO" 5; }
4085 ac_cpp
='$CPP $CPPFLAGS'
4086 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4087 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4088 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4092 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4093 if ${ac_cv_path_GREP+:} false
; then :
4094 $as_echo_n "(cached) " >&6
4096 if test -z "$GREP"; then
4097 ac_path_GREP_found
=false
4098 # Loop through the user's path and test for each of PROGNAME-LIST
4099 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4100 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4103 test -z "$as_dir" && as_dir
=.
4104 for ac_prog
in grep ggrep
; do
4105 for ac_exec_ext
in '' $ac_executable_extensions; do
4106 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4107 as_fn_executable_p
"$ac_path_GREP" ||
continue
4108 # Check for GNU ac_path_GREP and select it if it is found.
4109 # Check for GNU $ac_path_GREP
4110 case `"$ac_path_GREP" --version 2>&1` in
4112 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4115 $as_echo_n 0123456789 >"conftest.in"
4118 cat "conftest.in" "conftest.in" >"conftest.tmp"
4119 mv "conftest.tmp" "conftest.in"
4120 cp "conftest.in" "conftest.nl"
4121 $as_echo 'GREP' >> "conftest.nl"
4122 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4123 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4124 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4125 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4126 # Best one so far, save it but keep looking for a better one
4127 ac_cv_path_GREP
="$ac_path_GREP"
4128 ac_path_GREP_max
=$ac_count
4130 # 10*(2^10) chars as input seems more than enough
4131 test $ac_count -gt 10 && break
4133 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4136 $ac_path_GREP_found && break 3
4141 if test -z "$ac_cv_path_GREP"; then
4142 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4145 ac_cv_path_GREP
=$GREP
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4150 $as_echo "$ac_cv_path_GREP" >&6; }
4151 GREP
="$ac_cv_path_GREP"
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4155 $as_echo_n "checking for egrep... " >&6; }
4156 if ${ac_cv_path_EGREP+:} false
; then :
4157 $as_echo_n "(cached) " >&6
4159 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4160 then ac_cv_path_EGREP
="$GREP -E"
4162 if test -z "$EGREP"; then
4163 ac_path_EGREP_found
=false
4164 # Loop through the user's path and test for each of PROGNAME-LIST
4165 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4166 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4169 test -z "$as_dir" && as_dir
=.
4170 for ac_prog
in egrep; do
4171 for ac_exec_ext
in '' $ac_executable_extensions; do
4172 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4173 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4174 # Check for GNU ac_path_EGREP and select it if it is found.
4175 # Check for GNU $ac_path_EGREP
4176 case `"$ac_path_EGREP" --version 2>&1` in
4178 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4181 $as_echo_n 0123456789 >"conftest.in"
4184 cat "conftest.in" "conftest.in" >"conftest.tmp"
4185 mv "conftest.tmp" "conftest.in"
4186 cp "conftest.in" "conftest.nl"
4187 $as_echo 'EGREP' >> "conftest.nl"
4188 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4189 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4190 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4191 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4192 # Best one so far, save it but keep looking for a better one
4193 ac_cv_path_EGREP
="$ac_path_EGREP"
4194 ac_path_EGREP_max
=$ac_count
4196 # 10*(2^10) chars as input seems more than enough
4197 test $ac_count -gt 10 && break
4199 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4202 $ac_path_EGREP_found && break 3
4207 if test -z "$ac_cv_path_EGREP"; then
4208 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4211 ac_cv_path_EGREP
=$EGREP
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4217 $as_echo "$ac_cv_path_EGREP" >&6; }
4218 EGREP
="$ac_cv_path_EGREP"
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4222 $as_echo_n "checking for ANSI C header files... " >&6; }
4223 if ${ac_cv_header_stdc+:} false
; then :
4224 $as_echo_n "(cached) " >&6
4226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h. */
4241 if ac_fn_c_try_compile
"$LINENO"; then :
4242 ac_cv_header_stdc
=yes
4244 ac_cv_header_stdc
=no
4246 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4248 if test $ac_cv_header_stdc = yes; then
4249 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4251 /* end confdefs.h. */
4255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4256 $EGREP "memchr" >/dev
/null
2>&1; then :
4259 ac_cv_header_stdc
=no
4265 if test $ac_cv_header_stdc = yes; then
4266 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4268 /* end confdefs.h. */
4272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4273 $EGREP "free" >/dev
/null
2>&1; then :
4276 ac_cv_header_stdc
=no
4282 if test $ac_cv_header_stdc = yes; then
4283 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4284 if test "$cross_compiling" = yes; then :
4287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4288 /* end confdefs.h. */
4291 #if ((' ' & 0x0FF) == 0x020)
4292 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4293 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4295 # define ISLOWER(c) \
4296 (('a' <= (c) && (c) <= 'i') \
4297 || ('j' <= (c) && (c) <= 'r') \
4298 || ('s' <= (c) && (c) <= 'z'))
4299 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4302 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4307 for (i = 0; i < 256; i++)
4308 if (XOR (islower (i), ISLOWER (i))
4309 || toupper (i) != TOUPPER (i))
4314 if ac_fn_c_try_run
"$LINENO"; then :
4317 ac_cv_header_stdc
=no
4319 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4320 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4326 $as_echo "$ac_cv_header_stdc" >&6; }
4327 if test $ac_cv_header_stdc = yes; then
4329 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4333 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4334 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4335 inttypes.h stdint.h unistd.h
4337 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4338 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4340 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4341 cat >>confdefs.h
<<_ACEOF
4342 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4351 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4352 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4359 if test "$MINIX" = yes; then
4361 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4364 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4367 $as_echo "#define _MINIX 1" >>confdefs.h
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4373 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4374 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4375 $as_echo_n "(cached) " >&6
4377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4378 /* end confdefs.h. */
4380 # define __EXTENSIONS__ 1
4381 $ac_includes_default
4390 if ac_fn_c_try_compile
"$LINENO"; then :
4391 ac_cv_safe_to_define___extensions__
=yes
4393 ac_cv_safe_to_define___extensions__
=no
4395 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4398 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4399 test $ac_cv_safe_to_define___extensions__ = yes &&
4400 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4402 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4404 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4406 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4408 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4412 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4413 if test -f "$ac_dir/install-sh"; then
4415 ac_install_sh
="$ac_aux_dir/install-sh -c"
4417 elif test -f "$ac_dir/install.sh"; then
4419 ac_install_sh
="$ac_aux_dir/install.sh -c"
4421 elif test -f "$ac_dir/shtool"; then
4423 ac_install_sh
="$ac_aux_dir/shtool install -c"
4427 if test -z "$ac_aux_dir"; then
4428 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4431 # These three variables are undocumented and unsupported,
4432 # and are intended to be withdrawn in a future Autoconf release.
4433 # They can cause serious problems if a builder's source tree is in a directory
4434 # whose full name contains unusual characters.
4435 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4436 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4437 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4440 # Make sure we can run config.sub.
4441 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4442 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4445 $as_echo_n "checking build system type... " >&6; }
4446 if ${ac_cv_build+:} false
; then :
4447 $as_echo_n "(cached) " >&6
4449 ac_build_alias
=$build_alias
4450 test "x$ac_build_alias" = x
&&
4451 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4452 test "x$ac_build_alias" = x
&&
4453 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4454 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4455 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4459 $as_echo "$ac_cv_build" >&6; }
4460 case $ac_cv_build in
4462 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4465 ac_save_IFS
=$IFS; IFS
='-'
4471 # Remember, the first character of IFS is used to create $*,
4472 # except with old shells:
4475 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4479 $as_echo_n "checking host system type... " >&6; }
4480 if ${ac_cv_host+:} false
; then :
4481 $as_echo_n "(cached) " >&6
4483 if test "x$host_alias" = x
; then
4484 ac_cv_host
=$ac_cv_build
4486 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4487 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4492 $as_echo "$ac_cv_host" >&6; }
4495 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4498 ac_save_IFS
=$IFS; IFS
='-'
4504 # Remember, the first character of IFS is used to create $*,
4505 # except with old shells:
4508 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4512 $as_echo_n "checking target system type... " >&6; }
4513 if ${ac_cv_target+:} false
; then :
4514 $as_echo_n "(cached) " >&6
4516 if test "x$target_alias" = x
; then
4517 ac_cv_target
=$ac_cv_host
4519 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4520 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4525 $as_echo "$ac_cv_target" >&6; }
4526 case $ac_cv_target in
4528 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4530 target
=$ac_cv_target
4531 ac_save_IFS
=$IFS; IFS
='-'
4537 # Remember, the first character of IFS is used to create $*,
4538 # except with old shells:
4541 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4544 # The aliases save the names the user supplied, while $host etc.
4545 # will get canonicalized.
4546 test -n "$target_alias" &&
4547 test "$program_prefix$program_suffix$program_transform_name" = \
4549 program_prefix
=${target_alias}-
4551 # The tests for host and target for $enable_largefile require
4556 # As the $enable_largefile decision depends on --enable-plugins we must set it
4557 # even in directories otherwise not depending on the $plugins option.
4561 for ac_header
in dlfcn.h
4563 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4565 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
4566 cat >>confdefs.h
<<_ACEOF
4567 #define HAVE_DLFCN_H 1
4574 for ac_header
in windows.h
4576 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4578 if test "x$ac_cv_header_windows_h" = xyes
; then :
4579 cat >>confdefs.h
<<_ACEOF
4580 #define HAVE_WINDOWS_H 1
4588 # Check whether --enable-plugins was given.
4589 if test "${enable_plugins+set}" = set; then :
4590 enableval
=$enable_plugins; case "${enableval}" in
4593 if test "$maybe_plugins" != "yes" ; then
4594 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4598 plugins
=$maybe_plugins
4602 if test "$plugins" = "yes"; then
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4604 $as_echo_n "checking for library containing dlsym... " >&6; }
4605 if ${ac_cv_search_dlsym+:} false
; then :
4606 $as_echo_n "(cached) " >&6
4608 ac_func_search_save_LIBS
=$LIBS
4609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4610 /* end confdefs.h. */
4612 /* Override any GCC internal prototype to avoid an error.
4613 Use char because int might match the return type of a GCC
4614 builtin and then its argument prototype would still apply. */
4627 for ac_lib
in '' dl
; do
4628 if test -z "$ac_lib"; then
4629 ac_res
="none required"
4632 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4634 if ac_fn_c_try_link
"$LINENO"; then :
4635 ac_cv_search_dlsym
=$ac_res
4637 rm -f core conftest.err conftest.
$ac_objext \
4639 if ${ac_cv_search_dlsym+:} false
; then :
4643 if ${ac_cv_search_dlsym+:} false
; then :
4646 ac_cv_search_dlsym
=no
4649 LIBS
=$ac_func_search_save_LIBS
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4652 $as_echo "$ac_cv_search_dlsym" >&6; }
4653 ac_res
=$ac_cv_search_dlsym
4654 if test "$ac_res" != no
; then :
4655 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4663 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4664 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4665 # are mutually exclusive; and without procfs support, the bfd/ elf module
4666 # cannot provide certain routines such as elfcore_write_prpsinfo
4667 # or elfcore_write_prstatus. So unless the user explicitly requested
4668 # large-file support through the --enable-largefile switch, disable
4669 # large-file support in favor of procfs support.
4670 test "${target}" = "${host}" -a "x$plugins" = xno \
4671 && : ${enable_largefile="no"}
4675 # Check whether --enable-largefile was given.
4676 if test "${enable_largefile+set}" = set; then :
4677 enableval
=$enable_largefile;
4680 if test "$enable_largefile" != no
; then
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4683 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4684 if ${ac_cv_sys_largefile_CC+:} false
; then :
4685 $as_echo_n "(cached) " >&6
4687 ac_cv_sys_largefile_CC
=no
4688 if test "$GCC" != yes; then
4691 # IRIX 6.2 and later do not support large files by default,
4692 # so use the C compiler's -n32 option if that helps.
4693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4694 /* end confdefs.h. */
4695 #include <sys/types.h>
4696 /* Check that off_t can represent 2**63 - 1 correctly.
4697 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4698 since some C++ compilers masquerading as C compilers
4699 incorrectly reject 9223372036854775807. */
4700 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4701 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4702 && LARGE_OFF_T % 2147483647 == 1)
4712 if ac_fn_c_try_compile
"$LINENO"; then :
4715 rm -f core conftest.err conftest.
$ac_objext
4717 if ac_fn_c_try_compile
"$LINENO"; then :
4718 ac_cv_sys_largefile_CC
=' -n32'; break
4720 rm -f core conftest.err conftest.
$ac_objext
4724 rm -f conftest.
$ac_ext
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4728 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4729 if test "$ac_cv_sys_largefile_CC" != no
; then
4730 CC
=$CC$ac_cv_sys_largefile_CC
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4734 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4735 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4736 $as_echo_n "(cached) " >&6
4739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4740 /* end confdefs.h. */
4741 #include <sys/types.h>
4742 /* Check that off_t can represent 2**63 - 1 correctly.
4743 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4744 since some C++ compilers masquerading as C compilers
4745 incorrectly reject 9223372036854775807. */
4746 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4747 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4748 && LARGE_OFF_T % 2147483647 == 1)
4758 if ac_fn_c_try_compile
"$LINENO"; then :
4759 ac_cv_sys_file_offset_bits
=no
; break
4761 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4763 /* end confdefs.h. */
4764 #define _FILE_OFFSET_BITS 64
4765 #include <sys/types.h>
4766 /* Check that off_t can represent 2**63 - 1 correctly.
4767 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4768 since some C++ compilers masquerading as C compilers
4769 incorrectly reject 9223372036854775807. */
4770 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4771 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4772 && LARGE_OFF_T % 2147483647 == 1)
4782 if ac_fn_c_try_compile
"$LINENO"; then :
4783 ac_cv_sys_file_offset_bits
=64; break
4785 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4786 ac_cv_sys_file_offset_bits
=unknown
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4791 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4792 case $ac_cv_sys_file_offset_bits in #(
4795 cat >>confdefs.h
<<_ACEOF
4796 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4801 if test $ac_cv_sys_file_offset_bits = unknown
; then
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4803 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4804 if ${ac_cv_sys_large_files+:} false
; then :
4805 $as_echo_n "(cached) " >&6
4808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4809 /* end confdefs.h. */
4810 #include <sys/types.h>
4811 /* Check that off_t can represent 2**63 - 1 correctly.
4812 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4813 since some C++ compilers masquerading as C compilers
4814 incorrectly reject 9223372036854775807. */
4815 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4816 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4817 && LARGE_OFF_T % 2147483647 == 1)
4827 if ac_fn_c_try_compile
"$LINENO"; then :
4828 ac_cv_sys_large_files
=no
; break
4830 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4832 /* end confdefs.h. */
4833 #define _LARGE_FILES 1
4834 #include <sys/types.h>
4835 /* Check that off_t can represent 2**63 - 1 correctly.
4836 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4837 since some C++ compilers masquerading as C compilers
4838 incorrectly reject 9223372036854775807. */
4839 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4840 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4841 && LARGE_OFF_T % 2147483647 == 1)
4851 if ac_fn_c_try_compile
"$LINENO"; then :
4852 ac_cv_sys_large_files
=1; break
4854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4855 ac_cv_sys_large_files
=unknown
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4860 $as_echo "$ac_cv_sys_large_files" >&6; }
4861 case $ac_cv_sys_large_files in #(
4864 cat >>confdefs.h
<<_ACEOF
4865 #define _LARGE_FILES $ac_cv_sys_large_files
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4880 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4881 if ${am_cv_prog_cc_stdc+:} false
; then :
4882 $as_echo_n "(cached) " >&6
4884 am_cv_prog_cc_stdc
=no
4886 # Don't try gcc -ansi; that turns off useful extensions and
4887 # breaks some systems' header files.
4888 # AIX -qlanglvl=ansi
4889 # Ultrix and OSF/1 -std1
4890 # HP-UX 10.20 and later -Ae
4891 # HP-UX older versions -Aa -D_HPUX_SOURCE
4892 # SVR4 -Xc -D__EXTENSIONS__
4893 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4895 CC
="$ac_save_CC $ac_arg"
4896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4897 /* end confdefs.h. */
4900 #include <sys/types.h>
4901 #include <sys/stat.h>
4902 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4903 struct buf { int x; };
4904 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4905 static char *e (p, i)
4911 static char *f (char * (*g) (char **, int), char **p, ...)
4916 s = g (p, va_arg (v,int));
4920 int test (int i, double x);
4921 struct s1 {int (*f) (int a);};
4922 struct s2 {int (*f) (double a);};
4923 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4931 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4937 if ac_fn_c_try_compile
"$LINENO"; then :
4938 am_cv_prog_cc_stdc
="$ac_arg"; break
4940 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4946 if test -z "$am_cv_prog_cc_stdc"; then
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4948 $as_echo "none needed" >&6; }
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4951 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4953 case "x$am_cv_prog_cc_stdc" in
4955 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
4958 # Expand $ac_aux_dir to an absolute path.
4959 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
4961 if test x
"${install_sh+set}" != xset
; then
4964 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
4966 install_sh
="\${SHELL} $am_aux_dir/install-sh"
4970 # Installed binaries are usually stripped using 'strip' when the user
4971 # run "make install-strip". However 'strip' might not be the right
4972 # tool to use in cross-compilation environments, therefore Automake
4973 # will honor the 'STRIP' environment variable to overrule this program.
4974 if test "$cross_compiling" != no
; then
4975 if test -n "$ac_tool_prefix"; then
4976 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4977 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4979 $as_echo_n "checking for $ac_word... " >&6; }
4980 if ${ac_cv_prog_STRIP+:} false
; then :
4981 $as_echo_n "(cached) " >&6
4983 if test -n "$STRIP"; then
4984 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4986 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4990 test -z "$as_dir" && as_dir
=.
4991 for ac_exec_ext
in '' $ac_executable_extensions; do
4992 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4993 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5003 STRIP
=$ac_cv_prog_STRIP
5004 if test -n "$STRIP"; then
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5006 $as_echo "$STRIP" >&6; }
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5009 $as_echo "no" >&6; }
5014 if test -z "$ac_cv_prog_STRIP"; then
5016 # Extract the first word of "strip", so it can be a program name with args.
5017 set dummy strip
; ac_word
=$2
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5019 $as_echo_n "checking for $ac_word... " >&6; }
5020 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
5021 $as_echo_n "(cached) " >&6
5023 if test -n "$ac_ct_STRIP"; then
5024 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5026 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5030 test -z "$as_dir" && as_dir
=.
5031 for ac_exec_ext
in '' $ac_executable_extensions; do
5032 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5033 ac_cv_prog_ac_ct_STRIP
="strip"
5034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5043 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5044 if test -n "$ac_ct_STRIP"; then
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5046 $as_echo "$ac_ct_STRIP" >&6; }
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5049 $as_echo "no" >&6; }
5052 if test "x$ac_ct_STRIP" = x
; then
5055 case $cross_compiling:$ac_tool_warned in
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5059 ac_tool_warned
=yes ;;
5064 STRIP
="$ac_cv_prog_STRIP"
5068 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
5072 for ac_dir
in ..
"$srcdir"/..
; do
5073 if test -f "$ac_dir/install-sh"; then
5075 ac_install_sh
="$ac_aux_dir/install-sh -c"
5077 elif test -f "$ac_dir/install.sh"; then
5079 ac_install_sh
="$ac_aux_dir/install.sh -c"
5081 elif test -f "$ac_dir/shtool"; then
5083 ac_install_sh
="$ac_aux_dir/shtool install -c"
5087 if test -z "$ac_aux_dir"; then
5088 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
5091 # These three variables are undocumented and unsupported,
5092 # and are intended to be withdrawn in a future Autoconf release.
5093 # They can cause serious problems if a builder's source tree is in a directory
5094 # whose full name contains unusual characters.
5095 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5096 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5097 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5101 test "$program_prefix" != NONE
&&
5102 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
5103 # Use a double $ so make ignores it.
5104 test "$program_suffix" != NONE
&&
5105 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
5106 # Double any \ or $.
5107 # By default was `s,x,x', remove it if useless.
5108 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
5109 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
5112 # We require a C++11 compiler. Check if one is available, and if
5113 # necessary, set CXX_DIALECT to some -std=xxx switch.
5115 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5117 ac_cpp
='$CXXCPP $CPPFLAGS'
5118 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5119 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5120 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5124 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5125 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5126 $as_echo_n "(cached) " >&6
5128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5129 /* end confdefs.h. */
5132 // If the compiler admits that it is not ready for C++11, why torture it?
5133 // Hopefully, this will speed up the test.
5137 #error "This is not a C++ compiler"
5139 #elif __cplusplus < 201103L
5141 #error "This is not a C++11 compiler"
5148 namespace test_static_assert
5151 template <typename T>
5154 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5159 namespace test_final_override
5167 struct Derived : public Base
5169 virtual void f() override {}
5174 namespace test_double_right_angle_brackets
5177 template < typename T >
5180 typedef check<void> single_type;
5181 typedef check<check<void>> double_type;
5182 typedef check<check<check<void>>> triple_type;
5183 typedef check<check<check<check<void>>>> quadruple_type;
5187 namespace test_decltype
5200 namespace test_type_deduction
5203 template < typename T1, typename T2 >
5206 static const bool value = false;
5209 template < typename T >
5210 struct is_same<T, T>
5212 static const bool value = true;
5215 template < typename T1, typename T2 >
5217 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5223 test(const int c, volatile int v)
5225 static_assert(is_same<int, decltype(0)>::value == true, "");
5226 static_assert(is_same<int, decltype(c)>::value == false, "");
5227 static_assert(is_same<int, decltype(v)>::value == false, "");
5230 auto sumi = ac + av + 'x';
5231 auto sumf = ac + av + 1.0;
5232 static_assert(is_same<int, decltype(ac)>::value == true, "");
5233 static_assert(is_same<int, decltype(av)>::value == true, "");
5234 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5235 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5236 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5237 return (sumf > 0.0) ? sumi : add(c, v);
5242 namespace test_noexcept
5245 int f() { return 0; }
5246 int g() noexcept { return 0; }
5248 static_assert(noexcept(f()) == false, "");
5249 static_assert(noexcept(g()) == true, "");
5253 namespace test_constexpr
5256 template < typename CharT >
5257 unsigned long constexpr
5258 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5260 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5263 template < typename CharT >
5264 unsigned long constexpr
5265 strlen_c(const CharT *const s) noexcept
5267 return strlen_c_r(s, 0UL);
5270 static_assert(strlen_c("") == 0UL, "");
5271 static_assert(strlen_c("1") == 1UL, "");
5272 static_assert(strlen_c("example") == 7UL, "");
5273 static_assert(strlen_c("another\0example") == 7UL, "");
5277 namespace test_rvalue_references
5283 static constexpr int value = N;
5286 answer<1> f(int&) { return answer<1>(); }
5287 answer<2> f(const int&) { return answer<2>(); }
5288 answer<3> f(int&&) { return answer<3>(); }
5295 static_assert(decltype(f(i))::value == 1, "");
5296 static_assert(decltype(f(c))::value == 2, "");
5297 static_assert(decltype(f(0))::value == 3, "");
5302 namespace test_uniform_initialization
5307 static const int zero {};
5308 static const int one {1};
5311 static_assert(test::zero == 0, "");
5312 static_assert(test::one == 1, "");
5316 namespace test_lambdas
5322 auto lambda1 = [](){};
5323 auto lambda2 = lambda1;
5331 auto a = [](int i, int j){ return i + j; }(1, 2);
5332 auto b = []() -> int { return '0'; }();
5333 auto c = [=](){ return a + b; }();
5334 auto d = [&](){ return c; }();
5335 auto e = [a, &b](int x) mutable {
5336 const auto identity = [](int y){ return y; };
5337 for (auto i = 0; i < a; ++i)
5339 return x + identity(a + b);
5341 return a + b + c + d + e;
5347 const auto nullary = [](){ return 0; };
5348 const auto unary = [](int x){ return x; };
5349 using nullary_t = decltype(nullary);
5350 using unary_t = decltype(unary);
5351 const auto higher1st = [](nullary_t f){ return f(); };
5352 const auto higher2nd = [unary](nullary_t f1){
5353 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5355 return higher1st(nullary) + higher2nd(nullary)(unary);
5360 namespace test_variadic_templates
5366 template <int N0, int... N1toN>
5367 struct sum<N0, N1toN...>
5369 static constexpr auto value = N0 + sum<N1toN...>::value;
5375 static constexpr auto value = 0;
5378 static_assert(sum<>::value == 0, "");
5379 static_assert(sum<1>::value == 1, "");
5380 static_assert(sum<23>::value == 23, "");
5381 static_assert(sum<1, 2>::value == 3, "");
5382 static_assert(sum<5, 5, 11>::value == 21, "");
5383 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5387 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5388 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5390 namespace test_template_alias_sfinae
5395 template<typename T>
5396 using member = typename T::member_type;
5398 template<typename T>
5401 template<typename T>
5402 void func(member<T>*) {}
5406 void test() { func<foo>(0); }
5410 } // namespace cxx11
5412 #endif // __cplusplus >= 201103L
5417 if ac_fn_cxx_try_compile
"$LINENO"; then :
5418 ax_cv_cxx_compile_cxx11
=yes
5420 ax_cv_cxx_compile_cxx11
=no
5422 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5425 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5426 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
5430 if test x
$ac_success = xno
; then
5431 for alternative
in ${ax_cxx_compile_alternatives}; do
5432 switch
="-std=gnu++${alternative}"
5433 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5435 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5436 if eval \
${$cachevar+:} false
; then :
5437 $as_echo_n "(cached) " >&6
5441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5442 /* end confdefs.h. */
5445 // If the compiler admits that it is not ready for C++11, why torture it?
5446 // Hopefully, this will speed up the test.
5450 #error "This is not a C++ compiler"
5452 #elif __cplusplus < 201103L
5454 #error "This is not a C++11 compiler"
5461 namespace test_static_assert
5464 template <typename T>
5467 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5472 namespace test_final_override
5480 struct Derived : public Base
5482 virtual void f() override {}
5487 namespace test_double_right_angle_brackets
5490 template < typename T >
5493 typedef check<void> single_type;
5494 typedef check<check<void>> double_type;
5495 typedef check<check<check<void>>> triple_type;
5496 typedef check<check<check<check<void>>>> quadruple_type;
5500 namespace test_decltype
5513 namespace test_type_deduction
5516 template < typename T1, typename T2 >
5519 static const bool value = false;
5522 template < typename T >
5523 struct is_same<T, T>
5525 static const bool value = true;
5528 template < typename T1, typename T2 >
5530 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5536 test(const int c, volatile int v)
5538 static_assert(is_same<int, decltype(0)>::value == true, "");
5539 static_assert(is_same<int, decltype(c)>::value == false, "");
5540 static_assert(is_same<int, decltype(v)>::value == false, "");
5543 auto sumi = ac + av + 'x';
5544 auto sumf = ac + av + 1.0;
5545 static_assert(is_same<int, decltype(ac)>::value == true, "");
5546 static_assert(is_same<int, decltype(av)>::value == true, "");
5547 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5548 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5549 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5550 return (sumf > 0.0) ? sumi : add(c, v);
5555 namespace test_noexcept
5558 int f() { return 0; }
5559 int g() noexcept { return 0; }
5561 static_assert(noexcept(f()) == false, "");
5562 static_assert(noexcept(g()) == true, "");
5566 namespace test_constexpr
5569 template < typename CharT >
5570 unsigned long constexpr
5571 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5573 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5576 template < typename CharT >
5577 unsigned long constexpr
5578 strlen_c(const CharT *const s) noexcept
5580 return strlen_c_r(s, 0UL);
5583 static_assert(strlen_c("") == 0UL, "");
5584 static_assert(strlen_c("1") == 1UL, "");
5585 static_assert(strlen_c("example") == 7UL, "");
5586 static_assert(strlen_c("another\0example") == 7UL, "");
5590 namespace test_rvalue_references
5596 static constexpr int value = N;
5599 answer<1> f(int&) { return answer<1>(); }
5600 answer<2> f(const int&) { return answer<2>(); }
5601 answer<3> f(int&&) { return answer<3>(); }
5608 static_assert(decltype(f(i))::value == 1, "");
5609 static_assert(decltype(f(c))::value == 2, "");
5610 static_assert(decltype(f(0))::value == 3, "");
5615 namespace test_uniform_initialization
5620 static const int zero {};
5621 static const int one {1};
5624 static_assert(test::zero == 0, "");
5625 static_assert(test::one == 1, "");
5629 namespace test_lambdas
5635 auto lambda1 = [](){};
5636 auto lambda2 = lambda1;
5644 auto a = [](int i, int j){ return i + j; }(1, 2);
5645 auto b = []() -> int { return '0'; }();
5646 auto c = [=](){ return a + b; }();
5647 auto d = [&](){ return c; }();
5648 auto e = [a, &b](int x) mutable {
5649 const auto identity = [](int y){ return y; };
5650 for (auto i = 0; i < a; ++i)
5652 return x + identity(a + b);
5654 return a + b + c + d + e;
5660 const auto nullary = [](){ return 0; };
5661 const auto unary = [](int x){ return x; };
5662 using nullary_t = decltype(nullary);
5663 using unary_t = decltype(unary);
5664 const auto higher1st = [](nullary_t f){ return f(); };
5665 const auto higher2nd = [unary](nullary_t f1){
5666 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5668 return higher1st(nullary) + higher2nd(nullary)(unary);
5673 namespace test_variadic_templates
5679 template <int N0, int... N1toN>
5680 struct sum<N0, N1toN...>
5682 static constexpr auto value = N0 + sum<N1toN...>::value;
5688 static constexpr auto value = 0;
5691 static_assert(sum<>::value == 0, "");
5692 static_assert(sum<1>::value == 1, "");
5693 static_assert(sum<23>::value == 23, "");
5694 static_assert(sum<1, 2>::value == 3, "");
5695 static_assert(sum<5, 5, 11>::value == 21, "");
5696 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5700 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5701 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5703 namespace test_template_alias_sfinae
5708 template<typename T>
5709 using member = typename T::member_type;
5711 template<typename T>
5714 template<typename T>
5715 void func(member<T>*) {}
5719 void test() { func<foo>(0); }
5723 } // namespace cxx11
5725 #endif // __cplusplus >= 201103L
5730 if ac_fn_cxx_try_compile
"$LINENO"; then :
5735 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5738 eval ac_res
=\$
$cachevar
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5740 $as_echo "$ac_res" >&6; }
5741 if eval test x\$
$cachevar = xyes
; then
5742 CXX_DIALECT
="$switch"
5749 if test x
$ac_success = xno
; then
5750 for alternative
in ${ax_cxx_compile_alternatives}; do
5751 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5752 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
5754 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
5755 if eval \${$cachevar+:} false; then :
5756 $as_echo_n "(cached
) " >&6
5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h. */
5764 // If the compiler admits that it is not ready for C++11, why torture it?
5765 // Hopefully, this will speed up the test.
5769 #error "This is not a C
++ compiler
"
5771 #elif __cplusplus < 201103L
5773 #error "This is not a C
++11 compiler
"
5780 namespace test_static_assert
5783 template <typename T>
5786 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
5791 namespace test_final_override
5799 struct Derived : public Base
5801 virtual void f() override {}
5806 namespace test_double_right_angle_brackets
5809 template < typename T >
5812 typedef check<void> single_type;
5813 typedef check<check<void>> double_type;
5814 typedef check<check<check<void>>> triple_type;
5815 typedef check<check<check<check<void>>>> quadruple_type;
5819 namespace test_decltype
5832 namespace test_type_deduction
5835 template < typename T1, typename T2 >
5838 static const bool value = false;
5841 template < typename T >
5842 struct is_same<T, T>
5844 static const bool value = true;
5847 template < typename T1, typename T2 >
5849 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5855 test(const int c, volatile int v)
5857 static_assert(is_same<int, decltype(0)>::value == true, "");
5858 static_assert(is_same<int, decltype(c)>::value == false, "");
5859 static_assert(is_same<int, decltype(v)>::value == false, "");
5862 auto sumi = ac + av + 'x';
5863 auto sumf = ac + av + 1.0;
5864 static_assert(is_same<int, decltype(ac)>::value == true, "");
5865 static_assert(is_same<int, decltype(av)>::value == true, "");
5866 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5867 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5868 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5869 return (sumf > 0.0) ? sumi : add(c, v);
5874 namespace test_noexcept
5877 int f() { return 0; }
5878 int g() noexcept { return 0; }
5880 static_assert(noexcept(f()) == false, "");
5881 static_assert(noexcept(g()) == true, "");
5885 namespace test_constexpr
5888 template < typename CharT >
5889 unsigned long constexpr
5890 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5892 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5895 template < typename CharT >
5896 unsigned long constexpr
5897 strlen_c(const CharT *const s) noexcept
5899 return strlen_c_r(s, 0UL);
5902 static_assert(strlen_c("") == 0UL, "");
5903 static_assert(strlen_c("1") == 1UL, "");
5904 static_assert(strlen_c("example
") == 7UL, "");
5905 static_assert(strlen_c("another\
0example
") == 7UL, "");
5909 namespace test_rvalue_references
5915 static constexpr int value = N;
5918 answer<1> f(int&) { return answer<1>(); }
5919 answer<2> f(const int&) { return answer<2>(); }
5920 answer<3> f(int&&) { return answer<3>(); }
5927 static_assert(decltype(f(i))::value == 1, "");
5928 static_assert(decltype(f(c))::value == 2, "");
5929 static_assert(decltype(f(0))::value == 3, "");
5934 namespace test_uniform_initialization
5939 static const int zero {};
5940 static const int one {1};
5943 static_assert(test::zero == 0, "");
5944 static_assert(test::one == 1, "");
5948 namespace test_lambdas
5954 auto lambda1 = [](){};
5955 auto lambda2 = lambda1;
5963 auto a = [](int i, int j){ return i + j; }(1, 2);
5964 auto b = []() -> int { return '0'; }();
5965 auto c = [=](){ return a + b; }();
5966 auto d = [&](){ return c; }();
5967 auto e = [a, &b](int x) mutable {
5968 const auto identity = [](int y){ return y; };
5969 for (auto i = 0; i < a; ++i)
5971 return x + identity(a + b);
5973 return a + b + c + d + e;
5979 const auto nullary = [](){ return 0; };
5980 const auto unary = [](int x){ return x; };
5981 using nullary_t = decltype(nullary);
5982 using unary_t = decltype(unary);
5983 const auto higher1st = [](nullary_t f){ return f(); };
5984 const auto higher2nd = [unary](nullary_t f1){
5985 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5987 return higher1st(nullary) + higher2nd(nullary)(unary);
5992 namespace test_variadic_templates
5998 template <int N0, int... N1toN>
5999 struct sum<N0, N1toN...>
6001 static constexpr auto value = N0 + sum<N1toN...>::value;
6007 static constexpr auto value = 0;
6010 static_assert(sum<>::value == 0, "");
6011 static_assert(sum<1>::value == 1, "");
6012 static_assert(sum<23>::value == 23, "");
6013 static_assert(sum<1, 2>::value == 3, "");
6014 static_assert(sum<5, 5, 11>::value == 21, "");
6015 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6019 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6020 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6022 namespace test_template_alias_sfinae
6027 template<typename T>
6028 using member = typename T::member_type;
6030 template<typename T>
6033 template<typename T>
6034 void func(member<T>*) {}
6038 void test() { func<foo>(0); }
6042 } // namespace cxx11
6044 #endif // __cplusplus >= 201103L
6049 if ac_fn_cxx_try_compile "$LINENO"; then :
6054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6057 eval ac_res=\$$cachevar
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6059 $as_echo "$ac_res" >&6; }
6060 if eval test x\$$cachevar = xyes; then
6061 CXX_DIALECT="$switch"
6066 if test x$ac_success = xyes; then
6072 ac_cpp='$CPP $CPPFLAGS'
6073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6077 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6078 if test x$ac_success = xno; then
6079 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6082 if test x$ac_success = xno; then
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6085 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6089 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6096 # Dependency checking.
6097 rm -rf .tst
2>/dev
/null
6098 mkdir .tst
2>/dev
/null
6099 if test -d .tst
; then
6104 rmdir .tst
2>/dev
/null
6106 DEPDIR
="${am__leading_dot}deps"
6108 ac_config_commands
="$ac_config_commands depdir"
6111 depcc
="$CC" am_compiler_list
=
6113 am_depcomp
=$ac_aux_dir/depcomp
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6115 $as_echo_n "checking dependency style of $depcc... " >&6; }
6116 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
6117 $as_echo_n "(cached) " >&6
6119 if test -f "$am_depcomp"; then
6120 # We make a subdir and do the tests there. Otherwise we can end up
6121 # making bogus files that we don't know about and never remove. For
6122 # instance it was reported that on HP-UX the gcc test will end up
6123 # making a dummy file named `D' -- because `-MD' means `put the output
6126 # Copy depcomp to subdir because otherwise we won't find it if we're
6127 # using a relative directory.
6128 cp "$am_depcomp" conftest.dir
6130 # We will build objects and dependencies in a subdirectory because
6131 # it helps to detect inapplicable dependency modes. For instance
6132 # both Tru64's cc and ICC support -MD to output dependencies as a
6133 # side effect of compilation, but ICC will put the dependencies in
6134 # the current directory while Tru64 will put them in the object
6138 am_cv_CC_dependencies_compiler_type
=none
6139 if test "$am_compiler_list" = ""; then
6140 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6142 for depmode
in $am_compiler_list; do
6143 if test $depmode = none
; then break; fi
6145 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6146 # Setup a source with many dependencies, because some compilers
6147 # like to wrap large dependency lists on column 80 (with \), and
6148 # we should not choose a depcomp mode which is confused by this.
6150 # We need to recreate these files for each test, as the compiler may
6151 # overwrite some of them when testing with obscure command lines.
6152 # This happens at least with the AIX C compiler.
6154 for i
in 1 2 3 4 5 6; do
6155 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6156 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6157 # Solaris 8's {/usr,}/bin/sh.
6158 touch sub
/conftst
$i.h
6160 echo "include sub/conftest.Po" > confmf
6162 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6163 # mode. It turns out that the SunPro C++ compiler does not properly
6164 # handle `-M -o', and we need to detect this.
6165 depcmd
="depmode=$depmode \
6166 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6167 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6168 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6169 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
6170 if env
$depcmd > conftest.err
2>&1 &&
6171 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
6172 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
6173 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
6174 # icc doesn't choke on unknown options, it will just issue warnings
6175 # or remarks (even with -Werror). So we grep stderr for any message
6176 # that says an option was ignored or not supported.
6177 # When given -MP, icc 7.0 and 7.1 complain thusly:
6178 # icc: Command line warning: ignoring option '-M'; no argument required
6179 # The diagnosis changed in icc 8.0:
6180 # icc: Command line remark: option '-MP' not supported
6181 if (grep 'ignoring option' conftest.err ||
6182 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6183 am_cv_CC_dependencies_compiler_type
=$depmode
6184 $as_echo "$as_me:$LINENO: success" >&5
6188 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6189 sed -e 's/^/| /' < conftest.err
>&5
6195 am_cv_CC_dependencies_compiler_type
=none
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6200 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6201 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
6202 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
6203 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
6219 # If we haven't got the data from the intl directory,
6220 # assume NLS is disabled.
6229 if test -f ..
/intl
/config.intl
; then
6230 . ..
/intl
/config.intl
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6233 $as_echo_n "checking whether NLS is requested... " >&6; }
6234 if test x
"$USE_NLS" != xyes
; then
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6236 $as_echo "no" >&6; }
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6239 $as_echo "yes" >&6; }
6241 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6245 $as_echo_n "checking for catalogs to be installed... " >&6; }
6246 # Look for .po and .gmo files in the source directory.
6249 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
6250 # If there aren't any .gmo files the shell will give us the
6251 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6253 case "$cat" in *\
**)
6256 # The quadruple backslash is collapsed to a double backslash
6257 # by the backticks, then collapsed again by the double quotes,
6258 # leaving us with one backslash in the sed expression (right
6259 # before the dot that mustn't act as a wildcard).
6260 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6261 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
6262 # The user is allowed to set LINGUAS to a list of languages to
6263 # install catalogs for. If it's empty that means "all of them."
6264 if test "x$LINGUAS" = x
; then
6265 CATALOGS
="$CATALOGS $cat"
6266 XLINGUAS
="$XLINGUAS $lang"
6268 case "$LINGUAS" in *$lang*)
6269 CATALOGS
="$CATALOGS $cat"
6270 XLINGUAS
="$XLINGUAS $lang"
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6277 $as_echo "$LINGUAS" >&6; }
6290 localedir
='${datadir}/locale'
6293 if test x
"$USE_NLS" = xyes
; then
6294 CONFIG_ALL
="$CONFIG_ALL all-po"
6295 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
6296 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
6297 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
6302 cat >>confdefs.h
<<_ACEOF
6303 #define PACKAGE "$PACKAGE"
6308 # We never need to detect it in this sub-configure.
6309 # But preserve it for config.status --recheck.
6313 MAKEINFO_EXTRA_FLAGS
=""
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
6315 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
6316 if ${gdb_cv_have_makeinfo_click+:} false
; then :
6317 $as_echo_n "(cached) " >&6
6319 echo '@clicksequence{a @click{} b}' >conftest.texinfo
6320 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
6321 gdb_cv_have_makeinfo_click
=yes
6323 gdb_cv_have_makeinfo_click
=no
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
6327 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
6328 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
6329 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
6335 # Check whether --with-separate-debug-dir was given.
6336 if test "${with_separate_debug_dir+set}" = set; then :
6337 withval
=$with_separate_debug_dir;
6340 DEBUGDIR
=${libdir}/debug
6344 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6345 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6346 ac_define_dir
=`eval echo $DEBUGDIR`
6347 ac_define_dir
=`eval echo $ac_define_dir`
6349 cat >>confdefs.h
<<_ACEOF
6350 #define DEBUGDIR "$ac_define_dir"
6356 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6357 if test "x$prefix" = xNONE
; then
6358 test_prefix
=/usr
/local
6363 test_prefix
=$exec_prefix
6366 case ${ac_define_dir} in
6367 "${test_prefix}"|
"${test_prefix}/"*|\
6368 '${exec_prefix}'|
'${exec_prefix}/'*)
6373 cat >>confdefs.h
<<_ACEOF
6374 #define DEBUGDIR_RELOCATABLE $value
6380 # We can't pass paths as command line arguments.
6381 # Mingw32 tries to be clever and will convert the paths for us.
6382 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
6383 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
6384 # This breaks GDB's relocatable path conversions since paths passed in
6385 # config.h would not get so translated, the path prefixes no longer match.
6387 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6388 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6389 ac_define_dir
=`eval echo $bindir`
6390 ac_define_dir
=`eval echo $ac_define_dir`
6392 cat >>confdefs.h
<<_ACEOF
6393 #define BINDIR "$ac_define_dir"
6398 # GDB's datadir relocation
6402 # Check whether --with-gdb-datadir was given.
6403 if test "${with_gdb_datadir+set}" = set; then :
6404 withval
=$with_gdb_datadir;
6405 GDB_DATADIR
=$withval
6407 GDB_DATADIR
=${datadir}/gdb
6411 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6412 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6413 ac_define_dir
=`eval echo $GDB_DATADIR`
6414 ac_define_dir
=`eval echo $ac_define_dir`
6416 cat >>confdefs.h
<<_ACEOF
6417 #define GDB_DATADIR "$ac_define_dir"
6423 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6424 if test "x$prefix" = xNONE
; then
6425 test_prefix
=/usr
/local
6430 test_prefix
=$exec_prefix
6433 case ${ac_define_dir} in
6434 "${test_prefix}"|
"${test_prefix}/"*|\
6435 '${exec_prefix}'|
'${exec_prefix}/'*)
6440 cat >>confdefs.h
<<_ACEOF
6441 #define GDB_DATADIR_RELOCATABLE $value
6448 # Check whether --with-relocated-sources was given.
6449 if test "${with_relocated_sources+set}" = set; then :
6450 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
6452 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6453 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6454 ac_define_dir
=`eval echo $reloc_srcdir`
6455 ac_define_dir
=`eval echo $ac_define_dir`
6457 cat >>confdefs.h
<<_ACEOF
6458 #define RELOC_SRCDIR "$ac_define_dir"
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
6467 $as_echo_n "checking for default auto-load directory... " >&6; }
6469 # Check whether --with-auto-load-dir was given.
6470 if test "${with_auto_load_dir+set}" = set; then :
6471 withval
=$with_auto_load_dir;
6473 with_auto_load_dir
='$debugdir:$datadir/auto-load'
6476 escape_dir
=`echo $with_auto_load_dir | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6478 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6479 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6480 ac_define_dir
=`eval echo $escape_dir`
6481 ac_define_dir
=`eval echo $ac_define_dir`
6483 cat >>confdefs.h
<<_ACEOF
6484 #define AUTO_LOAD_DIR "$ac_define_dir"
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
6489 $as_echo "$with_auto_load_dir" >&6; }
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
6492 $as_echo_n "checking for default auto-load safe-path... " >&6; }
6494 # Check whether --with-auto-load-safe-path was given.
6495 if test "${with_auto_load_safe_path+set}" = set; then :
6496 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
6497 with_auto_load_safe_path
="/"
6500 with_auto_load_safe_path
="$with_auto_load_dir"
6503 escape_dir
=`echo $with_auto_load_safe_path | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6505 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6506 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6507 ac_define_dir
=`eval echo $escape_dir`
6508 ac_define_dir
=`eval echo $ac_define_dir`
6510 cat >>confdefs.h
<<_ACEOF
6511 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
6516 $as_echo "$with_auto_load_safe_path" >&6; }
6520 subdirs
="$subdirs testsuite"
6523 # Check whether to support alternative target configurations
6524 # Check whether --enable-targets was given.
6525 if test "${enable_targets+set}" = set; then :
6526 enableval
=$enable_targets; case "${enableval}" in
6527 yes |
"") as_fn_error $?
"enable-targets option must specify target names or 'all'" "$LINENO" 5
6529 no
) enable_targets
= ;;
6530 *) enable_targets
=$enableval ;;
6535 # Check whether to enable 64-bit support on 32-bit hosts
6536 # Check whether --enable-64-bit-bfd was given.
6537 if test "${enable_64_bit_bfd+set}" = set; then :
6538 enableval
=$enable_64_bit_bfd; case "${enableval}" in
6541 *) as_fn_error $?
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
6547 # Provide defaults for some variables set by the per-host and per-target
6549 gdb_host_obs
=posix-hdep.o
6551 if test "${target}" = "${host}"; then
6557 .
$srcdir/configure.
host
6559 # Accumulate some settings from configure.tgt over all enabled targets
6563 HAVE_NATIVE_GCORE_TARGET
=
6565 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6567 if test "$targ_alias" = "all"; then
6570 # Canonicalize the secondary target names.
6571 result
=`$ac_config_sub $targ_alias 2>/dev/null`
6572 if test -n "$result"; then
6578 .
${srcdir}/configure.tgt
6580 if test -z "${gdb_target_obs}"; then :
6581 as_fn_error $?
"configuration ${targ} is unsupported." "$LINENO" 5
6584 # Target-specific object files
6585 for i
in ${gdb_target_obs}; do
6586 case " $TARGET_OBS " in
6589 TARGET_OBS
="$TARGET_OBS ${i}"
6594 # Check whether this target needs 64-bit CORE_ADDR
6595 if test x
${want64} = xfalse
; then
6596 .
${srcdir}/..
/bfd
/config.bfd
6599 # Check whether this target is native and supports gcore.
6600 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
6601 && $gdb_have_gcore; then
6602 HAVE_NATIVE_GCORE_TARGET
=1
6607 if test x
${all_targets} = xtrue
; then
6609 # We want all 64-bit targets if we either:
6610 # - run on a 64-bit host or
6611 # - already require 64-bit support for some other target or
6612 # - the --enable-64-bit-bfd option was supplied
6613 # Otherwise we only support all 32-bit targets.
6615 # NOTE: This test must be in sync with the corresponding
6618 if test x
${want64} = xfalse
; then
6619 # The cast to long int works around a bug in the HP C Compiler
6620 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6621 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6622 # This bug is HP SR number 8606223364.
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6624 $as_echo_n "checking size of long... " >&6; }
6625 if ${ac_cv_sizeof_long+:} false
; then :
6626 $as_echo_n "(cached) " >&6
6628 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6631 if test "$ac_cv_type_long" = yes; then
6632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6634 as_fn_error
77 "cannot compute sizeof (long)
6635 See \`config.log' for more details" "$LINENO" 5; }
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6643 $as_echo "$ac_cv_sizeof_long" >&6; }
6647 cat >>confdefs.h
<<_ACEOF
6648 #define SIZEOF_LONG $ac_cv_sizeof_long
6652 if test "x${ac_cv_sizeof_long}" = "x8"; then
6656 if test x
${want64} = xtrue
; then
6657 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
6659 TARGET_OBS
='$(ALL_TARGET_OBS)'
6666 # For other settings, only the main target counts.
6670 targ
=$target; .
${srcdir}/configure.tgt
6672 # Fetch the default architecture and default target vector from BFD.
6673 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
6675 # We only want the first architecture, so strip off the others if
6676 # there is more than one.
6677 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
6679 if test "x$targ_archs" != x
; then
6681 cat >>confdefs.h
<<_ACEOF
6682 #define DEFAULT_BFD_ARCH $targ_archs
6686 if test "x$targ_defvec" != x
; then
6688 cat >>confdefs.h
<<_ACEOF
6689 #define DEFAULT_BFD_VEC $targ_defvec
6695 # Check whether --enable-gdbmi was given.
6696 if test "${enable_gdbmi+set}" = set; then :
6697 enableval
=$enable_gdbmi; case $enableval in
6701 as_fn_error $?
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
6707 if test x
"$enable_gdbmi" = xyes
; then
6708 if test -d $srcdir/mi
; then
6709 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6710 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6711 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6712 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6717 # Check whether --enable-tui was given.
6718 if test "${enable_tui+set}" = set; then :
6719 enableval
=$enable_tui; case $enableval in
6723 as_fn_error $?
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
6731 # Check whether --enable-gdbtk was given.
6732 if test "${enable_gdbtk+set}" = set; then :
6733 enableval
=$enable_gdbtk; case $enableval in
6737 as_fn_error $?
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
6740 if test -d $srcdir/gdbtk
; then
6747 # We unconditionally disable gdbtk tests on selected platforms.
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
6751 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6755 # Libunwind support for ia64.
6758 # Check whether --with-libunwind-ia64 was given.
6759 if test "${with_libunwind_ia64+set}" = set; then :
6760 withval
=$with_libunwind_ia64;
6762 with_libunwind_ia64
=auto
6766 # Backward compatibility option.
6767 if test "${with_libunwind+set}" = set; then
6768 if test x
"$with_libunwind_ia64" != xauto
; then
6769 as_fn_error $?
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
6772 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
6773 with_libunwind_ia64
="$with_libunwind"
6776 case "$with_libunwind_ia64" in
6780 for ac_header
in libunwind-ia64.h
6782 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
6783 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
6784 cat >>confdefs.h
<<_ACEOF
6785 #define HAVE_LIBUNWIND_IA64_H 1
6792 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
6795 as_fn_error $?
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
6799 if test x
"$with_libunwind_ia64" = xyes
; then
6800 for ac_header
in libunwind-ia64.h
6802 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
6803 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
6804 cat >>confdefs.h
<<_ACEOF
6805 #define HAVE_LIBUNWIND_IA64_H 1
6812 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
6813 as_fn_error $?
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
6815 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
6816 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
6817 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
6822 # Check whether --with-curses was given.
6823 if test "${with_curses+set}" = set; then :
6824 withval
=$with_curses; opt_curses
=$withval
6829 if test "$opt_curses" = "yes"; then
6833 # Profiling support.
6834 # Check whether --enable-profiling was given.
6835 if test "${enable_profiling+set}" = set; then :
6836 enableval
=$enable_profiling; case $enableval in
6840 as_fn_error $?
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
6847 for ac_func
in monstartup _mcleanup
6849 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6850 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6851 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6852 cat >>confdefs.h
<<_ACEOF
6853 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
6860 $as_echo_n "checking for _etext... " >&6; }
6861 if ${ac_cv_var__etext+:} false
; then :
6862 $as_echo_n "(cached) " >&6
6864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6865 /* end confdefs.h. */
6877 if ac_fn_c_try_link
"$LINENO"; then :
6878 ac_cv_var__etext
=yes
6882 rm -f core conftest.err conftest.
$ac_objext \
6883 conftest
$ac_exeext conftest.
$ac_ext
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
6886 $as_echo "$ac_cv_var__etext" >&6; }
6887 if test $ac_cv_var__etext = yes; then
6889 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
6893 $as_echo_n "checking for etext... " >&6; }
6894 if ${ac_cv_var_etext+:} false
; then :
6895 $as_echo_n "(cached) " >&6
6897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6898 /* end confdefs.h. */
6910 if ac_fn_c_try_link
"$LINENO"; then :
6915 rm -f core conftest.err conftest.
$ac_objext \
6916 conftest
$ac_exeext conftest.
$ac_ext
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
6919 $as_echo "$ac_cv_var_etext" >&6; }
6920 if test $ac_cv_var_etext = yes; then
6922 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
6925 if test "$enable_profiling" = yes ; then
6926 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
6927 as_fn_error $?
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
6930 OLD_CFLAGS
="$CFLAGS"
6931 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
6934 $as_echo_n "checking whether $CC supports -pg... " >&6; }
6935 if ${ac_cv_cc_supports_pg+:} false
; then :
6936 $as_echo_n "(cached) " >&6
6938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6939 /* end confdefs.h. */
6949 if ac_fn_c_try_compile
"$LINENO"; then :
6950 ac_cv_cc_supports_pg
=yes
6952 ac_cv_cc_supports_pg
=no
6954 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
6957 $as_echo "$ac_cv_cc_supports_pg" >&6; }
6959 if test $ac_cv_cc_supports_pg = no
; then
6960 as_fn_error $?
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
6963 CFLAGS
="$OLD_CFLAGS"
6967 # Check whether --enable-codesign was given.
6968 if test "${enable_codesign+set}" = set; then :
6969 enableval
=$enable_codesign; CODESIGN_CERT
=$enableval
6976 # Check whether --with-pkgversion was given.
6977 if test "${with_pkgversion+set}" = set; then :
6978 withval
=$with_pkgversion; case "$withval" in
6979 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
6981 *) PKGVERSION
="($withval) " ;;
6992 # Check whether --with-bugurl was given.
6993 if test "${with_bugurl+set}" = set; then :
6994 withval
=$with_bugurl; case "$withval" in
6995 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
6998 *) BUGURL
="$withval"
7002 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
7012 REPORT_BUGS_TO
="<$BUGURL>"
7013 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7020 cat >>confdefs.h
<<_ACEOF
7021 #define PKGVERSION "$PKGVERSION"
7025 cat >>confdefs.h
<<_ACEOF
7026 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7030 # --------------------- #
7031 # Checks for programs. #
7032 # --------------------- #
7034 for ac_prog
in gawk mawk nawk
awk
7036 # Extract the first word of "$ac_prog", so it can be a program name with args.
7037 set dummy
$ac_prog; ac_word
=$2
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7039 $as_echo_n "checking for $ac_word... " >&6; }
7040 if ${ac_cv_prog_AWK+:} false
; then :
7041 $as_echo_n "(cached) " >&6
7043 if test -n "$AWK"; then
7044 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7046 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7050 test -z "$as_dir" && as_dir
=.
7051 for ac_exec_ext
in '' $ac_executable_extensions; do
7052 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7053 ac_cv_prog_AWK
="$ac_prog"
7054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7064 if test -n "$AWK"; then
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7066 $as_echo "$AWK" >&6; }
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7069 $as_echo "no" >&6; }
7073 test -n "$AWK" && break
7076 # Find a good install program. We prefer a C program (faster),
7077 # so one script is as good as another. But avoid the broken or
7078 # incompatible versions:
7079 # SysV /etc/install, /usr/sbin/install
7080 # SunOS /usr/etc/install
7081 # IRIX /sbin/install
7083 # AmigaOS /C/install, which installs bootblocks on floppy discs
7084 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7085 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7086 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7087 # OS/2's system install, which has a completely different semantic
7088 # ./install, which can be erroneously created by make from ./install.sh.
7089 # Reject install programs that cannot install multiple files.
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7091 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7092 if test -z "$INSTALL"; then
7093 if ${ac_cv_path_install+:} false
; then :
7094 $as_echo_n "(cached) " >&6
7096 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7100 test -z "$as_dir" && as_dir
=.
7101 # Account for people who put trailing slashes in PATH elements.
7102 case $as_dir/ in #((
7103 .
/ | .
// |
/[cC
]/* | \
7104 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7105 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
7108 # OSF1 and SCO ODT 3.0 have their own names for install.
7109 # Don't use installbsd from OSF since it installs stuff as root
7111 for ac_prog
in ginstall scoinst
install; do
7112 for ac_exec_ext
in '' $ac_executable_extensions; do
7113 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
7114 if test $ac_prog = install &&
7115 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7116 # AIX install. It has an incompatible calling convention.
7118 elif test $ac_prog = install &&
7119 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7120 # program-specific install script used by HP pwplus--don't use.
7123 rm -rf conftest.one conftest.two conftest.dir
7124 echo one
> conftest.one
7125 echo two
> conftest.two
7127 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
7128 test -s conftest.one
&& test -s conftest.two
&&
7129 test -s conftest.dir
/conftest.one
&&
7130 test -s conftest.dir
/conftest.two
7132 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7145 rm -rf conftest.one conftest.two conftest.dir
7148 if test "${ac_cv_path_install+set}" = set; then
7149 INSTALL
=$ac_cv_path_install
7151 # As a last resort, use the slow shell script. Don't cache a
7152 # value for INSTALL within a source directory, because that will
7153 # break other packages using the cache if that directory is
7154 # removed, or if the value is a relative name.
7155 INSTALL
=$ac_install_sh
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7159 $as_echo "$INSTALL" >&6; }
7161 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7162 # It thinks the first close brace ends the variable substitution.
7163 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7165 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7167 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7170 $as_echo_n "checking whether ln -s works... " >&6; }
7172 if test "$LN_S" = "ln -s"; then
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7174 $as_echo "yes" >&6; }
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7177 $as_echo "no, using $LN_S" >&6; }
7180 if test -n "$ac_tool_prefix"; then
7181 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7182 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7184 $as_echo_n "checking for $ac_word... " >&6; }
7185 if ${ac_cv_prog_RANLIB+:} false
; then :
7186 $as_echo_n "(cached) " >&6
7188 if test -n "$RANLIB"; then
7189 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7191 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7195 test -z "$as_dir" && as_dir
=.
7196 for ac_exec_ext
in '' $ac_executable_extensions; do
7197 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7198 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7208 RANLIB
=$ac_cv_prog_RANLIB
7209 if test -n "$RANLIB"; then
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7211 $as_echo "$RANLIB" >&6; }
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7214 $as_echo "no" >&6; }
7219 if test -z "$ac_cv_prog_RANLIB"; then
7220 ac_ct_RANLIB
=$RANLIB
7221 # Extract the first word of "ranlib", so it can be a program name with args.
7222 set dummy ranlib
; ac_word
=$2
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7224 $as_echo_n "checking for $ac_word... " >&6; }
7225 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
7226 $as_echo_n "(cached) " >&6
7228 if test -n "$ac_ct_RANLIB"; then
7229 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7231 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7235 test -z "$as_dir" && as_dir
=.
7236 for ac_exec_ext
in '' $ac_executable_extensions; do
7237 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7238 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7248 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7249 if test -n "$ac_ct_RANLIB"; then
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7251 $as_echo "$ac_ct_RANLIB" >&6; }
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7254 $as_echo "no" >&6; }
7257 if test "x$ac_ct_RANLIB" = x
; then
7260 case $cross_compiling:$ac_tool_warned in
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7264 ac_tool_warned
=yes ;;
7266 RANLIB
=$ac_ct_RANLIB
7269 RANLIB
="$ac_cv_prog_RANLIB"
7272 for ac_prog
in 'bison -y' byacc
7274 # Extract the first word of "$ac_prog", so it can be a program name with args.
7275 set dummy
$ac_prog; ac_word
=$2
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7277 $as_echo_n "checking for $ac_word... " >&6; }
7278 if ${ac_cv_prog_YACC+:} false
; then :
7279 $as_echo_n "(cached) " >&6
7281 if test -n "$YACC"; then
7282 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
7284 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7288 test -z "$as_dir" && as_dir
=.
7289 for ac_exec_ext
in '' $ac_executable_extensions; do
7290 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7291 ac_cv_prog_YACC
="$ac_prog"
7292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7301 YACC
=$ac_cv_prog_YACC
7302 if test -n "$YACC"; then
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7304 $as_echo "$YACC" >&6; }
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7307 $as_echo "no" >&6; }
7311 test -n "$YACC" && break
7313 test -n "$YACC" || YACC
="yacc"
7316 if test -n "$ac_tool_prefix"; then
7317 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7318 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7320 $as_echo_n "checking for $ac_word... " >&6; }
7321 if ${ac_cv_prog_AR+:} false
; then :
7322 $as_echo_n "(cached) " >&6
7324 if test -n "$AR"; then
7325 ac_cv_prog_AR
="$AR" # Let the user override the test.
7327 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7331 test -z "$as_dir" && as_dir
=.
7332 for ac_exec_ext
in '' $ac_executable_extensions; do
7333 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7334 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7345 if test -n "$AR"; then
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7347 $as_echo "$AR" >&6; }
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7350 $as_echo "no" >&6; }
7355 if test -z "$ac_cv_prog_AR"; then
7357 # Extract the first word of "ar", so it can be a program name with args.
7358 set dummy
ar; ac_word
=$2
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7360 $as_echo_n "checking for $ac_word... " >&6; }
7361 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
7362 $as_echo_n "(cached) " >&6
7364 if test -n "$ac_ct_AR"; then
7365 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7367 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7371 test -z "$as_dir" && as_dir
=.
7372 for ac_exec_ext
in '' $ac_executable_extensions; do
7373 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7374 ac_cv_prog_ac_ct_AR
="ar"
7375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7384 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7385 if test -n "$ac_ct_AR"; then
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7387 $as_echo "$ac_ct_AR" >&6; }
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7390 $as_echo "no" >&6; }
7393 if test "x$ac_ct_AR" = x
; then
7396 case $cross_compiling:$ac_tool_warned in
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7400 ac_tool_warned
=yes ;;
7408 if test -n "$ac_tool_prefix"; then
7409 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7410 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7412 $as_echo_n "checking for $ac_word... " >&6; }
7413 if ${ac_cv_prog_DLLTOOL+:} false
; then :
7414 $as_echo_n "(cached) " >&6
7416 if test -n "$DLLTOOL"; then
7417 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
7419 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7423 test -z "$as_dir" && as_dir
=.
7424 for ac_exec_ext
in '' $ac_executable_extensions; do
7425 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7426 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
7427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7436 DLLTOOL
=$ac_cv_prog_DLLTOOL
7437 if test -n "$DLLTOOL"; then
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7439 $as_echo "$DLLTOOL" >&6; }
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7442 $as_echo "no" >&6; }
7447 if test -z "$ac_cv_prog_DLLTOOL"; then
7448 ac_ct_DLLTOOL
=$DLLTOOL
7449 # Extract the first word of "dlltool", so it can be a program name with args.
7450 set dummy dlltool
; ac_word
=$2
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7452 $as_echo_n "checking for $ac_word... " >&6; }
7453 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
7454 $as_echo_n "(cached) " >&6
7456 if test -n "$ac_ct_DLLTOOL"; then
7457 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
7459 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7463 test -z "$as_dir" && as_dir
=.
7464 for ac_exec_ext
in '' $ac_executable_extensions; do
7465 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7466 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
7467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7476 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
7477 if test -n "$ac_ct_DLLTOOL"; then
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7479 $as_echo "$ac_ct_DLLTOOL" >&6; }
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7482 $as_echo "no" >&6; }
7485 if test "x$ac_ct_DLLTOOL" = x
; then
7488 case $cross_compiling:$ac_tool_warned in
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7492 ac_tool_warned
=yes ;;
7494 DLLTOOL
=$ac_ct_DLLTOOL
7497 DLLTOOL
="$ac_cv_prog_DLLTOOL"
7500 if test -n "$ac_tool_prefix"; then
7501 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7502 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7504 $as_echo_n "checking for $ac_word... " >&6; }
7505 if ${ac_cv_prog_WINDRES+:} false
; then :
7506 $as_echo_n "(cached) " >&6
7508 if test -n "$WINDRES"; then
7509 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
7511 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7515 test -z "$as_dir" && as_dir
=.
7516 for ac_exec_ext
in '' $ac_executable_extensions; do
7517 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7518 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
7519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7528 WINDRES
=$ac_cv_prog_WINDRES
7529 if test -n "$WINDRES"; then
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7531 $as_echo "$WINDRES" >&6; }
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7534 $as_echo "no" >&6; }
7539 if test -z "$ac_cv_prog_WINDRES"; then
7540 ac_ct_WINDRES
=$WINDRES
7541 # Extract the first word of "windres", so it can be a program name with args.
7542 set dummy windres
; ac_word
=$2
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7544 $as_echo_n "checking for $ac_word... " >&6; }
7545 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
7546 $as_echo_n "(cached) " >&6
7548 if test -n "$ac_ct_WINDRES"; then
7549 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
7551 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7555 test -z "$as_dir" && as_dir
=.
7556 for ac_exec_ext
in '' $ac_executable_extensions; do
7557 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7558 ac_cv_prog_ac_ct_WINDRES
="windres"
7559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7568 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
7569 if test -n "$ac_ct_WINDRES"; then
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7571 $as_echo "$ac_ct_WINDRES" >&6; }
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7574 $as_echo "no" >&6; }
7577 if test "x$ac_ct_WINDRES" = x
; then
7580 case $cross_compiling:$ac_tool_warned in
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7583 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7584 ac_tool_warned
=yes ;;
7586 WINDRES
=$ac_ct_WINDRES
7589 WINDRES
="$ac_cv_prog_WINDRES"
7595 # Needed for GNU Hurd hosts.
7596 if test -n "$ac_tool_prefix"; then
7597 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7598 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7600 $as_echo_n "checking for $ac_word... " >&6; }
7601 if ${ac_cv_prog_MIG+:} false
; then :
7602 $as_echo_n "(cached) " >&6
7604 if test -n "$MIG"; then
7605 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
7607 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7611 test -z "$as_dir" && as_dir
=.
7612 for ac_exec_ext
in '' $ac_executable_extensions; do
7613 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7614 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
7615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7625 if test -n "$MIG"; then
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
7627 $as_echo "$MIG" >&6; }
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7630 $as_echo "no" >&6; }
7635 if test -z "$ac_cv_prog_MIG"; then
7637 # Extract the first word of "mig", so it can be a program name with args.
7638 set dummy mig
; ac_word
=$2
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7640 $as_echo_n "checking for $ac_word... " >&6; }
7641 if ${ac_cv_prog_ac_ct_MIG+:} false
; then :
7642 $as_echo_n "(cached) " >&6
7644 if test -n "$ac_ct_MIG"; then
7645 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
7647 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7651 test -z "$as_dir" && as_dir
=.
7652 for ac_exec_ext
in '' $ac_executable_extensions; do
7653 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7654 ac_cv_prog_ac_ct_MIG
="mig"
7655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7664 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
7665 if test -n "$ac_ct_MIG"; then
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
7667 $as_echo "$ac_ct_MIG" >&6; }
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7670 $as_echo "no" >&6; }
7673 if test "x$ac_ct_MIG" = x
; then
7676 case $cross_compiling:$ac_tool_warned in
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7680 ac_tool_warned
=yes ;;
7685 MIG
="$ac_cv_prog_MIG"
7688 if test x
"$MIG" = x
; then
7689 as_fn_error $?
"MIG not found but required for $host hosts" "$LINENO" 5
7694 # ---------------------- #
7695 # Checks for libraries. #
7696 # ---------------------- #
7698 # We might need to link with -lm; most simulators need it.
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
7700 $as_echo_n "checking for main in -lm... " >&6; }
7701 if ${ac_cv_lib_m_main+:} false
; then :
7702 $as_echo_n "(cached) " >&6
7704 ac_check_lib_save_LIBS
=$LIBS
7706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7707 /* end confdefs.h. */
7718 if ac_fn_c_try_link
"$LINENO"; then :
7719 ac_cv_lib_m_main
=yes
7723 rm -f core conftest.err conftest.
$ac_objext \
7724 conftest
$ac_exeext conftest.
$ac_ext
7725 LIBS
=$ac_check_lib_save_LIBS
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
7728 $as_echo "$ac_cv_lib_m_main" >&6; }
7729 if test "x$ac_cv_lib_m_main" = xyes
; then :
7730 cat >>confdefs.h
<<_ACEOF
7739 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
7741 $as_echo_n "checking for library containing gethostbyname... " >&6; }
7742 if ${ac_cv_search_gethostbyname+:} false
; then :
7743 $as_echo_n "(cached) " >&6
7745 ac_func_search_save_LIBS
=$LIBS
7746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7747 /* end confdefs.h. */
7749 /* Override any GCC internal prototype to avoid an error.
7750 Use char because int might match the return type of a GCC
7751 builtin and then its argument prototype would still apply. */
7755 char gethostbyname ();
7759 return gethostbyname ();
7764 for ac_lib
in '' nsl
; do
7765 if test -z "$ac_lib"; then
7766 ac_res
="none required"
7769 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7771 if ac_fn_c_try_link
"$LINENO"; then :
7772 ac_cv_search_gethostbyname
=$ac_res
7774 rm -f core conftest.err conftest.
$ac_objext \
7776 if ${ac_cv_search_gethostbyname+:} false
; then :
7780 if ${ac_cv_search_gethostbyname+:} false
; then :
7783 ac_cv_search_gethostbyname
=no
7786 LIBS
=$ac_func_search_save_LIBS
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
7789 $as_echo "$ac_cv_search_gethostbyname" >&6; }
7790 ac_res
=$ac_cv_search_gethostbyname
7791 if test "$ac_res" != no
; then :
7792 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7797 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
7799 $as_echo_n "checking for library containing socketpair... " >&6; }
7800 if ${ac_cv_search_socketpair+:} false
; then :
7801 $as_echo_n "(cached) " >&6
7803 ac_func_search_save_LIBS
=$LIBS
7804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7805 /* end confdefs.h. */
7807 /* Override any GCC internal prototype to avoid an error.
7808 Use char because int might match the return type of a GCC
7809 builtin and then its argument prototype would still apply. */
7817 return socketpair ();
7822 for ac_lib
in '' socket
; do
7823 if test -z "$ac_lib"; then
7824 ac_res
="none required"
7827 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7829 if ac_fn_c_try_link
"$LINENO"; then :
7830 ac_cv_search_socketpair
=$ac_res
7832 rm -f core conftest.err conftest.
$ac_objext \
7834 if ${ac_cv_search_socketpair+:} false
; then :
7838 if ${ac_cv_search_socketpair+:} false
; then :
7841 ac_cv_search_socketpair
=no
7844 LIBS
=$ac_func_search_save_LIBS
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
7847 $as_echo "$ac_cv_search_socketpair" >&6; }
7848 ac_res
=$ac_cv_search_socketpair
7849 if test "$ac_res" != no
; then :
7850 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7855 # Link in zlib if we can. This allows us to read compressed debug sections.
7857 # Use the system's zlib library.
7858 zlibdir
="-L\$(top_builddir)/../zlib"
7859 zlibinc
="-I\$(top_srcdir)/../zlib"
7861 # Check whether --with-system-zlib was given.
7862 if test "${with_system_zlib+set}" = set; then :
7863 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
7874 # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c).
7875 # On GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getvmmap" >&5
7877 $as_echo_n "checking for library containing kinfo_getvmmap... " >&6; }
7878 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
7879 $as_echo_n "(cached) " >&6
7881 ac_func_search_save_LIBS
=$LIBS
7882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7883 /* end confdefs.h. */
7885 /* Override any GCC internal prototype to avoid an error.
7886 Use char because int might match the return type of a GCC
7887 builtin and then its argument prototype would still apply. */
7891 char kinfo_getvmmap ();
7895 return kinfo_getvmmap ();
7900 for ac_lib
in '' util util-freebsd
; do
7901 if test -z "$ac_lib"; then
7902 ac_res
="none required"
7905 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7907 if ac_fn_c_try_link
"$LINENO"; then :
7908 ac_cv_search_kinfo_getvmmap
=$ac_res
7910 rm -f core conftest.err conftest.
$ac_objext \
7912 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
7916 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
7919 ac_cv_search_kinfo_getvmmap
=no
7922 LIBS
=$ac_func_search_save_LIBS
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getvmmap" >&5
7925 $as_echo "$ac_cv_search_kinfo_getvmmap" >&6; }
7926 ac_res
=$ac_cv_search_kinfo_getvmmap
7927 if test "$ac_res" != no
; then :
7928 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7930 $as_echo "#define HAVE_KINFO_GETVMMAP 1" >>confdefs.h
7935 # fbsd-nat.c can also use kinfo_getfile.
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
7937 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
7938 if ${ac_cv_search_kinfo_getfile+:} false
; then :
7939 $as_echo_n "(cached) " >&6
7941 ac_func_search_save_LIBS
=$LIBS
7942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7943 /* end confdefs.h. */
7945 /* Override any GCC internal prototype to avoid an error.
7946 Use char because int might match the return type of a GCC
7947 builtin and then its argument prototype would still apply. */
7951 char kinfo_getfile ();
7955 return kinfo_getfile ();
7960 for ac_lib
in '' util util-freebsd
; do
7961 if test -z "$ac_lib"; then
7962 ac_res
="none required"
7965 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7967 if ac_fn_c_try_link
"$LINENO"; then :
7968 ac_cv_search_kinfo_getfile
=$ac_res
7970 rm -f core conftest.err conftest.
$ac_objext \
7972 if ${ac_cv_search_kinfo_getfile+:} false
; then :
7976 if ${ac_cv_search_kinfo_getfile+:} false
; then :
7979 ac_cv_search_kinfo_getfile
=no
7982 LIBS
=$ac_func_search_save_LIBS
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
7985 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
7986 ac_res
=$ac_cv_search_kinfo_getfile
7987 if test "$ac_res" != no
; then :
7988 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7990 $as_echo "#define HAVE_KINFO_GETFILE 1" >>confdefs.h
7996 if test "X$prefix" = "XNONE"; then
7997 acl_final_prefix
="$ac_default_prefix"
7999 acl_final_prefix
="$prefix"
8001 if test "X$exec_prefix" = "XNONE"; then
8002 acl_final_exec_prefix
='${prefix}'
8004 acl_final_exec_prefix
="$exec_prefix"
8006 acl_save_prefix
="$prefix"
8007 prefix
="$acl_final_prefix"
8008 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8009 prefix
="$acl_save_prefix"
8012 # Check whether --with-gnu-ld was given.
8013 if test "${with_gnu_ld+set}" = set; then :
8014 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8019 # Prepare PATH_SEPARATOR.
8020 # The user is always right.
8021 if test "${PATH_SEPARATOR+set}" != set; then
8022 echo "#! /bin/sh" >conf$$.sh
8023 echo "exit 0" >>conf$$.sh
8025 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8033 if test "$GCC" = yes; then
8034 # Check if gcc -print-prog-name=ld gives a path.
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8036 $as_echo_n "checking for ld used by GCC... " >&6; }
8039 # gcc leaves a trailing carriage return which upsets mingw
8040 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8042 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8045 # Accept absolute paths.
8046 [\\/]* |
[A-Za-z
]:[\\/]*)
8047 re_direlt
='/[^/][^/]*/\.\./'
8048 # Canonicalize the path of ld
8049 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8050 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8051 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8053 test -z "$LD" && LD
="$ac_prog"
8056 # If it fails, then pretend we aren't using GCC.
8060 # If it is relative, then search for the first ld in PATH.
8064 elif test "$with_gnu_ld" = yes; then
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8066 $as_echo_n "checking for GNU ld... " >&6; }
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8069 $as_echo_n "checking for non-GNU ld... " >&6; }
8071 if ${acl_cv_path_LD+:} false
; then :
8072 $as_echo_n "(cached) " >&6
8074 if test -z "$LD"; then
8075 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8076 for ac_dir
in $PATH; do
8077 test -z "$ac_dir" && ac_dir
=.
8078 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8079 acl_cv_path_LD
="$ac_dir/$ac_prog"
8080 # Check to see if the program is GNU ld. I'd rather use --version,
8081 # but apparently some GNU ld's only accept -v.
8082 # Break only if it was the GNU/non-GNU ld that we prefer.
8083 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
8084 test "$with_gnu_ld" != no
&& break
8086 test "$with_gnu_ld" != yes && break
8092 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8096 LD
="$acl_cv_path_LD"
8097 if test -n "$LD"; then
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8099 $as_echo "$LD" >&6; }
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8102 $as_echo "no" >&6; }
8104 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8106 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8107 if ${acl_cv_prog_gnu_ld+:} false
; then :
8108 $as_echo_n "(cached) " >&6
8110 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8111 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
8112 acl_cv_prog_gnu_ld
=yes
8114 acl_cv_prog_gnu_ld
=no
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8118 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8119 with_gnu_ld
=$acl_cv_prog_gnu_ld
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8124 $as_echo_n "checking for shared library run path origin... " >&6; }
8125 if ${acl_cv_rpath+:} false
; then :
8126 $as_echo_n "(cached) " >&6
8129 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8130 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8137 $as_echo "$acl_cv_rpath" >&6; }
8139 libext
="$acl_cv_libext"
8140 shlibext
="$acl_cv_shlibext"
8141 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8142 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8143 hardcode_direct
="$acl_cv_hardcode_direct"
8144 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8145 # Check whether --enable-rpath was given.
8146 if test "${enable_rpath+set}" = set; then :
8147 enableval
=$enable_rpath; :
8161 acl_save_prefix
="$prefix"
8162 prefix
="$acl_final_prefix"
8163 acl_save_exec_prefix
="$exec_prefix"
8164 exec_prefix
="$acl_final_exec_prefix"
8166 eval additional_includedir
=\"$includedir\"
8167 eval additional_libdir
=\"$libdir\"
8169 exec_prefix
="$acl_save_exec_prefix"
8170 prefix
="$acl_save_prefix"
8173 # Check whether --with-libiconv-prefix was given.
8174 if test "${with_libiconv_prefix+set}" = set; then :
8175 withval
=$with_libiconv_prefix;
8176 if test "X$withval" = "Xno"; then
8179 if test "X$withval" = "X"; then
8181 acl_save_prefix
="$prefix"
8182 prefix
="$acl_final_prefix"
8183 acl_save_exec_prefix
="$exec_prefix"
8184 exec_prefix
="$acl_final_exec_prefix"
8186 eval additional_includedir
=\"$includedir\"
8187 eval additional_libdir
=\"$libdir\"
8189 exec_prefix
="$acl_save_exec_prefix"
8190 prefix
="$acl_save_prefix"
8193 additional_includedir
="$withval/include"
8194 additional_libdir
="$withval/lib"
8205 names_already_handled
=
8206 names_next_round
='iconv '
8207 while test -n "$names_next_round"; do
8208 names_this_round
="$names_next_round"
8210 for name
in $names_this_round; do
8212 for n
in $names_already_handled; do
8213 if test "$n" = "$name"; then
8218 if test -z "$already_handled"; then
8219 names_already_handled
="$names_already_handled $name"
8220 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8221 eval value
=\"\
$HAVE_LIB$uppername\"
8222 if test -n "$value"; then
8223 if test "$value" = yes; then
8224 eval value
=\"\
$LIB$uppername\"
8225 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
8226 eval value
=\"\
$LTLIB$uppername\"
8227 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
8236 if test $use_additional = yes; then
8237 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8238 found_dir
="$additional_libdir"
8239 found_so
="$additional_libdir/lib$name.$shlibext"
8240 if test -f "$additional_libdir/lib$name.la"; then
8241 found_la
="$additional_libdir/lib$name.la"
8244 if test -f "$additional_libdir/lib$name.$libext"; then
8245 found_dir
="$additional_libdir"
8246 found_a
="$additional_libdir/lib$name.$libext"
8247 if test -f "$additional_libdir/lib$name.la"; then
8248 found_la
="$additional_libdir/lib$name.la"
8253 if test "X$found_dir" = "X"; then
8254 for x
in $LDFLAGS $LTLIBICONV; do
8256 acl_save_prefix
="$prefix"
8257 prefix
="$acl_final_prefix"
8258 acl_save_exec_prefix
="$exec_prefix"
8259 exec_prefix
="$acl_final_exec_prefix"
8261 exec_prefix
="$acl_save_exec_prefix"
8262 prefix
="$acl_save_prefix"
8266 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8267 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8269 found_so
="$dir/lib$name.$shlibext"
8270 if test -f "$dir/lib$name.la"; then
8271 found_la
="$dir/lib$name.la"
8274 if test -f "$dir/lib$name.$libext"; then
8276 found_a
="$dir/lib$name.$libext"
8277 if test -f "$dir/lib$name.la"; then
8278 found_la
="$dir/lib$name.la"
8284 if test "X$found_dir" != "X"; then
8289 if test "X$found_dir" != "X"; then
8290 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8291 if test "X$found_so" != "X"; then
8292 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8293 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8296 for x
in $ltrpathdirs; do
8297 if test "X$x" = "X$found_dir"; then
8302 if test -z "$haveit"; then
8303 ltrpathdirs
="$ltrpathdirs $found_dir"
8305 if test "$hardcode_direct" = yes; then
8306 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8308 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8309 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8311 for x
in $rpathdirs; do
8312 if test "X$x" = "X$found_dir"; then
8317 if test -z "$haveit"; then
8318 rpathdirs
="$rpathdirs $found_dir"
8322 for x
in $LDFLAGS $LIBICONV; do
8324 acl_save_prefix
="$prefix"
8325 prefix
="$acl_final_prefix"
8326 acl_save_exec_prefix
="$exec_prefix"
8327 exec_prefix
="$acl_final_exec_prefix"
8329 exec_prefix
="$acl_save_exec_prefix"
8330 prefix
="$acl_save_prefix"
8332 if test "X$x" = "X-L$found_dir"; then
8337 if test -z "$haveit"; then
8338 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8340 if test "$hardcode_minus_L" != no
; then
8341 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8343 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8349 if test "X$found_a" != "X"; then
8350 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
8352 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8355 additional_includedir
=
8356 case "$found_dir" in
8358 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8359 additional_includedir
="$basedir/include"
8362 if test "X$additional_includedir" != "X"; then
8363 if test "X$additional_includedir" != "X/usr/include"; then
8365 if test "X$additional_includedir" = "X/usr/local/include"; then
8366 if test -n "$GCC"; then
8368 linux
*) haveit
=yes;;
8372 if test -z "$haveit"; then
8373 for x
in $CPPFLAGS $INCICONV; do
8375 acl_save_prefix
="$prefix"
8376 prefix
="$acl_final_prefix"
8377 acl_save_exec_prefix
="$exec_prefix"
8378 exec_prefix
="$acl_final_exec_prefix"
8380 exec_prefix
="$acl_save_exec_prefix"
8381 prefix
="$acl_save_prefix"
8383 if test "X$x" = "X-I$additional_includedir"; then
8388 if test -z "$haveit"; then
8389 if test -d "$additional_includedir"; then
8390 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8396 if test -n "$found_la"; then
8397 save_libdir
="$libdir"
8399 */* |
*\\*) .
"$found_la" ;;
8400 *) .
"./$found_la" ;;
8402 libdir
="$save_libdir"
8403 for dep
in $dependency_libs; do
8406 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8407 if test "X$additional_libdir" != "X/usr/lib"; then
8409 if test "X$additional_libdir" = "X/usr/local/lib"; then
8410 if test -n "$GCC"; then
8412 linux
*) haveit
=yes;;
8416 if test -z "$haveit"; then
8418 for x
in $LDFLAGS $LIBICONV; do
8420 acl_save_prefix
="$prefix"
8421 prefix
="$acl_final_prefix"
8422 acl_save_exec_prefix
="$exec_prefix"
8423 exec_prefix
="$acl_final_exec_prefix"
8425 exec_prefix
="$acl_save_exec_prefix"
8426 prefix
="$acl_save_prefix"
8428 if test "X$x" = "X-L$additional_libdir"; then
8433 if test -z "$haveit"; then
8434 if test -d "$additional_libdir"; then
8435 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8439 for x
in $LDFLAGS $LTLIBICONV; do
8441 acl_save_prefix
="$prefix"
8442 prefix
="$acl_final_prefix"
8443 acl_save_exec_prefix
="$exec_prefix"
8444 exec_prefix
="$acl_final_exec_prefix"
8446 exec_prefix
="$acl_save_exec_prefix"
8447 prefix
="$acl_save_prefix"
8449 if test "X$x" = "X-L$additional_libdir"; then
8454 if test -z "$haveit"; then
8455 if test -d "$additional_libdir"; then
8456 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8463 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8464 if test "$enable_rpath" != no
; then
8466 for x
in $rpathdirs; do
8467 if test "X$x" = "X$dir"; then
8472 if test -z "$haveit"; then
8473 rpathdirs
="$rpathdirs $dir"
8476 for x
in $ltrpathdirs; do
8477 if test "X$x" = "X$dir"; then
8482 if test -z "$haveit"; then
8483 ltrpathdirs
="$ltrpathdirs $dir"
8488 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8491 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8494 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
8495 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8501 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8502 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8508 if test "X$rpathdirs" != "X"; then
8509 if test -n "$hardcode_libdir_separator"; then
8511 for found_dir
in $rpathdirs; do
8512 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8514 acl_save_libdir
="$libdir"
8516 eval flag
=\"$hardcode_libdir_flag_spec\"
8517 libdir
="$acl_save_libdir"
8518 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8520 for found_dir
in $rpathdirs; do
8521 acl_save_libdir
="$libdir"
8523 eval flag
=\"$hardcode_libdir_flag_spec\"
8524 libdir
="$acl_save_libdir"
8525 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8529 if test "X$ltrpathdirs" != "X"; then
8530 for found_dir
in $ltrpathdirs; do
8531 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8542 $as_echo_n "checking for iconv... " >&6; }
8543 if ${am_cv_func_iconv+:} false
; then :
8544 $as_echo_n "(cached) " >&6
8547 am_cv_func_iconv
="no, consider installing GNU libiconv"
8549 am_save_CPPFLAGS
="$CPPFLAGS"
8550 CPPFLAGS
="$CPPFLAGS $INCICONV"
8551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8552 /* end confdefs.h. */
8558 iconv_t cd = iconv_open("","");
8559 iconv(cd,NULL,NULL,NULL,NULL);
8565 if ac_fn_c_try_link
"$LINENO"; then :
8566 am_cv_func_iconv
=yes
8568 rm -f core conftest.err conftest.
$ac_objext \
8569 conftest
$ac_exeext conftest.
$ac_ext
8570 CPPFLAGS
="$am_save_CPPFLAGS"
8572 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
8573 for _libs
in .libs _libs
; do
8574 am_save_CPPFLAGS
="$CPPFLAGS"
8575 am_save_LIBS
="$LIBS"
8576 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
8577 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
8578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8579 /* end confdefs.h. */
8585 iconv_t cd = iconv_open("","");
8586 iconv(cd,NULL,NULL,NULL,NULL);
8592 if ac_fn_c_try_link
"$LINENO"; then :
8593 INCICONV
="-I../libiconv/include"
8594 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
8595 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
8597 am_cv_func_iconv
=yes
8599 rm -f core conftest.err conftest.
$ac_objext \
8600 conftest
$ac_exeext conftest.
$ac_ext
8601 CPPFLAGS
="$am_save_CPPFLAGS"
8602 LIBS
="$am_save_LIBS"
8603 if test "$am_cv_func_iconv" = "yes"; then
8609 if test "$am_cv_func_iconv" != yes; then
8610 am_save_CPPFLAGS
="$CPPFLAGS"
8611 am_save_LIBS
="$LIBS"
8612 CPPFLAGS
="$CPPFLAGS $INCICONV"
8613 LIBS
="$LIBS $LIBICONV"
8614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8615 /* end confdefs.h. */
8621 iconv_t cd = iconv_open("","");
8622 iconv(cd,NULL,NULL,NULL,NULL);
8628 if ac_fn_c_try_link
"$LINENO"; then :
8630 am_cv_func_iconv
=yes
8632 rm -f core conftest.err conftest.
$ac_objext \
8633 conftest
$ac_exeext conftest.
$ac_ext
8634 CPPFLAGS
="$am_save_CPPFLAGS"
8635 LIBS
="$am_save_LIBS"
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8640 $as_echo "$am_cv_func_iconv" >&6; }
8641 if test "$am_cv_func_iconv" = yes; then
8643 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8646 if test "$am_cv_lib_iconv" = yes; then
8648 for element
in $INCICONV; do
8650 for x
in $CPPFLAGS; do
8652 acl_save_prefix
="$prefix"
8653 prefix
="$acl_final_prefix"
8654 acl_save_exec_prefix
="$exec_prefix"
8655 exec_prefix
="$acl_final_exec_prefix"
8657 exec_prefix
="$acl_save_exec_prefix"
8658 prefix
="$acl_save_prefix"
8660 if test "X$x" = "X$element"; then
8665 if test -z "$haveit"; then
8666 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8671 $as_echo_n "checking how to link with libiconv... " >&6; }
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8673 $as_echo "$LIBICONV" >&6; }
8681 if test "$am_cv_func_iconv" = yes; then
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8683 $as_echo_n "checking for iconv declaration... " >&6; }
8684 if ${am_cv_proto_iconv+:} false
; then :
8685 $as_echo_n "(cached) " >&6
8688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8689 /* end confdefs.h. */
8697 #if defined(__STDC__) || defined(__cplusplus)
8698 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8711 if ac_fn_c_try_compile
"$LINENO"; then :
8712 am_cv_proto_iconv_arg1
=""
8714 am_cv_proto_iconv_arg1
="const"
8716 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8717 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);"
8720 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8722 }$am_cv_proto_iconv" >&5
8724 }$am_cv_proto_iconv" >&6; }
8726 cat >>confdefs.h
<<_ACEOF
8727 #define ICONV_CONST $am_cv_proto_iconv_arg1
8733 # GDB may fork/exec the iconv program to get the list of supported character
8734 # sets. Allow the user to specify where to find it.
8735 # There are several factors affecting the choice of option name:
8736 # - There is already --with-libiconv-prefix but we can't use it, it specifies
8737 # the build-time location of libiconv files.
8738 # - The program we need to find is iconv, which comes with glibc. The user
8739 # doesn't necessarily have libiconv installed. Therefore naming this
8740 # --with-libiconv-foo feels wrong.
8741 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
8742 # defined to work on directories not files (though it really doesn't know
8744 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
8745 # with --with-libiconv-prefix.
8746 # Putting these together is why the option name is --with-iconv-bin.
8749 # Check whether --with-iconv-bin was given.
8750 if test "${with_iconv_bin+set}" = set; then :
8751 withval
=$with_iconv_bin; iconv_bin
="${withval}"
8753 cat >>confdefs.h
<<_ACEOF
8754 #define ICONV_BIN "${iconv_bin}"
8758 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
8759 if test "x$prefix" = xNONE
; then
8760 test_prefix
=/usr
/local
8765 test_prefix
=$exec_prefix
8768 case ${iconv_bin} in
8769 "${test_prefix}"|
"${test_prefix}/"*|\
8770 '${exec_prefix}'|
'${exec_prefix}/'*)
8775 cat >>confdefs.h
<<_ACEOF
8776 #define ICONV_BIN_RELOCATABLE $value
8784 # For the TUI, we need enhanced curses functionality.
8785 if test x
"$enable_tui" != xno
; then
8790 if test x
"$prefer_curses" = xyes
; then
8791 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8792 # curses library because the latter might not provide all the
8793 # functionality we need. However, this leads to problems on systems
8794 # where the linker searches /usr/local/lib, but the compiler doesn't
8795 # search /usr/local/include, if ncurses is installed in /usr/local. A
8796 # default installation of ncurses on alpha*-dec-osf* will lead to such
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
8799 $as_echo_n "checking for library containing waddstr... " >&6; }
8800 if ${ac_cv_search_waddstr+:} false
; then :
8801 $as_echo_n "(cached) " >&6
8803 ac_func_search_save_LIBS
=$LIBS
8804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h. */
8807 /* Override any GCC internal prototype to avoid an error.
8808 Use char because int might match the return type of a GCC
8809 builtin and then its argument prototype would still apply. */
8822 for ac_lib
in '' ncursesw ncurses cursesX curses
; do
8823 if test -z "$ac_lib"; then
8824 ac_res
="none required"
8827 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8829 if ac_fn_c_try_link
"$LINENO"; then :
8830 ac_cv_search_waddstr
=$ac_res
8832 rm -f core conftest.err conftest.
$ac_objext \
8834 if ${ac_cv_search_waddstr+:} false
; then :
8838 if ${ac_cv_search_waddstr+:} false
; then :
8841 ac_cv_search_waddstr
=no
8844 LIBS
=$ac_func_search_save_LIBS
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
8847 $as_echo "$ac_cv_search_waddstr" >&6; }
8848 ac_res
=$ac_cv_search_waddstr
8849 if test "$ac_res" != no
; then :
8850 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8855 if test "$ac_cv_search_waddstr" != no
; then
8860 # Check whether we should enable the TUI, but only do so if we really
8862 if test x
"$enable_tui" != xno
; then
8863 if test -d $srcdir/tui
; then
8864 if test "$curses_found" != no
; then
8865 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
8866 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
8867 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
8868 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
8870 if test x
"$enable_tui" = xyes
; then
8871 as_fn_error $?
"no enhanced curses library found; disable TUI" "$LINENO" 5
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
8874 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
8880 # Since GDB uses Readline, we need termcap functionality. In many
8881 # cases this will be provided by the curses library, but some systems
8882 # have a separate termcap library, or no curses library at all.
8886 if test -d $srcdir/libtermcap
; then
8887 LIBS
="../libtermcap/libtermcap.a $LIBS"
8888 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
8891 ac_cv_search_tgetent
="none required"
8895 # These are the libraries checked by Readline.
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
8897 $as_echo_n "checking for library containing tgetent... " >&6; }
8898 if ${ac_cv_search_tgetent+:} false
; then :
8899 $as_echo_n "(cached) " >&6
8901 ac_func_search_save_LIBS
=$LIBS
8902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8903 /* end confdefs.h. */
8905 /* Override any GCC internal prototype to avoid an error.
8906 Use char because int might match the return type of a GCC
8907 builtin and then its argument prototype would still apply. */
8920 for ac_lib
in '' termcap tinfow tinfo curses ncursesw ncurses
; do
8921 if test -z "$ac_lib"; then
8922 ac_res
="none required"
8925 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8927 if ac_fn_c_try_link
"$LINENO"; then :
8928 ac_cv_search_tgetent
=$ac_res
8930 rm -f core conftest.err conftest.
$ac_objext \
8932 if ${ac_cv_search_tgetent+:} false
; then :
8936 if ${ac_cv_search_tgetent+:} false
; then :
8939 ac_cv_search_tgetent
=no
8942 LIBS
=$ac_func_search_save_LIBS
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
8945 $as_echo "$ac_cv_search_tgetent" >&6; }
8946 ac_res
=$ac_cv_search_tgetent
8947 if test "$ac_res" != no
; then :
8948 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8953 if test "$ac_cv_search_tgetent" = no
; then
8954 CONFIG_OBS
="$CONFIG_OBS stub-termcap.o"
8958 # Check whether --with-system-readline was given.
8959 if test "${with_system_readline+set}" = set; then :
8960 withval
=$with_system_readline;
8964 if test "$with_system_readline" = yes; then
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system readline is new enough" >&5
8966 $as_echo_n "checking whether system readline is new enough... " >&6; }
8967 if ${gdb_cv_readline_ok+:} false
; then :
8968 $as_echo_n "(cached) " >&6
8970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8971 /* end confdefs.h. */
8973 #include <readline/readline.h>
8977 #if RL_VERSION_MAJOR < 7
8978 # error "readline version 7 required"
8984 if ac_fn_c_try_compile
"$LINENO"; then :
8985 gdb_cv_readline_ok
=yes
8987 gdb_cv_readline_ok
=no
8989 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_readline_ok" >&5
8992 $as_echo "$gdb_cv_readline_ok" >&6; }
8993 if test "$gdb_cv_readline_ok" != yes; then
8994 as_fn_error $?
"system readline is not new enough" "$LINENO" 5
9000 READLINE_TEXI_INCFLAG
=
9002 READLINE
='$(READLINE_DIR)/libreadline.a'
9003 READLINE_DEPS
='$(READLINE)'
9004 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
9005 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
9012 # Generate jit-reader.h
9014 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
9017 # The cast to long int works around a bug in the HP C Compiler
9018 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9019 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9020 # This bug is HP SR number 8606223364.
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
9022 $as_echo_n "checking size of unsigned long long... " >&6; }
9023 if ${ac_cv_sizeof_unsigned_long_long+:} false
; then :
9024 $as_echo_n "(cached) " >&6
9026 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
9029 if test "$ac_cv_type_unsigned_long_long" = yes; then
9030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9032 as_fn_error
77 "cannot compute sizeof (unsigned long long)
9033 See \`config.log' for more details" "$LINENO" 5; }
9035 ac_cv_sizeof_unsigned_long_long
=0
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
9041 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
9045 cat >>confdefs.h
<<_ACEOF
9046 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
9050 # The cast to long int works around a bug in the HP C Compiler
9051 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9052 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9053 # This bug is HP SR number 8606223364.
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
9055 $as_echo_n "checking size of unsigned long... " >&6; }
9056 if ${ac_cv_sizeof_unsigned_long+:} false
; then :
9057 $as_echo_n "(cached) " >&6
9059 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
9062 if test "$ac_cv_type_unsigned_long" = yes; then
9063 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9065 as_fn_error
77 "cannot compute sizeof (unsigned long)
9066 See \`config.log' for more details" "$LINENO" 5; }
9068 ac_cv_sizeof_unsigned_long
=0
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
9074 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
9078 cat >>confdefs.h
<<_ACEOF
9079 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
9083 # The cast to long int works around a bug in the HP C Compiler
9084 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9085 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9086 # This bug is HP SR number 8606223364.
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
9088 $as_echo_n "checking size of unsigned __int128... " >&6; }
9089 if ${ac_cv_sizeof_unsigned___int128+:} false
; then :
9090 $as_echo_n "(cached) " >&6
9092 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
9095 if test "$ac_cv_type_unsigned___int128" = yes; then
9096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9098 as_fn_error
77 "cannot compute sizeof (unsigned __int128)
9099 See \`config.log' for more details" "$LINENO" 5; }
9101 ac_cv_sizeof_unsigned___int128
=0
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
9107 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
9111 cat >>confdefs.h
<<_ACEOF
9112 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
9117 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9118 TARGET_PTR
="unsigned long"
9119 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
9120 TARGET_PTR
="unsigned long long"
9121 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
9122 TARGET_PTR
="unsigned __int128"
9124 TARGET_PTR
="unsigned long"
9128 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9132 $as_echo_n "checking for library containing dlopen... " >&6; }
9133 if ${ac_cv_search_dlopen+:} false
; then :
9134 $as_echo_n "(cached) " >&6
9136 ac_func_search_save_LIBS
=$LIBS
9137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9138 /* end confdefs.h. */
9140 /* Override any GCC internal prototype to avoid an error.
9141 Use char because int might match the return type of a GCC
9142 builtin and then its argument prototype would still apply. */
9155 for ac_lib
in '' dl
; do
9156 if test -z "$ac_lib"; then
9157 ac_res
="none required"
9160 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9162 if ac_fn_c_try_link
"$LINENO"; then :
9163 ac_cv_search_dlopen
=$ac_res
9165 rm -f core conftest.err conftest.
$ac_objext \
9167 if ${ac_cv_search_dlopen+:} false
; then :
9171 if ${ac_cv_search_dlopen+:} false
; then :
9174 ac_cv_search_dlopen
=no
9177 LIBS
=$ac_func_search_save_LIBS
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9180 $as_echo "$ac_cv_search_dlopen" >&6; }
9181 ac_res
=$ac_cv_search_dlopen
9182 if test "$ac_res" != no
; then :
9183 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9190 # Check whether --with-jit-reader-dir was given.
9191 if test "${with_jit_reader_dir+set}" = set; then :
9192 withval
=$with_jit_reader_dir;
9193 JIT_READER_DIR
=$withval
9195 JIT_READER_DIR
=${libdir}/gdb
9199 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9200 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9201 ac_define_dir
=`eval echo $JIT_READER_DIR`
9202 ac_define_dir
=`eval echo $ac_define_dir`
9204 cat >>confdefs.h
<<_ACEOF
9205 #define JIT_READER_DIR "$ac_define_dir"
9211 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9212 if test "x$prefix" = xNONE
; then
9213 test_prefix
=/usr
/local
9218 test_prefix
=$exec_prefix
9221 case ${ac_define_dir} in
9222 "${test_prefix}"|
"${test_prefix}/"*|\
9223 '${exec_prefix}'|
'${exec_prefix}/'*)
9228 cat >>confdefs.h
<<_ACEOF
9229 #define JIT_READER_DIR_RELOCATABLE $value
9236 # Check whether --with-expat was given.
9237 if test "${with_expat+set}" = set; then :
9238 withval
=$with_expat;
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9244 $as_echo_n "checking whether to use expat... " >&6; }
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9246 $as_echo "$with_expat" >&6; }
9248 if test "${with_expat}" = no
; then
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9250 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9263 acl_save_prefix
="$prefix"
9264 prefix
="$acl_final_prefix"
9265 acl_save_exec_prefix
="$exec_prefix"
9266 exec_prefix
="$acl_final_exec_prefix"
9268 eval additional_includedir
=\"$includedir\"
9269 eval additional_libdir
=\"$libdir\"
9271 exec_prefix
="$acl_save_exec_prefix"
9272 prefix
="$acl_save_prefix"
9275 # Check whether --with-libexpat-prefix was given.
9276 if test "${with_libexpat_prefix+set}" = set; then :
9277 withval
=$with_libexpat_prefix;
9278 if test "X$withval" = "Xno"; then
9281 if test "X$withval" = "X"; then
9283 acl_save_prefix
="$prefix"
9284 prefix
="$acl_final_prefix"
9285 acl_save_exec_prefix
="$exec_prefix"
9286 exec_prefix
="$acl_final_exec_prefix"
9288 eval additional_includedir
=\"$includedir\"
9289 eval additional_libdir
=\"$libdir\"
9291 exec_prefix
="$acl_save_exec_prefix"
9292 prefix
="$acl_save_prefix"
9295 additional_includedir
="$withval/include"
9296 additional_libdir
="$withval/lib"
9307 names_already_handled
=
9308 names_next_round
='expat '
9309 while test -n "$names_next_round"; do
9310 names_this_round
="$names_next_round"
9312 for name
in $names_this_round; do
9314 for n
in $names_already_handled; do
9315 if test "$n" = "$name"; then
9320 if test -z "$already_handled"; then
9321 names_already_handled
="$names_already_handled $name"
9322 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9323 eval value
=\"\
$HAVE_LIB$uppername\"
9324 if test -n "$value"; then
9325 if test "$value" = yes; then
9326 eval value
=\"\
$LIB$uppername\"
9327 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
9328 eval value
=\"\
$LTLIB$uppername\"
9329 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
9338 if test $use_additional = yes; then
9339 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9340 found_dir
="$additional_libdir"
9341 found_so
="$additional_libdir/lib$name.$shlibext"
9342 if test -f "$additional_libdir/lib$name.la"; then
9343 found_la
="$additional_libdir/lib$name.la"
9346 if test -f "$additional_libdir/lib$name.$libext"; then
9347 found_dir
="$additional_libdir"
9348 found_a
="$additional_libdir/lib$name.$libext"
9349 if test -f "$additional_libdir/lib$name.la"; then
9350 found_la
="$additional_libdir/lib$name.la"
9355 if test "X$found_dir" = "X"; then
9356 for x
in $LDFLAGS $LTLIBEXPAT; do
9358 acl_save_prefix
="$prefix"
9359 prefix
="$acl_final_prefix"
9360 acl_save_exec_prefix
="$exec_prefix"
9361 exec_prefix
="$acl_final_exec_prefix"
9363 exec_prefix
="$acl_save_exec_prefix"
9364 prefix
="$acl_save_prefix"
9368 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9369 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9371 found_so
="$dir/lib$name.$shlibext"
9372 if test -f "$dir/lib$name.la"; then
9373 found_la
="$dir/lib$name.la"
9376 if test -f "$dir/lib$name.$libext"; then
9378 found_a
="$dir/lib$name.$libext"
9379 if test -f "$dir/lib$name.la"; then
9380 found_la
="$dir/lib$name.la"
9386 if test "X$found_dir" != "X"; then
9391 if test "X$found_dir" != "X"; then
9392 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
9393 if test "X$found_so" != "X"; then
9394 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9395 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9398 for x
in $ltrpathdirs; do
9399 if test "X$x" = "X$found_dir"; then
9404 if test -z "$haveit"; then
9405 ltrpathdirs
="$ltrpathdirs $found_dir"
9407 if test "$hardcode_direct" = yes; then
9408 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9410 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9411 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9413 for x
in $rpathdirs; do
9414 if test "X$x" = "X$found_dir"; then
9419 if test -z "$haveit"; then
9420 rpathdirs
="$rpathdirs $found_dir"
9424 for x
in $LDFLAGS $LIBEXPAT; do
9426 acl_save_prefix
="$prefix"
9427 prefix
="$acl_final_prefix"
9428 acl_save_exec_prefix
="$exec_prefix"
9429 exec_prefix
="$acl_final_exec_prefix"
9431 exec_prefix
="$acl_save_exec_prefix"
9432 prefix
="$acl_save_prefix"
9434 if test "X$x" = "X-L$found_dir"; then
9439 if test -z "$haveit"; then
9440 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
9442 if test "$hardcode_minus_L" != no
; then
9443 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9445 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9451 if test "X$found_a" != "X"; then
9452 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
9454 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
9457 additional_includedir
=
9458 case "$found_dir" in
9460 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9461 additional_includedir
="$basedir/include"
9464 if test "X$additional_includedir" != "X"; then
9465 if test "X$additional_includedir" != "X/usr/include"; then
9467 if test "X$additional_includedir" = "X/usr/local/include"; then
9468 if test -n "$GCC"; then
9470 linux
*) haveit
=yes;;
9474 if test -z "$haveit"; then
9475 for x
in $CPPFLAGS $INCEXPAT; do
9477 acl_save_prefix
="$prefix"
9478 prefix
="$acl_final_prefix"
9479 acl_save_exec_prefix
="$exec_prefix"
9480 exec_prefix
="$acl_final_exec_prefix"
9482 exec_prefix
="$acl_save_exec_prefix"
9483 prefix
="$acl_save_prefix"
9485 if test "X$x" = "X-I$additional_includedir"; then
9490 if test -z "$haveit"; then
9491 if test -d "$additional_includedir"; then
9492 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
9498 if test -n "$found_la"; then
9499 save_libdir
="$libdir"
9501 */* |
*\\*) .
"$found_la" ;;
9502 *) .
"./$found_la" ;;
9504 libdir
="$save_libdir"
9505 for dep
in $dependency_libs; do
9508 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9509 if test "X$additional_libdir" != "X/usr/lib"; then
9511 if test "X$additional_libdir" = "X/usr/local/lib"; then
9512 if test -n "$GCC"; then
9514 linux
*) haveit
=yes;;
9518 if test -z "$haveit"; then
9520 for x
in $LDFLAGS $LIBEXPAT; do
9522 acl_save_prefix
="$prefix"
9523 prefix
="$acl_final_prefix"
9524 acl_save_exec_prefix
="$exec_prefix"
9525 exec_prefix
="$acl_final_exec_prefix"
9527 exec_prefix
="$acl_save_exec_prefix"
9528 prefix
="$acl_save_prefix"
9530 if test "X$x" = "X-L$additional_libdir"; then
9535 if test -z "$haveit"; then
9536 if test -d "$additional_libdir"; then
9537 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
9541 for x
in $LDFLAGS $LTLIBEXPAT; do
9543 acl_save_prefix
="$prefix"
9544 prefix
="$acl_final_prefix"
9545 acl_save_exec_prefix
="$exec_prefix"
9546 exec_prefix
="$acl_final_exec_prefix"
9548 exec_prefix
="$acl_save_exec_prefix"
9549 prefix
="$acl_save_prefix"
9551 if test "X$x" = "X-L$additional_libdir"; then
9556 if test -z "$haveit"; then
9557 if test -d "$additional_libdir"; then
9558 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
9565 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9566 if test "$enable_rpath" != no
; then
9568 for x
in $rpathdirs; do
9569 if test "X$x" = "X$dir"; then
9574 if test -z "$haveit"; then
9575 rpathdirs
="$rpathdirs $dir"
9578 for x
in $ltrpathdirs; do
9579 if test "X$x" = "X$dir"; then
9584 if test -z "$haveit"; then
9585 ltrpathdirs
="$ltrpathdirs $dir"
9590 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9593 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9596 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
9597 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
9603 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9604 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
9610 if test "X$rpathdirs" != "X"; then
9611 if test -n "$hardcode_libdir_separator"; then
9613 for found_dir
in $rpathdirs; do
9614 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9616 acl_save_libdir
="$libdir"
9618 eval flag
=\"$hardcode_libdir_flag_spec\"
9619 libdir
="$acl_save_libdir"
9620 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9622 for found_dir
in $rpathdirs; do
9623 acl_save_libdir
="$libdir"
9625 eval flag
=\"$hardcode_libdir_flag_spec\"
9626 libdir
="$acl_save_libdir"
9627 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9631 if test "X$ltrpathdirs" != "X"; then
9632 for found_dir
in $ltrpathdirs; do
9633 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
9638 ac_save_CPPFLAGS
="$CPPFLAGS"
9640 for element
in $INCEXPAT; do
9642 for x
in $CPPFLAGS; do
9644 acl_save_prefix
="$prefix"
9645 prefix
="$acl_final_prefix"
9646 acl_save_exec_prefix
="$exec_prefix"
9647 exec_prefix
="$acl_final_exec_prefix"
9649 exec_prefix
="$acl_save_exec_prefix"
9650 prefix
="$acl_save_prefix"
9652 if test "X$x" = "X$element"; then
9657 if test -z "$haveit"; then
9658 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
9664 $as_echo_n "checking for libexpat... " >&6; }
9665 if ${ac_cv_libexpat+:} false
; then :
9666 $as_echo_n "(cached) " >&6
9669 ac_save_LIBS
="$LIBS"
9670 LIBS
="$LIBS $LIBEXPAT"
9671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9672 /* end confdefs.h. */
9677 XML_Parser p = XML_ParserCreate (0);
9682 if ac_fn_c_try_link
"$LINENO"; then :
9687 rm -f core conftest.err conftest.
$ac_objext \
9688 conftest
$ac_exeext conftest.
$ac_ext
9689 LIBS
="$ac_save_LIBS"
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
9693 $as_echo "$ac_cv_libexpat" >&6; }
9694 if test "$ac_cv_libexpat" = yes; then
9697 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
9700 $as_echo_n "checking how to link with libexpat... " >&6; }
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
9702 $as_echo "$LIBEXPAT" >&6; }
9705 CPPFLAGS
="$ac_save_CPPFLAGS"
9715 if test "$HAVE_LIBEXPAT" != yes; then
9716 if test "$with_expat" = yes; then
9717 as_fn_error $?
"expat is missing or unusable" "$LINENO" 5
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
9720 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
9724 LIBS
="$LIBS $LIBEXPAT"
9725 for ac_func
in XML_StopParser
9727 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
9728 if test "x$ac_cv_func_XML_StopParser" = xyes
; then :
9729 cat >>confdefs.h
<<_ACEOF
9730 #define HAVE_XML_STOPPARSER 1
9741 # Check whether --with-mpfr was given.
9742 if test "${with_mpfr+set}" = set; then :
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MPFR" >&5
9749 $as_echo_n "checking whether to use MPFR... " >&6; }
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mpfr" >&5
9751 $as_echo "$with_mpfr" >&6; }
9753 if test "${with_mpfr}" = no
; then
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR support disabled; some features may be unavailable." >&5
9755 $as_echo "$as_me: WARNING: MPFR support disabled; some features may be unavailable." >&2;}
9768 acl_save_prefix
="$prefix"
9769 prefix
="$acl_final_prefix"
9770 acl_save_exec_prefix
="$exec_prefix"
9771 exec_prefix
="$acl_final_exec_prefix"
9773 eval additional_includedir
=\"$includedir\"
9774 eval additional_libdir
=\"$libdir\"
9776 exec_prefix
="$acl_save_exec_prefix"
9777 prefix
="$acl_save_prefix"
9780 # Check whether --with-libmpfr-prefix was given.
9781 if test "${with_libmpfr_prefix+set}" = set; then :
9782 withval
=$with_libmpfr_prefix;
9783 if test "X$withval" = "Xno"; then
9786 if test "X$withval" = "X"; then
9788 acl_save_prefix
="$prefix"
9789 prefix
="$acl_final_prefix"
9790 acl_save_exec_prefix
="$exec_prefix"
9791 exec_prefix
="$acl_final_exec_prefix"
9793 eval additional_includedir
=\"$includedir\"
9794 eval additional_libdir
=\"$libdir\"
9796 exec_prefix
="$acl_save_exec_prefix"
9797 prefix
="$acl_save_prefix"
9800 additional_includedir
="$withval/include"
9801 additional_libdir
="$withval/lib"
9812 names_already_handled
=
9813 names_next_round
='mpfr gmp'
9814 while test -n "$names_next_round"; do
9815 names_this_round
="$names_next_round"
9817 for name
in $names_this_round; do
9819 for n
in $names_already_handled; do
9820 if test "$n" = "$name"; then
9825 if test -z "$already_handled"; then
9826 names_already_handled
="$names_already_handled $name"
9827 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9828 eval value
=\"\
$HAVE_LIB$uppername\"
9829 if test -n "$value"; then
9830 if test "$value" = yes; then
9831 eval value
=\"\
$LIB$uppername\"
9832 test -z "$value" || LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$value"
9833 eval value
=\"\
$LTLIB$uppername\"
9834 test -z "$value" || LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$value"
9843 if test $use_additional = yes; then
9844 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9845 found_dir
="$additional_libdir"
9846 found_so
="$additional_libdir/lib$name.$shlibext"
9847 if test -f "$additional_libdir/lib$name.la"; then
9848 found_la
="$additional_libdir/lib$name.la"
9851 if test -f "$additional_libdir/lib$name.$libext"; then
9852 found_dir
="$additional_libdir"
9853 found_a
="$additional_libdir/lib$name.$libext"
9854 if test -f "$additional_libdir/lib$name.la"; then
9855 found_la
="$additional_libdir/lib$name.la"
9860 if test "X$found_dir" = "X"; then
9861 for x
in $LDFLAGS $LTLIBMPFR; do
9863 acl_save_prefix
="$prefix"
9864 prefix
="$acl_final_prefix"
9865 acl_save_exec_prefix
="$exec_prefix"
9866 exec_prefix
="$acl_final_exec_prefix"
9868 exec_prefix
="$acl_save_exec_prefix"
9869 prefix
="$acl_save_prefix"
9873 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9874 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9876 found_so
="$dir/lib$name.$shlibext"
9877 if test -f "$dir/lib$name.la"; then
9878 found_la
="$dir/lib$name.la"
9881 if test -f "$dir/lib$name.$libext"; then
9883 found_a
="$dir/lib$name.$libext"
9884 if test -f "$dir/lib$name.la"; then
9885 found_la
="$dir/lib$name.la"
9891 if test "X$found_dir" != "X"; then
9896 if test "X$found_dir" != "X"; then
9897 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$found_dir -l$name"
9898 if test "X$found_so" != "X"; then
9899 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9900 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
9903 for x
in $ltrpathdirs; do
9904 if test "X$x" = "X$found_dir"; then
9909 if test -z "$haveit"; then
9910 ltrpathdirs
="$ltrpathdirs $found_dir"
9912 if test "$hardcode_direct" = yes; then
9913 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
9915 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9916 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
9918 for x
in $rpathdirs; do
9919 if test "X$x" = "X$found_dir"; then
9924 if test -z "$haveit"; then
9925 rpathdirs
="$rpathdirs $found_dir"
9929 for x
in $LDFLAGS $LIBMPFR; do
9931 acl_save_prefix
="$prefix"
9932 prefix
="$acl_final_prefix"
9933 acl_save_exec_prefix
="$exec_prefix"
9934 exec_prefix
="$acl_final_exec_prefix"
9936 exec_prefix
="$acl_save_exec_prefix"
9937 prefix
="$acl_save_prefix"
9939 if test "X$x" = "X-L$found_dir"; then
9944 if test -z "$haveit"; then
9945 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir"
9947 if test "$hardcode_minus_L" != no
; then
9948 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
9950 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
9956 if test "X$found_a" != "X"; then
9957 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_a"
9959 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir -l$name"
9962 additional_includedir
=
9963 case "$found_dir" in
9965 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9966 additional_includedir
="$basedir/include"
9969 if test "X$additional_includedir" != "X"; then
9970 if test "X$additional_includedir" != "X/usr/include"; then
9972 if test "X$additional_includedir" = "X/usr/local/include"; then
9973 if test -n "$GCC"; then
9975 linux
*) haveit
=yes;;
9979 if test -z "$haveit"; then
9980 for x
in $CPPFLAGS $INCMPFR; do
9982 acl_save_prefix
="$prefix"
9983 prefix
="$acl_final_prefix"
9984 acl_save_exec_prefix
="$exec_prefix"
9985 exec_prefix
="$acl_final_exec_prefix"
9987 exec_prefix
="$acl_save_exec_prefix"
9988 prefix
="$acl_save_prefix"
9990 if test "X$x" = "X-I$additional_includedir"; then
9995 if test -z "$haveit"; then
9996 if test -d "$additional_includedir"; then
9997 INCMPFR
="${INCMPFR}${INCMPFR:+ }-I$additional_includedir"
10003 if test -n "$found_la"; then
10004 save_libdir
="$libdir"
10005 case "$found_la" in
10006 */* |
*\\*) .
"$found_la" ;;
10007 *) .
"./$found_la" ;;
10009 libdir
="$save_libdir"
10010 for dep
in $dependency_libs; do
10013 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10014 if test "X$additional_libdir" != "X/usr/lib"; then
10016 if test "X$additional_libdir" = "X/usr/local/lib"; then
10017 if test -n "$GCC"; then
10019 linux
*) haveit
=yes;;
10023 if test -z "$haveit"; then
10025 for x
in $LDFLAGS $LIBMPFR; do
10027 acl_save_prefix
="$prefix"
10028 prefix
="$acl_final_prefix"
10029 acl_save_exec_prefix
="$exec_prefix"
10030 exec_prefix
="$acl_final_exec_prefix"
10032 exec_prefix
="$acl_save_exec_prefix"
10033 prefix
="$acl_save_prefix"
10035 if test "X$x" = "X-L$additional_libdir"; then
10040 if test -z "$haveit"; then
10041 if test -d "$additional_libdir"; then
10042 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$additional_libdir"
10046 for x
in $LDFLAGS $LTLIBMPFR; do
10048 acl_save_prefix
="$prefix"
10049 prefix
="$acl_final_prefix"
10050 acl_save_exec_prefix
="$exec_prefix"
10051 exec_prefix
="$acl_final_exec_prefix"
10053 exec_prefix
="$acl_save_exec_prefix"
10054 prefix
="$acl_save_prefix"
10056 if test "X$x" = "X-L$additional_libdir"; then
10061 if test -z "$haveit"; then
10062 if test -d "$additional_libdir"; then
10063 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$additional_libdir"
10070 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10071 if test "$enable_rpath" != no
; then
10073 for x
in $rpathdirs; do
10074 if test "X$x" = "X$dir"; then
10079 if test -z "$haveit"; then
10080 rpathdirs
="$rpathdirs $dir"
10083 for x
in $ltrpathdirs; do
10084 if test "X$x" = "X$dir"; then
10089 if test -z "$haveit"; then
10090 ltrpathdirs
="$ltrpathdirs $dir"
10095 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10098 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10101 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$dep"
10102 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$dep"
10108 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10109 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-l$name"
10115 if test "X$rpathdirs" != "X"; then
10116 if test -n "$hardcode_libdir_separator"; then
10118 for found_dir
in $rpathdirs; do
10119 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10121 acl_save_libdir
="$libdir"
10123 eval flag
=\"$hardcode_libdir_flag_spec\"
10124 libdir
="$acl_save_libdir"
10125 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10127 for found_dir
in $rpathdirs; do
10128 acl_save_libdir
="$libdir"
10129 libdir
="$found_dir"
10130 eval flag
=\"$hardcode_libdir_flag_spec\"
10131 libdir
="$acl_save_libdir"
10132 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10136 if test "X$ltrpathdirs" != "X"; then
10137 for found_dir
in $ltrpathdirs; do
10138 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-R$found_dir"
10143 ac_save_CPPFLAGS
="$CPPFLAGS"
10145 for element
in $INCMPFR; do
10147 for x
in $CPPFLAGS; do
10149 acl_save_prefix
="$prefix"
10150 prefix
="$acl_final_prefix"
10151 acl_save_exec_prefix
="$exec_prefix"
10152 exec_prefix
="$acl_final_exec_prefix"
10154 exec_prefix
="$acl_save_exec_prefix"
10155 prefix
="$acl_save_prefix"
10157 if test "X$x" = "X$element"; then
10162 if test -z "$haveit"; then
10163 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpfr" >&5
10169 $as_echo_n "checking for libmpfr... " >&6; }
10170 if ${ac_cv_libmpfr+:} false
; then :
10171 $as_echo_n "(cached) " >&6
10174 ac_save_LIBS
="$LIBS"
10175 LIBS
="$LIBS $LIBMPFR"
10176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10177 /* end confdefs.h. */
10182 mpfr_exp_t exp; mpfr_t x;
10183 mpfr_frexp (&exp, x, x, MPFR_RNDN);
10188 if ac_fn_c_try_link
"$LINENO"; then :
10193 rm -f core conftest.err conftest.
$ac_objext \
10194 conftest
$ac_exeext conftest.
$ac_ext
10195 LIBS
="$ac_save_LIBS"
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libmpfr" >&5
10199 $as_echo "$ac_cv_libmpfr" >&6; }
10200 if test "$ac_cv_libmpfr" = yes; then
10203 $as_echo "#define HAVE_LIBMPFR 1" >>confdefs.h
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libmpfr" >&5
10206 $as_echo_n "checking how to link with libmpfr... " >&6; }
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPFR" >&5
10208 $as_echo "$LIBMPFR" >&6; }
10211 CPPFLAGS
="$ac_save_CPPFLAGS"
10221 if test "$HAVE_LIBMPFR" != yes; then
10222 if test "$with_mpfr" = yes; then
10223 as_fn_error $?
"MPFR is missing or unusable" "$LINENO" 5
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR is missing or unusable; some features may be unavailable." >&5
10226 $as_echo "$as_me: WARNING: MPFR is missing or unusable; some features may be unavailable." >&2;}
10231 # --------------------- #
10232 # Check for libpython. #
10233 # --------------------- #
10240 # Check whether --with-python was given.
10241 if test "${with_python+set}" = set; then :
10242 withval
=$with_python;
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10248 $as_echo_n "checking whether to use python... " >&6; }
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10250 $as_echo "$with_python" >&6; }
10252 if test "${with_python}" = no
; then
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10254 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10257 case "${with_python}" in
10259 if test -d ${with_python}; then
10260 # Assume the python binary is ${with_python}/bin/python.
10261 python_prog
="${with_python}/bin/python"
10263 # If python does not exit ${with_python}/bin, then try in
10264 # ${with_python}. On Windows/MinGW, this is where the Python
10266 if test ! -x "${python_prog}"; then
10267 python_prog
="${with_python}/python"
10270 if test ! -x "${python_prog}"; then
10271 # Fall back to gdb 7.0/7.1 behaviour.
10272 python_prog
=missing
10273 python_prefix
=${with_python}
10275 elif test -x "${with_python}"; then
10276 # While we can't run python compiled for $host (unless host == build),
10277 # the user could write a script that provides the needed information,
10278 # so we support that.
10279 python_prog
=${with_python}
10282 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
10286 # Disallow --with-python=foo/bar.
10287 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
10290 # The user has either specified auto, yes, or the name of the python
10291 # program assumed to be in $PATH.
10293 case "${with_python}" in
10295 if test ${build} = ${host}; then
10296 # Extract the first word of "python", so it can be a program name with args.
10297 set dummy python
; ac_word
=$2
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10299 $as_echo_n "checking for $ac_word... " >&6; }
10300 if ${ac_cv_path_python_prog_path+:} false
; then :
10301 $as_echo_n "(cached) " >&6
10303 case $python_prog_path in
10305 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10308 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10309 for as_dir
in $PATH
10312 test -z "$as_dir" && as_dir
=.
10313 for ac_exec_ext
in '' $ac_executable_extensions; do
10314 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10315 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10323 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10327 python_prog_path
=$ac_cv_path_python_prog_path
10328 if test -n "$python_prog_path"; then
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10330 $as_echo "$python_prog_path" >&6; }
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10333 $as_echo "no" >&6; }
10337 if test "${python_prog_path}" = missing
; then
10338 python_prog
=missing
10340 python_prog
=${python_prog_path}
10343 # Not much we can do except assume the cross-compiler will find the
10345 python_prog
=missing
10349 # While we can't run python compiled for $host (unless host == build),
10350 # the user could write a script that provides the needed information,
10351 # so we support that.
10352 python_prog
="${with_python}"
10353 # Extract the first word of "${python_prog}", so it can be a program name with args.
10354 set dummy
${python_prog}; ac_word
=$2
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10356 $as_echo_n "checking for $ac_word... " >&6; }
10357 if ${ac_cv_path_python_prog_path+:} false
; then :
10358 $as_echo_n "(cached) " >&6
10360 case $python_prog_path in
10362 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10365 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10366 for as_dir
in $PATH
10369 test -z "$as_dir" && as_dir
=.
10370 for ac_exec_ext
in '' $ac_executable_extensions; do
10371 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10372 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10380 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10384 python_prog_path
=$ac_cv_path_python_prog_path
10385 if test -n "$python_prog_path"; then
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10387 $as_echo "$python_prog_path" >&6; }
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10390 $as_echo "no" >&6; }
10394 if test "${python_prog_path}" = missing
; then
10395 as_fn_error $?
"unable to find python program ${python_prog}" "$LINENO" 5
10401 if test "${python_prog}" != missing
; then
10402 # We have a python program to use, but it may be too old.
10403 # Don't flag an error for --with-python=auto (the default).
10404 have_python_config
=yes
10405 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
10406 if test $?
!= 0; then
10407 have_python_config
=failed
10408 if test "${with_python}" != auto
; then
10409 as_fn_error $?
"failure running python-config --includes" "$LINENO" 5
10412 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10413 if test $?
!= 0; then
10414 have_python_config
=failed
10415 if test "${with_python}" != auto
; then
10416 as_fn_error $?
"failure running python-config --ldflags" "$LINENO" 5
10419 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10420 if test $?
!= 0; then
10421 have_python_config
=failed
10422 if test "${with_python}" != auto
; then
10423 as_fn_error $?
"failure running python-config --exec-prefix" "$LINENO" 5
10427 # We do not have a python executable we can use to determine where
10428 # to find the Python headers and libs. We cannot guess the include
10429 # path from the python_prefix either, because that include path
10430 # depends on the Python version. So, there is nothing much we can
10431 # do except assume that the compiler will be able to find those files.
10434 have_python_config
=no
10437 # If we have python-config, only try the configuration it provides.
10438 # Otherwise fallback on the old way of trying different versions of
10442 if test "${have_python_config}" = yes; then
10445 new_CPPFLAGS
=${python_includes}
10446 new_LIBS
=${python_libs}
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
10448 $as_echo_n "checking for python... " >&6; }
10449 save_CPPFLAGS
=$CPPFLAGS
10451 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10452 LIBS
="$new_LIBS $LIBS"
10453 found_usable_python
=no
10454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10455 /* end confdefs.h. */
10456 #include "Python.h"
10465 if ac_fn_c_try_link
"$LINENO"; then :
10467 found_usable_python
=yes
10468 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10469 PYTHON_LIBS
=$new_LIBS
10471 rm -f core conftest.err conftest.
$ac_objext \
10472 conftest
$ac_exeext conftest.
$ac_ext
10473 CPPFLAGS
=$save_CPPFLAGS
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10476 $as_echo "${found_usable_python}" >&6; }
10478 elif test "${have_python_config}" != failed
; then
10479 if test "${have_libpython}" = no
; then
10482 new_CPPFLAGS
=${python_includes}
10483 new_LIBS
="-lpython2.7 ${python_libs}"
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
10485 $as_echo_n "checking for python... " >&6; }
10486 save_CPPFLAGS
=$CPPFLAGS
10488 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10489 LIBS
="$new_LIBS $LIBS"
10490 found_usable_python
=no
10491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10492 /* end confdefs.h. */
10493 #include "Python.h"
10502 if ac_fn_c_try_link
"$LINENO"; then :
10504 found_usable_python
=yes
10505 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10506 PYTHON_LIBS
=$new_LIBS
10508 rm -f core conftest.err conftest.
$ac_objext \
10509 conftest
$ac_exeext conftest.
$ac_ext
10510 CPPFLAGS
=$save_CPPFLAGS
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10513 $as_echo "${found_usable_python}" >&6; }
10516 if test "${have_libpython}" = no
; then
10519 new_CPPFLAGS
=${python_includes}
10520 new_LIBS
="-lpython2.6 ${python_libs}"
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
10522 $as_echo_n "checking for python... " >&6; }
10523 save_CPPFLAGS
=$CPPFLAGS
10525 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10526 LIBS
="$new_LIBS $LIBS"
10527 found_usable_python
=no
10528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10529 /* end confdefs.h. */
10530 #include "Python.h"
10539 if ac_fn_c_try_link
"$LINENO"; then :
10541 found_usable_python
=yes
10542 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10543 PYTHON_LIBS
=$new_LIBS
10545 rm -f core conftest.err conftest.
$ac_objext \
10546 conftest
$ac_exeext conftest.
$ac_ext
10547 CPPFLAGS
=$save_CPPFLAGS
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10550 $as_echo "${found_usable_python}" >&6; }
10555 if test "${have_libpython}" = no
; then
10556 case "${with_python}" in
10558 as_fn_error $?
"python is missing or unusable" "$LINENO" 5
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10562 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10565 as_fn_error $?
"no usable python found at ${with_python}" "$LINENO" 5
10569 if test -n "${python_prefix}"; then
10571 cat >>confdefs.h
<<_ACEOF
10572 #define WITH_PYTHON_PATH "${python_prefix}"
10576 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
10577 if test "x$prefix" = xNONE
; then
10578 test_prefix
=/usr
/local
10580 test_prefix
=$prefix
10583 test_prefix
=$exec_prefix
10586 case ${python_prefix} in
10587 "${test_prefix}"|
"${test_prefix}/"*|\
10588 '${exec_prefix}'|
'${exec_prefix}/'*)
10593 cat >>confdefs.h
<<_ACEOF
10594 #define PYTHON_PATH_RELOCATABLE $value
10602 if test "${have_libpython}" != no
; then
10604 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10606 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
10607 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
10608 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
10609 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
10610 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
10612 # Flags needed to compile Python code (taken from python-config --cflags).
10613 # We cannot call python-config directly because it will output whatever was
10614 # used when compiling the Python interpreter itself, including flags which
10615 # would make the python-related objects be compiled differently from the
10616 # rest of GDB (e.g., -O2 and -fPIC).
10617 if test "${GCC}" = yes; then
10618 tentative_python_cflags
="-fno-strict-aliasing -fwrapv"
10619 # Python headers recommend -DNDEBUG, but it's unclear if that just
10620 # refers to building Python itself. In release mode, though, it
10621 # doesn't hurt for the Python code in gdb to follow.
10622 $development || tentative_python_cflags
="$tentative_python_cflags -DNDEBUG"
10625 if test "x${tentative_python_cflags}" != x
; then
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
10627 $as_echo_n "checking compiler flags for python code... " >&6; }
10628 for flag
in ${tentative_python_cflags}; do
10629 # Check that the compiler accepts it
10630 saved_CFLAGS
="$CFLAGS"
10631 CFLAGS
="$CFLAGS $flag"
10632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10633 /* end confdefs.h. */
10643 if ac_fn_c_try_compile
"$LINENO"; then :
10644 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
10646 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10647 CFLAGS
="$saved_CFLAGS"
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
10650 $as_echo "${PYTHON_CFLAGS}" >&6; }
10653 # On x64 Windows, Python's include headers, and pyconfig.h in
10654 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
10655 # version of Windows. Unfortunately, MS_WIN64 is only defined if
10656 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
10657 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
10658 # The issue was reported to the Python community, but still isn't
10659 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
10661 case "$gdb_host" in
10663 if test "${GCC}" = yes; then
10664 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
10669 # Even if Python support is not compiled in, we need to have this file
10670 # included so that the "python" command, et.al., still exists.
10671 CONFIG_OBS
="$CONFIG_OBS python/python.o"
10672 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
10675 # Work around Python http://bugs.python.org/issue10112. See also
10676 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
10677 # no effect. Note that the only test after this that uses Python is
10678 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
10679 # run without -export-dynamic too.
10680 PYTHON_LIBS
=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
10685 if test "${have_libpython}" != no
; then
10687 HAVE_PYTHON_FALSE
='#'
10689 HAVE_PYTHON_TRUE
='#'
10694 # -------------------- #
10695 # Check for libguile. #
10696 # -------------------- #
10703 # Check whether --with-guile was given.
10704 if test "${with_guile+set}" = set; then :
10705 withval
=$with_guile;
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
10711 $as_echo_n "checking whether to use guile... " >&6; }
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
10713 $as_echo "$with_guile" >&6; }
10715 # Extract the first word of "pkg-config", so it can be a program name with args.
10716 set dummy pkg-config
; ac_word
=$2
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10718 $as_echo_n "checking for $ac_word... " >&6; }
10719 if ${ac_cv_path_pkg_config_prog_path+:} false
; then :
10720 $as_echo_n "(cached) " >&6
10722 case $pkg_config_prog_path in
10724 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
10727 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10728 for as_dir
in $PATH
10731 test -z "$as_dir" && as_dir
=.
10732 for ac_exec_ext
in '' $ac_executable_extensions; do
10733 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10734 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10742 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
10746 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
10747 if test -n "$pkg_config_prog_path"; then
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
10749 $as_echo "$pkg_config_prog_path" >&6; }
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10752 $as_echo "no" >&6; }
10757 try_guile_versions
="guile-2.0"
10759 case "${with_guile}" in
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
10762 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
10765 if test "${pkg_config_prog_path}" = "missing"; then
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
10767 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
10770 pkg_config
=${pkg_config_prog_path}
10771 guile_version_list
=${try_guile_versions}
10774 found_usable_guile
=checking
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
10776 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
10777 for guile_version
in ${guile_version_list}; do
10778 ${pkg_config} --exists ${guile_version} 2>/dev
/null
10779 if test $?
!= 0; then
10782 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
10783 if test $?
!= 0; then
10784 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
10786 new_LIBS
=`${pkg_config} --libs ${guile_version}`
10787 if test $?
!= 0; then
10788 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
10790 found_usable_guile
=${guile_version}
10793 if test "${found_usable_guile}" = "checking"; then
10794 if test "${flag_errors}" = "yes"; then
10795 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
10797 found_usable_guile
=no
10800 if test "${found_usable_guile}" != no
; then
10801 save_CPPFLAGS
=$CPPFLAGS
10803 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10804 LIBS
="$LIBS $new_LIBS"
10805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10806 /* end confdefs.h. */
10807 #include "libguile.h"
10816 if ac_fn_c_try_link
"$LINENO"; then :
10818 GUILE_CPPFLAGS
=$new_CPPFLAGS
10819 GUILE_LIBS
=$new_LIBS
10821 found_usable_guile
=no
10823 rm -f core conftest.err conftest.
$ac_objext \
10824 conftest
$ac_exeext conftest.
$ac_ext
10825 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
10826 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
10828 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
10833 CPPFLAGS
=$save_CPPFLAGS
10835 if test "${found_usable_guile}" = no
; then
10836 if test "${flag_errors}" = yes; then
10837 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10839 as_fn_error $?
"linking guile version ${guile_version} test program failed
10840 See \`config.log' for more details" "$LINENO" 5; }
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
10845 $as_echo "${found_usable_guile}" >&6; }
10850 if test "${pkg_config_prog_path}" = "missing"; then
10851 as_fn_error $?
"pkg-config not found" "$LINENO" 5
10854 pkg_config
=${pkg_config_prog_path}
10855 guile_version_list
=${try_guile_versions}
10858 found_usable_guile
=checking
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
10860 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
10861 for guile_version
in ${guile_version_list}; do
10862 ${pkg_config} --exists ${guile_version} 2>/dev
/null
10863 if test $?
!= 0; then
10866 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
10867 if test $?
!= 0; then
10868 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
10870 new_LIBS
=`${pkg_config} --libs ${guile_version}`
10871 if test $?
!= 0; then
10872 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
10874 found_usable_guile
=${guile_version}
10877 if test "${found_usable_guile}" = "checking"; then
10878 if test "${flag_errors}" = "yes"; then
10879 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
10881 found_usable_guile
=no
10884 if test "${found_usable_guile}" != no
; then
10885 save_CPPFLAGS
=$CPPFLAGS
10887 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10888 LIBS
="$LIBS $new_LIBS"
10889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10890 /* end confdefs.h. */
10891 #include "libguile.h"
10900 if ac_fn_c_try_link
"$LINENO"; then :
10902 GUILE_CPPFLAGS
=$new_CPPFLAGS
10903 GUILE_LIBS
=$new_LIBS
10905 found_usable_guile
=no
10907 rm -f core conftest.err conftest.
$ac_objext \
10908 conftest
$ac_exeext conftest.
$ac_ext
10909 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
10910 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
10912 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
10917 CPPFLAGS
=$save_CPPFLAGS
10919 if test "${found_usable_guile}" = no
; then
10920 if test "${flag_errors}" = yes; then
10921 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10923 as_fn_error $?
"linking guile version ${guile_version} test program failed
10924 See \`config.log' for more details" "$LINENO" 5; }
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
10929 $as_echo "${found_usable_guile}" >&6; }
10933 if test -x "${with_guile}"; then
10935 pkg_config
=${with_guile}
10936 guile_version_list
=${try_guile_versions}
10939 found_usable_guile
=checking
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
10941 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
10942 for guile_version
in ${guile_version_list}; do
10943 ${pkg_config} --exists ${guile_version} 2>/dev
/null
10944 if test $?
!= 0; then
10947 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
10948 if test $?
!= 0; then
10949 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
10951 new_LIBS
=`${pkg_config} --libs ${guile_version}`
10952 if test $?
!= 0; then
10953 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
10955 found_usable_guile
=${guile_version}
10958 if test "${found_usable_guile}" = "checking"; then
10959 if test "${flag_errors}" = "yes"; then
10960 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
10962 found_usable_guile
=no
10965 if test "${found_usable_guile}" != no
; then
10966 save_CPPFLAGS
=$CPPFLAGS
10968 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10969 LIBS
="$LIBS $new_LIBS"
10970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10971 /* end confdefs.h. */
10972 #include "libguile.h"
10981 if ac_fn_c_try_link
"$LINENO"; then :
10983 GUILE_CPPFLAGS
=$new_CPPFLAGS
10984 GUILE_LIBS
=$new_LIBS
10986 found_usable_guile
=no
10988 rm -f core conftest.err conftest.
$ac_objext \
10989 conftest
$ac_exeext conftest.
$ac_ext
10990 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
10991 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
10993 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
10998 CPPFLAGS
=$save_CPPFLAGS
11000 if test "${found_usable_guile}" = no
; then
11001 if test "${flag_errors}" = yes; then
11002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11004 as_fn_error $?
"linking guile version ${guile_version} test program failed
11005 See \`config.log' for more details" "$LINENO" 5; }
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11010 $as_echo "${found_usable_guile}" >&6; }
11013 as_fn_error $?
"Guile config program not executable: ${with_guile}" "$LINENO" 5
11017 # Disallow --with=guile="" and --with-guile=foo/bar.
11018 as_fn_error $?
"invalid value for --with-guile" "$LINENO" 5
11021 # A space separate list of guile versions to try, in order.
11022 if test "${pkg_config_prog_path}" = "missing"; then
11023 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11026 pkg_config
=${pkg_config_prog_path}
11027 guile_version_list
=${with_guile}
11030 found_usable_guile
=checking
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11032 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11033 for guile_version
in ${guile_version_list}; do
11034 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11035 if test $?
!= 0; then
11038 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11039 if test $?
!= 0; then
11040 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11042 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11043 if test $?
!= 0; then
11044 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11046 found_usable_guile
=${guile_version}
11049 if test "${found_usable_guile}" = "checking"; then
11050 if test "${flag_errors}" = "yes"; then
11051 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11053 found_usable_guile
=no
11056 if test "${found_usable_guile}" != no
; then
11057 save_CPPFLAGS
=$CPPFLAGS
11059 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11060 LIBS
="$LIBS $new_LIBS"
11061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11062 /* end confdefs.h. */
11063 #include "libguile.h"
11072 if ac_fn_c_try_link
"$LINENO"; then :
11074 GUILE_CPPFLAGS
=$new_CPPFLAGS
11075 GUILE_LIBS
=$new_LIBS
11077 found_usable_guile
=no
11079 rm -f core conftest.err conftest.
$ac_objext \
11080 conftest
$ac_exeext conftest.
$ac_ext
11081 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11082 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11084 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11089 CPPFLAGS
=$save_CPPFLAGS
11091 if test "${found_usable_guile}" = no
; then
11092 if test "${flag_errors}" = yes; then
11093 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11095 as_fn_error $?
"linking guile version ${guile_version} test program failed
11096 See \`config.log' for more details" "$LINENO" 5; }
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11101 $as_echo "${found_usable_guile}" >&6; }
11106 if test "${have_libguile}" != no
; then
11107 case "${with_guile}" in
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11111 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11112 if ${ac_cv_guild_program_name+:} false
; then :
11113 $as_echo_n "(cached) " >&6
11115 ac_cv_guild_program_name
="`"${with_guile}" --variable guild "${guile_version}"`"
11117 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11118 # the 'guild' and 'bindir' variables. In that case, try to guess
11119 # what the program name is, at the risk of getting it wrong if
11120 # Guile was configured with '--program-suffix' or similar.
11121 if test "x$ac_cv_guild_program_name" = "x"; then
11122 guile_exec_prefix
="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
11123 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11128 $as_echo "$ac_cv_guild_program_name" >&6; }
11130 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11131 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11134 GUILD
="$ac_cv_guild_program_name"
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11141 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11142 if ${ac_cv_guild_program_name+:} false
; then :
11143 $as_echo_n "(cached) " >&6
11145 ac_cv_guild_program_name
="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
11147 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11148 # the 'guild' and 'bindir' variables. In that case, try to guess
11149 # what the program name is, at the risk of getting it wrong if
11150 # Guile was configured with '--program-suffix' or similar.
11151 if test "x$ac_cv_guild_program_name" = "x"; then
11152 guile_exec_prefix
="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
11153 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11158 $as_echo "$ac_cv_guild_program_name" >&6; }
11160 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11161 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11164 GUILD
="$ac_cv_guild_program_name"
11171 if test "$cross_compiling" = no
; then
11174 GUILD_TARGET_FLAG
="--target=$host"
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
11181 $as_echo_n "checking whether guild supports this host... " >&6; }
11182 if ${ac_cv_guild_ok+:} false
; then :
11183 $as_echo_n "(cached) " >&6
11185 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
11186 if "$ac_cv_guild_program_name" compile
$GUILD_TARGET_FLAG -o conftest.go
"$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
11193 $as_echo "$ac_cv_guild_ok" >&6; }
11195 if test "$ac_cv_guild_ok" = no
; then
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
11198 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
11202 if test "${have_libguile}" != no
; then
11204 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
11206 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
11207 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
11208 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
11209 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
11210 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
11213 save_CPPFLAGS
="$CPPFLAGS"
11215 CPPFLAGS
="$GUILE_CPPFLAGS"
11216 for ac_func
in scm_new_smob
11218 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
11219 if test "x$ac_cv_func_scm_new_smob" = xyes
; then :
11220 cat >>confdefs.h
<<_ACEOF
11221 #define HAVE_SCM_NEW_SMOB 1
11228 CPPFLAGS
="$save_CPPFLAGS"
11230 # Even if Guile support is not compiled in, we need to have these files
11232 CONFIG_OBS
="$CONFIG_OBS guile/guile.o"
11233 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
11237 if test "${have_libguile}" != no
; then
11239 HAVE_GUILE_FALSE
='#'
11241 HAVE_GUILE_TRUE
='#'
11246 # ---------------------------- #
11247 # Check for source highlight. #
11248 # ---------------------------- #
11253 # Check whether --enable-source-highlight was given.
11254 if test "${enable_source_highlight+set}" = set; then :
11255 enableval
=$enable_source_highlight; case "${enableval}" in
11256 yes) enable_source_highlight
=yes ;;
11257 no
) enable_source_highlight
=no
;;
11258 *) as_fn_error $?
"bad value ${enableval} for source-highlight option" "$LINENO" 5 ;;
11261 enable_source_highlight
=auto
11265 if test "${enable_source_highlight}" != "no"; then
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the source-highlight library" >&5
11267 $as_echo_n "checking for the source-highlight library... " >&6; }
11268 if test "${pkg_config_prog_path}" = "missing"; then
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - pkg-config not found" >&5
11270 $as_echo "no - pkg-config not found" >&6; }
11271 if test "${enable_source_highlight}" = "yes"; then
11272 as_fn_error $?
"pkg-config was not found in your system" "$LINENO" 5
11277 as_fn_error $?
"source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5
11281 if ${pkg_config_prog_path} --exists source-highlight
; then
11282 SRCHIGH_CFLAGS
=`${pkg_config_prog_path} --cflags source-highlight`
11283 SRCHIGH_LIBS
=`${pkg_config_prog_path} --libs source-highlight`
11285 $as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11288 $as_echo "yes" >&6; }
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11291 $as_echo "no" >&6; }
11292 if test "${enable_source_highlight}" = "yes"; then
11293 as_fn_error $?
"source-highlight was not found in your system" "$LINENO" 5
11302 # Check whether --with-intel_pt was given.
11303 if test "${with_intel_pt+set}" = set; then :
11304 withval
=$with_intel_pt;
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
11310 $as_echo_n "checking whether to use intel pt... " >&6; }
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
11312 $as_echo "$with_intel_pt" >&6; }
11314 if test "${with_intel_pt}" = no
; then
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
11316 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
11319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11320 /* end confdefs.h. */
11322 #include <linux/perf_event.h>
11323 #ifndef PERF_ATTR_SIZE_VER5
11328 if ac_fn_c_try_cpp
"$LINENO"; then :
11333 rm -f conftest.err conftest.i conftest.
$ac_ext
11334 if test "$perf_event" != yes; then
11335 if test "$with_intel_pt" = yes; then
11336 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
11339 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
11353 acl_save_prefix
="$prefix"
11354 prefix
="$acl_final_prefix"
11355 acl_save_exec_prefix
="$exec_prefix"
11356 exec_prefix
="$acl_final_exec_prefix"
11358 eval additional_includedir
=\"$includedir\"
11359 eval additional_libdir
=\"$libdir\"
11361 exec_prefix
="$acl_save_exec_prefix"
11362 prefix
="$acl_save_prefix"
11365 # Check whether --with-libipt-prefix was given.
11366 if test "${with_libipt_prefix+set}" = set; then :
11367 withval
=$with_libipt_prefix;
11368 if test "X$withval" = "Xno"; then
11371 if test "X$withval" = "X"; then
11373 acl_save_prefix
="$prefix"
11374 prefix
="$acl_final_prefix"
11375 acl_save_exec_prefix
="$exec_prefix"
11376 exec_prefix
="$acl_final_exec_prefix"
11378 eval additional_includedir
=\"$includedir\"
11379 eval additional_libdir
=\"$libdir\"
11381 exec_prefix
="$acl_save_exec_prefix"
11382 prefix
="$acl_save_prefix"
11385 additional_includedir
="$withval/include"
11386 additional_libdir
="$withval/lib"
11397 names_already_handled
=
11398 names_next_round
='ipt '
11399 while test -n "$names_next_round"; do
11400 names_this_round
="$names_next_round"
11402 for name
in $names_this_round; do
11404 for n
in $names_already_handled; do
11405 if test "$n" = "$name"; then
11406 already_handled
=yes
11410 if test -z "$already_handled"; then
11411 names_already_handled
="$names_already_handled $name"
11412 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11413 eval value
=\"\
$HAVE_LIB$uppername\"
11414 if test -n "$value"; then
11415 if test "$value" = yes; then
11416 eval value
=\"\
$LIB$uppername\"
11417 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
11418 eval value
=\"\
$LTLIB$uppername\"
11419 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
11428 if test $use_additional = yes; then
11429 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11430 found_dir
="$additional_libdir"
11431 found_so
="$additional_libdir/lib$name.$shlibext"
11432 if test -f "$additional_libdir/lib$name.la"; then
11433 found_la
="$additional_libdir/lib$name.la"
11436 if test -f "$additional_libdir/lib$name.$libext"; then
11437 found_dir
="$additional_libdir"
11438 found_a
="$additional_libdir/lib$name.$libext"
11439 if test -f "$additional_libdir/lib$name.la"; then
11440 found_la
="$additional_libdir/lib$name.la"
11445 if test "X$found_dir" = "X"; then
11446 for x
in $LDFLAGS $LTLIBIPT; do
11448 acl_save_prefix
="$prefix"
11449 prefix
="$acl_final_prefix"
11450 acl_save_exec_prefix
="$exec_prefix"
11451 exec_prefix
="$acl_final_exec_prefix"
11453 exec_prefix
="$acl_save_exec_prefix"
11454 prefix
="$acl_save_prefix"
11458 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11459 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11461 found_so
="$dir/lib$name.$shlibext"
11462 if test -f "$dir/lib$name.la"; then
11463 found_la
="$dir/lib$name.la"
11466 if test -f "$dir/lib$name.$libext"; then
11468 found_a
="$dir/lib$name.$libext"
11469 if test -f "$dir/lib$name.la"; then
11470 found_la
="$dir/lib$name.la"
11476 if test "X$found_dir" != "X"; then
11481 if test "X$found_dir" != "X"; then
11482 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
11483 if test "X$found_so" != "X"; then
11484 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11485 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11488 for x
in $ltrpathdirs; do
11489 if test "X$x" = "X$found_dir"; then
11494 if test -z "$haveit"; then
11495 ltrpathdirs
="$ltrpathdirs $found_dir"
11497 if test "$hardcode_direct" = yes; then
11498 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11500 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11501 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11503 for x
in $rpathdirs; do
11504 if test "X$x" = "X$found_dir"; then
11509 if test -z "$haveit"; then
11510 rpathdirs
="$rpathdirs $found_dir"
11514 for x
in $LDFLAGS $LIBIPT; do
11516 acl_save_prefix
="$prefix"
11517 prefix
="$acl_final_prefix"
11518 acl_save_exec_prefix
="$exec_prefix"
11519 exec_prefix
="$acl_final_exec_prefix"
11521 exec_prefix
="$acl_save_exec_prefix"
11522 prefix
="$acl_save_prefix"
11524 if test "X$x" = "X-L$found_dir"; then
11529 if test -z "$haveit"; then
11530 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
11532 if test "$hardcode_minus_L" != no
; then
11533 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11535 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
11541 if test "X$found_a" != "X"; then
11542 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
11544 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
11547 additional_includedir
=
11548 case "$found_dir" in
11550 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11551 additional_includedir
="$basedir/include"
11554 if test "X$additional_includedir" != "X"; then
11555 if test "X$additional_includedir" != "X/usr/include"; then
11557 if test "X$additional_includedir" = "X/usr/local/include"; then
11558 if test -n "$GCC"; then
11560 linux
*) haveit
=yes;;
11564 if test -z "$haveit"; then
11565 for x
in $CPPFLAGS $INCIPT; do
11567 acl_save_prefix
="$prefix"
11568 prefix
="$acl_final_prefix"
11569 acl_save_exec_prefix
="$exec_prefix"
11570 exec_prefix
="$acl_final_exec_prefix"
11572 exec_prefix
="$acl_save_exec_prefix"
11573 prefix
="$acl_save_prefix"
11575 if test "X$x" = "X-I$additional_includedir"; then
11580 if test -z "$haveit"; then
11581 if test -d "$additional_includedir"; then
11582 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
11588 if test -n "$found_la"; then
11589 save_libdir
="$libdir"
11590 case "$found_la" in
11591 */* |
*\\*) .
"$found_la" ;;
11592 *) .
"./$found_la" ;;
11594 libdir
="$save_libdir"
11595 for dep
in $dependency_libs; do
11598 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11599 if test "X$additional_libdir" != "X/usr/lib"; then
11601 if test "X$additional_libdir" = "X/usr/local/lib"; then
11602 if test -n "$GCC"; then
11604 linux
*) haveit
=yes;;
11608 if test -z "$haveit"; then
11610 for x
in $LDFLAGS $LIBIPT; do
11612 acl_save_prefix
="$prefix"
11613 prefix
="$acl_final_prefix"
11614 acl_save_exec_prefix
="$exec_prefix"
11615 exec_prefix
="$acl_final_exec_prefix"
11617 exec_prefix
="$acl_save_exec_prefix"
11618 prefix
="$acl_save_prefix"
11620 if test "X$x" = "X-L$additional_libdir"; then
11625 if test -z "$haveit"; then
11626 if test -d "$additional_libdir"; then
11627 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
11631 for x
in $LDFLAGS $LTLIBIPT; do
11633 acl_save_prefix
="$prefix"
11634 prefix
="$acl_final_prefix"
11635 acl_save_exec_prefix
="$exec_prefix"
11636 exec_prefix
="$acl_final_exec_prefix"
11638 exec_prefix
="$acl_save_exec_prefix"
11639 prefix
="$acl_save_prefix"
11641 if test "X$x" = "X-L$additional_libdir"; then
11646 if test -z "$haveit"; then
11647 if test -d "$additional_libdir"; then
11648 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
11655 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11656 if test "$enable_rpath" != no
; then
11658 for x
in $rpathdirs; do
11659 if test "X$x" = "X$dir"; then
11664 if test -z "$haveit"; then
11665 rpathdirs
="$rpathdirs $dir"
11668 for x
in $ltrpathdirs; do
11669 if test "X$x" = "X$dir"; then
11674 if test -z "$haveit"; then
11675 ltrpathdirs
="$ltrpathdirs $dir"
11680 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11683 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11686 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
11687 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
11693 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
11694 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
11700 if test "X$rpathdirs" != "X"; then
11701 if test -n "$hardcode_libdir_separator"; then
11703 for found_dir
in $rpathdirs; do
11704 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11706 acl_save_libdir
="$libdir"
11708 eval flag
=\"$hardcode_libdir_flag_spec\"
11709 libdir
="$acl_save_libdir"
11710 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
11712 for found_dir
in $rpathdirs; do
11713 acl_save_libdir
="$libdir"
11714 libdir
="$found_dir"
11715 eval flag
=\"$hardcode_libdir_flag_spec\"
11716 libdir
="$acl_save_libdir"
11717 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
11721 if test "X$ltrpathdirs" != "X"; then
11722 for found_dir
in $ltrpathdirs; do
11723 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
11728 ac_save_CPPFLAGS
="$CPPFLAGS"
11730 for element
in $INCIPT; do
11732 for x
in $CPPFLAGS; do
11734 acl_save_prefix
="$prefix"
11735 prefix
="$acl_final_prefix"
11736 acl_save_exec_prefix
="$exec_prefix"
11737 exec_prefix
="$acl_final_exec_prefix"
11739 exec_prefix
="$acl_save_exec_prefix"
11740 prefix
="$acl_save_prefix"
11742 if test "X$x" = "X$element"; then
11747 if test -z "$haveit"; then
11748 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
11754 $as_echo_n "checking for libipt... " >&6; }
11755 if ${ac_cv_libipt+:} false
; then :
11756 $as_echo_n "(cached) " >&6
11759 ac_save_LIBS
="$LIBS"
11760 LIBS
="$LIBS $LIBIPT"
11761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11762 /* end confdefs.h. */
11763 #include "intel-pt.h"
11767 pt_insn_alloc_decoder (0);
11772 if ac_fn_c_try_link
"$LINENO"; then :
11777 rm -f core conftest.err conftest.
$ac_objext \
11778 conftest
$ac_exeext conftest.
$ac_ext
11779 LIBS
="$ac_save_LIBS"
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
11783 $as_echo "$ac_cv_libipt" >&6; }
11784 if test "$ac_cv_libipt" = yes; then
11787 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
11790 $as_echo_n "checking how to link with libipt... " >&6; }
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
11792 $as_echo "$LIBIPT" >&6; }
11795 CPPFLAGS
="$ac_save_CPPFLAGS"
11805 if test "$HAVE_LIBIPT" != yes; then
11806 if test "$with_intel_pt" = yes; then
11807 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
11810 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
11814 LIBS
="$LIBS $LIBIPT"
11815 for ac_func
in pt_insn_event
11817 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
11818 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
11819 cat >>confdefs.h
<<_ACEOF
11820 #define HAVE_PT_INSN_EVENT 1
11826 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
11828 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
11830 cat >>confdefs.h
<<_ACEOF
11831 #define HAVE_STRUCT_PT_INSN_ENABLED 1
11836 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
11838 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
11840 cat >>confdefs.h
<<_ACEOF
11841 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
11851 # ------------------------- #
11852 # Checks for header files. #
11853 # ------------------------- #
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11856 $as_echo_n "checking for ANSI C header files... " >&6; }
11857 if ${ac_cv_header_stdc+:} false
; then :
11858 $as_echo_n "(cached) " >&6
11860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11861 /* end confdefs.h. */
11862 #include <stdlib.h>
11863 #include <stdarg.h>
11864 #include <string.h>
11875 if ac_fn_c_try_compile
"$LINENO"; then :
11876 ac_cv_header_stdc
=yes
11878 ac_cv_header_stdc
=no
11880 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11882 if test $ac_cv_header_stdc = yes; then
11883 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11885 /* end confdefs.h. */
11886 #include <string.h>
11889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11890 $EGREP "memchr" >/dev
/null
2>&1; then :
11893 ac_cv_header_stdc
=no
11899 if test $ac_cv_header_stdc = yes; then
11900 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11902 /* end confdefs.h. */
11903 #include <stdlib.h>
11906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11907 $EGREP "free" >/dev
/null
2>&1; then :
11910 ac_cv_header_stdc
=no
11916 if test $ac_cv_header_stdc = yes; then
11917 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11918 if test "$cross_compiling" = yes; then :
11921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11922 /* end confdefs.h. */
11924 #include <stdlib.h>
11925 #if ((' ' & 0x0FF) == 0x020)
11926 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11927 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11929 # define ISLOWER(c) \
11930 (('a' <= (c) && (c) <= 'i') \
11931 || ('j' <= (c) && (c) <= 'r') \
11932 || ('s' <= (c) && (c) <= 'z'))
11933 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11936 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11941 for (i = 0; i < 256; i++)
11942 if (XOR (islower (i), ISLOWER (i))
11943 || toupper (i) != TOUPPER (i))
11948 if ac_fn_c_try_run
"$LINENO"; then :
11951 ac_cv_header_stdc
=no
11953 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11954 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11960 $as_echo "$ac_cv_header_stdc" >&6; }
11961 if test $ac_cv_header_stdc = yes; then
11963 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11967 # elf_hp.h is for HP/UX 64-bit shared library support.
11968 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
11969 thread_db.h linux
/elf.h \
11970 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
11971 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
11972 sys
/reg.h sys
/debugreg.h sys
/select.h \
11975 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11976 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11977 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
11978 cat >>confdefs.h
<<_ACEOF
11979 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11986 for ac_header
in sys
/user.h
11988 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
11989 # include <sys/param.h>
11993 if test "x$ac_cv_header_sys_user_h" = xyes
; then :
11994 cat >>confdefs.h
<<_ACEOF
11995 #define HAVE_SYS_USER_H 1
12003 for ac_header
in curses.h cursesX.h ncurses.h ncursesw
/ncurses.h ncurses
/ncurses.h ncurses
/term.h
12005 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12006 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12007 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12008 cat >>confdefs.h
<<_ACEOF
12009 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12016 for ac_header
in term.h
12018 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
12019 # include <curses.h>
12023 if test "x$ac_cv_header_term_h" = xyes
; then :
12024 cat >>confdefs.h
<<_ACEOF
12025 #define HAVE_TERM_H 1
12033 # ------------------------- #
12034 # Checks for declarations. #
12035 # ------------------------- #
12038 # Check for presence and size of long long.
12039 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12040 if test "x$ac_cv_type_long_long" = xyes
; then :
12042 cat >>confdefs.h
<<_ACEOF
12043 #define HAVE_LONG_LONG 1
12046 # The cast to long int works around a bug in the HP C Compiler
12047 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12048 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12049 # This bug is HP SR number 8606223364.
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12051 $as_echo_n "checking size of long long... " >&6; }
12052 if ${ac_cv_sizeof_long_long+:} false
; then :
12053 $as_echo_n "(cached) " >&6
12055 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12058 if test "$ac_cv_type_long_long" = yes; then
12059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12061 as_fn_error
77 "cannot compute sizeof (long long)
12062 See \`config.log' for more details" "$LINENO" 5; }
12064 ac_cv_sizeof_long_long
=0
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12070 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12074 cat >>confdefs.h
<<_ACEOF
12075 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12082 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
12083 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
12084 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
12090 cat >>confdefs.h
<<_ACEOF
12091 #define HAVE_DECL_BASENAME $ac_have_decl
12093 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
12094 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
12100 cat >>confdefs.h
<<_ACEOF
12101 #define HAVE_DECL_FFS $ac_have_decl
12103 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
12104 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
12110 cat >>confdefs.h
<<_ACEOF
12111 #define HAVE_DECL_ASPRINTF $ac_have_decl
12113 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
12114 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
12120 cat >>confdefs.h
<<_ACEOF
12121 #define HAVE_DECL_VASPRINTF $ac_have_decl
12123 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12124 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12130 cat >>confdefs.h
<<_ACEOF
12131 #define HAVE_DECL_SNPRINTF $ac_have_decl
12133 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12134 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
12140 cat >>confdefs.h
<<_ACEOF
12141 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12144 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
12145 if test "x$ac_cv_have_decl_strtol" = xyes
; then :
12151 cat >>confdefs.h
<<_ACEOF
12152 #define HAVE_DECL_STRTOL $ac_have_decl
12154 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
12155 if test "x$ac_cv_have_decl_strtoul" = xyes
; then :
12161 cat >>confdefs.h
<<_ACEOF
12162 #define HAVE_DECL_STRTOUL $ac_have_decl
12164 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
12165 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
12171 cat >>confdefs.h
<<_ACEOF
12172 #define HAVE_DECL_STRTOLL $ac_have_decl
12174 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
12175 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
12181 cat >>confdefs.h
<<_ACEOF
12182 #define HAVE_DECL_STRTOULL $ac_have_decl
12185 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
12186 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
12192 cat >>confdefs.h
<<_ACEOF
12193 #define HAVE_DECL_STRVERSCMP $ac_have_decl
12198 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12199 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12205 cat >>confdefs.h
<<_ACEOF
12206 #define HAVE_DECL_SNPRINTF $ac_have_decl
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12211 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12212 if ${am_cv_val_LC_MESSAGES+:} false
; then :
12213 $as_echo_n "(cached) " >&6
12215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12216 /* end confdefs.h. */
12217 #include <locale.h>
12226 if ac_fn_c_try_link
"$LINENO"; then :
12227 am_cv_val_LC_MESSAGES
=yes
12229 am_cv_val_LC_MESSAGES
=no
12231 rm -f core conftest.err conftest.
$ac_objext \
12232 conftest
$ac_exeext conftest.
$ac_ext
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12235 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12236 if test $am_cv_val_LC_MESSAGES = yes; then
12238 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12243 # ----------------------- #
12244 # Checks for structures. #
12245 # ----------------------- #
12247 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
12248 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
12250 cat >>confdefs.h
<<_ACEOF
12251 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12256 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
12257 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
12259 cat >>confdefs.h
<<_ACEOF
12260 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12267 # ------------------ #
12268 # Checks for types. #
12269 # ------------------ #
12271 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12272 #include <sys/socket.h>
12275 if test "x$ac_cv_type_socklen_t" = xyes
; then :
12277 cat >>confdefs.h
<<_ACEOF
12278 #define HAVE_SOCKLEN_T 1
12285 # ------------------------------------- #
12286 # Checks for compiler characteristics. #
12287 # ------------------------------------- #
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12290 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12291 if ${ac_cv_c_const+:} false
; then :
12292 $as_echo_n "(cached) " >&6
12294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12295 /* end confdefs.h. */
12301 #ifndef __cplusplus
12302 /* Ultrix mips cc rejects this sort of thing. */
12303 typedef int charset[2];
12304 const charset cs = { 0, 0 };
12305 /* SunOS 4.1.1 cc rejects this. */
12306 char const *const *pcpcc;
12308 /* NEC SVR4.0.2 mips cc rejects this. */
12309 struct point {int x, y;};
12310 static struct point const zero = {0,0};
12311 /* AIX XL C 1.02.0.0 rejects this.
12312 It does not let you subtract one const X* pointer from another in
12313 an arm of an if-expression whose if-part is not a constant
12315 const char *g = "string";
12316 pcpcc = &g + (g ? g-g : 0);
12317 /* HPUX 7.0 cc rejects these. */
12319 ppc = (char**) pcpcc;
12320 pcpcc = (char const *const *) ppc;
12321 { /* SCO 3.2v4 cc rejects this sort of thing. */
12324 char const *s = 0 ? (char *) 0 : (char const *) 0;
12329 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12330 int x[] = {25, 17};
12331 const int *foo = &x[0];
12334 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12335 typedef const int *iptr;
12339 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12340 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12341 struct s { int j; const int *ap[3]; } bx;
12342 struct s *b = &bx; b->j = 5;
12344 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12345 const int foo = 10;
12346 if (!foo) return 0;
12348 return !cs[0] && !zero.x;
12355 if ac_fn_c_try_compile
"$LINENO"; then :
12360 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12363 $as_echo "$ac_cv_c_const" >&6; }
12364 if test $ac_cv_c_const = no
; then
12366 $as_echo "#define const /**/" >>confdefs.h
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12371 $as_echo_n "checking for inline... " >&6; }
12372 if ${ac_cv_c_inline+:} false
; then :
12373 $as_echo_n "(cached) " >&6
12376 for ac_kw
in inline __inline__ __inline
; do
12377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12378 /* end confdefs.h. */
12379 #ifndef __cplusplus
12381 static $ac_kw foo_t static_foo () {return 0; }
12382 $ac_kw foo_t foo () {return 0; }
12386 if ac_fn_c_try_compile
"$LINENO"; then :
12387 ac_cv_c_inline
=$ac_kw
12389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12390 test "$ac_cv_c_inline" != no
&& break
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12395 $as_echo "$ac_cv_c_inline" >&6; }
12397 case $ac_cv_c_inline in
12400 case $ac_cv_c_inline in
12402 *) ac_val
=$ac_cv_c_inline;;
12404 cat >>confdefs.h
<<_ACEOF
12405 #ifndef __cplusplus
12406 #define inline $ac_val
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12413 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12414 if ${ac_cv_c_bigendian+:} false
; then :
12415 $as_echo_n "(cached) " >&6
12417 ac_cv_c_bigendian
=unknown
12418 # See if we're dealing with a universal compiler.
12419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12420 /* end confdefs.h. */
12421 #ifndef __APPLE_CC__
12422 not a universal capable compiler
12427 if ac_fn_c_try_compile
"$LINENO"; then :
12429 # Check for potential -arch flags. It is not universal unless
12430 # there are at least two -arch flags with different values.
12433 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12434 if test -n "$ac_prev"; then
12436 i?
86 | x86_64 | ppc | ppc64
)
12437 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
12440 ac_cv_c_bigendian
=universal
12446 elif test "x$ac_word" = "x-arch"; then
12451 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12452 if test $ac_cv_c_bigendian = unknown
; then
12453 # See if sys/param.h defines the BYTE_ORDER macro.
12454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12455 /* end confdefs.h. */
12456 #include <sys/types.h>
12457 #include <sys/param.h>
12462 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12463 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12465 bogus endian macros
12472 if ac_fn_c_try_compile
"$LINENO"; then :
12473 # It does; now see whether it defined to BIG_ENDIAN or not.
12474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12475 /* end confdefs.h. */
12476 #include <sys/types.h>
12477 #include <sys/param.h>
12482 #if BYTE_ORDER != BIG_ENDIAN
12490 if ac_fn_c_try_compile
"$LINENO"; then :
12491 ac_cv_c_bigendian
=yes
12493 ac_cv_c_bigendian
=no
12495 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12497 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12499 if test $ac_cv_c_bigendian = unknown
; then
12500 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12502 /* end confdefs.h. */
12503 #include <limits.h>
12508 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12509 bogus endian macros
12516 if ac_fn_c_try_compile
"$LINENO"; then :
12517 # It does; now see whether it defined to _BIG_ENDIAN or not.
12518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12519 /* end confdefs.h. */
12520 #include <limits.h>
12525 #ifndef _BIG_ENDIAN
12533 if ac_fn_c_try_compile
"$LINENO"; then :
12534 ac_cv_c_bigendian
=yes
12536 ac_cv_c_bigendian
=no
12538 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12540 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12542 if test $ac_cv_c_bigendian = unknown
; then
12543 # Compile a test program.
12544 if test "$cross_compiling" = yes; then :
12545 # Try to guess by grepping values from an object file.
12546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12547 /* end confdefs.h. */
12548 short int ascii_mm[] =
12549 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12550 short int ascii_ii[] =
12551 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12552 int use_ascii (int i) {
12553 return ascii_mm[i] + ascii_ii[i];
12555 short int ebcdic_ii[] =
12556 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12557 short int ebcdic_mm[] =
12558 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12559 int use_ebcdic (int i) {
12560 return ebcdic_mm[i] + ebcdic_ii[i];
12567 return use_ascii (foo) == use_ebcdic (foo);
12572 if ac_fn_c_try_compile
"$LINENO"; then :
12573 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12574 ac_cv_c_bigendian
=yes
12576 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12577 if test "$ac_cv_c_bigendian" = unknown
; then
12578 ac_cv_c_bigendian
=no
12580 # finding both strings is unlikely to happen, but who knows?
12581 ac_cv_c_bigendian
=unknown
12585 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12588 /* end confdefs.h. */
12589 $ac_includes_default
12594 /* Are we little or big endian? From Harbison&Steele. */
12598 char c[sizeof (long int)];
12601 return u.c[sizeof (long int) - 1] == 1;
12607 if ac_fn_c_try_run
"$LINENO"; then :
12608 ac_cv_c_bigendian
=no
12610 ac_cv_c_bigendian
=yes
12612 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12613 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12619 $as_echo "$ac_cv_c_bigendian" >&6; }
12620 case $ac_cv_c_bigendian in #(
12622 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12628 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12632 as_fn_error $?
"unknown endianness
12633 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12637 # ------------------------------ #
12638 # Checks for library functions. #
12639 # ------------------------------ #
12644 for ac_header
in $ac_header_list
12646 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12647 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12649 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12650 cat >>confdefs.h
<<_ACEOF
12651 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12665 for ac_func
in getpagesize
12667 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12668 if test "x$ac_cv_func_getpagesize" = xyes
; then :
12669 cat >>confdefs.h
<<_ACEOF
12670 #define HAVE_GETPAGESIZE 1
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12677 $as_echo_n "checking for working mmap... " >&6; }
12678 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
12679 $as_echo_n "(cached) " >&6
12681 if test "$cross_compiling" = yes; then :
12682 ac_cv_func_mmap_fixed_mapped
=no
12684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12685 /* end confdefs.h. */
12686 $ac_includes_default
12687 /* malloc might have been renamed as rpl_malloc. */
12690 /* Thanks to Mike Haertel and Jim Avera for this test.
12691 Here is a matrix of mmap possibilities:
12692 mmap private not fixed
12693 mmap private fixed at somewhere currently unmapped
12694 mmap private fixed at somewhere already mapped
12695 mmap shared not fixed
12696 mmap shared fixed at somewhere currently unmapped
12697 mmap shared fixed at somewhere already mapped
12698 For private mappings, we should verify that changes cannot be read()
12699 back from the file, nor mmap's back from the file at a different
12700 address. (There have been systems where private was not correctly
12701 implemented like the infamous i386 svr4.0, and systems where the
12702 VM page cache was not coherent with the file system buffer cache
12703 like early versions of FreeBSD and possibly contemporary NetBSD.)
12704 For shared mappings, we should conversely verify that changes get
12705 propagated back to all the places they're supposed to be.
12707 Grep wants private fixed already mapped.
12708 The main things grep needs to know about mmap are:
12709 * does it exist and is it safe to write into the mmap'd area
12710 * how to use it (BSD variants) */
12713 #include <sys/mman.h>
12715 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12719 /* This mess was copied from the GNU getpagesize.h. */
12720 #ifndef HAVE_GETPAGESIZE
12721 # ifdef _SC_PAGESIZE
12722 # define getpagesize() sysconf(_SC_PAGESIZE)
12723 # else /* no _SC_PAGESIZE */
12724 # ifdef HAVE_SYS_PARAM_H
12725 # include <sys/param.h>
12726 # ifdef EXEC_PAGESIZE
12727 # define getpagesize() EXEC_PAGESIZE
12728 # else /* no EXEC_PAGESIZE */
12730 # define getpagesize() NBPG * CLSIZE
12733 # endif /* no CLSIZE */
12734 # else /* no NBPG */
12736 # define getpagesize() NBPC
12737 # else /* no NBPC */
12739 # define getpagesize() PAGESIZE
12740 # endif /* PAGESIZE */
12741 # endif /* no NBPC */
12742 # endif /* no NBPG */
12743 # endif /* no EXEC_PAGESIZE */
12744 # else /* no HAVE_SYS_PARAM_H */
12745 # define getpagesize() 8192 /* punt totally */
12746 # endif /* no HAVE_SYS_PARAM_H */
12747 # endif /* no _SC_PAGESIZE */
12749 #endif /* no HAVE_GETPAGESIZE */
12754 char *data, *data2, *data3;
12755 const char *cdata2;
12759 pagesize = getpagesize ();
12761 /* First, make a file with some known garbage in it. */
12762 data = (char *) malloc (pagesize);
12765 for (i = 0; i < pagesize; ++i)
12766 *(data + i) = rand ();
12768 fd = creat ("conftest.mmap", 0600);
12771 if (write (fd, data, pagesize) != pagesize)
12775 /* Next, check that the tail of a page is zero-filled. File must have
12776 non-zero length, otherwise we risk SIGBUS for entire page. */
12777 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12781 if (write (fd2, cdata2, 1) != 1)
12783 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12784 if (data2 == MAP_FAILED)
12786 for (i = 0; i < pagesize; ++i)
12790 if (munmap (data2, pagesize))
12793 /* Next, try to mmap the file at a fixed address which already has
12794 something else allocated at it. If we can, also make sure that
12795 we see the same garbage. */
12796 fd = open ("conftest.mmap", O_RDWR);
12799 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12800 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12802 for (i = 0; i < pagesize; ++i)
12803 if (*(data + i) != *(data2 + i))
12806 /* Finally, make sure that changes to the mapped area do not
12807 percolate back to the file as seen by read(). (This is a bug on
12808 some variants of i386 svr4.0.) */
12809 for (i = 0; i < pagesize; ++i)
12810 *(data2 + i) = *(data2 + i) + 1;
12811 data3 = (char *) malloc (pagesize);
12814 if (read (fd, data3, pagesize) != pagesize)
12816 for (i = 0; i < pagesize; ++i)
12817 if (*(data + i) != *(data3 + i))
12823 if ac_fn_c_try_run
"$LINENO"; then :
12824 ac_cv_func_mmap_fixed_mapped
=yes
12826 ac_cv_func_mmap_fixed_mapped
=no
12828 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12829 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12834 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12835 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12837 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12840 rm -f conftest.mmap conftest.txt
12842 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12843 if test "x$ac_cv_type_pid_t" = xyes
; then :
12847 cat >>confdefs.h
<<_ACEOF
12853 for ac_header
in vfork.h
12855 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12856 if test "x$ac_cv_header_vfork_h" = xyes
; then :
12857 cat >>confdefs.h
<<_ACEOF
12858 #define HAVE_VFORK_H 1
12865 for ac_func
in fork vfork
12867 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12868 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12869 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12870 cat >>confdefs.h
<<_ACEOF
12871 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12877 if test "x$ac_cv_func_fork" = xyes
; then
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12879 $as_echo_n "checking for working fork... " >&6; }
12880 if ${ac_cv_func_fork_works+:} false
; then :
12881 $as_echo_n "(cached) " >&6
12883 if test "$cross_compiling" = yes; then :
12884 ac_cv_func_fork_works
=cross
12886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12887 /* end confdefs.h. */
12888 $ac_includes_default
12893 /* By Ruediger Kuhlmann. */
12894 return fork () < 0;
12900 if ac_fn_c_try_run
"$LINENO"; then :
12901 ac_cv_func_fork_works
=yes
12903 ac_cv_func_fork_works
=no
12905 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12906 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12911 $as_echo "$ac_cv_func_fork_works" >&6; }
12914 ac_cv_func_fork_works
=$ac_cv_func_fork
12916 if test "x$ac_cv_func_fork_works" = xcross
; then
12918 *-*-amigaos* |
*-*-msdosdjgpp*)
12919 # Override, as these systems have only a dummy fork() stub
12920 ac_cv_func_fork_works
=no
12923 ac_cv_func_fork_works
=yes
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12927 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12929 ac_cv_func_vfork_works
=$ac_cv_func_vfork
12930 if test "x$ac_cv_func_vfork" = xyes
; then
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12932 $as_echo_n "checking for working vfork... " >&6; }
12933 if ${ac_cv_func_vfork_works+:} false
; then :
12934 $as_echo_n "(cached) " >&6
12936 if test "$cross_compiling" = yes; then :
12937 ac_cv_func_vfork_works
=cross
12939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12940 /* end confdefs.h. */
12941 /* Thanks to Paul Eggert for this test. */
12942 $ac_includes_default
12943 #include <sys/wait.h>
12944 #ifdef HAVE_VFORK_H
12945 # include <vfork.h>
12947 /* On some sparc systems, changes by the child to local and incoming
12948 argument registers are propagated back to the parent. The compiler
12949 is told about this with #include <vfork.h>, but some compilers
12950 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12951 static variable whose address is put into a register that is
12952 clobbered by the vfork. */
12955 sparc_address_test (int arg)
12957 sparc_address_test (arg) int arg;
12960 static pid_t child;
12978 pid_t parent = getpid ();
12981 sparc_address_test (0);
12986 /* Here is another test for sparc vfork register problems. This
12987 test uses lots of local variables, at least as many local
12988 variables as main has allocated so far including compiler
12989 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12990 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12991 reuse the register of parent for one of the local variables,
12992 since it will think that parent can't possibly be used any more
12993 in this routine. Assigning to the local variable will thus
12994 munge parent in the parent process. */
12996 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12997 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12998 /* Convince the compiler that p..p7 are live; otherwise, it might
12999 use the same hardware register for all 8 local variables. */
13000 if (p != p1 || p != p2 || p != p3 || p != p4
13001 || p != p5 || p != p6 || p != p7)
13004 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13005 from child file descriptors. If the child closes a descriptor
13006 before it execs or exits, this munges the parent's descriptor
13007 as well. Test for this by closing stdout in the child. */
13008 _exit(close(fileno(stdout)) != 0);
13013 while (wait(&status) != child)
13016 /* Was there some problem with vforking? */
13019 /* Did the child fail? (This shouldn't happen.) */
13022 /* Did the vfork/compiler bug occur? */
13023 || parent != getpid()
13025 /* Did the file descriptor bug occur? */
13026 || fstat(fileno(stdout), &st) != 0
13031 if ac_fn_c_try_run
"$LINENO"; then :
13032 ac_cv_func_vfork_works
=yes
13034 ac_cv_func_vfork_works
=no
13036 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13037 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13042 $as_echo "$ac_cv_func_vfork_works" >&6; }
13045 if test "x$ac_cv_func_fork_works" = xcross
; then
13046 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13048 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13051 if test "x$ac_cv_func_vfork_works" = xyes
; then
13053 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13057 $as_echo "#define vfork fork" >>confdefs.h
13060 if test "x$ac_cv_func_fork_works" = xyes
; then
13062 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13066 for ac_func
in getauxval getrusage getuid getgid \
13067 pipe poll pread pread64 pwrite resize_term \
13068 sbrk getpgid setpgid setpgrp setsid \
13069 sigaction sigsetmask socketpair \
13070 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
13071 setrlimit getrlimit posix_madvise waitpid \
13072 ptrace64 sigaltstack setns use_default_colors
13074 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13075 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13076 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13077 cat >>confdefs.h
<<_ACEOF
13078 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13086 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13087 if ${am_cv_langinfo_codeset+:} false
; then :
13088 $as_echo_n "(cached) " >&6
13090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13091 /* end confdefs.h. */
13092 #include <langinfo.h>
13096 char* cs = nl_langinfo(CODESET);
13101 if ac_fn_c_try_link
"$LINENO"; then :
13102 am_cv_langinfo_codeset
=yes
13104 am_cv_langinfo_codeset
=no
13106 rm -f core conftest.err conftest.
$ac_objext \
13107 conftest
$ac_exeext conftest.
$ac_ext
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13111 $as_echo "$am_cv_langinfo_codeset" >&6; }
13112 if test $am_cv_langinfo_codeset = yes; then
13114 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13118 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13119 if test "x$ac_cv_type_size_t" = xyes
; then :
13123 cat >>confdefs.h
<<_ACEOF
13124 #define size_t unsigned int
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13131 $as_echo_n "checking for ANSI C header files... " >&6; }
13132 if ${ac_cv_header_stdc+:} false
; then :
13133 $as_echo_n "(cached) " >&6
13135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13136 /* end confdefs.h. */
13137 #include <stdlib.h>
13138 #include <stdarg.h>
13139 #include <string.h>
13150 if ac_fn_c_try_compile
"$LINENO"; then :
13151 ac_cv_header_stdc
=yes
13153 ac_cv_header_stdc
=no
13155 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13157 if test $ac_cv_header_stdc = yes; then
13158 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13160 /* end confdefs.h. */
13161 #include <string.h>
13164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13165 $EGREP "memchr" >/dev
/null
2>&1; then :
13168 ac_cv_header_stdc
=no
13174 if test $ac_cv_header_stdc = yes; then
13175 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13177 /* end confdefs.h. */
13178 #include <stdlib.h>
13181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13182 $EGREP "free" >/dev
/null
2>&1; then :
13185 ac_cv_header_stdc
=no
13191 if test $ac_cv_header_stdc = yes; then
13192 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13193 if test "$cross_compiling" = yes; then :
13196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13197 /* end confdefs.h. */
13199 #include <stdlib.h>
13200 #if ((' ' & 0x0FF) == 0x020)
13201 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13202 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13204 # define ISLOWER(c) \
13205 (('a' <= (c) && (c) <= 'i') \
13206 || ('j' <= (c) && (c) <= 'r') \
13207 || ('s' <= (c) && (c) <= 'z'))
13208 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13211 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13216 for (i = 0; i < 256; i++)
13217 if (XOR (islower (i), ISLOWER (i))
13218 || toupper (i) != TOUPPER (i))
13223 if ac_fn_c_try_run
"$LINENO"; then :
13226 ac_cv_header_stdc
=no
13228 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13229 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13235 $as_echo "$ac_cv_header_stdc" >&6; }
13236 if test $ac_cv_header_stdc = yes; then
13238 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13242 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13243 # for constant arguments. Useless!
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13245 $as_echo_n "checking for working alloca.h... " >&6; }
13246 if ${ac_cv_working_alloca_h+:} false
; then :
13247 $as_echo_n "(cached) " >&6
13249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13250 /* end confdefs.h. */
13251 #include <alloca.h>
13255 char *p = (char *) alloca (2 * sizeof (int));
13261 if ac_fn_c_try_link
"$LINENO"; then :
13262 ac_cv_working_alloca_h
=yes
13264 ac_cv_working_alloca_h
=no
13266 rm -f core conftest.err conftest.
$ac_objext \
13267 conftest
$ac_exeext conftest.
$ac_ext
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13270 $as_echo "$ac_cv_working_alloca_h" >&6; }
13271 if test $ac_cv_working_alloca_h = yes; then
13273 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13278 $as_echo_n "checking for alloca... " >&6; }
13279 if ${ac_cv_func_alloca_works+:} false
; then :
13280 $as_echo_n "(cached) " >&6
13282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13283 /* end confdefs.h. */
13285 # define alloca __builtin_alloca
13288 # include <malloc.h>
13289 # define alloca _alloca
13291 # ifdef HAVE_ALLOCA_H
13292 # include <alloca.h>
13297 # ifndef alloca /* predefined by HP cc +Olibcalls */
13298 void *alloca (size_t);
13308 char *p = (char *) alloca (1);
13314 if ac_fn_c_try_link
"$LINENO"; then :
13315 ac_cv_func_alloca_works
=yes
13317 ac_cv_func_alloca_works
=no
13319 rm -f core conftest.err conftest.
$ac_objext \
13320 conftest
$ac_exeext conftest.
$ac_ext
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13323 $as_echo "$ac_cv_func_alloca_works" >&6; }
13325 if test $ac_cv_func_alloca_works = yes; then
13327 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13330 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13331 # that cause trouble. Some versions do not even contain alloca or
13332 # contain a buggy version. If you still want to use their alloca,
13333 # use ar to extract alloca.o from them instead of compiling alloca.c.
13335 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
13337 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13341 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13342 if ${ac_cv_os_cray+:} false
; then :
13343 $as_echo_n "(cached) " >&6
13345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13346 /* end confdefs.h. */
13347 #if defined CRAY && ! defined CRAY2
13354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13355 $EGREP "webecray" >/dev
/null
2>&1; then :
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13364 $as_echo "$ac_cv_os_cray" >&6; }
13365 if test $ac_cv_os_cray = yes; then
13366 for ac_func
in _getb67 GETB67 getb67
; do
13367 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13368 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13369 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13371 cat >>confdefs.h
<<_ACEOF
13372 #define CRAY_STACKSEG_END $ac_func
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13382 $as_echo_n "checking stack direction for C alloca... " >&6; }
13383 if ${ac_cv_c_stack_direction+:} false
; then :
13384 $as_echo_n "(cached) " >&6
13386 if test "$cross_compiling" = yes; then :
13387 ac_cv_c_stack_direction
=0
13389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13390 /* end confdefs.h. */
13391 $ac_includes_default
13393 find_stack_direction (int *addr, int depth)
13395 int dir, dummy = 0;
13398 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13399 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13400 return dir + dummy;
13404 main (int argc, char **argv)
13406 return find_stack_direction (0, argc + !argv + 20) < 0;
13409 if ac_fn_c_try_run
"$LINENO"; then :
13410 ac_cv_c_stack_direction
=1
13412 ac_cv_c_stack_direction
=-1
13414 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13415 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13420 $as_echo "$ac_cv_c_stack_direction" >&6; }
13421 cat >>confdefs.h
<<_ACEOF
13422 #define STACK_DIRECTION $ac_cv_c_stack_direction
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13431 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13432 if ${am_cv_langinfo_codeset+:} false
; then :
13433 $as_echo_n "(cached) " >&6
13435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13436 /* end confdefs.h. */
13437 #include <langinfo.h>
13441 char* cs = nl_langinfo(CODESET);
13446 if ac_fn_c_try_link
"$LINENO"; then :
13447 am_cv_langinfo_codeset
=yes
13449 am_cv_langinfo_codeset
=no
13451 rm -f core conftest.err conftest.
$ac_objext \
13452 conftest
$ac_exeext conftest.
$ac_ext
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13456 $as_echo "$am_cv_langinfo_codeset" >&6; }
13457 if test $am_cv_langinfo_codeset = yes; then
13459 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13464 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
13466 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13467 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13468 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13469 cat >>confdefs.h
<<_ACEOF
13470 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13478 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair sigaction \
13481 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13482 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13483 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13484 cat >>confdefs.h
<<_ACEOF
13485 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13492 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
13493 if test "x$ac_cv_have_decl_strerror" = xyes
; then :
13499 cat >>confdefs.h
<<_ACEOF
13500 #define HAVE_DECL_STRERROR $ac_have_decl
13502 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13503 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
13509 cat >>confdefs.h
<<_ACEOF
13510 #define HAVE_DECL_STRSTR $ac_have_decl
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
13515 $as_echo_n "checking for sigsetjmp... " >&6; }
13516 if ${gdb_cv_func_sigsetjmp+:} false
; then :
13517 $as_echo_n "(cached) " >&6
13519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13520 /* end confdefs.h. */
13522 #include <setjmp.h>
13527 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
13532 if ac_fn_c_try_compile
"$LINENO"; then :
13533 gdb_cv_func_sigsetjmp
=yes
13535 gdb_cv_func_sigsetjmp
=no
13537 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
13540 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
13541 if test $gdb_cv_func_sigsetjmp = yes; then
13543 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
13548 # Check the return and argument types of ptrace.
13551 for ac_header
in sys
/ptrace.h ptrace.h
13553 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13554 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13555 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13556 cat >>confdefs.h
<<_ACEOF
13557 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13565 gdb_ptrace_headers
='
13566 #include <sys/types.h>
13567 #if HAVE_SYS_PTRACE_H
13568 # include <sys/ptrace.h>
13571 # include <unistd.h>
13574 # There is no point in checking if we don't have a prototype.
13575 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
13577 if test "x$ac_cv_have_decl_ptrace" = xyes
; then :
13583 cat >>confdefs.h
<<_ACEOF
13584 #define HAVE_DECL_PTRACE $ac_have_decl
13586 if test $ac_have_decl = 1; then :
13590 : ${gdb_cv_func_ptrace_ret='int'}
13591 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13595 # Check return type. Varargs (used on GNU/Linux) conflict with the
13596 # empty argument list, so check for that explicitly.
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
13598 $as_echo_n "checking return type of ptrace... " >&6; }
13599 if ${gdb_cv_func_ptrace_ret+:} false
; then :
13600 $as_echo_n "(cached) " >&6
13602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13603 /* end confdefs.h. */
13604 $gdb_ptrace_headers
13608 extern long ptrace (enum __ptrace_request, ...);
13613 if ac_fn_c_try_compile
"$LINENO"; then :
13614 gdb_cv_func_ptrace_ret
='long'
13616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13617 /* end confdefs.h. */
13618 $gdb_ptrace_headers
13622 extern int ptrace ();
13627 if ac_fn_c_try_compile
"$LINENO"; then :
13628 gdb_cv_func_ptrace_ret
='int'
13630 gdb_cv_func_ptrace_ret
='long'
13632 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13634 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
13637 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
13639 cat >>confdefs.h
<<_ACEOF
13640 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
13643 # Check argument types.
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
13645 $as_echo_n "checking types of arguments for ptrace... " >&6; }
13646 if ${gdb_cv_func_ptrace_args+:} false
; then :
13647 $as_echo_n "(cached) " >&6
13650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13651 /* end confdefs.h. */
13652 $gdb_ptrace_headers
13656 extern long ptrace (enum __ptrace_request, ...);
13661 if ac_fn_c_try_compile
"$LINENO"; then :
13662 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
13665 for gdb_arg1
in 'int' 'long'; do
13666 for gdb_arg2
in 'pid_t' 'int' 'long'; do
13667 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
13668 for gdb_arg4
in 'int' 'long' 'void *'; do
13669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13670 /* end confdefs.h. */
13671 $gdb_ptrace_headers
13676 extern $gdb_cv_func_ptrace_ret
13677 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
13683 if ac_fn_c_try_compile
"$LINENO"; then :
13684 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
13687 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13688 for gdb_arg5
in 'int *' 'int' 'long'; do
13689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13690 /* end confdefs.h. */
13691 $gdb_ptrace_headers
13696 extern $gdb_cv_func_ptrace_ret
13697 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
13703 if ac_fn_c_try_compile
"$LINENO"; then :
13705 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
13708 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13714 # Provide a safe default value.
13715 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13718 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
13721 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
13722 ac_save_IFS
=$IFS; IFS
=','
13723 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
13727 cat >>confdefs.h
<<_ACEOF
13728 #define PTRACE_TYPE_ARG1 $1
13732 cat >>confdefs.h
<<_ACEOF
13733 #define PTRACE_TYPE_ARG3 $3
13737 cat >>confdefs.h
<<_ACEOF
13738 #define PTRACE_TYPE_ARG4 $4
13741 if test -n "$5"; then
13743 cat >>confdefs.h
<<_ACEOF
13744 #define PTRACE_TYPE_ARG5 $5
13750 if test "$cross_compiling" = no
; then
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
13752 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
13753 if ${ac_cv_func_setpgrp_void+:} false
; then :
13754 $as_echo_n "(cached) " >&6
13756 if test "$cross_compiling" = yes; then :
13757 as_fn_error $?
"cannot check setpgrp when cross compiling" "$LINENO" 5
13759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13760 /* end confdefs.h. */
13761 $ac_includes_default
13765 /* If this system has a BSD-style setpgrp which takes arguments,
13766 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
13767 exit successfully. */
13768 return setpgrp (1,1) != -1;
13773 if ac_fn_c_try_run
"$LINENO"; then :
13774 ac_cv_func_setpgrp_void
=no
13776 ac_cv_func_setpgrp_void
=yes
13778 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13779 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
13784 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
13785 if test $ac_cv_func_setpgrp_void = yes; then
13787 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
13793 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
13794 if ${ac_cv_func_setpgrp_void+:} false
; then :
13795 $as_echo_n "(cached) " >&6
13797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13798 /* end confdefs.h. */
13800 #include <unistd.h>
13806 if (setpgrp(1,1) == -1)
13815 if ac_fn_c_try_compile
"$LINENO"; then :
13816 ac_cv_func_setpgrp_void
=no
13818 ac_cv_func_setpgrp_void
=yes
13820 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
13823 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
13824 if test $ac_cv_func_setpgrp_void = yes; then
13825 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
13830 # Assume we'll default to using the included libiberty regex.
13831 gdb_use_included_regex
=yes
13833 # However, if the system regex is GNU regex, then default to *not*
13834 # using the included regex.
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
13836 $as_echo_n "checking for GNU regex... " >&6; }
13837 if ${gdb_cv_have_gnu_regex+:} false
; then :
13838 $as_echo_n "(cached) " >&6
13840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13841 /* end confdefs.h. */
13842 #include <gnu-versions.h>
13846 #define REGEX_INTERFACE_VERSION 1
13847 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
13848 # error "Version mismatch"
13854 if ac_fn_c_try_compile
"$LINENO"; then :
13855 gdb_cv_have_gnu_regex
=yes
13857 gdb_cv_have_gnu_regex
=no
13859 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
13862 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
13863 if test $gdb_cv_have_gnu_regex = yes; then
13864 gdb_use_included_regex
=no
13868 # Check whether --with-included-regex was given.
13869 if test "${with_included_regex+set}" = set; then :
13870 withval
=$with_included_regex; gdb_with_regex
=$withval
13872 gdb_with_regex
=$gdb_use_included_regex
13875 if test "$gdb_with_regex" = yes; then
13877 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
13881 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
13882 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
13883 #include <sys/proc.h>
13886 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes
; then :
13888 cat >>confdefs.h
<<_ACEOF
13889 #define HAVE_STRUCT_THREAD_TD_PCB 1
13896 # See if <sys/lwp.h> defines `struct lwp`.
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
13898 $as_echo_n "checking for struct lwp... " >&6; }
13899 if ${gdb_cv_struct_lwp+:} false
; then :
13900 $as_echo_n "(cached) " >&6
13902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13903 /* end confdefs.h. */
13904 #include <sys/param.h>
13906 #include <sys/lwp.h>
13915 if ac_fn_c_try_compile
"$LINENO"; then :
13916 gdb_cv_struct_lwp
=yes
13918 gdb_cv_struct_lwp
=no
13920 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
13923 $as_echo "$gdb_cv_struct_lwp" >&6; }
13924 if test $gdb_cv_struct_lwp = yes; then
13926 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
13930 # See if <machine/reg.h> degines `struct reg'.
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
13932 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
13933 if ${gdb_cv_struct_reg+:} false
; then :
13934 $as_echo_n "(cached) " >&6
13936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13937 /* end confdefs.h. */
13938 #include <sys/types.h>
13939 #include <machine/reg.h>
13948 if ac_fn_c_try_compile
"$LINENO"; then :
13949 gdb_cv_struct_reg
=yes
13951 gdb_cv_struct_reg
=no
13953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
13956 $as_echo "$gdb_cv_struct_reg" >&6; }
13957 if test $gdb_cv_struct_reg = yes; then
13959 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
13963 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
13964 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
13965 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
13966 #include <machine/reg.h>
13968 if test "x$ac_cv_member_struct_reg_r_fs" = xyes
; then :
13970 cat >>confdefs.h
<<_ACEOF
13971 #define HAVE_STRUCT_REG_R_FS 1
13976 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
13977 #include <machine/reg.h>
13979 if test "x$ac_cv_member_struct_reg_r_gs" = xyes
; then :
13981 cat >>confdefs.h
<<_ACEOF
13982 #define HAVE_STRUCT_REG_R_GS 1
13989 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
13990 # Older amd64 Linux's don't have the fs_base and gs_base members of
13991 # `struct user_regs_struct'.
13992 ac_fn_c_check_member
"$LINENO" "struct user_regs_struct" "fs_base" "ac_cv_member_struct_user_regs_struct_fs_base" "#include <sys/types.h>
13993 #include <sys/user.h>
13995 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = xyes
; then :
13997 cat >>confdefs.h
<<_ACEOF
13998 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
14003 ac_fn_c_check_member
"$LINENO" "struct user_regs_struct" "gs_base" "ac_cv_member_struct_user_regs_struct_gs_base" "#include <sys/types.h>
14004 #include <sys/user.h>
14006 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = xyes
; then :
14008 cat >>confdefs.h
<<_ACEOF
14009 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
14016 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
14018 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
14019 if ${gdb_cv_have_ptrace_getregs+:} false
; then :
14020 $as_echo_n "(cached) " >&6
14022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14023 /* end confdefs.h. */
14024 #include <sys/ptrace.h>
14033 if ac_fn_c_try_compile
"$LINENO"; then :
14034 gdb_cv_have_ptrace_getregs
=yes
14036 gdb_cv_have_ptrace_getregs
=no
14038 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
14042 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
14043 if test $gdb_cv_have_ptrace_getregs = yes; then
14045 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
14049 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
14051 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
14052 if ${gdb_cv_have_ptrace_getfpxregs+:} false
; then :
14053 $as_echo_n "(cached) " >&6
14055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14056 /* end confdefs.h. */
14057 #include <sys/ptrace.h>
14066 if ac_fn_c_try_compile
"$LINENO"; then :
14067 gdb_cv_have_ptrace_getfpxregs
=yes
14069 gdb_cv_have_ptrace_getfpxregs
=no
14071 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
14075 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
14076 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
14078 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
14082 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
14084 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
14085 if ${gdb_cv_have_pt_getdbregs+:} false
; then :
14086 $as_echo_n "(cached) " >&6
14088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14089 /* end confdefs.h. */
14090 #include <sys/types.h>
14091 #include <sys/ptrace.h>
14100 if ac_fn_c_try_compile
"$LINENO"; then :
14101 gdb_cv_have_pt_getdbregs
=yes
14103 gdb_cv_have_pt_getdbregs
=no
14105 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
14109 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
14110 if test $gdb_cv_have_pt_getdbregs = yes; then
14112 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
14116 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
14118 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
14119 if ${gdb_cv_have_pt_getxmmregs+:} false
; then :
14120 $as_echo_n "(cached) " >&6
14122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14123 /* end confdefs.h. */
14124 #include <sys/types.h>
14125 #include <sys/ptrace.h>
14134 if ac_fn_c_try_compile
"$LINENO"; then :
14135 gdb_cv_have_pt_getxmmregs
=yes
14137 gdb_cv_have_pt_getxmmregs
=no
14139 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
14143 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
14144 if test $gdb_cv_have_pt_getxmmregs = yes; then
14146 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
14150 # See if <sys/ptrace.h> supports LWP names on FreeBSD
14151 # Older FreeBSD versions don't have the pl_tdname member of
14152 # `struct ptrace_lwpinfo'.
14153 ac_fn_c_check_member
"$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
14155 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes
; then :
14157 cat >>confdefs.h
<<_ACEOF
14158 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
14165 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
14166 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
14168 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>
14170 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes
; then :
14172 cat >>confdefs.h
<<_ACEOF
14173 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
14180 if test "$ac_cv_header_sys_procfs_h" = yes; then
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
14182 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
14183 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
14184 $as_echo_n "(cached) " >&6
14186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14187 /* end confdefs.h. */
14190 /* Needed for new procfs interface on sparc-solaris. */
14191 #define _STRUCTURED_PROC 1
14192 #include <sys/procfs.h>
14201 if ac_fn_c_try_compile
"$LINENO"; then :
14202 bfd_cv_have_sys_procfs_type_gregset_t
=yes
14204 bfd_cv_have_sys_procfs_type_gregset_t
=no
14207 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14210 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
14212 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
14216 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
14219 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
14220 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
14221 $as_echo_n "(cached) " >&6
14223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14224 /* end confdefs.h. */
14227 /* Needed for new procfs interface on sparc-solaris. */
14228 #define _STRUCTURED_PROC 1
14229 #include <sys/procfs.h>
14238 if ac_fn_c_try_compile
"$LINENO"; then :
14239 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
14241 bfd_cv_have_sys_procfs_type_fpregset_t
=no
14244 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14247 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
14249 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
14253 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
14256 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
14257 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
14258 $as_echo_n "(cached) " >&6
14260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14261 /* end confdefs.h. */
14264 /* Needed for new procfs interface on sparc-solaris. */
14265 #define _STRUCTURED_PROC 1
14266 #include <sys/procfs.h>
14275 if ac_fn_c_try_compile
"$LINENO"; then :
14276 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
14278 bfd_cv_have_sys_procfs_type_prgregset_t
=no
14281 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14284 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
14286 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
14290 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
14293 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
14294 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
14295 $as_echo_n "(cached) " >&6
14297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14298 /* end confdefs.h. */
14301 /* Needed for new procfs interface on sparc-solaris. */
14302 #define _STRUCTURED_PROC 1
14303 #include <sys/procfs.h>
14312 if ac_fn_c_try_compile
"$LINENO"; then :
14313 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
14315 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
14318 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14321 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
14323 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
14327 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
14330 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
14331 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
14332 $as_echo_n "(cached) " >&6
14334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14335 /* end confdefs.h. */
14338 /* Needed for new procfs interface on sparc-solaris. */
14339 #define _STRUCTURED_PROC 1
14340 #include <sys/procfs.h>
14349 if ac_fn_c_try_compile
"$LINENO"; then :
14350 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
14352 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
14355 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14358 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
14360 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
14364 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
14367 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
14368 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
14369 $as_echo_n "(cached) " >&6
14371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14372 /* end confdefs.h. */
14375 /* Needed for new procfs interface on sparc-solaris. */
14376 #define _STRUCTURED_PROC 1
14377 #include <sys/procfs.h>
14386 if ac_fn_c_try_compile
"$LINENO"; then :
14387 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
14389 bfd_cv_have_sys_procfs_type_lwpid_t
=no
14392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14395 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
14397 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
14401 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
14404 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
14405 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
14406 $as_echo_n "(cached) " >&6
14408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14409 /* end confdefs.h. */
14412 /* Needed for new procfs interface on sparc-solaris. */
14413 #define _STRUCTURED_PROC 1
14414 #include <sys/procfs.h>
14423 if ac_fn_c_try_compile
"$LINENO"; then :
14424 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
14426 bfd_cv_have_sys_procfs_type_psaddr_t
=no
14429 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14432 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
14434 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
14438 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
14441 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
14442 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
14443 $as_echo_n "(cached) " >&6
14445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14446 /* end confdefs.h. */
14449 /* Needed for new procfs interface on sparc-solaris. */
14450 #define _STRUCTURED_PROC 1
14451 #include <sys/procfs.h>
14455 elf_fpregset_t avar
14460 if ac_fn_c_try_compile
"$LINENO"; then :
14461 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
14463 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
14466 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14469 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
14471 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
14475 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
14479 # Check if the compiler supports the `long long' type.
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
14482 $as_echo_n "checking for long long support in compiler... " >&6; }
14483 if ${gdb_cv_c_long_long+:} false
; then :
14484 $as_echo_n "(cached) " >&6
14486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14487 /* end confdefs.h. */
14488 extern long long foo;
14492 switch (foo & 2) { case 0: return 1; }
14497 if ac_fn_c_try_compile
"$LINENO"; then :
14498 gdb_cv_c_long_long
=yes
14500 gdb_cv_c_long_long
=no
14502 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
14505 $as_echo "$gdb_cv_c_long_long" >&6; }
14506 if test $gdb_cv_c_long_long != yes; then
14507 # libdecnumber requires long long.
14508 as_fn_error $?
"Compiler must support long long for GDB." "$LINENO" 5
14511 # Check if the compiler and runtime support printing long longs.
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
14514 $as_echo_n "checking for long long support in printf... " >&6; }
14515 if ${gdb_cv_printf_has_long_long+:} false
; then :
14516 $as_echo_n "(cached) " >&6
14518 if test "$cross_compiling" = yes; then :
14519 gdb_cv_printf_has_long_long
=no
14521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14522 /* end confdefs.h. */
14523 $ac_includes_default
14529 l = (l << 16) + 0x0123;
14530 l = (l << 16) + 0x4567;
14531 l = (l << 16) + 0x89ab;
14532 l = (l << 16) + 0xcdef;
14533 sprintf (buf, "0x%016llx", l);
14534 return (strcmp ("0x0123456789abcdef", buf));
14539 if ac_fn_c_try_run
"$LINENO"; then :
14540 gdb_cv_printf_has_long_long
=yes
14542 gdb_cv_printf_has_long_long
=no
14544 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14545 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
14550 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
14551 if test $gdb_cv_printf_has_long_long = yes; then
14553 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
14557 # Check if the compiler and runtime support printing decfloats.
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
14560 $as_echo_n "checking for decfloat support in printf... " >&6; }
14561 if ${gdb_cv_printf_has_decfloat+:} false
; then :
14562 $as_echo_n "(cached) " >&6
14564 if test "$cross_compiling" = yes; then :
14565 gdb_cv_printf_has_decfloat
=no
14567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14568 /* end confdefs.h. */
14569 $ac_includes_default
14574 _Decimal32 d32 = 1.2345df;
14575 _Decimal64 d64 = 1.2345dd;
14576 _Decimal128 d128 = 1.2345dl;
14577 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
14578 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
14583 if ac_fn_c_try_run
"$LINENO"; then :
14584 gdb_cv_printf_has_decfloat
=yes
14586 gdb_cv_printf_has_decfloat
=no
14588 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14589 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
14594 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
14595 if test $gdb_cv_printf_has_decfloat = yes; then
14597 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
14601 # Check if the compiler supports the `long double' type. We can't use
14602 # AC_C_LONG_DOUBLE because that one does additional checks on the
14603 # constants defined in <float.h> that fail on some systems,
14604 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
14607 $as_echo_n "checking for long double support in compiler... " >&6; }
14608 if ${gdb_cv_c_long_double+:} false
; then :
14609 $as_echo_n "(cached) " >&6
14611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14612 /* end confdefs.h. */
14615 if ac_fn_c_try_compile
"$LINENO"; then :
14616 gdb_cv_c_long_double
=yes
14618 gdb_cv_c_long_double
=no
14620 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
14623 $as_echo "$gdb_cv_c_long_double" >&6; }
14624 if test $gdb_cv_c_long_double = yes; then
14626 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14630 # Check if the compiler and runtime support printing long doubles.
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
14633 $as_echo_n "checking for long double support in printf... " >&6; }
14634 if ${gdb_cv_printf_has_long_double+:} false
; then :
14635 $as_echo_n "(cached) " >&6
14637 if test "$cross_compiling" = yes; then :
14638 gdb_cv_printf_has_long_double
=no
14640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14641 /* end confdefs.h. */
14642 $ac_includes_default
14647 long double f = 3.141592653;
14648 sprintf (buf, "%Lg", f);
14649 return (strncmp ("3.14159", buf, 7));
14654 if ac_fn_c_try_run
"$LINENO"; then :
14655 gdb_cv_printf_has_long_double
=yes
14657 gdb_cv_printf_has_long_double
=no
14659 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14660 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
14665 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
14666 if test $gdb_cv_printf_has_long_double = yes; then
14668 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
14672 # Check if the compiler and runtime support scanning long doubles.
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
14675 $as_echo_n "checking for long double support in scanf... " >&6; }
14676 if ${gdb_cv_scanf_has_long_double+:} false
; then :
14677 $as_echo_n "(cached) " >&6
14679 if test "$cross_compiling" = yes; then :
14680 gdb_cv_scanf_has_long_double
=no
14682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14683 /* end confdefs.h. */
14688 char *buf = "3.141592653";
14690 sscanf (buf, "%Lg", &f);
14691 return !(f > 3.14159 && f < 3.14160);
14696 if ac_fn_c_try_run
"$LINENO"; then :
14697 gdb_cv_scanf_has_long_double
=yes
14699 gdb_cv_scanf_has_long_double
=no
14701 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14702 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
14707 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
14708 if test $gdb_cv_scanf_has_long_double = yes; then
14710 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
14717 $as_echo_n "checking for -bbigtoc option... " >&6; }
14718 if ${gdb_cv_bigtoc+:} false
; then :
14719 $as_echo_n "(cached) " >&6
14722 SAVE_LDFLAGS
=$LDFLAGS
14725 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
14726 *) gdb_cv_bigtoc
=-bbigtoc ;;
14729 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
14730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14731 /* end confdefs.h. */
14741 if ac_fn_c_try_link
"$LINENO"; then :
14746 rm -f core conftest.err conftest.
$ac_objext \
14747 conftest
$ac_exeext conftest.
$ac_ext
14748 LDFLAGS
="${SAVE_LDFLAGS}"
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
14752 $as_echo "$gdb_cv_bigtoc" >&6; }
14753 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
14758 $as_echo_n "checking for the dynamic export flag... " >&6; }
14760 if test "${gdb_native}" = yes; then
14761 # The dynamically loaded libthread_db needs access to symbols in the gdb
14762 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
14763 # may not be supported there.
14764 old_LDFLAGS
="$LDFLAGS"
14765 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
14766 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
14767 LDFLAGS
="$LDFLAGS $RDYNAMIC"
14768 if test "${have_libpython}" = no
; then
14769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14770 /* end confdefs.h. */
14780 if ac_fn_c_try_link
"$LINENO"; then :
14783 rm -f core conftest.err conftest.
$ac_objext \
14784 conftest
$ac_exeext conftest.
$ac_ext
14786 # Workaround http://bugs.python.org/issue4434 where static
14787 # libpythonX.Y.a would get its symbols required for
14788 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
14789 # Problem does not happen for the recommended libpythonX.Y.so linkage.
14791 # Note the workaround for Python
14792 # http://bugs.python.org/issue10112 earlier has removed
14793 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
14794 # here too, as otherwise it'd make this -Wl,--dynamic-list test
14796 old_CFLAGS
="$CFLAGS"
14797 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
14799 LIBS
="$LIBS $PYTHON_LIBS"
14800 old_CPPFLAGS
="$CPPFLAGS"
14801 CPPFLAGS
="$CPPFLAGS $PYTHON_CPPFLAGS"
14802 if test "$cross_compiling" = yes; then :
14805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14806 /* end confdefs.h. */
14807 #include "Python.h"
14813 err = PyRun_SimpleString ("import itertools\n");
14815 return err == 0 ? 0 : 1;
14820 if ac_fn_c_try_run
"$LINENO"; then :
14823 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14824 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14828 CFLAGS
="$old_CFLAGS"
14829 CPPFLAGS
="$old_CPPFLAGS"
14831 LDFLAGS
="$old_LDFLAGS"
14833 if $dynamic_list; then
14834 found
="-Wl,--dynamic-list"
14835 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
14838 RDYNAMIC
="-rdynamic"
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
14842 $as_echo "$found" >&6; }
14845 if test ${build} = ${host} -a ${host} = ${target} ; then
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
14849 $as_echo_n "checking for AiX thread debugging library... " >&6; }
14850 if ${gdb_cv_have_aix_thread_debug+:} false
; then :
14851 $as_echo_n "(cached) " >&6
14853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14854 /* end confdefs.h. */
14855 #include <sys/pthdebug.h>
14859 #ifndef PTHDB_VERSION_3
14866 if ac_fn_c_try_compile
"$LINENO"; then :
14867 gdb_cv_have_aix_thread_debug
=yes
14869 gdb_cv_have_aix_thread_debug
=no
14871 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
14875 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
14876 if test $gdb_cv_have_aix_thread_debug = yes; then
14877 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
14878 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
14879 LIBS
="$LIBS -lpthdebug"
14881 # Older versions of AIX do not provide the declaration for
14882 # the getthrds function (it appears that it was introduced
14884 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
14886 if test "x$ac_cv_have_decl_getthrds" = xyes
; then :
14892 cat >>confdefs.h
<<_ACEOF
14893 #define HAVE_DECL_GETTHRDS $ac_have_decl
14902 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
14904 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
14905 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false
; then :
14906 $as_echo_n "(cached) " >&6
14908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14909 /* end confdefs.h. */
14910 #include <thread_db.h>
14914 int i = TD_NOTALLOC;
14919 if ac_fn_c_try_compile
"$LINENO"; then :
14920 gdb_cv_thread_db_h_has_td_notalloc
=yes
14922 gdb_cv_thread_db_h_has_td_notalloc
=no
14925 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
14929 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
14931 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
14932 if ${gdb_cv_thread_db_h_has_td_version+:} false
; then :
14933 $as_echo_n "(cached) " >&6
14935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14936 /* end confdefs.h. */
14937 #include <thread_db.h>
14941 int i = TD_VERSION;
14946 if ac_fn_c_try_compile
"$LINENO"; then :
14947 gdb_cv_thread_db_h_has_td_version
=yes
14949 gdb_cv_thread_db_h_has_td_version
=no
14952 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
14956 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
14958 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
14959 if ${gdb_cv_thread_db_h_has_td_notls+:} false
; then :
14960 $as_echo_n "(cached) " >&6
14962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14963 /* end confdefs.h. */
14964 #include <thread_db.h>
14973 if ac_fn_c_try_compile
"$LINENO"; then :
14974 gdb_cv_thread_db_h_has_td_notls
=yes
14976 gdb_cv_thread_db_h_has_td_notls
=no
14979 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
14983 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
14985 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
14987 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
14990 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
14992 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
14995 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
14997 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
15001 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
15003 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
15009 cat >>confdefs.h
<<_ACEOF
15010 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
15014 if test "$cross_compiling" = yes; then :
15015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15016 /* end confdefs.h. */
15017 #include <sys/personality.h>
15022 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
15023 # define ADDR_NO_RANDOMIZE 0x0040000
15025 /* Test the flag could be set and stays set. */
15026 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
15027 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
15033 if ac_fn_c_try_link
"$LINENO"; then :
15034 have_personality
=true
15036 have_personality
=false
15038 rm -f core conftest.err conftest.
$ac_objext \
15039 conftest
$ac_exeext conftest.
$ac_ext
15041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15042 /* end confdefs.h. */
15043 #include <sys/personality.h>
15048 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
15049 # define ADDR_NO_RANDOMIZE 0x0040000
15051 /* Test the flag could be set and stays set. */
15052 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
15053 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
15059 if ac_fn_c_try_run
"$LINENO"; then :
15060 have_personality
=true
15062 have_personality
=false
15064 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15065 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15068 if $have_personality
15071 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
15084 cat >>confdefs.h
<<_ACEOF
15085 #define GDBINIT "$gdbinit"
15090 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
15091 # except that the argument to --with-sysroot is optional.
15092 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
15093 if test "x$with_sysroot" = xyes
; then
15094 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
15097 # Check whether --with-sysroot was given.
15098 if test "${with_sysroot+set}" = set; then :
15099 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
15101 TARGET_SYSTEM_ROOT
=
15105 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
15106 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15107 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
15108 ac_define_dir
=`eval echo $ac_define_dir`
15110 cat >>confdefs.h
<<_ACEOF
15111 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
15117 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
15118 if test "x$prefix" = xNONE
; then
15119 test_prefix
=/usr
/local
15121 test_prefix
=$prefix
15124 test_prefix
=$exec_prefix
15127 case ${ac_define_dir} in
15128 "${test_prefix}"|
"${test_prefix}/"*|\
15129 '${exec_prefix}'|
'${exec_prefix}/'*)
15134 cat >>confdefs.h
<<_ACEOF
15135 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
15142 # Check whether --with-system-gdbinit was given.
15143 if test "${with_system_gdbinit+set}" = set; then :
15144 withval
=$with_system_gdbinit;
15145 SYSTEM_GDBINIT
=$withval
15151 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
15152 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15153 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
15154 ac_define_dir
=`eval echo $ac_define_dir`
15156 cat >>confdefs.h
<<_ACEOF
15157 #define SYSTEM_GDBINIT "$ac_define_dir"
15163 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
15164 if test "x$prefix" = xNONE
; then
15165 test_prefix
=/usr
/local
15167 test_prefix
=$prefix
15170 test_prefix
=$exec_prefix
15173 case ${ac_define_dir} in
15174 "${test_prefix}"|
"${test_prefix}/"*|\
15175 '${exec_prefix}'|
'${exec_prefix}/'*)
15180 cat >>confdefs.h
<<_ACEOF
15181 #define SYSTEM_GDBINIT_RELOCATABLE $value
15188 # Check whether --with-system-gdbinit-dir was given.
15189 if test "${with_system_gdbinit_dir+set}" = set; then :
15190 withval
=$with_system_gdbinit_dir;
15191 SYSTEM_GDBINIT_DIR
=$withval
15193 SYSTEM_GDBINIT_DIR
=
15197 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
15198 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15199 ac_define_dir
=`eval echo $SYSTEM_GDBINIT_DIR`
15200 ac_define_dir
=`eval echo $ac_define_dir`
15202 cat >>confdefs.h
<<_ACEOF
15203 #define SYSTEM_GDBINIT_DIR "$ac_define_dir"
15209 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
15210 if test "x$prefix" = xNONE
; then
15211 test_prefix
=/usr
/local
15213 test_prefix
=$prefix
15216 test_prefix
=$exec_prefix
15219 case ${ac_define_dir} in
15220 "${test_prefix}"|
"${test_prefix}/"*|\
15221 '${exec_prefix}'|
'${exec_prefix}/'*)
15226 cat >>confdefs.h
<<_ACEOF
15227 #define SYSTEM_GDBINIT_DIR_RELOCATABLE $value
15234 # Check whether --enable-werror was given.
15235 if test "${enable_werror+set}" = set; then :
15236 enableval
=$enable_werror; case "${enableval}" in
15237 yes | y
) ERROR_ON_WARNING
="yes" ;;
15238 no | n
) ERROR_ON_WARNING
="no" ;;
15239 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15244 # Enable -Werror by default when using gcc. Turn it off for releases.
15245 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
15246 ERROR_ON_WARNING
=yes
15250 if test "${ERROR_ON_WARNING}" = yes ; then
15251 WERROR_CFLAGS
="-Werror"
15254 # The options we'll try to enable.
15255 build_warnings
="-Wall -Wpointer-arith \
15256 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
15257 -Wno-switch -Wno-char-subscripts \
15258 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
15259 -Wno-sign-compare -Wno-error=maybe-uninitialized \
15260 -Wno-mismatched-tags \
15261 -Wno-error=deprecated-register \
15262 -Wsuggest-override \
15263 -Wimplicit-fallthrough=3 \
15264 -Wduplicated-cond \
15266 -Wdeprecated-copy \
15267 -Wdeprecated-copy-dtor \
15272 # Enable -Wno-format by default when using gcc on mingw since many
15273 # GCC versions complain about %I64.
15274 build_warnings
="$build_warnings -Wno-format" ;;
15276 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
15277 # doesn't understand.
15278 build_warnings
="$build_warnings -Wno-unknown-pragmas"
15279 # Solaris 11 <unistd.h> marks vfork deprecated.
15280 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
15282 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
15283 # but there's a special case for this below.
15284 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
15287 # Check whether --enable-build-warnings was given.
15288 if test "${enable_build_warnings+set}" = set; then :
15289 enableval
=$enable_build_warnings; case "${enableval}" in
15291 no
) build_warnings
="-w";;
15292 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15293 build_warnings
="${build_warnings} ${t}";;
15294 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15295 build_warnings
="${t} ${build_warnings}";;
15296 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15298 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
15299 echo "Setting compiler warning flags = $build_warnings" 6>&1
15302 # Check whether --enable-gdb-build-warnings was given.
15303 if test "${enable_gdb_build_warnings+set}" = set; then :
15304 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
15306 no
) build_warnings
="-w";;
15307 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15308 build_warnings
="${build_warnings} ${t}";;
15309 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15310 build_warnings
="${t} ${build_warnings}";;
15311 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15313 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
15314 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
15318 # The set of warnings supported by a C++ compiler is not the same as
15319 # of the C compiler.
15321 ac_cpp
='$CXXCPP $CPPFLAGS'
15322 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15323 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15324 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
15328 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
15331 $as_echo_n "checking compiler warning flags... " >&6; }
15332 # Separate out the -Werror flag as some files just cannot be
15333 # compiled with it enabled.
15334 for w
in ${build_warnings}; do
15335 # GCC does not complain about -Wno-unknown-warning. Invert
15336 # and test -Wunknown-warning instead.
15339 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
15340 -Wformat-nonliteral)
15341 # gcc requires -Wformat before -Wformat-nonliteral
15342 # will work, so stick them together.
15351 -Werr*) WERROR_CFLAGS
=-Werror ;;
15353 # Check whether GCC accepts it.
15354 saved_CFLAGS
="$CFLAGS"
15355 CFLAGS
="$CFLAGS -Werror $wtest"
15356 saved_CXXFLAGS
="$CXXFLAGS"
15357 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
15358 if test "x$w" = "x-Wunused-variable"; then
15359 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
15360 # fixed in GCC 4.9. This test is derived from the gdb
15361 # source code that triggered this bug in GCC.
15362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15363 /* end confdefs.h. */
15364 struct scoped_restore_base {};
15365 struct scoped_restore_tmpl : public scoped_restore_base {
15366 ~scoped_restore_tmpl() {}
15371 const scoped_restore_base &b = scoped_restore_tmpl();
15376 if ac_fn_cxx_try_compile
"$LINENO"; then :
15377 WARN_CFLAGS
="${WARN_CFLAGS} $w"
15379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15382 /* end confdefs.h. */
15392 if ac_fn_cxx_try_compile
"$LINENO"; then :
15393 WARN_CFLAGS
="${WARN_CFLAGS} $w"
15395 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15397 CFLAGS
="$saved_CFLAGS"
15398 CXXFLAGS
="$saved_CXXFLAGS"
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
15402 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
15408 ac_cpp='$CPP $CPPFLAGS'
15409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15415 # Check whether --enable-ubsan was given.
15416 if test "${enable_ubsan+set}" = set; then :
15417 enableval=$enable_ubsan;
15422 if test "x
$enable_ubsan" = xauto; then
15423 if $development; then
15428 ac_cpp='$CXXCPP $CPPFLAGS'
15429 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15430 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15431 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15433 if test "x
$enable_ubsan" = xyes; then
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
-fsanitize=undefined is accepted
" >&5
15435 $as_echo_n "checking whether
-fsanitize=undefined is accepted...
" >&6; }
15436 saved_CXXFLAGS="$CXXFLAGS"
15437 CXXFLAGS="$CXXFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
15438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15439 /* end confdefs.h. */
15449 if ac_fn_cxx_try_link "$LINENO"; then :
15454 rm -f core conftest.err conftest.$ac_objext \
15455 conftest$ac_exeext conftest.$ac_ext
15456 CXXFLAGS="$saved_CXXFLAGS"
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $enable_ubsan" >&5
15458 $as_echo "$enable_ubsan" >&6; }
15459 if test "x
$enable_ubsan" = xyes; then
15460 WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
15461 CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined
"
15465 ac_cpp='$CPP $CPPFLAGS'
15466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15472 # In the Cygwin environment, we need some additional flags.
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
15474 $as_echo_n "checking
for cygwin...
" >&6; }
15475 if ${gdb_cv_os_cygwin+:} false; then :
15476 $as_echo_n "(cached
) " >&6
15478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15479 /* end confdefs.h. */
15481 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
15485 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15486 $EGREP "^lose$
" >/dev/null 2>&1; then :
15487 gdb_cv_os_cygwin=yes
15489 gdb_cv_os_cygwin=no
15494 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
15495 $as_echo "$gdb_cv_os_cygwin" >&6; }
15498 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
15500 *go32* ) SER_HARDWIRE=ser-go32.o ;;
15501 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
15502 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
15503 *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o
" ;;
15507 # libreadline needs libuser32.a in a cygwin environment
15509 if test x$gdb_cv_os_cygwin = xyes; then
15510 WIN32LIBS="-luser32"
15511 case "${target}" in
15512 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
15517 # The ser-tcp.c module requires sockets.
15521 $as_echo "#define USE_WIN32API 1" >>confdefs.h
15523 WIN32LIBS
="$WIN32LIBS -lws2_32"
15528 # Add ELF support to GDB, but only if BFD includes ELF support.
15531 OLD_LDFLAGS
=$LDFLAGS
15533 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
15534 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
15535 # always want our bfd.
15536 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
15537 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
15538 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
15539 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
15540 LIBS
="-lbfd -liberty -lz $intl $LIBS"
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
15542 $as_echo_n "checking for ELF support in BFD... " >&6; }
15543 if ${gdb_cv_var_elf+:} false
; then :
15544 $as_echo_n "(cached) " >&6
15546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15547 /* end confdefs.h. */
15548 #include <stdlib.h>
15550 #include "elf-bfd.h"
15555 return bfd_get_elf_phdr_upper_bound (NULL);
15560 if ac_fn_c_try_link
"$LINENO"; then :
15565 rm -f core conftest.err conftest.
$ac_objext \
15566 conftest
$ac_exeext conftest.
$ac_ext
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
15569 $as_echo "$gdb_cv_var_elf" >&6; }
15571 LDFLAGS
=$OLD_LDFLAGS
15573 if test $gdb_cv_var_elf = yes; then
15574 CONFIG_OBS
="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o"
15576 $as_echo "#define HAVE_ELF 1" >>confdefs.h
15578 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
15579 if test "$plugins" = "yes"; then
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15581 $as_echo_n "checking for library containing dlopen... " >&6; }
15582 if ${ac_cv_search_dlopen+:} false
; then :
15583 $as_echo_n "(cached) " >&6
15585 ac_func_search_save_LIBS
=$LIBS
15586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15587 /* end confdefs.h. */
15589 /* Override any GCC internal prototype to avoid an error.
15590 Use char because int might match the return type of a GCC
15591 builtin and then its argument prototype would still apply. */
15604 for ac_lib
in '' dl
; do
15605 if test -z "$ac_lib"; then
15606 ac_res
="none required"
15609 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15611 if ac_fn_c_try_link
"$LINENO"; then :
15612 ac_cv_search_dlopen
=$ac_res
15614 rm -f core conftest.err conftest.
$ac_objext \
15616 if ${ac_cv_search_dlopen+:} false
; then :
15620 if ${ac_cv_search_dlopen+:} false
; then :
15623 ac_cv_search_dlopen
=no
15625 rm conftest.
$ac_ext
15626 LIBS
=$ac_func_search_save_LIBS
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15629 $as_echo "$ac_cv_search_dlopen" >&6; }
15630 ac_res
=$ac_cv_search_dlopen
15631 if test "$ac_res" != no
; then :
15632 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15639 # Add macho support to GDB, but only if BFD includes it.
15642 OLD_LDFLAGS
=$LDFLAGS
15644 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
15645 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
15646 # always want our bfd.
15647 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
15648 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
15649 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
15650 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
15651 LIBS
="-lbfd -liberty -lz $intl $LIBS"
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
15653 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
15654 if ${gdb_cv_var_macho+:} false
; then :
15655 $as_echo_n "(cached) " >&6
15657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15658 /* end confdefs.h. */
15659 #include <stdlib.h>
15661 #include "mach-o.h"
15666 return bfd_mach_o_lookup_command (NULL, 0, NULL);
15671 if ac_fn_c_try_link
"$LINENO"; then :
15672 gdb_cv_var_macho
=yes
15674 gdb_cv_var_macho
=no
15676 rm -f core conftest.err conftest.
$ac_objext \
15677 conftest
$ac_exeext conftest.
$ac_ext
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
15680 $as_echo "$gdb_cv_var_macho" >&6; }
15682 LDFLAGS
=$OLD_LDFLAGS
15684 if test $gdb_cv_var_macho = yes; then
15685 CONFIG_OBS
="$CONFIG_OBS machoread.o"
15688 # Add any host-specific objects to GDB.
15689 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
15691 # If building on ELF, look for lzma support for embedded compressed debug info.
15692 if test $gdb_cv_var_elf = yes; then
15694 # Check whether --with-lzma was given.
15695 if test "${with_lzma+set}" = set; then :
15696 withval
=$with_lzma;
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
15702 $as_echo_n "checking whether to use lzma... " >&6; }
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
15704 $as_echo "$with_lzma" >&6; }
15706 if test "${with_lzma}" != no
; then
15717 acl_save_prefix
="$prefix"
15718 prefix
="$acl_final_prefix"
15719 acl_save_exec_prefix
="$exec_prefix"
15720 exec_prefix
="$acl_final_exec_prefix"
15722 eval additional_includedir
=\"$includedir\"
15723 eval additional_libdir
=\"$libdir\"
15725 exec_prefix
="$acl_save_exec_prefix"
15726 prefix
="$acl_save_prefix"
15729 # Check whether --with-liblzma-prefix was given.
15730 if test "${with_liblzma_prefix+set}" = set; then :
15731 withval
=$with_liblzma_prefix;
15732 if test "X$withval" = "Xno"; then
15735 if test "X$withval" = "X"; then
15737 acl_save_prefix
="$prefix"
15738 prefix
="$acl_final_prefix"
15739 acl_save_exec_prefix
="$exec_prefix"
15740 exec_prefix
="$acl_final_exec_prefix"
15742 eval additional_includedir
=\"$includedir\"
15743 eval additional_libdir
=\"$libdir\"
15745 exec_prefix
="$acl_save_exec_prefix"
15746 prefix
="$acl_save_prefix"
15749 additional_includedir
="$withval/include"
15750 additional_libdir
="$withval/lib"
15761 names_already_handled
=
15762 names_next_round
='lzma '
15763 while test -n "$names_next_round"; do
15764 names_this_round
="$names_next_round"
15766 for name
in $names_this_round; do
15768 for n
in $names_already_handled; do
15769 if test "$n" = "$name"; then
15770 already_handled
=yes
15774 if test -z "$already_handled"; then
15775 names_already_handled
="$names_already_handled $name"
15776 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15777 eval value
=\"\
$HAVE_LIB$uppername\"
15778 if test -n "$value"; then
15779 if test "$value" = yes; then
15780 eval value
=\"\
$LIB$uppername\"
15781 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
15782 eval value
=\"\
$LTLIB$uppername\"
15783 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
15792 if test $use_additional = yes; then
15793 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15794 found_dir
="$additional_libdir"
15795 found_so
="$additional_libdir/lib$name.$shlibext"
15796 if test -f "$additional_libdir/lib$name.la"; then
15797 found_la
="$additional_libdir/lib$name.la"
15800 if test -f "$additional_libdir/lib$name.$libext"; then
15801 found_dir
="$additional_libdir"
15802 found_a
="$additional_libdir/lib$name.$libext"
15803 if test -f "$additional_libdir/lib$name.la"; then
15804 found_la
="$additional_libdir/lib$name.la"
15809 if test "X$found_dir" = "X"; then
15810 for x
in $LDFLAGS $LTLIBLZMA; do
15812 acl_save_prefix
="$prefix"
15813 prefix
="$acl_final_prefix"
15814 acl_save_exec_prefix
="$exec_prefix"
15815 exec_prefix
="$acl_final_exec_prefix"
15817 exec_prefix
="$acl_save_exec_prefix"
15818 prefix
="$acl_save_prefix"
15822 dir
=`echo "X$x" | sed -e 's/^X-L//'`
15823 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15825 found_so
="$dir/lib$name.$shlibext"
15826 if test -f "$dir/lib$name.la"; then
15827 found_la
="$dir/lib$name.la"
15830 if test -f "$dir/lib$name.$libext"; then
15832 found_a
="$dir/lib$name.$libext"
15833 if test -f "$dir/lib$name.la"; then
15834 found_la
="$dir/lib$name.la"
15840 if test "X$found_dir" != "X"; then
15845 if test "X$found_dir" != "X"; then
15846 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
15847 if test "X$found_so" != "X"; then
15848 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
15849 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
15852 for x
in $ltrpathdirs; do
15853 if test "X$x" = "X$found_dir"; then
15858 if test -z "$haveit"; then
15859 ltrpathdirs
="$ltrpathdirs $found_dir"
15861 if test "$hardcode_direct" = yes; then
15862 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
15864 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
15865 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
15867 for x
in $rpathdirs; do
15868 if test "X$x" = "X$found_dir"; then
15873 if test -z "$haveit"; then
15874 rpathdirs
="$rpathdirs $found_dir"
15878 for x
in $LDFLAGS $LIBLZMA; do
15880 acl_save_prefix
="$prefix"
15881 prefix
="$acl_final_prefix"
15882 acl_save_exec_prefix
="$exec_prefix"
15883 exec_prefix
="$acl_final_exec_prefix"
15885 exec_prefix
="$acl_save_exec_prefix"
15886 prefix
="$acl_save_prefix"
15888 if test "X$x" = "X-L$found_dir"; then
15893 if test -z "$haveit"; then
15894 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
15896 if test "$hardcode_minus_L" != no
; then
15897 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
15899 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
15905 if test "X$found_a" != "X"; then
15906 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
15908 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
15911 additional_includedir
=
15912 case "$found_dir" in
15914 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15915 additional_includedir
="$basedir/include"
15918 if test "X$additional_includedir" != "X"; then
15919 if test "X$additional_includedir" != "X/usr/include"; then
15921 if test "X$additional_includedir" = "X/usr/local/include"; then
15922 if test -n "$GCC"; then
15924 linux
*) haveit
=yes;;
15928 if test -z "$haveit"; then
15929 for x
in $CPPFLAGS $INCLZMA; do
15931 acl_save_prefix
="$prefix"
15932 prefix
="$acl_final_prefix"
15933 acl_save_exec_prefix
="$exec_prefix"
15934 exec_prefix
="$acl_final_exec_prefix"
15936 exec_prefix
="$acl_save_exec_prefix"
15937 prefix
="$acl_save_prefix"
15939 if test "X$x" = "X-I$additional_includedir"; then
15944 if test -z "$haveit"; then
15945 if test -d "$additional_includedir"; then
15946 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
15952 if test -n "$found_la"; then
15953 save_libdir
="$libdir"
15954 case "$found_la" in
15955 */* |
*\\*) .
"$found_la" ;;
15956 *) .
"./$found_la" ;;
15958 libdir
="$save_libdir"
15959 for dep
in $dependency_libs; do
15962 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
15963 if test "X$additional_libdir" != "X/usr/lib"; then
15965 if test "X$additional_libdir" = "X/usr/local/lib"; then
15966 if test -n "$GCC"; then
15968 linux
*) haveit
=yes;;
15972 if test -z "$haveit"; then
15974 for x
in $LDFLAGS $LIBLZMA; do
15976 acl_save_prefix
="$prefix"
15977 prefix
="$acl_final_prefix"
15978 acl_save_exec_prefix
="$exec_prefix"
15979 exec_prefix
="$acl_final_exec_prefix"
15981 exec_prefix
="$acl_save_exec_prefix"
15982 prefix
="$acl_save_prefix"
15984 if test "X$x" = "X-L$additional_libdir"; then
15989 if test -z "$haveit"; then
15990 if test -d "$additional_libdir"; then
15991 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
15995 for x
in $LDFLAGS $LTLIBLZMA; do
15997 acl_save_prefix
="$prefix"
15998 prefix
="$acl_final_prefix"
15999 acl_save_exec_prefix
="$exec_prefix"
16000 exec_prefix
="$acl_final_exec_prefix"
16002 exec_prefix
="$acl_save_exec_prefix"
16003 prefix
="$acl_save_prefix"
16005 if test "X$x" = "X-L$additional_libdir"; then
16010 if test -z "$haveit"; then
16011 if test -d "$additional_libdir"; then
16012 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
16019 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
16020 if test "$enable_rpath" != no
; then
16022 for x
in $rpathdirs; do
16023 if test "X$x" = "X$dir"; then
16028 if test -z "$haveit"; then
16029 rpathdirs
="$rpathdirs $dir"
16032 for x
in $ltrpathdirs; do
16033 if test "X$x" = "X$dir"; then
16038 if test -z "$haveit"; then
16039 ltrpathdirs
="$ltrpathdirs $dir"
16044 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16047 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16050 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
16051 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
16057 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
16058 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
16064 if test "X$rpathdirs" != "X"; then
16065 if test -n "$hardcode_libdir_separator"; then
16067 for found_dir
in $rpathdirs; do
16068 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16070 acl_save_libdir
="$libdir"
16072 eval flag
=\"$hardcode_libdir_flag_spec\"
16073 libdir
="$acl_save_libdir"
16074 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
16076 for found_dir
in $rpathdirs; do
16077 acl_save_libdir
="$libdir"
16078 libdir
="$found_dir"
16079 eval flag
=\"$hardcode_libdir_flag_spec\"
16080 libdir
="$acl_save_libdir"
16081 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
16085 if test "X$ltrpathdirs" != "X"; then
16086 for found_dir
in $ltrpathdirs; do
16087 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
16092 ac_save_CPPFLAGS
="$CPPFLAGS"
16094 for element
in $INCLZMA; do
16096 for x
in $CPPFLAGS; do
16098 acl_save_prefix
="$prefix"
16099 prefix
="$acl_final_prefix"
16100 acl_save_exec_prefix
="$exec_prefix"
16101 exec_prefix
="$acl_final_exec_prefix"
16103 exec_prefix
="$acl_save_exec_prefix"
16104 prefix
="$acl_save_prefix"
16106 if test "X$x" = "X$element"; then
16111 if test -z "$haveit"; then
16112 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
16118 $as_echo_n "checking for liblzma... " >&6; }
16119 if ${ac_cv_liblzma+:} false
; then :
16120 $as_echo_n "(cached) " >&6
16123 ac_save_LIBS
="$LIBS"
16124 LIBS
="$LIBS $LIBLZMA"
16125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16126 /* end confdefs.h. */
16131 lzma_index_iter iter;
16132 lzma_index_iter_init (&iter, 0);
16133 lzma_mf_is_supported (LZMA_MF_HC3);
16138 if ac_fn_c_try_link
"$LINENO"; then :
16143 rm -f core conftest.err conftest.
$ac_objext \
16144 conftest
$ac_exeext conftest.
$ac_ext
16145 LIBS
="$ac_save_LIBS"
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
16149 $as_echo "$ac_cv_liblzma" >&6; }
16150 if test "$ac_cv_liblzma" = yes; then
16153 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
16156 $as_echo_n "checking how to link with liblzma... " >&6; }
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
16158 $as_echo "$LIBLZMA" >&6; }
16161 CPPFLAGS
="$ac_save_CPPFLAGS"
16171 if test "$HAVE_LIBLZMA" != yes; then
16172 if test "$with_lzma" = yes; then
16173 as_fn_error $?
"missing liblzma for --with-lzma" "$LINENO" 5
16179 LIBGUI
="../libgui/src/libgui.a"
16180 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
16189 *-*-cygwin* |
*-*-mingw* )
16198 if test "${enable_gdbtk}" = "yes"; then
16200 # Gdbtk must have an absolute path to srcdir in order to run
16201 # properly when not installed.
16204 GDBTK_SRC_DIR
=`pwd`
16209 # Ok, lets find the tcl configuration
16210 # First, look for one uninstalled.
16211 # the alternative search directory is invoked by --with-tcl
16214 if test x
"${no_tcl}" = x
; then
16215 # we reset no_tcl in case something fails here
16218 # Check whether --with-tcl was given.
16219 if test "${with_tcl+set}" = set; then :
16220 withval
=$with_tcl; with_tclconfig
=${withval}
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
16224 $as_echo_n "checking for Tcl configuration... " >&6; }
16225 if ${ac_cv_c_tclconfig+:} false
; then :
16226 $as_echo_n "(cached) " >&6
16230 # First check to see if --with-tcl was specified.
16232 *-*-cygwin*) platDir
="win" ;;
16233 *) platDir
="unix" ;;
16235 if test x
"${with_tclconfig}" != x
; then
16236 if test -f "${with_tclconfig}/tclConfig.sh" ; then
16237 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
16239 as_fn_error $?
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
16243 # then check for a private Tcl installation
16244 if test x
"${ac_cv_c_tclconfig}" = x
; then
16247 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16248 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
16249 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
16251 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16252 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
16253 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
16255 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16256 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
16257 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
16258 if test -f "$i/$platDir/tclConfig.sh" ; then
16259 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
16265 # on Darwin, check in Framework installation locations
16266 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
16267 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
16268 `ls -d /Library/Frameworks 2>/dev/null` \
16269 `ls -d /Network/Library/Frameworks 2>/dev/null` \
16270 `ls -d /System/Library/Frameworks 2>/dev/null` \
16272 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
16273 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
16279 # check in a few common install locations
16280 if test x
"${ac_cv_c_tclconfig}" = x
; then
16281 for i
in `ls -d ${libdir} 2>/dev/null` \
16282 `ls -d ${exec_prefix}/lib 2>/dev/null` \
16283 `ls -d ${prefix}/lib 2>/dev/null` \
16284 `ls -d /usr/local/lib 2>/dev/null` \
16285 `ls -d /usr/contrib/lib 2>/dev/null` \
16286 `ls -d /usr/lib 2>/dev/null` \
16288 if test -f "$i/tclConfig.sh" ; then
16289 ac_cv_c_tclconfig
=`(cd $i; pwd)`
16295 # check in a few other private locations
16296 if test x
"${ac_cv_c_tclconfig}" = x
; then
16299 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16300 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
16301 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
16302 if test -f "$i/$platDir/tclConfig.sh" ; then
16303 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
16312 if test x
"${ac_cv_c_tclconfig}" = x
; then
16313 TCL_BIN_DIR
="# no Tcl configs found"
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
16315 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
16318 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
16320 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
16325 # If $no_tk is nonempty, then we can't do Tk, and there is no
16326 # point to doing Tcl.
16329 # Ok, lets find the tk configuration
16330 # First, look for one uninstalled.
16331 # the alternative search directory is invoked by --with-tk
16334 if test x
"${no_tk}" = x
; then
16335 # we reset no_tk in case something fails here
16338 # Check whether --with-tk was given.
16339 if test "${with_tk+set}" = set; then :
16340 withval
=$with_tk; with_tkconfig
=${withval}
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
16344 $as_echo_n "checking for Tk configuration... " >&6; }
16345 if ${ac_cv_c_tkconfig+:} false
; then :
16346 $as_echo_n "(cached) " >&6
16350 # First check to see if --with-tkconfig was specified.
16351 if test x
"${with_tkconfig}" != x
; then
16352 if test -f "${with_tkconfig}/tkConfig.sh" ; then
16353 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
16355 as_fn_error $?
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
16359 # then check for a private Tk library
16361 *-*-cygwin*) platDir
="win" ;;
16362 *) platDir
="unix" ;;
16364 if test x
"${ac_cv_c_tkconfig}" = x
; then
16367 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16368 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
16369 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
16371 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16372 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
16373 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
16375 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16376 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
16377 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
16378 if test -f "$i/$platDir/tkConfig.sh" ; then
16379 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
16385 # on Darwin, check in Framework installation locations
16386 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
16387 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
16388 `ls -d /Library/Frameworks 2>/dev/null` \
16389 `ls -d /Network/Library/Frameworks 2>/dev/null` \
16390 `ls -d /System/Library/Frameworks 2>/dev/null` \
16392 if test -f "$i/Tk.framework/tkConfig.sh" ; then
16393 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
16399 # check in a few common install locations
16400 if test x
"${ac_cv_c_tkconfig}" = x
; then
16401 for i
in `ls -d ${libdir} 2>/dev/null` \
16402 `ls -d ${exec_prefix}/lib 2>/dev/null` \
16403 `ls -d ${prefix}/lib 2>/dev/null` \
16404 `ls -d /usr/local/lib 2>/dev/null` \
16405 `ls -d /usr/contrib/lib 2>/dev/null` \
16406 `ls -d /usr/lib 2>/dev/null` \
16408 if test -f "$i/tkConfig.sh" ; then
16409 ac_cv_c_tkconfig
=`(cd $i; pwd)`
16414 # check in a few other private locations
16415 if test x
"${ac_cv_c_tkconfig}" = x
; then
16418 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16419 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
16420 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
16421 if test -f "$i/$platDir/tkConfig.sh" ; then
16422 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
16431 if test x
"${ac_cv_c_tkconfig}" = x
; then
16432 TK_BIN_DIR
="# no Tk configs found"
16433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
16434 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
16437 TK_BIN_DIR
=${ac_cv_c_tkconfig}
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
16439 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
16444 if test -z "${no_tcl}" -a -z "${no_tk}"; then
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
16447 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
16449 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
16451 $as_echo "loading" >&6; }
16452 .
${TCL_BIN_DIR}/tclConfig.sh
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
16455 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
16458 # eval is required to do the TCL_DBGX substitution
16459 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
16460 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
16462 # If the TCL_BIN_DIR is the build directory (not the install directory),
16463 # then set the common variable name to the value of the build variables.
16464 # For example, the variable TCL_LIB_SPEC will be set to the value
16465 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
16466 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
16467 # installed and uninstalled version of Tcl.
16468 if test -f "${TCL_BIN_DIR}/Makefile" ; then
16469 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
16470 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
16471 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
16472 elif test "`uname -s`" = "Darwin"; then
16473 # If Tcl was built as a framework, attempt to use the libraries
16474 # from the framework at the given location so that linking works
16475 # against Tcl.framework installed in an arbitrary location.
16476 case ${TCL_DEFS} in
16478 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
16479 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
16480 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
16481 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
16482 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
16487 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
16488 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
16489 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
16495 # eval is required to do the TCL_DBGX substitution
16496 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
16497 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
16498 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
16499 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
16515 # Check for in-tree tcl
16522 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
16526 # Find Tcl private headers
16527 if test x
"${intree}" = xno
; then
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
16530 $as_echo_n "checking for Tcl private headers... " >&6; }
16532 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
16533 if test -f ${dir}/tclInt.h
; then
16537 if test x
"${private_dir}" = x
; then
16538 as_fn_error $?
"could not find private Tcl headers" "$LINENO" 5
16540 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
16542 $as_echo "${private_dir}" >&6; }
16545 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
16546 TCL_LIBRARY
="${TCL_LIB_SPEC}"
16549 # If building tcl in the same src tree, private headers
16550 # are not needed, but we need to be sure to use the right
16552 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
16553 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
16554 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
16562 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
16564 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
16566 $as_echo "loading" >&6; }
16567 .
${TK_BIN_DIR}/tkConfig.sh
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
16570 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
16573 # eval is required to do the TK_DBGX substitution
16574 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
16575 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
16577 # If the TK_BIN_DIR is the build directory (not the install directory),
16578 # then set the common variable name to the value of the build variables.
16579 # For example, the variable TK_LIB_SPEC will be set to the value
16580 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
16581 # instead of TK_BUILD_LIB_SPEC since it will work with both an
16582 # installed and uninstalled version of Tcl.
16583 if test -f "${TK_BIN_DIR}/Makefile" ; then
16584 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
16585 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
16586 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
16587 elif test "`uname -s`" = "Darwin"; then
16588 # If Tk was built as a framework, attempt to use the libraries
16589 # from the framework at the given location so that linking works
16590 # against Tk.framework installed in an arbitrary location.
16593 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
16594 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
16595 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
16596 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
16597 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
16602 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
16603 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
16604 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
16610 # eval is required to do the TK_DBGX substitution
16611 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
16612 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
16613 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
16614 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
16629 # Check for in-tree Tk
16631 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
16635 # Find Tk private headers
16636 if test x
"${intree}" = xno
; then
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
16639 $as_echo_n "checking for Tk private headers... " >&6; }
16641 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
16642 if test -f ${dir}/tkInt.h
; then
16646 if test x
"${private_dir}" = x
; then
16647 as_fn_error $?
"could not find Tk private headers" "$LINENO" 5
16649 TK_PRIVATE_INCLUDE
="-I${private_dir}"
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
16651 $as_echo "${private_dir}" >&6; }
16654 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
16655 TK_LIBRARY
=${TK_LIB_SPEC}
16658 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
16659 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
16660 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
16667 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
16669 # Include some libraries that Tcl and Tk want.
16670 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
16671 # Yes, the ordering seems wrong here. But it isn't.
16672 # TK_LIBS is the list of libraries that need to be linked
16673 # after Tcl/Tk. Note that this isn't put into LIBS. If it
16674 # were in LIBS then any link tests after this point would
16675 # try to include things like `$(LIBGUI)', which wouldn't work.
16676 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
16678 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
16679 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
16680 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
16681 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
16682 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
16683 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
16684 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
16686 if test x
$gdb_cv_os_cygwin = xyes
; then
16687 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
16688 WIN32LDAPP
="-Wl,--subsystem,console"
16689 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
16692 subdirs
="$subdirs gdbtk"
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
16705 $as_echo_n "checking for X... " >&6; }
16708 # Check whether --with-x was given.
16709 if test "${with_x+set}" = set; then :
16713 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
16714 if test "x$with_x" = xno
; then
16715 # The user explicitly disabled X.
16718 case $x_includes,$x_libraries in #(
16719 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
16720 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
16721 $as_echo_n "(cached) " >&6
16723 # One or both of the vars are not set, and there is no cached value.
16724 ac_x_includes
=no ac_x_libraries
=no
16725 rm -f -r conftest.dir
16726 if mkdir conftest.dir
; then
16728 cat >Imakefile
<<'_ACEOF'
16730 @echo incroot='${INCROOT}'
16732 @echo usrlibdir='${USRLIBDIR}'
16734 @echo libdir='${LIBDIR}'
16736 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
16737 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16738 for ac_var
in incroot usrlibdir libdir
; do
16739 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
16741 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
16742 for ac_extension
in a so sl dylib la dll
; do
16743 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
16744 test -f "$ac_im_libdir/libX11.$ac_extension"; then
16745 ac_im_usrlibdir
=$ac_im_libdir; break
16748 # Screen out bogus values from the imake configuration. They are
16749 # bogus both because they are the default anyway, and because
16750 # using them would break gcc on systems where it needs fixed includes.
16751 case $ac_im_incroot in
16752 /usr
/include
) ac_x_includes
= ;;
16753 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
16755 case $ac_im_usrlibdir in
16756 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
16757 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
16761 rm -f -r conftest.dir
16764 # Standard set of common directories for X headers.
16765 # Check X11 before X11Rn because it is often a symlink to the current release.
16779 /usr/local/X11/include
16780 /usr/local/X11R7/include
16781 /usr/local/X11R6/include
16782 /usr/local/X11R5/include
16783 /usr/local/X11R4/include
16785 /usr/local/include/X11
16786 /usr/local/include/X11R7
16787 /usr/local/include/X11R6
16788 /usr/local/include/X11R5
16789 /usr/local/include/X11R4
16793 /usr/XFree86/include/X11
16797 /usr/unsupported/include
16798 /usr/athena/include
16799 /usr/local/x11r5/include
16800 /usr/lpp/Xamples/include
16802 /usr/openwin/include
16803 /usr/openwin/share/include'
16805 if test "$ac_x_includes" = no
; then
16806 # Guess where to find include files, by looking for Xlib.h.
16807 # First, try using that file with no special directory specified.
16808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16809 /* end confdefs.h. */
16810 #include <X11/Xlib.h>
16812 if ac_fn_c_try_cpp
"$LINENO"; then :
16813 # We can compile using X headers with no special include directory.
16816 for ac_dir
in $ac_x_header_dirs; do
16817 if test -r "$ac_dir/X11/Xlib.h"; then
16818 ac_x_includes
=$ac_dir
16823 rm -f conftest.err conftest.i conftest.
$ac_ext
16824 fi # $ac_x_includes = no
16826 if test "$ac_x_libraries" = no
; then
16827 # Check for the libraries.
16828 # See if we find them without any special options.
16829 # Don't add to $LIBS permanently.
16832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16833 /* end confdefs.h. */
16834 #include <X11/Xlib.h>
16843 if ac_fn_c_try_link
"$LINENO"; then :
16845 # We can link X programs with no special library path.
16849 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
16851 # Don't even attempt the hair of trying to link an X program!
16852 for ac_extension
in a so sl dylib la dll
; do
16853 if test -r "$ac_dir/libX11.$ac_extension"; then
16854 ac_x_libraries
=$ac_dir
16860 rm -f core conftest.err conftest.
$ac_objext \
16861 conftest
$ac_exeext conftest.
$ac_ext
16862 fi # $ac_x_libraries = no
16864 case $ac_x_includes,$ac_x_libraries in #(
16865 no
,* |
*,no |
*\'*)
16866 # Didn't find X, or a directory has "'" in its name.
16867 ac_cv_have_x
="have_x=no";; #(
16869 # Record where we found X for the cache.
16870 ac_cv_have_x
="have_x=yes\
16871 ac_x_includes='$ac_x_includes'\
16872 ac_x_libraries='$ac_x_libraries'"
16878 eval "$ac_cv_have_x"
16881 if test "$have_x" != yes; then
16882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
16883 $as_echo "$have_x" >&6; }
16886 # If each of the values was on the command line, it overrides each guess.
16887 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
16888 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
16889 # Update the cache value to reflect the command line values.
16890 ac_cv_have_x
="have_x=yes\
16891 ac_x_includes='$x_includes'\
16892 ac_x_libraries='$x_libraries'"
16893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
16894 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
16898 # Unlike the sim directory, whether a simulator is linked is controlled by
16899 # presence of a gdb_sim definition in the target configure.tgt entry.
16900 # This code just checks for a few cases where we'd like to ignore those
16901 # definitions, even when they're present in the '.mt' file. These cases
16902 # are when --disable-sim is specified, or if the simulator directory is
16903 # not part of the source tree.
16905 # Check whether --enable-sim was given.
16906 if test "${enable_sim+set}" = set; then :
16907 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
16908 echo "enableval = ${enableval}";
16909 case "${enableval}" in
16910 yes) ignore_sim
=false
;;
16911 no
) ignore_sim
=true
;;
16912 *) ignore_sim
=false
;;
16919 if test ! -d "${srcdir}/../sim"; then
16925 if test "${ignore_sim}" = "false"; then
16926 if test x
"${gdb_sim}" != x
; then
16928 SIM_OBS
="remote-sim.o"
16930 $as_echo "#define WITH_SIM 1" >>confdefs.h
16933 # Some tdep code should only be compiled in when the ppc sim is
16934 # built. PR sim/13418.
16938 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
16958 # List of host floatformats.
16960 cat >>confdefs.h
<<_ACEOF
16961 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
16965 cat >>confdefs.h
<<_ACEOF
16966 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
16970 cat >>confdefs.h
<<_ACEOF
16971 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
16975 # target_subdir is used by the testsuite to find the target libraries.
16977 if test "${host}" != "${target}"; then
16978 target_subdir
="${target_alias}/"
16982 # Import nat definitions.
16983 nat_makefile_frag
=/dev
/null
16984 if test "${gdb_native}" = "yes"; then
16985 .
${srcdir}/configure.nat
16986 nativefile
=$NAT_FILE
16999 if test x
"${gdb_osabi}" != x
; then
17001 cat >>confdefs.h
<<_ACEOF
17002 #define GDB_OSABI_DEFAULT $gdb_osabi
17007 # Check whether --enable-gdbserver was given.
17008 if test "${enable_gdbserver+set}" = set; then :
17009 enableval
=$enable_gdbserver; case "${enableval}" in
17011 *) as_fn_error $?
"bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
17014 enable_gdbserver
=auto
17018 # We only build gdbserver automatically in a native configuration, and
17019 # only if the user did not explicitly disable its build.
17020 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
17022 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
17023 if test "x$build_gdbserver" = xyes
; then
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17025 $as_echo "yes" >&6; }
17026 subdirs
="$subdirs gdbserver"
17028 gdbserver_build_enabled
=yes
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17031 $as_echo "no" >&6; }
17035 # If the user explicitly request the gdbserver to be built, verify that
17036 # we were in fact able to enable it.
17037 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
17038 as_fn_error $?
"Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
17041 # Check for babeltrace and babeltrace-ctf
17043 # Check whether --with-babeltrace was given.
17044 if test "${with_babeltrace+set}" = set; then :
17045 withval
=$with_babeltrace;
17047 with_babeltrace
=auto
17050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
17051 $as_echo_n "checking whether to use babeltrace... " >&6; }
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
17053 $as_echo "$with_babeltrace" >&6; }
17055 if test "x$with_babeltrace" = "xno"; then
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
17057 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
17059 # Append -Werror to CFLAGS so that configure can catch the warning
17060 # "assignment from incompatible pointer type", which is related to
17061 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
17062 # in GDB, while babeltrace 1.0.3 is broken.
17063 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
17064 # safe to save and restore CFLAGS here.
17065 saved_CFLAGS
=$CFLAGS
17066 CFLAGS
="$CFLAGS -Werror"
17077 acl_save_prefix
="$prefix"
17078 prefix
="$acl_final_prefix"
17079 acl_save_exec_prefix
="$exec_prefix"
17080 exec_prefix
="$acl_final_exec_prefix"
17082 eval additional_includedir
=\"$includedir\"
17083 eval additional_libdir
=\"$libdir\"
17085 exec_prefix
="$acl_save_exec_prefix"
17086 prefix
="$acl_save_prefix"
17089 # Check whether --with-libbabeltrace-prefix was given.
17090 if test "${with_libbabeltrace_prefix+set}" = set; then :
17091 withval
=$with_libbabeltrace_prefix;
17092 if test "X$withval" = "Xno"; then
17095 if test "X$withval" = "X"; then
17097 acl_save_prefix
="$prefix"
17098 prefix
="$acl_final_prefix"
17099 acl_save_exec_prefix
="$exec_prefix"
17100 exec_prefix
="$acl_final_exec_prefix"
17102 eval additional_includedir
=\"$includedir\"
17103 eval additional_libdir
=\"$libdir\"
17105 exec_prefix
="$acl_save_exec_prefix"
17106 prefix
="$acl_save_prefix"
17109 additional_includedir
="$withval/include"
17110 additional_libdir
="$withval/lib"
17121 names_already_handled
=
17122 names_next_round
='babeltrace babeltrace-ctf'
17123 while test -n "$names_next_round"; do
17124 names_this_round
="$names_next_round"
17126 for name
in $names_this_round; do
17128 for n
in $names_already_handled; do
17129 if test "$n" = "$name"; then
17130 already_handled
=yes
17134 if test -z "$already_handled"; then
17135 names_already_handled
="$names_already_handled $name"
17136 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17137 eval value
=\"\
$HAVE_LIB$uppername\"
17138 if test -n "$value"; then
17139 if test "$value" = yes; then
17140 eval value
=\"\
$LIB$uppername\"
17141 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
17142 eval value
=\"\
$LTLIB$uppername\"
17143 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
17152 if test $use_additional = yes; then
17153 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17154 found_dir
="$additional_libdir"
17155 found_so
="$additional_libdir/lib$name.$shlibext"
17156 if test -f "$additional_libdir/lib$name.la"; then
17157 found_la
="$additional_libdir/lib$name.la"
17160 if test -f "$additional_libdir/lib$name.$libext"; then
17161 found_dir
="$additional_libdir"
17162 found_a
="$additional_libdir/lib$name.$libext"
17163 if test -f "$additional_libdir/lib$name.la"; then
17164 found_la
="$additional_libdir/lib$name.la"
17169 if test "X$found_dir" = "X"; then
17170 for x
in $LDFLAGS $LTLIBBABELTRACE; do
17172 acl_save_prefix
="$prefix"
17173 prefix
="$acl_final_prefix"
17174 acl_save_exec_prefix
="$exec_prefix"
17175 exec_prefix
="$acl_final_exec_prefix"
17177 exec_prefix
="$acl_save_exec_prefix"
17178 prefix
="$acl_save_prefix"
17182 dir
=`echo "X$x" | sed -e 's/^X-L//'`
17183 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17185 found_so
="$dir/lib$name.$shlibext"
17186 if test -f "$dir/lib$name.la"; then
17187 found_la
="$dir/lib$name.la"
17190 if test -f "$dir/lib$name.$libext"; then
17192 found_a
="$dir/lib$name.$libext"
17193 if test -f "$dir/lib$name.la"; then
17194 found_la
="$dir/lib$name.la"
17200 if test "X$found_dir" != "X"; then
17205 if test "X$found_dir" != "X"; then
17206 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
17207 if test "X$found_so" != "X"; then
17208 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
17209 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17212 for x
in $ltrpathdirs; do
17213 if test "X$x" = "X$found_dir"; then
17218 if test -z "$haveit"; then
17219 ltrpathdirs
="$ltrpathdirs $found_dir"
17221 if test "$hardcode_direct" = yes; then
17222 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17224 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
17225 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17227 for x
in $rpathdirs; do
17228 if test "X$x" = "X$found_dir"; then
17233 if test -z "$haveit"; then
17234 rpathdirs
="$rpathdirs $found_dir"
17238 for x
in $LDFLAGS $LIBBABELTRACE; do
17240 acl_save_prefix
="$prefix"
17241 prefix
="$acl_final_prefix"
17242 acl_save_exec_prefix
="$exec_prefix"
17243 exec_prefix
="$acl_final_exec_prefix"
17245 exec_prefix
="$acl_save_exec_prefix"
17246 prefix
="$acl_save_prefix"
17248 if test "X$x" = "X-L$found_dir"; then
17253 if test -z "$haveit"; then
17254 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
17256 if test "$hardcode_minus_L" != no
; then
17257 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17259 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
17265 if test "X$found_a" != "X"; then
17266 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
17268 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
17271 additional_includedir
=
17272 case "$found_dir" in
17274 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17275 additional_includedir
="$basedir/include"
17278 if test "X$additional_includedir" != "X"; then
17279 if test "X$additional_includedir" != "X/usr/include"; then
17281 if test "X$additional_includedir" = "X/usr/local/include"; then
17282 if test -n "$GCC"; then
17284 linux
*) haveit
=yes;;
17288 if test -z "$haveit"; then
17289 for x
in $CPPFLAGS $INCBABELTRACE; do
17291 acl_save_prefix
="$prefix"
17292 prefix
="$acl_final_prefix"
17293 acl_save_exec_prefix
="$exec_prefix"
17294 exec_prefix
="$acl_final_exec_prefix"
17296 exec_prefix
="$acl_save_exec_prefix"
17297 prefix
="$acl_save_prefix"
17299 if test "X$x" = "X-I$additional_includedir"; then
17304 if test -z "$haveit"; then
17305 if test -d "$additional_includedir"; then
17306 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
17312 if test -n "$found_la"; then
17313 save_libdir
="$libdir"
17314 case "$found_la" in
17315 */* |
*\\*) .
"$found_la" ;;
17316 *) .
"./$found_la" ;;
17318 libdir
="$save_libdir"
17319 for dep
in $dependency_libs; do
17322 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
17323 if test "X$additional_libdir" != "X/usr/lib"; then
17325 if test "X$additional_libdir" = "X/usr/local/lib"; then
17326 if test -n "$GCC"; then
17328 linux
*) haveit
=yes;;
17332 if test -z "$haveit"; then
17334 for x
in $LDFLAGS $LIBBABELTRACE; do
17336 acl_save_prefix
="$prefix"
17337 prefix
="$acl_final_prefix"
17338 acl_save_exec_prefix
="$exec_prefix"
17339 exec_prefix
="$acl_final_exec_prefix"
17341 exec_prefix
="$acl_save_exec_prefix"
17342 prefix
="$acl_save_prefix"
17344 if test "X$x" = "X-L$additional_libdir"; then
17349 if test -z "$haveit"; then
17350 if test -d "$additional_libdir"; then
17351 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
17355 for x
in $LDFLAGS $LTLIBBABELTRACE; do
17357 acl_save_prefix
="$prefix"
17358 prefix
="$acl_final_prefix"
17359 acl_save_exec_prefix
="$exec_prefix"
17360 exec_prefix
="$acl_final_exec_prefix"
17362 exec_prefix
="$acl_save_exec_prefix"
17363 prefix
="$acl_save_prefix"
17365 if test "X$x" = "X-L$additional_libdir"; then
17370 if test -z "$haveit"; then
17371 if test -d "$additional_libdir"; then
17372 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
17379 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
17380 if test "$enable_rpath" != no
; then
17382 for x
in $rpathdirs; do
17383 if test "X$x" = "X$dir"; then
17388 if test -z "$haveit"; then
17389 rpathdirs
="$rpathdirs $dir"
17392 for x
in $ltrpathdirs; do
17393 if test "X$x" = "X$dir"; then
17398 if test -z "$haveit"; then
17399 ltrpathdirs
="$ltrpathdirs $dir"
17404 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17407 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17410 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
17411 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
17417 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
17418 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
17424 if test "X$rpathdirs" != "X"; then
17425 if test -n "$hardcode_libdir_separator"; then
17427 for found_dir
in $rpathdirs; do
17428 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17430 acl_save_libdir
="$libdir"
17432 eval flag
=\"$hardcode_libdir_flag_spec\"
17433 libdir
="$acl_save_libdir"
17434 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
17436 for found_dir
in $rpathdirs; do
17437 acl_save_libdir
="$libdir"
17438 libdir
="$found_dir"
17439 eval flag
=\"$hardcode_libdir_flag_spec\"
17440 libdir
="$acl_save_libdir"
17441 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
17445 if test "X$ltrpathdirs" != "X"; then
17446 for found_dir
in $ltrpathdirs; do
17447 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
17452 ac_save_CPPFLAGS
="$CPPFLAGS"
17454 for element
in $INCBABELTRACE; do
17456 for x
in $CPPFLAGS; do
17458 acl_save_prefix
="$prefix"
17459 prefix
="$acl_final_prefix"
17460 acl_save_exec_prefix
="$exec_prefix"
17461 exec_prefix
="$acl_final_exec_prefix"
17463 exec_prefix
="$acl_save_exec_prefix"
17464 prefix
="$acl_save_prefix"
17466 if test "X$x" = "X$element"; then
17471 if test -z "$haveit"; then
17472 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
17477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
17478 $as_echo_n "checking for libbabeltrace... " >&6; }
17479 if ${ac_cv_libbabeltrace+:} false
; then :
17480 $as_echo_n "(cached) " >&6
17483 ac_save_LIBS
="$LIBS"
17484 LIBS
="$LIBS $LIBBABELTRACE"
17485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17486 /* end confdefs.h. */
17487 #include <babeltrace/babeltrace.h>
17488 #include <babeltrace/ctf/events.h>
17489 #include <babeltrace/ctf/iterator.h>
17493 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
17494 struct bt_ctf_event *event = NULL;
17495 const struct bt_definition *scope;
17497 pos->type = BT_SEEK_BEGIN;
17498 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
17499 scope = bt_ctf_get_top_level_scope (event,
17500 BT_STREAM_EVENT_HEADER);
17501 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
17507 if ac_fn_c_try_link
"$LINENO"; then :
17508 ac_cv_libbabeltrace
=yes
17510 ac_cv_libbabeltrace
=no
17512 rm -f core conftest.err conftest.
$ac_objext \
17513 conftest
$ac_exeext conftest.
$ac_ext
17514 LIBS
="$ac_save_LIBS"
17517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
17518 $as_echo "$ac_cv_libbabeltrace" >&6; }
17519 if test "$ac_cv_libbabeltrace" = yes; then
17520 HAVE_LIBBABELTRACE
=yes
17522 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
17524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
17525 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
17526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
17527 $as_echo "$LIBBABELTRACE" >&6; }
17529 HAVE_LIBBABELTRACE
=no
17530 CPPFLAGS
="$ac_save_CPPFLAGS"
17540 CFLAGS
=$saved_CFLAGS
17542 if test "$HAVE_LIBBABELTRACE" != yes; then
17543 if test "$with_babeltrace" = yes; then
17544 as_fn_error $?
"babeltrace is missing or unusable" "$LINENO" 5
17546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
17547 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
17554 # Check whether --with-xxhash was given.
17555 if test "${with_xxhash+set}" = set; then :
17556 withval
=$with_xxhash;
17562 if test "x$with_xxhash" != "xno"; then
17573 acl_save_prefix
="$prefix"
17574 prefix
="$acl_final_prefix"
17575 acl_save_exec_prefix
="$exec_prefix"
17576 exec_prefix
="$acl_final_exec_prefix"
17578 eval additional_includedir
=\"$includedir\"
17579 eval additional_libdir
=\"$libdir\"
17581 exec_prefix
="$acl_save_exec_prefix"
17582 prefix
="$acl_save_prefix"
17585 # Check whether --with-libxxhash-prefix was given.
17586 if test "${with_libxxhash_prefix+set}" = set; then :
17587 withval
=$with_libxxhash_prefix;
17588 if test "X$withval" = "Xno"; then
17591 if test "X$withval" = "X"; then
17593 acl_save_prefix
="$prefix"
17594 prefix
="$acl_final_prefix"
17595 acl_save_exec_prefix
="$exec_prefix"
17596 exec_prefix
="$acl_final_exec_prefix"
17598 eval additional_includedir
=\"$includedir\"
17599 eval additional_libdir
=\"$libdir\"
17601 exec_prefix
="$acl_save_exec_prefix"
17602 prefix
="$acl_save_prefix"
17605 additional_includedir
="$withval/include"
17606 additional_libdir
="$withval/lib"
17617 names_already_handled
=
17618 names_next_round
='xxhash '
17619 while test -n "$names_next_round"; do
17620 names_this_round
="$names_next_round"
17622 for name
in $names_this_round; do
17624 for n
in $names_already_handled; do
17625 if test "$n" = "$name"; then
17626 already_handled
=yes
17630 if test -z "$already_handled"; then
17631 names_already_handled
="$names_already_handled $name"
17632 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17633 eval value
=\"\
$HAVE_LIB$uppername\"
17634 if test -n "$value"; then
17635 if test "$value" = yes; then
17636 eval value
=\"\
$LIB$uppername\"
17637 test -z "$value" || LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$value"
17638 eval value
=\"\
$LTLIB$uppername\"
17639 test -z "$value" || LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$value"
17648 if test $use_additional = yes; then
17649 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17650 found_dir
="$additional_libdir"
17651 found_so
="$additional_libdir/lib$name.$shlibext"
17652 if test -f "$additional_libdir/lib$name.la"; then
17653 found_la
="$additional_libdir/lib$name.la"
17656 if test -f "$additional_libdir/lib$name.$libext"; then
17657 found_dir
="$additional_libdir"
17658 found_a
="$additional_libdir/lib$name.$libext"
17659 if test -f "$additional_libdir/lib$name.la"; then
17660 found_la
="$additional_libdir/lib$name.la"
17665 if test "X$found_dir" = "X"; then
17666 for x
in $LDFLAGS $LTLIBXXHASH; do
17668 acl_save_prefix
="$prefix"
17669 prefix
="$acl_final_prefix"
17670 acl_save_exec_prefix
="$exec_prefix"
17671 exec_prefix
="$acl_final_exec_prefix"
17673 exec_prefix
="$acl_save_exec_prefix"
17674 prefix
="$acl_save_prefix"
17678 dir
=`echo "X$x" | sed -e 's/^X-L//'`
17679 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17681 found_so
="$dir/lib$name.$shlibext"
17682 if test -f "$dir/lib$name.la"; then
17683 found_la
="$dir/lib$name.la"
17686 if test -f "$dir/lib$name.$libext"; then
17688 found_a
="$dir/lib$name.$libext"
17689 if test -f "$dir/lib$name.la"; then
17690 found_la
="$dir/lib$name.la"
17696 if test "X$found_dir" != "X"; then
17701 if test "X$found_dir" != "X"; then
17702 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$found_dir -l$name"
17703 if test "X$found_so" != "X"; then
17704 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
17705 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
17708 for x
in $ltrpathdirs; do
17709 if test "X$x" = "X$found_dir"; then
17714 if test -z "$haveit"; then
17715 ltrpathdirs
="$ltrpathdirs $found_dir"
17717 if test "$hardcode_direct" = yes; then
17718 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
17720 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
17721 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
17723 for x
in $rpathdirs; do
17724 if test "X$x" = "X$found_dir"; then
17729 if test -z "$haveit"; then
17730 rpathdirs
="$rpathdirs $found_dir"
17734 for x
in $LDFLAGS $LIBXXHASH; do
17736 acl_save_prefix
="$prefix"
17737 prefix
="$acl_final_prefix"
17738 acl_save_exec_prefix
="$exec_prefix"
17739 exec_prefix
="$acl_final_exec_prefix"
17741 exec_prefix
="$acl_save_exec_prefix"
17742 prefix
="$acl_save_prefix"
17744 if test "X$x" = "X-L$found_dir"; then
17749 if test -z "$haveit"; then
17750 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir"
17752 if test "$hardcode_minus_L" != no
; then
17753 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
17755 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
17761 if test "X$found_a" != "X"; then
17762 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_a"
17764 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir -l$name"
17767 additional_includedir
=
17768 case "$found_dir" in
17770 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17771 additional_includedir
="$basedir/include"
17774 if test "X$additional_includedir" != "X"; then
17775 if test "X$additional_includedir" != "X/usr/include"; then
17777 if test "X$additional_includedir" = "X/usr/local/include"; then
17778 if test -n "$GCC"; then
17780 linux
*) haveit
=yes;;
17784 if test -z "$haveit"; then
17785 for x
in $CPPFLAGS $INCXXHASH; do
17787 acl_save_prefix
="$prefix"
17788 prefix
="$acl_final_prefix"
17789 acl_save_exec_prefix
="$exec_prefix"
17790 exec_prefix
="$acl_final_exec_prefix"
17792 exec_prefix
="$acl_save_exec_prefix"
17793 prefix
="$acl_save_prefix"
17795 if test "X$x" = "X-I$additional_includedir"; then
17800 if test -z "$haveit"; then
17801 if test -d "$additional_includedir"; then
17802 INCXXHASH
="${INCXXHASH}${INCXXHASH:+ }-I$additional_includedir"
17808 if test -n "$found_la"; then
17809 save_libdir
="$libdir"
17810 case "$found_la" in
17811 */* |
*\\*) .
"$found_la" ;;
17812 *) .
"./$found_la" ;;
17814 libdir
="$save_libdir"
17815 for dep
in $dependency_libs; do
17818 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
17819 if test "X$additional_libdir" != "X/usr/lib"; then
17821 if test "X$additional_libdir" = "X/usr/local/lib"; then
17822 if test -n "$GCC"; then
17824 linux
*) haveit
=yes;;
17828 if test -z "$haveit"; then
17830 for x
in $LDFLAGS $LIBXXHASH; do
17832 acl_save_prefix
="$prefix"
17833 prefix
="$acl_final_prefix"
17834 acl_save_exec_prefix
="$exec_prefix"
17835 exec_prefix
="$acl_final_exec_prefix"
17837 exec_prefix
="$acl_save_exec_prefix"
17838 prefix
="$acl_save_prefix"
17840 if test "X$x" = "X-L$additional_libdir"; then
17845 if test -z "$haveit"; then
17846 if test -d "$additional_libdir"; then
17847 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$additional_libdir"
17851 for x
in $LDFLAGS $LTLIBXXHASH; do
17853 acl_save_prefix
="$prefix"
17854 prefix
="$acl_final_prefix"
17855 acl_save_exec_prefix
="$exec_prefix"
17856 exec_prefix
="$acl_final_exec_prefix"
17858 exec_prefix
="$acl_save_exec_prefix"
17859 prefix
="$acl_save_prefix"
17861 if test "X$x" = "X-L$additional_libdir"; then
17866 if test -z "$haveit"; then
17867 if test -d "$additional_libdir"; then
17868 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$additional_libdir"
17875 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
17876 if test "$enable_rpath" != no
; then
17878 for x
in $rpathdirs; do
17879 if test "X$x" = "X$dir"; then
17884 if test -z "$haveit"; then
17885 rpathdirs
="$rpathdirs $dir"
17888 for x
in $ltrpathdirs; do
17889 if test "X$x" = "X$dir"; then
17894 if test -z "$haveit"; then
17895 ltrpathdirs
="$ltrpathdirs $dir"
17900 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17903 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17906 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$dep"
17907 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$dep"
17913 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
17914 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l$name"
17920 if test "X$rpathdirs" != "X"; then
17921 if test -n "$hardcode_libdir_separator"; then
17923 for found_dir
in $rpathdirs; do
17924 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17926 acl_save_libdir
="$libdir"
17928 eval flag
=\"$hardcode_libdir_flag_spec\"
17929 libdir
="$acl_save_libdir"
17930 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
17932 for found_dir
in $rpathdirs; do
17933 acl_save_libdir
="$libdir"
17934 libdir
="$found_dir"
17935 eval flag
=\"$hardcode_libdir_flag_spec\"
17936 libdir
="$acl_save_libdir"
17937 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
17941 if test "X$ltrpathdirs" != "X"; then
17942 for found_dir
in $ltrpathdirs; do
17943 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-R$found_dir"
17948 ac_save_CPPFLAGS
="$CPPFLAGS"
17950 for element
in $INCXXHASH; do
17952 for x
in $CPPFLAGS; do
17954 acl_save_prefix
="$prefix"
17955 prefix
="$acl_final_prefix"
17956 acl_save_exec_prefix
="$exec_prefix"
17957 exec_prefix
="$acl_final_exec_prefix"
17959 exec_prefix
="$acl_save_exec_prefix"
17960 prefix
="$acl_save_prefix"
17962 if test "X$x" = "X$element"; then
17967 if test -z "$haveit"; then
17968 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
17973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxxhash" >&5
17974 $as_echo_n "checking for libxxhash... " >&6; }
17975 if ${ac_cv_libxxhash+:} false
; then :
17976 $as_echo_n "(cached) " >&6
17979 ac_save_LIBS
="$LIBS"
17980 LIBS
="$LIBS $LIBXXHASH"
17981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17982 /* end confdefs.h. */
17983 #include <xxhash.h>
17987 XXH32("foo", 3, 0);
17993 if ac_fn_c_try_link
"$LINENO"; then :
17994 ac_cv_libxxhash
=yes
17998 rm -f core conftest.err conftest.
$ac_objext \
17999 conftest
$ac_exeext conftest.
$ac_ext
18000 LIBS
="$ac_save_LIBS"
18003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxxhash" >&5
18004 $as_echo "$ac_cv_libxxhash" >&6; }
18005 if test "$ac_cv_libxxhash" = yes; then
18008 $as_echo "#define HAVE_LIBXXHASH 1" >>confdefs.h
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libxxhash" >&5
18011 $as_echo_n "checking how to link with libxxhash... " >&6; }
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXXHASH" >&5
18013 $as_echo "$LIBXXHASH" >&6; }
18016 CPPFLAGS
="$ac_save_CPPFLAGS"
18026 if test "$HAVE_LIBXXHASH" != yes; then
18027 if test "$with_xxhash" = yes; then
18028 as_fn_error $?
"xxhash is missing or unusable" "$LINENO" 5
18031 if test "x$with_xxhash" = "xauto"; then
18032 with_xxhash
="$HAVE_LIBXXHASH"
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
18037 $as_echo_n "checking whether to use xxhash... " >&6; }
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
18039 $as_echo "$with_xxhash" >&6; }
18043 if test "${nativefile}" != ""; then
18044 case "${nativefile}" in
18045 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
18046 * ) GDB_NM_FILE
="${nativefile}"
18048 ac_config_links
="$ac_config_links nm.h:$GDB_NM_FILE"
18051 cat >>confdefs.h
<<_ACEOF
18052 #define GDB_NM_FILE "${GDB_NM_FILE}"
18060 for ac_prog
in xsltproc
18062 # Extract the first word of "$ac_prog", so it can be a program name with args.
18063 set dummy
$ac_prog; ac_word
=$2
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18065 $as_echo_n "checking for $ac_word... " >&6; }
18066 if ${ac_cv_path_XSLTPROC+:} false
; then :
18067 $as_echo_n "(cached) " >&6
18071 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
18074 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18075 for as_dir
in $PATH
18078 test -z "$as_dir" && as_dir
=.
18079 for ac_exec_ext
in '' $ac_executable_extensions; do
18080 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18081 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
18082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18092 XSLTPROC
=$ac_cv_path_XSLTPROC
18093 if test -n "$XSLTPROC"; then
18094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18095 $as_echo "$XSLTPROC" >&6; }
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18098 $as_echo "no" >&6; }
18102 test -n "$XSLTPROC" && break
18104 test -n "$XSLTPROC" || XSLTPROC
="missing"
18106 if test "x$USE_MAINTAINER_MODE" = xyes
; then
18107 if test "${XSLTPROC}" = missing
; then
18108 as_fn_error $?
"unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
18116 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
18120 # Check whether we will enable the inclusion of unit tests when
18123 # The default value of this option changes depending whether we're on
18124 # development mode (in which case it's "true") or not (in which case
18126 # Check whether --enable-unit-tests was given.
18127 if test "${enable_unit_tests+set}" = set; then :
18128 enableval
=$enable_unit_tests; case "${enableval}" in
18129 yes) enable_unittests
=true
;;
18130 no
) enable_unittests
=false
;;
18131 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
18134 enable_unittests
=$development
18138 if $enable_unittests; then
18140 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
18143 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_UNITTESTS_OBS) gdbsupport/selftest.o selftest-arch.o"
18144 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_UNITTESTS_SRCS) gdbsupport/selftest.c selftest-arch.c"
18150 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
18151 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$gdb_ac_transform"`
18152 if test "x$GDB_TRANSFORM_NAME" = x
; then
18153 GDB_TRANSFORM_NAME
=gdb
18158 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
18159 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$gdb_ac_transform"`
18160 if test "x$GCORE_TRANSFORM_NAME" = x
; then
18161 GCORE_TRANSFORM_NAME
=gcore
18165 ac_config_files
="$ac_config_files gcore"
18167 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
18170 cat >confcache
<<\_ACEOF
18171 # This file is a shell script that caches the results of configure
18172 # tests run on this system so they can be shared between configure
18173 # scripts and configure runs, see configure's option --config-cache.
18174 # It is not useful on other systems. If it contains results you don't
18175 # want to keep, you may remove or edit it.
18177 # config.status only pays attention to the cache file if you give it
18178 # the --recheck option to rerun configure.
18180 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18181 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18182 # following values.
18186 # The following way of writing the cache mishandles newlines in values,
18187 # but we know of no workaround that is simple, portable, and efficient.
18188 # So, we kill variables containing newlines.
18189 # Ultrix sh set writes to stderr and can't be redirected directly,
18190 # and sets the high bit in the cache file unless we assign to the vars.
18192 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18193 eval ac_val
=\$
$ac_var
18197 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18198 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18201 _ | IFS | as_nl
) ;; #(
18202 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
18203 *) { eval $ac_var=; unset $ac_var;} ;;
18209 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18210 *${as_nl}ac_space
=\
*)
18211 # `set' does not quote correctly, so add quotes: double-quote
18212 # substitution turns \\\\ into \\, and sed turns \\ into \.
18215 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18218 # `set' quotes correctly as required by POSIX, so do not add quotes.
18219 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18228 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18230 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18232 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
18233 if test -w "$cache_file"; then
18234 if test "x$cache_file" != "x/dev/null"; then
18235 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18236 $as_echo "$as_me: updating cache $cache_file" >&6;}
18237 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
18238 cat confcache
>"$cache_file"
18240 case $cache_file in #(
18242 mv -f confcache
"$cache_file"$$
&&
18243 mv -f "$cache_file"$$
"$cache_file" ;; #(
18245 mv -f confcache
"$cache_file" ;;
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18251 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18256 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
18257 # Let make expand exec_prefix.
18258 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
18260 DEFS
=-DHAVE_CONFIG_H
18265 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
18266 # 1. Remove the extension, and $U if already installed.
18267 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
18268 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
18269 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18270 # will be set to the directory where LIBOBJS objects are built.
18271 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18272 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
18274 LIBOBJS
=$ac_libobjs
18276 LTLIBOBJS
=$ac_ltlibobjs
18279 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18280 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
18281 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18283 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
18284 as_fn_error $?
"conditional \"HAVE_PYTHON\" was never defined.
18285 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18287 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
18288 as_fn_error $?
"conditional \"HAVE_GUILE\" was never defined.
18289 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18293 : "${CONFIG_STATUS=./config.status}"
18295 ac_clean_files_save
=$ac_clean_files
18296 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18298 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18300 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18302 # Generated by $as_me.
18303 # Run this file to recreate the current configuration.
18304 # Compiler output produced by configure, useful for debugging
18305 # configure, is in config.log if it exists.
18308 ac_cs_recheck=false
18311 SHELL=\${CONFIG_SHELL-$SHELL}
18314 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
18315 ## -------------------- ##
18316 ## M4sh Initialization. ##
18317 ## -------------------- ##
18319 # Be more Bourne compatible
18320 DUALCASE
=1; export DUALCASE
# for MKS sh
18321 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
18324 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18325 # is contrary to our usage. Disable this feature.
18326 alias -g '${1+"$@"}'='"$@"'
18327 setopt NO_GLOB_SUBST
18329 case `(set -o) 2>/dev/null` in #(
18341 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18342 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18343 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18344 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18345 # Prefer a ksh shell builtin over an external printf program on Solaris,
18346 # but without wasting forks for bash or zsh.
18347 if test -z "$BASH_VERSION$ZSH_VERSION" \
18348 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18349 as_echo='print
-r --'
18350 as_echo_n='print
-rn --'
18351 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18352 as_echo='printf %s
\n'
18353 as_echo_n='printf %s
'
18355 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18356 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
18357 as_echo_n='/usr
/ucb
/echo -n'
18359 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18360 as_echo_n_body='eval
18364 expr "X$arg" : "X\\(.*\\)$as_nl";
18365 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18367 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
18369 export as_echo_n_body
18370 as_echo_n='sh
-c $as_echo_n_body as_echo
'
18372 export as_echo_body
18373 as_echo='sh
-c $as_echo_body as_echo
'
18376 # The user is always right.
18377 if test "${PATH_SEPARATOR+set}" != set; then
18379 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18380 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18387 # We need space, tab and new line, in precisely that order. Quoting is
18388 # there to prevent editors from complaining about space-tab.
18389 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18390 # splitting by setting IFS to empty value.)
18393 # Find who we are. Look in the path if we contain no directory separator.
18396 *[\\/]* ) as_myself=$0 ;;
18397 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18398 for as_dir in $PATH
18401 test -z "$as_dir" && as_dir=.
18402 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18408 # We did not find ourselves, most probably we were run as `sh COMMAND'
18409 # in which case we are not to be found in the path.
18410 if test "x$as_myself" = x
; then
18413 if test ! -f "$as_myself"; then
18414 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18418 # Unset variables that we do not need and which cause bugs (e.g. in
18419 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18420 # suppresses any "Segmentation fault" message there. '((' could
18421 # trigger a bug in pdksh 5.2.14.
18422 for as_var
in BASH_ENV ENV MAIL MAILPATH
18423 do eval test x\
${$as_var+set} = xset \
18424 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
18437 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
18440 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18441 # ----------------------------------------
18442 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18443 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18444 # script with STATUS, using 1 if that was 0.
18447 as_status
=$1; test $as_status -eq 0 && as_status
=1
18449 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
18450 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18452 $as_echo "$as_me: error: $2" >&2
18453 as_fn_exit
$as_status
18457 # as_fn_set_status STATUS
18458 # -----------------------
18459 # Set $? to STATUS, without forking.
18460 as_fn_set_status
()
18463 } # as_fn_set_status
18465 # as_fn_exit STATUS
18466 # -----------------
18467 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18471 as_fn_set_status
$1
18477 # Portably unset VAR.
18480 { eval $1=; unset $1;}
18482 as_unset
=as_fn_unset
18483 # as_fn_append VAR VALUE
18484 # ----------------------
18485 # Append the text in VALUE to the end of the definition contained in VAR. Take
18486 # advantage of any shell optimizations that allow amortized linear growth over
18487 # repeated appends, instead of the typical quadratic growth present in naive
18489 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
18490 eval 'as_fn_append ()
18501 # as_fn_arith ARG...
18502 # ------------------
18503 # Perform arithmetic evaluation on the ARGs, and store the result in the
18504 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18505 # must be portable across $(()) and expr.
18506 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
18507 eval 'as_fn_arith ()
18514 as_val
=`expr "$@" || test $? -eq 1`
18519 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
18520 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
18526 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18527 as_basename
=basename
18532 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
18538 as_me
=`$as_basename -- "$0" ||
18539 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18540 X"$0" : 'X\(//\)$' \| \
18541 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18543 sed '/^.*\/\([^/][^/]*\)\/*$/{
18557 # Avoid depending upon Character Ranges.
18558 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18559 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18560 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18561 as_cr_digits
='0123456789'
18562 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18564 ECHO_C
= ECHO_N
= ECHO_T
=
18565 case `echo -n x` in #(((((
18567 case `echo 'xy\c'` in
18568 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
18570 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
18577 rm -f conf$$ conf$$.exe conf$$.
file
18578 if test -d conf$$.dir
; then
18579 rm -f conf$$.dir
/conf$$.
file
18582 mkdir conf$$.dir
2>/dev
/null
18584 if (echo >conf$$.
file) 2>/dev
/null
; then
18585 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
18587 # ... but there are two gotchas:
18588 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18589 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18590 # In both cases, we have to default to `cp -pR'.
18591 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
18593 elif ln conf$$.
file conf$$
2>/dev
/null
; then
18601 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
18602 rmdir conf$$.dir
2>/dev
/null
18607 # Create "$as_dir" as a directory, including parents if necessary.
18612 -*) as_dir
=.
/$as_dir;;
18614 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
18618 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18619 *) as_qdir
=$as_dir;;
18621 as_dirs
="'$as_qdir' $as_dirs"
18622 as_dir
=`$as_dirname -- "$as_dir" ||
18623 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18624 X"$as_dir" : 'X\(//\)[^/]' \| \
18625 X"$as_dir" : 'X\(//\)$' \| \
18626 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18627 $as_echo X"$as_dir" |
18628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18632 /^X\(\/\/\)[^/].*/{
18645 test -d "$as_dir" && break
18647 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
18648 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
18652 if mkdir
-p .
2>/dev
/null
; then
18653 as_mkdir_p
='mkdir -p "$as_dir"'
18655 test -d .
/-p && rmdir .
/-p
18660 # as_fn_executable_p FILE
18661 # -----------------------
18662 # Test if FILE is an executable regular file.
18663 as_fn_executable_p
()
18665 test -f "$1" && test -x "$1"
18666 } # as_fn_executable_p
18667 as_test_x
='test -x'
18668 as_executable_p
=as_fn_executable_p
18670 # Sed expression to map a string onto a valid CPP name.
18671 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18673 # Sed expression to map a string onto a valid variable name.
18674 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18678 ## ----------------------------------- ##
18679 ## Main body of $CONFIG_STATUS script. ##
18680 ## ----------------------------------- ##
18682 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
18684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18685 # Save the log message, to keep $0 and so on meaningful, and to
18686 # report actual input values of CONFIG_FILES etc. instead of their
18687 # values after options handling.
18689 This file was extended by $as_me, which was
18690 generated by GNU Autoconf 2.69. Invocation command line was
18692 CONFIG_FILES = $CONFIG_FILES
18693 CONFIG_HEADERS = $CONFIG_HEADERS
18694 CONFIG_LINKS = $CONFIG_LINKS
18695 CONFIG_COMMANDS = $CONFIG_COMMANDS
18698 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18703 case $ac_config_files in *"
18704 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
18707 case $ac_config_headers in *"
18708 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
18712 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18713 # Files that config.status was made for.
18714 config_files="$ac_config_files"
18715 config_headers="$ac_config_headers"
18716 config_links="$ac_config_links"
18717 config_commands="$ac_config_commands"
18721 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18723 \`$as_me' instantiates files and other configuration actions
18724 from templates according to the current configuration. Unless the files
18725 and actions are specified as TAGs, all are instantiated by default.
18727 Usage: $0 [OPTION]... [TAG]...
18729 -h, --help print this help, then exit
18730 -V, --version print version number and configuration settings, then exit
18731 --config print configuration, then exit
18732 -q, --quiet, --silent
18733 do not print progress messages
18734 -d, --debug don't remove temporary files
18735 --recheck update $as_me by reconfiguring in the same conditions
18736 --file=FILE[:TEMPLATE]
18737 instantiate the configuration file FILE
18738 --header=FILE[:TEMPLATE]
18739 instantiate the configuration header FILE
18741 Configuration files:
18744 Configuration headers:
18747 Configuration links:
18750 Configuration commands:
18753 Report bugs to the package provider."
18756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18757 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18760 configured by $0, generated by GNU Autoconf 2.69,
18761 with options \\"\$ac_cs_config\\"
18763 Copyright (C) 2012 Free Software Foundation, Inc.
18764 This config.status script is free software; the Free Software Foundation
18765 gives unlimited permission to copy, distribute and modify it."
18771 test -n "\$AWK" || AWK=awk
18774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18775 # The default lists apply if the user does not specify any file.
18781 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18782 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
18786 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18798 # Handling of the options.
18799 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18801 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
18802 $as_echo "$ac_cs_version"; exit ;;
18803 --config |
--confi |
--conf |
--con |
--co |
--c )
18804 $as_echo "$ac_cs_config"; exit ;;
18805 --debug |
--debu |
--deb |
--de |
--d |
-d )
18807 --file |
--fil |
--fi |
--f )
18810 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18811 '') as_fn_error $?
"missing file argument" ;;
18813 as_fn_append CONFIG_FILES
" '$ac_optarg'"
18814 ac_need_defaults
=false
;;
18815 --header |
--heade |
--head |
--hea )
18818 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18820 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
18821 ac_need_defaults
=false
;;
18823 # Conflict between --help and --header
18824 as_fn_error $?
"ambiguous option: \`$1'
18825 Try \`$0 --help' for more information.";;
18826 --help |
--hel |
-h )
18827 $as_echo "$ac_cs_usage"; exit ;;
18828 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18829 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18832 # This is an error.
18833 -*) as_fn_error $?
"unrecognized option: \`$1'
18834 Try \`$0 --help' for more information." ;;
18836 *) as_fn_append ac_config_targets
" $1"
18837 ac_need_defaults
=false
;;
18843 ac_configure_extra_args
=
18845 if $ac_cs_silent; then
18847 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18852 if \$ac_cs_recheck; then
18853 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18855 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18856 CONFIG_SHELL='$SHELL'
18857 export CONFIG_SHELL
18862 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18866 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18867 ## Running $as_me. ##
18873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18877 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
18878 GDB_NM_FILE=$GDB_NM_FILE
18882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18884 # Handling of arguments.
18885 for ac_config_target
in $ac_config_targets
18887 case $ac_config_target in
18888 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
18889 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
18890 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
18891 "nm.h") CONFIG_LINKS
="$CONFIG_LINKS nm.h:$GDB_NM_FILE" ;;
18892 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
18893 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18894 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
18895 "gdb-gdb.py") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.py" ;;
18896 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
18897 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
18899 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18904 # If the user did not use the arguments to specify the items to instantiate,
18905 # then the envvar interface is used. Set only those that are not.
18906 # We use the long form for the default assignment because of an extremely
18907 # bizarre bug on SunOS 4.1.3.
18908 if $ac_need_defaults; then
18909 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18910 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18911 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
18912 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18915 # Have a temporary directory for convenience. Make it in the build tree
18916 # simply because there is no reason against having it here, and in addition,
18917 # creating and moving files from /tmp can sometimes cause problems.
18918 # Hook for its removal unless debugging.
18919 # Note that there is a small window in which the directory will not be cleaned:
18920 # after its creation but before its name has been assigned to `$tmp'.
18924 trap 'exit_status=$?
18925 : "${ac_tmp:=$tmp}"
18926 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18928 trap 'as_fn_exit 1' 1 2 13 15
18930 # Create a (secure) tmp directory for tmp files.
18933 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18937 tmp
=.
/conf$$
-$RANDOM
18938 (umask 077 && mkdir
"$tmp")
18939 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
18942 # Set up the scripts for CONFIG_FILES section.
18943 # No need to generate them if there are no CONFIG_FILES.
18944 # This happens for instance with `./config.status config.h'.
18945 if test -n "$CONFIG_FILES"; then
18947 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
18948 ac_cs_awk_getline
=:
18949 ac_cs_awk_pipe_init
=
18950 ac_cs_awk_read_file
='
18951 while ((getline aline < (F[key])) > 0)
18954 ac_cs_awk_pipe_fini
=
18956 ac_cs_awk_getline
=false
18957 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
18958 ac_cs_awk_read_file
='
18960 print "cat " F[key] " &&"
18961 '$ac_cs_awk_pipe_init
18962 # The final `:' finishes the AND list.
18963 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
18965 ac_cr
=`echo X | tr X '\015'`
18966 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18967 # But we know of no other shell where ac_cr would be empty at this
18968 # point, so we can use a bashism as a fallback.
18969 if test "x$ac_cr" = x
; then
18970 eval ac_cr
=\$
\'\\r
\'
18972 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18973 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18976 ac_cs_awk_cr
=$ac_cr
18979 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18982 # Create commands to substitute file output variables.
18984 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18985 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
18986 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
18989 } >conf$
$files.sh
&&
18990 . .
/conf$
$files.sh ||
18991 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
18992 rm -f conf$
$files.sh
18995 echo "cat >conf$$subs.awk <<_ACEOF" &&
18996 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18998 } >conf$$subs.sh ||
18999 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19000 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19002 for ac_last_try in false false false false false :; do
19003 . ./conf$$subs.sh ||
19004 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19006 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
19007 if test $ac_delim_n = $ac_delim_num; then
19009 elif $ac_last_try; then
19010 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19012 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19015 rm -f conf$$subs.sh
19017 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19018 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
19022 s/^/S["/; s
/!.
*/"]=/
19032 s/\(.\{148\}\)..*/\1/
19034 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
19039 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19046 s/\(.\{148\}\)..*/\1/
19048 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
19052 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19057 ' <conf$$subs.awk | sed '
19062 ' >>$CONFIG_STATUS || ac_write_fail=1
19063 rm -f conf$$subs.awk
19064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19066 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
19067 for (key in S) S_is_set[key] = 1
19069 \$ac_cs_awk_pipe_init
19073 nfields = split(line, field, "@
")
19075 len = length(field[1])
19076 for (i = 2; i < nfields; i++) {
19078 keylen = length(key)
19079 if (S_is_set[key]) {
19081 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19082 len += length(value) + length(field[++i])
19087 if (nfields == 3 && !substed) {
19089 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19090 \$ac_cs_awk_read_file
19096 \$ac_cs_awk_pipe_fini
19099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19100 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19101 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
19104 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
19105 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
19108 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19109 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
19110 # trailing colons and then remove the whole line if VPATH becomes empty
19111 # (actually we leave an empty line to preserve line numbers).
19112 if test "x
$srcdir" = x.; then
19113 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19132 fi # test -n "$CONFIG_FILES"
19134 # Set up the scripts for CONFIG_HEADERS section.
19135 # No need to generate them if there are no CONFIG_HEADERS.
19136 # This happens for instance with `./config.status Makefile'.
19137 if test -n "$CONFIG_HEADERS"; then
19138 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
19142 # Transform confdefs.h into an awk script `defines.awk', embedded as
19143 # here-document in config.status, that substitutes the proper values into
19144 # config.h.in to produce config.h.
19146 # Create a delimiter string that does not exist in confdefs.h, to ease
19147 # handling of long lines.
19149 for ac_last_try in false false :; do
19150 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
19151 if test -z "$ac_tt"; then
19153 elif $ac_last_try; then
19154 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
19156 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19160 # For the awk script, D is an array of macro values keyed by name,
19161 # likewise P contains macro parameters if any. Preserve backslash
19162 # newline sequences.
19164 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19166 s/.\{148\}/&'"$ac_delim"'/g
19169 s/^[ ]*#[ ]*define[ ][ ]*/ /
19176 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
19178 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
19182 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
19183 D["\
1"]=" \
3\\\\\\n
"\\/p
19185 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
19190 s/.\{148\}/&'"$ac_delim"'/g
19195 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
19198 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
19200 ' <confdefs.h | sed '
19201 s/'"$ac_delim"'/"\\\
19202 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19205 for (key in D) D_is_set[key] = 1
19208 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19210 split(line, arg, " ")
19211 if (arg[1] == "#") {
19215 defundef
= substr
(arg
[1], 2)
19218 split(mac1
, mac2
, "(") #)
19220 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
19221 if (D_is_set
[macro
]) {
19222 # Preserve the white space surrounding the "#".
19223 print prefix
"define", macro P
[macro
] D
[macro
]
19226 # Replace #undef with comments. This is necessary, for example,
19227 # in the case of _POSIX_SOURCE, which is predefined and required
19228 # on some systems where configure will not decide to define it.
19229 if (defundef
== "undef") {
19230 print
"/*", prefix defundef
, macro
, "*/"
19238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19239 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
19240 fi # test -n "$CONFIG_HEADERS"
19243 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
19248 :[FHLC
]) ac_mode
=$ac_tag; continue;;
19250 case $ac_mode$ac_tag in
19252 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
19253 :[FH
]-) ac_tag
=-:-;;
19254 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
19271 -) ac_f
="$ac_tmp/stdin";;
19272 *) # Look for the file first in the build tree, then in the source tree
19273 # (if the path is not absolute). The absolute path cannot be DOS-style,
19274 # because $ac_f cannot contain `:'.
19278 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
19280 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19282 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19283 as_fn_append ac_file_inputs
" '$ac_f'"
19286 # Let's still pretend it is `configure' which instantiates (i.e., don't
19287 # use $as_me), people would be surprised to read:
19288 # /* config.h. Generated by config.status. */
19289 configure_input
='Generated from '`
19290 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19292 if test x
"$ac_file" != x-
; then
19293 configure_input
="$ac_file. $configure_input"
19294 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19295 $as_echo "$as_me: creating $ac_file" >&6;}
19297 # Neutralize special characters interpreted by sed in replacement strings.
19298 case $configure_input in #(
19299 *\
&* |
*\|
* |
*\\* )
19300 ac_sed_conf_input
=`$as_echo "$configure_input" |
19301 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19302 *) ac_sed_conf_input
=$configure_input;;
19306 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
19307 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
19312 ac_dir
=`$as_dirname -- "$ac_file" ||
19313 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19314 X"$ac_file" : 'X\(//\)[^/]' \| \
19315 X"$ac_file" : 'X\(//\)$' \| \
19316 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19317 $as_echo X"$ac_file" |
19318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19322 /^X\(\/\/\)[^/].*/{
19335 as_dir
="$ac_dir"; as_fn_mkdir_p
19339 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19341 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19342 # A ".." for each directory in $ac_dir_suffix.
19343 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19344 case $ac_top_builddir_sub in
19345 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19346 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
19349 ac_abs_top_builddir
=$ac_pwd
19350 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
19351 # for backward compatibility:
19352 ac_top_builddir
=$ac_top_build_prefix
19355 .
) # We are building in place.
19357 ac_top_srcdir
=$ac_top_builddir_sub
19358 ac_abs_top_srcdir
=$ac_pwd ;;
19359 [\\/]* | ?
:[\\/]* ) # Absolute name.
19360 ac_srcdir
=$srcdir$ac_dir_suffix;
19361 ac_top_srcdir
=$srcdir
19362 ac_abs_top_srcdir
=$srcdir ;;
19363 *) # Relative name.
19364 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
19365 ac_top_srcdir
=$ac_top_build_prefix$srcdir
19366 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
19368 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
19378 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
19379 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
19383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19384 # If the template does not know about datarootdir, expand it.
19385 # FIXME: This hack should be removed a few years after 2.60.
19386 ac_datarootdir_hack
=; ac_datarootdir_seen
=
19397 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19398 *datarootdir
*) ac_datarootdir_seen
=yes;;
19399 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
19400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19401 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19404 ac_datarootdir_hack='
19405 s&@datadir@&$datadir&g
19406 s&@docdir@&$docdir&g
19407 s&@infodir@&$infodir&g
19408 s&@localedir@&$localedir&g
19409 s&@mandir@&$mandir&g
19410 s&\\\${datarootdir}&$datarootdir&g' ;;
19414 # Neutralize VPATH when `$srcdir' = `.'.
19415 # Shell code in configure.ac might set extrasub.
19416 # FIXME: do we really want to maintain this feature?
19417 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19418 ac_sed_extra="$ac_vpsub
19421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19423 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19424 s|@configure_input@|
$ac_sed_conf_input|
;t t
19425 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
19426 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
19427 s
&@srcdir@
&$ac_srcdir&;t t
19428 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
19429 s
&@top_srcdir@
&$ac_top_srcdir&;t t
19430 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
19431 s
&@builddir@
&$ac_builddir&;t t
19432 s
&@abs_builddir@
&$ac_abs_builddir&;t t
19433 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
19434 s
&@INSTALL@
&$ac_INSTALL&;t t
19435 $ac_datarootdir_hack
19437 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19438 if $ac_cs_awk_getline; then
19439 $AWK -f "$ac_tmp/subs.
awk"
19441 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
19443 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
19445 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19446 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
19447 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19448 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
19449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
19450 which seems to be undefined. Please make sure it is defined" >&5
19451 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
19452 which seems to be undefined. Please make sure it is defined" >&2;}
19454 rm -f "$ac_tmp/stdin"
19456 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19457 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19459 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19465 if test x"$ac_file" != x-; then
19467 $as_echo "/* $configure_input */" \
19468 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19469 } >"$ac_tmp/config.h" \
19470 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19471 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19472 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19473 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19476 mv "$ac_tmp/config.h" "$ac_file" \
19477 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19480 $as_echo "/* $configure_input */" \
19481 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19482 || as_fn_error $? "could not create -" "$LINENO" 5
19490 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
19493 # Prefer the file from the source tree if names are identical.
19494 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
19495 ac_source=$srcdir/$ac_source
19498 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
19499 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
19501 if test ! -r "$ac_source"; then
19502 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
19506 # Try a relative symlink, then a hard link, then a copy.
19508 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
19509 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
19511 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
19512 ln "$ac_source" "$ac_file" 2>/dev/null ||
19513 cp -p "$ac_source" "$ac_file" ||
19514 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
19517 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19518 $as_echo "$as_me: executing $ac_file commands" >&6;}
19523 case $ac_file$ac_mode in
19524 "config.h":H) echo > stamp-h ;;
19525 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
19526 "nm.h":L) echo > stamp-nmh ;;
19527 "gcore":F) chmod +x gcore ;;
19535 ac_clean_files=$ac_clean_files_save
19537 test $ac_write_fail = 0 ||
19538 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19541 # configure is writing to config.log, and then calls config.status.
19542 # config.status does its own redirection, appending to config.log.
19543 # Unfortunately, on DOS this fails, as config.log is still kept open
19544 # by configure, so config.status won't be able to
write to it
; its
19545 # output is simply discarded. So we exec the FD to /dev/null,
19546 # effectively closing config.log, so it can be properly (re)opened and
19547 # appended to by config.status. When coming back to configure, we
19548 # need to make the FD available again.
19549 if test "$no_create" != yes; then
19551 ac_config_status_args
=
19552 test "$silent" = yes &&
19553 ac_config_status_args
="$ac_config_status_args --quiet"
19555 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19557 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19558 # would make configure fail if this is the last instruction.
19559 $ac_cs_success || as_fn_exit
1
19563 # CONFIG_SUBDIRS section.
19565 if test "$no_recursion" != yes; then
19567 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19568 # so they do not pile up.
19569 ac_sub_configure_args
=
19571 eval "set x $ac_configure_args"
19575 if test -n "$ac_prev"; then
19580 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
19581 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
19582 ac_prev
=cache_file
;;
19583 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
19584 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
19587 --config-cache |
-C)
19589 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
19591 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
19593 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
19595 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
19597 --disable-option-checking)
19601 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19603 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
19607 # Always prepend --prefix to ensure using the same prefix
19608 # in subdir configurations.
19609 ac_arg
="--prefix=$prefix"
19611 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19613 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
19616 if test "$silent" = yes; then
19617 ac_sub_configure_args
="--silent $ac_sub_configure_args"
19620 # Always prepend --disable-option-checking to silence warnings, since
19621 # different subdirs can have different --enable and --with options.
19622 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
19625 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
19627 # Do not complain, so a configure script can configure whichever
19628 # parts of a large source tree are present.
19629 test -d "$srcdir/$ac_dir" ||
continue
19631 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19632 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19633 $as_echo "$ac_msg" >&6
19634 as_dir
="$ac_dir"; as_fn_mkdir_p
19638 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19640 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19641 # A ".." for each directory in $ac_dir_suffix.
19642 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19643 case $ac_top_builddir_sub in
19644 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19645 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
19648 ac_abs_top_builddir
=$ac_pwd
19649 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
19650 # for backward compatibility:
19651 ac_top_builddir
=$ac_top_build_prefix
19654 .
) # We are building in place.
19656 ac_top_srcdir
=$ac_top_builddir_sub
19657 ac_abs_top_srcdir
=$ac_pwd ;;
19658 [\\/]* | ?
:[\\/]* ) # Absolute name.
19659 ac_srcdir
=$srcdir$ac_dir_suffix;
19660 ac_top_srcdir
=$srcdir
19661 ac_abs_top_srcdir
=$srcdir ;;
19662 *) # Relative name.
19663 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
19664 ac_top_srcdir
=$ac_top_build_prefix$srcdir
19665 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
19667 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
19672 # Check for guested configure; otherwise get Cygnus style configure.
19673 if test -f "$ac_srcdir/configure.gnu"; then
19674 ac_sub_configure
=$ac_srcdir/configure.gnu
19675 elif test -f "$ac_srcdir/configure"; then
19676 ac_sub_configure
=$ac_srcdir/configure
19677 elif test -f "$ac_srcdir/configure.in"; then
19678 # This should be Cygnus configure.
19679 ac_sub_configure
=$ac_aux_dir/configure
19681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19682 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19686 # The recursion is here.
19687 if test -n "$ac_sub_configure"; then
19688 # Make the cache file name correct relative to the subdirectory.
19689 case $cache_file in
19690 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
19691 *) # Relative name.
19692 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
19695 { $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
19696 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19697 # The eval makes quoting arguments work.
19698 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19699 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19700 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19706 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19708 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}