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
737 READLINE_TEXI_INCFLAG
762 HAVE_NATIVE_GCORE_TARGET
788 INSTALL_STRIP_PROGRAM
817 MAINTAINER_MODE_FALSE
846 program_transform_name
857 ac_subst_files
='nat_makefile_frag'
859 enable_option_checking
860 enable_maintainer_mode
863 with_separate_debug_dir
865 with_relocated_sources
867 with_auto_load_safe_path
897 enable_source_highlight
904 with_system_gdbinit_dir
906 enable_build_warnings
907 enable_gdb_build_warnings
917 with_libbabeltrace_prefix
918 with_libbabeltrace_type
920 with_libxxhash_prefix
924 ac_precious_vars
='build_alias
941 ac_subdirs_all
='testsuite
944 # Initialize some variables set by options.
946 ac_init_version
=false
947 ac_unrecognized_opts
=
949 # The variables have the same names as the options, with
950 # dashes changed to underlines.
958 program_transform_name
=s
,x
,x
,
966 # Installation directory options.
967 # These are left unexpanded so users can "make install exec_prefix=/foo"
968 # and all the variables that are supposed to be based on exec_prefix
969 # by default will actually change.
970 # Use braces instead of parens because sh, perl, etc. also accept them.
971 # (The list follows the same order as the GNU Coding Standards.)
972 bindir
='${exec_prefix}/bin'
973 sbindir
='${exec_prefix}/sbin'
974 libexecdir
='${exec_prefix}/libexec'
975 datarootdir
='${prefix}/share'
976 datadir
='${datarootdir}'
977 sysconfdir
='${prefix}/etc'
978 sharedstatedir
='${prefix}/com'
979 localstatedir
='${prefix}/var'
980 includedir
='${prefix}/include'
981 oldincludedir
='/usr/include'
982 docdir
='${datarootdir}/doc/${PACKAGE}'
983 infodir
='${datarootdir}/info'
988 libdir
='${exec_prefix}/lib'
989 localedir
='${datarootdir}/locale'
990 mandir
='${datarootdir}/man'
996 # If the previous option needs an argument, assign it.
997 if test -n "$ac_prev"; then
998 eval $ac_prev=\
$ac_option
1004 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1009 # Accept the important Cygnus configure options, so we can diagnose typos.
1011 case $ac_dashdash$ac_option in
1015 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1017 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1018 bindir
=$ac_optarg ;;
1020 -build |
--build |
--buil |
--bui |
--bu)
1021 ac_prev
=build_alias
;;
1022 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1023 build_alias
=$ac_optarg ;;
1025 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1026 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1027 ac_prev
=cache_file
;;
1028 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1029 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1030 cache_file
=$ac_optarg ;;
1032 --config-cache |
-C)
1033 cache_file
=config.cache
;;
1035 -datadir |
--datadir |
--datadi |
--datad)
1037 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1038 datadir
=$ac_optarg ;;
1040 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1041 |
--dataroo |
--dataro |
--datar)
1042 ac_prev
=datarootdir
;;
1043 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1044 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1045 datarootdir
=$ac_optarg ;;
1047 -disable-* |
--disable-*)
1048 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1051 as_fn_error $?
"invalid feature name: $ac_useropt"
1052 ac_useropt_orig
=$ac_useropt
1053 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1054 case $ac_user_opts in
1056 "enable_
$ac_useropt"
1058 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1059 ac_unrecognized_sep
=', ';;
1061 eval enable_
$ac_useropt=no
;;
1063 -docdir |
--docdir |
--docdi |
--doc |
--do)
1065 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1066 docdir
=$ac_optarg ;;
1068 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1070 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1071 dvidir
=$ac_optarg ;;
1073 -enable-* |
--enable-*)
1074 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1077 as_fn_error $?
"invalid feature name: $ac_useropt"
1078 ac_useropt_orig
=$ac_useropt
1079 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1080 case $ac_user_opts in
1082 "enable_
$ac_useropt"
1084 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1085 ac_unrecognized_sep
=', ';;
1087 eval enable_
$ac_useropt=\
$ac_optarg ;;
1089 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1090 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1091 |
--exec |
--exe |
--ex)
1092 ac_prev
=exec_prefix
;;
1093 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1094 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1095 |
--exec=* |
--exe=* |
--ex=*)
1096 exec_prefix
=$ac_optarg ;;
1098 -gas |
--gas |
--ga |
--g)
1099 # Obsolete; use --with-gas.
1102 -help |
--help |
--hel |
--he |
-h)
1103 ac_init_help
=long
;;
1104 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1105 ac_init_help
=recursive
;;
1106 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1107 ac_init_help
=short
;;
1109 -host |
--host |
--hos |
--ho)
1110 ac_prev
=host_alias
;;
1111 -host=* |
--host=* |
--hos=* |
--ho=*)
1112 host_alias
=$ac_optarg ;;
1114 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1116 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1118 htmldir
=$ac_optarg ;;
1120 -includedir |
--includedir |
--includedi |
--included |
--include \
1121 |
--includ |
--inclu |
--incl |
--inc)
1122 ac_prev
=includedir
;;
1123 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1124 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1125 includedir
=$ac_optarg ;;
1127 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1129 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1130 infodir
=$ac_optarg ;;
1132 -libdir |
--libdir |
--libdi |
--libd)
1134 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1135 libdir
=$ac_optarg ;;
1137 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1138 |
--libexe |
--libex |
--libe)
1139 ac_prev
=libexecdir
;;
1140 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1141 |
--libexe=* |
--libex=* |
--libe=*)
1142 libexecdir
=$ac_optarg ;;
1144 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1145 ac_prev
=localedir
;;
1146 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1147 localedir
=$ac_optarg ;;
1149 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1150 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1151 ac_prev
=localstatedir
;;
1152 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1153 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1154 localstatedir
=$ac_optarg ;;
1156 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1158 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1159 mandir
=$ac_optarg ;;
1161 -nfp |
--nfp |
--nf)
1162 # Obsolete; use --without-fp.
1165 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1166 |
--no-cr |
--no-c |
-n)
1169 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1170 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1173 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1174 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1175 |
--oldin |
--oldi |
--old |
--ol |
--o)
1176 ac_prev
=oldincludedir
;;
1177 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1178 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1179 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1180 oldincludedir
=$ac_optarg ;;
1182 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1184 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1185 prefix
=$ac_optarg ;;
1187 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1188 |
--program-pre |
--program-pr |
--program-p)
1189 ac_prev
=program_prefix
;;
1190 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1191 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1192 program_prefix
=$ac_optarg ;;
1194 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1195 |
--program-suf |
--program-su |
--program-s)
1196 ac_prev
=program_suffix
;;
1197 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1198 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1199 program_suffix
=$ac_optarg ;;
1201 -program-transform-name |
--program-transform-name \
1202 |
--program-transform-nam |
--program-transform-na \
1203 |
--program-transform-n |
--program-transform- \
1204 |
--program-transform |
--program-transfor \
1205 |
--program-transfo |
--program-transf \
1206 |
--program-trans |
--program-tran \
1207 |
--progr-tra |
--program-tr |
--program-t)
1208 ac_prev
=program_transform_name
;;
1209 -program-transform-name=* |
--program-transform-name=* \
1210 |
--program-transform-nam=* |
--program-transform-na=* \
1211 |
--program-transform-n=* |
--program-transform-=* \
1212 |
--program-transform=* |
--program-transfor=* \
1213 |
--program-transfo=* |
--program-transf=* \
1214 |
--program-trans=* |
--program-tran=* \
1215 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1216 program_transform_name
=$ac_optarg ;;
1218 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1220 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1221 pdfdir
=$ac_optarg ;;
1223 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1225 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1228 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1229 |
-silent |
--silent |
--silen |
--sile |
--sil)
1232 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1234 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1236 sbindir
=$ac_optarg ;;
1238 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1239 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1240 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1242 ac_prev
=sharedstatedir
;;
1243 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1244 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1245 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1247 sharedstatedir
=$ac_optarg ;;
1249 -site |
--site |
--sit)
1251 -site=* |
--site=* |
--sit=*)
1254 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1256 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1257 srcdir
=$ac_optarg ;;
1259 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1260 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1261 ac_prev
=sysconfdir
;;
1262 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1263 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1264 sysconfdir
=$ac_optarg ;;
1266 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1267 ac_prev
=target_alias
;;
1268 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1269 target_alias
=$ac_optarg ;;
1271 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1274 -version |
--version |
--versio |
--versi |
--vers |
-V)
1275 ac_init_version
=: ;;
1278 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1281 as_fn_error $?
"invalid package name: $ac_useropt"
1282 ac_useropt_orig
=$ac_useropt
1283 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1284 case $ac_user_opts in
1288 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1289 ac_unrecognized_sep
=', ';;
1291 eval with_
$ac_useropt=\
$ac_optarg ;;
1293 -without-* |
--without-*)
1294 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1295 # Reject names that are not valid shell variable names.
1296 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1297 as_fn_error $?
"invalid package name: $ac_useropt"
1298 ac_useropt_orig
=$ac_useropt
1299 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1300 case $ac_user_opts in
1304 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1305 ac_unrecognized_sep
=', ';;
1307 eval with_
$ac_useropt=no
;;
1310 # Obsolete; use --with-x.
1313 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1314 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1315 ac_prev
=x_includes
;;
1316 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1317 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1318 x_includes
=$ac_optarg ;;
1320 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1321 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1322 ac_prev
=x_libraries
;;
1323 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1324 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1325 x_libraries
=$ac_optarg ;;
1327 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1328 Try \`$0 --help' for more information"
1332 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1333 # Reject names that are not valid shell variable names.
1334 case $ac_envvar in #(
1335 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1336 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1338 eval $ac_envvar=\
$ac_optarg
1339 export $ac_envvar ;;
1342 # FIXME: should be removed in autoconf 3.0.
1343 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1344 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1345 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1346 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1352 if test -n "$ac_prev"; then
1353 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1354 as_fn_error $?
"missing argument to $ac_option"
1357 if test -n "$ac_unrecognized_opts"; then
1358 case $enable_option_checking in
1360 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1361 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1365 # Check all directory arguments for consistency.
1366 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1367 datadir sysconfdir sharedstatedir localstatedir includedir \
1368 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1369 libdir localedir mandir
1371 eval ac_val
=\$
$ac_var
1372 # Remove trailing slashes.
1375 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1376 eval $ac_var=\
$ac_val;;
1378 # Be sure to have absolute directory names.
1380 [\\/$
]* | ?
:[\\/]* ) continue;;
1381 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1383 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1386 # There might be people who depend on the old broken behavior: `$host'
1387 # used to hold the argument of --host etc.
1388 # FIXME: To remove some day.
1391 target
=$target_alias
1393 # FIXME: To remove some day.
1394 if test "x$host_alias" != x
; then
1395 if test "x$build_alias" = x
; then
1396 cross_compiling
=maybe
1397 elif test "x$build_alias" != "x$host_alias"; then
1403 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1405 test "$silent" = yes && exec 6>/dev
/null
1408 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1409 ac_ls_di
=`ls -di .` &&
1410 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1411 as_fn_error $?
"working directory cannot be determined"
1412 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1413 as_fn_error $?
"pwd does not report name of working directory"
1416 # Find the source files, if location was not specified.
1417 if test -z "$srcdir"; then
1418 ac_srcdir_defaulted
=yes
1419 # Try the directory containing this script, then the parent directory.
1420 ac_confdir
=`$as_dirname -- "$as_myself" ||
1421 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1422 X"$as_myself" : 'X\(//\)[^/]' \| \
1423 X"$as_myself" : 'X\(//\)$' \| \
1424 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1425 $as_echo X"$as_myself" |
1426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1444 if test ! -r "$srcdir/$ac_unique_file"; then
1448 ac_srcdir_defaulted
=no
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1451 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1452 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1454 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1456 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1458 # When building in place, set srcdir=.
1459 if test "$ac_abs_confdir" = "$ac_pwd"; then
1462 # Remove unnecessary trailing slashes from srcdir.
1463 # Double slashes in file names in object file debugging info
1464 # mess up M-x gdb in Emacs.
1466 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1468 for ac_var
in $ac_precious_vars; do
1469 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1470 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1471 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1472 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1476 # Report the --help message.
1478 if test "$ac_init_help" = "long"; then
1479 # Omit some internal or obsolete options to make the list less imposing.
1480 # This message is too long to be a string in the A/UX 3.1 sh.
1482 \`configure' configures this package to adapt to many kinds of systems.
1484 Usage: $0 [OPTION]... [VAR=VALUE]...
1486 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1487 VAR=VALUE. See below for descriptions of some of the useful variables.
1489 Defaults for the options are specified in brackets.
1492 -h, --help display this help and exit
1493 --help=short display options specific to this package
1494 --help=recursive display the short help of all the included packages
1495 -V, --version display version information and exit
1496 -q, --quiet, --silent do not print \`checking ...' messages
1497 --cache-file=FILE cache test results in FILE [disabled]
1498 -C, --config-cache alias for \`--cache-file=config.cache'
1499 -n, --no-create do not create output files
1500 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1502 Installation directories:
1503 --prefix=PREFIX install architecture-independent files in PREFIX
1504 [$ac_default_prefix]
1505 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1508 By default, \`make install' will install all the files in
1509 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1510 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1511 for instance \`--prefix=\$HOME'.
1513 For better control, use the options below.
1515 Fine tuning of the installation directories:
1516 --bindir=DIR user executables [EPREFIX/bin]
1517 --sbindir=DIR system admin executables [EPREFIX/sbin]
1518 --libexecdir=DIR program executables [EPREFIX/libexec]
1519 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1520 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1521 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1522 --libdir=DIR object code libraries [EPREFIX/lib]
1523 --includedir=DIR C header files [PREFIX/include]
1524 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1525 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1526 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1527 --infodir=DIR info documentation [DATAROOTDIR/info]
1528 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1529 --mandir=DIR man documentation [DATAROOTDIR/man]
1530 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1531 --htmldir=DIR html documentation [DOCDIR]
1532 --dvidir=DIR dvi documentation [DOCDIR]
1533 --pdfdir=DIR pdf documentation [DOCDIR]
1534 --psdir=DIR ps documentation [DOCDIR]
1540 --program-prefix=PREFIX prepend PREFIX to installed program names
1541 --program-suffix=SUFFIX append SUFFIX to installed program names
1542 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1545 --x-includes=DIR X include files are
in DIR
1546 --x-libraries=DIR X library files are
in DIR
1549 --build=BUILD configure
for building on BUILD
[guessed
]
1550 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1551 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1555 if test -n "$ac_init_help"; then
1560 --disable-option-checking ignore unrecognized
--enable/--with options
1561 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1562 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1563 --enable-maintainer-mode
1564 enable make rules and dependencies not useful
(and
1565 sometimes confusing
) to the casual installer
1566 --enable-plugins Enable support
for plugins
1567 --disable-largefile omit support
for large files
1568 --enable-targets=TARGETS
1569 alternative target configurations
1570 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1571 --disable-gdbmi disable machine-interface
(MI
)
1572 --enable-tui enable full-screen terminal user interface
(TUI
)
1573 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1574 --enable-profiling enable profiling of GDB
1575 --enable-codesign=CERT sign gdb with
'codesign -s CERT'
1576 --disable-rpath do not hardcode runtime library paths
1577 --enable-source-highlight
1578 enable source-highlight
for source listings
1579 --enable-werror treat compile warnings as errors
1580 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1581 --enable-gdb-build-warnings
1582 enable GDB specific build-time compiler warnings
if
1584 --enable-ubsan enable undefined behavior sanitizer
(auto
/yes
/no
)
1585 --enable-sim link gdb with simulator
1586 --enable-unit-tests Enable the inclusion of unit tests when compiling
1590 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1591 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1592 --with-separate-debug-dir=PATH
1593 look for global separate debug info
in this path
1595 --with-gdb-datadir=PATH
look for global separate data files
in this path
1597 --with-relocated-sources=PATH
1598 automatically relocate this path
for source files
1599 --with-auto-load-dir=PATH
1600 directories from
which to load auto-loaded scripts
1601 [$debugdir:$datadir/auto-load
]
1602 --with-auto-load-safe-path=PATH
1603 directories safe to hold auto-loaded files
1604 [--with-auto-load-dir]
1605 --without-auto-load-safe-path
1606 do not restrict auto-loaded files locations
1607 --with-debuginfod Enable debuginfo lookups with debuginfod
1609 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1610 --with-curses use the curses library instead of the termcap
1612 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1613 --with-bugurl=URL Direct users to URL to report a bug
1614 --with-system-zlib use installed libz
1615 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1616 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1617 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1618 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1619 --with-iconv-bin=PATH specify where to find the iconv program
1620 --with-system-readline use installed readline library
1621 --with-jit-reader-dir=PATH
1622 directory to load the JIT readers from
1623 --with-expat include expat support (auto/yes/no)
1624 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1625 --without-libexpat-prefix don't search
for libexpat
in includedir and libdir
1626 --with-libexpat-type=TYPE
type of library to search
for (auto
/static
/shared
)
1627 --with-mpfr include MPFR support
(auto
/yes
/no
)
1628 --with-libmpfr-prefix[=DIR
] search
for libmpfr
in DIR
/include and DIR
/lib
1629 --without-libmpfr-prefix don
't search for libmpfr in includedir and libdir
1630 --with-libmpfr-type=TYPE type of library to search for (auto/static/shared)
1631 --with-python[=PYTHON] include python support
1632 (auto/yes/no/<python-program>)
1633 --with-python-libdir[=DIR]
1634 search for python's libraries
in DIR
1635 --with-guile[=GUILE
] include guile support
1636 (auto
/yes
/no
/<guile-version
>/<pkg-config-program
>)
1637 --with-intel-pt include Intel Processor Trace support
(auto
/yes
/no
)
1638 --with-libipt-prefix[=DIR
] search
for libipt
in DIR
/include and DIR
/lib
1639 --without-libipt-prefix don
't search for libipt in includedir and libdir
1640 --with-libipt-type=TYPE type of library to search for (auto/static/shared)
1641 --without-included-regex
1642 don't use included regex
; this is the default on
1643 systems with version
2 of the GNU C library
(use
1644 with caution on other system
)
1645 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1646 --with-system-gdbinit=PATH
1647 automatically load a system-wide gdbinit
file
1648 --with-system-gdbinit-dir=PATH
1649 automatically load system-wide gdbinit files from
1651 --with-lzma support lzma compression
(auto
/yes
/no
)
1652 --with-liblzma-prefix[=DIR
] search
for liblzma
in DIR
/include and DIR
/lib
1653 --without-liblzma-prefix don
't search for liblzma in includedir and libdir
1654 --with-liblzma-type=TYPE type of library to search for (auto/static/shared)
1655 --with-tcl directory containing tcl configuration (tclConfig.sh)
1656 --with-tk directory containing tk configuration (tkConfig.sh)
1657 --with-x use the X Window System
1658 --with-babeltrace include babeltrace support (auto/yes/no)
1659 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1660 --without-libbabeltrace-prefix don't search
for libbabeltrace
in includedir and libdir
1661 --with-libbabeltrace-type=TYPE
type of library to search
for (auto
/static
/shared
)
1662 --with-xxhash use libxxhash
for hashing
(faster
) (auto
/yes
/no
)
1663 --with-libxxhash-prefix[=DIR
] search
for libxxhash
in DIR
/include and DIR
/lib
1664 --without-libxxhash-prefix don
't search for libxxhash in includedir and libdir
1665 --with-libxxhash-type=TYPE type of library to search for (auto/static/shared)
1667 Some influential environment variables:
1668 CC C compiler command
1669 CFLAGS C compiler flags
1670 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1671 nonstandard directory <lib dir>
1672 LIBS libraries to pass to the linker, e.g. -l<library>
1673 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1674 you have headers in a nonstandard directory <include dir>
1675 CXX C++ compiler command
1676 CXXFLAGS C++ compiler flags
1678 MAKEINFO Parent configure detects if it is of sufficient version.
1680 Parameters for MAKEINFO.
1681 YACC The `Yet Another Compiler Compiler' implementation to use.
1682 Defaults to the first program found out of
: `bison -y', `byacc
',
1684 YFLAGS The list of arguments that will be passed by default to
$YACC.
1685 This
script will default YFLAGS to the empty string to avoid a
1686 default value of
`-d' given by some make applications.
1687 XMKMF Path to xmkmf, Makefile generator for X Window System
1689 Use these variables to override the choices made by `configure
' or to help
1690 it to find libraries and programs with nonstandard names/locations.
1692 Report bugs to the package provider.
1697 if test "$ac_init_help" = "recursive"; then
1698 # If there are subdirs, report their specific --help.
1699 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1700 test -d "$ac_dir" ||
1701 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1706 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1708 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.
[\\/]||
'`
1709 # A ".." for each directory in $ac_dir_suffix.
1710 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|
/[^
\\/]*|
/..|g
;s|
/||
'`
1711 case $ac_top_builddir_sub in
1712 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1713 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1716 ac_abs_top_builddir=$ac_pwd
1717 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1718 # for backward compatibility:
1719 ac_top_builddir=$ac_top_build_prefix
1722 .) # We are building in place.
1724 ac_top_srcdir=$ac_top_builddir_sub
1725 ac_abs_top_srcdir=$ac_pwd ;;
1726 [\\/]* | ?:[\\/]* ) # Absolute name.
1727 ac_srcdir=$srcdir$ac_dir_suffix;
1728 ac_top_srcdir=$srcdir
1729 ac_abs_top_srcdir=$srcdir ;;
1731 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1732 ac_top_srcdir=$ac_top_build_prefix$srcdir
1733 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1735 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1737 cd "$ac_dir" || { ac_status=$?; continue; }
1738 # Check for guested configure.
1739 if test -f "$ac_srcdir/configure.gnu"; then
1741 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1742 elif test -f "$ac_srcdir/configure"; then
1744 $SHELL "$ac_srcdir/configure" --help=recursive
1746 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1748 cd "$ac_pwd" || { ac_status=$?; break; }
1752 test -n "$ac_init_help" && exit $ac_status
1753 if $ac_init_version; then
1756 generated by GNU Autoconf 2.69
1758 Copyright (C) 2012 Free Software Foundation, Inc.
1759 This configure script is free software; the Free Software Foundation
1760 gives unlimited permission to copy, distribute and modify it.
1765 ## ------------------------ ##
1766 ## Autoconf initialization. ##
1767 ## ------------------------ ##
1769 # ac_fn_c_try_compile LINENO
1770 # --------------------------
1771 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1772 ac_fn_c_try_compile ()
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 rm -f conftest.$ac_objext
1776 if { { ac_try="$ac_compile"
1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779 *) ac_try_echo=$ac_try;;
1781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782 $as_echo "$ac_try_echo"; } >&5
1783 (eval "$ac_compile") 2>conftest.err
1785 if test -s conftest.err; then
1786 grep -v '^
*+' conftest.err >conftest.er1
1787 cat conftest.er1 >&5
1788 mv -f conftest.er1 conftest.err
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } && {
1792 test -z "$ac_c_werror_flag" ||
1793 test ! -s conftest.err
1794 } && test -s conftest.$ac_objext; then :
1797 $as_echo "$as_me: failed program was:" >&5
1798 sed 's
/^
/|
/' conftest.$ac_ext >&5
1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803 as_fn_set_status $ac_retval
1805 } # ac_fn_c_try_compile
1807 # ac_fn_cxx_try_compile LINENO
1808 # ----------------------------
1809 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1810 ac_fn_cxx_try_compile ()
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 rm -f conftest.$ac_objext
1814 if { { ac_try="$ac_compile"
1816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817 *) ac_try_echo=$ac_try;;
1819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820 $as_echo "$ac_try_echo"; } >&5
1821 (eval "$ac_compile") 2>conftest.err
1823 if test -s conftest.err; then
1824 grep -v '^
*+' conftest.err >conftest.er1
1825 cat conftest.er1 >&5
1826 mv -f conftest.er1 conftest.err
1828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829 test $ac_status = 0; } && {
1830 test -z "$ac_cxx_werror_flag" ||
1831 test ! -s conftest.err
1832 } && test -s conftest.$ac_objext; then :
1835 $as_echo "$as_me: failed program was:" >&5
1836 sed 's
/^
/|
/' conftest.$ac_ext >&5
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841 as_fn_set_status $ac_retval
1843 } # ac_fn_cxx_try_compile
1845 # ac_fn_c_try_cpp LINENO
1846 # ----------------------
1847 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 if { { ac_try="$ac_cpp conftest.$ac_ext"
1853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854 *) ac_try_echo=$ac_try;;
1856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857 $as_echo "$ac_try_echo"; } >&5
1858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1860 if test -s conftest.err; then
1861 grep -v '^
*+' conftest.err >conftest.er1
1862 cat conftest.er1 >&5
1863 mv -f conftest.er1 conftest.err
1865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866 test $ac_status = 0; } > conftest.i && {
1867 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1868 test ! -s conftest.err
1872 $as_echo "$as_me: failed program was:" >&5
1873 sed 's
/^
/|
/' conftest.$ac_ext >&5
1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878 as_fn_set_status $ac_retval
1882 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1883 # -------------------------------------------------------
1884 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1885 # the include files in INCLUDES and setting the cache variable VAR
1887 ac_fn_c_check_header_mongrel ()
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 if eval \${$3+:} false; then :
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1892 $as_echo_n "checking for $2... " >&6; }
1893 if eval \${$3+:} false; then :
1894 $as_echo_n "(cached) " >&6
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898 $as_echo "$ac_res" >&6; }
1900 # Is the header compilable?
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1902 $as_echo_n "checking $2 usability... " >&6; }
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1908 if ac_fn_c_try_compile "$LINENO"; then :
1909 ac_header_compiler=yes
1911 ac_header_compiler=no
1913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1915 $as_echo "$ac_header_compiler" >&6; }
1917 # Is the header present?
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1919 $as_echo_n "checking $2 presence... " >&6; }
1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1924 if ac_fn_c_try_cpp "$LINENO"; then :
1925 ac_header_preproc=yes
1927 ac_header_preproc=no
1929 rm -f conftest.err conftest.i conftest.$ac_ext
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1931 $as_echo "$ac_header_preproc" >&6; }
1933 # So? What about this header?
1934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1937 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1939 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1943 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1945 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1947 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1949 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1951 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1955 $as_echo_n "checking for $2... " >&6; }
1956 if eval \${$3+:} false; then :
1957 $as_echo_n "(cached) " >&6
1959 eval "$3=\$ac_header_compiler"
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1963 $as_echo "$ac_res" >&6; }
1965 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1967 } # ac_fn_c_check_header_mongrel
1969 # ac_fn_c_try_run LINENO
1970 # ----------------------
1971 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1972 # that executables *can* be run.
1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976 if { { ac_try="$ac_link"
1978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1979 *) ac_try_echo=$ac_try;;
1981 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1982 $as_echo "$ac_try_echo"; } >&5
1983 (eval "$ac_link") 2>&5
1985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1986 test $ac_status = 0; } && { ac_try='.
/conftest
$ac_exeext'
1987 { { case "(($ac_try" in
1988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1989 *) ac_try_echo=$ac_try;;
1991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1992 $as_echo "$ac_try_echo"; } >&5
1993 (eval "$ac_try") 2>&5
1995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1996 test $ac_status = 0; }; }; then :
1999 $as_echo "$as_me: program exited with status $ac_status" >&5
2000 $as_echo "$as_me: failed program was:" >&5
2001 sed 's
/^
/|
/' conftest.$ac_ext >&5
2003 ac_retval=$ac_status
2005 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2006 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2007 as_fn_set_status $ac_retval
2011 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2012 # -------------------------------------------------------
2013 # Tests whether HEADER exists and can be compiled using the include files in
2014 # INCLUDES, setting the cache variable VAR accordingly.
2015 ac_fn_c_check_header_compile ()
2017 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2019 $as_echo_n "checking for $2... " >&6; }
2020 if eval \${$3+:} false; then :
2021 $as_echo_n "(cached) " >&6
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2028 if ac_fn_c_try_compile "$LINENO"; then :
2033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2037 $as_echo "$ac_res" >&6; }
2038 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2040 } # ac_fn_c_check_header_compile
2042 # ac_fn_c_try_link LINENO
2043 # -----------------------
2044 # Try to link conftest.$ac_ext, and return whether this succeeded.
2047 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2048 rm -f conftest.$ac_objext conftest$ac_exeext
2049 if { { ac_try="$ac_link"
2051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2052 *) ac_try_echo=$ac_try;;
2054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2055 $as_echo "$ac_try_echo"; } >&5
2056 (eval "$ac_link") 2>conftest.err
2058 if test -s conftest.err; then
2059 grep -v '^
*+' conftest.err >conftest.er1
2060 cat conftest.er1 >&5
2061 mv -f conftest.er1 conftest.err
2063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2064 test $ac_status = 0; } && {
2065 test -z "$ac_c_werror_flag" ||
2066 test ! -s conftest.err
2067 } && test -s conftest$ac_exeext && {
2068 test "$cross_compiling" = yes ||
2069 test -x conftest$ac_exeext
2073 $as_echo "$as_me: failed program was:" >&5
2074 sed 's
/^
/|
/' conftest.$ac_ext >&5
2078 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2079 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2080 # interfere with the next link command; also delete a directory that is
2081 # left behind by Apple's compiler. We
do this before executing the actions.
2082 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2083 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2084 as_fn_set_status
$ac_retval
2086 } # ac_fn_c_try_link
2088 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2089 # --------------------------------------------
2090 # Tries to find the compile-time value of EXPR in a program that includes
2091 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2093 ac_fn_c_compute_int
()
2095 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2096 if test "$cross_compiling" = yes; then
2097 # Depending upon the size, compute the lo and hi bounds.
2098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2104 static int test_array [1 - 2 * !(($2) >= 0)];
2106 return test_array [0];
2112 if ac_fn_c_try_compile
"$LINENO"; then :
2115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2121 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2123 return test_array [0];
2129 if ac_fn_c_try_compile
"$LINENO"; then :
2130 ac_hi
=$ac_mid; break
2132 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2133 if test $ac_lo -le $ac_mid; then
2137 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2139 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2148 static int test_array [1 - 2 * !(($2) < 0)];
2150 return test_array [0];
2156 if ac_fn_c_try_compile
"$LINENO"; then :
2159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2165 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2167 return test_array [0];
2173 if ac_fn_c_try_compile
"$LINENO"; then :
2174 ac_lo
=$ac_mid; break
2176 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2177 if test $ac_mid -le $ac_hi; then
2181 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2183 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2188 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2190 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2191 # Binary search between lo and hi bounds.
2192 while test "x$ac_lo" != "x$ac_hi"; do
2193 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h. */
2200 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2202 return test_array [0];
2208 if ac_fn_c_try_compile
"$LINENO"; then :
2211 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2213 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2216 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2221 /* end confdefs.h. */
2223 static long int longval () { return $2; }
2224 static unsigned long int ulongval () { return $2; }
2231 FILE *f = fopen ("conftest.val", "w");
2236 long int i = longval ();
2239 fprintf (f, "%ld", i);
2243 unsigned long int i = ulongval ();
2246 fprintf (f, "%lu", i);
2248 /* Do not output a trailing newline, as this causes \r\n confusion
2249 on some platforms. */
2250 return ferror (f) || fclose (f) != 0;
2256 if ac_fn_c_try_run
"$LINENO"; then :
2257 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2261 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2262 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2266 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2267 as_fn_set_status
$ac_retval
2269 } # ac_fn_c_compute_int
2271 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2272 # ---------------------------------------------
2273 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2275 ac_fn_c_check_decl
()
2277 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2278 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2279 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2281 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2282 if eval \
${$3+:} false
; then :
2283 $as_echo_n "(cached) " >&6
2285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2286 /* end confdefs.h. */
2291 #ifndef $as_decl_name
2293 (void) $as_decl_use;
2295 (void) $as_decl_name;
2303 if ac_fn_c_try_compile
"$LINENO"; then :
2308 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2312 $as_echo "$ac_res" >&6; }
2313 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2315 } # ac_fn_c_check_decl
2317 # ac_fn_c_check_func LINENO FUNC VAR
2318 # ----------------------------------
2319 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2320 ac_fn_c_check_func
()
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" >&5
2324 $as_echo_n "checking for $2... " >&6; }
2325 if eval \
${$3+:} false
; then :
2326 $as_echo_n "(cached) " >&6
2328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2329 /* end confdefs.h. */
2330 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2332 #define $2 innocuous_$2
2334 /* System header to define __stub macros and hopefully few prototypes,
2335 which can conflict with char $2 (); below.
2336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2337 <limits.h> exists even on freestanding compilers. */
2340 # include <limits.h>
2342 # include <assert.h>
2347 /* Override any GCC internal prototype to avoid an error.
2348 Use char because int might match the return type of a GCC
2349 builtin and then its argument prototype would still apply. */
2354 /* The GNU C library defines this for functions which it implements
2355 to always fail with ENOSYS. Some functions are actually named
2356 something starting with __ and the normal name is an alias. */
2357 #if defined __stub_$2 || defined __stub___$2
2369 if ac_fn_c_try_link
"$LINENO"; then :
2374 rm -f core conftest.err conftest.
$ac_objext \
2375 conftest
$ac_exeext conftest.
$ac_ext
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2379 $as_echo "$ac_res" >&6; }
2380 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2382 } # ac_fn_c_check_func
2384 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2385 # -------------------------------------------
2386 # Tests whether TYPE exists after having included INCLUDES, setting cache
2387 # variable VAR accordingly.
2388 ac_fn_c_check_type
()
2390 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2392 $as_echo_n "checking for $2... " >&6; }
2393 if eval \
${$3+:} false
; then :
2394 $as_echo_n "(cached) " >&6
2397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2398 /* end confdefs.h. */
2409 if ac_fn_c_try_compile
"$LINENO"; then :
2410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2411 /* end confdefs.h. */
2422 if ac_fn_c_try_compile
"$LINENO"; then :
2427 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2429 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2433 $as_echo "$ac_res" >&6; }
2434 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2436 } # ac_fn_c_check_type
2438 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2439 # ----------------------------------------------------
2440 # Tries to find if the field MEMBER exists in type AGGR, after including
2441 # INCLUDES, setting cache variable VAR accordingly.
2442 ac_fn_c_check_member
()
2444 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2446 $as_echo_n "checking for $2.$3... " >&6; }
2447 if eval \
${$4+:} false
; then :
2448 $as_echo_n "(cached) " >&6
2450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2451 /* end confdefs.h. */
2463 if ac_fn_c_try_compile
"$LINENO"; then :
2466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2467 /* end confdefs.h. */
2473 if (sizeof ac_aggr.$3)
2479 if ac_fn_c_try_compile
"$LINENO"; then :
2484 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2486 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2490 $as_echo "$ac_res" >&6; }
2491 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2493 } # ac_fn_c_check_member
2495 # ac_fn_cxx_try_link LINENO
2496 # -------------------------
2497 # Try to link conftest.$ac_ext, and return whether this succeeded.
2498 ac_fn_cxx_try_link
()
2500 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2501 rm -f conftest.
$ac_objext conftest
$ac_exeext
2502 if { { ac_try
="$ac_link"
2504 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2505 *) ac_try_echo=$ac_try;;
2507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2508 $as_echo "$ac_try_echo"; } >&5
2509 (eval "$ac_link") 2>conftest.err
2511 if test -s conftest.err; then
2512 grep -v '^ *+' conftest.err >conftest.er1
2513 cat conftest.er1 >&5
2514 mv -f conftest.er1 conftest.err
2516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2517 test $ac_status = 0; } && {
2518 test -z "$ac_cxx_werror_flag" ||
2519 test ! -s conftest.err
2520 } && test -s conftest$ac_exeext && {
2521 test "$cross_compiling" = yes ||
2522 test -x conftest$ac_exeext
2526 $as_echo "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.$ac_ext >&5
2531 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2532 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2533 # interfere with the next link command; also delete a directory that is
2534 # left behind by Apple's compiler. We do this before executing the actions.
2535 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2536 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2537 as_fn_set_status $ac_retval
2539 } # ac_fn_cxx_try_link
2541 # ac_fn_cxx_check_func LINENO FUNC VAR
2542 # ------------------------------------
2543 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2544 ac_fn_cxx_check_func ()
2546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2548 $as_echo_n "checking for $2... " >&6; }
2549 if eval \${$3+:} false; then :
2550 $as_echo_n "(cached) " >&6
2552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2553 /* end confdefs.h. */
2554 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2556 #define $2 innocuous_$2
2558 /* System header to define __stub macros and hopefully few prototypes,
2559 which can conflict with char $2 (); below.
2560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2561 <limits.h> exists even on freestanding compilers. */
2564 # include <limits.h>
2566 # include <assert.h>
2571 /* Override any GCC internal prototype to avoid an error.
2572 Use char because int might match the return type of a GCC
2573 builtin and then its argument prototype would still apply. */
2578 /* The GNU C library defines this for functions which it implements
2579 to always fail with ENOSYS. Some functions are actually named
2580 something starting with __ and the normal name is an alias. */
2581 #if defined __stub_$2 || defined __stub___$2
2593 if ac_fn_cxx_try_link "$LINENO"; then :
2598 rm -f core conftest.err conftest.$ac_objext \
2599 conftest$ac_exeext conftest.$ac_ext
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2603 $as_echo "$ac_res" >&6; }
2604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2606 } # ac_fn_cxx_check_func
2607 cat >config.log <<_ACEOF
2608 This file contains any messages produced by compilers while
2609 running configure, to aid debugging if configure makes a mistake.
2611 It was created by $as_me, which was
2612 generated by GNU Autoconf 2.69. Invocation command line was
2624 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2625 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2626 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2627 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2628 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2630 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2631 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2633 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2634 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2635 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2636 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2637 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2638 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2639 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 test -z "$as_dir" && as_dir=.
2648 $as_echo "PATH: $as_dir"
2664 # Keep a trace of the command line.
2665 # Strip out --no-create and --no-recursion so they do not pile up.
2666 # Strip out --silent because we don't want to record it for future runs.
2667 # Also quote any args containing shell meta-characters.
2668 # Make two passes to allow for proper duplicate-argument suppression.
2672 ac_must_keep_next=false
2678 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2679 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2680 | -silent | --silent | --silen | --sile | --sil)
2683 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2686 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2688 as_fn_append ac_configure_args1 " '$ac_arg'"
2689 if test $ac_must_keep_next = true; then
2690 ac_must_keep_next=false # Got value, back to normal.
2693 *=* | --config-cache | -C | -disable-* | --disable-* \
2694 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2695 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2696 | -with-* | --with-* | -without-* | --without-* | --x)
2697 case "$ac_configure_args0 " in
2698 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2701 -* ) ac_must_keep_next=true ;;
2704 as_fn_append ac_configure_args " '$ac_arg'"
2709 { ac_configure_args0=; unset ac_configure_args0;}
2710 { ac_configure_args1=; unset ac_configure_args1;}
2712 # When interrupted or exit'd, cleanup temporary files, and complete
2713 # config.log. We remove comments because anyway the quotes in there
2714 # would cause problems or look ugly.
2715 # WARNING: Use '\'' to represent an apostrophe within the trap.
2716 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2717 trap 'exit_status=$?
2718 # Save into config.log some information that might help in debugging.
2722 $as_echo "## ---------------- ##
2723 ## Cache variables. ##
2724 ## ---------------- ##"
2726 # The following way of writing the cache mishandles newlines in values,
2728 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2729 eval ac_val=\$$ac_var
2733 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2734 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2737 _ | IFS | as_nl) ;; #(
2738 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2739 *) { eval $ac_var=; unset $ac_var;} ;;
2744 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2745 *${as_nl}ac_space=\ *)
2747 "s/'\''/'\''\\\\'\'''\''/g;
2748 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2751 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2758 $as_echo "## ----------------- ##
2759 ## Output variables. ##
2760 ## ----------------- ##"
2762 for ac_var in $ac_subst_vars
2764 eval ac_val=\$$ac_var
2766 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2768 $as_echo "$ac_var='\''$ac_val'\''"
2772 if test -n "$ac_subst_files"; then
2773 $as_echo "## ------------------- ##
2774 ## File substitutions. ##
2775 ## ------------------- ##"
2777 for ac_var in $ac_subst_files
2779 eval ac_val=\$$ac_var
2781 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2783 $as_echo "$ac_var='\''$ac_val'\''"
2788 if test -s confdefs.h; then
2789 $as_echo "## ----------- ##
2796 test "$ac_signal" != 0 &&
2797 $as_echo "$as_me: caught signal $ac_signal"
2798 $as_echo "$as_me: exit $exit_status"
2800 rm -f core *.core core.conftest.* &&
2801 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2804 for ac_signal in 1 2 13 15; do
2805 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2809 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2810 rm -f -r conftest* confdefs.h
2812 $as_echo "/* confdefs.h */" > confdefs.h
2814 # Predefined preprocessor variables.
2816 cat >>confdefs.h <<_ACEOF
2817 #define PACKAGE_NAME "$PACKAGE_NAME"
2820 cat >>confdefs.h <<_ACEOF
2821 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2824 cat >>confdefs.h <<_ACEOF
2825 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2828 cat >>confdefs.h <<_ACEOF
2829 #define PACKAGE_STRING "$PACKAGE_STRING"
2832 cat >>confdefs.h <<_ACEOF
2833 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2836 cat >>confdefs.h <<_ACEOF
2837 #define PACKAGE_URL "$PACKAGE_URL"
2841 # Let the site file select an alternate cache file if it wants to.
2842 # Prefer an explicitly selected file to automatically selected ones.
2845 if test -n "$CONFIG_SITE"; then
2846 # We do not want a PATH search for config.site.
2847 case $CONFIG_SITE in #((
2848 -*) ac_site_file1=./$CONFIG_SITE;;
2849 */*) ac_site_file1=$CONFIG_SITE;;
2850 *) ac_site_file1=./$CONFIG_SITE;;
2852 elif test "x$prefix" != xNONE; then
2853 ac_site_file1=$prefix/share/config.site
2854 ac_site_file2=$prefix/etc/config.site
2856 ac_site_file1=$ac_default_prefix/share/config.site
2857 ac_site_file2=$ac_default_prefix/etc/config.site
2859 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2861 test "x$ac_site_file" = xNONE && continue
2862 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2864 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2865 sed 's/^/| /' "$ac_site_file" >&5
2867 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2869 as_fn_error $? "failed to load site
script $ac_site_file
2870 See \
`config.log' for more details" "$LINENO" 5; }
2874 if test -r "$cache_file"; then
2875 # Some versions of bash will fail to source /dev/null (special files
2876 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2877 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2879 $as_echo "$as_me: loading cache $cache_file" >&6;}
2881 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2882 *) . "./$cache_file";;
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2887 $as_echo "$as_me: creating cache $cache_file" >&6;}
2891 as_fn_append ac_header_list " stdlib.h"
2892 as_fn_append ac_header_list " unistd.h"
2893 as_fn_append ac_header_list " sys/param.h"
2894 # Check that the precious variables saved in the cache have kept the same
2896 ac_cache_corrupted=false
2897 for ac_var in $ac_precious_vars; do
2898 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2899 eval ac_new_set=\$ac_env_${ac_var}_set
2900 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2901 eval ac_new_val=\$ac_env_${ac_var}_value
2902 case $ac_old_set,$ac_new_set in
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2905 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2906 ac_cache_corrupted=: ;;
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2909 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2910 ac_cache_corrupted=: ;;
2913 if test "x$ac_old_val" != "x$ac_new_val"; then
2914 # differences in whitespace do not lead to failure.
2915 ac_old_val_w=`echo x
$ac_old_val`
2916 ac_new_val_w=`echo x
$ac_new_val`
2917 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2919 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2920 ac_cache_corrupted=:
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2923 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2924 eval $ac_var=\$ac_old_val
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2927 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2929 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2932 # Pass precious variables to config.status.
2933 if test "$ac_new_set" = set; then
2935 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2936 *) ac_arg=$ac_var=$ac_new_val ;;
2938 case " $ac_configure_args " in
2939 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2940 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2944 if $ac_cache_corrupted; then
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2946 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2948 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2949 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2951 ## -------------------- ##
2952 ## Main body of script. ##
2953 ## -------------------- ##
2956 ac_cpp='$CPP $CPPFLAGS'
2957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2965 ac_config_headers="$ac_config_headers config.h:config.in"
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2969 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2970 # Check whether --enable-maintainer-mode was given.
2971 if test "${enable_maintainer_mode+set}" = set; then :
2972 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2974 USE_MAINTAINER_MODE=no
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2978 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2979 if test $USE_MAINTAINER_MODE = yes; then
2980 MAINTAINER_MODE_TRUE=
2981 MAINTAINER_MODE_FALSE='#'
2983 MAINTAINER_MODE_TRUE='#'
2984 MAINTAINER_MODE_FALSE=
2987 MAINT=$MAINTAINER_MODE_TRUE
2991 # Set the 'development' global.
2992 . $srcdir/../bfd/development.sh
2995 ac_cpp='$CPP $CPPFLAGS'
2996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2999 if test -n "$ac_tool_prefix"; then
3000 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3001 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3003 $as_echo_n "checking for $ac_word... " >&6; }
3004 if ${ac_cv_prog_CC+:} false; then :
3005 $as_echo_n "(cached) " >&6
3007 if test -n "$CC"; then
3008 ac_cv_prog_CC="$CC" # Let the user override the test.
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014 test -z "$as_dir" && as_dir=.
3015 for ac_exec_ext in '' $ac_executable_extensions; do
3016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3017 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3028 if test -n "$CC"; then
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3030 $as_echo "$CC" >&6; }
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033 $as_echo "no" >&6; }
3038 if test -z "$ac_cv_prog_CC"; then
3040 # Extract the first word of "gcc", so it can be a program name with args.
3041 set dummy gcc; ac_word=$2
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043 $as_echo_n "checking for $ac_word... " >&6; }
3044 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3045 $as_echo_n "(cached) " >&6
3047 if test -n "$ac_ct_CC"; then
3048 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 test -z "$as_dir" && as_dir=.
3055 for ac_exec_ext in '' $ac_executable_extensions; do
3056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3057 ac_cv_prog_ac_ct_CC="gcc"
3058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3067 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3068 if test -n "$ac_ct_CC"; then
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3070 $as_echo "$ac_ct_CC" >&6; }
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073 $as_echo "no" >&6; }
3076 if test "x$ac_ct_CC" = x; then
3079 case $cross_compiling:$ac_tool_warned in
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3083 ac_tool_warned=yes ;;
3091 if test -z "$CC"; then
3092 if test -n "$ac_tool_prefix"; then
3093 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3094 set dummy ${ac_tool_prefix}cc; ac_word=$2
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096 $as_echo_n "checking for $ac_word... " >&6; }
3097 if ${ac_cv_prog_CC+:} false; then :
3098 $as_echo_n "(cached) " >&6
3100 if test -n "$CC"; then
3101 ac_cv_prog_CC="$CC" # Let the user override the test.
3103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107 test -z "$as_dir" && as_dir=.
3108 for ac_exec_ext in '' $ac_executable_extensions; do
3109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3110 ac_cv_prog_CC="${ac_tool_prefix}cc"
3111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 if test -n "$CC"; then
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3123 $as_echo "$CC" >&6; }
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126 $as_echo "no" >&6; }
3132 if test -z "$CC"; then
3133 # Extract the first word of "cc", so it can be a program name with args.
3134 set dummy cc; ac_word=$2
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3136 $as_echo_n "checking for $ac_word... " >&6; }
3137 if ${ac_cv_prog_CC+:} false; then :
3138 $as_echo_n "(cached) " >&6
3140 if test -n "$CC"; then
3141 ac_cv_prog_CC="$CC" # Let the user override the test.
3144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 test -z "$as_dir" && as_dir=.
3149 for ac_exec_ext in '' $ac_executable_extensions; do
3150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3151 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3152 ac_prog_rejected=yes
3156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3163 if test $ac_prog_rejected = yes; then
3164 # We found a bogon in the path, so make sure we never use it.
3165 set dummy $ac_cv_prog_CC
3167 if test $# != 0; then
3168 # We chose a different compiler from the bogus one.
3169 # However, it has the same basename, so the bogon will be chosen
3170 # first if we set CC to just the basename; use the full file name.
3172 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3178 if test -n "$CC"; then
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3180 $as_echo "$CC" >&6; }
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183 $as_echo "no" >&6; }
3188 if test -z "$CC"; then
3189 if test -n "$ac_tool_prefix"; then
3190 for ac_prog in cl.exe
3192 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3193 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195 $as_echo_n "checking for $ac_word... " >&6; }
3196 if ${ac_cv_prog_CC+:} false; then :
3197 $as_echo_n "(cached) " >&6
3199 if test -n "$CC"; then
3200 ac_cv_prog_CC="$CC" # Let the user override the test.
3202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 test -z "$as_dir" && as_dir=.
3207 for ac_exec_ext in '' $ac_executable_extensions; do
3208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3209 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3220 if test -n "$CC"; then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3222 $as_echo "$CC" >&6; }
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 $as_echo "no" >&6; }
3229 test -n "$CC" && break
3232 if test -z "$CC"; then
3234 for ac_prog in cl.exe
3236 # Extract the first word of "$ac_prog", so it can be a program name with args.
3237 set dummy $ac_prog; ac_word=$2
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3239 $as_echo_n "checking for $ac_word... " >&6; }
3240 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3241 $as_echo_n "(cached) " >&6
3243 if test -n "$ac_ct_CC"; then
3244 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250 test -z "$as_dir" && as_dir=.
3251 for ac_exec_ext in '' $ac_executable_extensions; do
3252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3253 ac_cv_prog_ac_ct_CC="$ac_prog"
3254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3263 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3264 if test -n "$ac_ct_CC"; then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3266 $as_echo "$ac_ct_CC" >&6; }
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269 $as_echo "no" >&6; }
3273 test -n "$ac_ct_CC" && break
3276 if test "x$ac_ct_CC" = x; then
3279 case $cross_compiling:$ac_tool_warned in
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3283 ac_tool_warned=yes ;;
3292 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3294 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3295 See \
`config.log' for more details" "$LINENO" 5; }
3297 # Provide some information about the compiler.
3298 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3301 for ac_option in --version -v -V -qversion; do
3302 { { ac_try="$ac_compiler $ac_option >&5"
3304 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3305 *) ac_try_echo
=$ac_try;;
3307 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3308 $as_echo "$ac_try_echo"; } >&5
3309 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3311 if test -s conftest.err
; then
3313 ... rest of stderr output deleted ...
3314 10q' conftest.err
>conftest.er1
3315 cat conftest.er1
>&5
3317 rm -f conftest.er1 conftest.err
3318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3319 test $ac_status = 0; }
3322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3323 /* end confdefs.h. */
3333 ac_clean_files_save
=$ac_clean_files
3334 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3335 # Try to create an executable without -o first, disregard a.out.
3336 # It will help us diagnose broken compilers, and finding out an intuition
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3339 $as_echo_n "checking whether the C compiler works... " >&6; }
3340 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3342 # The possible output files:
3343 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3346 for ac_file
in $ac_files
3349 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3350 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3355 if { { ac_try
="$ac_link_default"
3357 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3361 $as_echo "$ac_try_echo"; } >&5
3362 (eval "$ac_link_default") 2>&5
3364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3365 test $ac_status = 0; }; then :
3366 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3367 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3368 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3369 # so that the user can short-circuit this test for compilers unknown to
3371 for ac_file in $ac_files ''
3373 test -f "$ac_file" || continue
3375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3378 # We found the default executable, but exeext='' is most
3382 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3384 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3386 # We set ac_cv_exeext here because the later test for it is not
3387 # safe: cross compilers may not add the suffix if given an `-o'
3388 # argument, so we may need to know it at that point already.
3389 # Even if this section looks crufty: it has the advantage of
3396 test "$ac_cv_exeext" = no && ac_cv_exeext=
3401 if test -z "$ac_file"; then :
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3403 $as_echo "no" >&6; }
3404 $as_echo "$as_me: failed program was:" >&5
3405 sed 's
/^
/|
/' conftest.$ac_ext >&5
3407 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3408 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3409 as_fn_error 77 "C compiler cannot create executables
3410 See \`config.log
' for more details" "$LINENO" 5; }
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3413 $as_echo "yes" >&6; }
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3416 $as_echo_n "checking for C compiler default output file name... " >&6; }
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3418 $as_echo "$ac_file" >&6; }
3419 ac_exeext=$ac_cv_exeext
3421 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3422 ac_clean_files=$ac_clean_files_save
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3424 $as_echo_n "checking for suffix of executables... " >&6; }
3425 if { { ac_try="$ac_link"
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3430 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3431 $as_echo "$ac_try_echo"; } >&5
3432 (eval "$ac_link") 2>&5
3434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3435 test $ac_status = 0; }; then :
3436 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3437 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3438 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3440 for ac_file
in conftest.exe conftest conftest.
*; do
3441 test -f "$ac_file" ||
continue
3443 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3444 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3450 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3452 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3453 See \`config.log' for more details" "$LINENO" 5; }
3455 rm -f conftest conftest
$ac_cv_exeext
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3457 $as_echo "$ac_cv_exeext" >&6; }
3459 rm -f conftest.
$ac_ext
3460 EXEEXT
=$ac_cv_exeext
3462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3463 /* end confdefs.h. */
3468 FILE *f = fopen ("conftest.out", "w");
3469 return ferror (f) || fclose (f) != 0;
3475 ac_clean_files
="$ac_clean_files conftest.out"
3476 # Check that the compiler produces executables we can run. If not, either
3477 # the compiler is broken, or we cross compile.
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3479 $as_echo_n "checking whether we are cross compiling... " >&6; }
3480 if test "$cross_compiling" != yes; then
3481 { { ac_try
="$ac_link"
3483 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3487 $as_echo "$ac_try_echo"; } >&5
3488 (eval "$ac_link") 2>&5
3490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3491 test $ac_status = 0; }
3492 if { ac_try='./conftest$ac_cv_exeext'
3493 { { case "(($ac_try" in
3494 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3495 *) ac_try_echo
=$ac_try;;
3497 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3498 $as_echo "$ac_try_echo"; } >&5
3499 (eval "$ac_try") 2>&5
3501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3502 test $ac_status = 0; }; }; then
3505 if test "$cross_compiling" = maybe
; then
3508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3510 as_fn_error $?
"cannot run C compiled programs.
3511 If you meant to cross compile, use \`--host'.
3512 See \`config.log' for more details" "$LINENO" 5; }
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3517 $as_echo "$cross_compiling" >&6; }
3519 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3520 ac_clean_files
=$ac_clean_files_save
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3522 $as_echo_n "checking for suffix of object files... " >&6; }
3523 if ${ac_cv_objext+:} false
; then :
3524 $as_echo_n "(cached) " >&6
3526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3527 /* end confdefs.h. */
3537 rm -f conftest.o conftest.obj
3538 if { { ac_try
="$ac_compile"
3540 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3541 *) ac_try_echo=$ac_try;;
3543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3544 $as_echo "$ac_try_echo"; } >&5
3545 (eval "$ac_compile") 2>&5
3547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3548 test $ac_status = 0; }; then :
3549 for ac_file in conftest.o conftest.obj conftest.*; do
3550 test -f "$ac_file" || continue;
3552 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3553 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3558 $as_echo "$as_me: failed program was:" >&5
3559 sed 's/^/| /' conftest.$ac_ext >&5
3561 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3563 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3564 See \
`config.log' for more details" "$LINENO" 5; }
3566 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3569 $as_echo "$ac_cv_objext" >&6; }
3570 OBJEXT=$ac_cv_objext
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3573 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3574 if ${ac_cv_c_compiler_gnu+:} false; then :
3575 $as_echo_n "(cached) " >&6
3577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578 /* end confdefs.h. */
3591 if ac_fn_c_try_compile "$LINENO"; then :
3596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3597 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3601 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3602 if test $ac_compiler_gnu = yes; then
3607 ac_test_CFLAGS=${CFLAGS+set}
3608 ac_save_CFLAGS=$CFLAGS
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3610 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3611 if ${ac_cv_prog_cc_g+:} false; then :
3612 $as_echo_n "(cached) " >&6
3614 ac_save_c_werror_flag=$ac_c_werror_flag
3615 ac_c_werror_flag=yes
3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619 /* end confdefs.h. */
3629 if ac_fn_c_try_compile "$LINENO"; then :
3633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634 /* end confdefs.h. */
3644 if ac_fn_c_try_compile "$LINENO"; then :
3647 ac_c_werror_flag=$ac_save_c_werror_flag
3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650 /* end confdefs.h. */
3660 if ac_fn_c_try_compile "$LINENO"; then :
3663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3668 ac_c_werror_flag=$ac_save_c_werror_flag
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3671 $as_echo "$ac_cv_prog_cc_g" >&6; }
3672 if test "$ac_test_CFLAGS" = set; then
3673 CFLAGS=$ac_save_CFLAGS
3674 elif test $ac_cv_prog_cc_g = yes; then
3675 if test "$GCC" = yes; then
3681 if test "$GCC" = yes; then
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3688 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3689 if ${ac_cv_prog_cc_c89+:} false; then :
3690 $as_echo_n "(cached) " >&6
3692 ac_cv_prog_cc_c89=no
3694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3695 /* end confdefs.h. */
3699 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3700 struct buf { int x; };
3701 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3702 static char *e (p, i)
3708 static char *f (char * (*g) (char **, int), char **p, ...)
3713 s = g (p, va_arg (v,int));
3718 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3719 function prototypes and stuff, but not '\xHH' hex character constants.
3720 These don't provoke an error unfortunately, instead are silently treated
3721 as 'x'. The following induces an error, until -std is added to get
3722 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3723 array size at least. It's necessary to write '\x00'==0 to get something
3724 that's true only with -std. */
3725 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3727 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3728 inside strings and character constants. */
3730 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3732 int test (int i, double x);
3733 struct s1 {int (*f) (int a);};
3734 struct s2 {int (*f) (double a);};
3735 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3741 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3746 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3747 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3749 CC="$ac_save_CC $ac_arg"
3750 if ac_fn_c_try_compile "$LINENO"; then :
3751 ac_cv_prog_cc_c89=$ac_arg
3753 rm -f core conftest.err conftest.$ac_objext
3754 test "x$ac_cv_prog_cc_c89" != "xno" && break
3756 rm -f conftest.$ac_ext
3761 case "x$ac_cv_prog_cc_c89" in
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3764 $as_echo "none needed" >&6; } ;;
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3767 $as_echo "unsupported" >&6; } ;;
3769 CC="$CC $ac_cv_prog_cc_c89"
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3771 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3773 if test "x$ac_cv_prog_cc_c89" != xno; then :
3778 ac_cpp='$CPP $CPPFLAGS'
3779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3784 ac_cpp='$CXXCPP $CPPFLAGS'
3785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3786 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3788 if test -z "$CXX"; then
3789 if test -n "$CCC"; then
3792 if test -n "$ac_tool_prefix"; then
3793 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3795 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3796 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3798 $as_echo_n "checking for $ac_word... " >&6; }
3799 if ${ac_cv_prog_CXX+:} false; then :
3800 $as_echo_n "(cached) " >&6
3802 if test -n "$CXX"; then
3803 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809 test -z "$as_dir" && as_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3812 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3823 if test -n "$CXX"; then
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3825 $as_echo "$CXX" >&6; }
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3828 $as_echo "no" >&6; }
3832 test -n "$CXX" && break
3835 if test -z "$CXX"; then
3837 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3839 # Extract the first word of "$ac_prog", so it can be a program name with args.
3840 set dummy $ac_prog; ac_word=$2
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3842 $as_echo_n "checking for $ac_word... " >&6; }
3843 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3844 $as_echo_n "(cached) " >&6
3846 if test -n "$ac_ct_CXX"; then
3847 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853 test -z "$as_dir" && as_dir=.
3854 for ac_exec_ext in '' $ac_executable_extensions; do
3855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3856 ac_cv_prog_ac_ct_CXX="$ac_prog"
3857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3866 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3867 if test -n "$ac_ct_CXX"; then
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3869 $as_echo "$ac_ct_CXX" >&6; }
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3872 $as_echo "no" >&6; }
3876 test -n "$ac_ct_CXX" && break
3879 if test "x$ac_ct_CXX" = x; then
3882 case $cross_compiling:$ac_tool_warned in
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3886 ac_tool_warned=yes ;;
3894 # Provide some information about the compiler.
3895 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3898 for ac_option in --version -v -V -qversion; do
3899 { { ac_try="$ac_compiler $ac_option >&5"
3901 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3902 *) ac_try_echo
=$ac_try;;
3904 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3905 $as_echo "$ac_try_echo"; } >&5
3906 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3908 if test -s conftest.err
; then
3910 ... rest of stderr output deleted ...
3911 10q' conftest.err
>conftest.er1
3912 cat conftest.er1
>&5
3914 rm -f conftest.er1 conftest.err
3915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3916 test $ac_status = 0; }
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3920 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3921 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3922 $as_echo_n "(cached) " >&6
3924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h. */
3938 if ac_fn_cxx_try_compile
"$LINENO"; then :
3943 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3944 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3948 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3949 if test $ac_compiler_gnu = yes; then
3954 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3955 ac_save_CXXFLAGS
=$CXXFLAGS
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3957 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3958 if ${ac_cv_prog_cxx_g+:} false
; then :
3959 $as_echo_n "(cached) " >&6
3961 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3962 ac_cxx_werror_flag
=yes
3965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3966 /* end confdefs.h. */
3976 if ac_fn_cxx_try_compile
"$LINENO"; then :
3977 ac_cv_prog_cxx_g
=yes
3980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3981 /* end confdefs.h. */
3991 if ac_fn_cxx_try_compile
"$LINENO"; then :
3994 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h. */
4007 if ac_fn_cxx_try_compile
"$LINENO"; then :
4008 ac_cv_prog_cxx_g
=yes
4010 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4014 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4015 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4018 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4019 if test "$ac_test_CXXFLAGS" = set; then
4020 CXXFLAGS
=$ac_save_CXXFLAGS
4021 elif test $ac_cv_prog_cxx_g = yes; then
4022 if test "$GXX" = yes; then
4028 if test "$GXX" = yes; then
4035 ac_cpp
='$CPP $CPPFLAGS'
4036 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4037 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4038 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4043 ac_cpp
='$CPP $CPPFLAGS'
4044 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4045 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4046 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4048 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4049 # On Suns, sometimes $CPP names a directory.
4050 if test -n "$CPP" && test -d "$CPP"; then
4053 if test -z "$CPP"; then
4054 if ${ac_cv_prog_CPP+:} false
; then :
4055 $as_echo_n "(cached) " >&6
4057 # Double quotes because CPP needs to be expanded
4058 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4061 for ac_c_preproc_warn_flag
in '' yes
4063 # Use a header file that comes with gcc, so configuring glibc
4064 # with a fresh cross-compiler works.
4065 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4066 # <limits.h> exists even on freestanding compilers.
4067 # On the NeXT, cc -E runs the code through the compiler's parser,
4068 # not just through cpp. "Syntax error" is here to catch this case.
4069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h. */
4072 # include <limits.h>
4074 # include <assert.h>
4078 if ac_fn_c_try_cpp
"$LINENO"; then :
4081 # Broken: fails on valid input.
4084 rm -f conftest.err conftest.i conftest.
$ac_ext
4086 # OK, works on sane cases. Now check whether nonexistent headers
4087 # can be detected and how.
4088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h. */
4090 #include <ac_nonexistent.h>
4092 if ac_fn_c_try_cpp
"$LINENO"; then :
4093 # Broken: success on invalid input.
4096 # Passes both tests.
4100 rm -f conftest.err conftest.i conftest.
$ac_ext
4103 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4104 rm -f conftest.i conftest.err conftest.
$ac_ext
4105 if $ac_preproc_ok; then :
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4118 $as_echo "$CPP" >&6; }
4120 for ac_c_preproc_warn_flag
in '' yes
4122 # Use a header file that comes with gcc, so configuring glibc
4123 # with a fresh cross-compiler works.
4124 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4125 # <limits.h> exists even on freestanding compilers.
4126 # On the NeXT, cc -E runs the code through the compiler's parser,
4127 # not just through cpp. "Syntax error" is here to catch this case.
4128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4131 # include <limits.h>
4133 # include <assert.h>
4137 if ac_fn_c_try_cpp
"$LINENO"; then :
4140 # Broken: fails on valid input.
4143 rm -f conftest.err conftest.i conftest.
$ac_ext
4145 # OK, works on sane cases. Now check whether nonexistent headers
4146 # can be detected and how.
4147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4149 #include <ac_nonexistent.h>
4151 if ac_fn_c_try_cpp
"$LINENO"; then :
4152 # Broken: success on invalid input.
4155 # Passes both tests.
4159 rm -f conftest.err conftest.i conftest.
$ac_ext
4162 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4163 rm -f conftest.i conftest.err conftest.
$ac_ext
4164 if $ac_preproc_ok; then :
4167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4169 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4170 See \`config.log' for more details" "$LINENO" 5; }
4174 ac_cpp
='$CPP $CPPFLAGS'
4175 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4176 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4177 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4181 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4182 if ${ac_cv_path_GREP+:} false
; then :
4183 $as_echo_n "(cached) " >&6
4185 if test -z "$GREP"; then
4186 ac_path_GREP_found
=false
4187 # Loop through the user's path and test for each of PROGNAME-LIST
4188 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4189 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4192 test -z "$as_dir" && as_dir
=.
4193 for ac_prog
in grep ggrep
; do
4194 for ac_exec_ext
in '' $ac_executable_extensions; do
4195 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4196 as_fn_executable_p
"$ac_path_GREP" ||
continue
4197 # Check for GNU ac_path_GREP and select it if it is found.
4198 # Check for GNU $ac_path_GREP
4199 case `"$ac_path_GREP" --version 2>&1` in
4201 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4204 $as_echo_n 0123456789 >"conftest.in"
4207 cat "conftest.in" "conftest.in" >"conftest.tmp"
4208 mv "conftest.tmp" "conftest.in"
4209 cp "conftest.in" "conftest.nl"
4210 $as_echo 'GREP' >> "conftest.nl"
4211 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4212 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4213 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4214 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4215 # Best one so far, save it but keep looking for a better one
4216 ac_cv_path_GREP
="$ac_path_GREP"
4217 ac_path_GREP_max
=$ac_count
4219 # 10*(2^10) chars as input seems more than enough
4220 test $ac_count -gt 10 && break
4222 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4225 $ac_path_GREP_found && break 3
4230 if test -z "$ac_cv_path_GREP"; then
4231 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4234 ac_cv_path_GREP
=$GREP
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4239 $as_echo "$ac_cv_path_GREP" >&6; }
4240 GREP
="$ac_cv_path_GREP"
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4244 $as_echo_n "checking for egrep... " >&6; }
4245 if ${ac_cv_path_EGREP+:} false
; then :
4246 $as_echo_n "(cached) " >&6
4248 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4249 then ac_cv_path_EGREP
="$GREP -E"
4251 if test -z "$EGREP"; then
4252 ac_path_EGREP_found
=false
4253 # Loop through the user's path and test for each of PROGNAME-LIST
4254 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4255 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4258 test -z "$as_dir" && as_dir
=.
4259 for ac_prog
in egrep; do
4260 for ac_exec_ext
in '' $ac_executable_extensions; do
4261 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4262 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4263 # Check for GNU ac_path_EGREP and select it if it is found.
4264 # Check for GNU $ac_path_EGREP
4265 case `"$ac_path_EGREP" --version 2>&1` in
4267 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4270 $as_echo_n 0123456789 >"conftest.in"
4273 cat "conftest.in" "conftest.in" >"conftest.tmp"
4274 mv "conftest.tmp" "conftest.in"
4275 cp "conftest.in" "conftest.nl"
4276 $as_echo 'EGREP' >> "conftest.nl"
4277 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4278 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4279 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4280 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4281 # Best one so far, save it but keep looking for a better one
4282 ac_cv_path_EGREP
="$ac_path_EGREP"
4283 ac_path_EGREP_max
=$ac_count
4285 # 10*(2^10) chars as input seems more than enough
4286 test $ac_count -gt 10 && break
4288 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4291 $ac_path_EGREP_found && break 3
4296 if test -z "$ac_cv_path_EGREP"; then
4297 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4300 ac_cv_path_EGREP
=$EGREP
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4306 $as_echo "$ac_cv_path_EGREP" >&6; }
4307 EGREP
="$ac_cv_path_EGREP"
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4311 $as_echo_n "checking for ANSI C header files... " >&6; }
4312 if ${ac_cv_header_stdc+:} false
; then :
4313 $as_echo_n "(cached) " >&6
4315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4316 /* end confdefs.h. */
4330 if ac_fn_c_try_compile
"$LINENO"; then :
4331 ac_cv_header_stdc
=yes
4333 ac_cv_header_stdc
=no
4335 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4337 if test $ac_cv_header_stdc = yes; then
4338 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h. */
4344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4345 $EGREP "memchr" >/dev
/null
2>&1; then :
4348 ac_cv_header_stdc
=no
4354 if test $ac_cv_header_stdc = yes; then
4355 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4357 /* end confdefs.h. */
4361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4362 $EGREP "free" >/dev
/null
2>&1; then :
4365 ac_cv_header_stdc
=no
4371 if test $ac_cv_header_stdc = yes; then
4372 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4373 if test "$cross_compiling" = yes; then :
4376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4377 /* end confdefs.h. */
4380 #if ((' ' & 0x0FF) == 0x020)
4381 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4382 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4384 # define ISLOWER(c) \
4385 (('a' <= (c) && (c) <= 'i') \
4386 || ('j' <= (c) && (c) <= 'r') \
4387 || ('s' <= (c) && (c) <= 'z'))
4388 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4391 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4396 for (i = 0; i < 256; i++)
4397 if (XOR (islower (i), ISLOWER (i))
4398 || toupper (i) != TOUPPER (i))
4403 if ac_fn_c_try_run
"$LINENO"; then :
4406 ac_cv_header_stdc
=no
4408 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4409 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4415 $as_echo "$ac_cv_header_stdc" >&6; }
4416 if test $ac_cv_header_stdc = yes; then
4418 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4422 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4423 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4424 inttypes.h stdint.h unistd.h
4426 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4427 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4429 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4430 cat >>confdefs.h
<<_ACEOF
4431 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4440 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4441 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4448 if test "$MINIX" = yes; then
4450 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4453 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4456 $as_echo "#define _MINIX 1" >>confdefs.h
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4462 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4463 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4464 $as_echo_n "(cached) " >&6
4466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4467 /* end confdefs.h. */
4469 # define __EXTENSIONS__ 1
4470 $ac_includes_default
4479 if ac_fn_c_try_compile
"$LINENO"; then :
4480 ac_cv_safe_to_define___extensions__
=yes
4482 ac_cv_safe_to_define___extensions__
=no
4484 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4487 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4488 test $ac_cv_safe_to_define___extensions__ = yes &&
4489 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4491 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4493 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4495 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4497 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4501 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4502 if test -f "$ac_dir/install-sh"; then
4504 ac_install_sh
="$ac_aux_dir/install-sh -c"
4506 elif test -f "$ac_dir/install.sh"; then
4508 ac_install_sh
="$ac_aux_dir/install.sh -c"
4510 elif test -f "$ac_dir/shtool"; then
4512 ac_install_sh
="$ac_aux_dir/shtool install -c"
4516 if test -z "$ac_aux_dir"; then
4517 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4520 # These three variables are undocumented and unsupported,
4521 # and are intended to be withdrawn in a future Autoconf release.
4522 # They can cause serious problems if a builder's source tree is in a directory
4523 # whose full name contains unusual characters.
4524 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4525 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4526 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4529 # Make sure we can run config.sub.
4530 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4531 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4534 $as_echo_n "checking build system type... " >&6; }
4535 if ${ac_cv_build+:} false
; then :
4536 $as_echo_n "(cached) " >&6
4538 ac_build_alias
=$build_alias
4539 test "x$ac_build_alias" = x
&&
4540 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4541 test "x$ac_build_alias" = x
&&
4542 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4543 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4544 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4548 $as_echo "$ac_cv_build" >&6; }
4549 case $ac_cv_build in
4551 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4554 ac_save_IFS
=$IFS; IFS
='-'
4560 # Remember, the first character of IFS is used to create $*,
4561 # except with old shells:
4564 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4568 $as_echo_n "checking host system type... " >&6; }
4569 if ${ac_cv_host+:} false
; then :
4570 $as_echo_n "(cached) " >&6
4572 if test "x$host_alias" = x
; then
4573 ac_cv_host
=$ac_cv_build
4575 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4576 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4581 $as_echo "$ac_cv_host" >&6; }
4584 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4587 ac_save_IFS
=$IFS; IFS
='-'
4593 # Remember, the first character of IFS is used to create $*,
4594 # except with old shells:
4597 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4601 $as_echo_n "checking target system type... " >&6; }
4602 if ${ac_cv_target+:} false
; then :
4603 $as_echo_n "(cached) " >&6
4605 if test "x$target_alias" = x
; then
4606 ac_cv_target
=$ac_cv_host
4608 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4609 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4614 $as_echo "$ac_cv_target" >&6; }
4615 case $ac_cv_target in
4617 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4619 target
=$ac_cv_target
4620 ac_save_IFS
=$IFS; IFS
='-'
4626 # Remember, the first character of IFS is used to create $*,
4627 # except with old shells:
4630 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4633 # The aliases save the names the user supplied, while $host etc.
4634 # will get canonicalized.
4635 test -n "$target_alias" &&
4636 test "$program_prefix$program_suffix$program_transform_name" = \
4638 program_prefix
=${target_alias}-
4640 # The tests for host and target for $enable_largefile require
4645 # As the $enable_largefile decision depends on --enable-plugins we must set it
4646 # even in directories otherwise not depending on the $plugins option.
4650 for ac_header
in dlfcn.h
4652 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4654 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
4655 cat >>confdefs.h
<<_ACEOF
4656 #define HAVE_DLFCN_H 1
4663 for ac_header
in windows.h
4665 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4667 if test "x$ac_cv_header_windows_h" = xyes
; then :
4668 cat >>confdefs.h
<<_ACEOF
4669 #define HAVE_WINDOWS_H 1
4677 # Check whether --enable-plugins was given.
4678 if test "${enable_plugins+set}" = set; then :
4679 enableval
=$enable_plugins; case "${enableval}" in
4682 if test "$maybe_plugins" != "yes" ; then
4683 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4687 plugins
=$maybe_plugins
4691 if test "$plugins" = "yes"; then
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4693 $as_echo_n "checking for library containing dlsym... " >&6; }
4694 if ${ac_cv_search_dlsym+:} false
; then :
4695 $as_echo_n "(cached) " >&6
4697 ac_func_search_save_LIBS
=$LIBS
4698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4699 /* end confdefs.h. */
4701 /* Override any GCC internal prototype to avoid an error.
4702 Use char because int might match the return type of a GCC
4703 builtin and then its argument prototype would still apply. */
4716 for ac_lib
in '' dl
; do
4717 if test -z "$ac_lib"; then
4718 ac_res
="none required"
4721 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4723 if ac_fn_c_try_link
"$LINENO"; then :
4724 ac_cv_search_dlsym
=$ac_res
4726 rm -f core conftest.err conftest.
$ac_objext \
4728 if ${ac_cv_search_dlsym+:} false
; then :
4732 if ${ac_cv_search_dlsym+:} false
; then :
4735 ac_cv_search_dlsym
=no
4738 LIBS
=$ac_func_search_save_LIBS
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4741 $as_echo "$ac_cv_search_dlsym" >&6; }
4742 ac_res
=$ac_cv_search_dlsym
4743 if test "$ac_res" != no
; then :
4744 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4752 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4753 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4754 # are mutually exclusive; and without procfs support, the bfd/ elf module
4755 # cannot provide certain routines such as elfcore_write_prpsinfo
4756 # or elfcore_write_prstatus. So unless the user explicitly requested
4757 # large-file support through the --enable-largefile switch, disable
4758 # large-file support in favor of procfs support.
4759 test "${target}" = "${host}" -a "x$plugins" = xno \
4760 && : ${enable_largefile="no"}
4764 # Check whether --enable-largefile was given.
4765 if test "${enable_largefile+set}" = set; then :
4766 enableval
=$enable_largefile;
4769 if test "$enable_largefile" != no
; then
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4772 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4773 if ${ac_cv_sys_largefile_CC+:} false
; then :
4774 $as_echo_n "(cached) " >&6
4776 ac_cv_sys_largefile_CC
=no
4777 if test "$GCC" != yes; then
4780 # IRIX 6.2 and later do not support large files by default,
4781 # so use the C compiler's -n32 option if that helps.
4782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4783 /* end confdefs.h. */
4784 #include <sys/types.h>
4785 /* Check that off_t can represent 2**63 - 1 correctly.
4786 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4787 since some C++ compilers masquerading as C compilers
4788 incorrectly reject 9223372036854775807. */
4789 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4790 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4791 && LARGE_OFF_T % 2147483647 == 1)
4801 if ac_fn_c_try_compile
"$LINENO"; then :
4804 rm -f core conftest.err conftest.
$ac_objext
4806 if ac_fn_c_try_compile
"$LINENO"; then :
4807 ac_cv_sys_largefile_CC
=' -n32'; break
4809 rm -f core conftest.err conftest.
$ac_objext
4813 rm -f conftest.
$ac_ext
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4817 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4818 if test "$ac_cv_sys_largefile_CC" != no
; then
4819 CC
=$CC$ac_cv_sys_largefile_CC
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4823 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4824 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4825 $as_echo_n "(cached) " >&6
4828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4829 /* end confdefs.h. */
4830 #include <sys/types.h>
4831 /* Check that off_t can represent 2**63 - 1 correctly.
4832 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4833 since some C++ compilers masquerading as C compilers
4834 incorrectly reject 9223372036854775807. */
4835 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4836 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4837 && LARGE_OFF_T % 2147483647 == 1)
4847 if ac_fn_c_try_compile
"$LINENO"; then :
4848 ac_cv_sys_file_offset_bits
=no
; break
4850 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4852 /* end confdefs.h. */
4853 #define _FILE_OFFSET_BITS 64
4854 #include <sys/types.h>
4855 /* Check that off_t can represent 2**63 - 1 correctly.
4856 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4857 since some C++ compilers masquerading as C compilers
4858 incorrectly reject 9223372036854775807. */
4859 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4860 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4861 && LARGE_OFF_T % 2147483647 == 1)
4871 if ac_fn_c_try_compile
"$LINENO"; then :
4872 ac_cv_sys_file_offset_bits
=64; break
4874 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4875 ac_cv_sys_file_offset_bits
=unknown
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4880 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4881 case $ac_cv_sys_file_offset_bits in #(
4884 cat >>confdefs.h
<<_ACEOF
4885 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4890 if test $ac_cv_sys_file_offset_bits = unknown
; then
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4892 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4893 if ${ac_cv_sys_large_files+:} false
; then :
4894 $as_echo_n "(cached) " >&6
4897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4898 /* end confdefs.h. */
4899 #include <sys/types.h>
4900 /* Check that off_t can represent 2**63 - 1 correctly.
4901 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4902 since some C++ compilers masquerading as C compilers
4903 incorrectly reject 9223372036854775807. */
4904 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4905 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4906 && LARGE_OFF_T % 2147483647 == 1)
4916 if ac_fn_c_try_compile
"$LINENO"; then :
4917 ac_cv_sys_large_files
=no
; break
4919 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4921 /* end confdefs.h. */
4922 #define _LARGE_FILES 1
4923 #include <sys/types.h>
4924 /* Check that off_t can represent 2**63 - 1 correctly.
4925 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4926 since some C++ compilers masquerading as C compilers
4927 incorrectly reject 9223372036854775807. */
4928 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4929 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4930 && LARGE_OFF_T % 2147483647 == 1)
4940 if ac_fn_c_try_compile
"$LINENO"; then :
4941 ac_cv_sys_large_files
=1; break
4943 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4944 ac_cv_sys_large_files
=unknown
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4949 $as_echo "$ac_cv_sys_large_files" >&6; }
4950 case $ac_cv_sys_large_files in #(
4953 cat >>confdefs.h
<<_ACEOF
4954 #define _LARGE_FILES $ac_cv_sys_large_files
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4969 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4970 if ${am_cv_prog_cc_stdc+:} false
; then :
4971 $as_echo_n "(cached) " >&6
4973 am_cv_prog_cc_stdc
=no
4975 # Don't try gcc -ansi; that turns off useful extensions and
4976 # breaks some systems' header files.
4977 # AIX -qlanglvl=ansi
4978 # Ultrix and OSF/1 -std1
4979 # HP-UX 10.20 and later -Ae
4980 # HP-UX older versions -Aa -D_HPUX_SOURCE
4981 # SVR4 -Xc -D__EXTENSIONS__
4982 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4984 CC
="$ac_save_CC $ac_arg"
4985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4986 /* end confdefs.h. */
4989 #include <sys/types.h>
4990 #include <sys/stat.h>
4991 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4992 struct buf { int x; };
4993 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4994 static char *e (p, i)
5000 static char *f (char * (*g) (char **, int), char **p, ...)
5005 s = g (p, va_arg (v,int));
5009 int test (int i, double x);
5010 struct s1 {int (*f) (int a);};
5011 struct s2 {int (*f) (double a);};
5012 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5020 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5026 if ac_fn_c_try_compile
"$LINENO"; then :
5027 am_cv_prog_cc_stdc
="$ac_arg"; break
5029 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5035 if test -z "$am_cv_prog_cc_stdc"; then
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5037 $as_echo "none needed" >&6; }
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
5040 $as_echo "$am_cv_prog_cc_stdc" >&6; }
5042 case "x$am_cv_prog_cc_stdc" in
5044 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
5047 # Expand $ac_aux_dir to an absolute path.
5048 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
5050 if test x
"${install_sh+set}" != xset
; then
5053 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
5055 install_sh
="\${SHELL} $am_aux_dir/install-sh"
5059 # Installed binaries are usually stripped using 'strip' when the user
5060 # run "make install-strip". However 'strip' might not be the right
5061 # tool to use in cross-compilation environments, therefore Automake
5062 # will honor the 'STRIP' environment variable to overrule this program.
5063 if test "$cross_compiling" != no
; then
5064 if test -n "$ac_tool_prefix"; then
5065 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5066 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5068 $as_echo_n "checking for $ac_word... " >&6; }
5069 if ${ac_cv_prog_STRIP+:} false
; then :
5070 $as_echo_n "(cached) " >&6
5072 if test -n "$STRIP"; then
5073 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
5075 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5079 test -z "$as_dir" && as_dir
=.
5080 for ac_exec_ext
in '' $ac_executable_extensions; do
5081 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5082 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
5083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5092 STRIP
=$ac_cv_prog_STRIP
5093 if test -n "$STRIP"; then
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5095 $as_echo "$STRIP" >&6; }
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5098 $as_echo "no" >&6; }
5103 if test -z "$ac_cv_prog_STRIP"; then
5105 # Extract the first word of "strip", so it can be a program name with args.
5106 set dummy strip
; ac_word
=$2
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5108 $as_echo_n "checking for $ac_word... " >&6; }
5109 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
5110 $as_echo_n "(cached) " >&6
5112 if test -n "$ac_ct_STRIP"; then
5113 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5115 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5119 test -z "$as_dir" && as_dir
=.
5120 for ac_exec_ext
in '' $ac_executable_extensions; do
5121 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5122 ac_cv_prog_ac_ct_STRIP
="strip"
5123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5132 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5133 if test -n "$ac_ct_STRIP"; then
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5135 $as_echo "$ac_ct_STRIP" >&6; }
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138 $as_echo "no" >&6; }
5141 if test "x$ac_ct_STRIP" = x
; then
5144 case $cross_compiling:$ac_tool_warned in
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5148 ac_tool_warned
=yes ;;
5153 STRIP
="$ac_cv_prog_STRIP"
5157 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
5161 for ac_dir
in ..
"$srcdir"/..
; do
5162 if test -f "$ac_dir/install-sh"; then
5164 ac_install_sh
="$ac_aux_dir/install-sh -c"
5166 elif test -f "$ac_dir/install.sh"; then
5168 ac_install_sh
="$ac_aux_dir/install.sh -c"
5170 elif test -f "$ac_dir/shtool"; then
5172 ac_install_sh
="$ac_aux_dir/shtool install -c"
5176 if test -z "$ac_aux_dir"; then
5177 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
5180 # These three variables are undocumented and unsupported,
5181 # and are intended to be withdrawn in a future Autoconf release.
5182 # They can cause serious problems if a builder's source tree is in a directory
5183 # whose full name contains unusual characters.
5184 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5185 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5186 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5190 test "$program_prefix" != NONE
&&
5191 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
5192 # Use a double $ so make ignores it.
5193 test "$program_suffix" != NONE
&&
5194 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
5195 # Double any \ or $.
5196 # By default was `s,x,x', remove it if useless.
5197 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
5198 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
5201 # We require a C++11 compiler. Check if one is available, and if
5202 # necessary, set CXX_DIALECT to some -std=xxx switch.
5204 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5206 ac_cpp
='$CXXCPP $CPPFLAGS'
5207 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5208 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5209 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5213 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5214 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5215 $as_echo_n "(cached) " >&6
5217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5218 /* end confdefs.h. */
5221 // If the compiler admits that it is not ready for C++11, why torture it?
5222 // Hopefully, this will speed up the test.
5226 #error "This is not a C++ compiler"
5228 #elif __cplusplus < 201103L
5230 #error "This is not a C++11 compiler"
5237 namespace test_static_assert
5240 template <typename T>
5243 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5248 namespace test_final_override
5256 struct Derived : public Base
5258 virtual void f() override {}
5263 namespace test_double_right_angle_brackets
5266 template < typename T >
5269 typedef check<void> single_type;
5270 typedef check<check<void>> double_type;
5271 typedef check<check<check<void>>> triple_type;
5272 typedef check<check<check<check<void>>>> quadruple_type;
5276 namespace test_decltype
5289 namespace test_type_deduction
5292 template < typename T1, typename T2 >
5295 static const bool value = false;
5298 template < typename T >
5299 struct is_same<T, T>
5301 static const bool value = true;
5304 template < typename T1, typename T2 >
5306 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5312 test(const int c, volatile int v)
5314 static_assert(is_same<int, decltype(0)>::value == true, "");
5315 static_assert(is_same<int, decltype(c)>::value == false, "");
5316 static_assert(is_same<int, decltype(v)>::value == false, "");
5319 auto sumi = ac + av + 'x';
5320 auto sumf = ac + av + 1.0;
5321 static_assert(is_same<int, decltype(ac)>::value == true, "");
5322 static_assert(is_same<int, decltype(av)>::value == true, "");
5323 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5324 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5325 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5326 return (sumf > 0.0) ? sumi : add(c, v);
5331 namespace test_noexcept
5334 int f() { return 0; }
5335 int g() noexcept { return 0; }
5337 static_assert(noexcept(f()) == false, "");
5338 static_assert(noexcept(g()) == true, "");
5342 namespace test_constexpr
5345 template < typename CharT >
5346 unsigned long constexpr
5347 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5349 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5352 template < typename CharT >
5353 unsigned long constexpr
5354 strlen_c(const CharT *const s) noexcept
5356 return strlen_c_r(s, 0UL);
5359 static_assert(strlen_c("") == 0UL, "");
5360 static_assert(strlen_c("1") == 1UL, "");
5361 static_assert(strlen_c("example") == 7UL, "");
5362 static_assert(strlen_c("another\0example") == 7UL, "");
5366 namespace test_rvalue_references
5372 static constexpr int value = N;
5375 answer<1> f(int&) { return answer<1>(); }
5376 answer<2> f(const int&) { return answer<2>(); }
5377 answer<3> f(int&&) { return answer<3>(); }
5384 static_assert(decltype(f(i))::value == 1, "");
5385 static_assert(decltype(f(c))::value == 2, "");
5386 static_assert(decltype(f(0))::value == 3, "");
5391 namespace test_uniform_initialization
5396 static const int zero {};
5397 static const int one {1};
5400 static_assert(test::zero == 0, "");
5401 static_assert(test::one == 1, "");
5405 namespace test_lambdas
5411 auto lambda1 = [](){};
5412 auto lambda2 = lambda1;
5420 auto a = [](int i, int j){ return i + j; }(1, 2);
5421 auto b = []() -> int { return '0'; }();
5422 auto c = [=](){ return a + b; }();
5423 auto d = [&](){ return c; }();
5424 auto e = [a, &b](int x) mutable {
5425 const auto identity = [](int y){ return y; };
5426 for (auto i = 0; i < a; ++i)
5428 return x + identity(a + b);
5430 return a + b + c + d + e;
5436 const auto nullary = [](){ return 0; };
5437 const auto unary = [](int x){ return x; };
5438 using nullary_t = decltype(nullary);
5439 using unary_t = decltype(unary);
5440 const auto higher1st = [](nullary_t f){ return f(); };
5441 const auto higher2nd = [unary](nullary_t f1){
5442 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5444 return higher1st(nullary) + higher2nd(nullary)(unary);
5449 namespace test_variadic_templates
5455 template <int N0, int... N1toN>
5456 struct sum<N0, N1toN...>
5458 static constexpr auto value = N0 + sum<N1toN...>::value;
5464 static constexpr auto value = 0;
5467 static_assert(sum<>::value == 0, "");
5468 static_assert(sum<1>::value == 1, "");
5469 static_assert(sum<23>::value == 23, "");
5470 static_assert(sum<1, 2>::value == 3, "");
5471 static_assert(sum<5, 5, 11>::value == 21, "");
5472 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5476 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5477 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5479 namespace test_template_alias_sfinae
5484 template<typename T>
5485 using member = typename T::member_type;
5487 template<typename T>
5490 template<typename T>
5491 void func(member<T>*) {}
5495 void test() { func<foo>(0); }
5499 } // namespace cxx11
5501 #endif // __cplusplus >= 201103L
5506 if ac_fn_cxx_try_compile
"$LINENO"; then :
5507 ax_cv_cxx_compile_cxx11
=yes
5509 ax_cv_cxx_compile_cxx11
=no
5511 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5514 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5515 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
5519 if test x
$ac_success = xno
; then
5520 for alternative
in ${ax_cxx_compile_alternatives}; do
5521 switch
="-std=gnu++${alternative}"
5522 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5524 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5525 if eval \
${$cachevar+:} false
; then :
5526 $as_echo_n "(cached) " >&6
5530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5531 /* end confdefs.h. */
5534 // If the compiler admits that it is not ready for C++11, why torture it?
5535 // Hopefully, this will speed up the test.
5539 #error "This is not a C++ compiler"
5541 #elif __cplusplus < 201103L
5543 #error "This is not a C++11 compiler"
5550 namespace test_static_assert
5553 template <typename T>
5556 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5561 namespace test_final_override
5569 struct Derived : public Base
5571 virtual void f() override {}
5576 namespace test_double_right_angle_brackets
5579 template < typename T >
5582 typedef check<void> single_type;
5583 typedef check<check<void>> double_type;
5584 typedef check<check<check<void>>> triple_type;
5585 typedef check<check<check<check<void>>>> quadruple_type;
5589 namespace test_decltype
5602 namespace test_type_deduction
5605 template < typename T1, typename T2 >
5608 static const bool value = false;
5611 template < typename T >
5612 struct is_same<T, T>
5614 static const bool value = true;
5617 template < typename T1, typename T2 >
5619 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5625 test(const int c, volatile int v)
5627 static_assert(is_same<int, decltype(0)>::value == true, "");
5628 static_assert(is_same<int, decltype(c)>::value == false, "");
5629 static_assert(is_same<int, decltype(v)>::value == false, "");
5632 auto sumi = ac + av + 'x';
5633 auto sumf = ac + av + 1.0;
5634 static_assert(is_same<int, decltype(ac)>::value == true, "");
5635 static_assert(is_same<int, decltype(av)>::value == true, "");
5636 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5637 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5638 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5639 return (sumf > 0.0) ? sumi : add(c, v);
5644 namespace test_noexcept
5647 int f() { return 0; }
5648 int g() noexcept { return 0; }
5650 static_assert(noexcept(f()) == false, "");
5651 static_assert(noexcept(g()) == true, "");
5655 namespace test_constexpr
5658 template < typename CharT >
5659 unsigned long constexpr
5660 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5662 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5665 template < typename CharT >
5666 unsigned long constexpr
5667 strlen_c(const CharT *const s) noexcept
5669 return strlen_c_r(s, 0UL);
5672 static_assert(strlen_c("") == 0UL, "");
5673 static_assert(strlen_c("1") == 1UL, "");
5674 static_assert(strlen_c("example") == 7UL, "");
5675 static_assert(strlen_c("another\0example") == 7UL, "");
5679 namespace test_rvalue_references
5685 static constexpr int value = N;
5688 answer<1> f(int&) { return answer<1>(); }
5689 answer<2> f(const int&) { return answer<2>(); }
5690 answer<3> f(int&&) { return answer<3>(); }
5697 static_assert(decltype(f(i))::value == 1, "");
5698 static_assert(decltype(f(c))::value == 2, "");
5699 static_assert(decltype(f(0))::value == 3, "");
5704 namespace test_uniform_initialization
5709 static const int zero {};
5710 static const int one {1};
5713 static_assert(test::zero == 0, "");
5714 static_assert(test::one == 1, "");
5718 namespace test_lambdas
5724 auto lambda1 = [](){};
5725 auto lambda2 = lambda1;
5733 auto a = [](int i, int j){ return i + j; }(1, 2);
5734 auto b = []() -> int { return '0'; }();
5735 auto c = [=](){ return a + b; }();
5736 auto d = [&](){ return c; }();
5737 auto e = [a, &b](int x) mutable {
5738 const auto identity = [](int y){ return y; };
5739 for (auto i = 0; i < a; ++i)
5741 return x + identity(a + b);
5743 return a + b + c + d + e;
5749 const auto nullary = [](){ return 0; };
5750 const auto unary = [](int x){ return x; };
5751 using nullary_t = decltype(nullary);
5752 using unary_t = decltype(unary);
5753 const auto higher1st = [](nullary_t f){ return f(); };
5754 const auto higher2nd = [unary](nullary_t f1){
5755 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5757 return higher1st(nullary) + higher2nd(nullary)(unary);
5762 namespace test_variadic_templates
5768 template <int N0, int... N1toN>
5769 struct sum<N0, N1toN...>
5771 static constexpr auto value = N0 + sum<N1toN...>::value;
5777 static constexpr auto value = 0;
5780 static_assert(sum<>::value == 0, "");
5781 static_assert(sum<1>::value == 1, "");
5782 static_assert(sum<23>::value == 23, "");
5783 static_assert(sum<1, 2>::value == 3, "");
5784 static_assert(sum<5, 5, 11>::value == 21, "");
5785 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5789 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5790 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5792 namespace test_template_alias_sfinae
5797 template<typename T>
5798 using member = typename T::member_type;
5800 template<typename T>
5803 template<typename T>
5804 void func(member<T>*) {}
5808 void test() { func<foo>(0); }
5812 } // namespace cxx11
5814 #endif // __cplusplus >= 201103L
5819 if ac_fn_cxx_try_compile
"$LINENO"; then :
5824 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5827 eval ac_res
=\$
$cachevar
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5829 $as_echo "$ac_res" >&6; }
5830 if eval test x\$
$cachevar = xyes
; then
5831 CXX_DIALECT
="$switch"
5838 if test x
$ac_success = xno
; then
5839 for alternative
in ${ax_cxx_compile_alternatives}; do
5840 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5841 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
5843 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
5844 if eval \${$cachevar+:} false; then :
5845 $as_echo_n "(cached
) " >&6
5849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5850 /* end confdefs.h. */
5853 // If the compiler admits that it is not ready for C++11, why torture it?
5854 // Hopefully, this will speed up the test.
5858 #error "This is not a C
++ compiler
"
5860 #elif __cplusplus < 201103L
5862 #error "This is not a C
++11 compiler
"
5869 namespace test_static_assert
5872 template <typename T>
5875 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
5880 namespace test_final_override
5888 struct Derived : public Base
5890 virtual void f() override {}
5895 namespace test_double_right_angle_brackets
5898 template < typename T >
5901 typedef check<void> single_type;
5902 typedef check<check<void>> double_type;
5903 typedef check<check<check<void>>> triple_type;
5904 typedef check<check<check<check<void>>>> quadruple_type;
5908 namespace test_decltype
5921 namespace test_type_deduction
5924 template < typename T1, typename T2 >
5927 static const bool value = false;
5930 template < typename T >
5931 struct is_same<T, T>
5933 static const bool value = true;
5936 template < typename T1, typename T2 >
5938 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5944 test(const int c, volatile int v)
5946 static_assert(is_same<int, decltype(0)>::value == true, "");
5947 static_assert(is_same<int, decltype(c)>::value == false, "");
5948 static_assert(is_same<int, decltype(v)>::value == false, "");
5951 auto sumi = ac + av + 'x';
5952 auto sumf = ac + av + 1.0;
5953 static_assert(is_same<int, decltype(ac)>::value == true, "");
5954 static_assert(is_same<int, decltype(av)>::value == true, "");
5955 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5956 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5957 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5958 return (sumf > 0.0) ? sumi : add(c, v);
5963 namespace test_noexcept
5966 int f() { return 0; }
5967 int g() noexcept { return 0; }
5969 static_assert(noexcept(f()) == false, "");
5970 static_assert(noexcept(g()) == true, "");
5974 namespace test_constexpr
5977 template < typename CharT >
5978 unsigned long constexpr
5979 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5981 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5984 template < typename CharT >
5985 unsigned long constexpr
5986 strlen_c(const CharT *const s) noexcept
5988 return strlen_c_r(s, 0UL);
5991 static_assert(strlen_c("") == 0UL, "");
5992 static_assert(strlen_c("1") == 1UL, "");
5993 static_assert(strlen_c("example
") == 7UL, "");
5994 static_assert(strlen_c("another\
0example
") == 7UL, "");
5998 namespace test_rvalue_references
6004 static constexpr int value = N;
6007 answer<1> f(int&) { return answer<1>(); }
6008 answer<2> f(const int&) { return answer<2>(); }
6009 answer<3> f(int&&) { return answer<3>(); }
6016 static_assert(decltype(f(i))::value == 1, "");
6017 static_assert(decltype(f(c))::value == 2, "");
6018 static_assert(decltype(f(0))::value == 3, "");
6023 namespace test_uniform_initialization
6028 static const int zero {};
6029 static const int one {1};
6032 static_assert(test::zero == 0, "");
6033 static_assert(test::one == 1, "");
6037 namespace test_lambdas
6043 auto lambda1 = [](){};
6044 auto lambda2 = lambda1;
6052 auto a = [](int i, int j){ return i + j; }(1, 2);
6053 auto b = []() -> int { return '0'; }();
6054 auto c = [=](){ return a + b; }();
6055 auto d = [&](){ return c; }();
6056 auto e = [a, &b](int x) mutable {
6057 const auto identity = [](int y){ return y; };
6058 for (auto i = 0; i < a; ++i)
6060 return x + identity(a + b);
6062 return a + b + c + d + e;
6068 const auto nullary = [](){ return 0; };
6069 const auto unary = [](int x){ return x; };
6070 using nullary_t = decltype(nullary);
6071 using unary_t = decltype(unary);
6072 const auto higher1st = [](nullary_t f){ return f(); };
6073 const auto higher2nd = [unary](nullary_t f1){
6074 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6076 return higher1st(nullary) + higher2nd(nullary)(unary);
6081 namespace test_variadic_templates
6087 template <int N0, int... N1toN>
6088 struct sum<N0, N1toN...>
6090 static constexpr auto value = N0 + sum<N1toN...>::value;
6096 static constexpr auto value = 0;
6099 static_assert(sum<>::value == 0, "");
6100 static_assert(sum<1>::value == 1, "");
6101 static_assert(sum<23>::value == 23, "");
6102 static_assert(sum<1, 2>::value == 3, "");
6103 static_assert(sum<5, 5, 11>::value == 21, "");
6104 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6108 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6109 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6111 namespace test_template_alias_sfinae
6116 template<typename T>
6117 using member = typename T::member_type;
6119 template<typename T>
6122 template<typename T>
6123 void func(member<T>*) {}
6127 void test() { func<foo>(0); }
6131 } // namespace cxx11
6133 #endif // __cplusplus >= 201103L
6138 if ac_fn_cxx_try_compile "$LINENO"; then :
6143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6146 eval ac_res=\$$cachevar
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6148 $as_echo "$ac_res" >&6; }
6149 if eval test x\$$cachevar = xyes; then
6150 CXX_DIALECT="$switch"
6155 if test x$ac_success = xyes; then
6161 ac_cpp='$CPP $CPPFLAGS'
6162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6166 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6167 if test x$ac_success = xno; then
6168 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6171 if test x$ac_success = xno; then
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6174 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6178 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6185 # Dependency checking.
6186 rm -rf .tst
2>/dev
/null
6187 mkdir .tst
2>/dev
/null
6188 if test -d .tst
; then
6193 rmdir .tst
2>/dev
/null
6195 DEPDIR
="${am__leading_dot}deps"
6197 ac_config_commands
="$ac_config_commands depdir"
6200 depcc
="$CC" am_compiler_list
=
6202 am_depcomp
=$ac_aux_dir/depcomp
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6204 $as_echo_n "checking dependency style of $depcc... " >&6; }
6205 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
6206 $as_echo_n "(cached) " >&6
6208 if test -f "$am_depcomp"; then
6209 # We make a subdir and do the tests there. Otherwise we can end up
6210 # making bogus files that we don't know about and never remove. For
6211 # instance it was reported that on HP-UX the gcc test will end up
6212 # making a dummy file named `D' -- because `-MD' means `put the output
6215 # Copy depcomp to subdir because otherwise we won't find it if we're
6216 # using a relative directory.
6217 cp "$am_depcomp" conftest.dir
6219 # We will build objects and dependencies in a subdirectory because
6220 # it helps to detect inapplicable dependency modes. For instance
6221 # both Tru64's cc and ICC support -MD to output dependencies as a
6222 # side effect of compilation, but ICC will put the dependencies in
6223 # the current directory while Tru64 will put them in the object
6227 am_cv_CC_dependencies_compiler_type
=none
6228 if test "$am_compiler_list" = ""; then
6229 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6231 for depmode
in $am_compiler_list; do
6232 if test $depmode = none
; then break; fi
6234 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6235 # Setup a source with many dependencies, because some compilers
6236 # like to wrap large dependency lists on column 80 (with \), and
6237 # we should not choose a depcomp mode which is confused by this.
6239 # We need to recreate these files for each test, as the compiler may
6240 # overwrite some of them when testing with obscure command lines.
6241 # This happens at least with the AIX C compiler.
6243 for i
in 1 2 3 4 5 6; do
6244 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6245 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6246 # Solaris 8's {/usr,}/bin/sh.
6247 touch sub
/conftst
$i.h
6249 echo "include sub/conftest.Po" > confmf
6251 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6252 # mode. It turns out that the SunPro C++ compiler does not properly
6253 # handle `-M -o', and we need to detect this.
6254 depcmd
="depmode=$depmode \
6255 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6256 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6257 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6258 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
6259 if env
$depcmd > conftest.err
2>&1 &&
6260 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
6261 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
6262 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
6263 # icc doesn't choke on unknown options, it will just issue warnings
6264 # or remarks (even with -Werror). So we grep stderr for any message
6265 # that says an option was ignored or not supported.
6266 # When given -MP, icc 7.0 and 7.1 complain thusly:
6267 # icc: Command line warning: ignoring option '-M'; no argument required
6268 # The diagnosis changed in icc 8.0:
6269 # icc: Command line remark: option '-MP' not supported
6270 if (grep 'ignoring option' conftest.err ||
6271 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6272 am_cv_CC_dependencies_compiler_type
=$depmode
6273 $as_echo "$as_me:$LINENO: success" >&5
6277 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6278 sed -e 's/^/| /' < conftest.err
>&5
6284 am_cv_CC_dependencies_compiler_type
=none
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6289 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6290 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
6291 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
6292 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
6308 # If we haven't got the data from the intl directory,
6309 # assume NLS is disabled.
6318 if test -f ..
/intl
/config.intl
; then
6319 . ..
/intl
/config.intl
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6322 $as_echo_n "checking whether NLS is requested... " >&6; }
6323 if test x
"$USE_NLS" != xyes
; then
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6325 $as_echo "no" >&6; }
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6328 $as_echo "yes" >&6; }
6330 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6334 $as_echo_n "checking for catalogs to be installed... " >&6; }
6335 # Look for .po and .gmo files in the source directory.
6338 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
6339 # If there aren't any .gmo files the shell will give us the
6340 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6342 case "$cat" in *\
**)
6345 # The quadruple backslash is collapsed to a double backslash
6346 # by the backticks, then collapsed again by the double quotes,
6347 # leaving us with one backslash in the sed expression (right
6348 # before the dot that mustn't act as a wildcard).
6349 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6350 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
6351 # The user is allowed to set LINGUAS to a list of languages to
6352 # install catalogs for. If it's empty that means "all of them."
6353 if test "x$LINGUAS" = x
; then
6354 CATALOGS
="$CATALOGS $cat"
6355 XLINGUAS
="$XLINGUAS $lang"
6357 case "$LINGUAS" in *$lang*)
6358 CATALOGS
="$CATALOGS $cat"
6359 XLINGUAS
="$XLINGUAS $lang"
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6366 $as_echo "$LINGUAS" >&6; }
6379 localedir
='${datadir}/locale'
6382 if test x
"$USE_NLS" = xyes
; then
6383 CONFIG_ALL
="$CONFIG_ALL all-po"
6384 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
6385 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
6386 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
6391 cat >>confdefs.h
<<_ACEOF
6392 #define PACKAGE "$PACKAGE"
6397 # We never need to detect it in this sub-configure.
6398 # But preserve it for config.status --recheck.
6402 MAKEINFO_EXTRA_FLAGS
=""
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
6404 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
6405 if ${gdb_cv_have_makeinfo_click+:} false
; then :
6406 $as_echo_n "(cached) " >&6
6408 echo '@clicksequence{a @click{} b}' >conftest.texinfo
6409 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
6410 gdb_cv_have_makeinfo_click
=yes
6412 gdb_cv_have_makeinfo_click
=no
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
6416 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
6417 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
6418 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
6424 # Check whether --with-separate-debug-dir was given.
6425 if test "${with_separate_debug_dir+set}" = set; then :
6426 withval
=$with_separate_debug_dir;
6429 DEBUGDIR
=${libdir}/debug
6433 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6434 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6435 ac_define_dir
=`eval echo $DEBUGDIR`
6436 ac_define_dir
=`eval echo $ac_define_dir`
6438 cat >>confdefs.h
<<_ACEOF
6439 #define DEBUGDIR "$ac_define_dir"
6445 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6446 if test "x$prefix" = xNONE
; then
6447 test_prefix
=/usr
/local
6452 test_prefix
=$exec_prefix
6455 case ${ac_define_dir} in
6456 "${test_prefix}"|
"${test_prefix}/"*|\
6457 '${exec_prefix}'|
'${exec_prefix}/'*)
6462 cat >>confdefs.h
<<_ACEOF
6463 #define DEBUGDIR_RELOCATABLE $value
6469 # We can't pass paths as command line arguments.
6470 # Mingw32 tries to be clever and will convert the paths for us.
6471 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
6472 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
6473 # This breaks GDB's relocatable path conversions since paths passed in
6474 # config.h would not get so translated, the path prefixes no longer match.
6476 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6477 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6478 ac_define_dir
=`eval echo $bindir`
6479 ac_define_dir
=`eval echo $ac_define_dir`
6481 cat >>confdefs.h
<<_ACEOF
6482 #define BINDIR "$ac_define_dir"
6487 # GDB's datadir relocation
6491 # Check whether --with-gdb-datadir was given.
6492 if test "${with_gdb_datadir+set}" = set; then :
6493 withval
=$with_gdb_datadir;
6494 GDB_DATADIR
=$withval
6496 GDB_DATADIR
=${datadir}/gdb
6500 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6501 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6502 ac_define_dir
=`eval echo $GDB_DATADIR`
6503 ac_define_dir
=`eval echo $ac_define_dir`
6505 cat >>confdefs.h
<<_ACEOF
6506 #define GDB_DATADIR "$ac_define_dir"
6512 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6513 if test "x$prefix" = xNONE
; then
6514 test_prefix
=/usr
/local
6519 test_prefix
=$exec_prefix
6522 case ${ac_define_dir} in
6523 "${test_prefix}"|
"${test_prefix}/"*|\
6524 '${exec_prefix}'|
'${exec_prefix}/'*)
6529 cat >>confdefs.h
<<_ACEOF
6530 #define GDB_DATADIR_RELOCATABLE $value
6537 # Check whether --with-relocated-sources was given.
6538 if test "${with_relocated_sources+set}" = set; then :
6539 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
6541 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6542 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6543 ac_define_dir
=`eval echo $reloc_srcdir`
6544 ac_define_dir
=`eval echo $ac_define_dir`
6546 cat >>confdefs.h
<<_ACEOF
6547 #define RELOC_SRCDIR "$ac_define_dir"
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
6556 $as_echo_n "checking for default auto-load directory... " >&6; }
6558 # Check whether --with-auto-load-dir was given.
6559 if test "${with_auto_load_dir+set}" = set; then :
6560 withval
=$with_auto_load_dir;
6562 with_auto_load_dir
='$debugdir:$datadir/auto-load'
6565 escape_dir
=`echo $with_auto_load_dir | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6567 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6568 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6569 ac_define_dir
=`eval echo $escape_dir`
6570 ac_define_dir
=`eval echo $ac_define_dir`
6572 cat >>confdefs.h
<<_ACEOF
6573 #define AUTO_LOAD_DIR "$ac_define_dir"
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
6578 $as_echo "$with_auto_load_dir" >&6; }
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
6581 $as_echo_n "checking for default auto-load safe-path... " >&6; }
6583 # Check whether --with-auto-load-safe-path was given.
6584 if test "${with_auto_load_safe_path+set}" = set; then :
6585 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
6586 with_auto_load_safe_path
="/"
6589 with_auto_load_safe_path
="$with_auto_load_dir"
6592 escape_dir
=`echo $with_auto_load_safe_path | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6594 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6595 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6596 ac_define_dir
=`eval echo $escape_dir`
6597 ac_define_dir
=`eval echo $ac_define_dir`
6599 cat >>confdefs.h
<<_ACEOF
6600 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
6605 $as_echo "$with_auto_load_safe_path" >&6; }
6609 subdirs
="$subdirs testsuite"
6612 # Check whether to support alternative target configurations
6613 # Check whether --enable-targets was given.
6614 if test "${enable_targets+set}" = set; then :
6615 enableval
=$enable_targets; case "${enableval}" in
6616 yes |
"") as_fn_error $?
"enable-targets option must specify target names or 'all'" "$LINENO" 5
6618 no
) enable_targets
= ;;
6619 *) enable_targets
=$enableval ;;
6624 # Check whether to enable 64-bit support on 32-bit hosts
6625 # Check whether --enable-64-bit-bfd was given.
6626 if test "${enable_64_bit_bfd+set}" = set; then :
6627 enableval
=$enable_64_bit_bfd; case "${enableval}" in
6630 *) as_fn_error $?
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
6636 # Provide defaults for some variables set by the per-host and per-target
6638 gdb_host_obs
=posix-hdep.o
6640 if test "${target}" = "${host}"; then
6646 .
$srcdir/configure.
host
6648 # Accumulate some settings from configure.tgt over all enabled targets
6652 HAVE_NATIVE_GCORE_TARGET
=
6654 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6656 if test "$targ_alias" = "all"; then
6659 # Canonicalize the secondary target names.
6660 result
=`$ac_config_sub $targ_alias 2>/dev/null`
6661 if test -n "$result"; then
6667 .
${srcdir}/configure.tgt
6669 if test -z "${gdb_target_obs}"; then :
6670 as_fn_error $?
"configuration ${targ} is unsupported." "$LINENO" 5
6673 # Target-specific object files
6674 for i
in ${gdb_target_obs}; do
6675 case " $TARGET_OBS " in
6678 TARGET_OBS
="$TARGET_OBS ${i}"
6683 # Check whether this target needs 64-bit CORE_ADDR
6684 if test x
${want64} = xfalse
; then
6685 .
${srcdir}/..
/bfd
/config.bfd
6688 # Check whether this target is native and supports gcore.
6689 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
6690 && $gdb_have_gcore; then
6691 HAVE_NATIVE_GCORE_TARGET
=1
6696 if test x
${all_targets} = xtrue
; then
6698 # We want all 64-bit targets if we either:
6699 # - run on a 64-bit host or
6700 # - already require 64-bit support for some other target or
6701 # - the --enable-64-bit-bfd option was supplied
6702 # Otherwise we only support all 32-bit targets.
6704 # NOTE: This test must be in sync with the corresponding
6707 if test x
${want64} = xfalse
; then
6708 # The cast to long int works around a bug in the HP C Compiler
6709 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6710 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6711 # This bug is HP SR number 8606223364.
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6713 $as_echo_n "checking size of long... " >&6; }
6714 if ${ac_cv_sizeof_long+:} false
; then :
6715 $as_echo_n "(cached) " >&6
6717 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6720 if test "$ac_cv_type_long" = yes; then
6721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6723 as_fn_error
77 "cannot compute sizeof (long)
6724 See \`config.log' for more details" "$LINENO" 5; }
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6732 $as_echo "$ac_cv_sizeof_long" >&6; }
6736 cat >>confdefs.h
<<_ACEOF
6737 #define SIZEOF_LONG $ac_cv_sizeof_long
6741 if test "x${ac_cv_sizeof_long}" = "x8"; then
6745 if test x
${want64} = xtrue
; then
6746 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
6748 TARGET_OBS
='$(ALL_TARGET_OBS)'
6755 # For other settings, only the main target counts.
6758 targ
=$target; .
${srcdir}/configure.tgt
6760 # Fetch the default architecture and default target vector from BFD.
6761 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
6763 # We only want the first architecture, so strip off the others if
6764 # there is more than one.
6765 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
6767 if test "x$targ_archs" != x
; then
6769 cat >>confdefs.h
<<_ACEOF
6770 #define DEFAULT_BFD_ARCH $targ_archs
6774 if test "x$targ_defvec" != x
; then
6776 cat >>confdefs.h
<<_ACEOF
6777 #define DEFAULT_BFD_VEC $targ_defvec
6783 # Check whether --enable-gdbmi was given.
6784 if test "${enable_gdbmi+set}" = set; then :
6785 enableval
=$enable_gdbmi; case $enableval in
6789 as_fn_error $?
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
6795 if test x
"$enable_gdbmi" = xyes
; then
6796 if test -d "$srcdir/mi"; then
6797 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6798 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6799 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6800 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6805 # Check whether --enable-tui was given.
6806 if test "${enable_tui+set}" = set; then :
6807 enableval
=$enable_tui; case $enableval in
6811 as_fn_error $?
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
6819 # Check whether --enable-gdbtk was given.
6820 if test "${enable_gdbtk+set}" = set; then :
6821 enableval
=$enable_gdbtk; case $enableval in
6825 as_fn_error $?
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
6828 if test -d "$srcdir/gdbtk"; then
6835 # We unconditionally disable gdbtk tests on selected platforms.
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
6839 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6843 # Handle optional debuginfod support
6847 # Check whether --with-debuginfod was given.
6848 if test "${with_debuginfod+set}" = set; then :
6849 withval
=$with_debuginfod;
6851 with_debuginfod
=auto
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
6855 $as_echo_n "checking whether to use debuginfod... " >&6; }
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
6857 $as_echo "$with_debuginfod" >&6; }
6859 if test "${with_debuginfod}" = no
; then
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
6861 $as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for debuginfod_begin in -ldebuginfod" >&5
6864 $as_echo_n "checking for debuginfod_begin in -ldebuginfod... " >&6; }
6865 if ${ac_cv_lib_debuginfod_debuginfod_begin+:} false
; then :
6866 $as_echo_n "(cached) " >&6
6868 ac_check_lib_save_LIBS
=$LIBS
6869 LIBS
="-ldebuginfod $LIBS"
6870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6871 /* end confdefs.h. */
6873 /* Override any GCC internal prototype to avoid an error.
6874 Use char because int might match the return type of a GCC
6875 builtin and then its argument prototype would still apply. */
6879 char debuginfod_begin ();
6883 return debuginfod_begin ();
6888 if ac_fn_c_try_link
"$LINENO"; then :
6889 ac_cv_lib_debuginfod_debuginfod_begin
=yes
6891 ac_cv_lib_debuginfod_debuginfod_begin
=no
6893 rm -f core conftest.err conftest.
$ac_objext \
6894 conftest
$ac_exeext conftest.
$ac_ext
6895 LIBS
=$ac_check_lib_save_LIBS
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_debuginfod_debuginfod_begin" >&5
6898 $as_echo "$ac_cv_lib_debuginfod_debuginfod_begin" >&6; }
6899 if test "x$ac_cv_lib_debuginfod_debuginfod_begin" = xyes
; then :
6900 have_debuginfod_lib
=yes
6903 ac_fn_c_check_decl
"$LINENO" "debuginfod_begin" "ac_cv_have_decl_debuginfod_begin" "#include <elfutils/debuginfod.h>
6905 if test "x$ac_cv_have_decl_debuginfod_begin" = xyes
; then :
6906 have_debuginfod_h
=yes
6909 if test "x$have_debuginfod_lib" = "xyes" -a \
6910 "x$have_debuginfod_h" = "xyes"; then
6912 $as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
6914 LIBDEBUGINFOD
="-ldebuginfod"
6918 if test "$with_debuginfod" = yes; then
6919 as_fn_error $?
"debuginfod is missing or unusable" "$LINENO" 5
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod is missing or unusable; some features may be unavailable." >&5
6922 $as_echo "$as_me: WARNING: debuginfod is missing or unusable; some features may be unavailable." >&2;}
6928 # Libunwind support for ia64.
6930 # Check whether --with-libunwind-ia64 was given.
6931 if test "${with_libunwind_ia64+set}" = set; then :
6932 withval
=$with_libunwind_ia64;
6934 with_libunwind_ia64
=auto
6938 # Backward compatibility option.
6939 if test "${with_libunwind+set}" = set; then
6940 if test x
"$with_libunwind_ia64" != xauto
; then
6941 as_fn_error $?
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
6944 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
6945 with_libunwind_ia64
="$with_libunwind"
6948 case "$with_libunwind_ia64" in
6952 for ac_header
in libunwind-ia64.h
6954 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
6955 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
6956 cat >>confdefs.h
<<_ACEOF
6957 #define HAVE_LIBUNWIND_IA64_H 1
6964 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
6967 as_fn_error $?
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
6971 if test x
"$with_libunwind_ia64" = xyes
; then
6972 for ac_header
in libunwind-ia64.h
6974 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
6975 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
6976 cat >>confdefs.h
<<_ACEOF
6977 #define HAVE_LIBUNWIND_IA64_H 1
6984 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
6985 as_fn_error $?
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
6987 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
6988 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
6989 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
6994 # Check whether --with-curses was given.
6995 if test "${with_curses+set}" = set; then :
6996 withval
=$with_curses; opt_curses
=$withval
7001 if test "$opt_curses" = "yes"; then
7005 # Profiling support.
7006 # Check whether --enable-profiling was given.
7007 if test "${enable_profiling+set}" = set; then :
7008 enableval
=$enable_profiling; case $enableval in
7012 as_fn_error $?
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
7019 for ac_func
in monstartup _mcleanup
7021 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7022 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7023 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7024 cat >>confdefs.h
<<_ACEOF
7025 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
7032 $as_echo_n "checking for _etext... " >&6; }
7033 if ${ac_cv_var__etext+:} false
; then :
7034 $as_echo_n "(cached) " >&6
7036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7037 /* end confdefs.h. */
7049 if ac_fn_c_try_link
"$LINENO"; then :
7050 ac_cv_var__etext
=yes
7054 rm -f core conftest.err conftest.
$ac_objext \
7055 conftest
$ac_exeext conftest.
$ac_ext
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
7058 $as_echo "$ac_cv_var__etext" >&6; }
7059 if test "$ac_cv_var__etext" = yes; then
7061 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
7065 $as_echo_n "checking for etext... " >&6; }
7066 if ${ac_cv_var_etext+:} false
; then :
7067 $as_echo_n "(cached) " >&6
7069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7070 /* end confdefs.h. */
7082 if ac_fn_c_try_link
"$LINENO"; then :
7087 rm -f core conftest.err conftest.
$ac_objext \
7088 conftest
$ac_exeext conftest.
$ac_ext
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
7091 $as_echo "$ac_cv_var_etext" >&6; }
7092 if test "$ac_cv_var_etext" = yes; then
7094 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
7097 if test "$enable_profiling" = yes ; then
7098 if test "$ac_cv_func_monstartup" = no ||
test "$ac_cv_func__mcleanup" = no
; then
7099 as_fn_error $?
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
7102 OLD_CFLAGS
="$CFLAGS"
7103 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
7106 $as_echo_n "checking whether $CC supports -pg... " >&6; }
7107 if ${ac_cv_cc_supports_pg+:} false
; then :
7108 $as_echo_n "(cached) " >&6
7110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7111 /* end confdefs.h. */
7121 if ac_fn_c_try_compile
"$LINENO"; then :
7122 ac_cv_cc_supports_pg
=yes
7124 ac_cv_cc_supports_pg
=no
7126 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
7129 $as_echo "$ac_cv_cc_supports_pg" >&6; }
7131 if test "$ac_cv_cc_supports_pg" = no
; then
7132 as_fn_error $?
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
7135 CFLAGS
="$OLD_CFLAGS"
7139 # Check whether --enable-codesign was given.
7140 if test "${enable_codesign+set}" = set; then :
7141 enableval
=$enable_codesign; CODESIGN_CERT
=$enableval
7148 # Check whether --with-pkgversion was given.
7149 if test "${with_pkgversion+set}" = set; then :
7150 withval
=$with_pkgversion; case "$withval" in
7151 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
7153 *) PKGVERSION
="($withval) " ;;
7164 # Check whether --with-bugurl was given.
7165 if test "${with_bugurl+set}" = set; then :
7166 withval
=$with_bugurl; case "$withval" in
7167 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
7170 *) BUGURL
="$withval"
7174 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
7184 REPORT_BUGS_TO
="<$BUGURL>"
7185 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7192 cat >>confdefs.h
<<_ACEOF
7193 #define PKGVERSION "$PKGVERSION"
7197 cat >>confdefs.h
<<_ACEOF
7198 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7202 # --------------------- #
7203 # Checks for programs. #
7204 # --------------------- #
7206 for ac_prog
in gawk mawk nawk
awk
7208 # Extract the first word of "$ac_prog", so it can be a program name with args.
7209 set dummy
$ac_prog; ac_word
=$2
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7211 $as_echo_n "checking for $ac_word... " >&6; }
7212 if ${ac_cv_prog_AWK+:} false
; then :
7213 $as_echo_n "(cached) " >&6
7215 if test -n "$AWK"; then
7216 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7218 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7222 test -z "$as_dir" && as_dir
=.
7223 for ac_exec_ext
in '' $ac_executable_extensions; do
7224 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7225 ac_cv_prog_AWK
="$ac_prog"
7226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7236 if test -n "$AWK"; then
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7238 $as_echo "$AWK" >&6; }
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7241 $as_echo "no" >&6; }
7245 test -n "$AWK" && break
7248 # Find a good install program. We prefer a C program (faster),
7249 # so one script is as good as another. But avoid the broken or
7250 # incompatible versions:
7251 # SysV /etc/install, /usr/sbin/install
7252 # SunOS /usr/etc/install
7253 # IRIX /sbin/install
7255 # AmigaOS /C/install, which installs bootblocks on floppy discs
7256 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7257 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7258 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7259 # OS/2's system install, which has a completely different semantic
7260 # ./install, which can be erroneously created by make from ./install.sh.
7261 # Reject install programs that cannot install multiple files.
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7263 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7264 if test -z "$INSTALL"; then
7265 if ${ac_cv_path_install+:} false
; then :
7266 $as_echo_n "(cached) " >&6
7268 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7272 test -z "$as_dir" && as_dir
=.
7273 # Account for people who put trailing slashes in PATH elements.
7274 case $as_dir/ in #((
7275 .
/ | .
// |
/[cC
]/* | \
7276 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7277 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
7280 # OSF1 and SCO ODT 3.0 have their own names for install.
7281 # Don't use installbsd from OSF since it installs stuff as root
7283 for ac_prog
in ginstall scoinst
install; do
7284 for ac_exec_ext
in '' $ac_executable_extensions; do
7285 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
7286 if test $ac_prog = install &&
7287 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7288 # AIX install. It has an incompatible calling convention.
7290 elif test $ac_prog = install &&
7291 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7292 # program-specific install script used by HP pwplus--don't use.
7295 rm -rf conftest.one conftest.two conftest.dir
7296 echo one
> conftest.one
7297 echo two
> conftest.two
7299 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
7300 test -s conftest.one
&& test -s conftest.two
&&
7301 test -s conftest.dir
/conftest.one
&&
7302 test -s conftest.dir
/conftest.two
7304 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7317 rm -rf conftest.one conftest.two conftest.dir
7320 if test "${ac_cv_path_install+set}" = set; then
7321 INSTALL
=$ac_cv_path_install
7323 # As a last resort, use the slow shell script. Don't cache a
7324 # value for INSTALL within a source directory, because that will
7325 # break other packages using the cache if that directory is
7326 # removed, or if the value is a relative name.
7327 INSTALL
=$ac_install_sh
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7331 $as_echo "$INSTALL" >&6; }
7333 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7334 # It thinks the first close brace ends the variable substitution.
7335 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7337 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7339 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7342 $as_echo_n "checking whether ln -s works... " >&6; }
7344 if test "$LN_S" = "ln -s"; then
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7346 $as_echo "yes" >&6; }
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7349 $as_echo "no, using $LN_S" >&6; }
7352 if test -n "$ac_tool_prefix"; then
7353 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7354 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7356 $as_echo_n "checking for $ac_word... " >&6; }
7357 if ${ac_cv_prog_RANLIB+:} false
; then :
7358 $as_echo_n "(cached) " >&6
7360 if test -n "$RANLIB"; then
7361 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7363 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7367 test -z "$as_dir" && as_dir
=.
7368 for ac_exec_ext
in '' $ac_executable_extensions; do
7369 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7370 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7380 RANLIB
=$ac_cv_prog_RANLIB
7381 if test -n "$RANLIB"; then
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7383 $as_echo "$RANLIB" >&6; }
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7386 $as_echo "no" >&6; }
7391 if test -z "$ac_cv_prog_RANLIB"; then
7392 ac_ct_RANLIB
=$RANLIB
7393 # Extract the first word of "ranlib", so it can be a program name with args.
7394 set dummy ranlib
; ac_word
=$2
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7396 $as_echo_n "checking for $ac_word... " >&6; }
7397 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
7398 $as_echo_n "(cached) " >&6
7400 if test -n "$ac_ct_RANLIB"; then
7401 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7403 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7407 test -z "$as_dir" && as_dir
=.
7408 for ac_exec_ext
in '' $ac_executable_extensions; do
7409 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7410 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7420 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7421 if test -n "$ac_ct_RANLIB"; then
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7423 $as_echo "$ac_ct_RANLIB" >&6; }
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7426 $as_echo "no" >&6; }
7429 if test "x$ac_ct_RANLIB" = x
; then
7432 case $cross_compiling:$ac_tool_warned in
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7436 ac_tool_warned
=yes ;;
7438 RANLIB
=$ac_ct_RANLIB
7441 RANLIB
="$ac_cv_prog_RANLIB"
7444 for ac_prog
in 'bison -y' byacc
7446 # Extract the first word of "$ac_prog", so it can be a program name with args.
7447 set dummy
$ac_prog; ac_word
=$2
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7449 $as_echo_n "checking for $ac_word... " >&6; }
7450 if ${ac_cv_prog_YACC+:} false
; then :
7451 $as_echo_n "(cached) " >&6
7453 if test -n "$YACC"; then
7454 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
7456 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7460 test -z "$as_dir" && as_dir
=.
7461 for ac_exec_ext
in '' $ac_executable_extensions; do
7462 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7463 ac_cv_prog_YACC
="$ac_prog"
7464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7473 YACC
=$ac_cv_prog_YACC
7474 if test -n "$YACC"; then
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7476 $as_echo "$YACC" >&6; }
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7479 $as_echo "no" >&6; }
7483 test -n "$YACC" && break
7485 test -n "$YACC" || YACC
="yacc"
7488 if test -n "$ac_tool_prefix"; then
7489 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7490 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7492 $as_echo_n "checking for $ac_word... " >&6; }
7493 if ${ac_cv_prog_AR+:} false
; then :
7494 $as_echo_n "(cached) " >&6
7496 if test -n "$AR"; then
7497 ac_cv_prog_AR
="$AR" # Let the user override the test.
7499 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7503 test -z "$as_dir" && as_dir
=.
7504 for ac_exec_ext
in '' $ac_executable_extensions; do
7505 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7506 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7517 if test -n "$AR"; then
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7519 $as_echo "$AR" >&6; }
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7522 $as_echo "no" >&6; }
7527 if test -z "$ac_cv_prog_AR"; then
7529 # Extract the first word of "ar", so it can be a program name with args.
7530 set dummy
ar; ac_word
=$2
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7532 $as_echo_n "checking for $ac_word... " >&6; }
7533 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
7534 $as_echo_n "(cached) " >&6
7536 if test -n "$ac_ct_AR"; then
7537 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7539 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7543 test -z "$as_dir" && as_dir
=.
7544 for ac_exec_ext
in '' $ac_executable_extensions; do
7545 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7546 ac_cv_prog_ac_ct_AR
="ar"
7547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7556 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7557 if test -n "$ac_ct_AR"; then
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7559 $as_echo "$ac_ct_AR" >&6; }
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7562 $as_echo "no" >&6; }
7565 if test "x$ac_ct_AR" = x
; then
7568 case $cross_compiling:$ac_tool_warned in
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7571 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7572 ac_tool_warned
=yes ;;
7580 if test -n "$ac_tool_prefix"; then
7581 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7582 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7584 $as_echo_n "checking for $ac_word... " >&6; }
7585 if ${ac_cv_prog_DLLTOOL+:} false
; then :
7586 $as_echo_n "(cached) " >&6
7588 if test -n "$DLLTOOL"; then
7589 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
7591 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7595 test -z "$as_dir" && as_dir
=.
7596 for ac_exec_ext
in '' $ac_executable_extensions; do
7597 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7598 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
7599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7608 DLLTOOL
=$ac_cv_prog_DLLTOOL
7609 if test -n "$DLLTOOL"; then
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7611 $as_echo "$DLLTOOL" >&6; }
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7614 $as_echo "no" >&6; }
7619 if test -z "$ac_cv_prog_DLLTOOL"; then
7620 ac_ct_DLLTOOL
=$DLLTOOL
7621 # Extract the first word of "dlltool", so it can be a program name with args.
7622 set dummy dlltool
; ac_word
=$2
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7624 $as_echo_n "checking for $ac_word... " >&6; }
7625 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
7626 $as_echo_n "(cached) " >&6
7628 if test -n "$ac_ct_DLLTOOL"; then
7629 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
7631 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7635 test -z "$as_dir" && as_dir
=.
7636 for ac_exec_ext
in '' $ac_executable_extensions; do
7637 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7638 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
7639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7648 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
7649 if test -n "$ac_ct_DLLTOOL"; then
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7651 $as_echo "$ac_ct_DLLTOOL" >&6; }
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7654 $as_echo "no" >&6; }
7657 if test "x$ac_ct_DLLTOOL" = x
; then
7660 case $cross_compiling:$ac_tool_warned in
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7664 ac_tool_warned
=yes ;;
7666 DLLTOOL
=$ac_ct_DLLTOOL
7669 DLLTOOL
="$ac_cv_prog_DLLTOOL"
7672 if test -n "$ac_tool_prefix"; then
7673 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7674 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7676 $as_echo_n "checking for $ac_word... " >&6; }
7677 if ${ac_cv_prog_WINDRES+:} false
; then :
7678 $as_echo_n "(cached) " >&6
7680 if test -n "$WINDRES"; then
7681 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
7683 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7687 test -z "$as_dir" && as_dir
=.
7688 for ac_exec_ext
in '' $ac_executable_extensions; do
7689 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7690 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
7691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7700 WINDRES
=$ac_cv_prog_WINDRES
7701 if test -n "$WINDRES"; then
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7703 $as_echo "$WINDRES" >&6; }
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7706 $as_echo "no" >&6; }
7711 if test -z "$ac_cv_prog_WINDRES"; then
7712 ac_ct_WINDRES
=$WINDRES
7713 # Extract the first word of "windres", so it can be a program name with args.
7714 set dummy windres
; ac_word
=$2
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7716 $as_echo_n "checking for $ac_word... " >&6; }
7717 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
7718 $as_echo_n "(cached) " >&6
7720 if test -n "$ac_ct_WINDRES"; then
7721 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
7723 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7727 test -z "$as_dir" && as_dir
=.
7728 for ac_exec_ext
in '' $ac_executable_extensions; do
7729 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7730 ac_cv_prog_ac_ct_WINDRES
="windres"
7731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7740 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
7741 if test -n "$ac_ct_WINDRES"; then
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7743 $as_echo "$ac_ct_WINDRES" >&6; }
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746 $as_echo "no" >&6; }
7749 if test "x$ac_ct_WINDRES" = x
; then
7752 case $cross_compiling:$ac_tool_warned in
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7756 ac_tool_warned
=yes ;;
7758 WINDRES
=$ac_ct_WINDRES
7761 WINDRES
="$ac_cv_prog_WINDRES"
7767 # Needed for GNU Hurd hosts.
7768 if test -n "$ac_tool_prefix"; then
7769 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7770 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7772 $as_echo_n "checking for $ac_word... " >&6; }
7773 if ${ac_cv_prog_MIG+:} false
; then :
7774 $as_echo_n "(cached) " >&6
7776 if test -n "$MIG"; then
7777 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
7779 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7783 test -z "$as_dir" && as_dir
=.
7784 for ac_exec_ext
in '' $ac_executable_extensions; do
7785 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7786 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
7787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7797 if test -n "$MIG"; then
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
7799 $as_echo "$MIG" >&6; }
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802 $as_echo "no" >&6; }
7807 if test -z "$ac_cv_prog_MIG"; then
7809 # Extract the first word of "mig", so it can be a program name with args.
7810 set dummy mig
; ac_word
=$2
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7812 $as_echo_n "checking for $ac_word... " >&6; }
7813 if ${ac_cv_prog_ac_ct_MIG+:} false
; then :
7814 $as_echo_n "(cached) " >&6
7816 if test -n "$ac_ct_MIG"; then
7817 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
7819 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7823 test -z "$as_dir" && as_dir
=.
7824 for ac_exec_ext
in '' $ac_executable_extensions; do
7825 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7826 ac_cv_prog_ac_ct_MIG
="mig"
7827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7836 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
7837 if test -n "$ac_ct_MIG"; then
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
7839 $as_echo "$ac_ct_MIG" >&6; }
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842 $as_echo "no" >&6; }
7845 if test "x$ac_ct_MIG" = x
; then
7848 case $cross_compiling:$ac_tool_warned in
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7852 ac_tool_warned
=yes ;;
7857 MIG
="$ac_cv_prog_MIG"
7860 if test x
"$MIG" = x
; then
7861 as_fn_error $?
"MIG not found but required for $host hosts" "$LINENO" 5
7866 # ---------------------- #
7867 # Checks for libraries. #
7868 # ---------------------- #
7870 # We might need to link with -lm; most simulators need it.
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
7872 $as_echo_n "checking for main in -lm... " >&6; }
7873 if ${ac_cv_lib_m_main+:} false
; then :
7874 $as_echo_n "(cached) " >&6
7876 ac_check_lib_save_LIBS
=$LIBS
7878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7879 /* end confdefs.h. */
7890 if ac_fn_c_try_link
"$LINENO"; then :
7891 ac_cv_lib_m_main
=yes
7895 rm -f core conftest.err conftest.
$ac_objext \
7896 conftest
$ac_exeext conftest.
$ac_ext
7897 LIBS
=$ac_check_lib_save_LIBS
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
7900 $as_echo "$ac_cv_lib_m_main" >&6; }
7901 if test "x$ac_cv_lib_m_main" = xyes
; then :
7902 cat >>confdefs.h
<<_ACEOF
7911 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
7913 $as_echo_n "checking for library containing gethostbyname... " >&6; }
7914 if ${ac_cv_search_gethostbyname+:} false
; then :
7915 $as_echo_n "(cached) " >&6
7917 ac_func_search_save_LIBS
=$LIBS
7918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7919 /* end confdefs.h. */
7921 /* Override any GCC internal prototype to avoid an error.
7922 Use char because int might match the return type of a GCC
7923 builtin and then its argument prototype would still apply. */
7927 char gethostbyname ();
7931 return gethostbyname ();
7936 for ac_lib
in '' nsl
; do
7937 if test -z "$ac_lib"; then
7938 ac_res
="none required"
7941 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7943 if ac_fn_c_try_link
"$LINENO"; then :
7944 ac_cv_search_gethostbyname
=$ac_res
7946 rm -f core conftest.err conftest.
$ac_objext \
7948 if ${ac_cv_search_gethostbyname+:} false
; then :
7952 if ${ac_cv_search_gethostbyname+:} false
; then :
7955 ac_cv_search_gethostbyname
=no
7958 LIBS
=$ac_func_search_save_LIBS
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
7961 $as_echo "$ac_cv_search_gethostbyname" >&6; }
7962 ac_res
=$ac_cv_search_gethostbyname
7963 if test "$ac_res" != no
; then :
7964 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7969 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
7971 $as_echo_n "checking for library containing socketpair... " >&6; }
7972 if ${ac_cv_search_socketpair+:} false
; then :
7973 $as_echo_n "(cached) " >&6
7975 ac_func_search_save_LIBS
=$LIBS
7976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7977 /* end confdefs.h. */
7979 /* Override any GCC internal prototype to avoid an error.
7980 Use char because int might match the return type of a GCC
7981 builtin and then its argument prototype would still apply. */
7989 return socketpair ();
7994 for ac_lib
in '' socket
; do
7995 if test -z "$ac_lib"; then
7996 ac_res
="none required"
7999 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8001 if ac_fn_c_try_link
"$LINENO"; then :
8002 ac_cv_search_socketpair
=$ac_res
8004 rm -f core conftest.err conftest.
$ac_objext \
8006 if ${ac_cv_search_socketpair+:} false
; then :
8010 if ${ac_cv_search_socketpair+:} false
; then :
8013 ac_cv_search_socketpair
=no
8016 LIBS
=$ac_func_search_save_LIBS
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
8019 $as_echo "$ac_cv_search_socketpair" >&6; }
8020 ac_res
=$ac_cv_search_socketpair
8021 if test "$ac_res" != no
; then :
8022 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8027 # Link in zlib if we can. This allows us to read compressed debug sections.
8029 # Use the system's zlib library.
8030 zlibdir
="-L\$(top_builddir)/../zlib"
8031 zlibinc
="-I\$(top_srcdir)/../zlib"
8033 # Check whether --with-system-zlib was given.
8034 if test "${with_system_zlib+set}" = set; then :
8035 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
8046 # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c).
8047 # On GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getvmmap" >&5
8049 $as_echo_n "checking for library containing kinfo_getvmmap... " >&6; }
8050 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
8051 $as_echo_n "(cached) " >&6
8053 ac_func_search_save_LIBS
=$LIBS
8054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8055 /* end confdefs.h. */
8057 /* Override any GCC internal prototype to avoid an error.
8058 Use char because int might match the return type of a GCC
8059 builtin and then its argument prototype would still apply. */
8063 char kinfo_getvmmap ();
8067 return kinfo_getvmmap ();
8072 for ac_lib
in '' util util-freebsd
; do
8073 if test -z "$ac_lib"; then
8074 ac_res
="none required"
8077 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8079 if ac_fn_c_try_link
"$LINENO"; then :
8080 ac_cv_search_kinfo_getvmmap
=$ac_res
8082 rm -f core conftest.err conftest.
$ac_objext \
8084 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
8088 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
8091 ac_cv_search_kinfo_getvmmap
=no
8094 LIBS
=$ac_func_search_save_LIBS
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getvmmap" >&5
8097 $as_echo "$ac_cv_search_kinfo_getvmmap" >&6; }
8098 ac_res
=$ac_cv_search_kinfo_getvmmap
8099 if test "$ac_res" != no
; then :
8100 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8102 $as_echo "#define HAVE_KINFO_GETVMMAP 1" >>confdefs.h
8108 if test "X$prefix" = "XNONE"; then
8109 acl_final_prefix
="$ac_default_prefix"
8111 acl_final_prefix
="$prefix"
8113 if test "X$exec_prefix" = "XNONE"; then
8114 acl_final_exec_prefix
='${prefix}'
8116 acl_final_exec_prefix
="$exec_prefix"
8118 acl_save_prefix
="$prefix"
8119 prefix
="$acl_final_prefix"
8120 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8121 prefix
="$acl_save_prefix"
8124 # Check whether --with-gnu-ld was given.
8125 if test "${with_gnu_ld+set}" = set; then :
8126 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8131 # Prepare PATH_SEPARATOR.
8132 # The user is always right.
8133 if test "${PATH_SEPARATOR+set}" != set; then
8134 echo "#! /bin/sh" >conf$$.sh
8135 echo "exit 0" >>conf$$.sh
8137 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8145 if test "$GCC" = yes; then
8146 # Check if gcc -print-prog-name=ld gives a path.
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8148 $as_echo_n "checking for ld used by GCC... " >&6; }
8151 # gcc leaves a trailing carriage return which upsets mingw
8152 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8154 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8157 # Accept absolute paths.
8158 [\\/]* |
[A-Za-z
]:[\\/]*)
8159 re_direlt
='/[^/][^/]*/\.\./'
8160 # Canonicalize the path of ld
8161 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8162 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8163 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8165 test -z "$LD" && LD
="$ac_prog"
8168 # If it fails, then pretend we aren't using GCC.
8172 # If it is relative, then search for the first ld in PATH.
8176 elif test "$with_gnu_ld" = yes; then
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8178 $as_echo_n "checking for GNU ld... " >&6; }
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8181 $as_echo_n "checking for non-GNU ld... " >&6; }
8183 if ${acl_cv_path_LD+:} false
; then :
8184 $as_echo_n "(cached) " >&6
8186 if test -z "$LD"; then
8187 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8188 for ac_dir
in $PATH; do
8189 test -z "$ac_dir" && ac_dir
=.
8190 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8191 acl_cv_path_LD
="$ac_dir/$ac_prog"
8192 # Check to see if the program is GNU ld. I'd rather use --version,
8193 # but apparently some GNU ld's only accept -v.
8194 # Break only if it was the GNU/non-GNU ld that we prefer.
8195 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
8196 test "$with_gnu_ld" != no
&& break
8198 test "$with_gnu_ld" != yes && break
8204 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8208 LD
="$acl_cv_path_LD"
8209 if test -n "$LD"; then
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8211 $as_echo "$LD" >&6; }
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8214 $as_echo "no" >&6; }
8216 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8218 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8219 if ${acl_cv_prog_gnu_ld+:} false
; then :
8220 $as_echo_n "(cached) " >&6
8222 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8223 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
8224 acl_cv_prog_gnu_ld
=yes
8226 acl_cv_prog_gnu_ld
=no
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8230 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8231 with_gnu_ld
=$acl_cv_prog_gnu_ld
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8236 $as_echo_n "checking for shared library run path origin... " >&6; }
8237 if ${acl_cv_rpath+:} false
; then :
8238 $as_echo_n "(cached) " >&6
8241 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8242 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8249 $as_echo "$acl_cv_rpath" >&6; }
8251 libext
="$acl_cv_libext"
8252 shlibext
="$acl_cv_shlibext"
8253 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8254 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8255 hardcode_direct
="$acl_cv_hardcode_direct"
8256 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8257 # Check whether --enable-rpath was given.
8258 if test "${enable_rpath+set}" = set; then :
8259 enableval
=$enable_rpath; :
8273 acl_save_prefix
="$prefix"
8274 prefix
="$acl_final_prefix"
8275 acl_save_exec_prefix
="$exec_prefix"
8276 exec_prefix
="$acl_final_exec_prefix"
8278 eval additional_includedir
=\"$includedir\"
8279 eval additional_libdir
=\"$libdir\"
8281 exec_prefix
="$acl_save_exec_prefix"
8282 prefix
="$acl_save_prefix"
8285 # Check whether --with-libiconv-prefix was given.
8286 if test "${with_libiconv_prefix+set}" = set; then :
8287 withval
=$with_libiconv_prefix;
8288 if test "X$withval" = "Xno"; then
8291 if test "X$withval" = "X"; then
8293 acl_save_prefix
="$prefix"
8294 prefix
="$acl_final_prefix"
8295 acl_save_exec_prefix
="$exec_prefix"
8296 exec_prefix
="$acl_final_exec_prefix"
8298 eval additional_includedir
=\"$includedir\"
8299 eval additional_libdir
=\"$libdir\"
8301 exec_prefix
="$acl_save_exec_prefix"
8302 prefix
="$acl_save_prefix"
8305 additional_includedir
="$withval/include"
8306 additional_libdir
="$withval/lib"
8313 # Check whether --with-libiconv-type was given.
8314 if test "${with_libiconv_type+set}" = set; then :
8315 withval
=$with_libiconv_type; with_libiconv_type
=$withval
8317 with_libiconv_type
=auto
8320 lib_type
=`eval echo \$with_libiconv_type`
8327 names_already_handled
=
8328 names_next_round
='iconv '
8329 while test -n "$names_next_round"; do
8330 names_this_round
="$names_next_round"
8332 for name
in $names_this_round; do
8334 for n
in $names_already_handled; do
8335 if test "$n" = "$name"; then
8340 if test -z "$already_handled"; then
8341 names_already_handled
="$names_already_handled $name"
8342 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8343 eval value
=\"\
$HAVE_LIB$uppername\"
8344 if test -n "$value"; then
8345 if test "$value" = yes; then
8346 eval value
=\"\
$LIB$uppername\"
8347 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
8348 eval value
=\"\
$LTLIB$uppername\"
8349 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
8358 if test $use_additional = yes; then
8359 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
8360 found_dir
="$additional_libdir"
8361 found_so
="$additional_libdir/lib$name.$shlibext"
8362 if test -f "$additional_libdir/lib$name.la"; then
8363 found_la
="$additional_libdir/lib$name.la"
8365 elif test x
$lib_type != xshared
; then
8366 if test -f "$additional_libdir/lib$name.$libext"; then
8367 found_dir
="$additional_libdir"
8368 found_a
="$additional_libdir/lib$name.$libext"
8369 if test -f "$additional_libdir/lib$name.la"; then
8370 found_la
="$additional_libdir/lib$name.la"
8375 if test "X$found_dir" = "X"; then
8376 for x
in $LDFLAGS $LTLIBICONV; do
8378 acl_save_prefix
="$prefix"
8379 prefix
="$acl_final_prefix"
8380 acl_save_exec_prefix
="$exec_prefix"
8381 exec_prefix
="$acl_final_exec_prefix"
8383 exec_prefix
="$acl_save_exec_prefix"
8384 prefix
="$acl_save_prefix"
8388 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8389 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
8391 found_so
="$dir/lib$name.$shlibext"
8392 if test -f "$dir/lib$name.la"; then
8393 found_la
="$dir/lib$name.la"
8395 elif test x
$lib_type != xshared
; then
8396 if test -f "$dir/lib$name.$libext"; then
8398 found_a
="$dir/lib$name.$libext"
8399 if test -f "$dir/lib$name.la"; then
8400 found_la
="$dir/lib$name.la"
8406 if test "X$found_dir" != "X"; then
8411 if test "X$found_dir" != "X"; then
8412 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8413 if test "X$found_so" != "X"; then
8414 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8415 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8418 for x
in $ltrpathdirs; do
8419 if test "X$x" = "X$found_dir"; then
8424 if test -z "$haveit"; then
8425 ltrpathdirs
="$ltrpathdirs $found_dir"
8427 if test "$hardcode_direct" = yes; then
8428 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8430 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8431 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8433 for x
in $rpathdirs; do
8434 if test "X$x" = "X$found_dir"; then
8439 if test -z "$haveit"; then
8440 rpathdirs
="$rpathdirs $found_dir"
8444 for x
in $LDFLAGS $LIBICONV; do
8446 acl_save_prefix
="$prefix"
8447 prefix
="$acl_final_prefix"
8448 acl_save_exec_prefix
="$exec_prefix"
8449 exec_prefix
="$acl_final_exec_prefix"
8451 exec_prefix
="$acl_save_exec_prefix"
8452 prefix
="$acl_save_prefix"
8454 if test "X$x" = "X-L$found_dir"; then
8459 if test -z "$haveit"; then
8460 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8462 if test "$hardcode_minus_L" != no
; then
8463 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8465 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8471 if test "X$found_a" != "X"; then
8472 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
8474 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8477 additional_includedir
=
8478 case "$found_dir" in
8480 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8481 additional_includedir
="$basedir/include"
8484 if test "X$additional_includedir" != "X"; then
8485 if test "X$additional_includedir" != "X/usr/include"; then
8487 if test "X$additional_includedir" = "X/usr/local/include"; then
8488 if test -n "$GCC"; then
8490 linux
*) haveit
=yes;;
8494 if test -z "$haveit"; then
8495 for x
in $CPPFLAGS $INCICONV; do
8497 acl_save_prefix
="$prefix"
8498 prefix
="$acl_final_prefix"
8499 acl_save_exec_prefix
="$exec_prefix"
8500 exec_prefix
="$acl_final_exec_prefix"
8502 exec_prefix
="$acl_save_exec_prefix"
8503 prefix
="$acl_save_prefix"
8505 if test "X$x" = "X-I$additional_includedir"; then
8510 if test -z "$haveit"; then
8511 if test -d "$additional_includedir"; then
8512 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8518 if test -n "$found_la"; then
8519 save_libdir
="$libdir"
8521 */* |
*\\*) .
"$found_la" ;;
8522 *) .
"./$found_la" ;;
8524 libdir
="$save_libdir"
8525 for dep
in $dependency_libs; do
8528 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8529 if test "X$additional_libdir" != "X/usr/lib"; then
8531 if test "X$additional_libdir" = "X/usr/local/lib"; then
8532 if test -n "$GCC"; then
8534 linux
*) haveit
=yes;;
8538 if test -z "$haveit"; then
8540 for x
in $LDFLAGS $LIBICONV; do
8542 acl_save_prefix
="$prefix"
8543 prefix
="$acl_final_prefix"
8544 acl_save_exec_prefix
="$exec_prefix"
8545 exec_prefix
="$acl_final_exec_prefix"
8547 exec_prefix
="$acl_save_exec_prefix"
8548 prefix
="$acl_save_prefix"
8550 if test "X$x" = "X-L$additional_libdir"; then
8555 if test -z "$haveit"; then
8556 if test -d "$additional_libdir"; then
8557 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8561 for x
in $LDFLAGS $LTLIBICONV; do
8563 acl_save_prefix
="$prefix"
8564 prefix
="$acl_final_prefix"
8565 acl_save_exec_prefix
="$exec_prefix"
8566 exec_prefix
="$acl_final_exec_prefix"
8568 exec_prefix
="$acl_save_exec_prefix"
8569 prefix
="$acl_save_prefix"
8571 if test "X$x" = "X-L$additional_libdir"; then
8576 if test -z "$haveit"; then
8577 if test -d "$additional_libdir"; then
8578 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8585 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8586 if test "$enable_rpath" != no
; then
8588 for x
in $rpathdirs; do
8589 if test "X$x" = "X$dir"; then
8594 if test -z "$haveit"; then
8595 rpathdirs
="$rpathdirs $dir"
8598 for x
in $ltrpathdirs; do
8599 if test "X$x" = "X$dir"; then
8604 if test -z "$haveit"; then
8605 ltrpathdirs
="$ltrpathdirs $dir"
8610 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8613 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8616 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
8617 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8623 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
8624 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8625 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8627 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
8628 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
8635 if test "X$rpathdirs" != "X"; then
8636 if test -n "$hardcode_libdir_separator"; then
8638 for found_dir
in $rpathdirs; do
8639 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8641 acl_save_libdir
="$libdir"
8643 eval flag
=\"$hardcode_libdir_flag_spec\"
8644 libdir
="$acl_save_libdir"
8645 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8647 for found_dir
in $rpathdirs; do
8648 acl_save_libdir
="$libdir"
8650 eval flag
=\"$hardcode_libdir_flag_spec\"
8651 libdir
="$acl_save_libdir"
8652 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8656 if test "X$ltrpathdirs" != "X"; then
8657 for found_dir
in $ltrpathdirs; do
8658 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8669 $as_echo_n "checking for iconv... " >&6; }
8670 if ${am_cv_func_iconv+:} false
; then :
8671 $as_echo_n "(cached) " >&6
8674 am_cv_func_iconv
="no, consider installing GNU libiconv"
8676 am_save_CPPFLAGS
="$CPPFLAGS"
8677 CPPFLAGS
="$CPPFLAGS $INCICONV"
8678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8679 /* end confdefs.h. */
8685 iconv_t cd = iconv_open("","");
8686 iconv(cd,NULL,NULL,NULL,NULL);
8692 if ac_fn_c_try_link
"$LINENO"; then :
8693 am_cv_func_iconv
=yes
8695 rm -f core conftest.err conftest.
$ac_objext \
8696 conftest
$ac_exeext conftest.
$ac_ext
8697 CPPFLAGS
="$am_save_CPPFLAGS"
8699 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
8700 for _libs
in .libs _libs
; do
8701 am_save_CPPFLAGS
="$CPPFLAGS"
8702 am_save_LIBS
="$LIBS"
8703 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
8704 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
8705 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8706 /* end confdefs.h. */
8712 iconv_t cd = iconv_open("","");
8713 iconv(cd,NULL,NULL,NULL,NULL);
8719 if ac_fn_c_try_link
"$LINENO"; then :
8720 INCICONV
="-I../libiconv/include"
8721 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
8722 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
8724 am_cv_func_iconv
=yes
8726 rm -f core conftest.err conftest.
$ac_objext \
8727 conftest
$ac_exeext conftest.
$ac_ext
8728 CPPFLAGS
="$am_save_CPPFLAGS"
8729 LIBS
="$am_save_LIBS"
8730 if test "$am_cv_func_iconv" = "yes"; then
8736 if test "$am_cv_func_iconv" != yes; then
8737 am_save_CPPFLAGS
="$CPPFLAGS"
8738 am_save_LIBS
="$LIBS"
8739 CPPFLAGS
="$CPPFLAGS $INCICONV"
8740 LIBS
="$LIBS $LIBICONV"
8741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8742 /* end confdefs.h. */
8748 iconv_t cd = iconv_open("","");
8749 iconv(cd,NULL,NULL,NULL,NULL);
8755 if ac_fn_c_try_link
"$LINENO"; then :
8757 am_cv_func_iconv
=yes
8759 rm -f core conftest.err conftest.
$ac_objext \
8760 conftest
$ac_exeext conftest.
$ac_ext
8761 CPPFLAGS
="$am_save_CPPFLAGS"
8762 LIBS
="$am_save_LIBS"
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8767 $as_echo "$am_cv_func_iconv" >&6; }
8768 if test "$am_cv_func_iconv" = yes; then
8770 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8773 if test "$am_cv_lib_iconv" = yes; then
8775 for element
in $INCICONV; do
8777 for x
in $CPPFLAGS; do
8779 acl_save_prefix
="$prefix"
8780 prefix
="$acl_final_prefix"
8781 acl_save_exec_prefix
="$exec_prefix"
8782 exec_prefix
="$acl_final_exec_prefix"
8784 exec_prefix
="$acl_save_exec_prefix"
8785 prefix
="$acl_save_prefix"
8787 if test "X$x" = "X$element"; then
8792 if test -z "$haveit"; then
8793 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8798 $as_echo_n "checking how to link with libiconv... " >&6; }
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8800 $as_echo "$LIBICONV" >&6; }
8808 if test "$am_cv_func_iconv" = yes; then
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8810 $as_echo_n "checking for iconv declaration... " >&6; }
8811 if ${am_cv_proto_iconv+:} false
; then :
8812 $as_echo_n "(cached) " >&6
8815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8816 /* end confdefs.h. */
8824 #if defined(__STDC__) || defined(__cplusplus)
8825 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8838 if ac_fn_c_try_compile
"$LINENO"; then :
8839 am_cv_proto_iconv_arg1
=""
8841 am_cv_proto_iconv_arg1
="const"
8843 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8844 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);"
8847 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8849 }$am_cv_proto_iconv" >&5
8851 }$am_cv_proto_iconv" >&6; }
8853 cat >>confdefs.h
<<_ACEOF
8854 #define ICONV_CONST $am_cv_proto_iconv_arg1
8860 # GDB may fork/exec the iconv program to get the list of supported character
8861 # sets. Allow the user to specify where to find it.
8862 # There are several factors affecting the choice of option name:
8863 # - There is already --with-libiconv-prefix but we can't use it, it specifies
8864 # the build-time location of libiconv files.
8865 # - The program we need to find is iconv, which comes with glibc. The user
8866 # doesn't necessarily have libiconv installed. Therefore naming this
8867 # --with-libiconv-foo feels wrong.
8868 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
8869 # defined to work on directories not files (though it really doesn't know
8871 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
8872 # with --with-libiconv-prefix.
8873 # Putting these together is why the option name is --with-iconv-bin.
8876 # Check whether --with-iconv-bin was given.
8877 if test "${with_iconv_bin+set}" = set; then :
8878 withval
=$with_iconv_bin; iconv_bin
="${withval}"
8880 cat >>confdefs.h
<<_ACEOF
8881 #define ICONV_BIN "${iconv_bin}"
8885 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
8886 if test "x$prefix" = xNONE
; then
8887 test_prefix
=/usr
/local
8892 test_prefix
=$exec_prefix
8895 case ${iconv_bin} in
8896 "${test_prefix}"|
"${test_prefix}/"*|\
8897 '${exec_prefix}'|
'${exec_prefix}/'*)
8902 cat >>confdefs.h
<<_ACEOF
8903 #define ICONV_BIN_RELOCATABLE $value
8911 # For the TUI, we need enhanced curses functionality.
8912 if test x
"$enable_tui" != xno
; then
8917 if test x
"$prefer_curses" = xyes
; then
8918 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8919 # curses library because the latter might not provide all the
8920 # functionality we need. However, this leads to problems on systems
8921 # where the linker searches /usr/local/lib, but the compiler doesn't
8922 # search /usr/local/include, if ncurses is installed in /usr/local. A
8923 # default installation of ncurses on alpha*-dec-osf* will lead to such
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
8926 $as_echo_n "checking for library containing waddstr... " >&6; }
8927 if ${ac_cv_search_waddstr+:} false
; then :
8928 $as_echo_n "(cached) " >&6
8930 ac_func_search_save_LIBS
=$LIBS
8931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8932 /* end confdefs.h. */
8934 /* Override any GCC internal prototype to avoid an error.
8935 Use char because int might match the return type of a GCC
8936 builtin and then its argument prototype would still apply. */
8949 for ac_lib
in '' ncursesw ncurses cursesX curses
; do
8950 if test -z "$ac_lib"; then
8951 ac_res
="none required"
8954 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8956 if ac_fn_c_try_link
"$LINENO"; then :
8957 ac_cv_search_waddstr
=$ac_res
8959 rm -f core conftest.err conftest.
$ac_objext \
8961 if ${ac_cv_search_waddstr+:} false
; then :
8965 if ${ac_cv_search_waddstr+:} false
; then :
8968 ac_cv_search_waddstr
=no
8971 LIBS
=$ac_func_search_save_LIBS
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
8974 $as_echo "$ac_cv_search_waddstr" >&6; }
8975 ac_res
=$ac_cv_search_waddstr
8976 if test "$ac_res" != no
; then :
8977 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8982 if test "$ac_cv_search_waddstr" != no
; then
8987 # Check whether we should enable the TUI, but only do so if we really
8989 if test x
"$enable_tui" != xno
; then
8990 if test -d "$srcdir/tui"; then
8991 if test "$curses_found" != no
; then
8992 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
8993 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
8994 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
8995 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
8997 if test x
"$enable_tui" = xyes
; then
8998 as_fn_error $?
"no enhanced curses library found; disable TUI" "$LINENO" 5
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
9001 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9007 # Since GDB uses Readline, we need termcap functionality. In many
9008 # cases this will be provided by the curses library, but some systems
9009 # have a separate termcap library, or no curses library at all.
9013 if test -d "$srcdir/libtermcap"; then
9014 LIBS
="../libtermcap/libtermcap.a $LIBS"
9015 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
9018 ac_cv_search_tgetent
="none required"
9022 # These are the libraries checked by Readline.
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9024 $as_echo_n "checking for library containing tgetent... " >&6; }
9025 if ${ac_cv_search_tgetent+:} false
; then :
9026 $as_echo_n "(cached) " >&6
9028 ac_func_search_save_LIBS
=$LIBS
9029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9030 /* end confdefs.h. */
9032 /* Override any GCC internal prototype to avoid an error.
9033 Use char because int might match the return type of a GCC
9034 builtin and then its argument prototype would still apply. */
9047 for ac_lib
in '' termcap tinfow tinfo curses ncursesw ncurses
; do
9048 if test -z "$ac_lib"; then
9049 ac_res
="none required"
9052 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9054 if ac_fn_c_try_link
"$LINENO"; then :
9055 ac_cv_search_tgetent
=$ac_res
9057 rm -f core conftest.err conftest.
$ac_objext \
9059 if ${ac_cv_search_tgetent+:} false
; then :
9063 if ${ac_cv_search_tgetent+:} false
; then :
9066 ac_cv_search_tgetent
=no
9069 LIBS
=$ac_func_search_save_LIBS
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9072 $as_echo "$ac_cv_search_tgetent" >&6; }
9073 ac_res
=$ac_cv_search_tgetent
9074 if test "$ac_res" != no
; then :
9075 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9080 if test "$ac_cv_search_tgetent" = no
; then
9081 CONFIG_OBS
="$CONFIG_OBS stub-termcap.o"
9085 # Check whether --with-system-readline was given.
9086 if test "${with_system_readline+set}" = set; then :
9087 withval
=$with_system_readline;
9091 if test "$with_system_readline" = yes; then
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system readline is new enough" >&5
9093 $as_echo_n "checking whether system readline is new enough... " >&6; }
9094 if ${gdb_cv_readline_ok+:} false
; then :
9095 $as_echo_n "(cached) " >&6
9097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9098 /* end confdefs.h. */
9100 #include <readline/readline.h>
9104 #if RL_VERSION_MAJOR < 7
9105 # error "readline version 7 required"
9111 if ac_fn_c_try_compile
"$LINENO"; then :
9112 gdb_cv_readline_ok
=yes
9114 gdb_cv_readline_ok
=no
9116 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_readline_ok" >&5
9119 $as_echo "$gdb_cv_readline_ok" >&6; }
9120 if test "$gdb_cv_readline_ok" != yes; then
9121 as_fn_error $?
"system readline is not new enough" "$LINENO" 5
9127 READLINE_TEXI_INCFLAG
=
9129 READLINE
='$(READLINE_DIR)/libreadline.a'
9130 READLINE_DEPS
='$(READLINE)'
9131 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
9132 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
9139 # Generate jit-reader.h
9141 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
9144 # The cast to long int works around a bug in the HP C Compiler
9145 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9146 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9147 # This bug is HP SR number 8606223364.
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
9149 $as_echo_n "checking size of unsigned long long... " >&6; }
9150 if ${ac_cv_sizeof_unsigned_long_long+:} false
; then :
9151 $as_echo_n "(cached) " >&6
9153 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
9156 if test "$ac_cv_type_unsigned_long_long" = yes; then
9157 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9159 as_fn_error
77 "cannot compute sizeof (unsigned long long)
9160 See \`config.log' for more details" "$LINENO" 5; }
9162 ac_cv_sizeof_unsigned_long_long
=0
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
9168 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
9172 cat >>confdefs.h
<<_ACEOF
9173 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
9177 # The cast to long int works around a bug in the HP C Compiler
9178 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9179 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9180 # This bug is HP SR number 8606223364.
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
9182 $as_echo_n "checking size of unsigned long... " >&6; }
9183 if ${ac_cv_sizeof_unsigned_long+:} false
; then :
9184 $as_echo_n "(cached) " >&6
9186 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
9189 if test "$ac_cv_type_unsigned_long" = yes; then
9190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9192 as_fn_error
77 "cannot compute sizeof (unsigned long)
9193 See \`config.log' for more details" "$LINENO" 5; }
9195 ac_cv_sizeof_unsigned_long
=0
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
9201 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
9205 cat >>confdefs.h
<<_ACEOF
9206 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
9210 # The cast to long int works around a bug in the HP C Compiler
9211 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9212 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9213 # This bug is HP SR number 8606223364.
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
9215 $as_echo_n "checking size of unsigned __int128... " >&6; }
9216 if ${ac_cv_sizeof_unsigned___int128+:} false
; then :
9217 $as_echo_n "(cached) " >&6
9219 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
9222 if test "$ac_cv_type_unsigned___int128" = yes; then
9223 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9225 as_fn_error
77 "cannot compute sizeof (unsigned __int128)
9226 See \`config.log' for more details" "$LINENO" 5; }
9228 ac_cv_sizeof_unsigned___int128
=0
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
9234 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
9238 cat >>confdefs.h
<<_ACEOF
9239 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
9244 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9245 TARGET_PTR
="unsigned long"
9246 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
9247 TARGET_PTR
="unsigned long long"
9248 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
9249 TARGET_PTR
="unsigned __int128"
9251 TARGET_PTR
="unsigned long"
9255 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9259 $as_echo_n "checking for library containing dlopen... " >&6; }
9260 if ${ac_cv_search_dlopen+:} false
; then :
9261 $as_echo_n "(cached) " >&6
9263 ac_func_search_save_LIBS
=$LIBS
9264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9265 /* end confdefs.h. */
9267 /* Override any GCC internal prototype to avoid an error.
9268 Use char because int might match the return type of a GCC
9269 builtin and then its argument prototype would still apply. */
9282 for ac_lib
in '' dl
; do
9283 if test -z "$ac_lib"; then
9284 ac_res
="none required"
9287 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9289 if ac_fn_c_try_link
"$LINENO"; then :
9290 ac_cv_search_dlopen
=$ac_res
9292 rm -f core conftest.err conftest.
$ac_objext \
9294 if ${ac_cv_search_dlopen+:} false
; then :
9298 if ${ac_cv_search_dlopen+:} false
; then :
9301 ac_cv_search_dlopen
=no
9304 LIBS
=$ac_func_search_save_LIBS
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9307 $as_echo "$ac_cv_search_dlopen" >&6; }
9308 ac_res
=$ac_cv_search_dlopen
9309 if test "$ac_res" != no
; then :
9310 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9317 # Check whether --with-jit-reader-dir was given.
9318 if test "${with_jit_reader_dir+set}" = set; then :
9319 withval
=$with_jit_reader_dir;
9320 JIT_READER_DIR
=$withval
9322 JIT_READER_DIR
=${libdir}/gdb
9326 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9327 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9328 ac_define_dir
=`eval echo $JIT_READER_DIR`
9329 ac_define_dir
=`eval echo $ac_define_dir`
9331 cat >>confdefs.h
<<_ACEOF
9332 #define JIT_READER_DIR "$ac_define_dir"
9338 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9339 if test "x$prefix" = xNONE
; then
9340 test_prefix
=/usr
/local
9345 test_prefix
=$exec_prefix
9348 case ${ac_define_dir} in
9349 "${test_prefix}"|
"${test_prefix}/"*|\
9350 '${exec_prefix}'|
'${exec_prefix}/'*)
9355 cat >>confdefs.h
<<_ACEOF
9356 #define JIT_READER_DIR_RELOCATABLE $value
9363 # Check whether --with-expat was given.
9364 if test "${with_expat+set}" = set; then :
9365 withval
=$with_expat;
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9371 $as_echo_n "checking whether to use expat... " >&6; }
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9373 $as_echo "$with_expat" >&6; }
9375 if test "${with_expat}" = no
; then
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9377 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9390 acl_save_prefix
="$prefix"
9391 prefix
="$acl_final_prefix"
9392 acl_save_exec_prefix
="$exec_prefix"
9393 exec_prefix
="$acl_final_exec_prefix"
9395 eval additional_includedir
=\"$includedir\"
9396 eval additional_libdir
=\"$libdir\"
9398 exec_prefix
="$acl_save_exec_prefix"
9399 prefix
="$acl_save_prefix"
9402 # Check whether --with-libexpat-prefix was given.
9403 if test "${with_libexpat_prefix+set}" = set; then :
9404 withval
=$with_libexpat_prefix;
9405 if test "X$withval" = "Xno"; then
9408 if test "X$withval" = "X"; then
9410 acl_save_prefix
="$prefix"
9411 prefix
="$acl_final_prefix"
9412 acl_save_exec_prefix
="$exec_prefix"
9413 exec_prefix
="$acl_final_exec_prefix"
9415 eval additional_includedir
=\"$includedir\"
9416 eval additional_libdir
=\"$libdir\"
9418 exec_prefix
="$acl_save_exec_prefix"
9419 prefix
="$acl_save_prefix"
9422 additional_includedir
="$withval/include"
9423 additional_libdir
="$withval/lib"
9430 # Check whether --with-libexpat-type was given.
9431 if test "${with_libexpat_type+set}" = set; then :
9432 withval
=$with_libexpat_type; with_libexpat_type
=$withval
9434 with_libexpat_type
=auto
9437 lib_type
=`eval echo \$with_libexpat_type`
9444 names_already_handled
=
9445 names_next_round
='expat '
9446 while test -n "$names_next_round"; do
9447 names_this_round
="$names_next_round"
9449 for name
in $names_this_round; do
9451 for n
in $names_already_handled; do
9452 if test "$n" = "$name"; then
9457 if test -z "$already_handled"; then
9458 names_already_handled
="$names_already_handled $name"
9459 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9460 eval value
=\"\
$HAVE_LIB$uppername\"
9461 if test -n "$value"; then
9462 if test "$value" = yes; then
9463 eval value
=\"\
$LIB$uppername\"
9464 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
9465 eval value
=\"\
$LTLIB$uppername\"
9466 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
9475 if test $use_additional = yes; then
9476 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9477 found_dir
="$additional_libdir"
9478 found_so
="$additional_libdir/lib$name.$shlibext"
9479 if test -f "$additional_libdir/lib$name.la"; then
9480 found_la
="$additional_libdir/lib$name.la"
9482 elif test x
$lib_type != xshared
; then
9483 if test -f "$additional_libdir/lib$name.$libext"; then
9484 found_dir
="$additional_libdir"
9485 found_a
="$additional_libdir/lib$name.$libext"
9486 if test -f "$additional_libdir/lib$name.la"; then
9487 found_la
="$additional_libdir/lib$name.la"
9492 if test "X$found_dir" = "X"; then
9493 for x
in $LDFLAGS $LTLIBEXPAT; do
9495 acl_save_prefix
="$prefix"
9496 prefix
="$acl_final_prefix"
9497 acl_save_exec_prefix
="$exec_prefix"
9498 exec_prefix
="$acl_final_exec_prefix"
9500 exec_prefix
="$acl_save_exec_prefix"
9501 prefix
="$acl_save_prefix"
9505 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9506 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9508 found_so
="$dir/lib$name.$shlibext"
9509 if test -f "$dir/lib$name.la"; then
9510 found_la
="$dir/lib$name.la"
9512 elif test x
$lib_type != xshared
; then
9513 if test -f "$dir/lib$name.$libext"; then
9515 found_a
="$dir/lib$name.$libext"
9516 if test -f "$dir/lib$name.la"; then
9517 found_la
="$dir/lib$name.la"
9523 if test "X$found_dir" != "X"; then
9528 if test "X$found_dir" != "X"; then
9529 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
9530 if test "X$found_so" != "X"; then
9531 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9532 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9535 for x
in $ltrpathdirs; do
9536 if test "X$x" = "X$found_dir"; then
9541 if test -z "$haveit"; then
9542 ltrpathdirs
="$ltrpathdirs $found_dir"
9544 if test "$hardcode_direct" = yes; then
9545 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9547 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9548 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9550 for x
in $rpathdirs; do
9551 if test "X$x" = "X$found_dir"; then
9556 if test -z "$haveit"; then
9557 rpathdirs
="$rpathdirs $found_dir"
9561 for x
in $LDFLAGS $LIBEXPAT; do
9563 acl_save_prefix
="$prefix"
9564 prefix
="$acl_final_prefix"
9565 acl_save_exec_prefix
="$exec_prefix"
9566 exec_prefix
="$acl_final_exec_prefix"
9568 exec_prefix
="$acl_save_exec_prefix"
9569 prefix
="$acl_save_prefix"
9571 if test "X$x" = "X-L$found_dir"; then
9576 if test -z "$haveit"; then
9577 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
9579 if test "$hardcode_minus_L" != no
; then
9580 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9582 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9588 if test "X$found_a" != "X"; then
9589 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
9591 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
9594 additional_includedir
=
9595 case "$found_dir" in
9597 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9598 additional_includedir
="$basedir/include"
9601 if test "X$additional_includedir" != "X"; then
9602 if test "X$additional_includedir" != "X/usr/include"; then
9604 if test "X$additional_includedir" = "X/usr/local/include"; then
9605 if test -n "$GCC"; then
9607 linux
*) haveit
=yes;;
9611 if test -z "$haveit"; then
9612 for x
in $CPPFLAGS $INCEXPAT; do
9614 acl_save_prefix
="$prefix"
9615 prefix
="$acl_final_prefix"
9616 acl_save_exec_prefix
="$exec_prefix"
9617 exec_prefix
="$acl_final_exec_prefix"
9619 exec_prefix
="$acl_save_exec_prefix"
9620 prefix
="$acl_save_prefix"
9622 if test "X$x" = "X-I$additional_includedir"; then
9627 if test -z "$haveit"; then
9628 if test -d "$additional_includedir"; then
9629 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
9635 if test -n "$found_la"; then
9636 save_libdir
="$libdir"
9638 */* |
*\\*) .
"$found_la" ;;
9639 *) .
"./$found_la" ;;
9641 libdir
="$save_libdir"
9642 for dep
in $dependency_libs; do
9645 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9646 if test "X$additional_libdir" != "X/usr/lib"; then
9648 if test "X$additional_libdir" = "X/usr/local/lib"; then
9649 if test -n "$GCC"; then
9651 linux
*) haveit
=yes;;
9655 if test -z "$haveit"; then
9657 for x
in $LDFLAGS $LIBEXPAT; do
9659 acl_save_prefix
="$prefix"
9660 prefix
="$acl_final_prefix"
9661 acl_save_exec_prefix
="$exec_prefix"
9662 exec_prefix
="$acl_final_exec_prefix"
9664 exec_prefix
="$acl_save_exec_prefix"
9665 prefix
="$acl_save_prefix"
9667 if test "X$x" = "X-L$additional_libdir"; then
9672 if test -z "$haveit"; then
9673 if test -d "$additional_libdir"; then
9674 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
9678 for x
in $LDFLAGS $LTLIBEXPAT; do
9680 acl_save_prefix
="$prefix"
9681 prefix
="$acl_final_prefix"
9682 acl_save_exec_prefix
="$exec_prefix"
9683 exec_prefix
="$acl_final_exec_prefix"
9685 exec_prefix
="$acl_save_exec_prefix"
9686 prefix
="$acl_save_prefix"
9688 if test "X$x" = "X-L$additional_libdir"; then
9693 if test -z "$haveit"; then
9694 if test -d "$additional_libdir"; then
9695 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
9702 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9703 if test "$enable_rpath" != no
; then
9705 for x
in $rpathdirs; do
9706 if test "X$x" = "X$dir"; then
9711 if test -z "$haveit"; then
9712 rpathdirs
="$rpathdirs $dir"
9715 for x
in $ltrpathdirs; do
9716 if test "X$x" = "X$dir"; then
9721 if test -z "$haveit"; then
9722 ltrpathdirs
="$ltrpathdirs $dir"
9727 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9730 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9733 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
9734 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
9740 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
9741 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9742 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
9744 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l:lib$name.$libext"
9745 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l:lib$name.$libext"
9752 if test "X$rpathdirs" != "X"; then
9753 if test -n "$hardcode_libdir_separator"; then
9755 for found_dir
in $rpathdirs; do
9756 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9758 acl_save_libdir
="$libdir"
9760 eval flag
=\"$hardcode_libdir_flag_spec\"
9761 libdir
="$acl_save_libdir"
9762 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9764 for found_dir
in $rpathdirs; do
9765 acl_save_libdir
="$libdir"
9767 eval flag
=\"$hardcode_libdir_flag_spec\"
9768 libdir
="$acl_save_libdir"
9769 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9773 if test "X$ltrpathdirs" != "X"; then
9774 for found_dir
in $ltrpathdirs; do
9775 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
9780 ac_save_CPPFLAGS
="$CPPFLAGS"
9782 for element
in $INCEXPAT; do
9784 for x
in $CPPFLAGS; do
9786 acl_save_prefix
="$prefix"
9787 prefix
="$acl_final_prefix"
9788 acl_save_exec_prefix
="$exec_prefix"
9789 exec_prefix
="$acl_final_exec_prefix"
9791 exec_prefix
="$acl_save_exec_prefix"
9792 prefix
="$acl_save_prefix"
9794 if test "X$x" = "X$element"; then
9799 if test -z "$haveit"; then
9800 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
9806 $as_echo_n "checking for libexpat... " >&6; }
9807 if ${ac_cv_libexpat+:} false
; then :
9808 $as_echo_n "(cached) " >&6
9811 ac_save_LIBS
="$LIBS"
9812 LIBS
="$LIBS $LIBEXPAT"
9813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9814 /* end confdefs.h. */
9819 XML_Parser p = XML_ParserCreate (0);
9824 if ac_fn_c_try_link
"$LINENO"; then :
9829 rm -f core conftest.err conftest.
$ac_objext \
9830 conftest
$ac_exeext conftest.
$ac_ext
9831 LIBS
="$ac_save_LIBS"
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
9835 $as_echo "$ac_cv_libexpat" >&6; }
9836 if test "$ac_cv_libexpat" = yes; then
9839 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
9842 $as_echo_n "checking how to link with libexpat... " >&6; }
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
9844 $as_echo "$LIBEXPAT" >&6; }
9847 CPPFLAGS
="$ac_save_CPPFLAGS"
9857 if test "$HAVE_LIBEXPAT" != yes; then
9858 if test "$with_expat" = yes; then
9859 as_fn_error $?
"expat is missing or unusable" "$LINENO" 5
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
9862 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
9866 LIBS
="$LIBS $LIBEXPAT"
9867 for ac_func
in XML_StopParser
9869 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
9870 if test "x$ac_cv_func_XML_StopParser" = xyes
; then :
9871 cat >>confdefs.h
<<_ACEOF
9872 #define HAVE_XML_STOPPARSER 1
9883 # Check whether --with-mpfr was given.
9884 if test "${with_mpfr+set}" = set; then :
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MPFR" >&5
9891 $as_echo_n "checking whether to use MPFR... " >&6; }
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mpfr" >&5
9893 $as_echo "$with_mpfr" >&6; }
9895 if test "${with_mpfr}" = no
; then
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR support disabled; some features may be unavailable." >&5
9897 $as_echo "$as_me: WARNING: MPFR support disabled; some features may be unavailable." >&2;}
9910 acl_save_prefix
="$prefix"
9911 prefix
="$acl_final_prefix"
9912 acl_save_exec_prefix
="$exec_prefix"
9913 exec_prefix
="$acl_final_exec_prefix"
9915 eval additional_includedir
=\"$includedir\"
9916 eval additional_libdir
=\"$libdir\"
9918 exec_prefix
="$acl_save_exec_prefix"
9919 prefix
="$acl_save_prefix"
9922 # Check whether --with-libmpfr-prefix was given.
9923 if test "${with_libmpfr_prefix+set}" = set; then :
9924 withval
=$with_libmpfr_prefix;
9925 if test "X$withval" = "Xno"; then
9928 if test "X$withval" = "X"; then
9930 acl_save_prefix
="$prefix"
9931 prefix
="$acl_final_prefix"
9932 acl_save_exec_prefix
="$exec_prefix"
9933 exec_prefix
="$acl_final_exec_prefix"
9935 eval additional_includedir
=\"$includedir\"
9936 eval additional_libdir
=\"$libdir\"
9938 exec_prefix
="$acl_save_exec_prefix"
9939 prefix
="$acl_save_prefix"
9942 additional_includedir
="$withval/include"
9943 additional_libdir
="$withval/lib"
9950 # Check whether --with-libmpfr-type was given.
9951 if test "${with_libmpfr_type+set}" = set; then :
9952 withval
=$with_libmpfr_type; with_libmpfr_type
=$withval
9954 with_libmpfr_type
=auto
9957 lib_type
=`eval echo \$with_libmpfr_type`
9964 names_already_handled
=
9965 names_next_round
='mpfr gmp'
9966 while test -n "$names_next_round"; do
9967 names_this_round
="$names_next_round"
9969 for name
in $names_this_round; do
9971 for n
in $names_already_handled; do
9972 if test "$n" = "$name"; then
9977 if test -z "$already_handled"; then
9978 names_already_handled
="$names_already_handled $name"
9979 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9980 eval value
=\"\
$HAVE_LIB$uppername\"
9981 if test -n "$value"; then
9982 if test "$value" = yes; then
9983 eval value
=\"\
$LIB$uppername\"
9984 test -z "$value" || LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$value"
9985 eval value
=\"\
$LTLIB$uppername\"
9986 test -z "$value" || LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$value"
9995 if test $use_additional = yes; then
9996 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9997 found_dir
="$additional_libdir"
9998 found_so
="$additional_libdir/lib$name.$shlibext"
9999 if test -f "$additional_libdir/lib$name.la"; then
10000 found_la
="$additional_libdir/lib$name.la"
10002 elif test x
$lib_type != xshared
; then
10003 if test -f "$additional_libdir/lib$name.$libext"; then
10004 found_dir
="$additional_libdir"
10005 found_a
="$additional_libdir/lib$name.$libext"
10006 if test -f "$additional_libdir/lib$name.la"; then
10007 found_la
="$additional_libdir/lib$name.la"
10012 if test "X$found_dir" = "X"; then
10013 for x
in $LDFLAGS $LTLIBMPFR; do
10015 acl_save_prefix
="$prefix"
10016 prefix
="$acl_final_prefix"
10017 acl_save_exec_prefix
="$exec_prefix"
10018 exec_prefix
="$acl_final_exec_prefix"
10020 exec_prefix
="$acl_save_exec_prefix"
10021 prefix
="$acl_save_prefix"
10025 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10026 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10028 found_so
="$dir/lib$name.$shlibext"
10029 if test -f "$dir/lib$name.la"; then
10030 found_la
="$dir/lib$name.la"
10032 elif test x
$lib_type != xshared
; then
10033 if test -f "$dir/lib$name.$libext"; then
10035 found_a
="$dir/lib$name.$libext"
10036 if test -f "$dir/lib$name.la"; then
10037 found_la
="$dir/lib$name.la"
10043 if test "X$found_dir" != "X"; then
10048 if test "X$found_dir" != "X"; then
10049 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$found_dir -l$name"
10050 if test "X$found_so" != "X"; then
10051 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10052 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10055 for x
in $ltrpathdirs; do
10056 if test "X$x" = "X$found_dir"; then
10061 if test -z "$haveit"; then
10062 ltrpathdirs
="$ltrpathdirs $found_dir"
10064 if test "$hardcode_direct" = yes; then
10065 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10067 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10068 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10070 for x
in $rpathdirs; do
10071 if test "X$x" = "X$found_dir"; then
10076 if test -z "$haveit"; then
10077 rpathdirs
="$rpathdirs $found_dir"
10081 for x
in $LDFLAGS $LIBMPFR; do
10083 acl_save_prefix
="$prefix"
10084 prefix
="$acl_final_prefix"
10085 acl_save_exec_prefix
="$exec_prefix"
10086 exec_prefix
="$acl_final_exec_prefix"
10088 exec_prefix
="$acl_save_exec_prefix"
10089 prefix
="$acl_save_prefix"
10091 if test "X$x" = "X-L$found_dir"; then
10096 if test -z "$haveit"; then
10097 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir"
10099 if test "$hardcode_minus_L" != no
; then
10100 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10102 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10108 if test "X$found_a" != "X"; then
10109 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_a"
10111 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir -l$name"
10114 additional_includedir
=
10115 case "$found_dir" in
10117 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10118 additional_includedir
="$basedir/include"
10121 if test "X$additional_includedir" != "X"; then
10122 if test "X$additional_includedir" != "X/usr/include"; then
10124 if test "X$additional_includedir" = "X/usr/local/include"; then
10125 if test -n "$GCC"; then
10127 linux
*) haveit
=yes;;
10131 if test -z "$haveit"; then
10132 for x
in $CPPFLAGS $INCMPFR; do
10134 acl_save_prefix
="$prefix"
10135 prefix
="$acl_final_prefix"
10136 acl_save_exec_prefix
="$exec_prefix"
10137 exec_prefix
="$acl_final_exec_prefix"
10139 exec_prefix
="$acl_save_exec_prefix"
10140 prefix
="$acl_save_prefix"
10142 if test "X$x" = "X-I$additional_includedir"; then
10147 if test -z "$haveit"; then
10148 if test -d "$additional_includedir"; then
10149 INCMPFR
="${INCMPFR}${INCMPFR:+ }-I$additional_includedir"
10155 if test -n "$found_la"; then
10156 save_libdir
="$libdir"
10157 case "$found_la" in
10158 */* |
*\\*) .
"$found_la" ;;
10159 *) .
"./$found_la" ;;
10161 libdir
="$save_libdir"
10162 for dep
in $dependency_libs; do
10165 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10166 if test "X$additional_libdir" != "X/usr/lib"; then
10168 if test "X$additional_libdir" = "X/usr/local/lib"; then
10169 if test -n "$GCC"; then
10171 linux
*) haveit
=yes;;
10175 if test -z "$haveit"; then
10177 for x
in $LDFLAGS $LIBMPFR; do
10179 acl_save_prefix
="$prefix"
10180 prefix
="$acl_final_prefix"
10181 acl_save_exec_prefix
="$exec_prefix"
10182 exec_prefix
="$acl_final_exec_prefix"
10184 exec_prefix
="$acl_save_exec_prefix"
10185 prefix
="$acl_save_prefix"
10187 if test "X$x" = "X-L$additional_libdir"; then
10192 if test -z "$haveit"; then
10193 if test -d "$additional_libdir"; then
10194 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$additional_libdir"
10198 for x
in $LDFLAGS $LTLIBMPFR; do
10200 acl_save_prefix
="$prefix"
10201 prefix
="$acl_final_prefix"
10202 acl_save_exec_prefix
="$exec_prefix"
10203 exec_prefix
="$acl_final_exec_prefix"
10205 exec_prefix
="$acl_save_exec_prefix"
10206 prefix
="$acl_save_prefix"
10208 if test "X$x" = "X-L$additional_libdir"; then
10213 if test -z "$haveit"; then
10214 if test -d "$additional_libdir"; then
10215 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$additional_libdir"
10222 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10223 if test "$enable_rpath" != no
; then
10225 for x
in $rpathdirs; do
10226 if test "X$x" = "X$dir"; then
10231 if test -z "$haveit"; then
10232 rpathdirs
="$rpathdirs $dir"
10235 for x
in $ltrpathdirs; do
10236 if test "X$x" = "X$dir"; then
10241 if test -z "$haveit"; then
10242 ltrpathdirs
="$ltrpathdirs $dir"
10247 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10250 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10253 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$dep"
10254 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$dep"
10260 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
10261 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10262 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-l$name"
10264 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l:lib$name.$libext"
10265 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-l:lib$name.$libext"
10272 if test "X$rpathdirs" != "X"; then
10273 if test -n "$hardcode_libdir_separator"; then
10275 for found_dir
in $rpathdirs; do
10276 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10278 acl_save_libdir
="$libdir"
10280 eval flag
=\"$hardcode_libdir_flag_spec\"
10281 libdir
="$acl_save_libdir"
10282 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10284 for found_dir
in $rpathdirs; do
10285 acl_save_libdir
="$libdir"
10286 libdir
="$found_dir"
10287 eval flag
=\"$hardcode_libdir_flag_spec\"
10288 libdir
="$acl_save_libdir"
10289 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10293 if test "X$ltrpathdirs" != "X"; then
10294 for found_dir
in $ltrpathdirs; do
10295 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-R$found_dir"
10300 ac_save_CPPFLAGS
="$CPPFLAGS"
10302 for element
in $INCMPFR; do
10304 for x
in $CPPFLAGS; do
10306 acl_save_prefix
="$prefix"
10307 prefix
="$acl_final_prefix"
10308 acl_save_exec_prefix
="$exec_prefix"
10309 exec_prefix
="$acl_final_exec_prefix"
10311 exec_prefix
="$acl_save_exec_prefix"
10312 prefix
="$acl_save_prefix"
10314 if test "X$x" = "X$element"; then
10319 if test -z "$haveit"; then
10320 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpfr" >&5
10326 $as_echo_n "checking for libmpfr... " >&6; }
10327 if ${ac_cv_libmpfr+:} false
; then :
10328 $as_echo_n "(cached) " >&6
10331 ac_save_LIBS
="$LIBS"
10332 LIBS
="$LIBS $LIBMPFR"
10333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10334 /* end confdefs.h. */
10339 mpfr_exp_t exp; mpfr_t x;
10340 mpfr_frexp (&exp, x, x, MPFR_RNDN);
10345 if ac_fn_c_try_link
"$LINENO"; then :
10350 rm -f core conftest.err conftest.
$ac_objext \
10351 conftest
$ac_exeext conftest.
$ac_ext
10352 LIBS
="$ac_save_LIBS"
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libmpfr" >&5
10356 $as_echo "$ac_cv_libmpfr" >&6; }
10357 if test "$ac_cv_libmpfr" = yes; then
10360 $as_echo "#define HAVE_LIBMPFR 1" >>confdefs.h
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libmpfr" >&5
10363 $as_echo_n "checking how to link with libmpfr... " >&6; }
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPFR" >&5
10365 $as_echo "$LIBMPFR" >&6; }
10368 CPPFLAGS
="$ac_save_CPPFLAGS"
10378 if test "$HAVE_LIBMPFR" != yes; then
10379 if test "$with_mpfr" = yes; then
10380 as_fn_error $?
"MPFR is missing or unusable" "$LINENO" 5
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR is missing or unusable; some features may be unavailable." >&5
10383 $as_echo "$as_me: WARNING: MPFR is missing or unusable; some features may be unavailable." >&2;}
10388 # --------------------- #
10389 # Check for libpython. #
10390 # --------------------- #
10397 # Check whether --with-python was given.
10398 if test "${with_python+set}" = set; then :
10399 withval
=$with_python;
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10405 $as_echo_n "checking whether to use python... " >&6; }
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10407 $as_echo "$with_python" >&6; }
10409 if test "${with_python}" = no
; then
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10411 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10414 case "${with_python}" in
10416 if test -d "${with_python}"; then
10417 # Assume the python binary is ${with_python}/bin/python.
10418 python_prog
="${with_python}/bin/python"
10420 # If python does not exit ${with_python}/bin, then try in
10421 # ${with_python}. On Windows/MinGW, this is where the Python
10423 if test ! -x "${python_prog}"; then
10424 python_prog
="${with_python}/python"
10427 if test ! -x "${python_prog}"; then
10428 # Fall back to gdb 7.0/7.1 behaviour.
10429 python_prog
=missing
10430 python_prefix
=${with_python}
10432 elif test -x "${with_python}"; then
10433 # While we can't run python compiled for $host (unless host == build),
10434 # the user could write a script that provides the needed information,
10435 # so we support that.
10436 python_prog
=${with_python}
10439 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
10443 # Disallow --with-python=foo/bar.
10444 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
10447 # The user has either specified auto, yes, or the name of the python
10448 # program assumed to be in $PATH.
10450 case "${with_python}" in
10452 if test "${build}" = "${host}"; then
10453 # Extract the first word of "python", so it can be a program name with args.
10454 set dummy python
; ac_word
=$2
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10456 $as_echo_n "checking for $ac_word... " >&6; }
10457 if ${ac_cv_path_python_prog_path+:} false
; then :
10458 $as_echo_n "(cached) " >&6
10460 case $python_prog_path in
10462 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10465 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10466 for as_dir
in $PATH
10469 test -z "$as_dir" && as_dir
=.
10470 for ac_exec_ext
in '' $ac_executable_extensions; do
10471 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10472 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10480 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10484 python_prog_path
=$ac_cv_path_python_prog_path
10485 if test -n "$python_prog_path"; then
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10487 $as_echo "$python_prog_path" >&6; }
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10490 $as_echo "no" >&6; }
10494 if test "${python_prog_path}" = missing
; then
10495 python_prog
=missing
10497 python_prog
=${python_prog_path}
10500 # Not much we can do except assume the cross-compiler will find the
10502 python_prog
=missing
10506 # While we can't run python compiled for $host (unless host == build),
10507 # the user could write a script that provides the needed information,
10508 # so we support that.
10509 python_prog
="${with_python}"
10510 # Extract the first word of "${python_prog}", so it can be a program name with args.
10511 set dummy
${python_prog}; ac_word
=$2
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10513 $as_echo_n "checking for $ac_word... " >&6; }
10514 if ${ac_cv_path_python_prog_path+:} false
; then :
10515 $as_echo_n "(cached) " >&6
10517 case $python_prog_path in
10519 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10522 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10523 for as_dir
in $PATH
10526 test -z "$as_dir" && as_dir
=.
10527 for ac_exec_ext
in '' $ac_executable_extensions; do
10528 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10529 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10537 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10541 python_prog_path
=$ac_cv_path_python_prog_path
10542 if test -n "$python_prog_path"; then
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10544 $as_echo "$python_prog_path" >&6; }
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10547 $as_echo "no" >&6; }
10551 if test "${python_prog_path}" = missing
; then
10552 as_fn_error $?
"unable to find python program ${python_prog}" "$LINENO" 5
10558 if test "${python_prog}" != missing
; then
10559 # We have a python program to use, but it may be too old.
10560 # Don't flag an error for --with-python=auto (the default).
10561 have_python_config
=yes
10562 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
10563 if test $?
!= 0; then
10564 have_python_config
=failed
10565 if test "${with_python}" != auto
; then
10566 as_fn_error $?
"failure running python-config --includes" "$LINENO" 5
10569 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10570 if test $?
!= 0; then
10571 have_python_config
=failed
10572 if test "${with_python}" != auto
; then
10573 as_fn_error $?
"failure running python-config --ldflags" "$LINENO" 5
10576 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10577 if test $?
!= 0; then
10578 have_python_config
=failed
10579 if test "${with_python}" != auto
; then
10580 as_fn_error $?
"failure running python-config --exec-prefix" "$LINENO" 5
10584 # We do not have a python executable we can use to determine where
10585 # to find the Python headers and libs. We cannot guess the include
10586 # path from the python_prefix either, because that include path
10587 # depends on the Python version. So, there is nothing much we can
10588 # do except assume that the compiler will be able to find those files.
10591 have_python_config
=no
10594 # If we have python-config, only try the configuration it provides.
10595 # Otherwise fallback on the old way of trying different versions of
10599 if test "${have_python_config}" = yes; then
10602 new_CPPFLAGS
=${python_includes}
10603 new_LIBS
=${python_libs}
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
10605 $as_echo_n "checking for python... " >&6; }
10606 save_CPPFLAGS
=$CPPFLAGS
10608 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10609 LIBS
="$new_LIBS $LIBS"
10610 found_usable_python
=no
10611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10612 /* end confdefs.h. */
10613 #include "Python.h"
10622 if ac_fn_c_try_link
"$LINENO"; then :
10624 found_usable_python
=yes
10625 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10626 PYTHON_LIBS
=$new_LIBS
10628 rm -f core conftest.err conftest.
$ac_objext \
10629 conftest
$ac_exeext conftest.
$ac_ext
10630 CPPFLAGS
=$save_CPPFLAGS
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10633 $as_echo "${found_usable_python}" >&6; }
10635 elif test "${have_python_config}" != failed
; then
10636 if test "${have_libpython}" = no
; then
10639 new_CPPFLAGS
=${python_includes}
10640 new_LIBS
="-lpython2.7 ${python_libs}"
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
10642 $as_echo_n "checking for python... " >&6; }
10643 save_CPPFLAGS
=$CPPFLAGS
10645 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10646 LIBS
="$new_LIBS $LIBS"
10647 found_usable_python
=no
10648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10649 /* end confdefs.h. */
10650 #include "Python.h"
10659 if ac_fn_c_try_link
"$LINENO"; then :
10661 found_usable_python
=yes
10662 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10663 PYTHON_LIBS
=$new_LIBS
10665 rm -f core conftest.err conftest.
$ac_objext \
10666 conftest
$ac_exeext conftest.
$ac_ext
10667 CPPFLAGS
=$save_CPPFLAGS
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10670 $as_echo "${found_usable_python}" >&6; }
10673 if test "${have_libpython}" = no
; then
10676 new_CPPFLAGS
=${python_includes}
10677 new_LIBS
="-lpython2.6 ${python_libs}"
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
10679 $as_echo_n "checking for python... " >&6; }
10680 save_CPPFLAGS
=$CPPFLAGS
10682 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10683 LIBS
="$new_LIBS $LIBS"
10684 found_usable_python
=no
10685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10686 /* end confdefs.h. */
10687 #include "Python.h"
10696 if ac_fn_c_try_link
"$LINENO"; then :
10698 found_usable_python
=yes
10699 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10700 PYTHON_LIBS
=$new_LIBS
10702 rm -f core conftest.err conftest.
$ac_objext \
10703 conftest
$ac_exeext conftest.
$ac_ext
10704 CPPFLAGS
=$save_CPPFLAGS
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10707 $as_echo "${found_usable_python}" >&6; }
10712 if test "${have_libpython}" = no
; then
10713 case "${with_python}" in
10715 as_fn_error $?
"python is missing or unusable" "$LINENO" 5
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10719 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10722 as_fn_error $?
"no usable python found at ${with_python}" "$LINENO" 5
10726 if test -n "${python_prefix}"; then
10728 cat >>confdefs.h
<<_ACEOF
10729 #define WITH_PYTHON_PATH "${python_prefix}"
10733 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
10734 if test "x$prefix" = xNONE
; then
10735 test_prefix
=/usr
/local
10737 test_prefix
=$prefix
10740 test_prefix
=$exec_prefix
10743 case ${python_prefix} in
10744 "${test_prefix}"|
"${test_prefix}/"*|\
10745 '${exec_prefix}'|
'${exec_prefix}/'*)
10750 cat >>confdefs.h
<<_ACEOF
10751 #define PYTHON_PATH_RELOCATABLE $value
10760 # Check whether --with-python-libdir was given.
10761 if test "${with_python_libdir+set}" = set; then :
10762 withval
=$with_python_libdir;
10765 # If no python libdir is specified then select one based on
10766 # python's prefix path.
10767 if test -n "${python_prefix}"; then
10768 with_python_libdir
=${python_prefix}/lib
10774 if test "${have_libpython}" != no
; then
10776 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10778 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
10779 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
10780 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
10781 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
10782 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
10784 if test -n "${with_python_libdir}"; then
10786 cat >>confdefs.h
<<_ACEOF
10787 #define WITH_PYTHON_LIBDIR "${with_python_libdir}"
10791 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
10792 if test "x$prefix" = xNONE
; then
10793 test_prefix
=/usr
/local
10795 test_prefix
=$prefix
10798 test_prefix
=$exec_prefix
10801 case ${with_python_libdir} in
10802 "${test_prefix}"|
"${test_prefix}/"*|\
10803 '${exec_prefix}'|
'${exec_prefix}/'*)
10808 cat >>confdefs.h
<<_ACEOF
10809 #define PYTHON_LIBDIR_RELOCATABLE $value
10815 # Flags needed to compile Python code (taken from python-config --cflags).
10816 # We cannot call python-config directly because it will output whatever was
10817 # used when compiling the Python interpreter itself, including flags which
10818 # would make the python-related objects be compiled differently from the
10819 # rest of GDB (e.g., -O2 and -fPIC).
10820 if test "${GCC}" = yes; then
10821 tentative_python_cflags
="-fno-strict-aliasing -fwrapv"
10822 # Python headers recommend -DNDEBUG, but it's unclear if that just
10823 # refers to building Python itself. In release mode, though, it
10824 # doesn't hurt for the Python code in gdb to follow.
10825 $development || tentative_python_cflags
="$tentative_python_cflags -DNDEBUG"
10828 if test "x${tentative_python_cflags}" != x
; then
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
10830 $as_echo_n "checking compiler flags for python code... " >&6; }
10831 for flag
in ${tentative_python_cflags}; do
10832 # Check that the compiler accepts it
10833 saved_CFLAGS
="$CFLAGS"
10834 CFLAGS
="$CFLAGS $flag"
10835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10836 /* end confdefs.h. */
10846 if ac_fn_c_try_compile
"$LINENO"; then :
10847 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
10849 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10850 CFLAGS
="$saved_CFLAGS"
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
10853 $as_echo "${PYTHON_CFLAGS}" >&6; }
10856 # On x64 Windows, Python's include headers, and pyconfig.h in
10857 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
10858 # version of Windows. Unfortunately, MS_WIN64 is only defined if
10859 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
10860 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
10861 # The issue was reported to the Python community, but still isn't
10862 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
10864 case "$gdb_host" in
10866 if test "${GCC}" = yes; then
10867 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
10872 # Even if Python support is not compiled in, we need to have this file
10873 # included so that the "python" command, et.al., still exists.
10874 CONFIG_OBS
="$CONFIG_OBS python/python.o"
10875 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
10878 # Work around Python http://bugs.python.org/issue10112. See also
10879 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
10880 # no effect. Note that the only test after this that uses Python is
10881 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
10882 # run without -export-dynamic too.
10883 PYTHON_LIBS
=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
10888 if test "${have_libpython}" != no
; then
10890 HAVE_PYTHON_FALSE
='#'
10892 HAVE_PYTHON_TRUE
='#'
10897 # -------------------- #
10898 # Check for libguile. #
10899 # -------------------- #
10906 # Check whether --with-guile was given.
10907 if test "${with_guile+set}" = set; then :
10908 withval
=$with_guile;
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
10914 $as_echo_n "checking whether to use guile... " >&6; }
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
10916 $as_echo "$with_guile" >&6; }
10918 # Extract the first word of "pkg-config", so it can be a program name with args.
10919 set dummy pkg-config
; ac_word
=$2
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10921 $as_echo_n "checking for $ac_word... " >&6; }
10922 if ${ac_cv_path_pkg_config_prog_path+:} false
; then :
10923 $as_echo_n "(cached) " >&6
10925 case $pkg_config_prog_path in
10927 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
10930 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10931 for as_dir
in $PATH
10934 test -z "$as_dir" && as_dir
=.
10935 for ac_exec_ext
in '' $ac_executable_extensions; do
10936 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10937 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10945 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
10949 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
10950 if test -n "$pkg_config_prog_path"; then
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
10952 $as_echo "$pkg_config_prog_path" >&6; }
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10955 $as_echo "no" >&6; }
10960 try_guile_versions
="guile-2.0"
10962 case "${with_guile}" in
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
10965 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
10968 if test "${pkg_config_prog_path}" = "missing"; then
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
10970 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
10973 pkg_config
=${pkg_config_prog_path}
10974 guile_version_list
=${try_guile_versions}
10977 found_usable_guile
=checking
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
10979 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
10980 for guile_version
in ${guile_version_list}; do
10981 ${pkg_config} --exists ${guile_version} 2>/dev
/null
10982 if test $?
!= 0; then
10985 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
10986 if test $?
!= 0; then
10987 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
10989 new_LIBS
=`${pkg_config} --libs ${guile_version}`
10990 if test $?
!= 0; then
10991 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
10993 found_usable_guile
=${guile_version}
10996 if test "${found_usable_guile}" = "checking"; then
10997 if test "${flag_errors}" = "yes"; then
10998 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11000 found_usable_guile
=no
11003 if test "${found_usable_guile}" != no
; then
11004 save_CPPFLAGS
=$CPPFLAGS
11006 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11007 LIBS
="$LIBS $new_LIBS"
11008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11009 /* end confdefs.h. */
11010 #include "libguile.h"
11019 if ac_fn_c_try_link
"$LINENO"; then :
11021 GUILE_CPPFLAGS
=$new_CPPFLAGS
11022 GUILE_LIBS
=$new_LIBS
11024 found_usable_guile
=no
11026 rm -f core conftest.err conftest.
$ac_objext \
11027 conftest
$ac_exeext conftest.
$ac_ext
11028 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11029 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11031 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11036 CPPFLAGS
=$save_CPPFLAGS
11038 if test "${found_usable_guile}" = no
; then
11039 if test "${flag_errors}" = yes; then
11040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11042 as_fn_error $?
"linking guile version ${guile_version} test program failed
11043 See \`config.log' for more details" "$LINENO" 5; }
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11048 $as_echo "${found_usable_guile}" >&6; }
11053 if test "${pkg_config_prog_path}" = "missing"; then
11054 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11057 pkg_config
=${pkg_config_prog_path}
11058 guile_version_list
=${try_guile_versions}
11061 found_usable_guile
=checking
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11063 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11064 for guile_version
in ${guile_version_list}; do
11065 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11066 if test $?
!= 0; then
11069 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11070 if test $?
!= 0; then
11071 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11073 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11074 if test $?
!= 0; then
11075 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11077 found_usable_guile
=${guile_version}
11080 if test "${found_usable_guile}" = "checking"; then
11081 if test "${flag_errors}" = "yes"; then
11082 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11084 found_usable_guile
=no
11087 if test "${found_usable_guile}" != no
; then
11088 save_CPPFLAGS
=$CPPFLAGS
11090 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11091 LIBS
="$LIBS $new_LIBS"
11092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11093 /* end confdefs.h. */
11094 #include "libguile.h"
11103 if ac_fn_c_try_link
"$LINENO"; then :
11105 GUILE_CPPFLAGS
=$new_CPPFLAGS
11106 GUILE_LIBS
=$new_LIBS
11108 found_usable_guile
=no
11110 rm -f core conftest.err conftest.
$ac_objext \
11111 conftest
$ac_exeext conftest.
$ac_ext
11112 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11113 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11115 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11120 CPPFLAGS
=$save_CPPFLAGS
11122 if test "${found_usable_guile}" = no
; then
11123 if test "${flag_errors}" = yes; then
11124 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11126 as_fn_error $?
"linking guile version ${guile_version} test program failed
11127 See \`config.log' for more details" "$LINENO" 5; }
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11132 $as_echo "${found_usable_guile}" >&6; }
11136 if test -x "${with_guile}"; then
11138 pkg_config
=${with_guile}
11139 guile_version_list
=${try_guile_versions}
11142 found_usable_guile
=checking
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11144 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11145 for guile_version
in ${guile_version_list}; do
11146 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11147 if test $?
!= 0; then
11150 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11151 if test $?
!= 0; then
11152 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11154 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11155 if test $?
!= 0; then
11156 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11158 found_usable_guile
=${guile_version}
11161 if test "${found_usable_guile}" = "checking"; then
11162 if test "${flag_errors}" = "yes"; then
11163 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11165 found_usable_guile
=no
11168 if test "${found_usable_guile}" != no
; then
11169 save_CPPFLAGS
=$CPPFLAGS
11171 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11172 LIBS
="$LIBS $new_LIBS"
11173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11174 /* end confdefs.h. */
11175 #include "libguile.h"
11184 if ac_fn_c_try_link
"$LINENO"; then :
11186 GUILE_CPPFLAGS
=$new_CPPFLAGS
11187 GUILE_LIBS
=$new_LIBS
11189 found_usable_guile
=no
11191 rm -f core conftest.err conftest.
$ac_objext \
11192 conftest
$ac_exeext conftest.
$ac_ext
11193 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11194 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11196 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11201 CPPFLAGS
=$save_CPPFLAGS
11203 if test "${found_usable_guile}" = no
; then
11204 if test "${flag_errors}" = yes; then
11205 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11207 as_fn_error $?
"linking guile version ${guile_version} test program failed
11208 See \`config.log' for more details" "$LINENO" 5; }
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11213 $as_echo "${found_usable_guile}" >&6; }
11216 as_fn_error $?
"Guile config program not executable: ${with_guile}" "$LINENO" 5
11220 # Disallow --with=guile="" and --with-guile=foo/bar.
11221 as_fn_error $?
"invalid value for --with-guile" "$LINENO" 5
11224 # A space separate list of guile versions to try, in order.
11225 if test "${pkg_config_prog_path}" = "missing"; then
11226 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11229 pkg_config
=${pkg_config_prog_path}
11230 guile_version_list
=${with_guile}
11233 found_usable_guile
=checking
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11235 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11236 for guile_version
in ${guile_version_list}; do
11237 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11238 if test $?
!= 0; then
11241 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11242 if test $?
!= 0; then
11243 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11245 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11246 if test $?
!= 0; then
11247 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11249 found_usable_guile
=${guile_version}
11252 if test "${found_usable_guile}" = "checking"; then
11253 if test "${flag_errors}" = "yes"; then
11254 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11256 found_usable_guile
=no
11259 if test "${found_usable_guile}" != no
; then
11260 save_CPPFLAGS
=$CPPFLAGS
11262 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11263 LIBS
="$LIBS $new_LIBS"
11264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11265 /* end confdefs.h. */
11266 #include "libguile.h"
11275 if ac_fn_c_try_link
"$LINENO"; then :
11277 GUILE_CPPFLAGS
=$new_CPPFLAGS
11278 GUILE_LIBS
=$new_LIBS
11280 found_usable_guile
=no
11282 rm -f core conftest.err conftest.
$ac_objext \
11283 conftest
$ac_exeext conftest.
$ac_ext
11284 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11285 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11287 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11292 CPPFLAGS
=$save_CPPFLAGS
11294 if test "${found_usable_guile}" = no
; then
11295 if test "${flag_errors}" = yes; then
11296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11298 as_fn_error $?
"linking guile version ${guile_version} test program failed
11299 See \`config.log' for more details" "$LINENO" 5; }
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11304 $as_echo "${found_usable_guile}" >&6; }
11309 if test "${have_libguile}" != no
; then
11310 case "${with_guile}" in
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11314 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11315 if ${ac_cv_guild_program_name+:} false
; then :
11316 $as_echo_n "(cached) " >&6
11318 ac_cv_guild_program_name
="`"${with_guile}" --variable guild "${guile_version}"`"
11320 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11321 # the 'guild' and 'bindir' variables. In that case, try to guess
11322 # what the program name is, at the risk of getting it wrong if
11323 # Guile was configured with '--program-suffix' or similar.
11324 if test "x$ac_cv_guild_program_name" = "x"; then
11325 guile_exec_prefix
="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
11326 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11331 $as_echo "$ac_cv_guild_program_name" >&6; }
11333 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11334 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11337 GUILD
="$ac_cv_guild_program_name"
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11344 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11345 if ${ac_cv_guild_program_name+:} false
; then :
11346 $as_echo_n "(cached) " >&6
11348 ac_cv_guild_program_name
="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
11350 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11351 # the 'guild' and 'bindir' variables. In that case, try to guess
11352 # what the program name is, at the risk of getting it wrong if
11353 # Guile was configured with '--program-suffix' or similar.
11354 if test "x$ac_cv_guild_program_name" = "x"; then
11355 guile_exec_prefix
="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
11356 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11361 $as_echo "$ac_cv_guild_program_name" >&6; }
11363 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11364 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11367 GUILD
="$ac_cv_guild_program_name"
11374 if test "$cross_compiling" = no
; then
11377 GUILD_TARGET_FLAG
="--target=$host"
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
11384 $as_echo_n "checking whether guild supports this host... " >&6; }
11385 if ${ac_cv_guild_ok+:} false
; then :
11386 $as_echo_n "(cached) " >&6
11388 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
11389 if "$ac_cv_guild_program_name" compile
$GUILD_TARGET_FLAG -o conftest.go
"$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
11396 $as_echo "$ac_cv_guild_ok" >&6; }
11398 if test "$ac_cv_guild_ok" = no
; then
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
11401 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
11405 if test "${have_libguile}" != no
; then
11407 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
11409 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
11410 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
11411 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
11412 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
11413 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
11416 save_CPPFLAGS
="$CPPFLAGS"
11418 CPPFLAGS
="$GUILE_CPPFLAGS"
11419 for ac_func
in scm_new_smob
11421 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
11422 if test "x$ac_cv_func_scm_new_smob" = xyes
; then :
11423 cat >>confdefs.h
<<_ACEOF
11424 #define HAVE_SCM_NEW_SMOB 1
11431 CPPFLAGS
="$save_CPPFLAGS"
11433 # Even if Guile support is not compiled in, we need to have these files
11435 CONFIG_OBS
="$CONFIG_OBS guile/guile.o"
11436 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
11440 if test "${have_libguile}" != no
; then
11442 HAVE_GUILE_FALSE
='#'
11444 HAVE_GUILE_TRUE
='#'
11449 # ---------------------------- #
11450 # Check for source highlight. #
11451 # ---------------------------- #
11456 # Check whether --enable-source-highlight was given.
11457 if test "${enable_source_highlight+set}" = set; then :
11458 enableval
=$enable_source_highlight; case "${enableval}" in
11459 yes) enable_source_highlight
=yes ;;
11460 no
) enable_source_highlight
=no
;;
11461 *) as_fn_error $?
"bad value ${enableval} for source-highlight option" "$LINENO" 5 ;;
11464 enable_source_highlight
=auto
11468 if test "${enable_source_highlight}" != "no"; then
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the source-highlight library" >&5
11470 $as_echo_n "checking for the source-highlight library... " >&6; }
11471 if test "${pkg_config_prog_path}" = "missing"; then
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - pkg-config not found" >&5
11473 $as_echo "no - pkg-config not found" >&6; }
11474 if test "${enable_source_highlight}" = "yes"; then
11475 as_fn_error $?
"pkg-config was not found in your system" "$LINENO" 5
11480 as_fn_error $?
"source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5
11484 if ${pkg_config_prog_path} --exists source-highlight
; then
11485 SRCHIGH_CFLAGS
=`${pkg_config_prog_path} --cflags source-highlight`
11486 SRCHIGH_LIBS
=`${pkg_config_prog_path} --libs source-highlight`
11488 $as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11491 $as_echo "yes" >&6; }
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11494 $as_echo "no" >&6; }
11495 if test "${enable_source_highlight}" = "yes"; then
11496 as_fn_error $?
"source-highlight was not found in your system" "$LINENO" 5
11504 # ------------------------- #
11505 # Checks for header files. #
11506 # ------------------------- #
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11509 $as_echo_n "checking for ANSI C header files... " >&6; }
11510 if ${ac_cv_header_stdc+:} false
; then :
11511 $as_echo_n "(cached) " >&6
11513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11514 /* end confdefs.h. */
11515 #include <stdlib.h>
11516 #include <stdarg.h>
11517 #include <string.h>
11528 if ac_fn_c_try_compile
"$LINENO"; then :
11529 ac_cv_header_stdc
=yes
11531 ac_cv_header_stdc
=no
11533 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11535 if test $ac_cv_header_stdc = yes; then
11536 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11538 /* end confdefs.h. */
11539 #include <string.h>
11542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11543 $EGREP "memchr" >/dev
/null
2>&1; then :
11546 ac_cv_header_stdc
=no
11552 if test $ac_cv_header_stdc = yes; then
11553 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11555 /* end confdefs.h. */
11556 #include <stdlib.h>
11559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11560 $EGREP "free" >/dev
/null
2>&1; then :
11563 ac_cv_header_stdc
=no
11569 if test $ac_cv_header_stdc = yes; then
11570 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11571 if test "$cross_compiling" = yes; then :
11574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11575 /* end confdefs.h. */
11577 #include <stdlib.h>
11578 #if ((' ' & 0x0FF) == 0x020)
11579 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11580 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11582 # define ISLOWER(c) \
11583 (('a' <= (c) && (c) <= 'i') \
11584 || ('j' <= (c) && (c) <= 'r') \
11585 || ('s' <= (c) && (c) <= 'z'))
11586 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11589 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11594 for (i = 0; i < 256; i++)
11595 if (XOR (islower (i), ISLOWER (i))
11596 || toupper (i) != TOUPPER (i))
11601 if ac_fn_c_try_run
"$LINENO"; then :
11604 ac_cv_header_stdc
=no
11606 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11607 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11613 $as_echo "$ac_cv_header_stdc" >&6; }
11614 if test $ac_cv_header_stdc = yes; then
11616 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11620 # elf_hp.h is for HP/UX 64-bit shared library support.
11621 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h \
11623 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
11624 sys
/resource.h sys
/ptrace.h ptrace.h \
11625 sys
/reg.h sys
/debugreg.h sys
/select.h \
11628 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11629 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11630 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
11631 cat >>confdefs.h
<<_ACEOF
11632 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11639 for ac_header
in sys
/user.h
11641 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
11642 # include <sys/param.h>
11646 if test "x$ac_cv_header_sys_user_h" = xyes
; then :
11647 cat >>confdefs.h
<<_ACEOF
11648 #define HAVE_SYS_USER_H 1
11656 for ac_header
in curses.h cursesX.h ncurses.h ncursesw
/ncurses.h ncurses
/ncurses.h ncurses
/term.h
11658 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11659 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11660 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
11661 cat >>confdefs.h
<<_ACEOF
11662 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11669 for ac_header
in term.h
11671 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
11672 # include <curses.h>
11676 if test "x$ac_cv_header_term_h" = xyes
; then :
11677 cat >>confdefs.h
<<_ACEOF
11678 #define HAVE_TERM_H 1
11686 # ------------------------- #
11687 # Checks for declarations. #
11688 # ------------------------- #
11691 # Check for presence and size of long long.
11692 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
11693 if test "x$ac_cv_type_long_long" = xyes
; then :
11695 cat >>confdefs.h
<<_ACEOF
11696 #define HAVE_LONG_LONG 1
11699 # The cast to long int works around a bug in the HP C Compiler
11700 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11701 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11702 # This bug is HP SR number 8606223364.
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
11704 $as_echo_n "checking size of long long... " >&6; }
11705 if ${ac_cv_sizeof_long_long+:} false
; then :
11706 $as_echo_n "(cached) " >&6
11708 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
11711 if test "$ac_cv_type_long_long" = yes; then
11712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11714 as_fn_error
77 "cannot compute sizeof (long long)
11715 See \`config.log' for more details" "$LINENO" 5; }
11717 ac_cv_sizeof_long_long
=0
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
11723 $as_echo "$ac_cv_sizeof_long_long" >&6; }
11727 cat >>confdefs.h
<<_ACEOF
11728 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11735 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
11736 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
11737 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
11743 cat >>confdefs.h
<<_ACEOF
11744 #define HAVE_DECL_BASENAME $ac_have_decl
11746 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
11747 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
11753 cat >>confdefs.h
<<_ACEOF
11754 #define HAVE_DECL_FFS $ac_have_decl
11756 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
11757 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
11763 cat >>confdefs.h
<<_ACEOF
11764 #define HAVE_DECL_ASPRINTF $ac_have_decl
11766 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
11767 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
11773 cat >>confdefs.h
<<_ACEOF
11774 #define HAVE_DECL_VASPRINTF $ac_have_decl
11776 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11777 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
11783 cat >>confdefs.h
<<_ACEOF
11784 #define HAVE_DECL_SNPRINTF $ac_have_decl
11786 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
11787 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
11793 cat >>confdefs.h
<<_ACEOF
11794 #define HAVE_DECL_VSNPRINTF $ac_have_decl
11797 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
11798 if test "x$ac_cv_have_decl_strtol" = xyes
; then :
11804 cat >>confdefs.h
<<_ACEOF
11805 #define HAVE_DECL_STRTOL $ac_have_decl
11807 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
11808 if test "x$ac_cv_have_decl_strtoul" = xyes
; then :
11814 cat >>confdefs.h
<<_ACEOF
11815 #define HAVE_DECL_STRTOUL $ac_have_decl
11817 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
11818 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
11824 cat >>confdefs.h
<<_ACEOF
11825 #define HAVE_DECL_STRTOLL $ac_have_decl
11827 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
11828 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
11834 cat >>confdefs.h
<<_ACEOF
11835 #define HAVE_DECL_STRTOULL $ac_have_decl
11838 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
11839 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
11845 cat >>confdefs.h
<<_ACEOF
11846 #define HAVE_DECL_STRVERSCMP $ac_have_decl
11851 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11852 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
11858 cat >>confdefs.h
<<_ACEOF
11859 #define HAVE_DECL_SNPRINTF $ac_have_decl
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11864 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11865 if ${am_cv_val_LC_MESSAGES+:} false
; then :
11866 $as_echo_n "(cached) " >&6
11868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11869 /* end confdefs.h. */
11870 #include <locale.h>
11879 if ac_fn_c_try_link
"$LINENO"; then :
11880 am_cv_val_LC_MESSAGES
=yes
11882 am_cv_val_LC_MESSAGES
=no
11884 rm -f core conftest.err conftest.
$ac_objext \
11885 conftest
$ac_exeext conftest.
$ac_ext
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11888 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11889 if test $am_cv_val_LC_MESSAGES = yes; then
11891 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11896 # ------------------ #
11897 # Checks for types. #
11898 # ------------------ #
11900 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11901 #include <sys/socket.h>
11904 if test "x$ac_cv_type_socklen_t" = xyes
; then :
11906 cat >>confdefs.h
<<_ACEOF
11907 #define HAVE_SOCKLEN_T 1
11914 # ------------------------------------- #
11915 # Checks for compiler characteristics. #
11916 # ------------------------------------- #
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11919 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11920 if ${ac_cv_c_const+:} false
; then :
11921 $as_echo_n "(cached) " >&6
11923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11924 /* end confdefs.h. */
11930 #ifndef __cplusplus
11931 /* Ultrix mips cc rejects this sort of thing. */
11932 typedef int charset[2];
11933 const charset cs = { 0, 0 };
11934 /* SunOS 4.1.1 cc rejects this. */
11935 char const *const *pcpcc;
11937 /* NEC SVR4.0.2 mips cc rejects this. */
11938 struct point {int x, y;};
11939 static struct point const zero = {0,0};
11940 /* AIX XL C 1.02.0.0 rejects this.
11941 It does not let you subtract one const X* pointer from another in
11942 an arm of an if-expression whose if-part is not a constant
11944 const char *g = "string";
11945 pcpcc = &g + (g ? g-g : 0);
11946 /* HPUX 7.0 cc rejects these. */
11948 ppc = (char**) pcpcc;
11949 pcpcc = (char const *const *) ppc;
11950 { /* SCO 3.2v4 cc rejects this sort of thing. */
11953 char const *s = 0 ? (char *) 0 : (char const *) 0;
11958 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11959 int x[] = {25, 17};
11960 const int *foo = &x[0];
11963 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11964 typedef const int *iptr;
11968 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
11969 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11970 struct s { int j; const int *ap[3]; } bx;
11971 struct s *b = &bx; b->j = 5;
11973 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11974 const int foo = 10;
11975 if (!foo) return 0;
11977 return !cs[0] && !zero.x;
11984 if ac_fn_c_try_compile
"$LINENO"; then :
11989 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11992 $as_echo "$ac_cv_c_const" >&6; }
11993 if test $ac_cv_c_const = no
; then
11995 $as_echo "#define const /**/" >>confdefs.h
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12000 $as_echo_n "checking for inline... " >&6; }
12001 if ${ac_cv_c_inline+:} false
; then :
12002 $as_echo_n "(cached) " >&6
12005 for ac_kw
in inline __inline__ __inline
; do
12006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12007 /* end confdefs.h. */
12008 #ifndef __cplusplus
12010 static $ac_kw foo_t static_foo () {return 0; }
12011 $ac_kw foo_t foo () {return 0; }
12015 if ac_fn_c_try_compile
"$LINENO"; then :
12016 ac_cv_c_inline
=$ac_kw
12018 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12019 test "$ac_cv_c_inline" != no
&& break
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12024 $as_echo "$ac_cv_c_inline" >&6; }
12026 case $ac_cv_c_inline in
12029 case $ac_cv_c_inline in
12031 *) ac_val
=$ac_cv_c_inline;;
12033 cat >>confdefs.h
<<_ACEOF
12034 #ifndef __cplusplus
12035 #define inline $ac_val
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12042 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12043 if ${ac_cv_c_bigendian+:} false
; then :
12044 $as_echo_n "(cached) " >&6
12046 ac_cv_c_bigendian
=unknown
12047 # See if we're dealing with a universal compiler.
12048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12049 /* end confdefs.h. */
12050 #ifndef __APPLE_CC__
12051 not a universal capable compiler
12056 if ac_fn_c_try_compile
"$LINENO"; then :
12058 # Check for potential -arch flags. It is not universal unless
12059 # there are at least two -arch flags with different values.
12062 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12063 if test -n "$ac_prev"; then
12065 i?
86 | x86_64 | ppc | ppc64
)
12066 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
12069 ac_cv_c_bigendian
=universal
12075 elif test "x$ac_word" = "x-arch"; then
12080 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12081 if test $ac_cv_c_bigendian = unknown
; then
12082 # See if sys/param.h defines the BYTE_ORDER macro.
12083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12084 /* end confdefs.h. */
12085 #include <sys/types.h>
12086 #include <sys/param.h>
12091 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12092 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12094 bogus endian macros
12101 if ac_fn_c_try_compile
"$LINENO"; then :
12102 # It does; now see whether it defined to BIG_ENDIAN or not.
12103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12104 /* end confdefs.h. */
12105 #include <sys/types.h>
12106 #include <sys/param.h>
12111 #if BYTE_ORDER != BIG_ENDIAN
12119 if ac_fn_c_try_compile
"$LINENO"; then :
12120 ac_cv_c_bigendian
=yes
12122 ac_cv_c_bigendian
=no
12124 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12126 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12128 if test $ac_cv_c_bigendian = unknown
; then
12129 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12131 /* end confdefs.h. */
12132 #include <limits.h>
12137 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12138 bogus endian macros
12145 if ac_fn_c_try_compile
"$LINENO"; then :
12146 # It does; now see whether it defined to _BIG_ENDIAN or not.
12147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12148 /* end confdefs.h. */
12149 #include <limits.h>
12154 #ifndef _BIG_ENDIAN
12162 if ac_fn_c_try_compile
"$LINENO"; then :
12163 ac_cv_c_bigendian
=yes
12165 ac_cv_c_bigendian
=no
12167 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12169 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12171 if test $ac_cv_c_bigendian = unknown
; then
12172 # Compile a test program.
12173 if test "$cross_compiling" = yes; then :
12174 # Try to guess by grepping values from an object file.
12175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12176 /* end confdefs.h. */
12177 short int ascii_mm[] =
12178 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12179 short int ascii_ii[] =
12180 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12181 int use_ascii (int i) {
12182 return ascii_mm[i] + ascii_ii[i];
12184 short int ebcdic_ii[] =
12185 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12186 short int ebcdic_mm[] =
12187 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12188 int use_ebcdic (int i) {
12189 return ebcdic_mm[i] + ebcdic_ii[i];
12196 return use_ascii (foo) == use_ebcdic (foo);
12201 if ac_fn_c_try_compile
"$LINENO"; then :
12202 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12203 ac_cv_c_bigendian
=yes
12205 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12206 if test "$ac_cv_c_bigendian" = unknown
; then
12207 ac_cv_c_bigendian
=no
12209 # finding both strings is unlikely to happen, but who knows?
12210 ac_cv_c_bigendian
=unknown
12214 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12217 /* end confdefs.h. */
12218 $ac_includes_default
12223 /* Are we little or big endian? From Harbison&Steele. */
12227 char c[sizeof (long int)];
12230 return u.c[sizeof (long int) - 1] == 1;
12236 if ac_fn_c_try_run
"$LINENO"; then :
12237 ac_cv_c_bigendian
=no
12239 ac_cv_c_bigendian
=yes
12241 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12242 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12248 $as_echo "$ac_cv_c_bigendian" >&6; }
12249 case $ac_cv_c_bigendian in #(
12251 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12257 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12261 as_fn_error $?
"unknown endianness
12262 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12266 # ------------------------------ #
12267 # Checks for library functions. #
12268 # ------------------------------ #
12270 for ac_func
in getuid getgid \
12271 pipe poll pread pread64 pwrite resize_term \
12273 sigaction sigsetmask socketpair \
12274 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
12275 setrlimit getrlimit posix_madvise waitpid \
12278 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12279 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12280 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12281 cat >>confdefs.h
<<_ACEOF
12282 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12290 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12291 if ${am_cv_langinfo_codeset+:} false
; then :
12292 $as_echo_n "(cached) " >&6
12294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12295 /* end confdefs.h. */
12296 #include <langinfo.h>
12300 char* cs = nl_langinfo(CODESET);
12305 if ac_fn_c_try_link
"$LINENO"; then :
12306 am_cv_langinfo_codeset
=yes
12308 am_cv_langinfo_codeset
=no
12310 rm -f core conftest.err conftest.
$ac_objext \
12311 conftest
$ac_exeext conftest.
$ac_ext
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12315 $as_echo "$am_cv_langinfo_codeset" >&6; }
12316 if test $am_cv_langinfo_codeset = yes; then
12318 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12322 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12323 if test "x$ac_cv_type_size_t" = xyes
; then :
12327 cat >>confdefs.h
<<_ACEOF
12328 #define size_t unsigned int
12336 for ac_header
in $ac_header_list
12338 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12339 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12341 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12342 cat >>confdefs.h
<<_ACEOF
12343 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12356 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12357 if test "x$ac_cv_type_pid_t" = xyes
; then :
12361 cat >>confdefs.h
<<_ACEOF
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12368 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12369 if ${ac_cv_path_SED+:} false
; then :
12370 $as_echo_n "(cached) " >&6
12372 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
12373 for ac_i
in 1 2 3 4 5 6 7; do
12374 ac_script
="$ac_script$as_nl$ac_script"
12376 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
12377 { ac_script
=; unset ac_script
;}
12378 if test -z "$SED"; then
12379 ac_path_SED_found
=false
12380 # Loop through the user's path and test for each of PROGNAME-LIST
12381 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12382 for as_dir
in $PATH
12385 test -z "$as_dir" && as_dir
=.
12386 for ac_prog
in sed gsed
; do
12387 for ac_exec_ext
in '' $ac_executable_extensions; do
12388 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12389 as_fn_executable_p
"$ac_path_SED" ||
continue
12390 # Check for GNU ac_path_SED and select it if it is found.
12391 # Check for GNU $ac_path_SED
12392 case `"$ac_path_SED" --version 2>&1` in
12394 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12397 $as_echo_n 0123456789 >"conftest.in"
12400 cat "conftest.in" "conftest.in" >"conftest.tmp"
12401 mv "conftest.tmp" "conftest.in"
12402 cp "conftest.in" "conftest.nl"
12403 $as_echo '' >> "conftest.nl"
12404 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12405 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12406 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12407 if test $ac_count -gt ${ac_path_SED_max-0}; then
12408 # Best one so far, save it but keep looking for a better one
12409 ac_cv_path_SED
="$ac_path_SED"
12410 ac_path_SED_max
=$ac_count
12412 # 10*(2^10) chars as input seems more than enough
12413 test $ac_count -gt 10 && break
12415 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12418 $ac_path_SED_found && break 3
12423 if test -z "$ac_cv_path_SED"; then
12424 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12427 ac_cv_path_SED
=$SED
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12432 $as_echo "$ac_cv_path_SED" >&6; }
12433 SED
="$ac_cv_path_SED"
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12438 $as_echo_n "checking for ANSI C header files... " >&6; }
12439 if ${ac_cv_header_stdc+:} false
; then :
12440 $as_echo_n "(cached) " >&6
12442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12443 /* end confdefs.h. */
12444 #include <stdlib.h>
12445 #include <stdarg.h>
12446 #include <string.h>
12457 if ac_fn_c_try_compile
"$LINENO"; then :
12458 ac_cv_header_stdc
=yes
12460 ac_cv_header_stdc
=no
12462 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12464 if test $ac_cv_header_stdc = yes; then
12465 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12467 /* end confdefs.h. */
12468 #include <string.h>
12471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12472 $EGREP "memchr" >/dev
/null
2>&1; then :
12475 ac_cv_header_stdc
=no
12481 if test $ac_cv_header_stdc = yes; then
12482 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12484 /* end confdefs.h. */
12485 #include <stdlib.h>
12488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12489 $EGREP "free" >/dev
/null
2>&1; then :
12492 ac_cv_header_stdc
=no
12498 if test $ac_cv_header_stdc = yes; then
12499 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12500 if test "$cross_compiling" = yes; then :
12503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12504 /* end confdefs.h. */
12506 #include <stdlib.h>
12507 #if ((' ' & 0x0FF) == 0x020)
12508 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12509 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12511 # define ISLOWER(c) \
12512 (('a' <= (c) && (c) <= 'i') \
12513 || ('j' <= (c) && (c) <= 'r') \
12514 || ('s' <= (c) && (c) <= 'z'))
12515 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12518 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12523 for (i = 0; i < 256; i++)
12524 if (XOR (islower (i), ISLOWER (i))
12525 || toupper (i) != TOUPPER (i))
12530 if ac_fn_c_try_run
"$LINENO"; then :
12533 ac_cv_header_stdc
=no
12535 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12536 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12542 $as_echo "$ac_cv_header_stdc" >&6; }
12543 if test $ac_cv_header_stdc = yes; then
12545 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12549 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12550 # for constant arguments. Useless!
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12552 $as_echo_n "checking for working alloca.h... " >&6; }
12553 if ${ac_cv_working_alloca_h+:} false
; then :
12554 $as_echo_n "(cached) " >&6
12556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12557 /* end confdefs.h. */
12558 #include <alloca.h>
12562 char *p = (char *) alloca (2 * sizeof (int));
12568 if ac_fn_c_try_link
"$LINENO"; then :
12569 ac_cv_working_alloca_h
=yes
12571 ac_cv_working_alloca_h
=no
12573 rm -f core conftest.err conftest.
$ac_objext \
12574 conftest
$ac_exeext conftest.
$ac_ext
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12577 $as_echo "$ac_cv_working_alloca_h" >&6; }
12578 if test $ac_cv_working_alloca_h = yes; then
12580 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12585 $as_echo_n "checking for alloca... " >&6; }
12586 if ${ac_cv_func_alloca_works+:} false
; then :
12587 $as_echo_n "(cached) " >&6
12589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12590 /* end confdefs.h. */
12592 # define alloca __builtin_alloca
12595 # include <malloc.h>
12596 # define alloca _alloca
12598 # ifdef HAVE_ALLOCA_H
12599 # include <alloca.h>
12604 # ifndef alloca /* predefined by HP cc +Olibcalls */
12605 void *alloca (size_t);
12615 char *p = (char *) alloca (1);
12621 if ac_fn_c_try_link
"$LINENO"; then :
12622 ac_cv_func_alloca_works
=yes
12624 ac_cv_func_alloca_works
=no
12626 rm -f core conftest.err conftest.
$ac_objext \
12627 conftest
$ac_exeext conftest.
$ac_ext
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12630 $as_echo "$ac_cv_func_alloca_works" >&6; }
12632 if test $ac_cv_func_alloca_works = yes; then
12634 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12637 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12638 # that cause trouble. Some versions do not even contain alloca or
12639 # contain a buggy version. If you still want to use their alloca,
12640 # use ar to extract alloca.o from them instead of compiling alloca.c.
12642 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
12644 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12648 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12649 if ${ac_cv_os_cray+:} false
; then :
12650 $as_echo_n "(cached) " >&6
12652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12653 /* end confdefs.h. */
12654 #if defined CRAY && ! defined CRAY2
12661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12662 $EGREP "webecray" >/dev
/null
2>&1; then :
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12671 $as_echo "$ac_cv_os_cray" >&6; }
12672 if test $ac_cv_os_cray = yes; then
12673 for ac_func
in _getb67 GETB67 getb67
; do
12674 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12675 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12676 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12678 cat >>confdefs.h
<<_ACEOF
12679 #define CRAY_STACKSEG_END $ac_func
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12689 $as_echo_n "checking stack direction for C alloca... " >&6; }
12690 if ${ac_cv_c_stack_direction+:} false
; then :
12691 $as_echo_n "(cached) " >&6
12693 if test "$cross_compiling" = yes; then :
12694 ac_cv_c_stack_direction
=0
12696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12697 /* end confdefs.h. */
12698 $ac_includes_default
12700 find_stack_direction (int *addr, int depth)
12702 int dir, dummy = 0;
12705 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
12706 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
12707 return dir + dummy;
12711 main (int argc, char **argv)
12713 return find_stack_direction (0, argc + !argv + 20) < 0;
12716 if ac_fn_c_try_run
"$LINENO"; then :
12717 ac_cv_c_stack_direction
=1
12719 ac_cv_c_stack_direction
=-1
12721 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12722 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12727 $as_echo "$ac_cv_c_stack_direction" >&6; }
12728 cat >>confdefs.h
<<_ACEOF
12729 #define STACK_DIRECTION $ac_cv_c_stack_direction
12740 $as_echo "#define USE_WIN32API 1" >>confdefs.h
12742 WIN32APILIBS
="-lws2_32"
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12748 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12749 if ${am_cv_langinfo_codeset+:} false
; then :
12750 $as_echo_n "(cached) " >&6
12752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12753 /* end confdefs.h. */
12754 #include <langinfo.h>
12758 char* cs = nl_langinfo(CODESET);
12763 if ac_fn_c_try_link
"$LINENO"; then :
12764 am_cv_langinfo_codeset
=yes
12766 am_cv_langinfo_codeset
=no
12768 rm -f core conftest.err conftest.
$ac_objext \
12769 conftest
$ac_exeext conftest.
$ac_ext
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12773 $as_echo "$am_cv_langinfo_codeset" >&6; }
12774 if test $am_cv_langinfo_codeset = yes; then
12776 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12781 for ac_header
in linux
/perf_event.h locale.h memory.h signal.h sys
/resource.h sys
/socket.h sys
/un.h sys
/wait.h thread_db.h
wait.h termios.h dlfcn.h linux
/elf.h sys
/procfs.h proc_service.h
12783 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12784 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12785 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12786 cat >>confdefs.h
<<_ACEOF
12787 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12796 for ac_func
in getpagesize
12798 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12799 if test "x$ac_cv_func_getpagesize" = xyes
; then :
12800 cat >>confdefs.h
<<_ACEOF
12801 #define HAVE_GETPAGESIZE 1
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12808 $as_echo_n "checking for working mmap... " >&6; }
12809 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
12810 $as_echo_n "(cached) " >&6
12812 if test "$cross_compiling" = yes; then :
12813 ac_cv_func_mmap_fixed_mapped
=no
12815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12816 /* end confdefs.h. */
12817 $ac_includes_default
12818 /* malloc might have been renamed as rpl_malloc. */
12821 /* Thanks to Mike Haertel and Jim Avera for this test.
12822 Here is a matrix of mmap possibilities:
12823 mmap private not fixed
12824 mmap private fixed at somewhere currently unmapped
12825 mmap private fixed at somewhere already mapped
12826 mmap shared not fixed
12827 mmap shared fixed at somewhere currently unmapped
12828 mmap shared fixed at somewhere already mapped
12829 For private mappings, we should verify that changes cannot be read()
12830 back from the file, nor mmap's back from the file at a different
12831 address. (There have been systems where private was not correctly
12832 implemented like the infamous i386 svr4.0, and systems where the
12833 VM page cache was not coherent with the file system buffer cache
12834 like early versions of FreeBSD and possibly contemporary NetBSD.)
12835 For shared mappings, we should conversely verify that changes get
12836 propagated back to all the places they're supposed to be.
12838 Grep wants private fixed already mapped.
12839 The main things grep needs to know about mmap are:
12840 * does it exist and is it safe to write into the mmap'd area
12841 * how to use it (BSD variants) */
12844 #include <sys/mman.h>
12846 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12850 /* This mess was copied from the GNU getpagesize.h. */
12851 #ifndef HAVE_GETPAGESIZE
12852 # ifdef _SC_PAGESIZE
12853 # define getpagesize() sysconf(_SC_PAGESIZE)
12854 # else /* no _SC_PAGESIZE */
12855 # ifdef HAVE_SYS_PARAM_H
12856 # include <sys/param.h>
12857 # ifdef EXEC_PAGESIZE
12858 # define getpagesize() EXEC_PAGESIZE
12859 # else /* no EXEC_PAGESIZE */
12861 # define getpagesize() NBPG * CLSIZE
12864 # endif /* no CLSIZE */
12865 # else /* no NBPG */
12867 # define getpagesize() NBPC
12868 # else /* no NBPC */
12870 # define getpagesize() PAGESIZE
12871 # endif /* PAGESIZE */
12872 # endif /* no NBPC */
12873 # endif /* no NBPG */
12874 # endif /* no EXEC_PAGESIZE */
12875 # else /* no HAVE_SYS_PARAM_H */
12876 # define getpagesize() 8192 /* punt totally */
12877 # endif /* no HAVE_SYS_PARAM_H */
12878 # endif /* no _SC_PAGESIZE */
12880 #endif /* no HAVE_GETPAGESIZE */
12885 char *data, *data2, *data3;
12886 const char *cdata2;
12890 pagesize = getpagesize ();
12892 /* First, make a file with some known garbage in it. */
12893 data = (char *) malloc (pagesize);
12896 for (i = 0; i < pagesize; ++i)
12897 *(data + i) = rand ();
12899 fd = creat ("conftest.mmap", 0600);
12902 if (write (fd, data, pagesize) != pagesize)
12906 /* Next, check that the tail of a page is zero-filled. File must have
12907 non-zero length, otherwise we risk SIGBUS for entire page. */
12908 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12912 if (write (fd2, cdata2, 1) != 1)
12914 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12915 if (data2 == MAP_FAILED)
12917 for (i = 0; i < pagesize; ++i)
12921 if (munmap (data2, pagesize))
12924 /* Next, try to mmap the file at a fixed address which already has
12925 something else allocated at it. If we can, also make sure that
12926 we see the same garbage. */
12927 fd = open ("conftest.mmap", O_RDWR);
12930 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12931 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12933 for (i = 0; i < pagesize; ++i)
12934 if (*(data + i) != *(data2 + i))
12937 /* Finally, make sure that changes to the mapped area do not
12938 percolate back to the file as seen by read(). (This is a bug on
12939 some variants of i386 svr4.0.) */
12940 for (i = 0; i < pagesize; ++i)
12941 *(data2 + i) = *(data2 + i) + 1;
12942 data3 = (char *) malloc (pagesize);
12945 if (read (fd, data3, pagesize) != pagesize)
12947 for (i = 0; i < pagesize; ++i)
12948 if (*(data + i) != *(data3 + i))
12954 if ac_fn_c_try_run
"$LINENO"; then :
12955 ac_cv_func_mmap_fixed_mapped
=yes
12957 ac_cv_func_mmap_fixed_mapped
=no
12959 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12960 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12965 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12966 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12968 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12971 rm -f conftest.mmap conftest.txt
12973 for ac_header
in vfork.h
12975 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12976 if test "x$ac_cv_header_vfork_h" = xyes
; then :
12977 cat >>confdefs.h
<<_ACEOF
12978 #define HAVE_VFORK_H 1
12985 for ac_func
in fork vfork
12987 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12988 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12989 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12990 cat >>confdefs.h
<<_ACEOF
12991 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12997 if test "x$ac_cv_func_fork" = xyes
; then
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12999 $as_echo_n "checking for working fork... " >&6; }
13000 if ${ac_cv_func_fork_works+:} false
; then :
13001 $as_echo_n "(cached) " >&6
13003 if test "$cross_compiling" = yes; then :
13004 ac_cv_func_fork_works
=cross
13006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13007 /* end confdefs.h. */
13008 $ac_includes_default
13013 /* By Ruediger Kuhlmann. */
13014 return fork () < 0;
13020 if ac_fn_c_try_run
"$LINENO"; then :
13021 ac_cv_func_fork_works
=yes
13023 ac_cv_func_fork_works
=no
13025 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13026 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13031 $as_echo "$ac_cv_func_fork_works" >&6; }
13034 ac_cv_func_fork_works
=$ac_cv_func_fork
13036 if test "x$ac_cv_func_fork_works" = xcross
; then
13038 *-*-amigaos* |
*-*-msdosdjgpp*)
13039 # Override, as these systems have only a dummy fork() stub
13040 ac_cv_func_fork_works
=no
13043 ac_cv_func_fork_works
=yes
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13047 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13049 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13050 if test "x$ac_cv_func_vfork" = xyes
; then
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13052 $as_echo_n "checking for working vfork... " >&6; }
13053 if ${ac_cv_func_vfork_works+:} false
; then :
13054 $as_echo_n "(cached) " >&6
13056 if test "$cross_compiling" = yes; then :
13057 ac_cv_func_vfork_works
=cross
13059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13060 /* end confdefs.h. */
13061 /* Thanks to Paul Eggert for this test. */
13062 $ac_includes_default
13063 #include <sys/wait.h>
13064 #ifdef HAVE_VFORK_H
13065 # include <vfork.h>
13067 /* On some sparc systems, changes by the child to local and incoming
13068 argument registers are propagated back to the parent. The compiler
13069 is told about this with #include <vfork.h>, but some compilers
13070 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13071 static variable whose address is put into a register that is
13072 clobbered by the vfork. */
13075 sparc_address_test (int arg)
13077 sparc_address_test (arg) int arg;
13080 static pid_t child;
13098 pid_t parent = getpid ();
13101 sparc_address_test (0);
13106 /* Here is another test for sparc vfork register problems. This
13107 test uses lots of local variables, at least as many local
13108 variables as main has allocated so far including compiler
13109 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13110 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13111 reuse the register of parent for one of the local variables,
13112 since it will think that parent can't possibly be used any more
13113 in this routine. Assigning to the local variable will thus
13114 munge parent in the parent process. */
13116 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13117 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13118 /* Convince the compiler that p..p7 are live; otherwise, it might
13119 use the same hardware register for all 8 local variables. */
13120 if (p != p1 || p != p2 || p != p3 || p != p4
13121 || p != p5 || p != p6 || p != p7)
13124 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13125 from child file descriptors. If the child closes a descriptor
13126 before it execs or exits, this munges the parent's descriptor
13127 as well. Test for this by closing stdout in the child. */
13128 _exit(close(fileno(stdout)) != 0);
13133 while (wait(&status) != child)
13136 /* Was there some problem with vforking? */
13139 /* Did the child fail? (This shouldn't happen.) */
13142 /* Did the vfork/compiler bug occur? */
13143 || parent != getpid()
13145 /* Did the file descriptor bug occur? */
13146 || fstat(fileno(stdout), &st) != 0
13151 if ac_fn_c_try_run
"$LINENO"; then :
13152 ac_cv_func_vfork_works
=yes
13154 ac_cv_func_vfork_works
=no
13156 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13157 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13162 $as_echo "$ac_cv_func_vfork_works" >&6; }
13165 if test "x$ac_cv_func_fork_works" = xcross
; then
13166 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13168 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13171 if test "x$ac_cv_func_vfork_works" = xyes
; then
13173 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13177 $as_echo "#define vfork fork" >>confdefs.h
13180 if test "x$ac_cv_func_fork_works" = xyes
; then
13182 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13186 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair sigaction \
13187 ptrace64 sbrk setns sigaltstack sigprocmask \
13188 setpgid setpgrp getrusage getauxval
13190 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13191 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13192 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13193 cat >>confdefs.h
<<_ACEOF
13194 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13201 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
13203 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
13209 cat >>confdefs.h
<<_ACEOF
13210 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
13214 if test "$cross_compiling" = yes; then :
13215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13216 /* end confdefs.h. */
13217 #include <sys/personality.h>
13222 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
13223 # define ADDR_NO_RANDOMIZE 0x0040000
13225 /* Test the flag could be set and stays set. */
13226 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13227 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13233 if ac_fn_c_try_link
"$LINENO"; then :
13234 have_personality
=true
13236 have_personality
=false
13238 rm -f core conftest.err conftest.
$ac_objext \
13239 conftest
$ac_exeext conftest.
$ac_ext
13241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13242 /* end confdefs.h. */
13243 #include <sys/personality.h>
13248 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
13249 # define ADDR_NO_RANDOMIZE 0x0040000
13251 /* Test the flag could be set and stays set. */
13252 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13253 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13259 if ac_fn_c_try_run
"$LINENO"; then :
13260 have_personality
=true
13262 have_personality
=false
13264 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13265 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13268 if $have_personality
13271 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
13275 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13276 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
13282 cat >>confdefs.h
<<_ACEOF
13283 #define HAVE_DECL_STRSTR $ac_have_decl
13287 # ----------------------- #
13288 # Checks for structures. #
13289 # ----------------------- #
13291 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13292 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
13294 cat >>confdefs.h
<<_ACEOF
13295 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13300 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
13301 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
13303 cat >>confdefs.h
<<_ACEOF
13304 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
13312 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
13313 if ${ac_cv_search_kinfo_getfile+:} false
; then :
13314 $as_echo_n "(cached) " >&6
13316 ac_func_search_save_LIBS
=$LIBS
13317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13318 /* end confdefs.h. */
13320 /* Override any GCC internal prototype to avoid an error.
13321 Use char because int might match the return type of a GCC
13322 builtin and then its argument prototype would still apply. */
13326 char kinfo_getfile ();
13330 return kinfo_getfile ();
13335 for ac_lib
in '' util util-freebsd
; do
13336 if test -z "$ac_lib"; then
13337 ac_res
="none required"
13340 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13342 if ac_fn_c_try_link
"$LINENO"; then :
13343 ac_cv_search_kinfo_getfile
=$ac_res
13345 rm -f core conftest.err conftest.
$ac_objext \
13347 if ${ac_cv_search_kinfo_getfile+:} false
; then :
13351 if ${ac_cv_search_kinfo_getfile+:} false
; then :
13354 ac_cv_search_kinfo_getfile
=no
13356 rm conftest.
$ac_ext
13357 LIBS
=$ac_func_search_save_LIBS
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
13360 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
13361 ac_res
=$ac_cv_search_kinfo_getfile
13362 if test "$ac_res" != no
; then :
13363 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13365 $as_echo "#define HAVE_KINFO_GETFILE 1" >>confdefs.h
13370 # Check for std::thread. This does not work on some platforms, like
13373 ac_cpp
='$CXXCPP $CPPFLAGS'
13374 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13375 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13376 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
13383 ac_cpp
='$CPP $CPPFLAGS'
13384 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13385 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13386 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13390 # We used to check for pthread.h first, but this fails if pthread.h
13391 # requires special compiler flags (e.g. on Tru64 or Sequent).
13392 # It gets checked for in the link test anyway.
13394 # First of all, check if the user has set any of the PTHREAD_LIBS,
13395 # etcetera environment variables, and if threads linking works using
13397 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
13398 ax_pthread_save_CC
="$CC"
13399 ax_pthread_save_CFLAGS
="$CFLAGS"
13400 ax_pthread_save_LIBS
="$LIBS"
13401 if test "x$PTHREAD_CC" != "x"; then :
13404 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
13405 LIBS
="$PTHREAD_LIBS $LIBS"
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
13407 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
13408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13409 /* end confdefs.h. */
13411 /* Override any GCC internal prototype to avoid an error.
13412 Use char because int might match the return type of a GCC
13413 builtin and then its argument prototype would still apply. */
13417 char pthread_join ();
13421 return pthread_join ();
13426 if ac_fn_c_try_link
"$LINENO"; then :
13429 rm -f core conftest.err conftest.
$ac_objext \
13430 conftest
$ac_exeext conftest.
$ac_ext
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
13432 $as_echo "$ax_pthread_ok" >&6; }
13433 if test "x$ax_pthread_ok" = "xno"; then
13437 CC
="$ax_pthread_save_CC"
13438 CFLAGS
="$ax_pthread_save_CFLAGS"
13439 LIBS
="$ax_pthread_save_LIBS"
13442 # We must check for the threads library under a number of different
13443 # names; the ordering is very important because some systems
13444 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
13445 # libraries is broken (non-POSIX).
13447 # Create a list of thread flags to try. Items starting with a "-" are
13448 # C compiler flags, and other items are library names, except for "none"
13449 # which indicates that we try without any flags at all, and "pthread-config"
13450 # which is a program returning the flags for the Pth emulation library.
13452 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
13454 # The ordering *is* (sometimes) important. Some notes on the
13455 # individual items follow:
13457 # pthreads: AIX (must check this before -lpthread)
13458 # none: in case threads are in libc; should be tried before -Kthread and
13459 # other compiler flags to prevent continual compiler warnings
13460 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
13461 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
13462 # (Note: HP C rejects this with "bad form for `-t' option")
13463 # -pthreads: Solaris/gcc (Note: HP C also rejects)
13464 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
13465 # doesn't hurt to check since this sometimes defines pthreads and
13466 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
13467 # is present but should not be used directly; and before -mthreads,
13468 # because the compiler interprets this as "-mt" + "-hreads")
13469 # -mthreads: Mingw32/gcc, Lynx/gcc
13470 # pthread: Linux, etcetera
13471 # --thread-safe: KAI C++
13472 # pthread-config: use pthread-config program (for GNU Pth library)
13478 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
13479 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
13481 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
13486 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
13487 # multi-threading and also sets -lpthread."
13489 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
13494 # IBM z/OS requires a feature-test macro to be defined in order to
13495 # enable POSIX threads at all, so give the user a hint if this is
13496 # not set. (We don't define these ourselves, as they can affect
13497 # other portions of the system API in unpredictable ways.)
13499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13500 /* end confdefs.h. */
13502 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
13503 AX_PTHREAD_ZOS_MISSING
13507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13508 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
13510 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
13518 # On Solaris (at least, for some versions), libc contains stubbed
13519 # (non-functional) versions of the pthreads routines, so link-based
13520 # tests will erroneously succeed. (N.B.: The stubs are missing
13521 # pthread_cleanup_push, or rather a function called by this macro,
13522 # so we could check for that, but who knows whether they'll stub
13523 # that too in a future libc.) So we'll check first for the
13524 # standard Solaris way of linking pthreads (-mt -lpthread).
13526 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
13530 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
13532 if test "x$GCC" = "xyes"; then :
13533 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
13536 # The presence of a feature test macro requesting re-entrant function
13537 # definitions is, on some systems, a strong hint that pthreads support is
13538 # correctly enabled
13541 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
13542 ax_pthread_check_macro
="_REENTRANT"
13546 ax_pthread_check_macro
="_THREAD_SAFE"
13550 ax_pthread_check_macro
="--"
13553 if test "x$ax_pthread_check_macro" = "x--"; then :
13554 ax_pthread_check_cond
=0
13556 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
13559 # Are we compiling with Clang?
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
13562 $as_echo_n "checking whether $CC is Clang... " >&6; }
13563 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
13564 $as_echo_n "(cached) " >&6
13566 ax_cv_PTHREAD_CLANG
=no
13567 # Note that Autoconf sets GCC=yes for Clang as well as GCC
13568 if test "x$GCC" = "xyes"; then
13569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13570 /* end confdefs.h. */
13571 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
13572 # if defined(__clang__) && defined(__llvm__)
13573 AX_PTHREAD_CC_IS_CLANG
13577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13578 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
13579 ax_cv_PTHREAD_CLANG
=yes
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
13587 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
13588 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
13590 ax_pthread_clang_warning
=no
13592 # Clang needs special handling, because older versions handle the -pthread
13593 # option in a rather... idiosyncratic way
13595 if test "x$ax_pthread_clang" = "xyes"; then
13597 # Clang takes -pthread; it has never supported any other flag
13599 # (Note 1: This will need to be revisited if a system that Clang
13600 # supports has POSIX threads in a separate library. This tends not
13601 # to be the way of modern systems, but it's conceivable.)
13603 # (Note 2: On some systems, notably Darwin, -pthread is not needed
13604 # to get POSIX threads support; the API is always present and
13605 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
13606 # -pthread does define _REENTRANT, and while the Darwin headers
13607 # ignore this macro, third-party headers might not.)
13609 PTHREAD_CFLAGS
="-pthread"
13614 # However, older versions of Clang make a point of warning the user
13615 # that, in an invocation where only linking and no compilation is
13616 # taking place, the -pthread option has no effect ("argument unused
13617 # during compilation"). They expect -pthread to be passed in only
13618 # when source code is being compiled.
13620 # Problem is, this is at odds with the way Automake and most other
13621 # C build frameworks function, which is that the same flags used in
13622 # compilation (CFLAGS) are also used in linking. Many systems
13623 # supported by AX_PTHREAD require exactly this for POSIX threads
13624 # support, and in fact it is often not straightforward to specify a
13625 # flag that is used only in the compilation phase and not in
13626 # linking. Such a scenario is extremely rare in practice.
13628 # Even though use of the -pthread flag in linking would only print
13629 # a warning, this can be a nuisance for well-run software projects
13630 # that build with -Werror. So if the active version of Clang has
13631 # this misfeature, we search for an option to squash it.
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
13634 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
13635 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
13636 $as_echo_n "(cached) " >&6
13638 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
13639 # Create an alternate version of $ac_link that compiles and
13640 # links in two steps (.c -> .o, .o -> exe) instead of one
13641 # (.c -> exe), because the warning occurs only in the second
13643 ax_pthread_save_ac_link
="$ac_link"
13644 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
13645 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
13646 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
13647 ax_pthread_save_CFLAGS
="$CFLAGS"
13648 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
13649 if test "x$ax_pthread_try" = "xunknown"; then :
13652 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
13653 ac_link
="$ax_pthread_save_ac_link"
13654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13655 /* end confdefs.h. */
13656 int main(void){return 0;}
13658 if ac_fn_c_try_link
"$LINENO"; then :
13659 ac_link
="$ax_pthread_2step_ac_link"
13660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13661 /* end confdefs.h. */
13662 int main(void){return 0;}
13664 if ac_fn_c_try_link
"$LINENO"; then :
13667 rm -f core conftest.err conftest.
$ac_objext \
13668 conftest
$ac_exeext conftest.
$ac_ext
13671 rm -f core conftest.err conftest.
$ac_objext \
13672 conftest
$ac_exeext conftest.
$ac_ext
13674 ac_link
="$ax_pthread_save_ac_link"
13675 CFLAGS
="$ax_pthread_save_CFLAGS"
13676 if test "x$ax_pthread_try" = "x"; then :
13679 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
13683 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
13685 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
13687 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
13690 fi # $ax_pthread_clang = yes
13692 if test "x$ax_pthread_ok" = "xno"; then
13693 for ax_pthread_try_flag
in $ax_pthread_flags; do
13695 case $ax_pthread_try_flag in
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
13698 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
13703 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
13704 PTHREAD_CFLAGS
="-mt"
13705 PTHREAD_LIBS
="-lpthread"
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
13710 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
13711 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
13715 # Extract the first word of "pthread-config", so it can be a program name with args.
13716 set dummy pthread-config
; ac_word
=$2
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13718 $as_echo_n "checking for $ac_word... " >&6; }
13719 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
13720 $as_echo_n "(cached) " >&6
13722 if test -n "$ax_pthread_config"; then
13723 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
13725 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13726 for as_dir
in $PATH
13729 test -z "$as_dir" && as_dir
=.
13730 for ac_exec_ext
in '' $ac_executable_extensions; do
13731 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13732 ac_cv_prog_ax_pthread_config
="yes"
13733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13740 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
13743 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
13744 if test -n "$ax_pthread_config"; then
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
13746 $as_echo "$ax_pthread_config" >&6; }
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13749 $as_echo "no" >&6; }
13753 if test "x$ax_pthread_config" = "xno"; then :
13756 PTHREAD_CFLAGS
="`pthread-config --cflags`"
13757 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
13762 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
13763 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
13767 ax_pthread_save_CFLAGS
="$CFLAGS"
13768 ax_pthread_save_LIBS
="$LIBS"
13769 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
13770 LIBS
="$PTHREAD_LIBS $LIBS"
13772 # Check for various functions. We must include pthread.h,
13773 # since some functions may be macros. (On the Sequent, we
13774 # need a special flag -Kthread to make this header compile.)
13775 # We check for pthread_join because it is in -lpthread on IRIX
13776 # while pthread_create is in libc. We check for pthread_attr_init
13777 # due to DEC craziness with -lpthreads. We check for
13778 # pthread_cleanup_push because it is one of the few pthread
13779 # functions on Solaris that doesn't have a non-functional libc stub.
13780 # We try pthread_create on general principles.
13782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13783 /* end confdefs.h. */
13784 #include <pthread.h>
13785 # if $ax_pthread_check_cond
13786 # error "$ax_pthread_check_macro must be defined"
13788 static void routine(void *a) { a = 0; }
13789 static void *start_routine(void *a) { return a; }
13793 pthread_t th; pthread_attr_t attr;
13794 pthread_create(&th, 0, start_routine, 0);
13795 pthread_join(th, 0);
13796 pthread_attr_init(&attr);
13797 pthread_cleanup_push(routine, 0);
13798 pthread_cleanup_pop(0) /* ; */
13803 if ac_fn_c_try_link
"$LINENO"; then :
13806 rm -f core conftest.err conftest.
$ac_objext \
13807 conftest
$ac_exeext conftest.
$ac_ext
13809 CFLAGS
="$ax_pthread_save_CFLAGS"
13810 LIBS
="$ax_pthread_save_LIBS"
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
13813 $as_echo "$ax_pthread_ok" >&6; }
13814 if test "x$ax_pthread_ok" = "xyes"; then :
13823 # Various other checks:
13824 if test "x$ax_pthread_ok" = "xyes"; then
13825 ax_pthread_save_CFLAGS
="$CFLAGS"
13826 ax_pthread_save_LIBS
="$LIBS"
13827 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
13828 LIBS
="$PTHREAD_LIBS $LIBS"
13830 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
13832 $as_echo_n "checking for joinable pthread attribute... " >&6; }
13833 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
13834 $as_echo_n "(cached) " >&6
13836 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
13837 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
13838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13839 /* end confdefs.h. */
13840 #include <pthread.h>
13844 int attr = $ax_pthread_attr; return attr /* ; */
13849 if ac_fn_c_try_link
"$LINENO"; then :
13850 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
13852 rm -f core conftest.err conftest.
$ac_objext \
13853 conftest
$ac_exeext conftest.
$ac_ext
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
13858 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
13859 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
13860 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
13861 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
13863 cat >>confdefs.h
<<_ACEOF
13864 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
13867 ax_pthread_joinable_attr_defined
=yes
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
13872 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
13873 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
13874 $as_echo_n "(cached) " >&6
13876 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
13879 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
13885 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
13886 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
13887 test "x$ax_pthread_special_flags_added" != "xyes"; then :
13888 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
13889 ax_pthread_special_flags_added
=yes
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
13893 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
13894 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
13895 $as_echo_n "(cached) " >&6
13897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13898 /* end confdefs.h. */
13899 #include <pthread.h>
13903 int i = PTHREAD_PRIO_INHERIT;
13908 if ac_fn_c_try_link
"$LINENO"; then :
13909 ax_cv_PTHREAD_PRIO_INHERIT
=yes
13911 ax_cv_PTHREAD_PRIO_INHERIT
=no
13913 rm -f core conftest.err conftest.
$ac_objext \
13914 conftest
$ac_exeext conftest.
$ac_ext
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
13918 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
13919 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
13920 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
13922 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
13924 ax_pthread_prio_inherit_defined
=yes
13928 CFLAGS
="$ax_pthread_save_CFLAGS"
13929 LIBS
="$ax_pthread_save_LIBS"
13931 # More AIX lossage: compile with *_r variant
13932 if test "x$GCC" != "xyes"; then
13936 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
13937 #handle absolute path differently from PATH based program lookup
13940 if as_fn_executable_p
${CC}_r
; then :
13941 PTHREAD_CC
="${CC}_r"
13944 for ac_prog
in ${CC}_r
13946 # Extract the first word of "$ac_prog", so it can be a program name with args.
13947 set dummy
$ac_prog; ac_word
=$2
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13949 $as_echo_n "checking for $ac_word... " >&6; }
13950 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
13951 $as_echo_n "(cached) " >&6
13953 if test -n "$PTHREAD_CC"; then
13954 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
13956 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13957 for as_dir
in $PATH
13960 test -z "$as_dir" && as_dir
=.
13961 for ac_exec_ext
in '' $ac_executable_extensions; do
13962 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13963 ac_cv_prog_PTHREAD_CC
="$ac_prog"
13964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13973 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
13974 if test -n "$PTHREAD_CC"; then
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
13976 $as_echo "$PTHREAD_CC" >&6; }
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13979 $as_echo "no" >&6; }
13983 test -n "$PTHREAD_CC" && break
13985 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
13996 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
14002 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14003 if test "x$ax_pthread_ok" = "xyes"; then
14011 ac_cpp
='$CXXCPP $CPPFLAGS'
14012 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14013 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14014 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
14017 if test "$threads" = "yes"; then
14019 LIBS
="$PTHREAD_LIBS $LIBS"
14020 save_CXXFLAGS
="$CXXFLAGS"
14021 CXXFLAGS
="$PTHREAD_CFLAGS $save_CXXFLAGS"
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
14023 $as_echo_n "checking for std::thread... " >&6; }
14024 if ${gdb_cv_cxx_std_thread+:} false
; then :
14025 $as_echo_n "(cached) " >&6
14027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14028 /* end confdefs.h. */
14030 void callback() { }
14034 std::thread t(callback);
14039 if ac_fn_cxx_try_compile
"$LINENO"; then :
14040 gdb_cv_cxx_std_thread
=yes
14042 gdb_cv_cxx_std_thread
=no
14044 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
14047 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
14049 # This check must be here, while LIBS includes any necessary
14050 # threading library.
14051 for ac_func
in pthread_sigmask pthread_setname_np
14053 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14054 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14055 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14056 cat >>confdefs.h
<<_ACEOF
14057 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14065 CXXFLAGS
="$save_CXXFLAGS"
14067 if test "$gdb_cv_cxx_std_thread" = "yes"; then
14069 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
14073 ac_cpp
='$CPP $CPPFLAGS'
14074 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14075 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14076 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
14080 $as_echo_n "checking for sigsetjmp... " >&6; }
14081 if ${gdb_cv_func_sigsetjmp+:} false
; then :
14082 $as_echo_n "(cached) " >&6
14084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14085 /* end confdefs.h. */
14087 #include <setjmp.h>
14092 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
14097 if ac_fn_c_try_compile
"$LINENO"; then :
14098 gdb_cv_func_sigsetjmp
=yes
14100 gdb_cv_func_sigsetjmp
=no
14102 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
14105 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
14106 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
14108 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
14113 # Check whether --with-intel_pt was given.
14114 if test "${with_intel_pt+set}" = set; then :
14115 withval
=$with_intel_pt;
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
14121 $as_echo_n "checking whether to use intel pt... " >&6; }
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
14123 $as_echo "$with_intel_pt" >&6; }
14125 if test "${with_intel_pt}" = no
; then
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
14127 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
14130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14131 /* end confdefs.h. */
14133 #include <linux/perf_event.h>
14134 #ifndef PERF_ATTR_SIZE_VER5
14139 if ac_fn_c_try_cpp
"$LINENO"; then :
14144 rm -f conftest.err conftest.i conftest.
$ac_ext
14145 if test "$perf_event" != yes; then
14146 if test "$with_intel_pt" = yes; then
14147 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
14150 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
14164 acl_save_prefix
="$prefix"
14165 prefix
="$acl_final_prefix"
14166 acl_save_exec_prefix
="$exec_prefix"
14167 exec_prefix
="$acl_final_exec_prefix"
14169 eval additional_includedir
=\"$includedir\"
14170 eval additional_libdir
=\"$libdir\"
14172 exec_prefix
="$acl_save_exec_prefix"
14173 prefix
="$acl_save_prefix"
14176 # Check whether --with-libipt-prefix was given.
14177 if test "${with_libipt_prefix+set}" = set; then :
14178 withval
=$with_libipt_prefix;
14179 if test "X$withval" = "Xno"; then
14182 if test "X$withval" = "X"; then
14184 acl_save_prefix
="$prefix"
14185 prefix
="$acl_final_prefix"
14186 acl_save_exec_prefix
="$exec_prefix"
14187 exec_prefix
="$acl_final_exec_prefix"
14189 eval additional_includedir
=\"$includedir\"
14190 eval additional_libdir
=\"$libdir\"
14192 exec_prefix
="$acl_save_exec_prefix"
14193 prefix
="$acl_save_prefix"
14196 additional_includedir
="$withval/include"
14197 additional_libdir
="$withval/lib"
14204 # Check whether --with-libipt-type was given.
14205 if test "${with_libipt_type+set}" = set; then :
14206 withval
=$with_libipt_type; with_libipt_type
=$withval
14208 with_libipt_type
=auto
14211 lib_type
=`eval echo \$with_libipt_type`
14218 names_already_handled
=
14219 names_next_round
='ipt '
14220 while test -n "$names_next_round"; do
14221 names_this_round
="$names_next_round"
14223 for name
in $names_this_round; do
14225 for n
in $names_already_handled; do
14226 if test "$n" = "$name"; then
14227 already_handled
=yes
14231 if test -z "$already_handled"; then
14232 names_already_handled
="$names_already_handled $name"
14233 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14234 eval value
=\"\
$HAVE_LIB$uppername\"
14235 if test -n "$value"; then
14236 if test "$value" = yes; then
14237 eval value
=\"\
$LIB$uppername\"
14238 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
14239 eval value
=\"\
$LTLIB$uppername\"
14240 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
14249 if test $use_additional = yes; then
14250 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
14251 found_dir
="$additional_libdir"
14252 found_so
="$additional_libdir/lib$name.$shlibext"
14253 if test -f "$additional_libdir/lib$name.la"; then
14254 found_la
="$additional_libdir/lib$name.la"
14256 elif test x
$lib_type != xshared
; then
14257 if test -f "$additional_libdir/lib$name.$libext"; then
14258 found_dir
="$additional_libdir"
14259 found_a
="$additional_libdir/lib$name.$libext"
14260 if test -f "$additional_libdir/lib$name.la"; then
14261 found_la
="$additional_libdir/lib$name.la"
14266 if test "X$found_dir" = "X"; then
14267 for x
in $LDFLAGS $LTLIBIPT; do
14269 acl_save_prefix
="$prefix"
14270 prefix
="$acl_final_prefix"
14271 acl_save_exec_prefix
="$exec_prefix"
14272 exec_prefix
="$acl_final_exec_prefix"
14274 exec_prefix
="$acl_save_exec_prefix"
14275 prefix
="$acl_save_prefix"
14279 dir
=`echo "X$x" | sed -e 's/^X-L//'`
14280 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
14282 found_so
="$dir/lib$name.$shlibext"
14283 if test -f "$dir/lib$name.la"; then
14284 found_la
="$dir/lib$name.la"
14286 elif test x
$lib_type != xshared
; then
14287 if test -f "$dir/lib$name.$libext"; then
14289 found_a
="$dir/lib$name.$libext"
14290 if test -f "$dir/lib$name.la"; then
14291 found_la
="$dir/lib$name.la"
14297 if test "X$found_dir" != "X"; then
14302 if test "X$found_dir" != "X"; then
14303 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
14304 if test "X$found_so" != "X"; then
14305 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
14306 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14309 for x
in $ltrpathdirs; do
14310 if test "X$x" = "X$found_dir"; then
14315 if test -z "$haveit"; then
14316 ltrpathdirs
="$ltrpathdirs $found_dir"
14318 if test "$hardcode_direct" = yes; then
14319 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14321 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
14322 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14324 for x
in $rpathdirs; do
14325 if test "X$x" = "X$found_dir"; then
14330 if test -z "$haveit"; then
14331 rpathdirs
="$rpathdirs $found_dir"
14335 for x
in $LDFLAGS $LIBIPT; do
14337 acl_save_prefix
="$prefix"
14338 prefix
="$acl_final_prefix"
14339 acl_save_exec_prefix
="$exec_prefix"
14340 exec_prefix
="$acl_final_exec_prefix"
14342 exec_prefix
="$acl_save_exec_prefix"
14343 prefix
="$acl_save_prefix"
14345 if test "X$x" = "X-L$found_dir"; then
14350 if test -z "$haveit"; then
14351 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
14353 if test "$hardcode_minus_L" != no
; then
14354 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14356 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
14362 if test "X$found_a" != "X"; then
14363 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
14365 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
14368 additional_includedir
=
14369 case "$found_dir" in
14371 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14372 additional_includedir
="$basedir/include"
14375 if test "X$additional_includedir" != "X"; then
14376 if test "X$additional_includedir" != "X/usr/include"; then
14378 if test "X$additional_includedir" = "X/usr/local/include"; then
14379 if test -n "$GCC"; then
14381 linux
*) haveit
=yes;;
14385 if test -z "$haveit"; then
14386 for x
in $CPPFLAGS $INCIPT; do
14388 acl_save_prefix
="$prefix"
14389 prefix
="$acl_final_prefix"
14390 acl_save_exec_prefix
="$exec_prefix"
14391 exec_prefix
="$acl_final_exec_prefix"
14393 exec_prefix
="$acl_save_exec_prefix"
14394 prefix
="$acl_save_prefix"
14396 if test "X$x" = "X-I$additional_includedir"; then
14401 if test -z "$haveit"; then
14402 if test -d "$additional_includedir"; then
14403 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
14409 if test -n "$found_la"; then
14410 save_libdir
="$libdir"
14411 case "$found_la" in
14412 */* |
*\\*) .
"$found_la" ;;
14413 *) .
"./$found_la" ;;
14415 libdir
="$save_libdir"
14416 for dep
in $dependency_libs; do
14419 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
14420 if test "X$additional_libdir" != "X/usr/lib"; then
14422 if test "X$additional_libdir" = "X/usr/local/lib"; then
14423 if test -n "$GCC"; then
14425 linux
*) haveit
=yes;;
14429 if test -z "$haveit"; then
14431 for x
in $LDFLAGS $LIBIPT; do
14433 acl_save_prefix
="$prefix"
14434 prefix
="$acl_final_prefix"
14435 acl_save_exec_prefix
="$exec_prefix"
14436 exec_prefix
="$acl_final_exec_prefix"
14438 exec_prefix
="$acl_save_exec_prefix"
14439 prefix
="$acl_save_prefix"
14441 if test "X$x" = "X-L$additional_libdir"; then
14446 if test -z "$haveit"; then
14447 if test -d "$additional_libdir"; then
14448 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
14452 for x
in $LDFLAGS $LTLIBIPT; do
14454 acl_save_prefix
="$prefix"
14455 prefix
="$acl_final_prefix"
14456 acl_save_exec_prefix
="$exec_prefix"
14457 exec_prefix
="$acl_final_exec_prefix"
14459 exec_prefix
="$acl_save_exec_prefix"
14460 prefix
="$acl_save_prefix"
14462 if test "X$x" = "X-L$additional_libdir"; then
14467 if test -z "$haveit"; then
14468 if test -d "$additional_libdir"; then
14469 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
14476 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
14477 if test "$enable_rpath" != no
; then
14479 for x
in $rpathdirs; do
14480 if test "X$x" = "X$dir"; then
14485 if test -z "$haveit"; then
14486 rpathdirs
="$rpathdirs $dir"
14489 for x
in $ltrpathdirs; do
14490 if test "X$x" = "X$dir"; then
14495 if test -z "$haveit"; then
14496 ltrpathdirs
="$ltrpathdirs $dir"
14501 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14504 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14507 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
14508 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
14514 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
14515 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
14516 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
14518 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
14519 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
14526 if test "X$rpathdirs" != "X"; then
14527 if test -n "$hardcode_libdir_separator"; then
14529 for found_dir
in $rpathdirs; do
14530 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14532 acl_save_libdir
="$libdir"
14534 eval flag
=\"$hardcode_libdir_flag_spec\"
14535 libdir
="$acl_save_libdir"
14536 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
14538 for found_dir
in $rpathdirs; do
14539 acl_save_libdir
="$libdir"
14540 libdir
="$found_dir"
14541 eval flag
=\"$hardcode_libdir_flag_spec\"
14542 libdir
="$acl_save_libdir"
14543 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
14547 if test "X$ltrpathdirs" != "X"; then
14548 for found_dir
in $ltrpathdirs; do
14549 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
14554 ac_save_CPPFLAGS
="$CPPFLAGS"
14556 for element
in $INCIPT; do
14558 for x
in $CPPFLAGS; do
14560 acl_save_prefix
="$prefix"
14561 prefix
="$acl_final_prefix"
14562 acl_save_exec_prefix
="$exec_prefix"
14563 exec_prefix
="$acl_final_exec_prefix"
14565 exec_prefix
="$acl_save_exec_prefix"
14566 prefix
="$acl_save_prefix"
14568 if test "X$x" = "X$element"; then
14573 if test -z "$haveit"; then
14574 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
14580 $as_echo_n "checking for libipt... " >&6; }
14581 if ${ac_cv_libipt+:} false
; then :
14582 $as_echo_n "(cached) " >&6
14585 ac_save_LIBS
="$LIBS"
14586 LIBS
="$LIBS $LIBIPT"
14587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14588 /* end confdefs.h. */
14589 #include "intel-pt.h"
14593 pt_insn_alloc_decoder (0);
14598 if ac_fn_c_try_link
"$LINENO"; then :
14603 rm -f core conftest.err conftest.
$ac_objext \
14604 conftest
$ac_exeext conftest.
$ac_ext
14605 LIBS
="$ac_save_LIBS"
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
14609 $as_echo "$ac_cv_libipt" >&6; }
14610 if test "$ac_cv_libipt" = yes; then
14613 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
14616 $as_echo_n "checking how to link with libipt... " >&6; }
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
14618 $as_echo "$LIBIPT" >&6; }
14621 CPPFLAGS
="$ac_save_CPPFLAGS"
14631 if test "$HAVE_LIBIPT" != yes; then
14632 if test "$with_intel_pt" = yes; then
14633 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
14636 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
14640 LIBS
="$LIBS $LIBIPT"
14641 for ac_func
in pt_insn_event
14643 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
14644 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
14645 cat >>confdefs.h
<<_ACEOF
14646 #define HAVE_PT_INSN_EVENT 1
14652 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
14654 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
14656 cat >>confdefs.h
<<_ACEOF
14657 #define HAVE_STRUCT_PT_INSN_ENABLED 1
14662 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
14664 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
14666 cat >>confdefs.h
<<_ACEOF
14667 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
14677 if test "$ac_cv_header_sys_procfs_h" = yes; then
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
14679 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
14680 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
14681 $as_echo_n "(cached) " >&6
14683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14684 /* end confdefs.h. */
14687 /* Needed for new procfs interface on sparc-solaris. */
14688 #define _STRUCTURED_PROC 1
14689 #include <sys/procfs.h>
14698 if ac_fn_c_try_compile
"$LINENO"; then :
14699 bfd_cv_have_sys_procfs_type_gregset_t
=yes
14701 bfd_cv_have_sys_procfs_type_gregset_t
=no
14704 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14707 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
14709 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
14713 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
14716 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
14717 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
14718 $as_echo_n "(cached) " >&6
14720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14721 /* end confdefs.h. */
14724 /* Needed for new procfs interface on sparc-solaris. */
14725 #define _STRUCTURED_PROC 1
14726 #include <sys/procfs.h>
14735 if ac_fn_c_try_compile
"$LINENO"; then :
14736 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
14738 bfd_cv_have_sys_procfs_type_fpregset_t
=no
14741 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14744 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
14746 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
14750 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
14753 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
14754 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
14755 $as_echo_n "(cached) " >&6
14757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14758 /* end confdefs.h. */
14761 /* Needed for new procfs interface on sparc-solaris. */
14762 #define _STRUCTURED_PROC 1
14763 #include <sys/procfs.h>
14772 if ac_fn_c_try_compile
"$LINENO"; then :
14773 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
14775 bfd_cv_have_sys_procfs_type_prgregset_t
=no
14778 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14781 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
14783 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
14787 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
14790 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
14791 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
14792 $as_echo_n "(cached) " >&6
14794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14795 /* end confdefs.h. */
14798 /* Needed for new procfs interface on sparc-solaris. */
14799 #define _STRUCTURED_PROC 1
14800 #include <sys/procfs.h>
14809 if ac_fn_c_try_compile
"$LINENO"; then :
14810 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
14812 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
14815 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14818 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
14820 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
14824 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
14827 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
14828 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
14829 $as_echo_n "(cached) " >&6
14831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14832 /* end confdefs.h. */
14835 /* Needed for new procfs interface on sparc-solaris. */
14836 #define _STRUCTURED_PROC 1
14837 #include <sys/procfs.h>
14846 if ac_fn_c_try_compile
"$LINENO"; then :
14847 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
14849 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
14852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14855 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
14857 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
14861 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
14864 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
14865 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
14866 $as_echo_n "(cached) " >&6
14868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14869 /* end confdefs.h. */
14872 /* Needed for new procfs interface on sparc-solaris. */
14873 #define _STRUCTURED_PROC 1
14874 #include <sys/procfs.h>
14883 if ac_fn_c_try_compile
"$LINENO"; then :
14884 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
14886 bfd_cv_have_sys_procfs_type_lwpid_t
=no
14889 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14892 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
14894 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
14898 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
14901 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
14902 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
14903 $as_echo_n "(cached) " >&6
14905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14906 /* end confdefs.h. */
14909 /* Needed for new procfs interface on sparc-solaris. */
14910 #define _STRUCTURED_PROC 1
14911 #include <sys/procfs.h>
14920 if ac_fn_c_try_compile
"$LINENO"; then :
14921 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
14923 bfd_cv_have_sys_procfs_type_psaddr_t
=no
14926 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14929 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
14931 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
14935 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
14938 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
14939 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
14940 $as_echo_n "(cached) " >&6
14942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14943 /* end confdefs.h. */
14946 /* Needed for new procfs interface on sparc-solaris. */
14947 #define _STRUCTURED_PROC 1
14948 #include <sys/procfs.h>
14952 elf_fpregset_t avar
14957 if ac_fn_c_try_compile
"$LINENO"; then :
14958 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
14960 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
14963 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14966 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
14968 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
14972 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
14977 # Check the return and argument types of ptrace.
14980 for ac_header
in sys
/ptrace.h ptrace.h
14982 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14983 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14984 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
14985 cat >>confdefs.h
<<_ACEOF
14986 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14994 gdb_ptrace_headers
='
14995 #include <sys/types.h>
14996 #if HAVE_SYS_PTRACE_H
14997 # include <sys/ptrace.h>
15000 # include <unistd.h>
15003 # There is no point in checking if we don't have a prototype.
15004 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
15006 if test "x$ac_cv_have_decl_ptrace" = xyes
; then :
15012 cat >>confdefs.h
<<_ACEOF
15013 #define HAVE_DECL_PTRACE $ac_have_decl
15015 if test $ac_have_decl = 1; then :
15019 : ${gdb_cv_func_ptrace_ret='int'}
15020 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
15024 # Check return type. Varargs (used on GNU/Linux) conflict with the
15025 # empty argument list, so check for that explicitly.
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
15027 $as_echo_n "checking return type of ptrace... " >&6; }
15028 if ${gdb_cv_func_ptrace_ret+:} false
; then :
15029 $as_echo_n "(cached) " >&6
15031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15032 /* end confdefs.h. */
15033 $gdb_ptrace_headers
15037 extern long ptrace (enum __ptrace_request, ...);
15042 if ac_fn_c_try_compile
"$LINENO"; then :
15043 gdb_cv_func_ptrace_ret
='long'
15045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15046 /* end confdefs.h. */
15047 $gdb_ptrace_headers
15051 extern int ptrace ();
15056 if ac_fn_c_try_compile
"$LINENO"; then :
15057 gdb_cv_func_ptrace_ret
='int'
15059 gdb_cv_func_ptrace_ret
='long'
15061 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15063 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
15066 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
15068 cat >>confdefs.h
<<_ACEOF
15069 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
15072 # Check argument types.
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
15074 $as_echo_n "checking types of arguments for ptrace... " >&6; }
15075 if ${gdb_cv_func_ptrace_args+:} false
; then :
15076 $as_echo_n "(cached) " >&6
15079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15080 /* end confdefs.h. */
15081 $gdb_ptrace_headers
15085 extern long ptrace (enum __ptrace_request, ...);
15090 if ac_fn_c_try_compile
"$LINENO"; then :
15091 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
15094 for gdb_arg1
in 'int' 'long'; do
15095 for gdb_arg2
in 'pid_t' 'int' 'long'; do
15096 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
15097 for gdb_arg4
in 'int' 'long' 'void *'; do
15098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15099 /* end confdefs.h. */
15100 $gdb_ptrace_headers
15105 extern $gdb_cv_func_ptrace_ret
15106 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
15112 if ac_fn_c_try_compile
"$LINENO"; then :
15113 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
15116 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15117 for gdb_arg5
in 'int *' 'int' 'long'; do
15118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15119 /* end confdefs.h. */
15120 $gdb_ptrace_headers
15125 extern $gdb_cv_func_ptrace_ret
15126 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
15132 if ac_fn_c_try_compile
"$LINENO"; then :
15134 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
15137 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15143 # Provide a safe default value.
15144 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
15147 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
15150 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
15151 ac_save_IFS
=$IFS; IFS
=','
15152 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
15156 cat >>confdefs.h
<<_ACEOF
15157 #define PTRACE_TYPE_ARG1 $1
15161 cat >>confdefs.h
<<_ACEOF
15162 #define PTRACE_TYPE_ARG3 $3
15166 cat >>confdefs.h
<<_ACEOF
15167 #define PTRACE_TYPE_ARG4 $4
15170 if test -n "$5"; then
15172 cat >>confdefs.h
<<_ACEOF
15173 #define PTRACE_TYPE_ARG5 $5
15179 if test "$cross_compiling" = no
; then
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
15181 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
15182 if ${ac_cv_func_setpgrp_void+:} false
; then :
15183 $as_echo_n "(cached) " >&6
15185 if test "$cross_compiling" = yes; then :
15186 as_fn_error $?
"cannot check setpgrp when cross compiling" "$LINENO" 5
15188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15189 /* end confdefs.h. */
15190 $ac_includes_default
15194 /* If this system has a BSD-style setpgrp which takes arguments,
15195 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
15196 exit successfully. */
15197 return setpgrp (1,1) != -1;
15202 if ac_fn_c_try_run
"$LINENO"; then :
15203 ac_cv_func_setpgrp_void
=no
15205 ac_cv_func_setpgrp_void
=yes
15207 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15208 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
15213 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
15214 if test $ac_cv_func_setpgrp_void = yes; then
15216 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
15222 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
15223 if ${ac_cv_func_setpgrp_void+:} false
; then :
15224 $as_echo_n "(cached) " >&6
15226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15227 /* end confdefs.h. */
15229 #include <unistd.h>
15235 if (setpgrp(1,1) == -1)
15244 if ac_fn_c_try_compile
"$LINENO"; then :
15245 ac_cv_func_setpgrp_void
=no
15247 ac_cv_func_setpgrp_void
=yes
15249 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
15252 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
15253 if test "$ac_cv_func_setpgrp_void" = yes; then
15254 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
15259 # Assume we'll default to using the included libiberty regex.
15260 gdb_use_included_regex
=yes
15262 # However, if the system regex is GNU regex, then default to *not*
15263 # using the included regex.
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
15265 $as_echo_n "checking for GNU regex... " >&6; }
15266 if ${gdb_cv_have_gnu_regex+:} false
; then :
15267 $as_echo_n "(cached) " >&6
15269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15270 /* end confdefs.h. */
15271 #include <gnu-versions.h>
15275 #define REGEX_INTERFACE_VERSION 1
15276 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
15277 # error "Version mismatch"
15283 if ac_fn_c_try_compile
"$LINENO"; then :
15284 gdb_cv_have_gnu_regex
=yes
15286 gdb_cv_have_gnu_regex
=no
15288 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
15291 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
15292 if test "$gdb_cv_have_gnu_regex" = yes; then
15293 gdb_use_included_regex
=no
15297 # Check whether --with-included-regex was given.
15298 if test "${with_included_regex+set}" = set; then :
15299 withval
=$with_included_regex; gdb_with_regex
=$withval
15301 gdb_with_regex
=$gdb_use_included_regex
15304 if test "$gdb_with_regex" = yes; then
15306 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
15310 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
15311 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
15312 #include <sys/proc.h>
15315 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes
; then :
15317 cat >>confdefs.h
<<_ACEOF
15318 #define HAVE_STRUCT_THREAD_TD_PCB 1
15325 # See if <sys/lwp.h> defines `struct lwp`.
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
15327 $as_echo_n "checking for struct lwp... " >&6; }
15328 if ${gdb_cv_struct_lwp+:} false
; then :
15329 $as_echo_n "(cached) " >&6
15331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15332 /* end confdefs.h. */
15333 #include <sys/param.h>
15335 #include <sys/lwp.h>
15344 if ac_fn_c_try_compile
"$LINENO"; then :
15345 gdb_cv_struct_lwp
=yes
15347 gdb_cv_struct_lwp
=no
15349 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
15352 $as_echo "$gdb_cv_struct_lwp" >&6; }
15353 if test "$gdb_cv_struct_lwp" = yes; then
15355 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
15359 # See if <machine/reg.h> degines `struct reg'.
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
15361 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
15362 if ${gdb_cv_struct_reg+:} false
; then :
15363 $as_echo_n "(cached) " >&6
15365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15366 /* end confdefs.h. */
15367 #include <sys/types.h>
15368 #include <machine/reg.h>
15377 if ac_fn_c_try_compile
"$LINENO"; then :
15378 gdb_cv_struct_reg
=yes
15380 gdb_cv_struct_reg
=no
15382 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
15385 $as_echo "$gdb_cv_struct_reg" >&6; }
15386 if test "$gdb_cv_struct_reg" = yes; then
15388 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
15392 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
15393 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
15394 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
15395 #include <machine/reg.h>
15397 if test "x$ac_cv_member_struct_reg_r_fs" = xyes
; then :
15399 cat >>confdefs.h
<<_ACEOF
15400 #define HAVE_STRUCT_REG_R_FS 1
15405 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
15406 #include <machine/reg.h>
15408 if test "x$ac_cv_member_struct_reg_r_gs" = xyes
; then :
15410 cat >>confdefs.h
<<_ACEOF
15411 #define HAVE_STRUCT_REG_R_GS 1
15418 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
15419 # Older amd64 Linux's don't have the fs_base and gs_base members of
15420 # `struct user_regs_struct'.
15421 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>
15422 #include <sys/user.h>
15424 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = xyes
; then :
15426 cat >>confdefs.h
<<_ACEOF
15427 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
15432 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>
15433 #include <sys/user.h>
15435 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = xyes
; then :
15437 cat >>confdefs.h
<<_ACEOF
15438 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
15445 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
15447 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
15448 if ${gdb_cv_have_ptrace_getregs+:} false
; then :
15449 $as_echo_n "(cached) " >&6
15451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15452 /* end confdefs.h. */
15453 #include <sys/ptrace.h>
15462 if ac_fn_c_try_compile
"$LINENO"; then :
15463 gdb_cv_have_ptrace_getregs
=yes
15465 gdb_cv_have_ptrace_getregs
=no
15467 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
15471 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
15472 if test "$gdb_cv_have_ptrace_getregs" = yes; then
15474 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
15478 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
15479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
15480 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
15481 if ${gdb_cv_have_ptrace_getfpxregs+:} false
; then :
15482 $as_echo_n "(cached) " >&6
15484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15485 /* end confdefs.h. */
15486 #include <sys/ptrace.h>
15495 if ac_fn_c_try_compile
"$LINENO"; then :
15496 gdb_cv_have_ptrace_getfpxregs
=yes
15498 gdb_cv_have_ptrace_getfpxregs
=no
15500 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
15504 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
15505 if test "$gdb_cv_have_ptrace_getfpxregs" = yes; then
15507 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
15511 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
15513 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
15514 if ${gdb_cv_have_pt_getdbregs+:} false
; then :
15515 $as_echo_n "(cached) " >&6
15517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15518 /* end confdefs.h. */
15519 #include <sys/types.h>
15520 #include <sys/ptrace.h>
15529 if ac_fn_c_try_compile
"$LINENO"; then :
15530 gdb_cv_have_pt_getdbregs
=yes
15532 gdb_cv_have_pt_getdbregs
=no
15534 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
15538 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
15539 if test "$gdb_cv_have_pt_getdbregs" = yes; then
15541 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
15545 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
15547 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
15548 if ${gdb_cv_have_pt_getxmmregs+:} false
; then :
15549 $as_echo_n "(cached) " >&6
15551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15552 /* end confdefs.h. */
15553 #include <sys/types.h>
15554 #include <sys/ptrace.h>
15563 if ac_fn_c_try_compile
"$LINENO"; then :
15564 gdb_cv_have_pt_getxmmregs
=yes
15566 gdb_cv_have_pt_getxmmregs
=no
15568 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
15572 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
15573 if test "$gdb_cv_have_pt_getxmmregs" = yes; then
15575 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
15579 # See if <sys/ptrace.h> supports LWP names on FreeBSD
15580 # Older FreeBSD versions don't have the pl_tdname member of
15581 # `struct ptrace_lwpinfo'.
15582 ac_fn_c_check_member
"$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
15584 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes
; then :
15586 cat >>confdefs.h
<<_ACEOF
15587 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
15594 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
15595 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
15597 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>
15599 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes
; then :
15601 cat >>confdefs.h
<<_ACEOF
15602 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
15609 # Check if the compiler supports the `long long' type.
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
15612 $as_echo_n "checking for long long support in compiler... " >&6; }
15613 if ${gdb_cv_c_long_long+:} false
; then :
15614 $as_echo_n "(cached) " >&6
15616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15617 /* end confdefs.h. */
15618 extern long long foo;
15622 switch (foo & 2) { case 0: return 1; }
15627 if ac_fn_c_try_compile
"$LINENO"; then :
15628 gdb_cv_c_long_long
=yes
15630 gdb_cv_c_long_long
=no
15632 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
15635 $as_echo "$gdb_cv_c_long_long" >&6; }
15636 if test "$gdb_cv_c_long_long" != yes; then
15637 # libdecnumber requires long long.
15638 as_fn_error $?
"Compiler must support long long for GDB." "$LINENO" 5
15641 # Check if the compiler and runtime support printing long longs.
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
15644 $as_echo_n "checking for long long support in printf... " >&6; }
15645 if ${gdb_cv_printf_has_long_long+:} false
; then :
15646 $as_echo_n "(cached) " >&6
15648 if test "$cross_compiling" = yes; then :
15649 gdb_cv_printf_has_long_long
=no
15651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15652 /* end confdefs.h. */
15653 $ac_includes_default
15659 l = (l << 16) + 0x0123;
15660 l = (l << 16) + 0x4567;
15661 l = (l << 16) + 0x89ab;
15662 l = (l << 16) + 0xcdef;
15663 sprintf (buf, "0x%016llx", l);
15664 return (strcmp ("0x0123456789abcdef", buf));
15669 if ac_fn_c_try_run
"$LINENO"; then :
15670 gdb_cv_printf_has_long_long
=yes
15672 gdb_cv_printf_has_long_long
=no
15674 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15675 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
15680 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
15681 if test "$gdb_cv_printf_has_long_long" = yes; then
15683 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
15687 # Check if the compiler and runtime support printing decfloats.
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
15690 $as_echo_n "checking for decfloat support in printf... " >&6; }
15691 if ${gdb_cv_printf_has_decfloat+:} false
; then :
15692 $as_echo_n "(cached) " >&6
15694 if test "$cross_compiling" = yes; then :
15695 gdb_cv_printf_has_decfloat
=no
15697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15698 /* end confdefs.h. */
15699 $ac_includes_default
15704 _Decimal32 d32 = 1.2345df;
15705 _Decimal64 d64 = 1.2345dd;
15706 _Decimal128 d128 = 1.2345dl;
15707 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
15708 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
15713 if ac_fn_c_try_run
"$LINENO"; then :
15714 gdb_cv_printf_has_decfloat
=yes
15716 gdb_cv_printf_has_decfloat
=no
15718 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15719 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
15724 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
15725 if test "$gdb_cv_printf_has_decfloat" = yes; then
15727 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
15731 # Check if the compiler supports the `long double' type. We can't use
15732 # AC_C_LONG_DOUBLE because that one does additional checks on the
15733 # constants defined in <float.h> that fail on some systems,
15734 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
15737 $as_echo_n "checking for long double support in compiler... " >&6; }
15738 if ${gdb_cv_c_long_double+:} false
; then :
15739 $as_echo_n "(cached) " >&6
15741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15742 /* end confdefs.h. */
15745 if ac_fn_c_try_compile
"$LINENO"; then :
15746 gdb_cv_c_long_double
=yes
15748 gdb_cv_c_long_double
=no
15750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
15753 $as_echo "$gdb_cv_c_long_double" >&6; }
15754 if test "$gdb_cv_c_long_double" = yes; then
15756 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
15760 # Check if the compiler and runtime support printing long doubles.
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
15763 $as_echo_n "checking for long double support in printf... " >&6; }
15764 if ${gdb_cv_printf_has_long_double+:} false
; then :
15765 $as_echo_n "(cached) " >&6
15767 if test "$cross_compiling" = yes; then :
15768 gdb_cv_printf_has_long_double
=no
15770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15771 /* end confdefs.h. */
15772 $ac_includes_default
15777 long double f = 3.141592653;
15778 sprintf (buf, "%Lg", f);
15779 return (strncmp ("3.14159", buf, 7));
15784 if ac_fn_c_try_run
"$LINENO"; then :
15785 gdb_cv_printf_has_long_double
=yes
15787 gdb_cv_printf_has_long_double
=no
15789 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15790 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
15795 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
15796 if test "$gdb_cv_printf_has_long_double" = yes; then
15798 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
15802 # Check if the compiler and runtime support scanning long doubles.
15804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
15805 $as_echo_n "checking for long double support in scanf... " >&6; }
15806 if ${gdb_cv_scanf_has_long_double+:} false
; then :
15807 $as_echo_n "(cached) " >&6
15809 if test "$cross_compiling" = yes; then :
15810 gdb_cv_scanf_has_long_double
=no
15812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15813 /* end confdefs.h. */
15818 char *buf = "3.141592653";
15820 sscanf (buf, "%Lg", &f);
15821 return !(f > 3.14159 && f < 3.14160);
15826 if ac_fn_c_try_run
"$LINENO"; then :
15827 gdb_cv_scanf_has_long_double
=yes
15829 gdb_cv_scanf_has_long_double
=no
15831 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15832 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
15837 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
15838 if test "$gdb_cv_scanf_has_long_double" = yes; then
15840 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
15847 $as_echo_n "checking for -bbigtoc option... " >&6; }
15848 if ${gdb_cv_bigtoc+:} false
; then :
15849 $as_echo_n "(cached) " >&6
15852 SAVE_LDFLAGS
=$LDFLAGS
15855 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
15856 *) gdb_cv_bigtoc
=-bbigtoc ;;
15859 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
15860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15861 /* end confdefs.h. */
15871 if ac_fn_c_try_link
"$LINENO"; then :
15876 rm -f core conftest.err conftest.
$ac_objext \
15877 conftest
$ac_exeext conftest.
$ac_ext
15878 LDFLAGS
="${SAVE_LDFLAGS}"
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
15882 $as_echo "$gdb_cv_bigtoc" >&6; }
15883 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
15888 $as_echo_n "checking for the dynamic export flag... " >&6; }
15890 if test "${gdb_native}" = yes; then
15891 # The dynamically loaded libthread_db needs access to symbols in the gdb
15892 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
15893 # may not be supported there.
15894 old_LDFLAGS
="$LDFLAGS"
15895 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
15896 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
15897 LDFLAGS
="$LDFLAGS $RDYNAMIC"
15898 if test "${have_libpython}" = no
; then
15899 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15900 /* end confdefs.h. */
15910 if ac_fn_c_try_link
"$LINENO"; then :
15913 rm -f core conftest.err conftest.
$ac_objext \
15914 conftest
$ac_exeext conftest.
$ac_ext
15916 # Workaround http://bugs.python.org/issue4434 where static
15917 # libpythonX.Y.a would get its symbols required for
15918 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
15919 # Problem does not happen for the recommended libpythonX.Y.so linkage.
15921 # Note the workaround for Python
15922 # http://bugs.python.org/issue10112 earlier has removed
15923 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
15924 # here too, as otherwise it'd make this -Wl,--dynamic-list test
15926 old_CFLAGS
="$CFLAGS"
15927 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
15929 LIBS
="$LIBS $PYTHON_LIBS"
15930 old_CPPFLAGS
="$CPPFLAGS"
15931 CPPFLAGS
="$CPPFLAGS $PYTHON_CPPFLAGS"
15932 if test "$cross_compiling" = yes; then :
15935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15936 /* end confdefs.h. */
15937 #include "Python.h"
15943 err = PyRun_SimpleString ("import itertools\n");
15945 return err == 0 ? 0 : 1;
15950 if ac_fn_c_try_run
"$LINENO"; then :
15953 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15954 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15958 CFLAGS
="$old_CFLAGS"
15959 CPPFLAGS
="$old_CPPFLAGS"
15961 LDFLAGS
="$old_LDFLAGS"
15963 if $dynamic_list; then
15964 found
="-Wl,--dynamic-list"
15965 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
15968 RDYNAMIC
="-rdynamic"
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
15972 $as_echo "$found" >&6; }
15975 if test "${build}" = "${host}" -a "${host}" = "${target}" ; then
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
15979 $as_echo_n "checking for AiX thread debugging library... " >&6; }
15980 if ${gdb_cv_have_aix_thread_debug+:} false
; then :
15981 $as_echo_n "(cached) " >&6
15983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15984 /* end confdefs.h. */
15985 #include <sys/pthdebug.h>
15989 #ifndef PTHDB_VERSION_3
15996 if ac_fn_c_try_compile
"$LINENO"; then :
15997 gdb_cv_have_aix_thread_debug
=yes
15999 gdb_cv_have_aix_thread_debug
=no
16001 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
16005 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
16006 if test "$gdb_cv_have_aix_thread_debug" = yes; then
16007 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
16008 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
16009 LIBS
="$LIBS -lpthdebug"
16011 # Older versions of AIX do not provide the declaration for
16012 # the getthrds function (it appears that it was introduced
16014 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
16016 if test "x$ac_cv_have_decl_getthrds" = xyes
; then :
16022 cat >>confdefs.h
<<_ACEOF
16023 #define HAVE_DECL_GETTHRDS $ac_have_decl
16032 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
16034 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
16035 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false
; then :
16036 $as_echo_n "(cached) " >&6
16038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16039 /* end confdefs.h. */
16040 #include <thread_db.h>
16044 int i = TD_NOTALLOC;
16049 if ac_fn_c_try_compile
"$LINENO"; then :
16050 gdb_cv_thread_db_h_has_td_notalloc
=yes
16052 gdb_cv_thread_db_h_has_td_notalloc
=no
16055 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
16059 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
16061 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
16062 if ${gdb_cv_thread_db_h_has_td_version+:} false
; then :
16063 $as_echo_n "(cached) " >&6
16065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16066 /* end confdefs.h. */
16067 #include <thread_db.h>
16071 int i = TD_VERSION;
16076 if ac_fn_c_try_compile
"$LINENO"; then :
16077 gdb_cv_thread_db_h_has_td_version
=yes
16079 gdb_cv_thread_db_h_has_td_version
=no
16082 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
16086 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
16088 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
16089 if ${gdb_cv_thread_db_h_has_td_notls+:} false
; then :
16090 $as_echo_n "(cached) " >&6
16092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16093 /* end confdefs.h. */
16094 #include <thread_db.h>
16103 if ac_fn_c_try_compile
"$LINENO"; then :
16104 gdb_cv_thread_db_h_has_td_notls
=yes
16106 gdb_cv_thread_db_h_has_td_notls
=no
16109 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
16113 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
16115 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
16117 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
16120 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
16122 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
16125 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
16127 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
16140 cat >>confdefs.h
<<_ACEOF
16141 #define GDBINIT "$gdbinit"
16146 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
16147 # except that the argument to --with-sysroot is optional.
16148 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
16149 if test "x$with_sysroot" = xyes
; then
16150 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
16153 # Check whether --with-sysroot was given.
16154 if test "${with_sysroot+set}" = set; then :
16155 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
16157 TARGET_SYSTEM_ROOT
=
16161 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16162 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16163 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
16164 ac_define_dir
=`eval echo $ac_define_dir`
16166 cat >>confdefs.h
<<_ACEOF
16167 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
16173 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16174 if test "x$prefix" = xNONE
; then
16175 test_prefix
=/usr
/local
16177 test_prefix
=$prefix
16180 test_prefix
=$exec_prefix
16183 case ${ac_define_dir} in
16184 "${test_prefix}"|
"${test_prefix}/"*|\
16185 '${exec_prefix}'|
'${exec_prefix}/'*)
16190 cat >>confdefs.h
<<_ACEOF
16191 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
16198 # Check whether --with-system-gdbinit was given.
16199 if test "${with_system_gdbinit+set}" = set; then :
16200 withval
=$with_system_gdbinit;
16201 SYSTEM_GDBINIT
=$withval
16207 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16208 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16209 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
16210 ac_define_dir
=`eval echo $ac_define_dir`
16212 cat >>confdefs.h
<<_ACEOF
16213 #define SYSTEM_GDBINIT "$ac_define_dir"
16219 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16220 if test "x$prefix" = xNONE
; then
16221 test_prefix
=/usr
/local
16223 test_prefix
=$prefix
16226 test_prefix
=$exec_prefix
16229 case ${ac_define_dir} in
16230 "${test_prefix}"|
"${test_prefix}/"*|\
16231 '${exec_prefix}'|
'${exec_prefix}/'*)
16236 cat >>confdefs.h
<<_ACEOF
16237 #define SYSTEM_GDBINIT_RELOCATABLE $value
16244 # Check whether --with-system-gdbinit-dir was given.
16245 if test "${with_system_gdbinit_dir+set}" = set; then :
16246 withval
=$with_system_gdbinit_dir;
16247 SYSTEM_GDBINIT_DIR
=$withval
16249 SYSTEM_GDBINIT_DIR
=
16253 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16254 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16255 ac_define_dir
=`eval echo $SYSTEM_GDBINIT_DIR`
16256 ac_define_dir
=`eval echo $ac_define_dir`
16258 cat >>confdefs.h
<<_ACEOF
16259 #define SYSTEM_GDBINIT_DIR "$ac_define_dir"
16265 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16266 if test "x$prefix" = xNONE
; then
16267 test_prefix
=/usr
/local
16269 test_prefix
=$prefix
16272 test_prefix
=$exec_prefix
16275 case ${ac_define_dir} in
16276 "${test_prefix}"|
"${test_prefix}/"*|\
16277 '${exec_prefix}'|
'${exec_prefix}/'*)
16282 cat >>confdefs.h
<<_ACEOF
16283 #define SYSTEM_GDBINIT_DIR_RELOCATABLE $value
16290 # Check whether --enable-werror was given.
16291 if test "${enable_werror+set}" = set; then :
16292 enableval
=$enable_werror; case "${enableval}" in
16293 yes | y
) ERROR_ON_WARNING
="yes" ;;
16294 no | n
) ERROR_ON_WARNING
="no" ;;
16295 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
16300 # Enable -Werror by default when using gcc. Turn it off for releases.
16301 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
16302 ERROR_ON_WARNING
=yes
16306 if test "${ERROR_ON_WARNING}" = yes ; then
16307 WERROR_CFLAGS
="-Werror"
16310 # The options we'll try to enable.
16311 build_warnings
="-Wall -Wpointer-arith \
16312 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
16313 -Wno-switch -Wno-char-subscripts \
16314 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
16315 -Wno-sign-compare -Wno-error=maybe-uninitialized \
16316 -Wno-mismatched-tags \
16317 -Wno-error=deprecated-register \
16318 -Wsuggest-override \
16319 -Wimplicit-fallthrough=3 \
16320 -Wduplicated-cond \
16322 -Wdeprecated-copy \
16323 -Wdeprecated-copy-dtor \
16325 -Wmissing-declarations \
16326 -Wstrict-null-sentinel \
16331 # Enable -Wno-format by default when using gcc on mingw since many
16332 # GCC versions complain about %I64.
16333 build_warnings
="$build_warnings -Wno-format" ;;
16335 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
16336 # doesn't understand.
16337 build_warnings
="$build_warnings -Wno-unknown-pragmas"
16338 # Solaris 11 <unistd.h> marks vfork deprecated.
16339 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
16341 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
16342 # but there's a special case for this below.
16343 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
16346 # Check whether --enable-build-warnings was given.
16347 if test "${enable_build_warnings+set}" = set; then :
16348 enableval
=$enable_build_warnings; case "${enableval}" in
16350 no
) build_warnings
="-w";;
16351 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16352 build_warnings
="${build_warnings} ${t}";;
16353 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16354 build_warnings
="${t} ${build_warnings}";;
16355 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16357 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
16358 echo "Setting compiler warning flags = $build_warnings" 6>&1
16361 # Check whether --enable-gdb-build-warnings was given.
16362 if test "${enable_gdb_build_warnings+set}" = set; then :
16363 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
16365 no
) build_warnings
="-w";;
16366 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16367 build_warnings
="${build_warnings} ${t}";;
16368 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16369 build_warnings
="${t} ${build_warnings}";;
16370 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16372 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
16373 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
16377 # The set of warnings supported by a C++ compiler is not the same as
16378 # of the C compiler.
16380 ac_cpp
='$CXXCPP $CPPFLAGS'
16381 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16382 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16383 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
16387 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
16390 $as_echo_n "checking compiler warning flags... " >&6; }
16391 # Separate out the -Werror flag as some files just cannot be
16392 # compiled with it enabled.
16393 for w
in ${build_warnings}; do
16394 # GCC does not complain about -Wno-unknown-warning. Invert
16395 # and test -Wunknown-warning instead.
16398 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
16399 -Wformat-nonliteral)
16400 # gcc requires -Wformat before -Wformat-nonliteral
16401 # will work, so stick them together.
16410 -Werr*) WERROR_CFLAGS
=-Werror ;;
16412 # Check whether GCC accepts it.
16413 saved_CFLAGS
="$CFLAGS"
16414 CFLAGS
="$CFLAGS -Werror $wtest"
16415 saved_CXXFLAGS
="$CXXFLAGS"
16416 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
16417 if test "x$w" = "x-Wunused-variable"; then
16418 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
16419 # fixed in GCC 4.9. This test is derived from the gdb
16420 # source code that triggered this bug in GCC.
16421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16422 /* end confdefs.h. */
16423 struct scoped_restore_base {};
16424 struct scoped_restore_tmpl : public scoped_restore_base {
16425 ~scoped_restore_tmpl() {}
16430 const scoped_restore_base &b = scoped_restore_tmpl();
16435 if ac_fn_cxx_try_compile
"$LINENO"; then :
16436 WARN_CFLAGS
="${WARN_CFLAGS} $w"
16438 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16441 /* end confdefs.h. */
16451 if ac_fn_cxx_try_compile
"$LINENO"; then :
16452 WARN_CFLAGS
="${WARN_CFLAGS} $w"
16454 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16456 CFLAGS
="$saved_CFLAGS"
16457 CXXFLAGS
="$saved_CXXFLAGS"
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
16461 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
16467 ac_cpp='$CPP $CPPFLAGS'
16468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16474 # Check whether --enable-ubsan was given.
16475 if test "${enable_ubsan+set}" = set; then :
16476 enableval=$enable_ubsan;
16481 if test "x
$enable_ubsan" = xauto; then
16482 if $development; then
16487 ac_cpp='$CXXCPP $CPPFLAGS'
16488 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16489 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16490 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16492 if test "x
$enable_ubsan" = xyes; then
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
-fsanitize=undefined is accepted
" >&5
16494 $as_echo_n "checking whether
-fsanitize=undefined is accepted...
" >&6; }
16495 saved_CXXFLAGS="$CXXFLAGS"
16496 CXXFLAGS="$CXXFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
16497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16498 /* end confdefs.h. */
16508 if ac_fn_cxx_try_link "$LINENO"; then :
16513 rm -f core conftest.err conftest.$ac_objext \
16514 conftest$ac_exeext conftest.$ac_ext
16515 CXXFLAGS="$saved_CXXFLAGS"
16516 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $enable_ubsan" >&5
16517 $as_echo "$enable_ubsan" >&6; }
16518 if test "x
$enable_ubsan" = xyes; then
16519 WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
16520 CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined
"
16524 ac_cpp='$CPP $CPPFLAGS'
16525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16531 # In the Cygwin environment, we need some additional flags.
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
16533 $as_echo_n "checking
for cygwin...
" >&6; }
16534 if ${gdb_cv_os_cygwin+:} false; then :
16535 $as_echo_n "(cached
) " >&6
16537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16538 /* end confdefs.h. */
16540 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
16544 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
16545 $EGREP "^lose$
" >/dev/null 2>&1; then :
16546 gdb_cv_os_cygwin=yes
16548 gdb_cv_os_cygwin=no
16553 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
16554 $as_echo "$gdb_cv_os_cygwin" >&6; }
16557 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
16559 *go32* ) SER_HARDWIRE=ser-go32.o ;;
16560 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
16561 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
16562 *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o
" ;;
16566 # libreadline needs libuser32.a in a cygwin environment
16568 if test x"$gdb_cv_os_cygwin" = xyes; then
16569 WIN32LIBS="-luser32"
16570 case "${target}" in
16571 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
16576 # The ser-tcp.c module requires sockets.
16577 # Note that WIN32APILIBS is set by GDB_AC_COMMON.
16578 WIN32LIBS="$WIN32LIBS $WIN32APILIBS"
16580 # Add ELF support to GDB, but only if BFD includes ELF support.
16583 OLD_LDFLAGS=$LDFLAGS
16585 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
16586 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
16587 # always want our bfd.
16588 CFLAGS="-I${srcdir}/..
/include
-I..
/bfd
-I${srcdir}/..
/bfd
$CFLAGS"
16589 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
16590 LDFLAGS="-L..
/bfd
-L..
/libiberty
$ZLIBDIR $LDFLAGS"
16591 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
16592 LIBS="-lbfd -liberty -lz $intl $LIBS"
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ELF support
in BFD
" >&5
16594 $as_echo_n "checking
for ELF support
in BFD...
" >&6; }
16595 if ${gdb_cv_var_elf+:} false; then :
16596 $as_echo_n "(cached
) " >&6
16598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16599 /* end confdefs.h. */
16600 #include <stdlib.h>
16602 #include "elf-bfd.h
"
16607 return bfd_get_elf_phdr_upper_bound (NULL);
16612 if ac_fn_c_try_link "$LINENO"; then :
16617 rm -f core conftest.err conftest.$ac_objext \
16618 conftest$ac_exeext conftest.$ac_ext
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_var_elf" >&5
16621 $as_echo "$gdb_cv_var_elf" >&6; }
16623 LDFLAGS=$OLD_LDFLAGS
16625 if test "$gdb_cv_var_elf" = yes; then
16626 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o
"
16628 $as_echo "#define HAVE_ELF 1" >>confdefs.h
16630 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
16631 if test "$plugins" = "yes"; then
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16633 $as_echo_n "checking for library containing dlopen... " >&6; }
16634 if ${ac_cv_search_dlopen+:} false
; then :
16635 $as_echo_n "(cached) " >&6
16637 ac_func_search_save_LIBS
=$LIBS
16638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16639 /* end confdefs.h. */
16641 /* Override any GCC internal prototype to avoid an error.
16642 Use char because int might match the return type of a GCC
16643 builtin and then its argument prototype would still apply. */
16656 for ac_lib
in '' dl
; do
16657 if test -z "$ac_lib"; then
16658 ac_res
="none required"
16661 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
16663 if ac_fn_c_try_link
"$LINENO"; then :
16664 ac_cv_search_dlopen
=$ac_res
16666 rm -f core conftest.err conftest.
$ac_objext \
16668 if ${ac_cv_search_dlopen+:} false
; then :
16672 if ${ac_cv_search_dlopen+:} false
; then :
16675 ac_cv_search_dlopen
=no
16677 rm conftest.
$ac_ext
16678 LIBS
=$ac_func_search_save_LIBS
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16681 $as_echo "$ac_cv_search_dlopen" >&6; }
16682 ac_res
=$ac_cv_search_dlopen
16683 if test "$ac_res" != no
; then :
16684 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
16691 # Add macho support to GDB, but only if BFD includes it.
16694 OLD_LDFLAGS
=$LDFLAGS
16696 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
16697 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
16698 # always want our bfd.
16699 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
16700 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
16701 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
16702 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
16703 LIBS
="-lbfd -liberty -lz $intl $LIBS"
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
16705 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
16706 if ${gdb_cv_var_macho+:} false
; then :
16707 $as_echo_n "(cached) " >&6
16709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16710 /* end confdefs.h. */
16711 #include <stdlib.h>
16713 #include "mach-o.h"
16718 return bfd_mach_o_lookup_command (NULL, 0, NULL);
16723 if ac_fn_c_try_link
"$LINENO"; then :
16724 gdb_cv_var_macho
=yes
16726 gdb_cv_var_macho
=no
16728 rm -f core conftest.err conftest.
$ac_objext \
16729 conftest
$ac_exeext conftest.
$ac_ext
16731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
16732 $as_echo "$gdb_cv_var_macho" >&6; }
16734 LDFLAGS
=$OLD_LDFLAGS
16736 if test "$gdb_cv_var_macho" = yes; then
16737 CONFIG_OBS
="$CONFIG_OBS machoread.o"
16740 # Add any host-specific objects to GDB.
16741 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
16743 # If building on ELF, look for lzma support for embedded compressed debug info.
16744 if test "$gdb_cv_var_elf" = yes; then
16746 # Check whether --with-lzma was given.
16747 if test "${with_lzma+set}" = set; then :
16748 withval
=$with_lzma;
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
16754 $as_echo_n "checking whether to use lzma... " >&6; }
16755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
16756 $as_echo "$with_lzma" >&6; }
16758 if test "${with_lzma}" != no
; then
16769 acl_save_prefix
="$prefix"
16770 prefix
="$acl_final_prefix"
16771 acl_save_exec_prefix
="$exec_prefix"
16772 exec_prefix
="$acl_final_exec_prefix"
16774 eval additional_includedir
=\"$includedir\"
16775 eval additional_libdir
=\"$libdir\"
16777 exec_prefix
="$acl_save_exec_prefix"
16778 prefix
="$acl_save_prefix"
16781 # Check whether --with-liblzma-prefix was given.
16782 if test "${with_liblzma_prefix+set}" = set; then :
16783 withval
=$with_liblzma_prefix;
16784 if test "X$withval" = "Xno"; then
16787 if test "X$withval" = "X"; then
16789 acl_save_prefix
="$prefix"
16790 prefix
="$acl_final_prefix"
16791 acl_save_exec_prefix
="$exec_prefix"
16792 exec_prefix
="$acl_final_exec_prefix"
16794 eval additional_includedir
=\"$includedir\"
16795 eval additional_libdir
=\"$libdir\"
16797 exec_prefix
="$acl_save_exec_prefix"
16798 prefix
="$acl_save_prefix"
16801 additional_includedir
="$withval/include"
16802 additional_libdir
="$withval/lib"
16809 # Check whether --with-liblzma-type was given.
16810 if test "${with_liblzma_type+set}" = set; then :
16811 withval
=$with_liblzma_type; with_liblzma_type
=$withval
16813 with_liblzma_type
=auto
16816 lib_type
=`eval echo \$with_liblzma_type`
16823 names_already_handled
=
16824 names_next_round
='lzma '
16825 while test -n "$names_next_round"; do
16826 names_this_round
="$names_next_round"
16828 for name
in $names_this_round; do
16830 for n
in $names_already_handled; do
16831 if test "$n" = "$name"; then
16832 already_handled
=yes
16836 if test -z "$already_handled"; then
16837 names_already_handled
="$names_already_handled $name"
16838 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16839 eval value
=\"\
$HAVE_LIB$uppername\"
16840 if test -n "$value"; then
16841 if test "$value" = yes; then
16842 eval value
=\"\
$LIB$uppername\"
16843 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
16844 eval value
=\"\
$LTLIB$uppername\"
16845 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
16854 if test $use_additional = yes; then
16855 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
16856 found_dir
="$additional_libdir"
16857 found_so
="$additional_libdir/lib$name.$shlibext"
16858 if test -f "$additional_libdir/lib$name.la"; then
16859 found_la
="$additional_libdir/lib$name.la"
16861 elif test x
$lib_type != xshared
; then
16862 if test -f "$additional_libdir/lib$name.$libext"; then
16863 found_dir
="$additional_libdir"
16864 found_a
="$additional_libdir/lib$name.$libext"
16865 if test -f "$additional_libdir/lib$name.la"; then
16866 found_la
="$additional_libdir/lib$name.la"
16871 if test "X$found_dir" = "X"; then
16872 for x
in $LDFLAGS $LTLIBLZMA; do
16874 acl_save_prefix
="$prefix"
16875 prefix
="$acl_final_prefix"
16876 acl_save_exec_prefix
="$exec_prefix"
16877 exec_prefix
="$acl_final_exec_prefix"
16879 exec_prefix
="$acl_save_exec_prefix"
16880 prefix
="$acl_save_prefix"
16884 dir
=`echo "X$x" | sed -e 's/^X-L//'`
16885 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
16887 found_so
="$dir/lib$name.$shlibext"
16888 if test -f "$dir/lib$name.la"; then
16889 found_la
="$dir/lib$name.la"
16891 elif test x
$lib_type != xshared
; then
16892 if test -f "$dir/lib$name.$libext"; then
16894 found_a
="$dir/lib$name.$libext"
16895 if test -f "$dir/lib$name.la"; then
16896 found_la
="$dir/lib$name.la"
16902 if test "X$found_dir" != "X"; then
16907 if test "X$found_dir" != "X"; then
16908 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
16909 if test "X$found_so" != "X"; then
16910 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
16911 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
16914 for x
in $ltrpathdirs; do
16915 if test "X$x" = "X$found_dir"; then
16920 if test -z "$haveit"; then
16921 ltrpathdirs
="$ltrpathdirs $found_dir"
16923 if test "$hardcode_direct" = yes; then
16924 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
16926 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
16927 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
16929 for x
in $rpathdirs; do
16930 if test "X$x" = "X$found_dir"; then
16935 if test -z "$haveit"; then
16936 rpathdirs
="$rpathdirs $found_dir"
16940 for x
in $LDFLAGS $LIBLZMA; do
16942 acl_save_prefix
="$prefix"
16943 prefix
="$acl_final_prefix"
16944 acl_save_exec_prefix
="$exec_prefix"
16945 exec_prefix
="$acl_final_exec_prefix"
16947 exec_prefix
="$acl_save_exec_prefix"
16948 prefix
="$acl_save_prefix"
16950 if test "X$x" = "X-L$found_dir"; then
16955 if test -z "$haveit"; then
16956 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
16958 if test "$hardcode_minus_L" != no
; then
16959 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
16961 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
16967 if test "X$found_a" != "X"; then
16968 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
16970 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
16973 additional_includedir
=
16974 case "$found_dir" in
16976 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16977 additional_includedir
="$basedir/include"
16980 if test "X$additional_includedir" != "X"; then
16981 if test "X$additional_includedir" != "X/usr/include"; then
16983 if test "X$additional_includedir" = "X/usr/local/include"; then
16984 if test -n "$GCC"; then
16986 linux
*) haveit
=yes;;
16990 if test -z "$haveit"; then
16991 for x
in $CPPFLAGS $INCLZMA; do
16993 acl_save_prefix
="$prefix"
16994 prefix
="$acl_final_prefix"
16995 acl_save_exec_prefix
="$exec_prefix"
16996 exec_prefix
="$acl_final_exec_prefix"
16998 exec_prefix
="$acl_save_exec_prefix"
16999 prefix
="$acl_save_prefix"
17001 if test "X$x" = "X-I$additional_includedir"; then
17006 if test -z "$haveit"; then
17007 if test -d "$additional_includedir"; then
17008 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
17014 if test -n "$found_la"; then
17015 save_libdir
="$libdir"
17016 case "$found_la" in
17017 */* |
*\\*) .
"$found_la" ;;
17018 *) .
"./$found_la" ;;
17020 libdir
="$save_libdir"
17021 for dep
in $dependency_libs; do
17024 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
17025 if test "X$additional_libdir" != "X/usr/lib"; then
17027 if test "X$additional_libdir" = "X/usr/local/lib"; then
17028 if test -n "$GCC"; then
17030 linux
*) haveit
=yes;;
17034 if test -z "$haveit"; then
17036 for x
in $LDFLAGS $LIBLZMA; do
17038 acl_save_prefix
="$prefix"
17039 prefix
="$acl_final_prefix"
17040 acl_save_exec_prefix
="$exec_prefix"
17041 exec_prefix
="$acl_final_exec_prefix"
17043 exec_prefix
="$acl_save_exec_prefix"
17044 prefix
="$acl_save_prefix"
17046 if test "X$x" = "X-L$additional_libdir"; then
17051 if test -z "$haveit"; then
17052 if test -d "$additional_libdir"; then
17053 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
17057 for x
in $LDFLAGS $LTLIBLZMA; do
17059 acl_save_prefix
="$prefix"
17060 prefix
="$acl_final_prefix"
17061 acl_save_exec_prefix
="$exec_prefix"
17062 exec_prefix
="$acl_final_exec_prefix"
17064 exec_prefix
="$acl_save_exec_prefix"
17065 prefix
="$acl_save_prefix"
17067 if test "X$x" = "X-L$additional_libdir"; then
17072 if test -z "$haveit"; then
17073 if test -d "$additional_libdir"; then
17074 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
17081 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
17082 if test "$enable_rpath" != no
; then
17084 for x
in $rpathdirs; do
17085 if test "X$x" = "X$dir"; then
17090 if test -z "$haveit"; then
17091 rpathdirs
="$rpathdirs $dir"
17094 for x
in $ltrpathdirs; do
17095 if test "X$x" = "X$dir"; then
17100 if test -z "$haveit"; then
17101 ltrpathdirs
="$ltrpathdirs $dir"
17106 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17109 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17112 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
17113 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
17119 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
17120 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
17121 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
17123 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l:lib$name.$libext"
17124 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l:lib$name.$libext"
17131 if test "X$rpathdirs" != "X"; then
17132 if test -n "$hardcode_libdir_separator"; then
17134 for found_dir
in $rpathdirs; do
17135 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17137 acl_save_libdir
="$libdir"
17139 eval flag
=\"$hardcode_libdir_flag_spec\"
17140 libdir
="$acl_save_libdir"
17141 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
17143 for found_dir
in $rpathdirs; do
17144 acl_save_libdir
="$libdir"
17145 libdir
="$found_dir"
17146 eval flag
=\"$hardcode_libdir_flag_spec\"
17147 libdir
="$acl_save_libdir"
17148 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
17152 if test "X$ltrpathdirs" != "X"; then
17153 for found_dir
in $ltrpathdirs; do
17154 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
17159 ac_save_CPPFLAGS
="$CPPFLAGS"
17161 for element
in $INCLZMA; do
17163 for x
in $CPPFLAGS; do
17165 acl_save_prefix
="$prefix"
17166 prefix
="$acl_final_prefix"
17167 acl_save_exec_prefix
="$exec_prefix"
17168 exec_prefix
="$acl_final_exec_prefix"
17170 exec_prefix
="$acl_save_exec_prefix"
17171 prefix
="$acl_save_prefix"
17173 if test "X$x" = "X$element"; then
17178 if test -z "$haveit"; then
17179 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
17184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
17185 $as_echo_n "checking for liblzma... " >&6; }
17186 if ${ac_cv_liblzma+:} false
; then :
17187 $as_echo_n "(cached) " >&6
17190 ac_save_LIBS
="$LIBS"
17191 LIBS
="$LIBS $LIBLZMA"
17192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17193 /* end confdefs.h. */
17198 lzma_index_iter iter;
17199 lzma_index_iter_init (&iter, 0);
17200 lzma_mf_is_supported (LZMA_MF_HC3);
17205 if ac_fn_c_try_link
"$LINENO"; then :
17210 rm -f core conftest.err conftest.
$ac_objext \
17211 conftest
$ac_exeext conftest.
$ac_ext
17212 LIBS
="$ac_save_LIBS"
17215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
17216 $as_echo "$ac_cv_liblzma" >&6; }
17217 if test "$ac_cv_liblzma" = yes; then
17220 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
17223 $as_echo_n "checking how to link with liblzma... " >&6; }
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
17225 $as_echo "$LIBLZMA" >&6; }
17228 CPPFLAGS
="$ac_save_CPPFLAGS"
17238 if test "$HAVE_LIBLZMA" != yes; then
17239 if test "$with_lzma" = yes; then
17240 as_fn_error $?
"missing liblzma for --with-lzma" "$LINENO" 5
17246 LIBGUI
="../libgui/src/libgui.a"
17247 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
17256 *-*-cygwin* |
*-*-mingw* )
17265 if test "${enable_gdbtk}" = "yes"; then
17267 # Gdbtk must have an absolute path to srcdir in order to run
17268 # properly when not installed.
17271 GDBTK_SRC_DIR
=`pwd`
17276 # Ok, lets find the tcl configuration
17277 # First, look for one uninstalled.
17278 # the alternative search directory is invoked by --with-tcl
17281 if test x
"${no_tcl}" = x
; then
17282 # we reset no_tcl in case something fails here
17285 # Check whether --with-tcl was given.
17286 if test "${with_tcl+set}" = set; then :
17287 withval
=$with_tcl; with_tclconfig
=${withval}
17290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
17291 $as_echo_n "checking for Tcl configuration... " >&6; }
17292 if ${ac_cv_c_tclconfig+:} false
; then :
17293 $as_echo_n "(cached) " >&6
17297 # First check to see if --with-tcl was specified.
17299 *-*-cygwin*) platDir
="win" ;;
17300 *) platDir
="unix" ;;
17302 if test x
"${with_tclconfig}" != x
; then
17303 if test -f "${with_tclconfig}/tclConfig.sh" ; then
17304 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
17306 as_fn_error $?
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
17310 # then check for a private Tcl installation
17311 if test x
"${ac_cv_c_tclconfig}" = x
; then
17314 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17315 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
17316 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
17318 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17319 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
17320 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
17322 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17323 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
17324 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
17325 if test -f "$i/$platDir/tclConfig.sh" ; then
17326 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
17332 # on Darwin, check in Framework installation locations
17333 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
17334 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
17335 `ls -d /Library/Frameworks 2>/dev/null` \
17336 `ls -d /Network/Library/Frameworks 2>/dev/null` \
17337 `ls -d /System/Library/Frameworks 2>/dev/null` \
17339 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
17340 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
17346 # check in a few common install locations
17347 if test x
"${ac_cv_c_tclconfig}" = x
; then
17348 for i
in `ls -d ${libdir} 2>/dev/null` \
17349 `ls -d ${exec_prefix}/lib 2>/dev/null` \
17350 `ls -d ${prefix}/lib 2>/dev/null` \
17351 `ls -d /usr/local/lib 2>/dev/null` \
17352 `ls -d /usr/contrib/lib 2>/dev/null` \
17353 `ls -d /usr/lib 2>/dev/null` \
17355 if test -f "$i/tclConfig.sh" ; then
17356 ac_cv_c_tclconfig
=`(cd $i; pwd)`
17362 # check in a few other private locations
17363 if test x
"${ac_cv_c_tclconfig}" = x
; then
17366 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17367 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
17368 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
17369 if test -f "$i/$platDir/tclConfig.sh" ; then
17370 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
17379 if test x
"${ac_cv_c_tclconfig}" = x
; then
17380 TCL_BIN_DIR
="# no Tcl configs found"
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
17382 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
17385 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
17387 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
17392 # If $no_tk is nonempty, then we can't do Tk, and there is no
17393 # point to doing Tcl.
17396 # Ok, lets find the tk configuration
17397 # First, look for one uninstalled.
17398 # the alternative search directory is invoked by --with-tk
17401 if test x
"${no_tk}" = x
; then
17402 # we reset no_tk in case something fails here
17405 # Check whether --with-tk was given.
17406 if test "${with_tk+set}" = set; then :
17407 withval
=$with_tk; with_tkconfig
=${withval}
17410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
17411 $as_echo_n "checking for Tk configuration... " >&6; }
17412 if ${ac_cv_c_tkconfig+:} false
; then :
17413 $as_echo_n "(cached) " >&6
17417 # First check to see if --with-tkconfig was specified.
17418 if test x
"${with_tkconfig}" != x
; then
17419 if test -f "${with_tkconfig}/tkConfig.sh" ; then
17420 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
17422 as_fn_error $?
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
17426 # then check for a private Tk library
17428 *-*-cygwin*) platDir
="win" ;;
17429 *) platDir
="unix" ;;
17431 if test x
"${ac_cv_c_tkconfig}" = x
; then
17434 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17435 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
17436 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
17438 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17439 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
17440 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
17442 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17443 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
17444 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
17445 if test -f "$i/$platDir/tkConfig.sh" ; then
17446 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
17452 # on Darwin, check in Framework installation locations
17453 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
17454 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
17455 `ls -d /Library/Frameworks 2>/dev/null` \
17456 `ls -d /Network/Library/Frameworks 2>/dev/null` \
17457 `ls -d /System/Library/Frameworks 2>/dev/null` \
17459 if test -f "$i/Tk.framework/tkConfig.sh" ; then
17460 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
17466 # check in a few common install locations
17467 if test x
"${ac_cv_c_tkconfig}" = x
; then
17468 for i
in `ls -d ${libdir} 2>/dev/null` \
17469 `ls -d ${exec_prefix}/lib 2>/dev/null` \
17470 `ls -d ${prefix}/lib 2>/dev/null` \
17471 `ls -d /usr/local/lib 2>/dev/null` \
17472 `ls -d /usr/contrib/lib 2>/dev/null` \
17473 `ls -d /usr/lib 2>/dev/null` \
17475 if test -f "$i/tkConfig.sh" ; then
17476 ac_cv_c_tkconfig
=`(cd $i; pwd)`
17481 # check in a few other private locations
17482 if test x
"${ac_cv_c_tkconfig}" = x
; then
17485 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17486 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
17487 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
17488 if test -f "$i/$platDir/tkConfig.sh" ; then
17489 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
17498 if test x
"${ac_cv_c_tkconfig}" = x
; then
17499 TK_BIN_DIR
="# no Tk configs found"
17500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
17501 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
17504 TK_BIN_DIR
=${ac_cv_c_tkconfig}
17505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
17506 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
17511 if test -z "${no_tcl}" -a -z "${no_tk}"; then
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
17514 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
17516 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
17517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
17518 $as_echo "loading" >&6; }
17519 .
${TCL_BIN_DIR}/tclConfig.sh
17521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
17522 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
17525 # eval is required to do the TCL_DBGX substitution
17526 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
17527 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
17529 # If the TCL_BIN_DIR is the build directory (not the install directory),
17530 # then set the common variable name to the value of the build variables.
17531 # For example, the variable TCL_LIB_SPEC will be set to the value
17532 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
17533 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
17534 # installed and uninstalled version of Tcl.
17535 if test -f "${TCL_BIN_DIR}/Makefile" ; then
17536 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
17537 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
17538 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
17539 elif test "`uname -s`" = "Darwin"; then
17540 # If Tcl was built as a framework, attempt to use the libraries
17541 # from the framework at the given location so that linking works
17542 # against Tcl.framework installed in an arbitrary location.
17543 case ${TCL_DEFS} in
17545 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
17546 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
17547 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
17548 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
17549 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
17554 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
17555 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
17556 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
17562 # eval is required to do the TCL_DBGX substitution
17563 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
17564 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
17565 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
17566 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
17582 # Check for in-tree tcl
17589 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
17593 # Find Tcl private headers
17594 if test x
"${intree}" = xno
; then
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
17597 $as_echo_n "checking for Tcl private headers... " >&6; }
17599 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
17600 if test -f ${dir}/tclInt.h
; then
17604 if test x
"${private_dir}" = x
; then
17605 as_fn_error $?
"could not find private Tcl headers" "$LINENO" 5
17607 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
17609 $as_echo "${private_dir}" >&6; }
17612 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
17613 TCL_LIBRARY
="${TCL_LIB_SPEC}"
17616 # If building tcl in the same src tree, private headers
17617 # are not needed, but we need to be sure to use the right
17619 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
17620 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
17621 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
17629 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
17631 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
17632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
17633 $as_echo "loading" >&6; }
17634 .
${TK_BIN_DIR}/tkConfig.sh
17636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
17637 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
17640 # eval is required to do the TK_DBGX substitution
17641 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
17642 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
17644 # If the TK_BIN_DIR is the build directory (not the install directory),
17645 # then set the common variable name to the value of the build variables.
17646 # For example, the variable TK_LIB_SPEC will be set to the value
17647 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
17648 # instead of TK_BUILD_LIB_SPEC since it will work with both an
17649 # installed and uninstalled version of Tcl.
17650 if test -f "${TK_BIN_DIR}/Makefile" ; then
17651 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
17652 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
17653 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
17654 elif test "`uname -s`" = "Darwin"; then
17655 # If Tk was built as a framework, attempt to use the libraries
17656 # from the framework at the given location so that linking works
17657 # against Tk.framework installed in an arbitrary location.
17660 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
17661 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
17662 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
17663 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
17664 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
17669 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
17670 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
17671 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
17677 # eval is required to do the TK_DBGX substitution
17678 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
17679 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
17680 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
17681 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
17696 # Check for in-tree Tk
17698 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
17702 # Find Tk private headers
17703 if test x
"${intree}" = xno
; then
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
17706 $as_echo_n "checking for Tk private headers... " >&6; }
17708 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
17709 if test -f ${dir}/tkInt.h
; then
17713 if test x
"${private_dir}" = x
; then
17714 as_fn_error $?
"could not find Tk private headers" "$LINENO" 5
17716 TK_PRIVATE_INCLUDE
="-I${private_dir}"
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
17718 $as_echo "${private_dir}" >&6; }
17721 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
17722 TK_LIBRARY
=${TK_LIB_SPEC}
17725 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
17726 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
17727 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
17734 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
17736 # Include some libraries that Tcl and Tk want.
17737 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
17738 # Yes, the ordering seems wrong here. But it isn't.
17739 # TK_LIBS is the list of libraries that need to be linked
17740 # after Tcl/Tk. Note that this isn't put into LIBS. If it
17741 # were in LIBS then any link tests after this point would
17742 # try to include things like `$(LIBGUI)', which wouldn't work.
17743 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
17745 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
17746 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
17747 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
17748 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
17749 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
17750 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
17751 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
17753 if test x
"$gdb_cv_os_cygwin" = xyes
; then
17754 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
17755 WIN32LDAPP
="-Wl,--subsystem,console"
17756 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
17759 subdirs
="$subdirs gdbtk"
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
17772 $as_echo_n "checking for X... " >&6; }
17775 # Check whether --with-x was given.
17776 if test "${with_x+set}" = set; then :
17780 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17781 if test "x$with_x" = xno
; then
17782 # The user explicitly disabled X.
17785 case $x_includes,$x_libraries in #(
17786 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
17787 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
17788 $as_echo_n "(cached) " >&6
17790 # One or both of the vars are not set, and there is no cached value.
17791 ac_x_includes
=no ac_x_libraries
=no
17792 rm -f -r conftest.dir
17793 if mkdir conftest.dir
; then
17795 cat >Imakefile
<<'_ACEOF'
17797 @echo incroot='${INCROOT}'
17799 @echo usrlibdir='${USRLIBDIR}'
17801 @echo libdir='${LIBDIR}'
17803 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
17804 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17805 for ac_var
in incroot usrlibdir libdir
; do
17806 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
17808 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17809 for ac_extension
in a so sl dylib la dll
; do
17810 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
17811 test -f "$ac_im_libdir/libX11.$ac_extension"; then
17812 ac_im_usrlibdir
=$ac_im_libdir; break
17815 # Screen out bogus values from the imake configuration. They are
17816 # bogus both because they are the default anyway, and because
17817 # using them would break gcc on systems where it needs fixed includes.
17818 case $ac_im_incroot in
17819 /usr
/include
) ac_x_includes
= ;;
17820 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
17822 case $ac_im_usrlibdir in
17823 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
17824 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
17828 rm -f -r conftest.dir
17831 # Standard set of common directories for X headers.
17832 # Check X11 before X11Rn because it is often a symlink to the current release.
17846 /usr/local/X11/include
17847 /usr/local/X11R7/include
17848 /usr/local/X11R6/include
17849 /usr/local/X11R5/include
17850 /usr/local/X11R4/include
17852 /usr/local/include/X11
17853 /usr/local/include/X11R7
17854 /usr/local/include/X11R6
17855 /usr/local/include/X11R5
17856 /usr/local/include/X11R4
17860 /usr/XFree86/include/X11
17864 /usr/unsupported/include
17865 /usr/athena/include
17866 /usr/local/x11r5/include
17867 /usr/lpp/Xamples/include
17869 /usr/openwin/include
17870 /usr/openwin/share/include'
17872 if test "$ac_x_includes" = no
; then
17873 # Guess where to find include files, by looking for Xlib.h.
17874 # First, try using that file with no special directory specified.
17875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17876 /* end confdefs.h. */
17877 #include <X11/Xlib.h>
17879 if ac_fn_c_try_cpp
"$LINENO"; then :
17880 # We can compile using X headers with no special include directory.
17883 for ac_dir
in $ac_x_header_dirs; do
17884 if test -r "$ac_dir/X11/Xlib.h"; then
17885 ac_x_includes
=$ac_dir
17890 rm -f conftest.err conftest.i conftest.
$ac_ext
17891 fi # $ac_x_includes = no
17893 if test "$ac_x_libraries" = no
; then
17894 # Check for the libraries.
17895 # See if we find them without any special options.
17896 # Don't add to $LIBS permanently.
17899 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17900 /* end confdefs.h. */
17901 #include <X11/Xlib.h>
17910 if ac_fn_c_try_link
"$LINENO"; then :
17912 # We can link X programs with no special library path.
17916 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17918 # Don't even attempt the hair of trying to link an X program!
17919 for ac_extension
in a so sl dylib la dll
; do
17920 if test -r "$ac_dir/libX11.$ac_extension"; then
17921 ac_x_libraries
=$ac_dir
17927 rm -f core conftest.err conftest.
$ac_objext \
17928 conftest
$ac_exeext conftest.
$ac_ext
17929 fi # $ac_x_libraries = no
17931 case $ac_x_includes,$ac_x_libraries in #(
17932 no
,* |
*,no |
*\'*)
17933 # Didn't find X, or a directory has "'" in its name.
17934 ac_cv_have_x
="have_x=no";; #(
17936 # Record where we found X for the cache.
17937 ac_cv_have_x
="have_x=yes\
17938 ac_x_includes='$ac_x_includes'\
17939 ac_x_libraries='$ac_x_libraries'"
17945 eval "$ac_cv_have_x"
17948 if test "$have_x" != yes; then
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
17950 $as_echo "$have_x" >&6; }
17953 # If each of the values was on the command line, it overrides each guess.
17954 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
17955 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
17956 # Update the cache value to reflect the command line values.
17957 ac_cv_have_x
="have_x=yes\
17958 ac_x_includes='$x_includes'\
17959 ac_x_libraries='$x_libraries'"
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
17961 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
17965 # Unlike the sim directory, whether a simulator is linked is controlled by
17966 # presence of a gdb_sim definition in the target configure.tgt entry.
17967 # This code just checks for a few cases where we'd like to ignore those
17968 # definitions, even when they're present in the '.mt' file. These cases
17969 # are when --disable-sim is specified, or if the simulator directory is
17970 # not part of the source tree.
17972 # Check whether --enable-sim was given.
17973 if test "${enable_sim+set}" = set; then :
17974 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
17975 echo "enableval = ${enableval}";
17976 case "${enableval}" in
17977 yes) ignore_sim
=false
;;
17978 no
) ignore_sim
=true
;;
17979 *) ignore_sim
=false
;;
17986 if test ! -d "${srcdir}/../sim"; then
17992 if test "${ignore_sim}" = "false"; then
17993 if test x
"${gdb_sim}" != x
; then
17995 SIM_OBS
="remote-sim.o"
17997 $as_echo "#define WITH_SIM 1" >>confdefs.h
18000 # Some tdep code should only be compiled in when the ppc sim is
18001 # built. PR sim/13418.
18005 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
18025 # List of host floatformats.
18027 cat >>confdefs.h
<<_ACEOF
18028 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
18032 cat >>confdefs.h
<<_ACEOF
18033 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
18037 cat >>confdefs.h
<<_ACEOF
18038 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
18042 # target_subdir is used by the testsuite to find the target libraries.
18044 if test "${host}" != "${target}"; then
18045 target_subdir
="${target_alias}/"
18049 # Import nat definitions.
18050 nat_makefile_frag
=/dev
/null
18051 if test "${gdb_native}" = "yes"; then
18052 .
${srcdir}/configure.nat
18053 nativefile
=$NAT_FILE
18066 if test x
"${gdb_osabi}" != x
; then
18068 cat >>confdefs.h
<<_ACEOF
18069 #define GDB_OSABI_DEFAULT $gdb_osabi
18074 # Check for babeltrace and babeltrace-ctf
18076 # Check whether --with-babeltrace was given.
18077 if test "${with_babeltrace+set}" = set; then :
18078 withval
=$with_babeltrace;
18080 with_babeltrace
=auto
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
18084 $as_echo_n "checking whether to use babeltrace... " >&6; }
18085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
18086 $as_echo "$with_babeltrace" >&6; }
18088 if test "x$with_babeltrace" = "xno"; then
18089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
18090 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
18092 # Append -Werror to CFLAGS so that configure can catch the warning
18093 # "assignment from incompatible pointer type", which is related to
18094 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
18095 # in GDB, while babeltrace 1.0.3 is broken.
18096 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
18097 # safe to save and restore CFLAGS here.
18098 saved_CFLAGS
=$CFLAGS
18099 CFLAGS
="$CFLAGS -Werror"
18110 acl_save_prefix
="$prefix"
18111 prefix
="$acl_final_prefix"
18112 acl_save_exec_prefix
="$exec_prefix"
18113 exec_prefix
="$acl_final_exec_prefix"
18115 eval additional_includedir
=\"$includedir\"
18116 eval additional_libdir
=\"$libdir\"
18118 exec_prefix
="$acl_save_exec_prefix"
18119 prefix
="$acl_save_prefix"
18122 # Check whether --with-libbabeltrace-prefix was given.
18123 if test "${with_libbabeltrace_prefix+set}" = set; then :
18124 withval
=$with_libbabeltrace_prefix;
18125 if test "X$withval" = "Xno"; then
18128 if test "X$withval" = "X"; then
18130 acl_save_prefix
="$prefix"
18131 prefix
="$acl_final_prefix"
18132 acl_save_exec_prefix
="$exec_prefix"
18133 exec_prefix
="$acl_final_exec_prefix"
18135 eval additional_includedir
=\"$includedir\"
18136 eval additional_libdir
=\"$libdir\"
18138 exec_prefix
="$acl_save_exec_prefix"
18139 prefix
="$acl_save_prefix"
18142 additional_includedir
="$withval/include"
18143 additional_libdir
="$withval/lib"
18150 # Check whether --with-libbabeltrace-type was given.
18151 if test "${with_libbabeltrace_type+set}" = set; then :
18152 withval
=$with_libbabeltrace_type; with_libbabeltrace_type
=$withval
18154 with_libbabeltrace_type
=auto
18157 lib_type
=`eval echo \$with_libbabeltrace_type`
18164 names_already_handled
=
18165 names_next_round
='babeltrace babeltrace-ctf'
18166 while test -n "$names_next_round"; do
18167 names_this_round
="$names_next_round"
18169 for name
in $names_this_round; do
18171 for n
in $names_already_handled; do
18172 if test "$n" = "$name"; then
18173 already_handled
=yes
18177 if test -z "$already_handled"; then
18178 names_already_handled
="$names_already_handled $name"
18179 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18180 eval value
=\"\
$HAVE_LIB$uppername\"
18181 if test -n "$value"; then
18182 if test "$value" = yes; then
18183 eval value
=\"\
$LIB$uppername\"
18184 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
18185 eval value
=\"\
$LTLIB$uppername\"
18186 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
18195 if test $use_additional = yes; then
18196 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18197 found_dir
="$additional_libdir"
18198 found_so
="$additional_libdir/lib$name.$shlibext"
18199 if test -f "$additional_libdir/lib$name.la"; then
18200 found_la
="$additional_libdir/lib$name.la"
18202 elif test x
$lib_type != xshared
; then
18203 if test -f "$additional_libdir/lib$name.$libext"; then
18204 found_dir
="$additional_libdir"
18205 found_a
="$additional_libdir/lib$name.$libext"
18206 if test -f "$additional_libdir/lib$name.la"; then
18207 found_la
="$additional_libdir/lib$name.la"
18212 if test "X$found_dir" = "X"; then
18213 for x
in $LDFLAGS $LTLIBBABELTRACE; do
18215 acl_save_prefix
="$prefix"
18216 prefix
="$acl_final_prefix"
18217 acl_save_exec_prefix
="$exec_prefix"
18218 exec_prefix
="$acl_final_exec_prefix"
18220 exec_prefix
="$acl_save_exec_prefix"
18221 prefix
="$acl_save_prefix"
18225 dir
=`echo "X$x" | sed -e 's/^X-L//'`
18226 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18228 found_so
="$dir/lib$name.$shlibext"
18229 if test -f "$dir/lib$name.la"; then
18230 found_la
="$dir/lib$name.la"
18232 elif test x
$lib_type != xshared
; then
18233 if test -f "$dir/lib$name.$libext"; then
18235 found_a
="$dir/lib$name.$libext"
18236 if test -f "$dir/lib$name.la"; then
18237 found_la
="$dir/lib$name.la"
18243 if test "X$found_dir" != "X"; then
18248 if test "X$found_dir" != "X"; then
18249 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
18250 if test "X$found_so" != "X"; then
18251 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
18252 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18255 for x
in $ltrpathdirs; do
18256 if test "X$x" = "X$found_dir"; then
18261 if test -z "$haveit"; then
18262 ltrpathdirs
="$ltrpathdirs $found_dir"
18264 if test "$hardcode_direct" = yes; then
18265 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18267 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
18268 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18270 for x
in $rpathdirs; do
18271 if test "X$x" = "X$found_dir"; then
18276 if test -z "$haveit"; then
18277 rpathdirs
="$rpathdirs $found_dir"
18281 for x
in $LDFLAGS $LIBBABELTRACE; do
18283 acl_save_prefix
="$prefix"
18284 prefix
="$acl_final_prefix"
18285 acl_save_exec_prefix
="$exec_prefix"
18286 exec_prefix
="$acl_final_exec_prefix"
18288 exec_prefix
="$acl_save_exec_prefix"
18289 prefix
="$acl_save_prefix"
18291 if test "X$x" = "X-L$found_dir"; then
18296 if test -z "$haveit"; then
18297 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
18299 if test "$hardcode_minus_L" != no
; then
18300 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18302 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
18308 if test "X$found_a" != "X"; then
18309 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
18311 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
18314 additional_includedir
=
18315 case "$found_dir" in
18317 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18318 additional_includedir
="$basedir/include"
18321 if test "X$additional_includedir" != "X"; then
18322 if test "X$additional_includedir" != "X/usr/include"; then
18324 if test "X$additional_includedir" = "X/usr/local/include"; then
18325 if test -n "$GCC"; then
18327 linux
*) haveit
=yes;;
18331 if test -z "$haveit"; then
18332 for x
in $CPPFLAGS $INCBABELTRACE; do
18334 acl_save_prefix
="$prefix"
18335 prefix
="$acl_final_prefix"
18336 acl_save_exec_prefix
="$exec_prefix"
18337 exec_prefix
="$acl_final_exec_prefix"
18339 exec_prefix
="$acl_save_exec_prefix"
18340 prefix
="$acl_save_prefix"
18342 if test "X$x" = "X-I$additional_includedir"; then
18347 if test -z "$haveit"; then
18348 if test -d "$additional_includedir"; then
18349 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
18355 if test -n "$found_la"; then
18356 save_libdir
="$libdir"
18357 case "$found_la" in
18358 */* |
*\\*) .
"$found_la" ;;
18359 *) .
"./$found_la" ;;
18361 libdir
="$save_libdir"
18362 for dep
in $dependency_libs; do
18365 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
18366 if test "X$additional_libdir" != "X/usr/lib"; then
18368 if test "X$additional_libdir" = "X/usr/local/lib"; then
18369 if test -n "$GCC"; then
18371 linux
*) haveit
=yes;;
18375 if test -z "$haveit"; then
18377 for x
in $LDFLAGS $LIBBABELTRACE; do
18379 acl_save_prefix
="$prefix"
18380 prefix
="$acl_final_prefix"
18381 acl_save_exec_prefix
="$exec_prefix"
18382 exec_prefix
="$acl_final_exec_prefix"
18384 exec_prefix
="$acl_save_exec_prefix"
18385 prefix
="$acl_save_prefix"
18387 if test "X$x" = "X-L$additional_libdir"; then
18392 if test -z "$haveit"; then
18393 if test -d "$additional_libdir"; then
18394 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
18398 for x
in $LDFLAGS $LTLIBBABELTRACE; do
18400 acl_save_prefix
="$prefix"
18401 prefix
="$acl_final_prefix"
18402 acl_save_exec_prefix
="$exec_prefix"
18403 exec_prefix
="$acl_final_exec_prefix"
18405 exec_prefix
="$acl_save_exec_prefix"
18406 prefix
="$acl_save_prefix"
18408 if test "X$x" = "X-L$additional_libdir"; then
18413 if test -z "$haveit"; then
18414 if test -d "$additional_libdir"; then
18415 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
18422 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
18423 if test "$enable_rpath" != no
; then
18425 for x
in $rpathdirs; do
18426 if test "X$x" = "X$dir"; then
18431 if test -z "$haveit"; then
18432 rpathdirs
="$rpathdirs $dir"
18435 for x
in $ltrpathdirs; do
18436 if test "X$x" = "X$dir"; then
18441 if test -z "$haveit"; then
18442 ltrpathdirs
="$ltrpathdirs $dir"
18447 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18450 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18453 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
18454 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
18460 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
18461 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
18462 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
18464 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l:lib$name.$libext"
18465 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l:lib$name.$libext"
18472 if test "X$rpathdirs" != "X"; then
18473 if test -n "$hardcode_libdir_separator"; then
18475 for found_dir
in $rpathdirs; do
18476 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18478 acl_save_libdir
="$libdir"
18480 eval flag
=\"$hardcode_libdir_flag_spec\"
18481 libdir
="$acl_save_libdir"
18482 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
18484 for found_dir
in $rpathdirs; do
18485 acl_save_libdir
="$libdir"
18486 libdir
="$found_dir"
18487 eval flag
=\"$hardcode_libdir_flag_spec\"
18488 libdir
="$acl_save_libdir"
18489 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
18493 if test "X$ltrpathdirs" != "X"; then
18494 for found_dir
in $ltrpathdirs; do
18495 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
18500 ac_save_CPPFLAGS
="$CPPFLAGS"
18502 for element
in $INCBABELTRACE; do
18504 for x
in $CPPFLAGS; do
18506 acl_save_prefix
="$prefix"
18507 prefix
="$acl_final_prefix"
18508 acl_save_exec_prefix
="$exec_prefix"
18509 exec_prefix
="$acl_final_exec_prefix"
18511 exec_prefix
="$acl_save_exec_prefix"
18512 prefix
="$acl_save_prefix"
18514 if test "X$x" = "X$element"; then
18519 if test -z "$haveit"; then
18520 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
18525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
18526 $as_echo_n "checking for libbabeltrace... " >&6; }
18527 if ${ac_cv_libbabeltrace+:} false
; then :
18528 $as_echo_n "(cached) " >&6
18531 ac_save_LIBS
="$LIBS"
18532 LIBS
="$LIBS $LIBBABELTRACE"
18533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18534 /* end confdefs.h. */
18535 #include <babeltrace/babeltrace.h>
18536 #include <babeltrace/ctf/events.h>
18537 #include <babeltrace/ctf/iterator.h>
18541 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
18542 struct bt_ctf_event *event = NULL;
18543 const struct bt_definition *scope;
18545 pos->type = BT_SEEK_BEGIN;
18546 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
18547 scope = bt_ctf_get_top_level_scope (event,
18548 BT_STREAM_EVENT_HEADER);
18549 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
18555 if ac_fn_c_try_link
"$LINENO"; then :
18556 ac_cv_libbabeltrace
=yes
18558 ac_cv_libbabeltrace
=no
18560 rm -f core conftest.err conftest.
$ac_objext \
18561 conftest
$ac_exeext conftest.
$ac_ext
18562 LIBS
="$ac_save_LIBS"
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
18566 $as_echo "$ac_cv_libbabeltrace" >&6; }
18567 if test "$ac_cv_libbabeltrace" = yes; then
18568 HAVE_LIBBABELTRACE
=yes
18570 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
18573 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
18574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
18575 $as_echo "$LIBBABELTRACE" >&6; }
18577 HAVE_LIBBABELTRACE
=no
18578 CPPFLAGS
="$ac_save_CPPFLAGS"
18588 CFLAGS
=$saved_CFLAGS
18590 if test "$HAVE_LIBBABELTRACE" != yes; then
18591 if test "$with_babeltrace" = yes; then
18592 as_fn_error $?
"babeltrace is missing or unusable" "$LINENO" 5
18594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
18595 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
18602 # Check whether --with-xxhash was given.
18603 if test "${with_xxhash+set}" = set; then :
18604 withval
=$with_xxhash;
18610 if test "x$with_xxhash" != "xno"; then
18621 acl_save_prefix
="$prefix"
18622 prefix
="$acl_final_prefix"
18623 acl_save_exec_prefix
="$exec_prefix"
18624 exec_prefix
="$acl_final_exec_prefix"
18626 eval additional_includedir
=\"$includedir\"
18627 eval additional_libdir
=\"$libdir\"
18629 exec_prefix
="$acl_save_exec_prefix"
18630 prefix
="$acl_save_prefix"
18633 # Check whether --with-libxxhash-prefix was given.
18634 if test "${with_libxxhash_prefix+set}" = set; then :
18635 withval
=$with_libxxhash_prefix;
18636 if test "X$withval" = "Xno"; then
18639 if test "X$withval" = "X"; then
18641 acl_save_prefix
="$prefix"
18642 prefix
="$acl_final_prefix"
18643 acl_save_exec_prefix
="$exec_prefix"
18644 exec_prefix
="$acl_final_exec_prefix"
18646 eval additional_includedir
=\"$includedir\"
18647 eval additional_libdir
=\"$libdir\"
18649 exec_prefix
="$acl_save_exec_prefix"
18650 prefix
="$acl_save_prefix"
18653 additional_includedir
="$withval/include"
18654 additional_libdir
="$withval/lib"
18661 # Check whether --with-libxxhash-type was given.
18662 if test "${with_libxxhash_type+set}" = set; then :
18663 withval
=$with_libxxhash_type; with_libxxhash_type
=$withval
18665 with_libxxhash_type
=auto
18668 lib_type
=`eval echo \$with_libxxhash_type`
18675 names_already_handled
=
18676 names_next_round
='xxhash '
18677 while test -n "$names_next_round"; do
18678 names_this_round
="$names_next_round"
18680 for name
in $names_this_round; do
18682 for n
in $names_already_handled; do
18683 if test "$n" = "$name"; then
18684 already_handled
=yes
18688 if test -z "$already_handled"; then
18689 names_already_handled
="$names_already_handled $name"
18690 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18691 eval value
=\"\
$HAVE_LIB$uppername\"
18692 if test -n "$value"; then
18693 if test "$value" = yes; then
18694 eval value
=\"\
$LIB$uppername\"
18695 test -z "$value" || LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$value"
18696 eval value
=\"\
$LTLIB$uppername\"
18697 test -z "$value" || LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$value"
18706 if test $use_additional = yes; then
18707 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18708 found_dir
="$additional_libdir"
18709 found_so
="$additional_libdir/lib$name.$shlibext"
18710 if test -f "$additional_libdir/lib$name.la"; then
18711 found_la
="$additional_libdir/lib$name.la"
18713 elif test x
$lib_type != xshared
; then
18714 if test -f "$additional_libdir/lib$name.$libext"; then
18715 found_dir
="$additional_libdir"
18716 found_a
="$additional_libdir/lib$name.$libext"
18717 if test -f "$additional_libdir/lib$name.la"; then
18718 found_la
="$additional_libdir/lib$name.la"
18723 if test "X$found_dir" = "X"; then
18724 for x
in $LDFLAGS $LTLIBXXHASH; do
18726 acl_save_prefix
="$prefix"
18727 prefix
="$acl_final_prefix"
18728 acl_save_exec_prefix
="$exec_prefix"
18729 exec_prefix
="$acl_final_exec_prefix"
18731 exec_prefix
="$acl_save_exec_prefix"
18732 prefix
="$acl_save_prefix"
18736 dir
=`echo "X$x" | sed -e 's/^X-L//'`
18737 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18739 found_so
="$dir/lib$name.$shlibext"
18740 if test -f "$dir/lib$name.la"; then
18741 found_la
="$dir/lib$name.la"
18743 elif test x
$lib_type != xshared
; then
18744 if test -f "$dir/lib$name.$libext"; then
18746 found_a
="$dir/lib$name.$libext"
18747 if test -f "$dir/lib$name.la"; then
18748 found_la
="$dir/lib$name.la"
18754 if test "X$found_dir" != "X"; then
18759 if test "X$found_dir" != "X"; then
18760 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$found_dir -l$name"
18761 if test "X$found_so" != "X"; then
18762 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
18763 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
18766 for x
in $ltrpathdirs; do
18767 if test "X$x" = "X$found_dir"; then
18772 if test -z "$haveit"; then
18773 ltrpathdirs
="$ltrpathdirs $found_dir"
18775 if test "$hardcode_direct" = yes; then
18776 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
18778 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
18779 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
18781 for x
in $rpathdirs; do
18782 if test "X$x" = "X$found_dir"; then
18787 if test -z "$haveit"; then
18788 rpathdirs
="$rpathdirs $found_dir"
18792 for x
in $LDFLAGS $LIBXXHASH; do
18794 acl_save_prefix
="$prefix"
18795 prefix
="$acl_final_prefix"
18796 acl_save_exec_prefix
="$exec_prefix"
18797 exec_prefix
="$acl_final_exec_prefix"
18799 exec_prefix
="$acl_save_exec_prefix"
18800 prefix
="$acl_save_prefix"
18802 if test "X$x" = "X-L$found_dir"; then
18807 if test -z "$haveit"; then
18808 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir"
18810 if test "$hardcode_minus_L" != no
; then
18811 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
18813 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
18819 if test "X$found_a" != "X"; then
18820 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_a"
18822 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir -l$name"
18825 additional_includedir
=
18826 case "$found_dir" in
18828 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18829 additional_includedir
="$basedir/include"
18832 if test "X$additional_includedir" != "X"; then
18833 if test "X$additional_includedir" != "X/usr/include"; then
18835 if test "X$additional_includedir" = "X/usr/local/include"; then
18836 if test -n "$GCC"; then
18838 linux
*) haveit
=yes;;
18842 if test -z "$haveit"; then
18843 for x
in $CPPFLAGS $INCXXHASH; do
18845 acl_save_prefix
="$prefix"
18846 prefix
="$acl_final_prefix"
18847 acl_save_exec_prefix
="$exec_prefix"
18848 exec_prefix
="$acl_final_exec_prefix"
18850 exec_prefix
="$acl_save_exec_prefix"
18851 prefix
="$acl_save_prefix"
18853 if test "X$x" = "X-I$additional_includedir"; then
18858 if test -z "$haveit"; then
18859 if test -d "$additional_includedir"; then
18860 INCXXHASH
="${INCXXHASH}${INCXXHASH:+ }-I$additional_includedir"
18866 if test -n "$found_la"; then
18867 save_libdir
="$libdir"
18868 case "$found_la" in
18869 */* |
*\\*) .
"$found_la" ;;
18870 *) .
"./$found_la" ;;
18872 libdir
="$save_libdir"
18873 for dep
in $dependency_libs; do
18876 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
18877 if test "X$additional_libdir" != "X/usr/lib"; then
18879 if test "X$additional_libdir" = "X/usr/local/lib"; then
18880 if test -n "$GCC"; then
18882 linux
*) haveit
=yes;;
18886 if test -z "$haveit"; then
18888 for x
in $LDFLAGS $LIBXXHASH; do
18890 acl_save_prefix
="$prefix"
18891 prefix
="$acl_final_prefix"
18892 acl_save_exec_prefix
="$exec_prefix"
18893 exec_prefix
="$acl_final_exec_prefix"
18895 exec_prefix
="$acl_save_exec_prefix"
18896 prefix
="$acl_save_prefix"
18898 if test "X$x" = "X-L$additional_libdir"; then
18903 if test -z "$haveit"; then
18904 if test -d "$additional_libdir"; then
18905 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$additional_libdir"
18909 for x
in $LDFLAGS $LTLIBXXHASH; do
18911 acl_save_prefix
="$prefix"
18912 prefix
="$acl_final_prefix"
18913 acl_save_exec_prefix
="$exec_prefix"
18914 exec_prefix
="$acl_final_exec_prefix"
18916 exec_prefix
="$acl_save_exec_prefix"
18917 prefix
="$acl_save_prefix"
18919 if test "X$x" = "X-L$additional_libdir"; then
18924 if test -z "$haveit"; then
18925 if test -d "$additional_libdir"; then
18926 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$additional_libdir"
18933 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
18934 if test "$enable_rpath" != no
; then
18936 for x
in $rpathdirs; do
18937 if test "X$x" = "X$dir"; then
18942 if test -z "$haveit"; then
18943 rpathdirs
="$rpathdirs $dir"
18946 for x
in $ltrpathdirs; do
18947 if test "X$x" = "X$dir"; then
18952 if test -z "$haveit"; then
18953 ltrpathdirs
="$ltrpathdirs $dir"
18958 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18961 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18964 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$dep"
18965 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$dep"
18971 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
18972 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
18973 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l$name"
18975 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l:lib$name.$libext"
18976 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l:lib$name.$libext"
18983 if test "X$rpathdirs" != "X"; then
18984 if test -n "$hardcode_libdir_separator"; then
18986 for found_dir
in $rpathdirs; do
18987 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18989 acl_save_libdir
="$libdir"
18991 eval flag
=\"$hardcode_libdir_flag_spec\"
18992 libdir
="$acl_save_libdir"
18993 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
18995 for found_dir
in $rpathdirs; do
18996 acl_save_libdir
="$libdir"
18997 libdir
="$found_dir"
18998 eval flag
=\"$hardcode_libdir_flag_spec\"
18999 libdir
="$acl_save_libdir"
19000 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
19004 if test "X$ltrpathdirs" != "X"; then
19005 for found_dir
in $ltrpathdirs; do
19006 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-R$found_dir"
19011 ac_save_CPPFLAGS
="$CPPFLAGS"
19013 for element
in $INCXXHASH; do
19015 for x
in $CPPFLAGS; do
19017 acl_save_prefix
="$prefix"
19018 prefix
="$acl_final_prefix"
19019 acl_save_exec_prefix
="$exec_prefix"
19020 exec_prefix
="$acl_final_exec_prefix"
19022 exec_prefix
="$acl_save_exec_prefix"
19023 prefix
="$acl_save_prefix"
19025 if test "X$x" = "X$element"; then
19030 if test -z "$haveit"; then
19031 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
19036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxxhash" >&5
19037 $as_echo_n "checking for libxxhash... " >&6; }
19038 if ${ac_cv_libxxhash+:} false
; then :
19039 $as_echo_n "(cached) " >&6
19042 ac_save_LIBS
="$LIBS"
19043 LIBS
="$LIBS $LIBXXHASH"
19044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19045 /* end confdefs.h. */
19046 #include <xxhash.h>
19050 XXH32("foo", 3, 0);
19056 if ac_fn_c_try_link
"$LINENO"; then :
19057 ac_cv_libxxhash
=yes
19061 rm -f core conftest.err conftest.
$ac_objext \
19062 conftest
$ac_exeext conftest.
$ac_ext
19063 LIBS
="$ac_save_LIBS"
19066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxxhash" >&5
19067 $as_echo "$ac_cv_libxxhash" >&6; }
19068 if test "$ac_cv_libxxhash" = yes; then
19071 $as_echo "#define HAVE_LIBXXHASH 1" >>confdefs.h
19073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libxxhash" >&5
19074 $as_echo_n "checking how to link with libxxhash... " >&6; }
19075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXXHASH" >&5
19076 $as_echo "$LIBXXHASH" >&6; }
19079 CPPFLAGS
="$ac_save_CPPFLAGS"
19089 if test "$HAVE_LIBXXHASH" != yes; then
19090 if test "$with_xxhash" = yes; then
19091 as_fn_error $?
"xxhash is missing or unusable" "$LINENO" 5
19094 if test "x$with_xxhash" = "xauto"; then
19095 with_xxhash
="$HAVE_LIBXXHASH"
19099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
19100 $as_echo_n "checking whether to use xxhash... " >&6; }
19101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
19102 $as_echo "$with_xxhash" >&6; }
19106 if test "${nativefile}" != ""; then
19107 case "${nativefile}" in
19108 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
19109 * ) GDB_NM_FILE
="${nativefile}"
19111 ac_config_links
="$ac_config_links nm.h:$GDB_NM_FILE"
19114 cat >>confdefs.h
<<_ACEOF
19115 #define GDB_NM_FILE "${GDB_NM_FILE}"
19123 for ac_prog
in xsltproc
19125 # Extract the first word of "$ac_prog", so it can be a program name with args.
19126 set dummy
$ac_prog; ac_word
=$2
19127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19128 $as_echo_n "checking for $ac_word... " >&6; }
19129 if ${ac_cv_path_XSLTPROC+:} false
; then :
19130 $as_echo_n "(cached) " >&6
19134 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
19137 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19138 for as_dir
in $PATH
19141 test -z "$as_dir" && as_dir
=.
19142 for ac_exec_ext
in '' $ac_executable_extensions; do
19143 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19144 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
19145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19155 XSLTPROC
=$ac_cv_path_XSLTPROC
19156 if test -n "$XSLTPROC"; then
19157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19158 $as_echo "$XSLTPROC" >&6; }
19160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19161 $as_echo "no" >&6; }
19165 test -n "$XSLTPROC" && break
19167 test -n "$XSLTPROC" || XSLTPROC
="missing"
19169 if test "x$USE_MAINTAINER_MODE" = xyes
; then
19170 if test "${XSLTPROC}" = missing
; then
19171 as_fn_error $?
"unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
19179 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
19183 # Check whether we will enable the inclusion of unit tests when
19186 # The default value of this option changes depending whether we're on
19187 # development mode (in which case it's "true") or not (in which case
19189 # Check whether --enable-unit-tests was given.
19190 if test "${enable_unit_tests+set}" = set; then :
19191 enableval
=$enable_unit_tests; case "${enableval}" in
19192 yes) enable_unittests
=true
;;
19193 no
) enable_unittests
=false
;;
19194 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
19197 enable_unittests
=$development
19201 if $enable_unittests; then
19203 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
19206 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_UNITTESTS_OBS) selftest-arch.o"
19207 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_UNITTESTS_SRCS) selftest-arch.c"
19213 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19214 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$gdb_ac_transform"`
19215 if test "x$GDB_TRANSFORM_NAME" = x
; then
19216 GDB_TRANSFORM_NAME
=gdb
19221 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19222 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$gdb_ac_transform"`
19223 if test "x$GCORE_TRANSFORM_NAME" = x
; then
19224 GCORE_TRANSFORM_NAME
=gcore
19228 ac_config_files
="$ac_config_files gcore"
19230 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
19233 cat >confcache
<<\_ACEOF
19234 # This file is a shell script that caches the results of configure
19235 # tests run on this system so they can be shared between configure
19236 # scripts and configure runs, see configure's option --config-cache.
19237 # It is not useful on other systems. If it contains results you don't
19238 # want to keep, you may remove or edit it.
19240 # config.status only pays attention to the cache file if you give it
19241 # the --recheck option to rerun configure.
19243 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19244 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19245 # following values.
19249 # The following way of writing the cache mishandles newlines in values,
19250 # but we know of no workaround that is simple, portable, and efficient.
19251 # So, we kill variables containing newlines.
19252 # Ultrix sh set writes to stderr and can't be redirected directly,
19253 # and sets the high bit in the cache file unless we assign to the vars.
19255 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19256 eval ac_val
=\$
$ac_var
19260 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19261 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19264 _ | IFS | as_nl
) ;; #(
19265 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
19266 *) { eval $ac_var=; unset $ac_var;} ;;
19272 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19273 *${as_nl}ac_space
=\
*)
19274 # `set' does not quote correctly, so add quotes: double-quote
19275 # substitution turns \\\\ into \\, and sed turns \\ into \.
19278 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19281 # `set' quotes correctly as required by POSIX, so do not add quotes.
19282 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19291 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19293 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19295 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
19296 if test -w "$cache_file"; then
19297 if test "x$cache_file" != "x/dev/null"; then
19298 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19299 $as_echo "$as_me: updating cache $cache_file" >&6;}
19300 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
19301 cat confcache
>"$cache_file"
19303 case $cache_file in #(
19305 mv -f confcache
"$cache_file"$$
&&
19306 mv -f "$cache_file"$$
"$cache_file" ;; #(
19308 mv -f confcache
"$cache_file" ;;
19313 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19314 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19319 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19320 # Let make expand exec_prefix.
19321 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19323 DEFS
=-DHAVE_CONFIG_H
19328 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19329 # 1. Remove the extension, and $U if already installed.
19330 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
19331 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
19332 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19333 # will be set to the directory where LIBOBJS objects are built.
19334 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19335 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
19337 LIBOBJS
=$ac_libobjs
19339 LTLIBOBJS
=$ac_ltlibobjs
19342 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19343 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
19344 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19346 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
19347 as_fn_error $?
"conditional \"HAVE_PYTHON\" was never defined.
19348 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19350 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
19351 as_fn_error $?
"conditional \"HAVE_GUILE\" was never defined.
19352 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19356 : "${CONFIG_STATUS=./config.status}"
19358 ac_clean_files_save
=$ac_clean_files
19359 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19360 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19361 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19363 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19365 # Generated by $as_me.
19366 # Run this file to recreate the current configuration.
19367 # Compiler output produced by configure, useful for debugging
19368 # configure, is in config.log if it exists.
19371 ac_cs_recheck=false
19374 SHELL=\${CONFIG_SHELL-$SHELL}
19377 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
19378 ## -------------------- ##
19379 ## M4sh Initialization. ##
19380 ## -------------------- ##
19382 # Be more Bourne compatible
19383 DUALCASE
=1; export DUALCASE
# for MKS sh
19384 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
19387 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19388 # is contrary to our usage. Disable this feature.
19389 alias -g '${1+"$@"}'='"$@"'
19390 setopt NO_GLOB_SUBST
19392 case `(set -o) 2>/dev/null` in #(
19404 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19405 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19406 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19407 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19408 # Prefer a ksh shell builtin over an external printf program on Solaris,
19409 # but without wasting forks for bash or zsh.
19410 if test -z "$BASH_VERSION$ZSH_VERSION" \
19411 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19412 as_echo='print
-r --'
19413 as_echo_n='print
-rn --'
19414 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19415 as_echo='printf %s
\n'
19416 as_echo_n='printf %s
'
19418 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19419 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
19420 as_echo_n='/usr
/ucb
/echo -n'
19422 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19423 as_echo_n_body='eval
19427 expr "X$arg" : "X\\(.*\\)$as_nl";
19428 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19430 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
19432 export as_echo_n_body
19433 as_echo_n='sh
-c $as_echo_n_body as_echo
'
19435 export as_echo_body
19436 as_echo='sh
-c $as_echo_body as_echo
'
19439 # The user is always right.
19440 if test "${PATH_SEPARATOR+set}" != set; then
19442 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19443 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19450 # We need space, tab and new line, in precisely that order. Quoting is
19451 # there to prevent editors from complaining about space-tab.
19452 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19453 # splitting by setting IFS to empty value.)
19456 # Find who we are. Look in the path if we contain no directory separator.
19459 *[\\/]* ) as_myself=$0 ;;
19460 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19461 for as_dir in $PATH
19464 test -z "$as_dir" && as_dir=.
19465 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19471 # We did not find ourselves, most probably we were run as `sh COMMAND'
19472 # in which case we are not to be found in the path.
19473 if test "x$as_myself" = x
; then
19476 if test ! -f "$as_myself"; then
19477 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19481 # Unset variables that we do not need and which cause bugs (e.g. in
19482 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19483 # suppresses any "Segmentation fault" message there. '((' could
19484 # trigger a bug in pdksh 5.2.14.
19485 for as_var
in BASH_ENV ENV MAIL MAILPATH
19486 do eval test x\
${$as_var+set} = xset \
19487 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
19500 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
19503 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19504 # ----------------------------------------
19505 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19506 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19507 # script with STATUS, using 1 if that was 0.
19510 as_status
=$1; test $as_status -eq 0 && as_status
=1
19512 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
19513 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19515 $as_echo "$as_me: error: $2" >&2
19516 as_fn_exit
$as_status
19520 # as_fn_set_status STATUS
19521 # -----------------------
19522 # Set $? to STATUS, without forking.
19523 as_fn_set_status
()
19526 } # as_fn_set_status
19528 # as_fn_exit STATUS
19529 # -----------------
19530 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19534 as_fn_set_status
$1
19540 # Portably unset VAR.
19543 { eval $1=; unset $1;}
19545 as_unset
=as_fn_unset
19546 # as_fn_append VAR VALUE
19547 # ----------------------
19548 # Append the text in VALUE to the end of the definition contained in VAR. Take
19549 # advantage of any shell optimizations that allow amortized linear growth over
19550 # repeated appends, instead of the typical quadratic growth present in naive
19552 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
19553 eval 'as_fn_append ()
19564 # as_fn_arith ARG...
19565 # ------------------
19566 # Perform arithmetic evaluation on the ARGs, and store the result in the
19567 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19568 # must be portable across $(()) and expr.
19569 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
19570 eval 'as_fn_arith ()
19577 as_val
=`expr "$@" || test $? -eq 1`
19582 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
19583 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
19589 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19590 as_basename
=basename
19595 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
19601 as_me
=`$as_basename -- "$0" ||
19602 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19603 X"$0" : 'X\(//\)$' \| \
19604 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19606 sed '/^.*\/\([^/][^/]*\)\/*$/{
19620 # Avoid depending upon Character Ranges.
19621 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19622 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19623 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19624 as_cr_digits
='0123456789'
19625 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19627 ECHO_C
= ECHO_N
= ECHO_T
=
19628 case `echo -n x` in #(((((
19630 case `echo 'xy\c'` in
19631 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
19633 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
19640 rm -f conf$$ conf$$.exe conf$$.
file
19641 if test -d conf$$.dir
; then
19642 rm -f conf$$.dir
/conf$$.
file
19645 mkdir conf$$.dir
2>/dev
/null
19647 if (echo >conf$$.
file) 2>/dev
/null
; then
19648 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19650 # ... but there are two gotchas:
19651 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19652 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19653 # In both cases, we have to default to `cp -pR'.
19654 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
19656 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19664 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
19665 rmdir conf$$.dir
2>/dev
/null
19670 # Create "$as_dir" as a directory, including parents if necessary.
19675 -*) as_dir
=.
/$as_dir;;
19677 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
19681 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19682 *) as_qdir
=$as_dir;;
19684 as_dirs
="'$as_qdir' $as_dirs"
19685 as_dir
=`$as_dirname -- "$as_dir" ||
19686 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19687 X"$as_dir" : 'X\(//\)[^/]' \| \
19688 X"$as_dir" : 'X\(//\)$' \| \
19689 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19690 $as_echo X"$as_dir" |
19691 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19695 /^X\(\/\/\)[^/].*/{
19708 test -d "$as_dir" && break
19710 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19711 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
19715 if mkdir
-p .
2>/dev
/null
; then
19716 as_mkdir_p
='mkdir -p "$as_dir"'
19718 test -d .
/-p && rmdir .
/-p
19723 # as_fn_executable_p FILE
19724 # -----------------------
19725 # Test if FILE is an executable regular file.
19726 as_fn_executable_p
()
19728 test -f "$1" && test -x "$1"
19729 } # as_fn_executable_p
19730 as_test_x
='test -x'
19731 as_executable_p
=as_fn_executable_p
19733 # Sed expression to map a string onto a valid CPP name.
19734 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19736 # Sed expression to map a string onto a valid variable name.
19737 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19741 ## ----------------------------------- ##
19742 ## Main body of $CONFIG_STATUS script. ##
19743 ## ----------------------------------- ##
19745 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
19747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19748 # Save the log message, to keep $0 and so on meaningful, and to
19749 # report actual input values of CONFIG_FILES etc. instead of their
19750 # values after options handling.
19752 This file was extended by $as_me, which was
19753 generated by GNU Autoconf 2.69. Invocation command line was
19755 CONFIG_FILES = $CONFIG_FILES
19756 CONFIG_HEADERS = $CONFIG_HEADERS
19757 CONFIG_LINKS = $CONFIG_LINKS
19758 CONFIG_COMMANDS = $CONFIG_COMMANDS
19761 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19766 case $ac_config_files in *"
19767 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
19770 case $ac_config_headers in *"
19771 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
19775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19776 # Files that config.status was made for.
19777 config_files="$ac_config_files"
19778 config_headers="$ac_config_headers"
19779 config_links="$ac_config_links"
19780 config_commands="$ac_config_commands"
19784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19786 \`$as_me' instantiates files and other configuration actions
19787 from templates according to the current configuration. Unless the files
19788 and actions are specified as TAGs, all are instantiated by default.
19790 Usage: $0 [OPTION]... [TAG]...
19792 -h, --help print this help, then exit
19793 -V, --version print version number and configuration settings, then exit
19794 --config print configuration, then exit
19795 -q, --quiet, --silent
19796 do not print progress messages
19797 -d, --debug don't remove temporary files
19798 --recheck update $as_me by reconfiguring in the same conditions
19799 --file=FILE[:TEMPLATE]
19800 instantiate the configuration file FILE
19801 --header=FILE[:TEMPLATE]
19802 instantiate the configuration header FILE
19804 Configuration files:
19807 Configuration headers:
19810 Configuration links:
19813 Configuration commands:
19816 Report bugs to the package provider."
19819 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19820 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19823 configured by $0, generated by GNU Autoconf 2.69,
19824 with options \\"\$ac_cs_config\\"
19826 Copyright (C) 2012 Free Software Foundation, Inc.
19827 This config.status script is free software; the Free Software Foundation
19828 gives unlimited permission to copy, distribute and modify it."
19834 test -n "\$AWK" || AWK=awk
19837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19838 # The default lists apply if the user does not specify any file.
19844 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19845 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
19849 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19861 # Handling of the options.
19862 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19864 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
19865 $as_echo "$ac_cs_version"; exit ;;
19866 --config |
--confi |
--conf |
--con |
--co |
--c )
19867 $as_echo "$ac_cs_config"; exit ;;
19868 --debug |
--debu |
--deb |
--de |
--d |
-d )
19870 --file |
--fil |
--fi |
--f )
19873 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19874 '') as_fn_error $?
"missing file argument" ;;
19876 as_fn_append CONFIG_FILES
" '$ac_optarg'"
19877 ac_need_defaults
=false
;;
19878 --header |
--heade |
--head |
--hea )
19881 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19883 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
19884 ac_need_defaults
=false
;;
19886 # Conflict between --help and --header
19887 as_fn_error $?
"ambiguous option: \`$1'
19888 Try \`$0 --help' for more information.";;
19889 --help |
--hel |
-h )
19890 $as_echo "$ac_cs_usage"; exit ;;
19891 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19892 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19895 # This is an error.
19896 -*) as_fn_error $?
"unrecognized option: \`$1'
19897 Try \`$0 --help' for more information." ;;
19899 *) as_fn_append ac_config_targets
" $1"
19900 ac_need_defaults
=false
;;
19906 ac_configure_extra_args
=
19908 if $ac_cs_silent; then
19910 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19915 if \$ac_cs_recheck; then
19916 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19918 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19919 CONFIG_SHELL='$SHELL'
19920 export CONFIG_SHELL
19925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19929 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19930 ## Running $as_me. ##
19936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19940 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
19941 GDB_NM_FILE=$GDB_NM_FILE
19945 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19947 # Handling of arguments.
19948 for ac_config_target
in $ac_config_targets
19950 case $ac_config_target in
19951 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
19952 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
19953 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
19954 "nm.h") CONFIG_LINKS
="$CONFIG_LINKS nm.h:$GDB_NM_FILE" ;;
19955 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
19956 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19957 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
19958 "gdb-gdb.py") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.py" ;;
19959 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
19960 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
19962 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19967 # If the user did not use the arguments to specify the items to instantiate,
19968 # then the envvar interface is used. Set only those that are not.
19969 # We use the long form for the default assignment because of an extremely
19970 # bizarre bug on SunOS 4.1.3.
19971 if $ac_need_defaults; then
19972 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19973 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
19974 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
19975 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
19978 # Have a temporary directory for convenience. Make it in the build tree
19979 # simply because there is no reason against having it here, and in addition,
19980 # creating and moving files from /tmp can sometimes cause problems.
19981 # Hook for its removal unless debugging.
19982 # Note that there is a small window in which the directory will not be cleaned:
19983 # after its creation but before its name has been assigned to `$tmp'.
19987 trap 'exit_status=$?
19988 : "${ac_tmp:=$tmp}"
19989 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19991 trap 'as_fn_exit 1' 1 2 13 15
19993 # Create a (secure) tmp directory for tmp files.
19996 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20000 tmp
=.
/conf$$
-$RANDOM
20001 (umask 077 && mkdir
"$tmp")
20002 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
20005 # Set up the scripts for CONFIG_FILES section.
20006 # No need to generate them if there are no CONFIG_FILES.
20007 # This happens for instance with `./config.status config.h'.
20008 if test -n "$CONFIG_FILES"; then
20010 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
20011 ac_cs_awk_getline
=:
20012 ac_cs_awk_pipe_init
=
20013 ac_cs_awk_read_file
='
20014 while ((getline aline < (F[key])) > 0)
20017 ac_cs_awk_pipe_fini
=
20019 ac_cs_awk_getline
=false
20020 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
20021 ac_cs_awk_read_file
='
20023 print "cat " F[key] " &&"
20024 '$ac_cs_awk_pipe_init
20025 # The final `:' finishes the AND list.
20026 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
20028 ac_cr
=`echo X | tr X '\015'`
20029 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20030 # But we know of no other shell where ac_cr would be empty at this
20031 # point, so we can use a bashism as a fallback.
20032 if test "x$ac_cr" = x
; then
20033 eval ac_cr
=\$
\'\\r
\'
20035 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20036 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20039 ac_cs_awk_cr
=$ac_cr
20042 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20045 # Create commands to substitute file output variables.
20047 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20048 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
20049 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
20052 } >conf$
$files.sh
&&
20053 . .
/conf$
$files.sh ||
20054 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
20055 rm -f conf$
$files.sh
20058 echo "cat >conf$$subs.awk <<_ACEOF" &&
20059 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20061 } >conf$$subs.sh ||
20062 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20063 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20065 for ac_last_try in false false false false false :; do
20066 . ./conf$$subs.sh ||
20067 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20069 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
20070 if test $ac_delim_n = $ac_delim_num; then
20072 elif $ac_last_try; then
20073 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20075 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20078 rm -f conf$$subs.sh
20080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20081 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
20085 s/^/S["/; s
/!.
*/"]=/
20095 s/\(.\{148\}\)..*/\1/
20097 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
20102 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20109 s/\(.\{148\}\)..*/\1/
20111 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
20115 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20120 ' <conf$$subs.awk | sed '
20125 ' >>$CONFIG_STATUS || ac_write_fail=1
20126 rm -f conf$$subs.awk
20127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20129 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
20130 for (key in S) S_is_set[key] = 1
20132 \$ac_cs_awk_pipe_init
20136 nfields = split(line, field, "@
")
20138 len = length(field[1])
20139 for (i = 2; i < nfields; i++) {
20141 keylen = length(key)
20142 if (S_is_set[key]) {
20144 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20145 len += length(value) + length(field[++i])
20150 if (nfields == 3 && !substed) {
20152 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
20153 \$ac_cs_awk_read_file
20159 \$ac_cs_awk_pipe_fini
20162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20163 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20164 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
20167 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
20168 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
20171 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20172 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
20173 # trailing colons and then remove the whole line if VPATH becomes empty
20174 # (actually we leave an empty line to preserve line numbers).
20175 if test "x
$srcdir" = x.; then
20176 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20195 fi # test -n "$CONFIG_FILES"
20197 # Set up the scripts for CONFIG_HEADERS section.
20198 # No need to generate them if there are no CONFIG_HEADERS.
20199 # This happens for instance with `./config.status Makefile'.
20200 if test -n "$CONFIG_HEADERS"; then
20201 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
20205 # Transform confdefs.h into an awk script `defines.awk', embedded as
20206 # here-document in config.status, that substitutes the proper values into
20207 # config.h.in to produce config.h.
20209 # Create a delimiter string that does not exist in confdefs.h, to ease
20210 # handling of long lines.
20212 for ac_last_try in false false :; do
20213 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
20214 if test -z "$ac_tt"; then
20216 elif $ac_last_try; then
20217 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
20219 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20223 # For the awk script, D is an array of macro values keyed by name,
20224 # likewise P contains macro parameters if any. Preserve backslash
20225 # newline sequences.
20227 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20229 s/.\{148\}/&'"$ac_delim"'/g
20232 s/^[ ]*#[ ]*define[ ][ ]*/ /
20239 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
20241 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
20245 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
20246 D["\
1"]=" \
3\\\\\\n
"\\/p
20248 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
20253 s/.\{148\}/&'"$ac_delim"'/g
20258 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
20261 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
20263 ' <confdefs.h | sed '
20264 s/'"$ac_delim"'/"\\\
20265 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20268 for (key in D) D_is_set[key] = 1
20271 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20273 split(line, arg, " ")
20274 if (arg[1] == "#") {
20278 defundef
= substr
(arg
[1], 2)
20281 split(mac1
, mac2
, "(") #)
20283 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
20284 if (D_is_set
[macro
]) {
20285 # Preserve the white space surrounding the "#".
20286 print prefix
"define", macro P
[macro
] D
[macro
]
20289 # Replace #undef with comments. This is necessary, for example,
20290 # in the case of _POSIX_SOURCE, which is predefined and required
20291 # on some systems where configure will not decide to define it.
20292 if (defundef
== "undef") {
20293 print
"/*", prefix defundef
, macro
, "*/"
20301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20302 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
20303 fi # test -n "$CONFIG_HEADERS"
20306 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
20311 :[FHLC
]) ac_mode
=$ac_tag; continue;;
20313 case $ac_mode$ac_tag in
20315 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
20316 :[FH
]-) ac_tag
=-:-;;
20317 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
20334 -) ac_f
="$ac_tmp/stdin";;
20335 *) # Look for the file first in the build tree, then in the source tree
20336 # (if the path is not absolute). The absolute path cannot be DOS-style,
20337 # because $ac_f cannot contain `:'.
20341 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
20343 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20345 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20346 as_fn_append ac_file_inputs
" '$ac_f'"
20349 # Let's still pretend it is `configure' which instantiates (i.e., don't
20350 # use $as_me), people would be surprised to read:
20351 # /* config.h. Generated by config.status. */
20352 configure_input
='Generated from '`
20353 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20355 if test x
"$ac_file" != x-
; then
20356 configure_input
="$ac_file. $configure_input"
20357 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20358 $as_echo "$as_me: creating $ac_file" >&6;}
20360 # Neutralize special characters interpreted by sed in replacement strings.
20361 case $configure_input in #(
20362 *\
&* |
*\|
* |
*\\* )
20363 ac_sed_conf_input
=`$as_echo "$configure_input" |
20364 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20365 *) ac_sed_conf_input
=$configure_input;;
20369 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
20370 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
20375 ac_dir
=`$as_dirname -- "$ac_file" ||
20376 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20377 X"$ac_file" : 'X\(//\)[^/]' \| \
20378 X"$ac_file" : 'X\(//\)$' \| \
20379 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20380 $as_echo X"$ac_file" |
20381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20385 /^X\(\/\/\)[^/].*/{
20398 as_dir
="$ac_dir"; as_fn_mkdir_p
20402 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20404 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20405 # A ".." for each directory in $ac_dir_suffix.
20406 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20407 case $ac_top_builddir_sub in
20408 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20409 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
20412 ac_abs_top_builddir
=$ac_pwd
20413 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
20414 # for backward compatibility:
20415 ac_top_builddir
=$ac_top_build_prefix
20418 .
) # We are building in place.
20420 ac_top_srcdir
=$ac_top_builddir_sub
20421 ac_abs_top_srcdir
=$ac_pwd ;;
20422 [\\/]* | ?
:[\\/]* ) # Absolute name.
20423 ac_srcdir
=$srcdir$ac_dir_suffix;
20424 ac_top_srcdir
=$srcdir
20425 ac_abs_top_srcdir
=$srcdir ;;
20426 *) # Relative name.
20427 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
20428 ac_top_srcdir
=$ac_top_build_prefix$srcdir
20429 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
20431 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
20441 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20442 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
20446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20447 # If the template does not know about datarootdir, expand it.
20448 # FIXME: This hack should be removed a few years after 2.60.
20449 ac_datarootdir_hack
=; ac_datarootdir_seen
=
20460 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20461 *datarootdir
*) ac_datarootdir_seen
=yes;;
20462 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
20463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20464 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20467 ac_datarootdir_hack='
20468 s&@datadir@&$datadir&g
20469 s&@docdir@&$docdir&g
20470 s&@infodir@&$infodir&g
20471 s&@localedir@&$localedir&g
20472 s&@mandir@&$mandir&g
20473 s&\\\${datarootdir}&$datarootdir&g' ;;
20477 # Neutralize VPATH when `$srcdir' = `.'.
20478 # Shell code in configure.ac might set extrasub.
20479 # FIXME: do we really want to maintain this feature?
20480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20481 ac_sed_extra="$ac_vpsub
20484 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20486 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20487 s|@configure_input@|
$ac_sed_conf_input|
;t t
20488 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
20489 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
20490 s
&@srcdir@
&$ac_srcdir&;t t
20491 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
20492 s
&@top_srcdir@
&$ac_top_srcdir&;t t
20493 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
20494 s
&@builddir@
&$ac_builddir&;t t
20495 s
&@abs_builddir@
&$ac_abs_builddir&;t t
20496 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
20497 s
&@INSTALL@
&$ac_INSTALL&;t t
20498 $ac_datarootdir_hack
20500 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
20501 if $ac_cs_awk_getline; then
20502 $AWK -f "$ac_tmp/subs.
awk"
20504 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
20506 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
20508 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20509 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
20510 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20511 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
20512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
20513 which seems to be undefined. Please make sure it is defined" >&5
20514 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
20515 which seems to be undefined. Please make sure it is defined" >&2;}
20517 rm -f "$ac_tmp/stdin"
20519 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20520 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20522 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20528 if test x"$ac_file" != x-; then
20530 $as_echo "/* $configure_input */" \
20531 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20532 } >"$ac_tmp/config.h" \
20533 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20534 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20535 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20536 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20539 mv "$ac_tmp/config.h" "$ac_file" \
20540 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20543 $as_echo "/* $configure_input */" \
20544 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20545 || as_fn_error $? "could not create -" "$LINENO" 5
20553 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
20556 # Prefer the file from the source tree if names are identical.
20557 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
20558 ac_source=$srcdir/$ac_source
20561 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
20562 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
20564 if test ! -r "$ac_source"; then
20565 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
20569 # Try a relative symlink, then a hard link, then a copy.
20571 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
20572 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
20574 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
20575 ln "$ac_source" "$ac_file" 2>/dev/null ||
20576 cp -p "$ac_source" "$ac_file" ||
20577 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
20580 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20581 $as_echo "$as_me: executing $ac_file commands" >&6;}
20586 case $ac_file$ac_mode in
20587 "config.h":H) echo > stamp-h ;;
20588 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
20589 "nm.h":L) echo > stamp-nmh ;;
20590 "gcore":F) chmod +x gcore ;;
20598 ac_clean_files=$ac_clean_files_save
20600 test $ac_write_fail = 0 ||
20601 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20604 # configure is writing to config.log, and then calls config.status.
20605 # config.status does its own redirection, appending to config.log.
20606 # Unfortunately, on DOS this fails, as config.log is still kept open
20607 # by configure, so config.status won't be able to
write to it
; its
20608 # output is simply discarded. So we exec the FD to /dev/null,
20609 # effectively closing config.log, so it can be properly (re)opened and
20610 # appended to by config.status. When coming back to configure, we
20611 # need to make the FD available again.
20612 if test "$no_create" != yes; then
20614 ac_config_status_args
=
20615 test "$silent" = yes &&
20616 ac_config_status_args
="$ac_config_status_args --quiet"
20618 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20620 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20621 # would make configure fail if this is the last instruction.
20622 $ac_cs_success || as_fn_exit
1
20626 # CONFIG_SUBDIRS section.
20628 if test "$no_recursion" != yes; then
20630 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
20631 # so they do not pile up.
20632 ac_sub_configure_args
=
20634 eval "set x $ac_configure_args"
20638 if test -n "$ac_prev"; then
20643 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
20644 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
20645 ac_prev
=cache_file
;;
20646 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
20647 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
20650 --config-cache |
-C)
20652 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
20654 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
20656 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
20658 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
20660 --disable-option-checking)
20664 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20666 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
20670 # Always prepend --prefix to ensure using the same prefix
20671 # in subdir configurations.
20672 ac_arg
="--prefix=$prefix"
20674 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20676 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
20679 if test "$silent" = yes; then
20680 ac_sub_configure_args
="--silent $ac_sub_configure_args"
20683 # Always prepend --disable-option-checking to silence warnings, since
20684 # different subdirs can have different --enable and --with options.
20685 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
20688 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
20690 # Do not complain, so a configure script can configure whichever
20691 # parts of a large source tree are present.
20692 test -d "$srcdir/$ac_dir" ||
continue
20694 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20695 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
20696 $as_echo "$ac_msg" >&6
20697 as_dir
="$ac_dir"; as_fn_mkdir_p
20701 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20703 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20704 # A ".." for each directory in $ac_dir_suffix.
20705 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20706 case $ac_top_builddir_sub in
20707 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20708 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
20711 ac_abs_top_builddir
=$ac_pwd
20712 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
20713 # for backward compatibility:
20714 ac_top_builddir
=$ac_top_build_prefix
20717 .
) # We are building in place.
20719 ac_top_srcdir
=$ac_top_builddir_sub
20720 ac_abs_top_srcdir
=$ac_pwd ;;
20721 [\\/]* | ?
:[\\/]* ) # Absolute name.
20722 ac_srcdir
=$srcdir$ac_dir_suffix;
20723 ac_top_srcdir
=$srcdir
20724 ac_abs_top_srcdir
=$srcdir ;;
20725 *) # Relative name.
20726 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
20727 ac_top_srcdir
=$ac_top_build_prefix$srcdir
20728 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
20730 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
20735 # Check for guested configure; otherwise get Cygnus style configure.
20736 if test -f "$ac_srcdir/configure.gnu"; then
20737 ac_sub_configure
=$ac_srcdir/configure.gnu
20738 elif test -f "$ac_srcdir/configure"; then
20739 ac_sub_configure
=$ac_srcdir/configure
20740 elif test -f "$ac_srcdir/configure.in"; then
20741 # This should be Cygnus configure.
20742 ac_sub_configure
=$ac_aux_dir/configure
20744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
20745 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20749 # The recursion is here.
20750 if test -n "$ac_sub_configure"; then
20751 # Make the cache file name correct relative to the subdirectory.
20752 case $cache_file in
20753 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
20754 *) # Relative name.
20755 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
20758 { $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
20759 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20760 # The eval makes quoting arguments work.
20761 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20762 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20763 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
20769 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
20770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20771 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}