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
640 HAVE_NATIVE_GCORE_HOST
743 READLINE_TEXI_INCFLAG
772 HAVE_NATIVE_GCORE_TARGET
798 INSTALL_STRIP_PROGRAM
828 MAINTAINER_MODE_FALSE
857 program_transform_name
868 ac_subst_files
='nat_makefile_frag'
870 enable_option_checking
871 enable_maintainer_mode
874 with_separate_debug_dir
876 with_relocated_sources
878 with_auto_load_safe_path
910 enable_source_highlight
916 with_system_gdbinit_dir
918 enable_build_warnings
919 enable_gdb_build_warnings
929 with_libbabeltrace_prefix
930 with_libbabeltrace_type
933 with_libxxhash_prefix
937 ac_precious_vars
='build_alias
959 ac_subdirs_all
='testsuite
962 # Initialize some variables set by options.
964 ac_init_version
=false
965 ac_unrecognized_opts
=
967 # The variables have the same names as the options, with
968 # dashes changed to underlines.
976 program_transform_name
=s
,x
,x
,
984 # Installation directory options.
985 # These are left unexpanded so users can "make install exec_prefix=/foo"
986 # and all the variables that are supposed to be based on exec_prefix
987 # by default will actually change.
988 # Use braces instead of parens because sh, perl, etc. also accept them.
989 # (The list follows the same order as the GNU Coding Standards.)
990 bindir
='${exec_prefix}/bin'
991 sbindir
='${exec_prefix}/sbin'
992 libexecdir
='${exec_prefix}/libexec'
993 datarootdir
='${prefix}/share'
994 datadir
='${datarootdir}'
995 sysconfdir
='${prefix}/etc'
996 sharedstatedir
='${prefix}/com'
997 localstatedir
='${prefix}/var'
998 includedir
='${prefix}/include'
999 oldincludedir
='/usr/include'
1000 docdir
='${datarootdir}/doc/${PACKAGE}'
1001 infodir
='${datarootdir}/info'
1006 libdir
='${exec_prefix}/lib'
1007 localedir
='${datarootdir}/locale'
1008 mandir
='${datarootdir}/man'
1014 # If the previous option needs an argument, assign it.
1015 if test -n "$ac_prev"; then
1016 eval $ac_prev=\
$ac_option
1022 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1027 # Accept the important Cygnus configure options, so we can diagnose typos.
1029 case $ac_dashdash$ac_option in
1033 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1035 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1036 bindir
=$ac_optarg ;;
1038 -build |
--build |
--buil |
--bui |
--bu)
1039 ac_prev
=build_alias
;;
1040 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1041 build_alias
=$ac_optarg ;;
1043 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1044 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1045 ac_prev
=cache_file
;;
1046 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1047 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1048 cache_file
=$ac_optarg ;;
1050 --config-cache |
-C)
1051 cache_file
=config.cache
;;
1053 -datadir |
--datadir |
--datadi |
--datad)
1055 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1056 datadir
=$ac_optarg ;;
1058 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1059 |
--dataroo |
--dataro |
--datar)
1060 ac_prev
=datarootdir
;;
1061 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1062 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1063 datarootdir
=$ac_optarg ;;
1065 -disable-* |
--disable-*)
1066 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1069 as_fn_error $?
"invalid feature name: $ac_useropt"
1070 ac_useropt_orig
=$ac_useropt
1071 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072 case $ac_user_opts in
1074 "enable_
$ac_useropt"
1076 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1077 ac_unrecognized_sep
=', ';;
1079 eval enable_
$ac_useropt=no
;;
1081 -docdir |
--docdir |
--docdi |
--doc |
--do)
1083 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1084 docdir
=$ac_optarg ;;
1086 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1088 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1089 dvidir
=$ac_optarg ;;
1091 -enable-* |
--enable-*)
1092 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1095 as_fn_error $?
"invalid feature name: $ac_useropt"
1096 ac_useropt_orig
=$ac_useropt
1097 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098 case $ac_user_opts in
1100 "enable_
$ac_useropt"
1102 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1103 ac_unrecognized_sep
=', ';;
1105 eval enable_
$ac_useropt=\
$ac_optarg ;;
1107 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1108 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1109 |
--exec |
--exe |
--ex)
1110 ac_prev
=exec_prefix
;;
1111 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1112 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1113 |
--exec=* |
--exe=* |
--ex=*)
1114 exec_prefix
=$ac_optarg ;;
1116 -gas |
--gas |
--ga |
--g)
1117 # Obsolete; use --with-gas.
1120 -help |
--help |
--hel |
--he |
-h)
1121 ac_init_help
=long
;;
1122 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1123 ac_init_help
=recursive
;;
1124 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1125 ac_init_help
=short
;;
1127 -host |
--host |
--hos |
--ho)
1128 ac_prev
=host_alias
;;
1129 -host=* |
--host=* |
--hos=* |
--ho=*)
1130 host_alias
=$ac_optarg ;;
1132 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1134 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1136 htmldir
=$ac_optarg ;;
1138 -includedir |
--includedir |
--includedi |
--included |
--include \
1139 |
--includ |
--inclu |
--incl |
--inc)
1140 ac_prev
=includedir
;;
1141 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1142 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1143 includedir
=$ac_optarg ;;
1145 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1147 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1148 infodir
=$ac_optarg ;;
1150 -libdir |
--libdir |
--libdi |
--libd)
1152 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1153 libdir
=$ac_optarg ;;
1155 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1156 |
--libexe |
--libex |
--libe)
1157 ac_prev
=libexecdir
;;
1158 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1159 |
--libexe=* |
--libex=* |
--libe=*)
1160 libexecdir
=$ac_optarg ;;
1162 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1163 ac_prev
=localedir
;;
1164 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1165 localedir
=$ac_optarg ;;
1167 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1168 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1169 ac_prev
=localstatedir
;;
1170 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1171 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1172 localstatedir
=$ac_optarg ;;
1174 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1176 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1177 mandir
=$ac_optarg ;;
1179 -nfp |
--nfp |
--nf)
1180 # Obsolete; use --without-fp.
1183 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1184 |
--no-cr |
--no-c |
-n)
1187 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1188 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1191 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1192 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1193 |
--oldin |
--oldi |
--old |
--ol |
--o)
1194 ac_prev
=oldincludedir
;;
1195 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1196 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1197 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1198 oldincludedir
=$ac_optarg ;;
1200 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1202 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1203 prefix
=$ac_optarg ;;
1205 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1206 |
--program-pre |
--program-pr |
--program-p)
1207 ac_prev
=program_prefix
;;
1208 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1209 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1210 program_prefix
=$ac_optarg ;;
1212 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1213 |
--program-suf |
--program-su |
--program-s)
1214 ac_prev
=program_suffix
;;
1215 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1216 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1217 program_suffix
=$ac_optarg ;;
1219 -program-transform-name |
--program-transform-name \
1220 |
--program-transform-nam |
--program-transform-na \
1221 |
--program-transform-n |
--program-transform- \
1222 |
--program-transform |
--program-transfor \
1223 |
--program-transfo |
--program-transf \
1224 |
--program-trans |
--program-tran \
1225 |
--progr-tra |
--program-tr |
--program-t)
1226 ac_prev
=program_transform_name
;;
1227 -program-transform-name=* |
--program-transform-name=* \
1228 |
--program-transform-nam=* |
--program-transform-na=* \
1229 |
--program-transform-n=* |
--program-transform-=* \
1230 |
--program-transform=* |
--program-transfor=* \
1231 |
--program-transfo=* |
--program-transf=* \
1232 |
--program-trans=* |
--program-tran=* \
1233 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1234 program_transform_name
=$ac_optarg ;;
1236 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1238 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1239 pdfdir
=$ac_optarg ;;
1241 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1243 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1246 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1247 |
-silent |
--silent |
--silen |
--sile |
--sil)
1250 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1252 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1254 sbindir
=$ac_optarg ;;
1256 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1257 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1258 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1260 ac_prev
=sharedstatedir
;;
1261 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1262 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1263 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1265 sharedstatedir
=$ac_optarg ;;
1267 -site |
--site |
--sit)
1269 -site=* |
--site=* |
--sit=*)
1272 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1274 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1275 srcdir
=$ac_optarg ;;
1277 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1278 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1279 ac_prev
=sysconfdir
;;
1280 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1281 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1282 sysconfdir
=$ac_optarg ;;
1284 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1285 ac_prev
=target_alias
;;
1286 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1287 target_alias
=$ac_optarg ;;
1289 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1292 -version |
--version |
--versio |
--versi |
--vers |
-V)
1293 ac_init_version
=: ;;
1296 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1297 # Reject names that are not valid shell variable names.
1298 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1299 as_fn_error $?
"invalid package name: $ac_useropt"
1300 ac_useropt_orig
=$ac_useropt
1301 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1302 case $ac_user_opts in
1306 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1307 ac_unrecognized_sep
=', ';;
1309 eval with_
$ac_useropt=\
$ac_optarg ;;
1311 -without-* |
--without-*)
1312 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1313 # Reject names that are not valid shell variable names.
1314 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1315 as_fn_error $?
"invalid package name: $ac_useropt"
1316 ac_useropt_orig
=$ac_useropt
1317 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1318 case $ac_user_opts in
1322 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1323 ac_unrecognized_sep
=', ';;
1325 eval with_
$ac_useropt=no
;;
1328 # Obsolete; use --with-x.
1331 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1332 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1333 ac_prev
=x_includes
;;
1334 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1335 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1336 x_includes
=$ac_optarg ;;
1338 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1339 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1340 ac_prev
=x_libraries
;;
1341 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1342 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1343 x_libraries
=$ac_optarg ;;
1345 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1346 Try \`$0 --help' for more information"
1350 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1351 # Reject names that are not valid shell variable names.
1352 case $ac_envvar in #(
1353 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1354 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1356 eval $ac_envvar=\
$ac_optarg
1357 export $ac_envvar ;;
1360 # FIXME: should be removed in autoconf 3.0.
1361 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1362 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1363 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1364 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1370 if test -n "$ac_prev"; then
1371 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1372 as_fn_error $?
"missing argument to $ac_option"
1375 if test -n "$ac_unrecognized_opts"; then
1376 case $enable_option_checking in
1378 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1379 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1383 # Check all directory arguments for consistency.
1384 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1385 datadir sysconfdir sharedstatedir localstatedir includedir \
1386 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1387 libdir localedir mandir
1389 eval ac_val
=\$
$ac_var
1390 # Remove trailing slashes.
1393 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1394 eval $ac_var=\
$ac_val;;
1396 # Be sure to have absolute directory names.
1398 [\\/$
]* | ?
:[\\/]* ) continue;;
1399 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1401 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1404 # There might be people who depend on the old broken behavior: `$host'
1405 # used to hold the argument of --host etc.
1406 # FIXME: To remove some day.
1409 target
=$target_alias
1411 # FIXME: To remove some day.
1412 if test "x$host_alias" != x
; then
1413 if test "x$build_alias" = x
; then
1414 cross_compiling
=maybe
1415 elif test "x$build_alias" != "x$host_alias"; then
1421 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1423 test "$silent" = yes && exec 6>/dev
/null
1426 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1427 ac_ls_di
=`ls -di .` &&
1428 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1429 as_fn_error $?
"working directory cannot be determined"
1430 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1431 as_fn_error $?
"pwd does not report name of working directory"
1434 # Find the source files, if location was not specified.
1435 if test -z "$srcdir"; then
1436 ac_srcdir_defaulted
=yes
1437 # Try the directory containing this script, then the parent directory.
1438 ac_confdir
=`$as_dirname -- "$as_myself" ||
1439 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1440 X"$as_myself" : 'X\(//\)[^/]' \| \
1441 X"$as_myself" : 'X\(//\)$' \| \
1442 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1443 $as_echo X"$as_myself" |
1444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1462 if test ! -r "$srcdir/$ac_unique_file"; then
1466 ac_srcdir_defaulted
=no
1468 if test ! -r "$srcdir/$ac_unique_file"; then
1469 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1470 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1472 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1474 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1476 # When building in place, set srcdir=.
1477 if test "$ac_abs_confdir" = "$ac_pwd"; then
1480 # Remove unnecessary trailing slashes from srcdir.
1481 # Double slashes in file names in object file debugging info
1482 # mess up M-x gdb in Emacs.
1484 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1486 for ac_var
in $ac_precious_vars; do
1487 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1488 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1489 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1490 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1494 # Report the --help message.
1496 if test "$ac_init_help" = "long"; then
1497 # Omit some internal or obsolete options to make the list less imposing.
1498 # This message is too long to be a string in the A/UX 3.1 sh.
1500 \`configure' configures this package to adapt to many kinds of systems.
1502 Usage: $0 [OPTION]... [VAR=VALUE]...
1504 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1505 VAR=VALUE. See below for descriptions of some of the useful variables.
1507 Defaults for the options are specified in brackets.
1510 -h, --help display this help and exit
1511 --help=short display options specific to this package
1512 --help=recursive display the short help of all the included packages
1513 -V, --version display version information and exit
1514 -q, --quiet, --silent do not print \`checking ...' messages
1515 --cache-file=FILE cache test results in FILE [disabled]
1516 -C, --config-cache alias for \`--cache-file=config.cache'
1517 -n, --no-create do not create output files
1518 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1520 Installation directories:
1521 --prefix=PREFIX install architecture-independent files in PREFIX
1522 [$ac_default_prefix]
1523 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1526 By default, \`make install' will install all the files in
1527 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1528 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1529 for instance \`--prefix=\$HOME'.
1531 For better control, use the options below.
1533 Fine tuning of the installation directories:
1534 --bindir=DIR user executables [EPREFIX/bin]
1535 --sbindir=DIR system admin executables [EPREFIX/sbin]
1536 --libexecdir=DIR program executables [EPREFIX/libexec]
1537 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1538 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1539 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1540 --libdir=DIR object code libraries [EPREFIX/lib]
1541 --includedir=DIR C header files [PREFIX/include]
1542 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1543 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1544 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1545 --infodir=DIR info documentation [DATAROOTDIR/info]
1546 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1547 --mandir=DIR man documentation [DATAROOTDIR/man]
1548 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1549 --htmldir=DIR html documentation [DOCDIR]
1550 --dvidir=DIR dvi documentation [DOCDIR]
1551 --pdfdir=DIR pdf documentation [DOCDIR]
1552 --psdir=DIR ps documentation [DOCDIR]
1558 --program-prefix=PREFIX prepend PREFIX to installed program names
1559 --program-suffix=SUFFIX append SUFFIX to installed program names
1560 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1563 --x-includes=DIR X include files are
in DIR
1564 --x-libraries=DIR X library files are
in DIR
1567 --build=BUILD configure
for building on BUILD
[guessed
]
1568 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1569 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1573 if test -n "$ac_init_help"; then
1578 --disable-option-checking ignore unrecognized
--enable/--with options
1579 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1580 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1581 --enable-maintainer-mode
1582 enable make rules and dependencies not useful
(and
1583 sometimes confusing
) to the casual installer
1584 --enable-plugins Enable support
for plugins
1585 --disable-largefile omit support
for large files
1586 --enable-targets=TARGETS
1587 alternative target configurations
1588 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1589 --disable-gdbmi disable machine-interface
(MI
)
1590 --enable-tui enable full-screen terminal user interface
(TUI
)
1591 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1592 --enable-profiling enable profiling of GDB
1593 --enable-codesign=CERT sign gdb with
'codesign -s CERT'
1594 --disable-rpath do not hardcode runtime library paths
1595 --enable-source-highlight
1596 enable source-highlight
for source listings
1597 --enable-werror treat compile warnings as errors
1598 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1599 --enable-gdb-build-warnings
1600 enable GDB specific build-time compiler warnings
if
1602 --enable-ubsan enable undefined behavior sanitizer
(auto
/yes
/no
)
1603 --enable-sim link gdb with simulator
1604 --enable-libctf Handle .ctf type-info sections
[default
=yes]
1605 --enable-unit-tests Enable the inclusion of unit tests when compiling
1609 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1610 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1611 --with-separate-debug-dir=PATH
1612 look for global separate debug info
in this path
1614 --with-gdb-datadir=PATH
look for global separate data files
in this path
1616 --with-relocated-sources=PATH
1617 automatically relocate this path
for source files
1618 --with-auto-load-dir=PATH
1619 directories from
which to load auto-loaded scripts
1620 [$debugdir:$datadir/auto-load
]
1621 --with-auto-load-safe-path=PATH
1622 directories safe to hold auto-loaded files
1623 [--with-auto-load-dir]
1624 --without-auto-load-safe-path
1625 do not restrict auto-loaded files locations
1626 --with-debuginfod Enable debuginfo lookups with debuginfod
1628 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1629 --with-curses use the curses library instead of the termcap
1631 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1632 --with-bugurl=URL Direct users to URL to report a bug
1633 --with-system-zlib use installed libz
1634 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1635 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1636 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1637 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1638 --with-iconv-bin=PATH specify where to find the iconv program
1639 --with-system-readline use installed readline library
1640 --with-jit-reader-dir=PATH
1641 directory to load the JIT readers from
1642 --with-expat include expat support (auto/yes/no)
1643 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1644 --without-libexpat-prefix don't search
for libexpat
in includedir and libdir
1645 --with-libexpat-type=TYPE
type of library to search
for (auto
/static
/shared
)
1646 --with-libgmp-prefix[=DIR
] search
for libgmp
in DIR
/include and DIR
/lib
1647 --without-libgmp-prefix don
't search for libgmp in includedir and libdir
1648 --with-libgmp-type=TYPE type of library to search for (auto/static/shared)
1649 --with-mpfr include MPFR support (auto/yes/no)
1650 --with-libmpfr-prefix[=DIR] search for libmpfr in DIR/include and DIR/lib
1651 --without-libmpfr-prefix don't search
for libmpfr
in includedir and libdir
1652 --with-libmpfr-type=TYPE
type of library to search
for (auto
/static
/shared
)
1653 --with-python[=PYTHON
] include python support
1654 (auto
/yes
/no
/<python-program
>)
1655 --with-python-libdir[=DIR
]
1656 search
for python
's libraries in DIR
1657 --with-guile[=GUILE] include guile support
1658 (auto/yes/no/<guile-version>/<pkg-config-program>)
1659 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1660 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1661 --without-libipt-prefix don't search
for libipt
in includedir and libdir
1662 --with-libipt-type=TYPE
type of library to search
for (auto
/static
/shared
)
1663 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1664 --with-system-gdbinit=PATH
1665 automatically load a system-wide gdbinit
file
1666 --with-system-gdbinit-dir=PATH
1667 automatically load system-wide gdbinit files from
1669 --with-lzma support lzma compression
(auto
/yes
/no
)
1670 --with-liblzma-prefix[=DIR
] search
for liblzma
in DIR
/include and DIR
/lib
1671 --without-liblzma-prefix don
't search for liblzma in includedir and libdir
1672 --with-liblzma-type=TYPE type of library to search for (auto/static/shared)
1673 --with-tcl directory containing tcl configuration (tclConfig.sh)
1674 --with-tk directory containing tk configuration (tkConfig.sh)
1675 --with-x use the X Window System
1676 --with-babeltrace include babeltrace support (auto/yes/no)
1677 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1678 --without-libbabeltrace-prefix don't search
for libbabeltrace
in includedir and libdir
1679 --with-libbabeltrace-type=TYPE
type of library to search
for (auto
/static
/shared
)
1680 --with-xxhash use libxxhash
for hashing
(faster
) (auto
/yes
/no
)
1681 --with-libxxhash-prefix[=DIR
] search
for libxxhash
in DIR
/include and DIR
/lib
1682 --without-libxxhash-prefix don
't search for libxxhash in includedir and libdir
1683 --with-libxxhash-type=TYPE type of library to search for (auto/static/shared)
1685 Some influential environment variables:
1686 CC C compiler command
1687 CFLAGS C compiler flags
1688 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1689 nonstandard directory <lib dir>
1690 LIBS libraries to pass to the linker, e.g. -l<library>
1691 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1692 you have headers in a nonstandard directory <include dir>
1693 CXX C++ compiler command
1694 CXXFLAGS C++ compiler flags
1696 MAKEINFO Parent configure detects if it is of sufficient version.
1698 Parameters for MAKEINFO.
1699 PKG_CONFIG path to pkg-config utility
1701 directories to add to pkg-config's search path
1703 path overriding pkg-config
's built-in search path
1705 C compiler flags for DEBUGINFOD, overriding pkg-config
1707 linker flags for DEBUGINFOD, overriding pkg-config
1708 YACC The `Yet Another Compiler Compiler' implementation to use.
1709 Defaults to the first program found out of
: `bison -y', `byacc
',
1711 YFLAGS The list of arguments that will be passed by default to
$YACC.
1712 This
script will default YFLAGS to the empty string to avoid a
1713 default value of
`-d' given by some make applications.
1714 XMKMF Path to xmkmf, Makefile generator for X Window System
1716 Use these variables to override the choices made by `configure
' or to help
1717 it to find libraries and programs with nonstandard names/locations.
1719 Report bugs to the package provider.
1724 if test "$ac_init_help" = "recursive"; then
1725 # If there are subdirs, report their specific --help.
1726 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1727 test -d "$ac_dir" ||
1728 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1733 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1735 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.
[\\/]||
'`
1736 # A ".." for each directory in $ac_dir_suffix.
1737 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|
/[^
\\/]*|
/..|g
;s|
/||
'`
1738 case $ac_top_builddir_sub in
1739 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1740 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1743 ac_abs_top_builddir=$ac_pwd
1744 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1745 # for backward compatibility:
1746 ac_top_builddir=$ac_top_build_prefix
1749 .) # We are building in place.
1751 ac_top_srcdir=$ac_top_builddir_sub
1752 ac_abs_top_srcdir=$ac_pwd ;;
1753 [\\/]* | ?:[\\/]* ) # Absolute name.
1754 ac_srcdir=$srcdir$ac_dir_suffix;
1755 ac_top_srcdir=$srcdir
1756 ac_abs_top_srcdir=$srcdir ;;
1758 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1759 ac_top_srcdir=$ac_top_build_prefix$srcdir
1760 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1762 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1764 cd "$ac_dir" || { ac_status=$?; continue; }
1765 # Check for guested configure.
1766 if test -f "$ac_srcdir/configure.gnu"; then
1768 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1769 elif test -f "$ac_srcdir/configure"; then
1771 $SHELL "$ac_srcdir/configure" --help=recursive
1773 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1775 cd "$ac_pwd" || { ac_status=$?; break; }
1779 test -n "$ac_init_help" && exit $ac_status
1780 if $ac_init_version; then
1783 generated by GNU Autoconf 2.69
1785 Copyright (C) 2012 Free Software Foundation, Inc.
1786 This configure script is free software; the Free Software Foundation
1787 gives unlimited permission to copy, distribute and modify it.
1792 ## ------------------------ ##
1793 ## Autoconf initialization. ##
1794 ## ------------------------ ##
1796 # ac_fn_c_try_compile LINENO
1797 # --------------------------
1798 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1799 ac_fn_c_try_compile ()
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 rm -f conftest.$ac_objext
1803 if { { ac_try="$ac_compile"
1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 $as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_compile") 2>conftest.err
1812 if test -s conftest.err; then
1813 grep -v '^
*+' conftest.err >conftest.er1
1814 cat conftest.er1 >&5
1815 mv -f conftest.er1 conftest.err
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } && {
1819 test -z "$ac_c_werror_flag" ||
1820 test ! -s conftest.err
1821 } && test -s conftest.$ac_objext; then :
1824 $as_echo "$as_me: failed program was:" >&5
1825 sed 's
/^
/|
/' conftest.$ac_ext >&5
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 as_fn_set_status $ac_retval
1832 } # ac_fn_c_try_compile
1834 # ac_fn_cxx_try_compile LINENO
1835 # ----------------------------
1836 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1837 ac_fn_cxx_try_compile ()
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 rm -f conftest.$ac_objext
1841 if { { ac_try="$ac_compile"
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 $as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_compile") 2>conftest.err
1850 if test -s conftest.err; then
1851 grep -v '^
*+' conftest.err >conftest.er1
1852 cat conftest.er1 >&5
1853 mv -f conftest.er1 conftest.err
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; } && {
1857 test -z "$ac_cxx_werror_flag" ||
1858 test ! -s conftest.err
1859 } && test -s conftest.$ac_objext; then :
1862 $as_echo "$as_me: failed program was:" >&5
1863 sed 's
/^
/|
/' conftest.$ac_ext >&5
1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868 as_fn_set_status $ac_retval
1870 } # ac_fn_cxx_try_compile
1872 # ac_fn_c_try_cpp LINENO
1873 # ----------------------
1874 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 if { { ac_try="$ac_cpp conftest.$ac_ext"
1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881 *) ac_try_echo=$ac_try;;
1883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1887 if test -s conftest.err; then
1888 grep -v '^
*+' conftest.err >conftest.er1
1889 cat conftest.er1 >&5
1890 mv -f conftest.er1 conftest.err
1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; } > conftest.i && {
1894 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1895 test ! -s conftest.err
1899 $as_echo "$as_me: failed program was:" >&5
1900 sed 's
/^
/|
/' conftest.$ac_ext >&5
1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905 as_fn_set_status $ac_retval
1909 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1910 # -------------------------------------------------------
1911 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1912 # the include files in INCLUDES and setting the cache variable VAR
1914 ac_fn_c_check_header_mongrel ()
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 if eval \${$3+:} false; then :
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919 $as_echo_n "checking for $2... " >&6; }
1920 if eval \${$3+:} false; then :
1921 $as_echo_n "(cached) " >&6
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925 $as_echo "$ac_res" >&6; }
1927 # Is the header compilable?
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1929 $as_echo_n "checking $2 usability... " >&6; }
1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h. */
1935 if ac_fn_c_try_compile "$LINENO"; then :
1936 ac_header_compiler=yes
1938 ac_header_compiler=no
1940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1942 $as_echo "$ac_header_compiler" >&6; }
1944 # Is the header present?
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1946 $as_echo_n "checking $2 presence... " >&6; }
1947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948 /* end confdefs.h. */
1951 if ac_fn_c_try_cpp "$LINENO"; then :
1952 ac_header_preproc=yes
1954 ac_header_preproc=no
1956 rm -f conftest.err conftest.i conftest.$ac_ext
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1958 $as_echo "$ac_header_preproc" >&6; }
1960 # So? What about this header?
1961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1964 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1966 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1970 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1972 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1974 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1976 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1978 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1982 $as_echo_n "checking for $2... " >&6; }
1983 if eval \${$3+:} false; then :
1984 $as_echo_n "(cached) " >&6
1986 eval "$3=\$ac_header_compiler"
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990 $as_echo "$ac_res" >&6; }
1992 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1994 } # ac_fn_c_check_header_mongrel
1996 # ac_fn_c_try_run LINENO
1997 # ----------------------
1998 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1999 # that executables *can* be run.
2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2003 if { { ac_try="$ac_link"
2005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2006 *) ac_try_echo=$ac_try;;
2008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2009 $as_echo "$ac_try_echo"; } >&5
2010 (eval "$ac_link") 2>&5
2012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2013 test $ac_status = 0; } && { ac_try='.
/conftest
$ac_exeext'
2014 { { case "(($ac_try" in
2015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2016 *) ac_try_echo=$ac_try;;
2018 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2019 $as_echo "$ac_try_echo"; } >&5
2020 (eval "$ac_try") 2>&5
2022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2023 test $ac_status = 0; }; }; then :
2026 $as_echo "$as_me: program exited with status $ac_status" >&5
2027 $as_echo "$as_me: failed program was:" >&5
2028 sed 's
/^
/|
/' conftest.$ac_ext >&5
2030 ac_retval=$ac_status
2032 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2033 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2034 as_fn_set_status $ac_retval
2038 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2039 # -------------------------------------------------------
2040 # Tests whether HEADER exists and can be compiled using the include files in
2041 # INCLUDES, setting the cache variable VAR accordingly.
2042 ac_fn_c_check_header_compile ()
2044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2046 $as_echo_n "checking for $2... " >&6; }
2047 if eval \${$3+:} false; then :
2048 $as_echo_n "(cached) " >&6
2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h. */
2055 if ac_fn_c_try_compile "$LINENO"; then :
2060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2064 $as_echo "$ac_res" >&6; }
2065 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2067 } # ac_fn_c_check_header_compile
2069 # ac_fn_c_try_link LINENO
2070 # -----------------------
2071 # Try to link conftest.$ac_ext, and return whether this succeeded.
2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075 rm -f conftest.$ac_objext conftest$ac_exeext
2076 if { { ac_try="$ac_link"
2078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2079 *) ac_try_echo=$ac_try;;
2081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2082 $as_echo "$ac_try_echo"; } >&5
2083 (eval "$ac_link") 2>conftest.err
2085 if test -s conftest.err; then
2086 grep -v '^
*+' conftest.err >conftest.er1
2087 cat conftest.er1 >&5
2088 mv -f conftest.er1 conftest.err
2090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2091 test $ac_status = 0; } && {
2092 test -z "$ac_c_werror_flag" ||
2093 test ! -s conftest.err
2094 } && test -s conftest$ac_exeext && {
2095 test "$cross_compiling" = yes ||
2096 test -x conftest$ac_exeext
2100 $as_echo "$as_me: failed program was:" >&5
2101 sed 's
/^
/|
/' conftest.$ac_ext >&5
2105 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2106 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2107 # interfere with the next link command; also delete a directory that is
2108 # left behind by Apple's compiler. We
do this before executing the actions.
2109 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2110 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2111 as_fn_set_status
$ac_retval
2113 } # ac_fn_c_try_link
2115 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2116 # --------------------------------------------
2117 # Tries to find the compile-time value of EXPR in a program that includes
2118 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2120 ac_fn_c_compute_int
()
2122 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2123 if test "$cross_compiling" = yes; then
2124 # Depending upon the size, compute the lo and hi bounds.
2125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2131 static int test_array [1 - 2 * !(($2) >= 0)];
2133 return test_array [0];
2139 if ac_fn_c_try_compile
"$LINENO"; then :
2142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2148 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2150 return test_array [0];
2156 if ac_fn_c_try_compile
"$LINENO"; then :
2157 ac_hi
=$ac_mid; break
2159 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2160 if test $ac_lo -le $ac_mid; then
2164 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2166 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2170 /* end confdefs.h. */
2175 static int test_array [1 - 2 * !(($2) < 0)];
2177 return test_array [0];
2183 if ac_fn_c_try_compile
"$LINENO"; then :
2186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2187 /* end confdefs.h. */
2192 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2194 return test_array [0];
2200 if ac_fn_c_try_compile
"$LINENO"; then :
2201 ac_lo
=$ac_mid; break
2203 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2204 if test $ac_mid -le $ac_hi; then
2208 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2210 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2215 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2218 # Binary search between lo and hi bounds.
2219 while test "x$ac_lo" != "x$ac_hi"; do
2220 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2222 /* end confdefs.h. */
2227 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2229 return test_array [0];
2235 if ac_fn_c_try_compile
"$LINENO"; then :
2238 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2240 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2243 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h. */
2250 static long int longval () { return $2; }
2251 static unsigned long int ulongval () { return $2; }
2258 FILE *f = fopen ("conftest.val", "w");
2263 long int i = longval ();
2266 fprintf (f, "%ld", i);
2270 unsigned long int i = ulongval ();
2273 fprintf (f, "%lu", i);
2275 /* Do not output a trailing newline, as this causes \r\n confusion
2276 on some platforms. */
2277 return ferror (f) || fclose (f) != 0;
2283 if ac_fn_c_try_run
"$LINENO"; then :
2284 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2288 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2289 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2293 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2294 as_fn_set_status
$ac_retval
2296 } # ac_fn_c_compute_int
2298 # ac_fn_c_check_func LINENO FUNC VAR
2299 # ----------------------------------
2300 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2301 ac_fn_c_check_func
()
2303 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2305 $as_echo_n "checking for $2... " >&6; }
2306 if eval \
${$3+:} false
; then :
2307 $as_echo_n "(cached) " >&6
2309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2310 /* end confdefs.h. */
2311 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2313 #define $2 innocuous_$2
2315 /* System header to define __stub macros and hopefully few prototypes,
2316 which can conflict with char $2 (); below.
2317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2318 <limits.h> exists even on freestanding compilers. */
2321 # include <limits.h>
2323 # include <assert.h>
2328 /* Override any GCC internal prototype to avoid an error.
2329 Use char because int might match the return type of a GCC
2330 builtin and then its argument prototype would still apply. */
2335 /* The GNU C library defines this for functions which it implements
2336 to always fail with ENOSYS. Some functions are actually named
2337 something starting with __ and the normal name is an alias. */
2338 #if defined __stub_$2 || defined __stub___$2
2350 if ac_fn_c_try_link
"$LINENO"; then :
2355 rm -f core conftest.err conftest.
$ac_objext \
2356 conftest
$ac_exeext conftest.
$ac_ext
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2360 $as_echo "$ac_res" >&6; }
2361 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2363 } # ac_fn_c_check_func
2365 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2366 # -------------------------------------------
2367 # Tests whether TYPE exists after having included INCLUDES, setting cache
2368 # variable VAR accordingly.
2369 ac_fn_c_check_type
()
2371 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2373 $as_echo_n "checking for $2... " >&6; }
2374 if eval \
${$3+:} false
; then :
2375 $as_echo_n "(cached) " >&6
2378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2379 /* end confdefs.h. */
2390 if ac_fn_c_try_compile
"$LINENO"; then :
2391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2392 /* end confdefs.h. */
2403 if ac_fn_c_try_compile
"$LINENO"; then :
2408 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2410 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2414 $as_echo "$ac_res" >&6; }
2415 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2417 } # ac_fn_c_check_type
2419 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2420 # ---------------------------------------------
2421 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2423 ac_fn_c_check_decl
()
2425 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2426 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2427 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2429 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2430 if eval \
${$3+:} false
; then :
2431 $as_echo_n "(cached) " >&6
2433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2434 /* end confdefs.h. */
2439 #ifndef $as_decl_name
2441 (void) $as_decl_use;
2443 (void) $as_decl_name;
2451 if ac_fn_c_try_compile
"$LINENO"; then :
2456 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2460 $as_echo "$ac_res" >&6; }
2461 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2463 } # ac_fn_c_check_decl
2465 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2466 # ----------------------------------------------------
2467 # Tries to find if the field MEMBER exists in type AGGR, after including
2468 # INCLUDES, setting cache variable VAR accordingly.
2469 ac_fn_c_check_member
()
2471 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2473 $as_echo_n "checking for $2.$3... " >&6; }
2474 if eval \
${$4+:} false
; then :
2475 $as_echo_n "(cached) " >&6
2477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2478 /* end confdefs.h. */
2490 if ac_fn_c_try_compile
"$LINENO"; then :
2493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2494 /* end confdefs.h. */
2500 if (sizeof ac_aggr.$3)
2506 if ac_fn_c_try_compile
"$LINENO"; then :
2511 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2513 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2517 $as_echo "$ac_res" >&6; }
2518 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2520 } # ac_fn_c_check_member
2522 # ac_fn_cxx_try_link LINENO
2523 # -------------------------
2524 # Try to link conftest.$ac_ext, and return whether this succeeded.
2525 ac_fn_cxx_try_link
()
2527 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2528 rm -f conftest.
$ac_objext conftest
$ac_exeext
2529 if { { ac_try
="$ac_link"
2531 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2532 *) ac_try_echo=$ac_try;;
2534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2535 $as_echo "$ac_try_echo"; } >&5
2536 (eval "$ac_link") 2>conftest.err
2538 if test -s conftest.err; then
2539 grep -v '^ *+' conftest.err >conftest.er1
2540 cat conftest.er1 >&5
2541 mv -f conftest.er1 conftest.err
2543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2544 test $ac_status = 0; } && {
2545 test -z "$ac_cxx_werror_flag" ||
2546 test ! -s conftest.err
2547 } && test -s conftest$ac_exeext && {
2548 test "$cross_compiling" = yes ||
2549 test -x conftest$ac_exeext
2553 $as_echo "$as_me: failed program was:" >&5
2554 sed 's/^/| /' conftest.$ac_ext >&5
2558 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2559 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2560 # interfere with the next link command; also delete a directory that is
2561 # left behind by Apple's compiler. We do this before executing the actions.
2562 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2563 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2564 as_fn_set_status $ac_retval
2566 } # ac_fn_cxx_try_link
2568 # ac_fn_cxx_check_func LINENO FUNC VAR
2569 # ------------------------------------
2570 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2571 ac_fn_cxx_check_func ()
2573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2575 $as_echo_n "checking for $2... " >&6; }
2576 if eval \${$3+:} false; then :
2577 $as_echo_n "(cached) " >&6
2579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2580 /* end confdefs.h. */
2581 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2583 #define $2 innocuous_$2
2585 /* System header to define __stub macros and hopefully few prototypes,
2586 which can conflict with char $2 (); below.
2587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2588 <limits.h> exists even on freestanding compilers. */
2591 # include <limits.h>
2593 # include <assert.h>
2598 /* Override any GCC internal prototype to avoid an error.
2599 Use char because int might match the return type of a GCC
2600 builtin and then its argument prototype would still apply. */
2605 /* The GNU C library defines this for functions which it implements
2606 to always fail with ENOSYS. Some functions are actually named
2607 something starting with __ and the normal name is an alias. */
2608 #if defined __stub_$2 || defined __stub___$2
2620 if ac_fn_cxx_try_link "$LINENO"; then :
2625 rm -f core conftest.err conftest.$ac_objext \
2626 conftest$ac_exeext conftest.$ac_ext
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2630 $as_echo "$ac_res" >&6; }
2631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2633 } # ac_fn_cxx_check_func
2634 cat >config.log <<_ACEOF
2635 This file contains any messages produced by compilers while
2636 running configure, to aid debugging if configure makes a mistake.
2638 It was created by $as_me, which was
2639 generated by GNU Autoconf 2.69. Invocation command line was
2651 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2652 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2653 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2654 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2655 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2657 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2658 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2660 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2661 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2662 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2663 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2664 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2665 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2666 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 test -z "$as_dir" && as_dir=.
2675 $as_echo "PATH: $as_dir"
2691 # Keep a trace of the command line.
2692 # Strip out --no-create and --no-recursion so they do not pile up.
2693 # Strip out --silent because we don't want to record it for future runs.
2694 # Also quote any args containing shell meta-characters.
2695 # Make two passes to allow for proper duplicate-argument suppression.
2699 ac_must_keep_next=false
2705 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2706 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2707 | -silent | --silent | --silen | --sile | --sil)
2710 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2713 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2715 as_fn_append ac_configure_args1 " '$ac_arg'"
2716 if test $ac_must_keep_next = true; then
2717 ac_must_keep_next=false # Got value, back to normal.
2720 *=* | --config-cache | -C | -disable-* | --disable-* \
2721 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2722 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2723 | -with-* | --with-* | -without-* | --without-* | --x)
2724 case "$ac_configure_args0 " in
2725 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2728 -* ) ac_must_keep_next=true ;;
2731 as_fn_append ac_configure_args " '$ac_arg'"
2736 { ac_configure_args0=; unset ac_configure_args0;}
2737 { ac_configure_args1=; unset ac_configure_args1;}
2739 # When interrupted or exit'd, cleanup temporary files, and complete
2740 # config.log. We remove comments because anyway the quotes in there
2741 # would cause problems or look ugly.
2742 # WARNING: Use '\'' to represent an apostrophe within the trap.
2743 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2744 trap 'exit_status=$?
2745 # Save into config.log some information that might help in debugging.
2749 $as_echo "## ---------------- ##
2750 ## Cache variables. ##
2751 ## ---------------- ##"
2753 # The following way of writing the cache mishandles newlines in values,
2755 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2756 eval ac_val=\$$ac_var
2760 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2761 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2764 _ | IFS | as_nl) ;; #(
2765 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2766 *) { eval $ac_var=; unset $ac_var;} ;;
2771 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2772 *${as_nl}ac_space=\ *)
2774 "s/'\''/'\''\\\\'\'''\''/g;
2775 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2778 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2785 $as_echo "## ----------------- ##
2786 ## Output variables. ##
2787 ## ----------------- ##"
2789 for ac_var in $ac_subst_vars
2791 eval ac_val=\$$ac_var
2793 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2795 $as_echo "$ac_var='\''$ac_val'\''"
2799 if test -n "$ac_subst_files"; then
2800 $as_echo "## ------------------- ##
2801 ## File substitutions. ##
2802 ## ------------------- ##"
2804 for ac_var in $ac_subst_files
2806 eval ac_val=\$$ac_var
2808 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2810 $as_echo "$ac_var='\''$ac_val'\''"
2815 if test -s confdefs.h; then
2816 $as_echo "## ----------- ##
2823 test "$ac_signal" != 0 &&
2824 $as_echo "$as_me: caught signal $ac_signal"
2825 $as_echo "$as_me: exit $exit_status"
2827 rm -f core *.core core.conftest.* &&
2828 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2831 for ac_signal in 1 2 13 15; do
2832 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2836 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2837 rm -f -r conftest* confdefs.h
2839 $as_echo "/* confdefs.h */" > confdefs.h
2841 # Predefined preprocessor variables.
2843 cat >>confdefs.h <<_ACEOF
2844 #define PACKAGE_NAME "$PACKAGE_NAME"
2847 cat >>confdefs.h <<_ACEOF
2848 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2851 cat >>confdefs.h <<_ACEOF
2852 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2855 cat >>confdefs.h <<_ACEOF
2856 #define PACKAGE_STRING "$PACKAGE_STRING"
2859 cat >>confdefs.h <<_ACEOF
2860 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2863 cat >>confdefs.h <<_ACEOF
2864 #define PACKAGE_URL "$PACKAGE_URL"
2868 # Let the site file select an alternate cache file if it wants to.
2869 # Prefer an explicitly selected file to automatically selected ones.
2872 if test -n "$CONFIG_SITE"; then
2873 # We do not want a PATH search for config.site.
2874 case $CONFIG_SITE in #((
2875 -*) ac_site_file1=./$CONFIG_SITE;;
2876 */*) ac_site_file1=$CONFIG_SITE;;
2877 *) ac_site_file1=./$CONFIG_SITE;;
2879 elif test "x$prefix" != xNONE; then
2880 ac_site_file1=$prefix/share/config.site
2881 ac_site_file2=$prefix/etc/config.site
2883 ac_site_file1=$ac_default_prefix/share/config.site
2884 ac_site_file2=$ac_default_prefix/etc/config.site
2886 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2888 test "x$ac_site_file" = xNONE && continue
2889 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2891 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2892 sed 's/^/| /' "$ac_site_file" >&5
2894 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2896 as_fn_error $? "failed to load site
script $ac_site_file
2897 See \
`config.log' for more details" "$LINENO" 5; }
2901 if test -r "$cache_file"; then
2902 # Some versions of bash will fail to source /dev/null (special files
2903 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2904 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2906 $as_echo "$as_me: loading cache $cache_file" >&6;}
2908 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2909 *) . "./$cache_file";;
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2914 $as_echo "$as_me: creating cache $cache_file" >&6;}
2918 as_fn_append ac_header_list " stdlib.h"
2919 as_fn_append ac_header_list " unistd.h"
2920 as_fn_append ac_header_list " sys/param.h"
2921 # Check that the precious variables saved in the cache have kept the same
2923 ac_cache_corrupted=false
2924 for ac_var in $ac_precious_vars; do
2925 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2926 eval ac_new_set=\$ac_env_${ac_var}_set
2927 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2928 eval ac_new_val=\$ac_env_${ac_var}_value
2929 case $ac_old_set,$ac_new_set in
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2932 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2933 ac_cache_corrupted=: ;;
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2936 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2937 ac_cache_corrupted=: ;;
2940 if test "x$ac_old_val" != "x$ac_new_val"; then
2941 # differences in whitespace do not lead to failure.
2942 ac_old_val_w=`echo x
$ac_old_val`
2943 ac_new_val_w=`echo x
$ac_new_val`
2944 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2946 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2947 ac_cache_corrupted=:
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2950 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2951 eval $ac_var=\$ac_old_val
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2954 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2956 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2959 # Pass precious variables to config.status.
2960 if test "$ac_new_set" = set; then
2962 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2963 *) ac_arg=$ac_var=$ac_new_val ;;
2965 case " $ac_configure_args " in
2966 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2967 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2971 if $ac_cache_corrupted; then
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2975 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2976 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2978 ## -------------------- ##
2979 ## Main body of script. ##
2980 ## -------------------- ##
2983 ac_cpp='$CPP $CPPFLAGS'
2984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2993 ac_config_headers="$ac_config_headers config.h:config.in"
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2997 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2998 # Check whether --enable-maintainer-mode was given.
2999 if test "${enable_maintainer_mode+set}" = set; then :
3000 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3002 USE_MAINTAINER_MODE=no
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3006 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3007 if test $USE_MAINTAINER_MODE = yes; then
3008 MAINTAINER_MODE_TRUE=
3009 MAINTAINER_MODE_FALSE='#'
3011 MAINTAINER_MODE_TRUE='#'
3012 MAINTAINER_MODE_FALSE=
3015 MAINT=$MAINTAINER_MODE_TRUE
3020 ac_cpp='$CPP $CPPFLAGS'
3021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3024 if test -n "$ac_tool_prefix"; then
3025 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3026 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028 $as_echo_n "checking for $ac_word... " >&6; }
3029 if ${ac_cv_prog_CC+:} false; then :
3030 $as_echo_n "(cached) " >&6
3032 if test -n "$CC"; then
3033 ac_cv_prog_CC="$CC" # Let the user override the test.
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039 test -z "$as_dir" && as_dir=.
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3042 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3053 if test -n "$CC"; then
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3055 $as_echo "$CC" >&6; }
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058 $as_echo "no" >&6; }
3063 if test -z "$ac_cv_prog_CC"; then
3065 # Extract the first word of "gcc", so it can be a program name with args.
3066 set dummy gcc; ac_word=$2
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3068 $as_echo_n "checking for $ac_word... " >&6; }
3069 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3070 $as_echo_n "(cached) " >&6
3072 if test -n "$ac_ct_CC"; then
3073 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3082 ac_cv_prog_ac_ct_CC="gcc"
3083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3092 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3093 if test -n "$ac_ct_CC"; then
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3095 $as_echo "$ac_ct_CC" >&6; }
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3098 $as_echo "no" >&6; }
3101 if test "x$ac_ct_CC" = x; then
3104 case $cross_compiling:$ac_tool_warned in
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3108 ac_tool_warned=yes ;;
3116 if test -z "$CC"; then
3117 if test -n "$ac_tool_prefix"; then
3118 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3119 set dummy ${ac_tool_prefix}cc; ac_word=$2
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3121 $as_echo_n "checking for $ac_word... " >&6; }
3122 if ${ac_cv_prog_CC+:} false; then :
3123 $as_echo_n "(cached) " >&6
3125 if test -n "$CC"; then
3126 ac_cv_prog_CC="$CC" # Let the user override the test.
3128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132 test -z "$as_dir" && as_dir=.
3133 for ac_exec_ext in '' $ac_executable_extensions; do
3134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3135 ac_cv_prog_CC="${ac_tool_prefix}cc"
3136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3146 if test -n "$CC"; then
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3148 $as_echo "$CC" >&6; }
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151 $as_echo "no" >&6; }
3157 if test -z "$CC"; then
3158 # Extract the first word of "cc", so it can be a program name with args.
3159 set dummy cc; ac_word=$2
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3161 $as_echo_n "checking for $ac_word... " >&6; }
3162 if ${ac_cv_prog_CC+:} false; then :
3163 $as_echo_n "(cached) " >&6
3165 if test -n "$CC"; then
3166 ac_cv_prog_CC="$CC" # Let the user override the test.
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3176 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3177 ac_prog_rejected=yes
3181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3188 if test $ac_prog_rejected = yes; then
3189 # We found a bogon in the path, so make sure we never use it.
3190 set dummy $ac_cv_prog_CC
3192 if test $# != 0; then
3193 # We chose a different compiler from the bogus one.
3194 # However, it has the same basename, so the bogon will be chosen
3195 # first if we set CC to just the basename; use the full file name.
3197 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3203 if test -n "$CC"; then
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3205 $as_echo "$CC" >&6; }
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3208 $as_echo "no" >&6; }
3213 if test -z "$CC"; then
3214 if test -n "$ac_tool_prefix"; then
3215 for ac_prog in cl.exe
3217 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3218 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3220 $as_echo_n "checking for $ac_word... " >&6; }
3221 if ${ac_cv_prog_CC+:} false; then :
3222 $as_echo_n "(cached) " >&6
3224 if test -n "$CC"; then
3225 ac_cv_prog_CC="$CC" # Let the user override the test.
3227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 test -z "$as_dir" && as_dir=.
3232 for ac_exec_ext in '' $ac_executable_extensions; do
3233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3234 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3245 if test -n "$CC"; then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3247 $as_echo "$CC" >&6; }
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3250 $as_echo "no" >&6; }
3254 test -n "$CC" && break
3257 if test -z "$CC"; then
3259 for ac_prog in cl.exe
3261 # Extract the first word of "$ac_prog", so it can be a program name with args.
3262 set dummy $ac_prog; ac_word=$2
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3264 $as_echo_n "checking for $ac_word... " >&6; }
3265 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3266 $as_echo_n "(cached) " >&6
3268 if test -n "$ac_ct_CC"; then
3269 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275 test -z "$as_dir" && as_dir=.
3276 for ac_exec_ext in '' $ac_executable_extensions; do
3277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3278 ac_cv_prog_ac_ct_CC="$ac_prog"
3279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3288 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3289 if test -n "$ac_ct_CC"; then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3291 $as_echo "$ac_ct_CC" >&6; }
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294 $as_echo "no" >&6; }
3298 test -n "$ac_ct_CC" && break
3301 if test "x$ac_ct_CC" = x; then
3304 case $cross_compiling:$ac_tool_warned in
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3308 ac_tool_warned=yes ;;
3317 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3319 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3320 See \
`config.log' for more details" "$LINENO" 5; }
3322 # Provide some information about the compiler.
3323 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3326 for ac_option in --version -v -V -qversion; do
3327 { { ac_try="$ac_compiler $ac_option >&5"
3329 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3330 *) ac_try_echo
=$ac_try;;
3332 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3333 $as_echo "$ac_try_echo"; } >&5
3334 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3336 if test -s conftest.err
; then
3338 ... rest of stderr output deleted ...
3339 10q' conftest.err
>conftest.er1
3340 cat conftest.er1
>&5
3342 rm -f conftest.er1 conftest.err
3343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3344 test $ac_status = 0; }
3347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3348 /* end confdefs.h. */
3358 ac_clean_files_save
=$ac_clean_files
3359 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3360 # Try to create an executable without -o first, disregard a.out.
3361 # It will help us diagnose broken compilers, and finding out an intuition
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3364 $as_echo_n "checking whether the C compiler works... " >&6; }
3365 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3367 # The possible output files:
3368 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3371 for ac_file
in $ac_files
3374 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3375 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3380 if { { ac_try
="$ac_link_default"
3382 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3386 $as_echo "$ac_try_echo"; } >&5
3387 (eval "$ac_link_default") 2>&5
3389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3390 test $ac_status = 0; }; then :
3391 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3392 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3393 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3394 # so that the user can short-circuit this test for compilers unknown to
3396 for ac_file in $ac_files ''
3398 test -f "$ac_file" || continue
3400 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3403 # We found the default executable, but exeext='' is most
3407 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3409 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3411 # We set ac_cv_exeext here because the later test for it is not
3412 # safe: cross compilers may not add the suffix if given an `-o'
3413 # argument, so we may need to know it at that point already.
3414 # Even if this section looks crufty: it has the advantage of
3421 test "$ac_cv_exeext" = no && ac_cv_exeext=
3426 if test -z "$ac_file"; then :
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3428 $as_echo "no" >&6; }
3429 $as_echo "$as_me: failed program was:" >&5
3430 sed 's
/^
/|
/' conftest.$ac_ext >&5
3432 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3433 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3434 as_fn_error 77 "C compiler cannot create executables
3435 See \`config.log
' for more details" "$LINENO" 5; }
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3438 $as_echo "yes" >&6; }
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3441 $as_echo_n "checking for C compiler default output file name... " >&6; }
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3443 $as_echo "$ac_file" >&6; }
3444 ac_exeext=$ac_cv_exeext
3446 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3447 ac_clean_files=$ac_clean_files_save
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3449 $as_echo_n "checking for suffix of executables... " >&6; }
3450 if { { ac_try="$ac_link"
3452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453 *) ac_try_echo=$ac_try;;
3455 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3456 $as_echo "$ac_try_echo"; } >&5
3457 (eval "$ac_link") 2>&5
3459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3460 test $ac_status = 0; }; then :
3461 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3462 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3463 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3465 for ac_file
in conftest.exe conftest conftest.
*; do
3466 test -f "$ac_file" ||
continue
3468 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3469 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3475 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3476 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3477 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3478 See \`config.log' for more details" "$LINENO" 5; }
3480 rm -f conftest conftest
$ac_cv_exeext
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3482 $as_echo "$ac_cv_exeext" >&6; }
3484 rm -f conftest.
$ac_ext
3485 EXEEXT
=$ac_cv_exeext
3487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3488 /* end confdefs.h. */
3493 FILE *f = fopen ("conftest.out", "w");
3494 return ferror (f) || fclose (f) != 0;
3500 ac_clean_files
="$ac_clean_files conftest.out"
3501 # Check that the compiler produces executables we can run. If not, either
3502 # the compiler is broken, or we cross compile.
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3504 $as_echo_n "checking whether we are cross compiling... " >&6; }
3505 if test "$cross_compiling" != yes; then
3506 { { ac_try
="$ac_link"
3508 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3509 *) ac_try_echo=$ac_try;;
3511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3512 $as_echo "$ac_try_echo"; } >&5
3513 (eval "$ac_link") 2>&5
3515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3516 test $ac_status = 0; }
3517 if { ac_try='./conftest$ac_cv_exeext'
3518 { { case "(($ac_try" in
3519 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3520 *) ac_try_echo
=$ac_try;;
3522 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3523 $as_echo "$ac_try_echo"; } >&5
3524 (eval "$ac_try") 2>&5
3526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3527 test $ac_status = 0; }; }; then
3530 if test "$cross_compiling" = maybe
; then
3533 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3534 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3535 as_fn_error $?
"cannot run C compiled programs.
3536 If you meant to cross compile, use \`--host'.
3537 See \`config.log' for more details" "$LINENO" 5; }
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3542 $as_echo "$cross_compiling" >&6; }
3544 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3545 ac_clean_files
=$ac_clean_files_save
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3547 $as_echo_n "checking for suffix of object files... " >&6; }
3548 if ${ac_cv_objext+:} false
; then :
3549 $as_echo_n "(cached) " >&6
3551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3552 /* end confdefs.h. */
3562 rm -f conftest.o conftest.obj
3563 if { { ac_try
="$ac_compile"
3565 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3569 $as_echo "$ac_try_echo"; } >&5
3570 (eval "$ac_compile") 2>&5
3572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3573 test $ac_status = 0; }; then :
3574 for ac_file in conftest.o conftest.obj conftest.*; do
3575 test -f "$ac_file" || continue;
3577 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3578 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3583 $as_echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3586 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3588 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3589 See \
`config.log' for more details" "$LINENO" 5; }
3591 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3594 $as_echo "$ac_cv_objext" >&6; }
3595 OBJEXT=$ac_cv_objext
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3598 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3599 if ${ac_cv_c_compiler_gnu+:} false; then :
3600 $as_echo_n "(cached) " >&6
3602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3603 /* end confdefs.h. */
3616 if ac_fn_c_try_compile "$LINENO"; then :
3621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3622 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3626 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3627 if test $ac_compiler_gnu = yes; then
3632 ac_test_CFLAGS=${CFLAGS+set}
3633 ac_save_CFLAGS=$CFLAGS
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3635 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3636 if ${ac_cv_prog_cc_g+:} false; then :
3637 $as_echo_n "(cached) " >&6
3639 ac_save_c_werror_flag=$ac_c_werror_flag
3640 ac_c_werror_flag=yes
3643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3644 /* end confdefs.h. */
3654 if ac_fn_c_try_compile "$LINENO"; then :
3658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659 /* end confdefs.h. */
3669 if ac_fn_c_try_compile "$LINENO"; then :
3672 ac_c_werror_flag=$ac_save_c_werror_flag
3674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675 /* end confdefs.h. */
3685 if ac_fn_c_try_compile "$LINENO"; then :
3688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3693 ac_c_werror_flag=$ac_save_c_werror_flag
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3696 $as_echo "$ac_cv_prog_cc_g" >&6; }
3697 if test "$ac_test_CFLAGS" = set; then
3698 CFLAGS=$ac_save_CFLAGS
3699 elif test $ac_cv_prog_cc_g = yes; then
3700 if test "$GCC" = yes; then
3706 if test "$GCC" = yes; then
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3713 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3714 if ${ac_cv_prog_cc_c89+:} false; then :
3715 $as_echo_n "(cached) " >&6
3717 ac_cv_prog_cc_c89=no
3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720 /* end confdefs.h. */
3724 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3725 struct buf { int x; };
3726 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3727 static char *e (p, i)
3733 static char *f (char * (*g) (char **, int), char **p, ...)
3738 s = g (p, va_arg (v,int));
3743 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3744 function prototypes and stuff, but not '\xHH' hex character constants.
3745 These don't provoke an error unfortunately, instead are silently treated
3746 as 'x'. The following induces an error, until -std is added to get
3747 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3748 array size at least. It's necessary to write '\x00'==0 to get something
3749 that's true only with -std. */
3750 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3752 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3753 inside strings and character constants. */
3755 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3757 int test (int i, double x);
3758 struct s1 {int (*f) (int a);};
3759 struct s2 {int (*f) (double a);};
3760 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3766 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3771 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3772 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3774 CC="$ac_save_CC $ac_arg"
3775 if ac_fn_c_try_compile "$LINENO"; then :
3776 ac_cv_prog_cc_c89=$ac_arg
3778 rm -f core conftest.err conftest.$ac_objext
3779 test "x$ac_cv_prog_cc_c89" != "xno" && break
3781 rm -f conftest.$ac_ext
3786 case "x$ac_cv_prog_cc_c89" in
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3789 $as_echo "none needed" >&6; } ;;
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3792 $as_echo "unsupported" >&6; } ;;
3794 CC="$CC $ac_cv_prog_cc_c89"
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3796 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3798 if test "x$ac_cv_prog_cc_c89" != xno; then :
3803 ac_cpp='$CPP $CPPFLAGS'
3804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3809 ac_cpp='$CXXCPP $CPPFLAGS'
3810 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3811 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3812 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3813 if test -z "$CXX"; then
3814 if test -n "$CCC"; then
3817 if test -n "$ac_tool_prefix"; then
3818 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3820 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3821 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3823 $as_echo_n "checking for $ac_word... " >&6; }
3824 if ${ac_cv_prog_CXX+:} false; then :
3825 $as_echo_n "(cached) " >&6
3827 if test -n "$CXX"; then
3828 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834 test -z "$as_dir" && as_dir=.
3835 for ac_exec_ext in '' $ac_executable_extensions; do
3836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3837 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3848 if test -n "$CXX"; then
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3850 $as_echo "$CXX" >&6; }
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3853 $as_echo "no" >&6; }
3857 test -n "$CXX" && break
3860 if test -z "$CXX"; then
3862 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3864 # Extract the first word of "$ac_prog", so it can be a program name with args.
3865 set dummy $ac_prog; ac_word=$2
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3867 $as_echo_n "checking for $ac_word... " >&6; }
3868 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3869 $as_echo_n "(cached) " >&6
3871 if test -n "$ac_ct_CXX"; then
3872 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3878 test -z "$as_dir" && as_dir=.
3879 for ac_exec_ext in '' $ac_executable_extensions; do
3880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3881 ac_cv_prog_ac_ct_CXX="$ac_prog"
3882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3891 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3892 if test -n "$ac_ct_CXX"; then
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3894 $as_echo "$ac_ct_CXX" >&6; }
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3897 $as_echo "no" >&6; }
3901 test -n "$ac_ct_CXX" && break
3904 if test "x$ac_ct_CXX" = x; then
3907 case $cross_compiling:$ac_tool_warned in
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3911 ac_tool_warned=yes ;;
3919 # Provide some information about the compiler.
3920 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3923 for ac_option in --version -v -V -qversion; do
3924 { { ac_try="$ac_compiler $ac_option >&5"
3926 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3927 *) ac_try_echo
=$ac_try;;
3929 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3930 $as_echo "$ac_try_echo"; } >&5
3931 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3933 if test -s conftest.err
; then
3935 ... rest of stderr output deleted ...
3936 10q' conftest.err
>conftest.er1
3937 cat conftest.er1
>&5
3939 rm -f conftest.er1 conftest.err
3940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3941 test $ac_status = 0; }
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3945 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3946 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3947 $as_echo_n "(cached) " >&6
3949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3950 /* end confdefs.h. */
3963 if ac_fn_cxx_try_compile
"$LINENO"; then :
3968 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3969 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3973 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3974 if test $ac_compiler_gnu = yes; then
3979 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3980 ac_save_CXXFLAGS
=$CXXFLAGS
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3982 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3983 if ${ac_cv_prog_cxx_g+:} false
; then :
3984 $as_echo_n "(cached) " >&6
3986 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3987 ac_cxx_werror_flag
=yes
3990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3991 /* end confdefs.h. */
4001 if ac_fn_cxx_try_compile
"$LINENO"; then :
4002 ac_cv_prog_cxx_g
=yes
4005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4006 /* end confdefs.h. */
4016 if ac_fn_cxx_try_compile
"$LINENO"; then :
4019 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h. */
4032 if ac_fn_cxx_try_compile
"$LINENO"; then :
4033 ac_cv_prog_cxx_g
=yes
4035 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4037 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4039 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4040 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4043 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4044 if test "$ac_test_CXXFLAGS" = set; then
4045 CXXFLAGS
=$ac_save_CXXFLAGS
4046 elif test $ac_cv_prog_cxx_g = yes; then
4047 if test "$GXX" = yes; then
4053 if test "$GXX" = yes; then
4060 ac_cpp
='$CPP $CPPFLAGS'
4061 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4062 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4063 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4068 ac_cpp
='$CPP $CPPFLAGS'
4069 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4070 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4071 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4073 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4074 # On Suns, sometimes $CPP names a directory.
4075 if test -n "$CPP" && test -d "$CPP"; then
4078 if test -z "$CPP"; then
4079 if ${ac_cv_prog_CPP+:} false
; then :
4080 $as_echo_n "(cached) " >&6
4082 # Double quotes because CPP needs to be expanded
4083 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4086 for ac_c_preproc_warn_flag
in '' yes
4088 # Use a header file that comes with gcc, so configuring glibc
4089 # with a fresh cross-compiler works.
4090 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4091 # <limits.h> exists even on freestanding compilers.
4092 # On the NeXT, cc -E runs the code through the compiler's parser,
4093 # not just through cpp. "Syntax error" is here to catch this case.
4094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4095 /* end confdefs.h. */
4097 # include <limits.h>
4099 # include <assert.h>
4103 if ac_fn_c_try_cpp
"$LINENO"; then :
4106 # Broken: fails on valid input.
4109 rm -f conftest.err conftest.i conftest.
$ac_ext
4111 # OK, works on sane cases. Now check whether nonexistent headers
4112 # can be detected and how.
4113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h. */
4115 #include <ac_nonexistent.h>
4117 if ac_fn_c_try_cpp
"$LINENO"; then :
4118 # Broken: success on invalid input.
4121 # Passes both tests.
4125 rm -f conftest.err conftest.i conftest.
$ac_ext
4128 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4129 rm -f conftest.i conftest.err conftest.
$ac_ext
4130 if $ac_preproc_ok; then :
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4143 $as_echo "$CPP" >&6; }
4145 for ac_c_preproc_warn_flag
in '' yes
4147 # Use a header file that comes with gcc, so configuring glibc
4148 # with a fresh cross-compiler works.
4149 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4150 # <limits.h> exists even on freestanding compilers.
4151 # On the NeXT, cc -E runs the code through the compiler's parser,
4152 # not just through cpp. "Syntax error" is here to catch this case.
4153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4156 # include <limits.h>
4158 # include <assert.h>
4162 if ac_fn_c_try_cpp
"$LINENO"; then :
4165 # Broken: fails on valid input.
4168 rm -f conftest.err conftest.i conftest.
$ac_ext
4170 # OK, works on sane cases. Now check whether nonexistent headers
4171 # can be detected and how.
4172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4173 /* end confdefs.h. */
4174 #include <ac_nonexistent.h>
4176 if ac_fn_c_try_cpp
"$LINENO"; then :
4177 # Broken: success on invalid input.
4180 # Passes both tests.
4184 rm -f conftest.err conftest.i conftest.
$ac_ext
4187 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4188 rm -f conftest.i conftest.err conftest.
$ac_ext
4189 if $ac_preproc_ok; then :
4192 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4194 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4195 See \`config.log' for more details" "$LINENO" 5; }
4199 ac_cpp
='$CPP $CPPFLAGS'
4200 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4201 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4202 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4206 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4207 if ${ac_cv_path_GREP+:} false
; then :
4208 $as_echo_n "(cached) " >&6
4210 if test -z "$GREP"; then
4211 ac_path_GREP_found
=false
4212 # Loop through the user's path and test for each of PROGNAME-LIST
4213 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4214 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4217 test -z "$as_dir" && as_dir
=.
4218 for ac_prog
in grep ggrep
; do
4219 for ac_exec_ext
in '' $ac_executable_extensions; do
4220 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4221 as_fn_executable_p
"$ac_path_GREP" ||
continue
4222 # Check for GNU ac_path_GREP and select it if it is found.
4223 # Check for GNU $ac_path_GREP
4224 case `"$ac_path_GREP" --version 2>&1` in
4226 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4229 $as_echo_n 0123456789 >"conftest.in"
4232 cat "conftest.in" "conftest.in" >"conftest.tmp"
4233 mv "conftest.tmp" "conftest.in"
4234 cp "conftest.in" "conftest.nl"
4235 $as_echo 'GREP' >> "conftest.nl"
4236 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4237 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4238 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4239 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4240 # Best one so far, save it but keep looking for a better one
4241 ac_cv_path_GREP
="$ac_path_GREP"
4242 ac_path_GREP_max
=$ac_count
4244 # 10*(2^10) chars as input seems more than enough
4245 test $ac_count -gt 10 && break
4247 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4250 $ac_path_GREP_found && break 3
4255 if test -z "$ac_cv_path_GREP"; then
4256 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4259 ac_cv_path_GREP
=$GREP
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4264 $as_echo "$ac_cv_path_GREP" >&6; }
4265 GREP
="$ac_cv_path_GREP"
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4269 $as_echo_n "checking for egrep... " >&6; }
4270 if ${ac_cv_path_EGREP+:} false
; then :
4271 $as_echo_n "(cached) " >&6
4273 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4274 then ac_cv_path_EGREP
="$GREP -E"
4276 if test -z "$EGREP"; then
4277 ac_path_EGREP_found
=false
4278 # Loop through the user's path and test for each of PROGNAME-LIST
4279 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4280 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4283 test -z "$as_dir" && as_dir
=.
4284 for ac_prog
in egrep; do
4285 for ac_exec_ext
in '' $ac_executable_extensions; do
4286 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4287 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4288 # Check for GNU ac_path_EGREP and select it if it is found.
4289 # Check for GNU $ac_path_EGREP
4290 case `"$ac_path_EGREP" --version 2>&1` in
4292 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4295 $as_echo_n 0123456789 >"conftest.in"
4298 cat "conftest.in" "conftest.in" >"conftest.tmp"
4299 mv "conftest.tmp" "conftest.in"
4300 cp "conftest.in" "conftest.nl"
4301 $as_echo 'EGREP' >> "conftest.nl"
4302 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4303 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4304 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4305 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4306 # Best one so far, save it but keep looking for a better one
4307 ac_cv_path_EGREP
="$ac_path_EGREP"
4308 ac_path_EGREP_max
=$ac_count
4310 # 10*(2^10) chars as input seems more than enough
4311 test $ac_count -gt 10 && break
4313 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4316 $ac_path_EGREP_found && break 3
4321 if test -z "$ac_cv_path_EGREP"; then
4322 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4325 ac_cv_path_EGREP
=$EGREP
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4331 $as_echo "$ac_cv_path_EGREP" >&6; }
4332 EGREP
="$ac_cv_path_EGREP"
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4336 $as_echo_n "checking for ANSI C header files... " >&6; }
4337 if ${ac_cv_header_stdc+:} false
; then :
4338 $as_echo_n "(cached) " >&6
4340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h. */
4355 if ac_fn_c_try_compile
"$LINENO"; then :
4356 ac_cv_header_stdc
=yes
4358 ac_cv_header_stdc
=no
4360 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4362 if test $ac_cv_header_stdc = yes; then
4363 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4365 /* end confdefs.h. */
4369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4370 $EGREP "memchr" >/dev
/null
2>&1; then :
4373 ac_cv_header_stdc
=no
4379 if test $ac_cv_header_stdc = yes; then
4380 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4382 /* end confdefs.h. */
4386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4387 $EGREP "free" >/dev
/null
2>&1; then :
4390 ac_cv_header_stdc
=no
4396 if test $ac_cv_header_stdc = yes; then
4397 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4398 if test "$cross_compiling" = yes; then :
4401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4402 /* end confdefs.h. */
4405 #if ((' ' & 0x0FF) == 0x020)
4406 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4407 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4409 # define ISLOWER(c) \
4410 (('a' <= (c) && (c) <= 'i') \
4411 || ('j' <= (c) && (c) <= 'r') \
4412 || ('s' <= (c) && (c) <= 'z'))
4413 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4416 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4421 for (i = 0; i < 256; i++)
4422 if (XOR (islower (i), ISLOWER (i))
4423 || toupper (i) != TOUPPER (i))
4428 if ac_fn_c_try_run
"$LINENO"; then :
4431 ac_cv_header_stdc
=no
4433 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4434 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4440 $as_echo "$ac_cv_header_stdc" >&6; }
4441 if test $ac_cv_header_stdc = yes; then
4443 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4447 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4448 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4449 inttypes.h stdint.h unistd.h
4451 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4452 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4454 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4455 cat >>confdefs.h
<<_ACEOF
4456 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4465 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4466 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4473 if test "$MINIX" = yes; then
4475 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4478 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4481 $as_echo "#define _MINIX 1" >>confdefs.h
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4487 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4488 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4489 $as_echo_n "(cached) " >&6
4491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4492 /* end confdefs.h. */
4494 # define __EXTENSIONS__ 1
4495 $ac_includes_default
4504 if ac_fn_c_try_compile
"$LINENO"; then :
4505 ac_cv_safe_to_define___extensions__
=yes
4507 ac_cv_safe_to_define___extensions__
=no
4509 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4512 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4513 test $ac_cv_safe_to_define___extensions__ = yes &&
4514 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4516 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4518 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4520 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4522 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4526 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4527 if test -f "$ac_dir/install-sh"; then
4529 ac_install_sh
="$ac_aux_dir/install-sh -c"
4531 elif test -f "$ac_dir/install.sh"; then
4533 ac_install_sh
="$ac_aux_dir/install.sh -c"
4535 elif test -f "$ac_dir/shtool"; then
4537 ac_install_sh
="$ac_aux_dir/shtool install -c"
4541 if test -z "$ac_aux_dir"; then
4542 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4545 # These three variables are undocumented and unsupported,
4546 # and are intended to be withdrawn in a future Autoconf release.
4547 # They can cause serious problems if a builder's source tree is in a directory
4548 # whose full name contains unusual characters.
4549 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4550 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4551 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4554 # Make sure we can run config.sub.
4555 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4556 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4559 $as_echo_n "checking build system type... " >&6; }
4560 if ${ac_cv_build+:} false
; then :
4561 $as_echo_n "(cached) " >&6
4563 ac_build_alias
=$build_alias
4564 test "x$ac_build_alias" = x
&&
4565 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4566 test "x$ac_build_alias" = x
&&
4567 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4568 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4569 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4573 $as_echo "$ac_cv_build" >&6; }
4574 case $ac_cv_build in
4576 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4579 ac_save_IFS
=$IFS; IFS
='-'
4585 # Remember, the first character of IFS is used to create $*,
4586 # except with old shells:
4589 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4593 $as_echo_n "checking host system type... " >&6; }
4594 if ${ac_cv_host+:} false
; then :
4595 $as_echo_n "(cached) " >&6
4597 if test "x$host_alias" = x
; then
4598 ac_cv_host
=$ac_cv_build
4600 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4601 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4606 $as_echo "$ac_cv_host" >&6; }
4609 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4612 ac_save_IFS
=$IFS; IFS
='-'
4618 # Remember, the first character of IFS is used to create $*,
4619 # except with old shells:
4622 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4626 $as_echo_n "checking target system type... " >&6; }
4627 if ${ac_cv_target+:} false
; then :
4628 $as_echo_n "(cached) " >&6
4630 if test "x$target_alias" = x
; then
4631 ac_cv_target
=$ac_cv_host
4633 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4634 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4639 $as_echo "$ac_cv_target" >&6; }
4640 case $ac_cv_target in
4642 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4644 target
=$ac_cv_target
4645 ac_save_IFS
=$IFS; IFS
='-'
4651 # Remember, the first character of IFS is used to create $*,
4652 # except with old shells:
4655 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4658 # The aliases save the names the user supplied, while $host etc.
4659 # will get canonicalized.
4660 test -n "$target_alias" &&
4661 test "$program_prefix$program_suffix$program_transform_name" = \
4663 program_prefix
=${target_alias}-
4665 # The tests for host and target for $enable_largefile require
4670 # As the $enable_largefile decision depends on --enable-plugins we must set it
4671 # even in directories otherwise not depending on the $plugins option.
4675 for ac_header
in dlfcn.h
4677 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4679 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
4680 cat >>confdefs.h
<<_ACEOF
4681 #define HAVE_DLFCN_H 1
4688 for ac_header
in windows.h
4690 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4692 if test "x$ac_cv_header_windows_h" = xyes
; then :
4693 cat >>confdefs.h
<<_ACEOF
4694 #define HAVE_WINDOWS_H 1
4702 # Check whether --enable-plugins was given.
4703 if test "${enable_plugins+set}" = set; then :
4704 enableval
=$enable_plugins; case "${enableval}" in
4707 if test "$maybe_plugins" != "yes" ; then
4708 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4712 plugins
=$maybe_plugins
4716 if test "$plugins" = "yes"; then
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4718 $as_echo_n "checking for library containing dlsym... " >&6; }
4719 if ${ac_cv_search_dlsym+:} false
; then :
4720 $as_echo_n "(cached) " >&6
4722 ac_func_search_save_LIBS
=$LIBS
4723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4724 /* end confdefs.h. */
4726 /* Override any GCC internal prototype to avoid an error.
4727 Use char because int might match the return type of a GCC
4728 builtin and then its argument prototype would still apply. */
4741 for ac_lib
in '' dl
; do
4742 if test -z "$ac_lib"; then
4743 ac_res
="none required"
4746 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4748 if ac_fn_c_try_link
"$LINENO"; then :
4749 ac_cv_search_dlsym
=$ac_res
4751 rm -f core conftest.err conftest.
$ac_objext \
4753 if ${ac_cv_search_dlsym+:} false
; then :
4757 if ${ac_cv_search_dlsym+:} false
; then :
4760 ac_cv_search_dlsym
=no
4763 LIBS
=$ac_func_search_save_LIBS
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4766 $as_echo "$ac_cv_search_dlsym" >&6; }
4767 ac_res
=$ac_cv_search_dlsym
4768 if test "$ac_res" != no
; then :
4769 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4777 sparc-
*-solaris*|i?
86-*-solaris*)
4778 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
4779 # were mutually exclusive until Solaris 11.3. Without procfs support,
4780 # the bfd/ elf module cannot provide certain routines such as
4781 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
4782 # explicitly requested large-file support through the
4783 # --enable-largefile switch, disable large-file support in favor of
4786 # Check if <sys/procfs.h> is incompatible with large-file support.
4787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4788 /* end confdefs.h. */
4789 #define _FILE_OFFSET_BITS 64
4790 #define _STRUCTURED_PROC 1
4791 #include <sys/procfs.h>
4800 if ac_fn_c_try_compile
"$LINENO"; then :
4801 acx_cv_procfs_lfs
=yes
4803 acx_cv_procfs_lfs
=no
4805 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4807 # Forcefully disable large-file support only if necessary, gdb is in
4809 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
4810 -a -d $srcdir/..
/gdb
-a "$enable_gdb" != no
; then
4811 : ${enable_largefile="no"}
4812 if test "$plugins" = yes; then
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
4814 plugin support disabled; require large-file support which is incompatible with GDB." >&5
4815 $as_echo "$as_me: WARNING:
4816 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
4821 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
4822 # benefit of g++ 9+ which predefines it on Solaris.
4823 if test "$enable_largefile" = no
; then
4824 LARGEFILE_CPPFLAGS
="-U_FILE_OFFSET_BITS"
4830 # Check whether --enable-largefile was given.
4831 if test "${enable_largefile+set}" = set; then :
4832 enableval
=$enable_largefile;
4835 if test "$enable_largefile" != no
; then
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4838 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4839 if ${ac_cv_sys_largefile_CC+:} false
; then :
4840 $as_echo_n "(cached) " >&6
4842 ac_cv_sys_largefile_CC
=no
4843 if test "$GCC" != yes; then
4846 # IRIX 6.2 and later do not support large files by default,
4847 # so use the C compiler's -n32 option if that helps.
4848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4849 /* end confdefs.h. */
4850 #include <sys/types.h>
4851 /* Check that off_t can represent 2**63 - 1 correctly.
4852 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4853 since some C++ compilers masquerading as C compilers
4854 incorrectly reject 9223372036854775807. */
4855 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4856 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4857 && LARGE_OFF_T % 2147483647 == 1)
4867 if ac_fn_c_try_compile
"$LINENO"; then :
4870 rm -f core conftest.err conftest.
$ac_objext
4872 if ac_fn_c_try_compile
"$LINENO"; then :
4873 ac_cv_sys_largefile_CC
=' -n32'; break
4875 rm -f core conftest.err conftest.
$ac_objext
4879 rm -f conftest.
$ac_ext
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4883 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4884 if test "$ac_cv_sys_largefile_CC" != no
; then
4885 CC
=$CC$ac_cv_sys_largefile_CC
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4889 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4890 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4891 $as_echo_n "(cached) " >&6
4894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4895 /* end confdefs.h. */
4896 #include <sys/types.h>
4897 /* Check that off_t can represent 2**63 - 1 correctly.
4898 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4899 since some C++ compilers masquerading as C compilers
4900 incorrectly reject 9223372036854775807. */
4901 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4902 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4903 && LARGE_OFF_T % 2147483647 == 1)
4913 if ac_fn_c_try_compile
"$LINENO"; then :
4914 ac_cv_sys_file_offset_bits
=no
; break
4916 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4918 /* end confdefs.h. */
4919 #define _FILE_OFFSET_BITS 64
4920 #include <sys/types.h>
4921 /* Check that off_t can represent 2**63 - 1 correctly.
4922 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4923 since some C++ compilers masquerading as C compilers
4924 incorrectly reject 9223372036854775807. */
4925 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4926 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4927 && LARGE_OFF_T % 2147483647 == 1)
4937 if ac_fn_c_try_compile
"$LINENO"; then :
4938 ac_cv_sys_file_offset_bits
=64; break
4940 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4941 ac_cv_sys_file_offset_bits
=unknown
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4946 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4947 case $ac_cv_sys_file_offset_bits in #(
4950 cat >>confdefs.h
<<_ACEOF
4951 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4956 if test $ac_cv_sys_file_offset_bits = unknown
; then
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4958 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4959 if ${ac_cv_sys_large_files+:} false
; then :
4960 $as_echo_n "(cached) " >&6
4963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4964 /* end confdefs.h. */
4965 #include <sys/types.h>
4966 /* Check that off_t can represent 2**63 - 1 correctly.
4967 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4968 since some C++ compilers masquerading as C compilers
4969 incorrectly reject 9223372036854775807. */
4970 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4971 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4972 && LARGE_OFF_T % 2147483647 == 1)
4982 if ac_fn_c_try_compile
"$LINENO"; then :
4983 ac_cv_sys_large_files
=no
; break
4985 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4987 /* end confdefs.h. */
4988 #define _LARGE_FILES 1
4989 #include <sys/types.h>
4990 /* Check that off_t can represent 2**63 - 1 correctly.
4991 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4992 since some C++ compilers masquerading as C compilers
4993 incorrectly reject 9223372036854775807. */
4994 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4995 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4996 && LARGE_OFF_T % 2147483647 == 1)
5006 if ac_fn_c_try_compile
"$LINENO"; then :
5007 ac_cv_sys_large_files
=1; break
5009 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5010 ac_cv_sys_large_files
=unknown
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5015 $as_echo "$ac_cv_sys_large_files" >&6; }
5016 case $ac_cv_sys_large_files in #(
5019 cat >>confdefs.h
<<_ACEOF
5020 #define _LARGE_FILES $ac_cv_sys_large_files
5031 # Expand $ac_aux_dir to an absolute path.
5032 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
5034 if test x
"${install_sh+set}" != xset
; then
5037 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
5039 install_sh
="\${SHELL} $am_aux_dir/install-sh"
5043 # Installed binaries are usually stripped using 'strip' when the user
5044 # run "make install-strip". However 'strip' might not be the right
5045 # tool to use in cross-compilation environments, therefore Automake
5046 # will honor the 'STRIP' environment variable to overrule this program.
5047 if test "$cross_compiling" != no
; then
5048 if test -n "$ac_tool_prefix"; then
5049 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5050 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5052 $as_echo_n "checking for $ac_word... " >&6; }
5053 if ${ac_cv_prog_STRIP+:} false
; then :
5054 $as_echo_n "(cached) " >&6
5056 if test -n "$STRIP"; then
5057 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
5059 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5063 test -z "$as_dir" && as_dir
=.
5064 for ac_exec_ext
in '' $ac_executable_extensions; do
5065 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5066 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
5067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5076 STRIP
=$ac_cv_prog_STRIP
5077 if test -n "$STRIP"; then
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5079 $as_echo "$STRIP" >&6; }
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5082 $as_echo "no" >&6; }
5087 if test -z "$ac_cv_prog_STRIP"; then
5089 # Extract the first word of "strip", so it can be a program name with args.
5090 set dummy strip
; ac_word
=$2
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5092 $as_echo_n "checking for $ac_word... " >&6; }
5093 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
5094 $as_echo_n "(cached) " >&6
5096 if test -n "$ac_ct_STRIP"; then
5097 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5099 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5103 test -z "$as_dir" && as_dir
=.
5104 for ac_exec_ext
in '' $ac_executable_extensions; do
5105 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5106 ac_cv_prog_ac_ct_STRIP
="strip"
5107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5116 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5117 if test -n "$ac_ct_STRIP"; then
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5119 $as_echo "$ac_ct_STRIP" >&6; }
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5122 $as_echo "no" >&6; }
5125 if test "x$ac_ct_STRIP" = x
; then
5128 case $cross_compiling:$ac_tool_warned in
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5132 ac_tool_warned
=yes ;;
5137 STRIP
="$ac_cv_prog_STRIP"
5141 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
5145 for ac_dir
in ..
"$srcdir"/..
; do
5146 if test -f "$ac_dir/install-sh"; then
5148 ac_install_sh
="$ac_aux_dir/install-sh -c"
5150 elif test -f "$ac_dir/install.sh"; then
5152 ac_install_sh
="$ac_aux_dir/install.sh -c"
5154 elif test -f "$ac_dir/shtool"; then
5156 ac_install_sh
="$ac_aux_dir/shtool install -c"
5160 if test -z "$ac_aux_dir"; then
5161 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
5164 # These three variables are undocumented and unsupported,
5165 # and are intended to be withdrawn in a future Autoconf release.
5166 # They can cause serious problems if a builder's source tree is in a directory
5167 # whose full name contains unusual characters.
5168 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5169 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5170 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5174 # Set build, build_cpu, build_vendor and build_os.
5177 # Set host, host_cpu, host_vendor, and host_os.
5180 # Set target, target_cpu, target_vendor, and target_os.
5183 test "$program_prefix" != NONE
&&
5184 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
5185 # Use a double $ so make ignores it.
5186 test "$program_suffix" != NONE
&&
5187 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
5188 # Double any \ or $.
5189 # By default was `s,x,x', remove it if useless.
5190 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
5191 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
5194 # We require a C++11 compiler. Check if one is available, and if
5195 # necessary, set CXX_DIALECT to some -std=xxx switch.
5197 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5199 ac_cpp
='$CXXCPP $CPPFLAGS'
5200 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5201 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5202 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5206 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5207 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5208 $as_echo_n "(cached) " >&6
5210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5211 /* end confdefs.h. */
5214 // If the compiler admits that it is not ready for C++11, why torture it?
5215 // Hopefully, this will speed up the test.
5219 #error "This is not a C++ compiler"
5221 #elif __cplusplus < 201103L
5223 #error "This is not a C++11 compiler"
5230 namespace test_static_assert
5233 template <typename T>
5236 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5241 namespace test_final_override
5249 struct Derived : public Base
5251 virtual void f() override {}
5256 namespace test_double_right_angle_brackets
5259 template < typename T >
5262 typedef check<void> single_type;
5263 typedef check<check<void>> double_type;
5264 typedef check<check<check<void>>> triple_type;
5265 typedef check<check<check<check<void>>>> quadruple_type;
5269 namespace test_decltype
5282 namespace test_type_deduction
5285 template < typename T1, typename T2 >
5288 static const bool value = false;
5291 template < typename T >
5292 struct is_same<T, T>
5294 static const bool value = true;
5297 template < typename T1, typename T2 >
5299 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5305 test(const int c, volatile int v)
5307 static_assert(is_same<int, decltype(0)>::value == true, "");
5308 static_assert(is_same<int, decltype(c)>::value == false, "");
5309 static_assert(is_same<int, decltype(v)>::value == false, "");
5312 auto sumi = ac + av + 'x';
5313 auto sumf = ac + av + 1.0;
5314 static_assert(is_same<int, decltype(ac)>::value == true, "");
5315 static_assert(is_same<int, decltype(av)>::value == true, "");
5316 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5317 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5318 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5319 return (sumf > 0.0) ? sumi : add(c, v);
5324 namespace test_noexcept
5327 int f() { return 0; }
5328 int g() noexcept { return 0; }
5330 static_assert(noexcept(f()) == false, "");
5331 static_assert(noexcept(g()) == true, "");
5335 namespace test_constexpr
5338 template < typename CharT >
5339 unsigned long constexpr
5340 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5342 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5345 template < typename CharT >
5346 unsigned long constexpr
5347 strlen_c(const CharT *const s) noexcept
5349 return strlen_c_r(s, 0UL);
5352 static_assert(strlen_c("") == 0UL, "");
5353 static_assert(strlen_c("1") == 1UL, "");
5354 static_assert(strlen_c("example") == 7UL, "");
5355 static_assert(strlen_c("another\0example") == 7UL, "");
5359 namespace test_rvalue_references
5365 static constexpr int value = N;
5368 answer<1> f(int&) { return answer<1>(); }
5369 answer<2> f(const int&) { return answer<2>(); }
5370 answer<3> f(int&&) { return answer<3>(); }
5377 static_assert(decltype(f(i))::value == 1, "");
5378 static_assert(decltype(f(c))::value == 2, "");
5379 static_assert(decltype(f(0))::value == 3, "");
5384 namespace test_uniform_initialization
5389 static const int zero {};
5390 static const int one {1};
5393 static_assert(test::zero == 0, "");
5394 static_assert(test::one == 1, "");
5398 namespace test_lambdas
5404 auto lambda1 = [](){};
5405 auto lambda2 = lambda1;
5413 auto a = [](int i, int j){ return i + j; }(1, 2);
5414 auto b = []() -> int { return '0'; }();
5415 auto c = [=](){ return a + b; }();
5416 auto d = [&](){ return c; }();
5417 auto e = [a, &b](int x) mutable {
5418 const auto identity = [](int y){ return y; };
5419 for (auto i = 0; i < a; ++i)
5421 return x + identity(a + b);
5423 return a + b + c + d + e;
5429 const auto nullary = [](){ return 0; };
5430 const auto unary = [](int x){ return x; };
5431 using nullary_t = decltype(nullary);
5432 using unary_t = decltype(unary);
5433 const auto higher1st = [](nullary_t f){ return f(); };
5434 const auto higher2nd = [unary](nullary_t f1){
5435 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5437 return higher1st(nullary) + higher2nd(nullary)(unary);
5442 namespace test_variadic_templates
5448 template <int N0, int... N1toN>
5449 struct sum<N0, N1toN...>
5451 static constexpr auto value = N0 + sum<N1toN...>::value;
5457 static constexpr auto value = 0;
5460 static_assert(sum<>::value == 0, "");
5461 static_assert(sum<1>::value == 1, "");
5462 static_assert(sum<23>::value == 23, "");
5463 static_assert(sum<1, 2>::value == 3, "");
5464 static_assert(sum<5, 5, 11>::value == 21, "");
5465 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5469 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5470 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5472 namespace test_template_alias_sfinae
5477 template<typename T>
5478 using member = typename T::member_type;
5480 template<typename T>
5483 template<typename T>
5484 void func(member<T>*) {}
5488 void test() { func<foo>(0); }
5492 } // namespace cxx11
5494 #endif // __cplusplus >= 201103L
5499 if ac_fn_cxx_try_compile
"$LINENO"; then :
5500 ax_cv_cxx_compile_cxx11
=yes
5502 ax_cv_cxx_compile_cxx11
=no
5504 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5507 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5508 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
5512 if test x
$ac_success = xno
; then
5513 for alternative
in ${ax_cxx_compile_alternatives}; do
5514 switch
="-std=gnu++${alternative}"
5515 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5517 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5518 if eval \
${$cachevar+:} false
; then :
5519 $as_echo_n "(cached) " >&6
5523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5524 /* end confdefs.h. */
5527 // If the compiler admits that it is not ready for C++11, why torture it?
5528 // Hopefully, this will speed up the test.
5532 #error "This is not a C++ compiler"
5534 #elif __cplusplus < 201103L
5536 #error "This is not a C++11 compiler"
5543 namespace test_static_assert
5546 template <typename T>
5549 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5554 namespace test_final_override
5562 struct Derived : public Base
5564 virtual void f() override {}
5569 namespace test_double_right_angle_brackets
5572 template < typename T >
5575 typedef check<void> single_type;
5576 typedef check<check<void>> double_type;
5577 typedef check<check<check<void>>> triple_type;
5578 typedef check<check<check<check<void>>>> quadruple_type;
5582 namespace test_decltype
5595 namespace test_type_deduction
5598 template < typename T1, typename T2 >
5601 static const bool value = false;
5604 template < typename T >
5605 struct is_same<T, T>
5607 static const bool value = true;
5610 template < typename T1, typename T2 >
5612 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5618 test(const int c, volatile int v)
5620 static_assert(is_same<int, decltype(0)>::value == true, "");
5621 static_assert(is_same<int, decltype(c)>::value == false, "");
5622 static_assert(is_same<int, decltype(v)>::value == false, "");
5625 auto sumi = ac + av + 'x';
5626 auto sumf = ac + av + 1.0;
5627 static_assert(is_same<int, decltype(ac)>::value == true, "");
5628 static_assert(is_same<int, decltype(av)>::value == true, "");
5629 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5630 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5631 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5632 return (sumf > 0.0) ? sumi : add(c, v);
5637 namespace test_noexcept
5640 int f() { return 0; }
5641 int g() noexcept { return 0; }
5643 static_assert(noexcept(f()) == false, "");
5644 static_assert(noexcept(g()) == true, "");
5648 namespace test_constexpr
5651 template < typename CharT >
5652 unsigned long constexpr
5653 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5655 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5658 template < typename CharT >
5659 unsigned long constexpr
5660 strlen_c(const CharT *const s) noexcept
5662 return strlen_c_r(s, 0UL);
5665 static_assert(strlen_c("") == 0UL, "");
5666 static_assert(strlen_c("1") == 1UL, "");
5667 static_assert(strlen_c("example") == 7UL, "");
5668 static_assert(strlen_c("another\0example") == 7UL, "");
5672 namespace test_rvalue_references
5678 static constexpr int value = N;
5681 answer<1> f(int&) { return answer<1>(); }
5682 answer<2> f(const int&) { return answer<2>(); }
5683 answer<3> f(int&&) { return answer<3>(); }
5690 static_assert(decltype(f(i))::value == 1, "");
5691 static_assert(decltype(f(c))::value == 2, "");
5692 static_assert(decltype(f(0))::value == 3, "");
5697 namespace test_uniform_initialization
5702 static const int zero {};
5703 static const int one {1};
5706 static_assert(test::zero == 0, "");
5707 static_assert(test::one == 1, "");
5711 namespace test_lambdas
5717 auto lambda1 = [](){};
5718 auto lambda2 = lambda1;
5726 auto a = [](int i, int j){ return i + j; }(1, 2);
5727 auto b = []() -> int { return '0'; }();
5728 auto c = [=](){ return a + b; }();
5729 auto d = [&](){ return c; }();
5730 auto e = [a, &b](int x) mutable {
5731 const auto identity = [](int y){ return y; };
5732 for (auto i = 0; i < a; ++i)
5734 return x + identity(a + b);
5736 return a + b + c + d + e;
5742 const auto nullary = [](){ return 0; };
5743 const auto unary = [](int x){ return x; };
5744 using nullary_t = decltype(nullary);
5745 using unary_t = decltype(unary);
5746 const auto higher1st = [](nullary_t f){ return f(); };
5747 const auto higher2nd = [unary](nullary_t f1){
5748 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5750 return higher1st(nullary) + higher2nd(nullary)(unary);
5755 namespace test_variadic_templates
5761 template <int N0, int... N1toN>
5762 struct sum<N0, N1toN...>
5764 static constexpr auto value = N0 + sum<N1toN...>::value;
5770 static constexpr auto value = 0;
5773 static_assert(sum<>::value == 0, "");
5774 static_assert(sum<1>::value == 1, "");
5775 static_assert(sum<23>::value == 23, "");
5776 static_assert(sum<1, 2>::value == 3, "");
5777 static_assert(sum<5, 5, 11>::value == 21, "");
5778 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5782 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5783 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5785 namespace test_template_alias_sfinae
5790 template<typename T>
5791 using member = typename T::member_type;
5793 template<typename T>
5796 template<typename T>
5797 void func(member<T>*) {}
5801 void test() { func<foo>(0); }
5805 } // namespace cxx11
5807 #endif // __cplusplus >= 201103L
5812 if ac_fn_cxx_try_compile
"$LINENO"; then :
5817 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5820 eval ac_res
=\$
$cachevar
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5822 $as_echo "$ac_res" >&6; }
5823 if eval test x\$
$cachevar = xyes
; then
5824 CXX_DIALECT
="$switch"
5831 if test x
$ac_success = xno
; then
5832 for alternative
in ${ax_cxx_compile_alternatives}; do
5833 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5834 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
5836 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
5837 if eval \${$cachevar+:} false; then :
5838 $as_echo_n "(cached
) " >&6
5842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5843 /* end confdefs.h. */
5846 // If the compiler admits that it is not ready for C++11, why torture it?
5847 // Hopefully, this will speed up the test.
5851 #error "This is not a C
++ compiler
"
5853 #elif __cplusplus < 201103L
5855 #error "This is not a C
++11 compiler
"
5862 namespace test_static_assert
5865 template <typename T>
5868 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
5873 namespace test_final_override
5881 struct Derived : public Base
5883 virtual void f() override {}
5888 namespace test_double_right_angle_brackets
5891 template < typename T >
5894 typedef check<void> single_type;
5895 typedef check<check<void>> double_type;
5896 typedef check<check<check<void>>> triple_type;
5897 typedef check<check<check<check<void>>>> quadruple_type;
5901 namespace test_decltype
5914 namespace test_type_deduction
5917 template < typename T1, typename T2 >
5920 static const bool value = false;
5923 template < typename T >
5924 struct is_same<T, T>
5926 static const bool value = true;
5929 template < typename T1, typename T2 >
5931 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5937 test(const int c, volatile int v)
5939 static_assert(is_same<int, decltype(0)>::value == true, "");
5940 static_assert(is_same<int, decltype(c)>::value == false, "");
5941 static_assert(is_same<int, decltype(v)>::value == false, "");
5944 auto sumi = ac + av + 'x';
5945 auto sumf = ac + av + 1.0;
5946 static_assert(is_same<int, decltype(ac)>::value == true, "");
5947 static_assert(is_same<int, decltype(av)>::value == true, "");
5948 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5949 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5950 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5951 return (sumf > 0.0) ? sumi : add(c, v);
5956 namespace test_noexcept
5959 int f() { return 0; }
5960 int g() noexcept { return 0; }
5962 static_assert(noexcept(f()) == false, "");
5963 static_assert(noexcept(g()) == true, "");
5967 namespace test_constexpr
5970 template < typename CharT >
5971 unsigned long constexpr
5972 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5974 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5977 template < typename CharT >
5978 unsigned long constexpr
5979 strlen_c(const CharT *const s) noexcept
5981 return strlen_c_r(s, 0UL);
5984 static_assert(strlen_c("") == 0UL, "");
5985 static_assert(strlen_c("1") == 1UL, "");
5986 static_assert(strlen_c("example
") == 7UL, "");
5987 static_assert(strlen_c("another\
0example
") == 7UL, "");
5991 namespace test_rvalue_references
5997 static constexpr int value = N;
6000 answer<1> f(int&) { return answer<1>(); }
6001 answer<2> f(const int&) { return answer<2>(); }
6002 answer<3> f(int&&) { return answer<3>(); }
6009 static_assert(decltype(f(i))::value == 1, "");
6010 static_assert(decltype(f(c))::value == 2, "");
6011 static_assert(decltype(f(0))::value == 3, "");
6016 namespace test_uniform_initialization
6021 static const int zero {};
6022 static const int one {1};
6025 static_assert(test::zero == 0, "");
6026 static_assert(test::one == 1, "");
6030 namespace test_lambdas
6036 auto lambda1 = [](){};
6037 auto lambda2 = lambda1;
6045 auto a = [](int i, int j){ return i + j; }(1, 2);
6046 auto b = []() -> int { return '0'; }();
6047 auto c = [=](){ return a + b; }();
6048 auto d = [&](){ return c; }();
6049 auto e = [a, &b](int x) mutable {
6050 const auto identity = [](int y){ return y; };
6051 for (auto i = 0; i < a; ++i)
6053 return x + identity(a + b);
6055 return a + b + c + d + e;
6061 const auto nullary = [](){ return 0; };
6062 const auto unary = [](int x){ return x; };
6063 using nullary_t = decltype(nullary);
6064 using unary_t = decltype(unary);
6065 const auto higher1st = [](nullary_t f){ return f(); };
6066 const auto higher2nd = [unary](nullary_t f1){
6067 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6069 return higher1st(nullary) + higher2nd(nullary)(unary);
6074 namespace test_variadic_templates
6080 template <int N0, int... N1toN>
6081 struct sum<N0, N1toN...>
6083 static constexpr auto value = N0 + sum<N1toN...>::value;
6089 static constexpr auto value = 0;
6092 static_assert(sum<>::value == 0, "");
6093 static_assert(sum<1>::value == 1, "");
6094 static_assert(sum<23>::value == 23, "");
6095 static_assert(sum<1, 2>::value == 3, "");
6096 static_assert(sum<5, 5, 11>::value == 21, "");
6097 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6101 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6102 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6104 namespace test_template_alias_sfinae
6109 template<typename T>
6110 using member = typename T::member_type;
6112 template<typename T>
6115 template<typename T>
6116 void func(member<T>*) {}
6120 void test() { func<foo>(0); }
6124 } // namespace cxx11
6126 #endif // __cplusplus >= 201103L
6131 if ac_fn_cxx_try_compile "$LINENO"; then :
6136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6139 eval ac_res=\$$cachevar
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6141 $as_echo "$ac_res" >&6; }
6142 if eval test x\$$cachevar = xyes; then
6143 CXX_DIALECT="$switch"
6148 if test x$ac_success = xyes; then
6154 ac_cpp='$CPP $CPPFLAGS'
6155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6159 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6160 if test x$ac_success = xno; then
6161 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6164 if test x$ac_success = xno; then
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6167 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6171 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6178 # Dependency checking.
6179 rm -rf .tst
2>/dev
/null
6180 mkdir .tst
2>/dev
/null
6181 if test -d .tst
; then
6186 rmdir .tst
2>/dev
/null
6188 DEPDIR
="${am__leading_dot}deps"
6190 ac_config_commands
="$ac_config_commands depdir"
6193 depcc
="$CC" am_compiler_list
=
6195 am_depcomp
=$ac_aux_dir/depcomp
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6197 $as_echo_n "checking dependency style of $depcc... " >&6; }
6198 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
6199 $as_echo_n "(cached) " >&6
6201 if test -f "$am_depcomp"; then
6202 # We make a subdir and do the tests there. Otherwise we can end up
6203 # making bogus files that we don't know about and never remove. For
6204 # instance it was reported that on HP-UX the gcc test will end up
6205 # making a dummy file named `D' -- because `-MD' means `put the output
6208 # Copy depcomp to subdir because otherwise we won't find it if we're
6209 # using a relative directory.
6210 cp "$am_depcomp" conftest.dir
6212 # We will build objects and dependencies in a subdirectory because
6213 # it helps to detect inapplicable dependency modes. For instance
6214 # both Tru64's cc and ICC support -MD to output dependencies as a
6215 # side effect of compilation, but ICC will put the dependencies in
6216 # the current directory while Tru64 will put them in the object
6220 am_cv_CC_dependencies_compiler_type
=none
6221 if test "$am_compiler_list" = ""; then
6222 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6224 for depmode
in $am_compiler_list; do
6225 if test $depmode = none
; then break; fi
6227 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6228 # Setup a source with many dependencies, because some compilers
6229 # like to wrap large dependency lists on column 80 (with \), and
6230 # we should not choose a depcomp mode which is confused by this.
6232 # We need to recreate these files for each test, as the compiler may
6233 # overwrite some of them when testing with obscure command lines.
6234 # This happens at least with the AIX C compiler.
6236 for i
in 1 2 3 4 5 6; do
6237 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6238 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6239 # Solaris 8's {/usr,}/bin/sh.
6240 touch sub
/conftst
$i.h
6242 echo "include sub/conftest.Po" > confmf
6244 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6245 # mode. It turns out that the SunPro C++ compiler does not properly
6246 # handle `-M -o', and we need to detect this.
6247 depcmd
="depmode=$depmode \
6248 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6249 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6250 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6251 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
6252 if env
$depcmd > conftest.err
2>&1 &&
6253 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
6254 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
6255 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
6256 # icc doesn't choke on unknown options, it will just issue warnings
6257 # or remarks (even with -Werror). So we grep stderr for any message
6258 # that says an option was ignored or not supported.
6259 # When given -MP, icc 7.0 and 7.1 complain thusly:
6260 # icc: Command line warning: ignoring option '-M'; no argument required
6261 # The diagnosis changed in icc 8.0:
6262 # icc: Command line remark: option '-MP' not supported
6263 if (grep 'ignoring option' conftest.err ||
6264 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6265 am_cv_CC_dependencies_compiler_type
=$depmode
6266 $as_echo "$as_me:$LINENO: success" >&5
6270 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6271 sed -e 's/^/| /' < conftest.err
>&5
6277 am_cv_CC_dependencies_compiler_type
=none
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6282 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6283 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
6284 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
6285 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
6301 # If we haven't got the data from the intl directory,
6302 # assume NLS is disabled.
6311 if test -f ..
/intl
/config.intl
; then
6312 . ..
/intl
/config.intl
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6315 $as_echo_n "checking whether NLS is requested... " >&6; }
6316 if test x
"$USE_NLS" != xyes
; then
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6318 $as_echo "no" >&6; }
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6321 $as_echo "yes" >&6; }
6323 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6327 $as_echo_n "checking for catalogs to be installed... " >&6; }
6328 # Look for .po and .gmo files in the source directory.
6331 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
6332 # If there aren't any .gmo files the shell will give us the
6333 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6335 case "$cat" in *\
**)
6338 # The quadruple backslash is collapsed to a double backslash
6339 # by the backticks, then collapsed again by the double quotes,
6340 # leaving us with one backslash in the sed expression (right
6341 # before the dot that mustn't act as a wildcard).
6342 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6343 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
6344 # The user is allowed to set LINGUAS to a list of languages to
6345 # install catalogs for. If it's empty that means "all of them."
6346 if test "x$LINGUAS" = x
; then
6347 CATALOGS
="$CATALOGS $cat"
6348 XLINGUAS
="$XLINGUAS $lang"
6350 case "$LINGUAS" in *$lang*)
6351 CATALOGS
="$CATALOGS $cat"
6352 XLINGUAS
="$XLINGUAS $lang"
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6359 $as_echo "$LINGUAS" >&6; }
6372 localedir
='${datadir}/locale'
6375 if test x
"$USE_NLS" = xyes
; then
6376 CONFIG_ALL
="$CONFIG_ALL all-po"
6377 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
6378 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
6379 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
6384 cat >>confdefs.h
<<_ACEOF
6385 #define PACKAGE "$PACKAGE"
6390 # We never need to detect it in this sub-configure.
6391 # But preserve it for config.status --recheck.
6395 MAKEINFO_EXTRA_FLAGS
=""
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
6397 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
6398 if ${gdb_cv_have_makeinfo_click+:} false
; then :
6399 $as_echo_n "(cached) " >&6
6401 echo '@clicksequence{a @click{} b}' >conftest.texinfo
6402 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
6403 gdb_cv_have_makeinfo_click
=yes
6405 gdb_cv_have_makeinfo_click
=no
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
6409 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
6410 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
6411 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
6417 # Check whether --with-separate-debug-dir was given.
6418 if test "${with_separate_debug_dir+set}" = set; then :
6419 withval
=$with_separate_debug_dir;
6422 DEBUGDIR
=${libdir}/debug
6426 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6427 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6428 ac_define_dir
=`eval echo $DEBUGDIR`
6429 ac_define_dir
=`eval echo $ac_define_dir`
6431 cat >>confdefs.h
<<_ACEOF
6432 #define DEBUGDIR "$ac_define_dir"
6438 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6439 if test "x$prefix" = xNONE
; then
6440 test_prefix
=/usr
/local
6445 test_prefix
=$exec_prefix
6448 case ${ac_define_dir} in
6449 "${test_prefix}"|
"${test_prefix}/"*|\
6450 '${exec_prefix}'|
'${exec_prefix}/'*)
6455 cat >>confdefs.h
<<_ACEOF
6456 #define DEBUGDIR_RELOCATABLE $value
6462 # We can't pass paths as command line arguments.
6463 # Mingw32 tries to be clever and will convert the paths for us.
6464 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
6465 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
6466 # This breaks GDB's relocatable path conversions since paths passed in
6467 # config.h would not get so translated, the path prefixes no longer match.
6469 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6470 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6471 ac_define_dir
=`eval echo $bindir`
6472 ac_define_dir
=`eval echo $ac_define_dir`
6474 cat >>confdefs.h
<<_ACEOF
6475 #define BINDIR "$ac_define_dir"
6480 # GDB's datadir relocation
6484 # Check whether --with-gdb-datadir was given.
6485 if test "${with_gdb_datadir+set}" = set; then :
6486 withval
=$with_gdb_datadir;
6487 GDB_DATADIR
=$withval
6489 GDB_DATADIR
=${datadir}/gdb
6493 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6494 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6495 ac_define_dir
=`eval echo $GDB_DATADIR`
6496 ac_define_dir
=`eval echo $ac_define_dir`
6498 cat >>confdefs.h
<<_ACEOF
6499 #define GDB_DATADIR "$ac_define_dir"
6505 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6506 if test "x$prefix" = xNONE
; then
6507 test_prefix
=/usr
/local
6512 test_prefix
=$exec_prefix
6515 case ${ac_define_dir} in
6516 "${test_prefix}"|
"${test_prefix}/"*|\
6517 '${exec_prefix}'|
'${exec_prefix}/'*)
6522 cat >>confdefs.h
<<_ACEOF
6523 #define GDB_DATADIR_RELOCATABLE $value
6530 # Check whether --with-relocated-sources was given.
6531 if test "${with_relocated_sources+set}" = set; then :
6532 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
6534 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6535 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6536 ac_define_dir
=`eval echo $reloc_srcdir`
6537 ac_define_dir
=`eval echo $ac_define_dir`
6539 cat >>confdefs.h
<<_ACEOF
6540 #define RELOC_SRCDIR "$ac_define_dir"
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
6549 $as_echo_n "checking for default auto-load directory... " >&6; }
6551 # Check whether --with-auto-load-dir was given.
6552 if test "${with_auto_load_dir+set}" = set; then :
6553 withval
=$with_auto_load_dir;
6555 with_auto_load_dir
='$debugdir:$datadir/auto-load'
6558 escape_dir
=`echo $with_auto_load_dir | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6560 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6561 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6562 ac_define_dir
=`eval echo $escape_dir`
6563 ac_define_dir
=`eval echo $ac_define_dir`
6565 cat >>confdefs.h
<<_ACEOF
6566 #define AUTO_LOAD_DIR "$ac_define_dir"
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
6571 $as_echo "$with_auto_load_dir" >&6; }
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
6574 $as_echo_n "checking for default auto-load safe-path... " >&6; }
6576 # Check whether --with-auto-load-safe-path was given.
6577 if test "${with_auto_load_safe_path+set}" = set; then :
6578 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
6579 with_auto_load_safe_path
="/"
6582 with_auto_load_safe_path
="$with_auto_load_dir"
6585 escape_dir
=`echo $with_auto_load_safe_path | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6587 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6588 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6589 ac_define_dir
=`eval echo $escape_dir`
6590 ac_define_dir
=`eval echo $ac_define_dir`
6592 cat >>confdefs.h
<<_ACEOF
6593 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
6598 $as_echo "$with_auto_load_safe_path" >&6; }
6602 subdirs
="$subdirs testsuite"
6605 # Check whether to support alternative target configurations
6606 # Check whether --enable-targets was given.
6607 if test "${enable_targets+set}" = set; then :
6608 enableval
=$enable_targets; case "${enableval}" in
6609 yes |
"") as_fn_error $?
"enable-targets option must specify target names or 'all'" "$LINENO" 5
6611 no
) enable_targets
= ;;
6612 *) enable_targets
=$enableval ;;
6617 # Check whether to enable 64-bit support on 32-bit hosts
6618 # Check whether --enable-64-bit-bfd was given.
6619 if test "${enable_64_bit_bfd+set}" = set; then :
6620 enableval
=$enable_64_bit_bfd; case "${enableval}" in
6623 *) as_fn_error $?
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
6629 # Provide defaults for some variables set by the per-host and per-target
6631 gdb_host_obs
=posix-hdep.o
6633 if test "${target}" = "${host}"; then
6639 .
$srcdir/configure.
host
6641 # Accumulate some settings from configure.tgt over all enabled targets
6645 HAVE_NATIVE_GCORE_TARGET
=
6647 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6649 if test "$targ_alias" = "all"; then
6652 # Canonicalize the secondary target names.
6653 result
=`$ac_config_sub $targ_alias 2>/dev/null`
6654 if test -n "$result"; then
6660 .
${srcdir}/configure.tgt
6662 if test -z "${gdb_target_obs}"; then :
6663 as_fn_error $?
"configuration ${targ} is unsupported." "$LINENO" 5
6666 # Target-specific object files
6667 for i
in ${gdb_target_obs}; do
6668 case " $TARGET_OBS " in
6671 TARGET_OBS
="$TARGET_OBS ${i}"
6676 # Check whether this target needs 64-bit CORE_ADDR
6677 if test x
${want64} = xfalse
; then
6678 .
${srcdir}/..
/bfd
/config.bfd
6681 # Check whether this target is native and supports gcore.
6682 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
6683 && $gdb_have_gcore; then
6684 HAVE_NATIVE_GCORE_TARGET
=1
6689 if test x
${all_targets} = xtrue
; then
6691 # We want all 64-bit targets if we either:
6692 # - run on a 64-bit host or
6693 # - already require 64-bit support for some other target or
6694 # - the --enable-64-bit-bfd option was supplied
6695 # Otherwise we only support all 32-bit targets.
6697 # NOTE: This test must be in sync with the corresponding
6700 if test x
${want64} = xfalse
; then
6701 # The cast to long int works around a bug in the HP C Compiler
6702 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6703 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6704 # This bug is HP SR number 8606223364.
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6706 $as_echo_n "checking size of long... " >&6; }
6707 if ${ac_cv_sizeof_long+:} false
; then :
6708 $as_echo_n "(cached) " >&6
6710 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6713 if test "$ac_cv_type_long" = yes; then
6714 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6716 as_fn_error
77 "cannot compute sizeof (long)
6717 See \`config.log' for more details" "$LINENO" 5; }
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6725 $as_echo "$ac_cv_sizeof_long" >&6; }
6729 cat >>confdefs.h
<<_ACEOF
6730 #define SIZEOF_LONG $ac_cv_sizeof_long
6734 if test "x${ac_cv_sizeof_long}" = "x8"; then
6738 if test x
${want64} = xtrue
; then
6739 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
6741 TARGET_OBS
='$(ALL_TARGET_OBS)'
6748 # For other settings, only the main target counts.
6751 targ
=$target; .
${srcdir}/configure.tgt
6753 # Fetch the default architecture and default target vector from BFD.
6754 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
6756 # We only want the first architecture, so strip off the others if
6757 # there is more than one.
6758 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
6760 if test "x$targ_archs" != x
; then
6762 cat >>confdefs.h
<<_ACEOF
6763 #define DEFAULT_BFD_ARCH $targ_archs
6767 if test "x$targ_defvec" != x
; then
6769 cat >>confdefs.h
<<_ACEOF
6770 #define DEFAULT_BFD_VEC $targ_defvec
6776 # Check whether --enable-gdbmi was given.
6777 if test "${enable_gdbmi+set}" = set; then :
6778 enableval
=$enable_gdbmi; case $enableval in
6782 as_fn_error $?
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
6788 if test x
"$enable_gdbmi" = xyes
; then
6789 if test -d "$srcdir/mi"; then
6790 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6791 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6792 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6793 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6798 # Check whether --enable-tui was given.
6799 if test "${enable_tui+set}" = set; then :
6800 enableval
=$enable_tui; case $enableval in
6804 as_fn_error $?
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
6812 # Check whether --enable-gdbtk was given.
6813 if test "${enable_gdbtk+set}" = set; then :
6814 enableval
=$enable_gdbtk; case $enableval in
6818 as_fn_error $?
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
6821 if test -d "$srcdir/gdbtk"; then
6828 # We unconditionally disable gdbtk tests on selected platforms.
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
6832 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6836 # Handle optional debuginfod support
6844 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6845 if test -n "$ac_tool_prefix"; then
6846 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6847 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6849 $as_echo_n "checking for $ac_word... " >&6; }
6850 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
6851 $as_echo_n "(cached) " >&6
6855 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6858 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6862 test -z "$as_dir" && as_dir
=.
6863 for ac_exec_ext
in '' $ac_executable_extensions; do
6864 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6865 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6876 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6877 if test -n "$PKG_CONFIG"; then
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6879 $as_echo "$PKG_CONFIG" >&6; }
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882 $as_echo "no" >&6; }
6887 if test -z "$ac_cv_path_PKG_CONFIG"; then
6888 ac_pt_PKG_CONFIG
=$PKG_CONFIG
6889 # Extract the first word of "pkg-config", so it can be a program name with args.
6890 set dummy pkg-config
; ac_word
=$2
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6892 $as_echo_n "checking for $ac_word... " >&6; }
6893 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
6894 $as_echo_n "(cached) " >&6
6896 case $ac_pt_PKG_CONFIG in
6898 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6901 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6905 test -z "$as_dir" && as_dir
=.
6906 for ac_exec_ext
in '' $ac_executable_extensions; do
6907 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6908 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6919 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
6920 if test -n "$ac_pt_PKG_CONFIG"; then
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6922 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6925 $as_echo "no" >&6; }
6928 if test "x$ac_pt_PKG_CONFIG" = x
; then
6931 case $cross_compiling:$ac_tool_warned in
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6935 ac_tool_warned
=yes ;;
6937 PKG_CONFIG
=$ac_pt_PKG_CONFIG
6940 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
6944 if test -n "$PKG_CONFIG"; then
6945 _pkg_min_version
=0.9.0
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6947 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6948 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6950 $as_echo "yes" >&6; }
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6953 $as_echo "no" >&6; }
6958 # Handle optional debuginfod support
6960 # Check whether --with-debuginfod was given.
6961 if test "${with_debuginfod+set}" = set; then :
6962 withval
=$with_debuginfod;
6964 with_debuginfod
=auto
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
6968 $as_echo_n "checking whether to use debuginfod... " >&6; }
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
6970 $as_echo "$with_debuginfod" >&6; }
6972 if test "x$with_debuginfod" != xno
; then
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5
6976 $as_echo_n "checking for libdebuginfod >= 0.179... " >&6; }
6978 if test -n "$DEBUGINFOD_CFLAGS"; then
6979 pkg_cv_DEBUGINFOD_CFLAGS
="$DEBUGINFOD_CFLAGS"
6980 elif test -n "$PKG_CONFIG"; then
6981 if test -n "$PKG_CONFIG" && \
6982 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
6983 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
6985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6986 test $ac_status = 0; }; then
6987 pkg_cv_DEBUGINFOD_CFLAGS
=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
6988 test "x$?" != "x0" && pkg_failed
=yes
6995 if test -n "$DEBUGINFOD_LIBS"; then
6996 pkg_cv_DEBUGINFOD_LIBS
="$DEBUGINFOD_LIBS"
6997 elif test -n "$PKG_CONFIG"; then
6998 if test -n "$PKG_CONFIG" && \
6999 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
7000 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
7002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7003 test $ac_status = 0; }; then
7004 pkg_cv_DEBUGINFOD_LIBS
=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
7005 test "x$?" != "x0" && pkg_failed
=yes
7013 if test $pkg_failed = no
; then
7014 pkg_save_LDFLAGS
="$LDFLAGS"
7015 LDFLAGS
="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
7016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7017 /* end confdefs.h. */
7027 if ac_fn_c_try_link
"$LINENO"; then :
7032 rm -f core conftest.err conftest.
$ac_objext \
7033 conftest
$ac_exeext conftest.
$ac_ext
7034 LDFLAGS
=$pkg_save_LDFLAGS
7039 if test $pkg_failed = yes; then
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7041 $as_echo "no" >&6; }
7043 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7044 _pkg_short_errors_supported
=yes
7046 _pkg_short_errors_supported
=no
7048 if test $_pkg_short_errors_supported = yes; then
7049 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
7051 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
7053 # Put the nasty error message in config.log where it belongs
7054 echo "$DEBUGINFOD_PKG_ERRORS" >&5
7056 if test "x$with_debuginfod" = xyes
; then
7057 as_fn_error $?
"\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
7060 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
7062 elif test $pkg_failed = untried
; then
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7064 $as_echo "no" >&6; }
7065 if test "x$with_debuginfod" = xyes
; then
7066 as_fn_error $?
"\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
7069 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
7072 DEBUGINFOD_CFLAGS
=$pkg_cv_DEBUGINFOD_CFLAGS
7073 DEBUGINFOD_LIBS
=$pkg_cv_DEBUGINFOD_LIBS
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7075 $as_echo "yes" >&6; }
7077 $as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
7082 $as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
7086 # Libunwind support for ia64.
7088 # Check whether --with-libunwind-ia64 was given.
7089 if test "${with_libunwind_ia64+set}" = set; then :
7090 withval
=$with_libunwind_ia64;
7092 with_libunwind_ia64
=auto
7096 # Backward compatibility option.
7097 if test "${with_libunwind+set}" = set; then
7098 if test x
"$with_libunwind_ia64" != xauto
; then
7099 as_fn_error $?
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
7102 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
7103 with_libunwind_ia64
="$with_libunwind"
7106 case "$with_libunwind_ia64" in
7110 for ac_header
in libunwind-ia64.h
7112 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
7113 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
7114 cat >>confdefs.h
<<_ACEOF
7115 #define HAVE_LIBUNWIND_IA64_H 1
7122 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
7125 as_fn_error $?
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
7129 if test x
"$with_libunwind_ia64" = xyes
; then
7130 for ac_header
in libunwind-ia64.h
7132 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
7133 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
7134 cat >>confdefs.h
<<_ACEOF
7135 #define HAVE_LIBUNWIND_IA64_H 1
7142 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
7143 as_fn_error $?
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
7145 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
7146 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
7147 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
7152 # Check whether --with-curses was given.
7153 if test "${with_curses+set}" = set; then :
7154 withval
=$with_curses; opt_curses
=$withval
7159 if test "$opt_curses" = "yes"; then
7163 # Profiling support.
7164 # Check whether --enable-profiling was given.
7165 if test "${enable_profiling+set}" = set; then :
7166 enableval
=$enable_profiling; case $enableval in
7170 as_fn_error $?
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
7177 for ac_func
in monstartup _mcleanup
7179 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7180 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7181 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7182 cat >>confdefs.h
<<_ACEOF
7183 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
7190 $as_echo_n "checking for _etext... " >&6; }
7191 if ${ac_cv_var__etext+:} false
; then :
7192 $as_echo_n "(cached) " >&6
7194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7195 /* end confdefs.h. */
7207 if ac_fn_c_try_link
"$LINENO"; then :
7208 ac_cv_var__etext
=yes
7213 rm -f core conftest.err conftest.
$ac_objext \
7214 conftest
$ac_exeext conftest.
$ac_ext
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
7218 $as_echo "$ac_cv_var__etext" >&6; }
7219 if test "$ac_cv_var__etext" = yes; then
7221 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
7225 $as_echo_n "checking for etext... " >&6; }
7226 if ${ac_cv_var_etext+:} false
; then :
7227 $as_echo_n "(cached) " >&6
7229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7230 /* end confdefs.h. */
7242 if ac_fn_c_try_link
"$LINENO"; then :
7248 rm -f core conftest.err conftest.
$ac_objext \
7249 conftest
$ac_exeext conftest.
$ac_ext
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
7253 $as_echo "$ac_cv_var_etext" >&6; }
7254 if test "$ac_cv_var_etext" = yes; then
7256 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
7259 if test "$enable_profiling" = yes ; then
7260 if test "$ac_cv_func_monstartup" = no ||
test "$ac_cv_func__mcleanup" = no
; then
7261 as_fn_error $?
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
7264 OLD_CFLAGS
="$CFLAGS"
7265 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
7268 $as_echo_n "checking whether $CC supports -pg... " >&6; }
7269 if ${ac_cv_cc_supports_pg+:} false
; then :
7270 $as_echo_n "(cached) " >&6
7272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7273 /* end confdefs.h. */
7283 if ac_fn_c_try_compile
"$LINENO"; then :
7284 ac_cv_cc_supports_pg
=yes
7286 ac_cv_cc_supports_pg
=no
7289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
7293 $as_echo "$ac_cv_cc_supports_pg" >&6; }
7295 if test "$ac_cv_cc_supports_pg" = no
; then
7296 as_fn_error $?
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
7299 CFLAGS
="$OLD_CFLAGS"
7303 # Check whether --enable-codesign was given.
7304 if test "${enable_codesign+set}" = set; then :
7305 enableval
=$enable_codesign; CODESIGN_CERT
=$enableval
7312 # Check whether --with-pkgversion was given.
7313 if test "${with_pkgversion+set}" = set; then :
7314 withval
=$with_pkgversion; case "$withval" in
7315 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
7317 *) PKGVERSION
="($withval) " ;;
7328 # Check whether --with-bugurl was given.
7329 if test "${with_bugurl+set}" = set; then :
7330 withval
=$with_bugurl; case "$withval" in
7331 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
7334 *) BUGURL
="$withval"
7338 BUGURL
="https://www.gnu.org/software/gdb/bugs/"
7348 REPORT_BUGS_TO
="<$BUGURL>"
7349 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7356 cat >>confdefs.h
<<_ACEOF
7357 #define PKGVERSION "$PKGVERSION"
7361 cat >>confdefs.h
<<_ACEOF
7362 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7366 # --------------------- #
7367 # Checks for programs. #
7368 # --------------------- #
7370 for ac_prog
in gawk mawk nawk
awk
7372 # Extract the first word of "$ac_prog", so it can be a program name with args.
7373 set dummy
$ac_prog; ac_word
=$2
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7375 $as_echo_n "checking for $ac_word... " >&6; }
7376 if ${ac_cv_prog_AWK+:} false
; then :
7377 $as_echo_n "(cached) " >&6
7379 if test -n "$AWK"; then
7380 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7382 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7386 test -z "$as_dir" && as_dir
=.
7387 for ac_exec_ext
in '' $ac_executable_extensions; do
7388 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7389 ac_cv_prog_AWK
="$ac_prog"
7390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7400 if test -n "$AWK"; then
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7402 $as_echo "$AWK" >&6; }
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7405 $as_echo "no" >&6; }
7409 test -n "$AWK" && break
7412 # Find a good install program. We prefer a C program (faster),
7413 # so one script is as good as another. But avoid the broken or
7414 # incompatible versions:
7415 # SysV /etc/install, /usr/sbin/install
7416 # SunOS /usr/etc/install
7417 # IRIX /sbin/install
7419 # AmigaOS /C/install, which installs bootblocks on floppy discs
7420 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7421 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7422 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7423 # OS/2's system install, which has a completely different semantic
7424 # ./install, which can be erroneously created by make from ./install.sh.
7425 # Reject install programs that cannot install multiple files.
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7427 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7428 if test -z "$INSTALL"; then
7429 if ${ac_cv_path_install+:} false
; then :
7430 $as_echo_n "(cached) " >&6
7432 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7436 test -z "$as_dir" && as_dir
=.
7437 # Account for people who put trailing slashes in PATH elements.
7438 case $as_dir/ in #((
7439 .
/ | .
// |
/[cC
]/* | \
7440 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7441 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
7444 # OSF1 and SCO ODT 3.0 have their own names for install.
7445 # Don't use installbsd from OSF since it installs stuff as root
7447 for ac_prog
in ginstall scoinst
install; do
7448 for ac_exec_ext
in '' $ac_executable_extensions; do
7449 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
7450 if test $ac_prog = install &&
7451 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7452 # AIX install. It has an incompatible calling convention.
7454 elif test $ac_prog = install &&
7455 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7456 # program-specific install script used by HP pwplus--don't use.
7459 rm -rf conftest.one conftest.two conftest.dir
7460 echo one
> conftest.one
7461 echo two
> conftest.two
7463 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
7464 test -s conftest.one
&& test -s conftest.two
&&
7465 test -s conftest.dir
/conftest.one
&&
7466 test -s conftest.dir
/conftest.two
7468 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7481 rm -rf conftest.one conftest.two conftest.dir
7484 if test "${ac_cv_path_install+set}" = set; then
7485 INSTALL
=$ac_cv_path_install
7487 # As a last resort, use the slow shell script. Don't cache a
7488 # value for INSTALL within a source directory, because that will
7489 # break other packages using the cache if that directory is
7490 # removed, or if the value is a relative name.
7491 INSTALL
=$ac_install_sh
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7495 $as_echo "$INSTALL" >&6; }
7497 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7498 # It thinks the first close brace ends the variable substitution.
7499 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7501 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7503 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7506 $as_echo_n "checking whether ln -s works... " >&6; }
7508 if test "$LN_S" = "ln -s"; then
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7510 $as_echo "yes" >&6; }
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7513 $as_echo "no, using $LN_S" >&6; }
7516 if test -n "$ac_tool_prefix"; then
7517 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7518 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7520 $as_echo_n "checking for $ac_word... " >&6; }
7521 if ${ac_cv_prog_RANLIB+:} false
; then :
7522 $as_echo_n "(cached) " >&6
7524 if test -n "$RANLIB"; then
7525 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7527 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7531 test -z "$as_dir" && as_dir
=.
7532 for ac_exec_ext
in '' $ac_executable_extensions; do
7533 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7534 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7544 RANLIB
=$ac_cv_prog_RANLIB
7545 if test -n "$RANLIB"; then
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7547 $as_echo "$RANLIB" >&6; }
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7550 $as_echo "no" >&6; }
7555 if test -z "$ac_cv_prog_RANLIB"; then
7556 ac_ct_RANLIB
=$RANLIB
7557 # Extract the first word of "ranlib", so it can be a program name with args.
7558 set dummy ranlib
; ac_word
=$2
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7560 $as_echo_n "checking for $ac_word... " >&6; }
7561 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
7562 $as_echo_n "(cached) " >&6
7564 if test -n "$ac_ct_RANLIB"; then
7565 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7567 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7571 test -z "$as_dir" && as_dir
=.
7572 for ac_exec_ext
in '' $ac_executable_extensions; do
7573 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7574 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7584 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7585 if test -n "$ac_ct_RANLIB"; then
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7587 $as_echo "$ac_ct_RANLIB" >&6; }
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7590 $as_echo "no" >&6; }
7593 if test "x$ac_ct_RANLIB" = x
; then
7596 case $cross_compiling:$ac_tool_warned in
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7600 ac_tool_warned
=yes ;;
7602 RANLIB
=$ac_ct_RANLIB
7605 RANLIB
="$ac_cv_prog_RANLIB"
7608 for ac_prog
in 'bison -y' byacc
7610 # Extract the first word of "$ac_prog", so it can be a program name with args.
7611 set dummy
$ac_prog; ac_word
=$2
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7613 $as_echo_n "checking for $ac_word... " >&6; }
7614 if ${ac_cv_prog_YACC+:} false
; then :
7615 $as_echo_n "(cached) " >&6
7617 if test -n "$YACC"; then
7618 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
7620 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7624 test -z "$as_dir" && as_dir
=.
7625 for ac_exec_ext
in '' $ac_executable_extensions; do
7626 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7627 ac_cv_prog_YACC
="$ac_prog"
7628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7637 YACC
=$ac_cv_prog_YACC
7638 if test -n "$YACC"; then
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7640 $as_echo "$YACC" >&6; }
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7643 $as_echo "no" >&6; }
7647 test -n "$YACC" && break
7649 test -n "$YACC" || YACC
="yacc"
7652 if test -n "$ac_tool_prefix"; then
7653 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7654 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656 $as_echo_n "checking for $ac_word... " >&6; }
7657 if ${ac_cv_prog_AR+:} false
; then :
7658 $as_echo_n "(cached) " >&6
7660 if test -n "$AR"; then
7661 ac_cv_prog_AR
="$AR" # Let the user override the test.
7663 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7667 test -z "$as_dir" && as_dir
=.
7668 for ac_exec_ext
in '' $ac_executable_extensions; do
7669 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7670 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7681 if test -n "$AR"; then
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7683 $as_echo "$AR" >&6; }
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686 $as_echo "no" >&6; }
7691 if test -z "$ac_cv_prog_AR"; then
7693 # Extract the first word of "ar", so it can be a program name with args.
7694 set dummy
ar; ac_word
=$2
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7696 $as_echo_n "checking for $ac_word... " >&6; }
7697 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
7698 $as_echo_n "(cached) " >&6
7700 if test -n "$ac_ct_AR"; then
7701 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7703 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7707 test -z "$as_dir" && as_dir
=.
7708 for ac_exec_ext
in '' $ac_executable_extensions; do
7709 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7710 ac_cv_prog_ac_ct_AR
="ar"
7711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7720 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7721 if test -n "$ac_ct_AR"; then
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7723 $as_echo "$ac_ct_AR" >&6; }
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7726 $as_echo "no" >&6; }
7729 if test "x$ac_ct_AR" = x
; then
7732 case $cross_compiling:$ac_tool_warned in
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7736 ac_tool_warned
=yes ;;
7744 if test -n "$ac_tool_prefix"; then
7745 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7746 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7748 $as_echo_n "checking for $ac_word... " >&6; }
7749 if ${ac_cv_prog_DLLTOOL+:} false
; then :
7750 $as_echo_n "(cached) " >&6
7752 if test -n "$DLLTOOL"; then
7753 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
7755 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7759 test -z "$as_dir" && as_dir
=.
7760 for ac_exec_ext
in '' $ac_executable_extensions; do
7761 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7762 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
7763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7772 DLLTOOL
=$ac_cv_prog_DLLTOOL
7773 if test -n "$DLLTOOL"; then
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7775 $as_echo "$DLLTOOL" >&6; }
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7778 $as_echo "no" >&6; }
7783 if test -z "$ac_cv_prog_DLLTOOL"; then
7784 ac_ct_DLLTOOL
=$DLLTOOL
7785 # Extract the first word of "dlltool", so it can be a program name with args.
7786 set dummy dlltool
; ac_word
=$2
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7788 $as_echo_n "checking for $ac_word... " >&6; }
7789 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
7790 $as_echo_n "(cached) " >&6
7792 if test -n "$ac_ct_DLLTOOL"; then
7793 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
7795 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7799 test -z "$as_dir" && as_dir
=.
7800 for ac_exec_ext
in '' $ac_executable_extensions; do
7801 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7802 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
7803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7812 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
7813 if test -n "$ac_ct_DLLTOOL"; then
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7815 $as_echo "$ac_ct_DLLTOOL" >&6; }
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7818 $as_echo "no" >&6; }
7821 if test "x$ac_ct_DLLTOOL" = x
; then
7824 case $cross_compiling:$ac_tool_warned in
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7828 ac_tool_warned
=yes ;;
7830 DLLTOOL
=$ac_ct_DLLTOOL
7833 DLLTOOL
="$ac_cv_prog_DLLTOOL"
7836 if test -n "$ac_tool_prefix"; then
7837 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7838 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7840 $as_echo_n "checking for $ac_word... " >&6; }
7841 if ${ac_cv_prog_WINDRES+:} false
; then :
7842 $as_echo_n "(cached) " >&6
7844 if test -n "$WINDRES"; then
7845 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
7847 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7851 test -z "$as_dir" && as_dir
=.
7852 for ac_exec_ext
in '' $ac_executable_extensions; do
7853 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7854 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
7855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7864 WINDRES
=$ac_cv_prog_WINDRES
7865 if test -n "$WINDRES"; then
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7867 $as_echo "$WINDRES" >&6; }
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7870 $as_echo "no" >&6; }
7875 if test -z "$ac_cv_prog_WINDRES"; then
7876 ac_ct_WINDRES
=$WINDRES
7877 # Extract the first word of "windres", so it can be a program name with args.
7878 set dummy windres
; ac_word
=$2
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7880 $as_echo_n "checking for $ac_word... " >&6; }
7881 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
7882 $as_echo_n "(cached) " >&6
7884 if test -n "$ac_ct_WINDRES"; then
7885 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
7887 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7891 test -z "$as_dir" && as_dir
=.
7892 for ac_exec_ext
in '' $ac_executable_extensions; do
7893 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7894 ac_cv_prog_ac_ct_WINDRES
="windres"
7895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7904 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
7905 if test -n "$ac_ct_WINDRES"; then
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7907 $as_echo "$ac_ct_WINDRES" >&6; }
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7910 $as_echo "no" >&6; }
7913 if test "x$ac_ct_WINDRES" = x
; then
7916 case $cross_compiling:$ac_tool_warned in
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7920 ac_tool_warned
=yes ;;
7922 WINDRES
=$ac_ct_WINDRES
7925 WINDRES
="$ac_cv_prog_WINDRES"
7931 # Needed for GNU Hurd hosts.
7932 if test -n "$ac_tool_prefix"; then
7933 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7934 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7936 $as_echo_n "checking for $ac_word... " >&6; }
7937 if ${ac_cv_prog_MIG+:} false
; then :
7938 $as_echo_n "(cached) " >&6
7940 if test -n "$MIG"; then
7941 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
7943 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7947 test -z "$as_dir" && as_dir
=.
7948 for ac_exec_ext
in '' $ac_executable_extensions; do
7949 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7950 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
7951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7961 if test -n "$MIG"; then
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
7963 $as_echo "$MIG" >&6; }
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7966 $as_echo "no" >&6; }
7971 if test -z "$ac_cv_prog_MIG"; then
7973 # Extract the first word of "mig", so it can be a program name with args.
7974 set dummy mig
; ac_word
=$2
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7976 $as_echo_n "checking for $ac_word... " >&6; }
7977 if ${ac_cv_prog_ac_ct_MIG+:} false
; then :
7978 $as_echo_n "(cached) " >&6
7980 if test -n "$ac_ct_MIG"; then
7981 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
7983 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7987 test -z "$as_dir" && as_dir
=.
7988 for ac_exec_ext
in '' $ac_executable_extensions; do
7989 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7990 ac_cv_prog_ac_ct_MIG
="mig"
7991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8000 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
8001 if test -n "$ac_ct_MIG"; then
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
8003 $as_echo "$ac_ct_MIG" >&6; }
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006 $as_echo "no" >&6; }
8009 if test "x$ac_ct_MIG" = x
; then
8012 case $cross_compiling:$ac_tool_warned in
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8016 ac_tool_warned
=yes ;;
8021 MIG
="$ac_cv_prog_MIG"
8024 if test x
"$MIG" = x
; then
8025 as_fn_error $?
"MIG not found but required for $host hosts" "$LINENO" 5
8030 # ---------------------- #
8031 # Checks for libraries. #
8032 # ---------------------- #
8034 # We might need to link with -lm; most simulators need it.
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
8036 $as_echo_n "checking for main in -lm... " >&6; }
8037 if ${ac_cv_lib_m_main+:} false
; then :
8038 $as_echo_n "(cached) " >&6
8040 ac_check_lib_save_LIBS
=$LIBS
8042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8043 /* end confdefs.h. */
8054 if ac_fn_c_try_link
"$LINENO"; then :
8055 ac_cv_lib_m_main
=yes
8059 rm -f core conftest.err conftest.
$ac_objext \
8060 conftest
$ac_exeext conftest.
$ac_ext
8061 LIBS
=$ac_check_lib_save_LIBS
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
8064 $as_echo "$ac_cv_lib_m_main" >&6; }
8065 if test "x$ac_cv_lib_m_main" = xyes
; then :
8066 cat >>confdefs.h
<<_ACEOF
8075 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
8077 $as_echo_n "checking for library containing gethostbyname... " >&6; }
8078 if ${ac_cv_search_gethostbyname+:} false
; then :
8079 $as_echo_n "(cached) " >&6
8081 ac_func_search_save_LIBS
=$LIBS
8082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8083 /* end confdefs.h. */
8085 /* Override any GCC internal prototype to avoid an error.
8086 Use char because int might match the return type of a GCC
8087 builtin and then its argument prototype would still apply. */
8091 char gethostbyname ();
8095 return gethostbyname ();
8100 for ac_lib
in '' nsl
; do
8101 if test -z "$ac_lib"; then
8102 ac_res
="none required"
8105 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8107 if ac_fn_c_try_link
"$LINENO"; then :
8108 ac_cv_search_gethostbyname
=$ac_res
8110 rm -f core conftest.err conftest.
$ac_objext \
8112 if ${ac_cv_search_gethostbyname+:} false
; then :
8116 if ${ac_cv_search_gethostbyname+:} false
; then :
8119 ac_cv_search_gethostbyname
=no
8122 LIBS
=$ac_func_search_save_LIBS
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
8125 $as_echo "$ac_cv_search_gethostbyname" >&6; }
8126 ac_res
=$ac_cv_search_gethostbyname
8127 if test "$ac_res" != no
; then :
8128 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8133 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
8135 $as_echo_n "checking for library containing socketpair... " >&6; }
8136 if ${ac_cv_search_socketpair+:} false
; then :
8137 $as_echo_n "(cached) " >&6
8139 ac_func_search_save_LIBS
=$LIBS
8140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8141 /* end confdefs.h. */
8143 /* Override any GCC internal prototype to avoid an error.
8144 Use char because int might match the return type of a GCC
8145 builtin and then its argument prototype would still apply. */
8153 return socketpair ();
8158 for ac_lib
in '' socket
; do
8159 if test -z "$ac_lib"; then
8160 ac_res
="none required"
8163 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8165 if ac_fn_c_try_link
"$LINENO"; then :
8166 ac_cv_search_socketpair
=$ac_res
8168 rm -f core conftest.err conftest.
$ac_objext \
8170 if ${ac_cv_search_socketpair+:} false
; then :
8174 if ${ac_cv_search_socketpair+:} false
; then :
8177 ac_cv_search_socketpair
=no
8180 LIBS
=$ac_func_search_save_LIBS
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
8183 $as_echo "$ac_cv_search_socketpair" >&6; }
8184 ac_res
=$ac_cv_search_socketpair
8185 if test "$ac_res" != no
; then :
8186 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8191 # Link in zlib if we can. This allows us to read compressed debug sections.
8193 # Use the system's zlib library.
8194 zlibdir
="-L\$(top_builddir)/../zlib"
8195 zlibinc
="-I\$(top_srcdir)/../zlib"
8197 # Check whether --with-system-zlib was given.
8198 if test "${with_system_zlib+set}" = set; then :
8199 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
8211 if test "X$prefix" = "XNONE"; then
8212 acl_final_prefix
="$ac_default_prefix"
8214 acl_final_prefix
="$prefix"
8216 if test "X$exec_prefix" = "XNONE"; then
8217 acl_final_exec_prefix
='${prefix}'
8219 acl_final_exec_prefix
="$exec_prefix"
8221 acl_save_prefix
="$prefix"
8222 prefix
="$acl_final_prefix"
8223 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8224 prefix
="$acl_save_prefix"
8227 # Check whether --with-gnu-ld was given.
8228 if test "${with_gnu_ld+set}" = set; then :
8229 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8234 # Prepare PATH_SEPARATOR.
8235 # The user is always right.
8236 if test "${PATH_SEPARATOR+set}" != set; then
8237 echo "#! /bin/sh" >conf$$.sh
8238 echo "exit 0" >>conf$$.sh
8240 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8248 if test "$GCC" = yes; then
8249 # Check if gcc -print-prog-name=ld gives a path.
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8251 $as_echo_n "checking for ld used by GCC... " >&6; }
8254 # gcc leaves a trailing carriage return which upsets mingw
8255 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8257 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8260 # Accept absolute paths.
8261 [\\/]* |
[A-Za-z
]:[\\/]*)
8262 re_direlt
='/[^/][^/]*/\.\./'
8263 # Canonicalize the path of ld
8264 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8265 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8266 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8268 test -z "$LD" && LD
="$ac_prog"
8271 # If it fails, then pretend we aren't using GCC.
8275 # If it is relative, then search for the first ld in PATH.
8279 elif test "$with_gnu_ld" = yes; then
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8281 $as_echo_n "checking for GNU ld... " >&6; }
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8284 $as_echo_n "checking for non-GNU ld... " >&6; }
8286 if ${acl_cv_path_LD+:} false
; then :
8287 $as_echo_n "(cached) " >&6
8289 if test -z "$LD"; then
8290 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8291 for ac_dir
in $PATH; do
8292 test -z "$ac_dir" && ac_dir
=.
8293 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8294 acl_cv_path_LD
="$ac_dir/$ac_prog"
8295 # Check to see if the program is GNU ld. I'd rather use --version,
8296 # but apparently some GNU ld's only accept -v.
8297 # Break only if it was the GNU/non-GNU ld that we prefer.
8298 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
8299 test "$with_gnu_ld" != no
&& break
8301 test "$with_gnu_ld" != yes && break
8307 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8311 LD
="$acl_cv_path_LD"
8312 if test -n "$LD"; then
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8314 $as_echo "$LD" >&6; }
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8317 $as_echo "no" >&6; }
8319 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8321 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8322 if ${acl_cv_prog_gnu_ld+:} false
; then :
8323 $as_echo_n "(cached) " >&6
8325 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8326 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
8327 acl_cv_prog_gnu_ld
=yes
8329 acl_cv_prog_gnu_ld
=no
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8333 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8334 with_gnu_ld
=$acl_cv_prog_gnu_ld
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8339 $as_echo_n "checking for shared library run path origin... " >&6; }
8340 if ${acl_cv_rpath+:} false
; then :
8341 $as_echo_n "(cached) " >&6
8344 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8345 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8352 $as_echo "$acl_cv_rpath" >&6; }
8354 libext
="$acl_cv_libext"
8355 shlibext
="$acl_cv_shlibext"
8356 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8357 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8358 hardcode_direct
="$acl_cv_hardcode_direct"
8359 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8360 # Check whether --enable-rpath was given.
8361 if test "${enable_rpath+set}" = set; then :
8362 enableval
=$enable_rpath; :
8376 acl_save_prefix
="$prefix"
8377 prefix
="$acl_final_prefix"
8378 acl_save_exec_prefix
="$exec_prefix"
8379 exec_prefix
="$acl_final_exec_prefix"
8381 eval additional_includedir
=\"$includedir\"
8382 eval additional_libdir
=\"$libdir\"
8384 exec_prefix
="$acl_save_exec_prefix"
8385 prefix
="$acl_save_prefix"
8388 # Check whether --with-libiconv-prefix was given.
8389 if test "${with_libiconv_prefix+set}" = set; then :
8390 withval
=$with_libiconv_prefix;
8391 if test "X$withval" = "Xno"; then
8394 if test "X$withval" = "X"; then
8396 acl_save_prefix
="$prefix"
8397 prefix
="$acl_final_prefix"
8398 acl_save_exec_prefix
="$exec_prefix"
8399 exec_prefix
="$acl_final_exec_prefix"
8401 eval additional_includedir
=\"$includedir\"
8402 eval additional_libdir
=\"$libdir\"
8404 exec_prefix
="$acl_save_exec_prefix"
8405 prefix
="$acl_save_prefix"
8408 additional_includedir
="$withval/include"
8409 additional_libdir
="$withval/lib"
8416 # Check whether --with-libiconv-type was given.
8417 if test "${with_libiconv_type+set}" = set; then :
8418 withval
=$with_libiconv_type; with_libiconv_type
=$withval
8420 with_libiconv_type
=auto
8423 lib_type
=`eval echo \$with_libiconv_type`
8430 names_already_handled
=
8431 names_next_round
='iconv '
8432 while test -n "$names_next_round"; do
8433 names_this_round
="$names_next_round"
8435 for name
in $names_this_round; do
8437 for n
in $names_already_handled; do
8438 if test "$n" = "$name"; then
8443 if test -z "$already_handled"; then
8444 names_already_handled
="$names_already_handled $name"
8445 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8446 eval value
=\"\
$HAVE_LIB$uppername\"
8447 if test -n "$value"; then
8448 if test "$value" = yes; then
8449 eval value
=\"\
$LIB$uppername\"
8450 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
8451 eval value
=\"\
$LTLIB$uppername\"
8452 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
8461 if test $use_additional = yes; then
8462 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
8463 found_dir
="$additional_libdir"
8464 found_so
="$additional_libdir/lib$name.$shlibext"
8465 if test -f "$additional_libdir/lib$name.la"; then
8466 found_la
="$additional_libdir/lib$name.la"
8468 elif test x
$lib_type != xshared
; then
8469 if test -f "$additional_libdir/lib$name.$libext"; then
8470 found_dir
="$additional_libdir"
8471 found_a
="$additional_libdir/lib$name.$libext"
8472 if test -f "$additional_libdir/lib$name.la"; then
8473 found_la
="$additional_libdir/lib$name.la"
8478 if test "X$found_dir" = "X"; then
8479 for x
in $LDFLAGS $LTLIBICONV; do
8481 acl_save_prefix
="$prefix"
8482 prefix
="$acl_final_prefix"
8483 acl_save_exec_prefix
="$exec_prefix"
8484 exec_prefix
="$acl_final_exec_prefix"
8486 exec_prefix
="$acl_save_exec_prefix"
8487 prefix
="$acl_save_prefix"
8491 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8492 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
8494 found_so
="$dir/lib$name.$shlibext"
8495 if test -f "$dir/lib$name.la"; then
8496 found_la
="$dir/lib$name.la"
8498 elif test x
$lib_type != xshared
; then
8499 if test -f "$dir/lib$name.$libext"; then
8501 found_a
="$dir/lib$name.$libext"
8502 if test -f "$dir/lib$name.la"; then
8503 found_la
="$dir/lib$name.la"
8509 if test "X$found_dir" != "X"; then
8514 if test "X$found_dir" != "X"; then
8515 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8516 if test "X$found_so" != "X"; then
8517 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8518 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8521 for x
in $ltrpathdirs; do
8522 if test "X$x" = "X$found_dir"; then
8527 if test -z "$haveit"; then
8528 ltrpathdirs
="$ltrpathdirs $found_dir"
8530 if test "$hardcode_direct" = yes; then
8531 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8533 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8534 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8536 for x
in $rpathdirs; do
8537 if test "X$x" = "X$found_dir"; then
8542 if test -z "$haveit"; then
8543 rpathdirs
="$rpathdirs $found_dir"
8547 for x
in $LDFLAGS $LIBICONV; do
8549 acl_save_prefix
="$prefix"
8550 prefix
="$acl_final_prefix"
8551 acl_save_exec_prefix
="$exec_prefix"
8552 exec_prefix
="$acl_final_exec_prefix"
8554 exec_prefix
="$acl_save_exec_prefix"
8555 prefix
="$acl_save_prefix"
8557 if test "X$x" = "X-L$found_dir"; then
8562 if test -z "$haveit"; then
8563 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8565 if test "$hardcode_minus_L" != no
; then
8566 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8568 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8574 if test "X$found_a" != "X"; then
8575 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
8577 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8580 additional_includedir
=
8581 case "$found_dir" in
8583 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8584 additional_includedir
="$basedir/include"
8587 if test "X$additional_includedir" != "X"; then
8588 if test "X$additional_includedir" != "X/usr/include"; then
8590 if test "X$additional_includedir" = "X/usr/local/include"; then
8591 if test -n "$GCC"; then
8593 linux
*) haveit
=yes;;
8597 if test -z "$haveit"; then
8598 for x
in $CPPFLAGS $INCICONV; do
8600 acl_save_prefix
="$prefix"
8601 prefix
="$acl_final_prefix"
8602 acl_save_exec_prefix
="$exec_prefix"
8603 exec_prefix
="$acl_final_exec_prefix"
8605 exec_prefix
="$acl_save_exec_prefix"
8606 prefix
="$acl_save_prefix"
8608 if test "X$x" = "X-I$additional_includedir"; then
8613 if test -z "$haveit"; then
8614 if test -d "$additional_includedir"; then
8615 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8621 if test -n "$found_la"; then
8622 save_libdir
="$libdir"
8624 */* |
*\\*) .
"$found_la" ;;
8625 *) .
"./$found_la" ;;
8627 libdir
="$save_libdir"
8628 for dep
in $dependency_libs; do
8631 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8632 if test "X$additional_libdir" != "X/usr/lib"; then
8634 if test "X$additional_libdir" = "X/usr/local/lib"; then
8635 if test -n "$GCC"; then
8637 linux
*) haveit
=yes;;
8641 if test -z "$haveit"; then
8643 for x
in $LDFLAGS $LIBICONV; do
8645 acl_save_prefix
="$prefix"
8646 prefix
="$acl_final_prefix"
8647 acl_save_exec_prefix
="$exec_prefix"
8648 exec_prefix
="$acl_final_exec_prefix"
8650 exec_prefix
="$acl_save_exec_prefix"
8651 prefix
="$acl_save_prefix"
8653 if test "X$x" = "X-L$additional_libdir"; then
8658 if test -z "$haveit"; then
8659 if test -d "$additional_libdir"; then
8660 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8664 for x
in $LDFLAGS $LTLIBICONV; do
8666 acl_save_prefix
="$prefix"
8667 prefix
="$acl_final_prefix"
8668 acl_save_exec_prefix
="$exec_prefix"
8669 exec_prefix
="$acl_final_exec_prefix"
8671 exec_prefix
="$acl_save_exec_prefix"
8672 prefix
="$acl_save_prefix"
8674 if test "X$x" = "X-L$additional_libdir"; then
8679 if test -z "$haveit"; then
8680 if test -d "$additional_libdir"; then
8681 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8688 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8689 if test "$enable_rpath" != no
; then
8691 for x
in $rpathdirs; do
8692 if test "X$x" = "X$dir"; then
8697 if test -z "$haveit"; then
8698 rpathdirs
="$rpathdirs $dir"
8701 for x
in $ltrpathdirs; do
8702 if test "X$x" = "X$dir"; then
8707 if test -z "$haveit"; then
8708 ltrpathdirs
="$ltrpathdirs $dir"
8713 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8716 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8719 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
8720 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8726 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
8727 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8728 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8730 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
8731 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
8738 if test "X$rpathdirs" != "X"; then
8739 if test -n "$hardcode_libdir_separator"; then
8741 for found_dir
in $rpathdirs; do
8742 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8744 acl_save_libdir
="$libdir"
8746 eval flag
=\"$hardcode_libdir_flag_spec\"
8747 libdir
="$acl_save_libdir"
8748 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8750 for found_dir
in $rpathdirs; do
8751 acl_save_libdir
="$libdir"
8753 eval flag
=\"$hardcode_libdir_flag_spec\"
8754 libdir
="$acl_save_libdir"
8755 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8759 if test "X$ltrpathdirs" != "X"; then
8760 for found_dir
in $ltrpathdirs; do
8761 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8772 $as_echo_n "checking for iconv... " >&6; }
8773 if ${am_cv_func_iconv+:} false
; then :
8774 $as_echo_n "(cached) " >&6
8777 am_cv_func_iconv
="no, consider installing GNU libiconv"
8779 am_save_CPPFLAGS
="$CPPFLAGS"
8780 CPPFLAGS
="$CPPFLAGS $INCICONV"
8781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8782 /* end confdefs.h. */
8788 iconv_t cd = iconv_open("","");
8789 iconv(cd,NULL,NULL,NULL,NULL);
8795 if ac_fn_c_try_link
"$LINENO"; then :
8796 am_cv_func_iconv
=yes
8798 rm -f core conftest.err conftest.
$ac_objext \
8799 conftest
$ac_exeext conftest.
$ac_ext
8800 CPPFLAGS
="$am_save_CPPFLAGS"
8802 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
8803 for _libs
in .libs _libs
; do
8804 am_save_CPPFLAGS
="$CPPFLAGS"
8805 am_save_LIBS
="$LIBS"
8806 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
8807 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
8808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8809 /* end confdefs.h. */
8815 iconv_t cd = iconv_open("","");
8816 iconv(cd,NULL,NULL,NULL,NULL);
8822 if ac_fn_c_try_link
"$LINENO"; then :
8823 INCICONV
="-I../libiconv/include"
8824 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
8825 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
8827 am_cv_func_iconv
=yes
8829 rm -f core conftest.err conftest.
$ac_objext \
8830 conftest
$ac_exeext conftest.
$ac_ext
8831 CPPFLAGS
="$am_save_CPPFLAGS"
8832 LIBS
="$am_save_LIBS"
8833 if test "$am_cv_func_iconv" = "yes"; then
8839 if test "$am_cv_func_iconv" != yes; then
8840 am_save_CPPFLAGS
="$CPPFLAGS"
8841 am_save_LIBS
="$LIBS"
8842 CPPFLAGS
="$CPPFLAGS $INCICONV"
8843 LIBS
="$LIBS $LIBICONV"
8844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8845 /* end confdefs.h. */
8851 iconv_t cd = iconv_open("","");
8852 iconv(cd,NULL,NULL,NULL,NULL);
8858 if ac_fn_c_try_link
"$LINENO"; then :
8860 am_cv_func_iconv
=yes
8862 rm -f core conftest.err conftest.
$ac_objext \
8863 conftest
$ac_exeext conftest.
$ac_ext
8864 CPPFLAGS
="$am_save_CPPFLAGS"
8865 LIBS
="$am_save_LIBS"
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8870 $as_echo "$am_cv_func_iconv" >&6; }
8871 if test "$am_cv_func_iconv" = yes; then
8873 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8876 if test "$am_cv_lib_iconv" = yes; then
8878 for element
in $INCICONV; do
8880 for x
in $CPPFLAGS; do
8882 acl_save_prefix
="$prefix"
8883 prefix
="$acl_final_prefix"
8884 acl_save_exec_prefix
="$exec_prefix"
8885 exec_prefix
="$acl_final_exec_prefix"
8887 exec_prefix
="$acl_save_exec_prefix"
8888 prefix
="$acl_save_prefix"
8890 if test "X$x" = "X$element"; then
8895 if test -z "$haveit"; then
8896 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8901 $as_echo_n "checking how to link with libiconv... " >&6; }
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8903 $as_echo "$LIBICONV" >&6; }
8911 if test "$am_cv_func_iconv" = yes; then
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8913 $as_echo_n "checking for iconv declaration... " >&6; }
8914 if ${am_cv_proto_iconv+:} false
; then :
8915 $as_echo_n "(cached) " >&6
8918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8919 /* end confdefs.h. */
8927 #if defined(__STDC__) || defined(__cplusplus)
8928 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8941 if ac_fn_c_try_compile
"$LINENO"; then :
8942 am_cv_proto_iconv_arg1
=""
8944 am_cv_proto_iconv_arg1
="const"
8946 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8947 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);"
8950 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8952 }$am_cv_proto_iconv" >&5
8954 }$am_cv_proto_iconv" >&6; }
8956 cat >>confdefs.h
<<_ACEOF
8957 #define ICONV_CONST $am_cv_proto_iconv_arg1
8963 # GDB may fork/exec the iconv program to get the list of supported character
8964 # sets. Allow the user to specify where to find it.
8965 # There are several factors affecting the choice of option name:
8966 # - There is already --with-libiconv-prefix but we can't use it, it specifies
8967 # the build-time location of libiconv files.
8968 # - The program we need to find is iconv, which comes with glibc. The user
8969 # doesn't necessarily have libiconv installed. Therefore naming this
8970 # --with-libiconv-foo feels wrong.
8971 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
8972 # defined to work on directories not files (though it really doesn't know
8974 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
8975 # with --with-libiconv-prefix.
8976 # Putting these together is why the option name is --with-iconv-bin.
8979 # Check whether --with-iconv-bin was given.
8980 if test "${with_iconv_bin+set}" = set; then :
8981 withval
=$with_iconv_bin; iconv_bin
="${withval}"
8983 cat >>confdefs.h
<<_ACEOF
8984 #define ICONV_BIN "${iconv_bin}"
8988 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
8989 if test "x$prefix" = xNONE
; then
8990 test_prefix
=/usr
/local
8995 test_prefix
=$exec_prefix
8998 case ${iconv_bin} in
8999 "${test_prefix}"|
"${test_prefix}/"*|\
9000 '${exec_prefix}'|
'${exec_prefix}/'*)
9005 cat >>confdefs.h
<<_ACEOF
9006 #define ICONV_BIN_RELOCATABLE $value
9014 # For the TUI, we need enhanced curses functionality.
9015 if test x
"$enable_tui" != xno
; then
9020 if test x
"$prefer_curses" = xyes
; then
9021 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9022 # curses library because the latter might not provide all the
9023 # functionality we need. However, this leads to problems on systems
9024 # where the linker searches /usr/local/lib, but the compiler doesn't
9025 # search /usr/local/include, if ncurses is installed in /usr/local. A
9026 # default installation of ncurses on alpha*-dec-osf* will lead to such
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
9029 $as_echo_n "checking for library containing waddstr... " >&6; }
9030 if ${ac_cv_search_waddstr+:} false
; then :
9031 $as_echo_n "(cached) " >&6
9033 ac_func_search_save_LIBS
=$LIBS
9034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9035 /* end confdefs.h. */
9037 /* Override any GCC internal prototype to avoid an error.
9038 Use char because int might match the return type of a GCC
9039 builtin and then its argument prototype would still apply. */
9052 for ac_lib
in '' ncursesw ncurses cursesX curses
; do
9053 if test -z "$ac_lib"; then
9054 ac_res
="none required"
9057 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9059 if ac_fn_c_try_link
"$LINENO"; then :
9060 ac_cv_search_waddstr
=$ac_res
9062 rm -f core conftest.err conftest.
$ac_objext \
9064 if ${ac_cv_search_waddstr+:} false
; then :
9068 if ${ac_cv_search_waddstr+:} false
; then :
9071 ac_cv_search_waddstr
=no
9074 LIBS
=$ac_func_search_save_LIBS
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
9077 $as_echo "$ac_cv_search_waddstr" >&6; }
9078 ac_res
=$ac_cv_search_waddstr
9079 if test "$ac_res" != no
; then :
9080 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9085 if test "$ac_cv_search_waddstr" != no
; then
9090 # Check whether we should enable the TUI, but only do so if we really
9092 if test x
"$enable_tui" != xno
; then
9093 if test -d "$srcdir/tui"; then
9094 if test "$curses_found" != no
; then
9095 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
9096 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
9097 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
9098 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
9100 if test x
"$enable_tui" = xyes
; then
9101 as_fn_error $?
"no enhanced curses library found; disable TUI" "$LINENO" 5
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
9104 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9110 # Since GDB uses Readline, we need termcap functionality. In many
9111 # cases this will be provided by the curses library, but some systems
9112 # have a separate termcap library, or no curses library at all.
9116 if test -d "$srcdir/libtermcap"; then
9117 LIBS
="../libtermcap/libtermcap.a $LIBS"
9118 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
9121 ac_cv_search_tgetent
="none required"
9125 # These are the libraries checked by Readline.
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9127 $as_echo_n "checking for library containing tgetent... " >&6; }
9128 if ${ac_cv_search_tgetent+:} false
; then :
9129 $as_echo_n "(cached) " >&6
9131 ac_func_search_save_LIBS
=$LIBS
9132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9133 /* end confdefs.h. */
9135 /* Override any GCC internal prototype to avoid an error.
9136 Use char because int might match the return type of a GCC
9137 builtin and then its argument prototype would still apply. */
9150 for ac_lib
in '' termcap tinfow tinfo curses ncursesw ncurses
; do
9151 if test -z "$ac_lib"; then
9152 ac_res
="none required"
9155 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9157 if ac_fn_c_try_link
"$LINENO"; then :
9158 ac_cv_search_tgetent
=$ac_res
9160 rm -f core conftest.err conftest.
$ac_objext \
9162 if ${ac_cv_search_tgetent+:} false
; then :
9166 if ${ac_cv_search_tgetent+:} false
; then :
9169 ac_cv_search_tgetent
=no
9172 LIBS
=$ac_func_search_save_LIBS
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9175 $as_echo "$ac_cv_search_tgetent" >&6; }
9176 ac_res
=$ac_cv_search_tgetent
9177 if test "$ac_res" != no
; then :
9178 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9183 if test "$ac_cv_search_tgetent" = no
; then
9184 CONFIG_OBS
="$CONFIG_OBS stub-termcap.o"
9188 # Check whether --with-system-readline was given.
9189 if test "${with_system_readline+set}" = set; then :
9190 withval
=$with_system_readline;
9194 if test "$with_system_readline" = yes; then
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system readline is new enough" >&5
9196 $as_echo_n "checking whether system readline is new enough... " >&6; }
9197 if ${gdb_cv_readline_ok+:} false
; then :
9198 $as_echo_n "(cached) " >&6
9200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9201 /* end confdefs.h. */
9203 #include <readline/readline.h>
9207 #if RL_VERSION_MAJOR < 7
9208 # error "readline version 7 required"
9215 if ac_fn_c_try_compile
"$LINENO"; then :
9216 gdb_cv_readline_ok
=yes
9218 gdb_cv_readline_ok
=no
9221 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_readline_ok" >&5
9225 $as_echo "$gdb_cv_readline_ok" >&6; }
9226 if test "$gdb_cv_readline_ok" != yes; then
9227 as_fn_error $?
"system readline is not new enough" "$LINENO" 5
9233 READLINE_TEXI_INCFLAG
=
9235 READLINE
='$(READLINE_DIR)/libreadline.a'
9236 READLINE_DEPS
='$(READLINE)'
9237 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
9238 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
9245 # Generate jit-reader.h
9247 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
9250 # The cast to long int works around a bug in the HP C Compiler
9251 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9252 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9253 # This bug is HP SR number 8606223364.
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
9255 $as_echo_n "checking size of unsigned long long... " >&6; }
9256 if ${ac_cv_sizeof_unsigned_long_long+:} false
; then :
9257 $as_echo_n "(cached) " >&6
9259 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
9262 if test "$ac_cv_type_unsigned_long_long" = yes; then
9263 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9264 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9265 as_fn_error
77 "cannot compute sizeof (unsigned long long)
9266 See \`config.log' for more details" "$LINENO" 5; }
9268 ac_cv_sizeof_unsigned_long_long
=0
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
9274 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
9278 cat >>confdefs.h
<<_ACEOF
9279 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
9283 # The cast to long int works around a bug in the HP C Compiler
9284 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9285 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9286 # This bug is HP SR number 8606223364.
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
9288 $as_echo_n "checking size of unsigned long... " >&6; }
9289 if ${ac_cv_sizeof_unsigned_long+:} false
; then :
9290 $as_echo_n "(cached) " >&6
9292 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
9295 if test "$ac_cv_type_unsigned_long" = yes; then
9296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9298 as_fn_error
77 "cannot compute sizeof (unsigned long)
9299 See \`config.log' for more details" "$LINENO" 5; }
9301 ac_cv_sizeof_unsigned_long
=0
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
9307 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
9311 cat >>confdefs.h
<<_ACEOF
9312 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
9316 # The cast to long int works around a bug in the HP C Compiler
9317 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9318 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9319 # This bug is HP SR number 8606223364.
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
9321 $as_echo_n "checking size of unsigned __int128... " >&6; }
9322 if ${ac_cv_sizeof_unsigned___int128+:} false
; then :
9323 $as_echo_n "(cached) " >&6
9325 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
9328 if test "$ac_cv_type_unsigned___int128" = yes; then
9329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9331 as_fn_error
77 "cannot compute sizeof (unsigned __int128)
9332 See \`config.log' for more details" "$LINENO" 5; }
9334 ac_cv_sizeof_unsigned___int128
=0
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
9340 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
9344 cat >>confdefs.h
<<_ACEOF
9345 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
9350 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9351 TARGET_PTR
="unsigned long"
9352 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
9353 TARGET_PTR
="unsigned long long"
9354 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
9355 TARGET_PTR
="unsigned __int128"
9357 TARGET_PTR
="unsigned long"
9361 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9365 $as_echo_n "checking for library containing dlopen... " >&6; }
9366 if ${ac_cv_search_dlopen+:} false
; then :
9367 $as_echo_n "(cached) " >&6
9369 ac_func_search_save_LIBS
=$LIBS
9370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9371 /* end confdefs.h. */
9373 /* Override any GCC internal prototype to avoid an error.
9374 Use char because int might match the return type of a GCC
9375 builtin and then its argument prototype would still apply. */
9388 for ac_lib
in '' dl
; do
9389 if test -z "$ac_lib"; then
9390 ac_res
="none required"
9393 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9395 if ac_fn_c_try_link
"$LINENO"; then :
9396 ac_cv_search_dlopen
=$ac_res
9398 rm -f core conftest.err conftest.
$ac_objext \
9400 if ${ac_cv_search_dlopen+:} false
; then :
9404 if ${ac_cv_search_dlopen+:} false
; then :
9407 ac_cv_search_dlopen
=no
9410 LIBS
=$ac_func_search_save_LIBS
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9413 $as_echo "$ac_cv_search_dlopen" >&6; }
9414 ac_res
=$ac_cv_search_dlopen
9415 if test "$ac_res" != no
; then :
9416 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9423 # Check whether --with-jit-reader-dir was given.
9424 if test "${with_jit_reader_dir+set}" = set; then :
9425 withval
=$with_jit_reader_dir;
9426 JIT_READER_DIR
=$withval
9428 JIT_READER_DIR
=${libdir}/gdb
9432 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9433 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9434 ac_define_dir
=`eval echo $JIT_READER_DIR`
9435 ac_define_dir
=`eval echo $ac_define_dir`
9437 cat >>confdefs.h
<<_ACEOF
9438 #define JIT_READER_DIR "$ac_define_dir"
9444 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9445 if test "x$prefix" = xNONE
; then
9446 test_prefix
=/usr
/local
9451 test_prefix
=$exec_prefix
9454 case ${ac_define_dir} in
9455 "${test_prefix}"|
"${test_prefix}/"*|\
9456 '${exec_prefix}'|
'${exec_prefix}/'*)
9461 cat >>confdefs.h
<<_ACEOF
9462 #define JIT_READER_DIR_RELOCATABLE $value
9469 # Check whether --with-expat was given.
9470 if test "${with_expat+set}" = set; then :
9471 withval
=$with_expat;
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9477 $as_echo_n "checking whether to use expat... " >&6; }
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9479 $as_echo "$with_expat" >&6; }
9481 if test "${with_expat}" = no
; then
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9483 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9496 acl_save_prefix
="$prefix"
9497 prefix
="$acl_final_prefix"
9498 acl_save_exec_prefix
="$exec_prefix"
9499 exec_prefix
="$acl_final_exec_prefix"
9501 eval additional_includedir
=\"$includedir\"
9502 eval additional_libdir
=\"$libdir\"
9504 exec_prefix
="$acl_save_exec_prefix"
9505 prefix
="$acl_save_prefix"
9508 # Check whether --with-libexpat-prefix was given.
9509 if test "${with_libexpat_prefix+set}" = set; then :
9510 withval
=$with_libexpat_prefix;
9511 if test "X$withval" = "Xno"; then
9514 if test "X$withval" = "X"; then
9516 acl_save_prefix
="$prefix"
9517 prefix
="$acl_final_prefix"
9518 acl_save_exec_prefix
="$exec_prefix"
9519 exec_prefix
="$acl_final_exec_prefix"
9521 eval additional_includedir
=\"$includedir\"
9522 eval additional_libdir
=\"$libdir\"
9524 exec_prefix
="$acl_save_exec_prefix"
9525 prefix
="$acl_save_prefix"
9528 additional_includedir
="$withval/include"
9529 additional_libdir
="$withval/lib"
9536 # Check whether --with-libexpat-type was given.
9537 if test "${with_libexpat_type+set}" = set; then :
9538 withval
=$with_libexpat_type; with_libexpat_type
=$withval
9540 with_libexpat_type
=auto
9543 lib_type
=`eval echo \$with_libexpat_type`
9550 names_already_handled
=
9551 names_next_round
='expat '
9552 while test -n "$names_next_round"; do
9553 names_this_round
="$names_next_round"
9555 for name
in $names_this_round; do
9557 for n
in $names_already_handled; do
9558 if test "$n" = "$name"; then
9563 if test -z "$already_handled"; then
9564 names_already_handled
="$names_already_handled $name"
9565 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9566 eval value
=\"\
$HAVE_LIB$uppername\"
9567 if test -n "$value"; then
9568 if test "$value" = yes; then
9569 eval value
=\"\
$LIB$uppername\"
9570 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
9571 eval value
=\"\
$LTLIB$uppername\"
9572 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
9581 if test $use_additional = yes; then
9582 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9583 found_dir
="$additional_libdir"
9584 found_so
="$additional_libdir/lib$name.$shlibext"
9585 if test -f "$additional_libdir/lib$name.la"; then
9586 found_la
="$additional_libdir/lib$name.la"
9588 elif test x
$lib_type != xshared
; then
9589 if test -f "$additional_libdir/lib$name.$libext"; then
9590 found_dir
="$additional_libdir"
9591 found_a
="$additional_libdir/lib$name.$libext"
9592 if test -f "$additional_libdir/lib$name.la"; then
9593 found_la
="$additional_libdir/lib$name.la"
9598 if test "X$found_dir" = "X"; then
9599 for x
in $LDFLAGS $LTLIBEXPAT; do
9601 acl_save_prefix
="$prefix"
9602 prefix
="$acl_final_prefix"
9603 acl_save_exec_prefix
="$exec_prefix"
9604 exec_prefix
="$acl_final_exec_prefix"
9606 exec_prefix
="$acl_save_exec_prefix"
9607 prefix
="$acl_save_prefix"
9611 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9612 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9614 found_so
="$dir/lib$name.$shlibext"
9615 if test -f "$dir/lib$name.la"; then
9616 found_la
="$dir/lib$name.la"
9618 elif test x
$lib_type != xshared
; then
9619 if test -f "$dir/lib$name.$libext"; then
9621 found_a
="$dir/lib$name.$libext"
9622 if test -f "$dir/lib$name.la"; then
9623 found_la
="$dir/lib$name.la"
9629 if test "X$found_dir" != "X"; then
9634 if test "X$found_dir" != "X"; then
9635 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
9636 if test "X$found_so" != "X"; then
9637 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9638 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9641 for x
in $ltrpathdirs; do
9642 if test "X$x" = "X$found_dir"; then
9647 if test -z "$haveit"; then
9648 ltrpathdirs
="$ltrpathdirs $found_dir"
9650 if test "$hardcode_direct" = yes; then
9651 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9653 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9654 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9656 for x
in $rpathdirs; do
9657 if test "X$x" = "X$found_dir"; then
9662 if test -z "$haveit"; then
9663 rpathdirs
="$rpathdirs $found_dir"
9667 for x
in $LDFLAGS $LIBEXPAT; do
9669 acl_save_prefix
="$prefix"
9670 prefix
="$acl_final_prefix"
9671 acl_save_exec_prefix
="$exec_prefix"
9672 exec_prefix
="$acl_final_exec_prefix"
9674 exec_prefix
="$acl_save_exec_prefix"
9675 prefix
="$acl_save_prefix"
9677 if test "X$x" = "X-L$found_dir"; then
9682 if test -z "$haveit"; then
9683 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
9685 if test "$hardcode_minus_L" != no
; then
9686 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9688 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9694 if test "X$found_a" != "X"; then
9695 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
9697 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
9700 additional_includedir
=
9701 case "$found_dir" in
9703 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9704 additional_includedir
="$basedir/include"
9707 if test "X$additional_includedir" != "X"; then
9708 if test "X$additional_includedir" != "X/usr/include"; then
9710 if test "X$additional_includedir" = "X/usr/local/include"; then
9711 if test -n "$GCC"; then
9713 linux
*) haveit
=yes;;
9717 if test -z "$haveit"; then
9718 for x
in $CPPFLAGS $INCEXPAT; do
9720 acl_save_prefix
="$prefix"
9721 prefix
="$acl_final_prefix"
9722 acl_save_exec_prefix
="$exec_prefix"
9723 exec_prefix
="$acl_final_exec_prefix"
9725 exec_prefix
="$acl_save_exec_prefix"
9726 prefix
="$acl_save_prefix"
9728 if test "X$x" = "X-I$additional_includedir"; then
9733 if test -z "$haveit"; then
9734 if test -d "$additional_includedir"; then
9735 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
9741 if test -n "$found_la"; then
9742 save_libdir
="$libdir"
9744 */* |
*\\*) .
"$found_la" ;;
9745 *) .
"./$found_la" ;;
9747 libdir
="$save_libdir"
9748 for dep
in $dependency_libs; do
9751 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9752 if test "X$additional_libdir" != "X/usr/lib"; then
9754 if test "X$additional_libdir" = "X/usr/local/lib"; then
9755 if test -n "$GCC"; then
9757 linux
*) haveit
=yes;;
9761 if test -z "$haveit"; then
9763 for x
in $LDFLAGS $LIBEXPAT; do
9765 acl_save_prefix
="$prefix"
9766 prefix
="$acl_final_prefix"
9767 acl_save_exec_prefix
="$exec_prefix"
9768 exec_prefix
="$acl_final_exec_prefix"
9770 exec_prefix
="$acl_save_exec_prefix"
9771 prefix
="$acl_save_prefix"
9773 if test "X$x" = "X-L$additional_libdir"; then
9778 if test -z "$haveit"; then
9779 if test -d "$additional_libdir"; then
9780 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
9784 for x
in $LDFLAGS $LTLIBEXPAT; 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-L$additional_libdir"; then
9799 if test -z "$haveit"; then
9800 if test -d "$additional_libdir"; then
9801 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
9808 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9809 if test "$enable_rpath" != no
; then
9811 for x
in $rpathdirs; do
9812 if test "X$x" = "X$dir"; then
9817 if test -z "$haveit"; then
9818 rpathdirs
="$rpathdirs $dir"
9821 for x
in $ltrpathdirs; do
9822 if test "X$x" = "X$dir"; then
9827 if test -z "$haveit"; then
9828 ltrpathdirs
="$ltrpathdirs $dir"
9833 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9836 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9839 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
9840 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
9846 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
9847 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9848 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
9850 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l:lib$name.$libext"
9851 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l:lib$name.$libext"
9858 if test "X$rpathdirs" != "X"; then
9859 if test -n "$hardcode_libdir_separator"; then
9861 for found_dir
in $rpathdirs; do
9862 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9864 acl_save_libdir
="$libdir"
9866 eval flag
=\"$hardcode_libdir_flag_spec\"
9867 libdir
="$acl_save_libdir"
9868 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9870 for found_dir
in $rpathdirs; do
9871 acl_save_libdir
="$libdir"
9873 eval flag
=\"$hardcode_libdir_flag_spec\"
9874 libdir
="$acl_save_libdir"
9875 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9879 if test "X$ltrpathdirs" != "X"; then
9880 for found_dir
in $ltrpathdirs; do
9881 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
9886 ac_save_CPPFLAGS
="$CPPFLAGS"
9888 for element
in $INCEXPAT; do
9890 for x
in $CPPFLAGS; do
9892 acl_save_prefix
="$prefix"
9893 prefix
="$acl_final_prefix"
9894 acl_save_exec_prefix
="$exec_prefix"
9895 exec_prefix
="$acl_final_exec_prefix"
9897 exec_prefix
="$acl_save_exec_prefix"
9898 prefix
="$acl_save_prefix"
9900 if test "X$x" = "X$element"; then
9905 if test -z "$haveit"; then
9906 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
9912 $as_echo_n "checking for libexpat... " >&6; }
9913 if ${ac_cv_libexpat+:} false
; then :
9914 $as_echo_n "(cached) " >&6
9917 ac_save_LIBS
="$LIBS"
9918 LIBS
="$LIBS $LIBEXPAT"
9919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9920 /* end confdefs.h. */
9925 XML_Parser p = XML_ParserCreate (0);
9930 if ac_fn_c_try_link
"$LINENO"; then :
9935 rm -f core conftest.err conftest.
$ac_objext \
9936 conftest
$ac_exeext conftest.
$ac_ext
9937 LIBS
="$ac_save_LIBS"
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
9941 $as_echo "$ac_cv_libexpat" >&6; }
9942 if test "$ac_cv_libexpat" = yes; then
9945 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
9948 $as_echo_n "checking how to link with libexpat... " >&6; }
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
9950 $as_echo "$LIBEXPAT" >&6; }
9953 CPPFLAGS
="$ac_save_CPPFLAGS"
9963 if test "$HAVE_LIBEXPAT" != yes; then
9964 if test "$with_expat" = yes; then
9965 as_fn_error $?
"expat is missing or unusable" "$LINENO" 5
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
9968 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
9972 LIBS
="$LIBS $LIBEXPAT"
9973 for ac_func
in XML_StopParser
9975 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
9976 if test "x$ac_cv_func_XML_StopParser" = xyes
; then :
9977 cat >>confdefs.h
<<_ACEOF
9978 #define HAVE_XML_STOPPARSER 1
9988 # Verify that we have a usable GMP library.
9999 acl_save_prefix
="$prefix"
10000 prefix
="$acl_final_prefix"
10001 acl_save_exec_prefix
="$exec_prefix"
10002 exec_prefix
="$acl_final_exec_prefix"
10004 eval additional_includedir
=\"$includedir\"
10005 eval additional_libdir
=\"$libdir\"
10007 exec_prefix
="$acl_save_exec_prefix"
10008 prefix
="$acl_save_prefix"
10011 # Check whether --with-libgmp-prefix was given.
10012 if test "${with_libgmp_prefix+set}" = set; then :
10013 withval
=$with_libgmp_prefix;
10014 if test "X$withval" = "Xno"; then
10017 if test "X$withval" = "X"; then
10019 acl_save_prefix
="$prefix"
10020 prefix
="$acl_final_prefix"
10021 acl_save_exec_prefix
="$exec_prefix"
10022 exec_prefix
="$acl_final_exec_prefix"
10024 eval additional_includedir
=\"$includedir\"
10025 eval additional_libdir
=\"$libdir\"
10027 exec_prefix
="$acl_save_exec_prefix"
10028 prefix
="$acl_save_prefix"
10031 additional_includedir
="$withval/include"
10032 additional_libdir
="$withval/lib"
10039 # Check whether --with-libgmp-type was given.
10040 if test "${with_libgmp_type+set}" = set; then :
10041 withval
=$with_libgmp_type; with_libgmp_type
=$withval
10043 with_libgmp_type
=auto
10046 lib_type
=`eval echo \$with_libgmp_type`
10053 names_already_handled
=
10054 names_next_round
='gmp '
10055 while test -n "$names_next_round"; do
10056 names_this_round
="$names_next_round"
10058 for name
in $names_this_round; do
10060 for n
in $names_already_handled; do
10061 if test "$n" = "$name"; then
10062 already_handled
=yes
10066 if test -z "$already_handled"; then
10067 names_already_handled
="$names_already_handled $name"
10068 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10069 eval value
=\"\
$HAVE_LIB$uppername\"
10070 if test -n "$value"; then
10071 if test "$value" = yes; then
10072 eval value
=\"\
$LIB$uppername\"
10073 test -z "$value" || LIBGMP
="${LIBGMP}${LIBGMP:+ }$value"
10074 eval value
=\"\
$LTLIB$uppername\"
10075 test -z "$value" || LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }$value"
10084 if test $use_additional = yes; then
10085 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10086 found_dir
="$additional_libdir"
10087 found_so
="$additional_libdir/lib$name.$shlibext"
10088 if test -f "$additional_libdir/lib$name.la"; then
10089 found_la
="$additional_libdir/lib$name.la"
10091 elif test x
$lib_type != xshared
; then
10092 if test -f "$additional_libdir/lib$name.$libext"; then
10093 found_dir
="$additional_libdir"
10094 found_a
="$additional_libdir/lib$name.$libext"
10095 if test -f "$additional_libdir/lib$name.la"; then
10096 found_la
="$additional_libdir/lib$name.la"
10101 if test "X$found_dir" = "X"; then
10102 for x
in $LDFLAGS $LTLIBGMP; do
10104 acl_save_prefix
="$prefix"
10105 prefix
="$acl_final_prefix"
10106 acl_save_exec_prefix
="$exec_prefix"
10107 exec_prefix
="$acl_final_exec_prefix"
10109 exec_prefix
="$acl_save_exec_prefix"
10110 prefix
="$acl_save_prefix"
10114 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10115 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10117 found_so
="$dir/lib$name.$shlibext"
10118 if test -f "$dir/lib$name.la"; then
10119 found_la
="$dir/lib$name.la"
10121 elif test x
$lib_type != xshared
; then
10122 if test -f "$dir/lib$name.$libext"; then
10124 found_a
="$dir/lib$name.$libext"
10125 if test -f "$dir/lib$name.la"; then
10126 found_la
="$dir/lib$name.la"
10132 if test "X$found_dir" != "X"; then
10137 if test "X$found_dir" != "X"; then
10138 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }-L$found_dir -l$name"
10139 if test "X$found_so" != "X"; then
10140 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10141 LIBGMP
="${LIBGMP}${LIBGMP:+ }$found_so"
10144 for x
in $ltrpathdirs; do
10145 if test "X$x" = "X$found_dir"; then
10150 if test -z "$haveit"; then
10151 ltrpathdirs
="$ltrpathdirs $found_dir"
10153 if test "$hardcode_direct" = yes; then
10154 LIBGMP
="${LIBGMP}${LIBGMP:+ }$found_so"
10156 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10157 LIBGMP
="${LIBGMP}${LIBGMP:+ }$found_so"
10159 for x
in $rpathdirs; do
10160 if test "X$x" = "X$found_dir"; then
10165 if test -z "$haveit"; then
10166 rpathdirs
="$rpathdirs $found_dir"
10170 for x
in $LDFLAGS $LIBGMP; do
10172 acl_save_prefix
="$prefix"
10173 prefix
="$acl_final_prefix"
10174 acl_save_exec_prefix
="$exec_prefix"
10175 exec_prefix
="$acl_final_exec_prefix"
10177 exec_prefix
="$acl_save_exec_prefix"
10178 prefix
="$acl_save_prefix"
10180 if test "X$x" = "X-L$found_dir"; then
10185 if test -z "$haveit"; then
10186 LIBGMP
="${LIBGMP}${LIBGMP:+ }-L$found_dir"
10188 if test "$hardcode_minus_L" != no
; then
10189 LIBGMP
="${LIBGMP}${LIBGMP:+ }$found_so"
10191 LIBGMP
="${LIBGMP}${LIBGMP:+ }-l$name"
10197 if test "X$found_a" != "X"; then
10198 LIBGMP
="${LIBGMP}${LIBGMP:+ }$found_a"
10200 LIBGMP
="${LIBGMP}${LIBGMP:+ }-L$found_dir -l$name"
10203 additional_includedir
=
10204 case "$found_dir" in
10206 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10207 additional_includedir
="$basedir/include"
10210 if test "X$additional_includedir" != "X"; then
10211 if test "X$additional_includedir" != "X/usr/include"; then
10213 if test "X$additional_includedir" = "X/usr/local/include"; then
10214 if test -n "$GCC"; then
10216 linux
*) haveit
=yes;;
10220 if test -z "$haveit"; then
10221 for x
in $CPPFLAGS $INCGMP; do
10223 acl_save_prefix
="$prefix"
10224 prefix
="$acl_final_prefix"
10225 acl_save_exec_prefix
="$exec_prefix"
10226 exec_prefix
="$acl_final_exec_prefix"
10228 exec_prefix
="$acl_save_exec_prefix"
10229 prefix
="$acl_save_prefix"
10231 if test "X$x" = "X-I$additional_includedir"; then
10236 if test -z "$haveit"; then
10237 if test -d "$additional_includedir"; then
10238 INCGMP
="${INCGMP}${INCGMP:+ }-I$additional_includedir"
10244 if test -n "$found_la"; then
10245 save_libdir
="$libdir"
10246 case "$found_la" in
10247 */* |
*\\*) .
"$found_la" ;;
10248 *) .
"./$found_la" ;;
10250 libdir
="$save_libdir"
10251 for dep
in $dependency_libs; do
10254 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10255 if test "X$additional_libdir" != "X/usr/lib"; then
10257 if test "X$additional_libdir" = "X/usr/local/lib"; then
10258 if test -n "$GCC"; then
10260 linux
*) haveit
=yes;;
10264 if test -z "$haveit"; then
10266 for x
in $LDFLAGS $LIBGMP; do
10268 acl_save_prefix
="$prefix"
10269 prefix
="$acl_final_prefix"
10270 acl_save_exec_prefix
="$exec_prefix"
10271 exec_prefix
="$acl_final_exec_prefix"
10273 exec_prefix
="$acl_save_exec_prefix"
10274 prefix
="$acl_save_prefix"
10276 if test "X$x" = "X-L$additional_libdir"; then
10281 if test -z "$haveit"; then
10282 if test -d "$additional_libdir"; then
10283 LIBGMP
="${LIBGMP}${LIBGMP:+ }-L$additional_libdir"
10287 for x
in $LDFLAGS $LTLIBGMP; do
10289 acl_save_prefix
="$prefix"
10290 prefix
="$acl_final_prefix"
10291 acl_save_exec_prefix
="$exec_prefix"
10292 exec_prefix
="$acl_final_exec_prefix"
10294 exec_prefix
="$acl_save_exec_prefix"
10295 prefix
="$acl_save_prefix"
10297 if test "X$x" = "X-L$additional_libdir"; then
10302 if test -z "$haveit"; then
10303 if test -d "$additional_libdir"; then
10304 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }-L$additional_libdir"
10311 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10312 if test "$enable_rpath" != no
; then
10314 for x
in $rpathdirs; do
10315 if test "X$x" = "X$dir"; then
10320 if test -z "$haveit"; then
10321 rpathdirs
="$rpathdirs $dir"
10324 for x
in $ltrpathdirs; do
10325 if test "X$x" = "X$dir"; then
10330 if test -z "$haveit"; then
10331 ltrpathdirs
="$ltrpathdirs $dir"
10336 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10339 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10342 LIBGMP
="${LIBGMP}${LIBGMP:+ }$dep"
10343 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }$dep"
10349 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
10350 LIBGMP
="${LIBGMP}${LIBGMP:+ }-l$name"
10351 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }-l$name"
10353 LIBGMP
="${LIBGMP}${LIBGMP:+ }-l:lib$name.$libext"
10354 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }-l:lib$name.$libext"
10361 if test "X$rpathdirs" != "X"; then
10362 if test -n "$hardcode_libdir_separator"; then
10364 for found_dir
in $rpathdirs; do
10365 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10367 acl_save_libdir
="$libdir"
10369 eval flag
=\"$hardcode_libdir_flag_spec\"
10370 libdir
="$acl_save_libdir"
10371 LIBGMP
="${LIBGMP}${LIBGMP:+ }$flag"
10373 for found_dir
in $rpathdirs; do
10374 acl_save_libdir
="$libdir"
10375 libdir
="$found_dir"
10376 eval flag
=\"$hardcode_libdir_flag_spec\"
10377 libdir
="$acl_save_libdir"
10378 LIBGMP
="${LIBGMP}${LIBGMP:+ }$flag"
10382 if test "X$ltrpathdirs" != "X"; then
10383 for found_dir
in $ltrpathdirs; do
10384 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }-R$found_dir"
10389 ac_save_CPPFLAGS
="$CPPFLAGS"
10391 for element
in $INCGMP; do
10393 for x
in $CPPFLAGS; do
10395 acl_save_prefix
="$prefix"
10396 prefix
="$acl_final_prefix"
10397 acl_save_exec_prefix
="$exec_prefix"
10398 exec_prefix
="$acl_final_exec_prefix"
10400 exec_prefix
="$acl_save_exec_prefix"
10401 prefix
="$acl_save_prefix"
10403 if test "X$x" = "X$element"; then
10408 if test -z "$haveit"; then
10409 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgmp" >&5
10415 $as_echo_n "checking for libgmp... " >&6; }
10416 if ${ac_cv_libgmp+:} false
; then :
10417 $as_echo_n "(cached) " >&6
10420 ac_save_LIBS
="$LIBS"
10421 LIBS
="$LIBS $LIBGMP"
10422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10423 /* end confdefs.h. */
10434 if ac_fn_c_try_link
"$LINENO"; then :
10439 rm -f core conftest.err conftest.
$ac_objext \
10440 conftest
$ac_exeext conftest.
$ac_ext
10441 LIBS
="$ac_save_LIBS"
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgmp" >&5
10445 $as_echo "$ac_cv_libgmp" >&6; }
10446 if test "$ac_cv_libgmp" = yes; then
10449 $as_echo "#define HAVE_LIBGMP 1" >>confdefs.h
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libgmp" >&5
10452 $as_echo_n "checking how to link with libgmp... " >&6; }
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGMP" >&5
10454 $as_echo "$LIBGMP" >&6; }
10457 CPPFLAGS
="$ac_save_CPPFLAGS"
10467 if test "$HAVE_LIBGMP" != yes; then
10468 as_fn_error $?
"GMP is missing or unusable" "$LINENO" 5
10472 # Check whether --with-mpfr was given.
10473 if test "${with_mpfr+set}" = set; then :
10474 withval
=$with_mpfr;
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MPFR" >&5
10480 $as_echo_n "checking whether to use MPFR... " >&6; }
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mpfr" >&5
10482 $as_echo "$with_mpfr" >&6; }
10484 if test "${with_mpfr}" = no
; then
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR support disabled; some features may be unavailable." >&5
10486 $as_echo "$as_me: WARNING: MPFR support disabled; some features may be unavailable." >&2;}
10499 acl_save_prefix
="$prefix"
10500 prefix
="$acl_final_prefix"
10501 acl_save_exec_prefix
="$exec_prefix"
10502 exec_prefix
="$acl_final_exec_prefix"
10504 eval additional_includedir
=\"$includedir\"
10505 eval additional_libdir
=\"$libdir\"
10507 exec_prefix
="$acl_save_exec_prefix"
10508 prefix
="$acl_save_prefix"
10511 # Check whether --with-libmpfr-prefix was given.
10512 if test "${with_libmpfr_prefix+set}" = set; then :
10513 withval
=$with_libmpfr_prefix;
10514 if test "X$withval" = "Xno"; then
10517 if test "X$withval" = "X"; then
10519 acl_save_prefix
="$prefix"
10520 prefix
="$acl_final_prefix"
10521 acl_save_exec_prefix
="$exec_prefix"
10522 exec_prefix
="$acl_final_exec_prefix"
10524 eval additional_includedir
=\"$includedir\"
10525 eval additional_libdir
=\"$libdir\"
10527 exec_prefix
="$acl_save_exec_prefix"
10528 prefix
="$acl_save_prefix"
10531 additional_includedir
="$withval/include"
10532 additional_libdir
="$withval/lib"
10539 # Check whether --with-libmpfr-type was given.
10540 if test "${with_libmpfr_type+set}" = set; then :
10541 withval
=$with_libmpfr_type; with_libmpfr_type
=$withval
10543 with_libmpfr_type
=auto
10546 lib_type
=`eval echo \$with_libmpfr_type`
10553 names_already_handled
=
10554 names_next_round
='mpfr gmp'
10555 while test -n "$names_next_round"; do
10556 names_this_round
="$names_next_round"
10558 for name
in $names_this_round; do
10560 for n
in $names_already_handled; do
10561 if test "$n" = "$name"; then
10562 already_handled
=yes
10566 if test -z "$already_handled"; then
10567 names_already_handled
="$names_already_handled $name"
10568 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10569 eval value
=\"\
$HAVE_LIB$uppername\"
10570 if test -n "$value"; then
10571 if test "$value" = yes; then
10572 eval value
=\"\
$LIB$uppername\"
10573 test -z "$value" || LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$value"
10574 eval value
=\"\
$LTLIB$uppername\"
10575 test -z "$value" || LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$value"
10584 if test $use_additional = yes; then
10585 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10586 found_dir
="$additional_libdir"
10587 found_so
="$additional_libdir/lib$name.$shlibext"
10588 if test -f "$additional_libdir/lib$name.la"; then
10589 found_la
="$additional_libdir/lib$name.la"
10591 elif test x
$lib_type != xshared
; then
10592 if test -f "$additional_libdir/lib$name.$libext"; then
10593 found_dir
="$additional_libdir"
10594 found_a
="$additional_libdir/lib$name.$libext"
10595 if test -f "$additional_libdir/lib$name.la"; then
10596 found_la
="$additional_libdir/lib$name.la"
10601 if test "X$found_dir" = "X"; then
10602 for x
in $LDFLAGS $LTLIBMPFR; do
10604 acl_save_prefix
="$prefix"
10605 prefix
="$acl_final_prefix"
10606 acl_save_exec_prefix
="$exec_prefix"
10607 exec_prefix
="$acl_final_exec_prefix"
10609 exec_prefix
="$acl_save_exec_prefix"
10610 prefix
="$acl_save_prefix"
10614 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10615 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10617 found_so
="$dir/lib$name.$shlibext"
10618 if test -f "$dir/lib$name.la"; then
10619 found_la
="$dir/lib$name.la"
10621 elif test x
$lib_type != xshared
; then
10622 if test -f "$dir/lib$name.$libext"; then
10624 found_a
="$dir/lib$name.$libext"
10625 if test -f "$dir/lib$name.la"; then
10626 found_la
="$dir/lib$name.la"
10632 if test "X$found_dir" != "X"; then
10637 if test "X$found_dir" != "X"; then
10638 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$found_dir -l$name"
10639 if test "X$found_so" != "X"; then
10640 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10641 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10644 for x
in $ltrpathdirs; do
10645 if test "X$x" = "X$found_dir"; then
10650 if test -z "$haveit"; then
10651 ltrpathdirs
="$ltrpathdirs $found_dir"
10653 if test "$hardcode_direct" = yes; then
10654 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10656 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10657 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10659 for x
in $rpathdirs; do
10660 if test "X$x" = "X$found_dir"; then
10665 if test -z "$haveit"; then
10666 rpathdirs
="$rpathdirs $found_dir"
10670 for x
in $LDFLAGS $LIBMPFR; do
10672 acl_save_prefix
="$prefix"
10673 prefix
="$acl_final_prefix"
10674 acl_save_exec_prefix
="$exec_prefix"
10675 exec_prefix
="$acl_final_exec_prefix"
10677 exec_prefix
="$acl_save_exec_prefix"
10678 prefix
="$acl_save_prefix"
10680 if test "X$x" = "X-L$found_dir"; then
10685 if test -z "$haveit"; then
10686 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir"
10688 if test "$hardcode_minus_L" != no
; then
10689 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10691 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10697 if test "X$found_a" != "X"; then
10698 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_a"
10700 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir -l$name"
10703 additional_includedir
=
10704 case "$found_dir" in
10706 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10707 additional_includedir
="$basedir/include"
10710 if test "X$additional_includedir" != "X"; then
10711 if test "X$additional_includedir" != "X/usr/include"; then
10713 if test "X$additional_includedir" = "X/usr/local/include"; then
10714 if test -n "$GCC"; then
10716 linux
*) haveit
=yes;;
10720 if test -z "$haveit"; then
10721 for x
in $CPPFLAGS $INCMPFR; do
10723 acl_save_prefix
="$prefix"
10724 prefix
="$acl_final_prefix"
10725 acl_save_exec_prefix
="$exec_prefix"
10726 exec_prefix
="$acl_final_exec_prefix"
10728 exec_prefix
="$acl_save_exec_prefix"
10729 prefix
="$acl_save_prefix"
10731 if test "X$x" = "X-I$additional_includedir"; then
10736 if test -z "$haveit"; then
10737 if test -d "$additional_includedir"; then
10738 INCMPFR
="${INCMPFR}${INCMPFR:+ }-I$additional_includedir"
10744 if test -n "$found_la"; then
10745 save_libdir
="$libdir"
10746 case "$found_la" in
10747 */* |
*\\*) .
"$found_la" ;;
10748 *) .
"./$found_la" ;;
10750 libdir
="$save_libdir"
10751 for dep
in $dependency_libs; do
10754 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10755 if test "X$additional_libdir" != "X/usr/lib"; then
10757 if test "X$additional_libdir" = "X/usr/local/lib"; then
10758 if test -n "$GCC"; then
10760 linux
*) haveit
=yes;;
10764 if test -z "$haveit"; then
10766 for x
in $LDFLAGS $LIBMPFR; do
10768 acl_save_prefix
="$prefix"
10769 prefix
="$acl_final_prefix"
10770 acl_save_exec_prefix
="$exec_prefix"
10771 exec_prefix
="$acl_final_exec_prefix"
10773 exec_prefix
="$acl_save_exec_prefix"
10774 prefix
="$acl_save_prefix"
10776 if test "X$x" = "X-L$additional_libdir"; then
10781 if test -z "$haveit"; then
10782 if test -d "$additional_libdir"; then
10783 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$additional_libdir"
10787 for x
in $LDFLAGS $LTLIBMPFR; do
10789 acl_save_prefix
="$prefix"
10790 prefix
="$acl_final_prefix"
10791 acl_save_exec_prefix
="$exec_prefix"
10792 exec_prefix
="$acl_final_exec_prefix"
10794 exec_prefix
="$acl_save_exec_prefix"
10795 prefix
="$acl_save_prefix"
10797 if test "X$x" = "X-L$additional_libdir"; then
10802 if test -z "$haveit"; then
10803 if test -d "$additional_libdir"; then
10804 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$additional_libdir"
10811 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10812 if test "$enable_rpath" != no
; then
10814 for x
in $rpathdirs; do
10815 if test "X$x" = "X$dir"; then
10820 if test -z "$haveit"; then
10821 rpathdirs
="$rpathdirs $dir"
10824 for x
in $ltrpathdirs; do
10825 if test "X$x" = "X$dir"; then
10830 if test -z "$haveit"; then
10831 ltrpathdirs
="$ltrpathdirs $dir"
10836 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10839 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10842 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$dep"
10843 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$dep"
10849 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
10850 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10851 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-l$name"
10853 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l:lib$name.$libext"
10854 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-l:lib$name.$libext"
10861 if test "X$rpathdirs" != "X"; then
10862 if test -n "$hardcode_libdir_separator"; then
10864 for found_dir
in $rpathdirs; do
10865 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10867 acl_save_libdir
="$libdir"
10869 eval flag
=\"$hardcode_libdir_flag_spec\"
10870 libdir
="$acl_save_libdir"
10871 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10873 for found_dir
in $rpathdirs; do
10874 acl_save_libdir
="$libdir"
10875 libdir
="$found_dir"
10876 eval flag
=\"$hardcode_libdir_flag_spec\"
10877 libdir
="$acl_save_libdir"
10878 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10882 if test "X$ltrpathdirs" != "X"; then
10883 for found_dir
in $ltrpathdirs; do
10884 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-R$found_dir"
10889 ac_save_CPPFLAGS
="$CPPFLAGS"
10891 for element
in $INCMPFR; do
10893 for x
in $CPPFLAGS; do
10895 acl_save_prefix
="$prefix"
10896 prefix
="$acl_final_prefix"
10897 acl_save_exec_prefix
="$exec_prefix"
10898 exec_prefix
="$acl_final_exec_prefix"
10900 exec_prefix
="$acl_save_exec_prefix"
10901 prefix
="$acl_save_prefix"
10903 if test "X$x" = "X$element"; then
10908 if test -z "$haveit"; then
10909 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpfr" >&5
10915 $as_echo_n "checking for libmpfr... " >&6; }
10916 if ${ac_cv_libmpfr+:} false
; then :
10917 $as_echo_n "(cached) " >&6
10920 ac_save_LIBS
="$LIBS"
10921 LIBS
="$LIBS $LIBMPFR"
10922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10923 /* end confdefs.h. */
10928 mpfr_exp_t exp; mpfr_t x;
10929 mpfr_frexp (&exp, x, x, MPFR_RNDN);
10934 if ac_fn_c_try_link
"$LINENO"; then :
10939 rm -f core conftest.err conftest.
$ac_objext \
10940 conftest
$ac_exeext conftest.
$ac_ext
10941 LIBS
="$ac_save_LIBS"
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libmpfr" >&5
10945 $as_echo "$ac_cv_libmpfr" >&6; }
10946 if test "$ac_cv_libmpfr" = yes; then
10949 $as_echo "#define HAVE_LIBMPFR 1" >>confdefs.h
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libmpfr" >&5
10952 $as_echo_n "checking how to link with libmpfr... " >&6; }
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPFR" >&5
10954 $as_echo "$LIBMPFR" >&6; }
10957 CPPFLAGS
="$ac_save_CPPFLAGS"
10967 if test "$HAVE_LIBMPFR" != yes; then
10968 if test "$with_mpfr" = yes; then
10969 as_fn_error $?
"MPFR is missing or unusable" "$LINENO" 5
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR is missing or unusable; some features may be unavailable." >&5
10972 $as_echo "$as_me: WARNING: MPFR is missing or unusable; some features may be unavailable." >&2;}
10977 # --------------------- #
10978 # Check for libpython. #
10979 # --------------------- #
10986 # Check whether --with-python was given.
10987 if test "${with_python+set}" = set; then :
10988 withval
=$with_python;
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10994 $as_echo_n "checking whether to use python... " >&6; }
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10996 $as_echo "$with_python" >&6; }
10998 if test "${with_python}" = no
; then
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
11000 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
11003 case "${with_python}" in
11005 if test -d "${with_python}"; then
11006 # Assume the python binary is ${with_python}/bin/python.
11007 python_prog
="${with_python}/bin/python"
11009 # If python does not exit ${with_python}/bin, then try in
11010 # ${with_python}. On Windows/MinGW, this is where the Python
11012 if test ! -x "${python_prog}"; then
11013 python_prog
="${with_python}/python"
11016 if test ! -x "${python_prog}"; then
11017 # Fall back to gdb 7.0/7.1 behaviour.
11018 python_prog
=missing
11019 python_prefix
=${with_python}
11021 elif test -x "${with_python}"; then
11022 # While we can't run python compiled for $host (unless host == build),
11023 # the user could write a script that provides the needed information,
11024 # so we support that.
11025 python_prog
=${with_python}
11028 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
11032 # Disallow --with-python=foo/bar.
11033 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
11036 # The user has either specified auto, yes, or the name of the python
11037 # program assumed to be in $PATH.
11039 case "${with_python}" in
11041 if test "${build}" = "${host}"; then
11042 # Extract the first word of "python", so it can be a program name with args.
11043 set dummy python
; ac_word
=$2
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11045 $as_echo_n "checking for $ac_word... " >&6; }
11046 if ${ac_cv_path_python_prog_path+:} false
; then :
11047 $as_echo_n "(cached) " >&6
11049 case $python_prog_path in
11051 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
11054 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11055 for as_dir
in $PATH
11058 test -z "$as_dir" && as_dir
=.
11059 for ac_exec_ext
in '' $ac_executable_extensions; do
11060 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11061 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
11062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11069 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
11073 python_prog_path
=$ac_cv_path_python_prog_path
11074 if test -n "$python_prog_path"; then
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
11076 $as_echo "$python_prog_path" >&6; }
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11079 $as_echo "no" >&6; }
11083 if test "${python_prog_path}" = missing
; then
11084 python_prog
=missing
11086 python_prog
=${python_prog_path}
11089 # Not much we can do except assume the cross-compiler will find the
11091 python_prog
=missing
11095 # While we can't run python compiled for $host (unless host == build),
11096 # the user could write a script that provides the needed information,
11097 # so we support that.
11098 python_prog
="${with_python}"
11099 # Extract the first word of "${python_prog}", so it can be a program name with args.
11100 set dummy
${python_prog}; ac_word
=$2
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11102 $as_echo_n "checking for $ac_word... " >&6; }
11103 if ${ac_cv_path_python_prog_path+:} false
; then :
11104 $as_echo_n "(cached) " >&6
11106 case $python_prog_path in
11108 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
11111 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11112 for as_dir
in $PATH
11115 test -z "$as_dir" && as_dir
=.
11116 for ac_exec_ext
in '' $ac_executable_extensions; do
11117 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11118 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
11119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11126 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
11130 python_prog_path
=$ac_cv_path_python_prog_path
11131 if test -n "$python_prog_path"; then
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
11133 $as_echo "$python_prog_path" >&6; }
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11136 $as_echo "no" >&6; }
11140 if test "${python_prog_path}" = missing
; then
11141 as_fn_error $?
"unable to find python program ${python_prog}" "$LINENO" 5
11147 if test "${python_prog}" != missing
; then
11148 # We have a python program to use, but it may be too old.
11149 # Don't flag an error for --with-python=auto (the default).
11150 have_python_config
=yes
11151 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
11152 if test $?
!= 0; then
11153 have_python_config
=failed
11154 if test "${with_python}" != auto
; then
11155 as_fn_error $?
"failure running python-config --includes" "$LINENO" 5
11158 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
11159 if test $?
!= 0; then
11160 have_python_config
=failed
11161 if test "${with_python}" != auto
; then
11162 as_fn_error $?
"failure running python-config --ldflags" "$LINENO" 5
11165 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
11166 if test $?
!= 0; then
11167 have_python_config
=failed
11168 if test "${with_python}" != auto
; then
11169 as_fn_error $?
"failure running python-config --exec-prefix" "$LINENO" 5
11173 # We do not have a python executable we can use to determine where
11174 # to find the Python headers and libs. We cannot guess the include
11175 # path from the python_prefix either, because that include path
11176 # depends on the Python version. So, there is nothing much we can
11177 # do except assume that the compiler will be able to find those files.
11180 have_python_config
=no
11183 # If we have python-config, only try the configuration it provides.
11184 # Otherwise fallback on the old way of trying different versions of
11188 if test "${have_python_config}" = yes; then
11191 new_CPPFLAGS
=${python_includes}
11192 new_LIBS
=${python_libs}
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
11194 $as_echo_n "checking for python... " >&6; }
11195 save_CPPFLAGS
=$CPPFLAGS
11197 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11198 LIBS
="$new_LIBS $LIBS"
11199 found_usable_python
=no
11200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11201 /* end confdefs.h. */
11202 #include "Python.h"
11211 if ac_fn_c_try_link
"$LINENO"; then :
11213 found_usable_python
=yes
11214 PYTHON_CPPFLAGS
=$new_CPPFLAGS
11215 PYTHON_LIBS
=$new_LIBS
11217 rm -f core conftest.err conftest.
$ac_objext \
11218 conftest
$ac_exeext conftest.
$ac_ext
11219 CPPFLAGS
=$save_CPPFLAGS
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11222 $as_echo "${found_usable_python}" >&6; }
11224 elif test "${have_python_config}" != failed
; then
11225 if test "${have_libpython}" = no
; then
11228 new_CPPFLAGS
=${python_includes}
11229 new_LIBS
="-lpython2.7 ${python_libs}"
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
11231 $as_echo_n "checking for python... " >&6; }
11232 save_CPPFLAGS
=$CPPFLAGS
11234 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11235 LIBS
="$new_LIBS $LIBS"
11236 found_usable_python
=no
11237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11238 /* end confdefs.h. */
11239 #include "Python.h"
11248 if ac_fn_c_try_link
"$LINENO"; then :
11250 found_usable_python
=yes
11251 PYTHON_CPPFLAGS
=$new_CPPFLAGS
11252 PYTHON_LIBS
=$new_LIBS
11254 rm -f core conftest.err conftest.
$ac_objext \
11255 conftest
$ac_exeext conftest.
$ac_ext
11256 CPPFLAGS
=$save_CPPFLAGS
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11259 $as_echo "${found_usable_python}" >&6; }
11262 if test "${have_libpython}" = no
; then
11265 new_CPPFLAGS
=${python_includes}
11266 new_LIBS
="-lpython2.6 ${python_libs}"
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
11268 $as_echo_n "checking for python... " >&6; }
11269 save_CPPFLAGS
=$CPPFLAGS
11271 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11272 LIBS
="$new_LIBS $LIBS"
11273 found_usable_python
=no
11274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11275 /* end confdefs.h. */
11276 #include "Python.h"
11285 if ac_fn_c_try_link
"$LINENO"; then :
11287 found_usable_python
=yes
11288 PYTHON_CPPFLAGS
=$new_CPPFLAGS
11289 PYTHON_LIBS
=$new_LIBS
11291 rm -f core conftest.err conftest.
$ac_objext \
11292 conftest
$ac_exeext conftest.
$ac_ext
11293 CPPFLAGS
=$save_CPPFLAGS
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11296 $as_echo "${found_usable_python}" >&6; }
11301 if test "${have_libpython}" = no
; then
11302 case "${with_python}" in
11304 as_fn_error $?
"python is missing or unusable" "$LINENO" 5
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
11308 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
11311 as_fn_error $?
"no usable python found at ${with_python}" "$LINENO" 5
11315 if test -n "${python_prefix}"; then
11317 cat >>confdefs.h
<<_ACEOF
11318 #define WITH_PYTHON_PATH "${python_prefix}"
11322 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
11323 if test "x$prefix" = xNONE
; then
11324 test_prefix
=/usr
/local
11326 test_prefix
=$prefix
11329 test_prefix
=$exec_prefix
11332 case ${python_prefix} in
11333 "${test_prefix}"|
"${test_prefix}/"*|\
11334 '${exec_prefix}'|
'${exec_prefix}/'*)
11339 cat >>confdefs.h
<<_ACEOF
11340 #define PYTHON_PATH_RELOCATABLE $value
11349 # Check whether --with-python-libdir was given.
11350 if test "${with_python_libdir+set}" = set; then :
11351 withval
=$with_python_libdir;
11354 # If no python libdir is specified then select one based on
11355 # python's prefix path.
11356 if test -n "${python_prefix}"; then
11357 with_python_libdir
=${python_prefix}/lib
11363 if test "${have_libpython}" != no
; then
11365 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
11367 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
11368 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
11369 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
11370 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
11371 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
11373 if test -n "${with_python_libdir}"; then
11375 cat >>confdefs.h
<<_ACEOF
11376 #define WITH_PYTHON_LIBDIR "${with_python_libdir}"
11380 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
11381 if test "x$prefix" = xNONE
; then
11382 test_prefix
=/usr
/local
11384 test_prefix
=$prefix
11387 test_prefix
=$exec_prefix
11390 case ${with_python_libdir} in
11391 "${test_prefix}"|
"${test_prefix}/"*|\
11392 '${exec_prefix}'|
'${exec_prefix}/'*)
11397 cat >>confdefs.h
<<_ACEOF
11398 #define PYTHON_LIBDIR_RELOCATABLE $value
11404 # Flags needed to compile Python code (taken from python-config --cflags).
11405 # We cannot call python-config directly because it will output whatever was
11406 # used when compiling the Python interpreter itself, including flags which
11407 # would make the python-related objects be compiled differently from the
11408 # rest of GDB (e.g., -O2 and -fPIC).
11409 if test "${GCC}" = yes; then
11410 tentative_python_cflags
="-fno-strict-aliasing -fwrapv"
11411 # Python headers recommend -DNDEBUG, but it's unclear if that just
11412 # refers to building Python itself. In release mode, though, it
11413 # doesn't hurt for the Python code in gdb to follow.
11414 $development || tentative_python_cflags
="$tentative_python_cflags -DNDEBUG"
11417 if test "x${tentative_python_cflags}" != x
; then
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
11419 $as_echo_n "checking compiler flags for python code... " >&6; }
11420 for flag
in ${tentative_python_cflags}; do
11421 # Check that the compiler accepts it
11422 saved_CFLAGS
="$CFLAGS"
11423 CFLAGS
="$CFLAGS $flag"
11424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11425 /* end confdefs.h. */
11435 if ac_fn_c_try_compile
"$LINENO"; then :
11436 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
11438 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11439 CFLAGS
="$saved_CFLAGS"
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
11442 $as_echo "${PYTHON_CFLAGS}" >&6; }
11445 # On x64 Windows, Python's include headers, and pyconfig.h in
11446 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
11447 # version of Windows. Unfortunately, MS_WIN64 is only defined if
11448 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
11449 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
11450 # The issue was reported to the Python community, but still isn't
11451 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
11453 case "$gdb_host" in
11455 if test "${GCC}" = yes; then
11456 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
11461 # Even if Python support is not compiled in, we need to have this file
11462 # included so that the "python" command, et.al., still exists.
11463 CONFIG_OBS
="$CONFIG_OBS python/python.o"
11464 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
11467 # Work around Python http://bugs.python.org/issue10112. See also
11468 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
11469 # no effect. Note that the only test after this that uses Python is
11470 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
11471 # run without -export-dynamic too.
11472 PYTHON_LIBS
=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
11477 if test "${have_libpython}" != no
; then
11479 HAVE_PYTHON_FALSE
='#'
11481 HAVE_PYTHON_TRUE
='#'
11486 # -------------------- #
11487 # Check for libguile. #
11488 # -------------------- #
11495 # Check whether --with-guile was given.
11496 if test "${with_guile+set}" = set; then :
11497 withval
=$with_guile;
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
11503 $as_echo_n "checking whether to use guile... " >&6; }
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
11505 $as_echo "$with_guile" >&6; }
11507 # Extract the first word of "pkg-config", so it can be a program name with args.
11508 set dummy pkg-config
; ac_word
=$2
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11510 $as_echo_n "checking for $ac_word... " >&6; }
11511 if ${ac_cv_path_pkg_config_prog_path+:} false
; then :
11512 $as_echo_n "(cached) " >&6
11514 case $pkg_config_prog_path in
11516 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
11519 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11520 for as_dir
in $PATH
11523 test -z "$as_dir" && as_dir
=.
11524 for ac_exec_ext
in '' $ac_executable_extensions; do
11525 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11526 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
11527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11534 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
11538 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
11539 if test -n "$pkg_config_prog_path"; then
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
11541 $as_echo "$pkg_config_prog_path" >&6; }
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11544 $as_echo "no" >&6; }
11549 try_guile_versions
="guile-3.0 guile-2.2 guile-2.0"
11551 case "${with_guile}" in
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
11554 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
11557 if test "${pkg_config_prog_path}" = "missing"; then
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
11559 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
11562 pkg_config
=${pkg_config_prog_path}
11563 guile_version_list
=${try_guile_versions}
11566 found_usable_guile
=checking
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11568 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11569 for guile_version
in ${guile_version_list}; do
11570 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11571 if test $?
!= 0; then
11574 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11575 if test $?
!= 0; then
11576 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11578 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11579 if test $?
!= 0; then
11580 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11582 found_usable_guile
=${guile_version}
11585 if test "${found_usable_guile}" = "checking"; then
11586 if test "${flag_errors}" = "yes"; then
11587 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11589 found_usable_guile
=no
11592 if test "${found_usable_guile}" != no
; then
11593 save_CPPFLAGS
=$CPPFLAGS
11595 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11596 LIBS
="$LIBS $new_LIBS"
11597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11598 /* end confdefs.h. */
11599 #include "libguile.h"
11608 if ac_fn_c_try_link
"$LINENO"; then :
11610 GUILE_CPPFLAGS
=$new_CPPFLAGS
11611 GUILE_LIBS
=$new_LIBS
11613 found_usable_guile
=no
11615 rm -f core conftest.err conftest.
$ac_objext \
11616 conftest
$ac_exeext conftest.
$ac_ext
11617 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11618 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11620 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11625 CPPFLAGS
=$save_CPPFLAGS
11627 if test "${found_usable_guile}" = no
; then
11628 if test "${flag_errors}" = yes; then
11629 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11630 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11631 as_fn_error $?
"linking guile version ${guile_version} test program failed
11632 See \`config.log' for more details" "$LINENO" 5; }
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11637 $as_echo "${found_usable_guile}" >&6; }
11642 if test "${pkg_config_prog_path}" = "missing"; then
11643 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11646 pkg_config
=${pkg_config_prog_path}
11647 guile_version_list
=${try_guile_versions}
11650 found_usable_guile
=checking
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11652 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11653 for guile_version
in ${guile_version_list}; do
11654 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11655 if test $?
!= 0; then
11658 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11659 if test $?
!= 0; then
11660 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11662 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11663 if test $?
!= 0; then
11664 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11666 found_usable_guile
=${guile_version}
11669 if test "${found_usable_guile}" = "checking"; then
11670 if test "${flag_errors}" = "yes"; then
11671 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11673 found_usable_guile
=no
11676 if test "${found_usable_guile}" != no
; then
11677 save_CPPFLAGS
=$CPPFLAGS
11679 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11680 LIBS
="$LIBS $new_LIBS"
11681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11682 /* end confdefs.h. */
11683 #include "libguile.h"
11692 if ac_fn_c_try_link
"$LINENO"; then :
11694 GUILE_CPPFLAGS
=$new_CPPFLAGS
11695 GUILE_LIBS
=$new_LIBS
11697 found_usable_guile
=no
11699 rm -f core conftest.err conftest.
$ac_objext \
11700 conftest
$ac_exeext conftest.
$ac_ext
11701 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11702 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11704 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11709 CPPFLAGS
=$save_CPPFLAGS
11711 if test "${found_usable_guile}" = no
; then
11712 if test "${flag_errors}" = yes; then
11713 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11715 as_fn_error $?
"linking guile version ${guile_version} test program failed
11716 See \`config.log' for more details" "$LINENO" 5; }
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11721 $as_echo "${found_usable_guile}" >&6; }
11725 if test -x "${with_guile}"; then
11727 pkg_config
=${with_guile}
11728 guile_version_list
=${try_guile_versions}
11731 found_usable_guile
=checking
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11733 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11734 for guile_version
in ${guile_version_list}; do
11735 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11736 if test $?
!= 0; then
11739 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11740 if test $?
!= 0; then
11741 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11743 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11744 if test $?
!= 0; then
11745 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11747 found_usable_guile
=${guile_version}
11750 if test "${found_usable_guile}" = "checking"; then
11751 if test "${flag_errors}" = "yes"; then
11752 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11754 found_usable_guile
=no
11757 if test "${found_usable_guile}" != no
; then
11758 save_CPPFLAGS
=$CPPFLAGS
11760 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11761 LIBS
="$LIBS $new_LIBS"
11762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11763 /* end confdefs.h. */
11764 #include "libguile.h"
11773 if ac_fn_c_try_link
"$LINENO"; then :
11775 GUILE_CPPFLAGS
=$new_CPPFLAGS
11776 GUILE_LIBS
=$new_LIBS
11778 found_usable_guile
=no
11780 rm -f core conftest.err conftest.
$ac_objext \
11781 conftest
$ac_exeext conftest.
$ac_ext
11782 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11783 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11785 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11790 CPPFLAGS
=$save_CPPFLAGS
11792 if test "${found_usable_guile}" = no
; then
11793 if test "${flag_errors}" = yes; then
11794 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11796 as_fn_error $?
"linking guile version ${guile_version} test program failed
11797 See \`config.log' for more details" "$LINENO" 5; }
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11802 $as_echo "${found_usable_guile}" >&6; }
11805 as_fn_error $?
"Guile config program not executable: ${with_guile}" "$LINENO" 5
11809 # Disallow --with=guile="" and --with-guile=foo/bar.
11810 as_fn_error $?
"invalid value for --with-guile" "$LINENO" 5
11813 # A space separate list of guile versions to try, in order.
11814 if test "${pkg_config_prog_path}" = "missing"; then
11815 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11818 pkg_config
=${pkg_config_prog_path}
11819 guile_version_list
=${with_guile}
11822 found_usable_guile
=checking
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11824 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11825 for guile_version
in ${guile_version_list}; do
11826 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11827 if test $?
!= 0; then
11830 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11831 if test $?
!= 0; then
11832 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11834 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11835 if test $?
!= 0; then
11836 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11838 found_usable_guile
=${guile_version}
11841 if test "${found_usable_guile}" = "checking"; then
11842 if test "${flag_errors}" = "yes"; then
11843 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11845 found_usable_guile
=no
11848 if test "${found_usable_guile}" != no
; then
11849 save_CPPFLAGS
=$CPPFLAGS
11851 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11852 LIBS
="$LIBS $new_LIBS"
11853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11854 /* end confdefs.h. */
11855 #include "libguile.h"
11864 if ac_fn_c_try_link
"$LINENO"; then :
11866 GUILE_CPPFLAGS
=$new_CPPFLAGS
11867 GUILE_LIBS
=$new_LIBS
11869 found_usable_guile
=no
11871 rm -f core conftest.err conftest.
$ac_objext \
11872 conftest
$ac_exeext conftest.
$ac_ext
11873 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11874 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11876 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11881 CPPFLAGS
=$save_CPPFLAGS
11883 if test "${found_usable_guile}" = no
; then
11884 if test "${flag_errors}" = yes; then
11885 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11887 as_fn_error $?
"linking guile version ${guile_version} test program failed
11888 See \`config.log' for more details" "$LINENO" 5; }
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11893 $as_echo "${found_usable_guile}" >&6; }
11898 if test "${have_libguile}" != no
; then
11899 case "${with_guile}" in
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11903 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11904 if ${ac_cv_guild_program_name+:} false
; then :
11905 $as_echo_n "(cached) " >&6
11907 ac_cv_guild_program_name
="`"${with_guile}" --variable guild "${guile_version}"`"
11909 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11910 # the 'guild' and 'bindir' variables. In that case, try to guess
11911 # what the program name is, at the risk of getting it wrong if
11912 # Guile was configured with '--program-suffix' or similar.
11913 if test "x$ac_cv_guild_program_name" = "x"; then
11914 guile_exec_prefix
="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
11915 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11920 $as_echo "$ac_cv_guild_program_name" >&6; }
11922 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11923 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11926 GUILD
="$ac_cv_guild_program_name"
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11933 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11934 if ${ac_cv_guild_program_name+:} false
; then :
11935 $as_echo_n "(cached) " >&6
11937 ac_cv_guild_program_name
="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
11939 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11940 # the 'guild' and 'bindir' variables. In that case, try to guess
11941 # what the program name is, at the risk of getting it wrong if
11942 # Guile was configured with '--program-suffix' or similar.
11943 if test "x$ac_cv_guild_program_name" = "x"; then
11944 guile_exec_prefix
="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
11945 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11950 $as_echo "$ac_cv_guild_program_name" >&6; }
11952 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11953 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11956 GUILD
="$ac_cv_guild_program_name"
11963 if test "$cross_compiling" = no
; then
11966 GUILD_TARGET_FLAG
="--target=$host"
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
11973 $as_echo_n "checking whether guild supports this host... " >&6; }
11974 if ${ac_cv_guild_ok+:} false
; then :
11975 $as_echo_n "(cached) " >&6
11977 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
11978 if "$ac_cv_guild_program_name" compile
$GUILD_TARGET_FLAG -o conftest.go
"$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
11985 $as_echo "$ac_cv_guild_ok" >&6; }
11987 if test "$ac_cv_guild_ok" = no
; then
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
11990 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
11994 if test "${have_libguile}" != no
; then
11996 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
11998 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
11999 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
12000 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
12001 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
12002 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
12005 save_CPPFLAGS
="$CPPFLAGS"
12007 CPPFLAGS
="$GUILE_CPPFLAGS"
12008 for ac_func
in scm_new_smob
12010 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
12011 if test "x$ac_cv_func_scm_new_smob" = xyes
; then :
12012 cat >>confdefs.h
<<_ACEOF
12013 #define HAVE_SCM_NEW_SMOB 1
12020 CPPFLAGS
="$save_CPPFLAGS"
12022 # Even if Guile support is not compiled in, we need to have these files
12024 CONFIG_OBS
="$CONFIG_OBS guile/guile.o"
12025 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
12029 if test "${have_libguile}" != no
; then
12031 HAVE_GUILE_FALSE
='#'
12033 HAVE_GUILE_TRUE
='#'
12038 # ---------------------------- #
12039 # Check for source highlight. #
12040 # ---------------------------- #
12045 # Check whether --enable-source-highlight was given.
12046 if test "${enable_source_highlight+set}" = set; then :
12047 enableval
=$enable_source_highlight; case "${enableval}" in
12048 yes) enable_source_highlight
=yes ;;
12049 no
) enable_source_highlight
=no
;;
12050 *) as_fn_error $?
"bad value ${enableval} for source-highlight option" "$LINENO" 5 ;;
12053 enable_source_highlight
=auto
12057 if test "${enable_source_highlight}" != "no"; then
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the source-highlight library" >&5
12059 $as_echo_n "checking for the source-highlight library... " >&6; }
12060 if test "${pkg_config_prog_path}" = "missing"; then
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - pkg-config not found" >&5
12062 $as_echo "no - pkg-config not found" >&6; }
12063 if test "${enable_source_highlight}" = "yes"; then
12064 as_fn_error $?
"pkg-config was not found in your system" "$LINENO" 5
12067 if ${pkg_config_prog_path} --exists source-highlight
; then
12070 as_fn_error $?
"source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5
12074 SRCHIGH_CFLAGS
=`${pkg_config_prog_path} --cflags source-highlight`
12075 SRCHIGH_LIBS
=`${pkg_config_prog_path} --libs source-highlight`
12077 $as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12080 $as_echo "yes" >&6; }
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12083 $as_echo "no" >&6; }
12084 if test "${enable_source_highlight}" = "yes"; then
12085 as_fn_error $?
"source-highlight was not found in your system" "$LINENO" 5
12093 # ------------------------- #
12094 # Checks for header files. #
12095 # ------------------------- #
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12098 $as_echo_n "checking for ANSI C header files... " >&6; }
12099 if ${ac_cv_header_stdc+:} false
; then :
12100 $as_echo_n "(cached) " >&6
12102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12103 /* end confdefs.h. */
12104 #include <stdlib.h>
12105 #include <stdarg.h>
12106 #include <string.h>
12117 if ac_fn_c_try_compile
"$LINENO"; then :
12118 ac_cv_header_stdc
=yes
12120 ac_cv_header_stdc
=no
12122 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12124 if test $ac_cv_header_stdc = yes; then
12125 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12127 /* end confdefs.h. */
12128 #include <string.h>
12131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12132 $EGREP "memchr" >/dev
/null
2>&1; then :
12135 ac_cv_header_stdc
=no
12141 if test $ac_cv_header_stdc = yes; then
12142 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12144 /* end confdefs.h. */
12145 #include <stdlib.h>
12148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12149 $EGREP "free" >/dev
/null
2>&1; then :
12152 ac_cv_header_stdc
=no
12158 if test $ac_cv_header_stdc = yes; then
12159 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12160 if test "$cross_compiling" = yes; then :
12163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12164 /* end confdefs.h. */
12166 #include <stdlib.h>
12167 #if ((' ' & 0x0FF) == 0x020)
12168 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12169 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12171 # define ISLOWER(c) \
12172 (('a' <= (c) && (c) <= 'i') \
12173 || ('j' <= (c) && (c) <= 'r') \
12174 || ('s' <= (c) && (c) <= 'z'))
12175 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12178 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12183 for (i = 0; i < 256; i++)
12184 if (XOR (islower (i), ISLOWER (i))
12185 || toupper (i) != TOUPPER (i))
12190 if ac_fn_c_try_run
"$LINENO"; then :
12193 ac_cv_header_stdc
=no
12195 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12196 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12202 $as_echo "$ac_cv_header_stdc" >&6; }
12203 if test $ac_cv_header_stdc = yes; then
12205 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12209 # elf_hp.h is for HP/UX 64-bit shared library support.
12210 for ac_header
in nlist.h machine
/reg.h \
12212 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
12213 sys
/resource.h sys
/ptrace.h ptrace.h \
12214 sys
/reg.h sys
/debugreg.h \
12217 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12218 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12219 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12220 cat >>confdefs.h
<<_ACEOF
12221 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12228 for ac_header
in sys
/user.h
12230 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
12231 # include <sys/param.h>
12235 if test "x$ac_cv_header_sys_user_h" = xyes
; then :
12236 cat >>confdefs.h
<<_ACEOF
12237 #define HAVE_SYS_USER_H 1
12245 for ac_header
in curses.h cursesX.h ncurses.h ncursesw
/ncurses.h ncurses
/ncurses.h ncurses
/term.h
12247 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12248 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12249 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12250 cat >>confdefs.h
<<_ACEOF
12251 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12258 for ac_header
in term.h
12260 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
12261 # include <curses.h>
12265 if test "x$ac_cv_header_term_h" = xyes
; then :
12266 cat >>confdefs.h
<<_ACEOF
12267 #define HAVE_TERM_H 1
12275 for ac_header
in sys
/socket.h
12277 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
12278 if test "x$ac_cv_header_sys_socket_h" = xyes
; then :
12279 cat >>confdefs.h
<<_ACEOF
12280 #define HAVE_SYS_SOCKET_H 1
12287 for ac_header
in ws2tcpip.h
12289 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
12290 if test "x$ac_cv_header_ws2tcpip_h" = xyes
; then :
12291 cat >>confdefs.h
<<_ACEOF
12292 #define HAVE_WS2TCPIP_H 1
12300 # ------------------------- #
12301 # Checks for declarations. #
12302 # ------------------------- #
12305 # Check for presence and size of long long.
12306 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12307 if test "x$ac_cv_type_long_long" = xyes
; then :
12309 cat >>confdefs.h
<<_ACEOF
12310 #define HAVE_LONG_LONG 1
12313 # The cast to long int works around a bug in the HP C Compiler
12314 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12315 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12316 # This bug is HP SR number 8606223364.
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12318 $as_echo_n "checking size of long long... " >&6; }
12319 if ${ac_cv_sizeof_long_long+:} false
; then :
12320 $as_echo_n "(cached) " >&6
12322 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12325 if test "$ac_cv_type_long_long" = yes; then
12326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12328 as_fn_error
77 "cannot compute sizeof (long long)
12329 See \`config.log' for more details" "$LINENO" 5; }
12331 ac_cv_sizeof_long_long
=0
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12337 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12341 cat >>confdefs.h
<<_ACEOF
12342 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12349 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
12350 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
12351 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
12357 cat >>confdefs.h
<<_ACEOF
12358 #define HAVE_DECL_BASENAME $ac_have_decl
12360 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
12361 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
12367 cat >>confdefs.h
<<_ACEOF
12368 #define HAVE_DECL_FFS $ac_have_decl
12370 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
12371 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
12377 cat >>confdefs.h
<<_ACEOF
12378 #define HAVE_DECL_ASPRINTF $ac_have_decl
12380 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
12381 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
12387 cat >>confdefs.h
<<_ACEOF
12388 #define HAVE_DECL_VASPRINTF $ac_have_decl
12390 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12391 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12397 cat >>confdefs.h
<<_ACEOF
12398 #define HAVE_DECL_SNPRINTF $ac_have_decl
12400 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12401 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
12407 cat >>confdefs.h
<<_ACEOF
12408 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12411 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
12412 if test "x$ac_cv_have_decl_strtol" = xyes
; then :
12418 cat >>confdefs.h
<<_ACEOF
12419 #define HAVE_DECL_STRTOL $ac_have_decl
12421 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
12422 if test "x$ac_cv_have_decl_strtoul" = xyes
; then :
12428 cat >>confdefs.h
<<_ACEOF
12429 #define HAVE_DECL_STRTOUL $ac_have_decl
12431 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
12432 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
12438 cat >>confdefs.h
<<_ACEOF
12439 #define HAVE_DECL_STRTOLL $ac_have_decl
12441 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
12442 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
12448 cat >>confdefs.h
<<_ACEOF
12449 #define HAVE_DECL_STRTOULL $ac_have_decl
12452 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
12453 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
12459 cat >>confdefs.h
<<_ACEOF
12460 #define HAVE_DECL_STRVERSCMP $ac_have_decl
12465 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12466 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12472 cat >>confdefs.h
<<_ACEOF
12473 #define HAVE_DECL_SNPRINTF $ac_have_decl
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12478 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12479 if ${am_cv_val_LC_MESSAGES+:} false
; then :
12480 $as_echo_n "(cached) " >&6
12482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12483 /* end confdefs.h. */
12484 #include <locale.h>
12493 if ac_fn_c_try_link
"$LINENO"; then :
12494 am_cv_val_LC_MESSAGES
=yes
12496 am_cv_val_LC_MESSAGES
=no
12498 rm -f core conftest.err conftest.
$ac_objext \
12499 conftest
$ac_exeext conftest.
$ac_ext
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12502 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12503 if test $am_cv_val_LC_MESSAGES = yes; then
12505 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12510 # ------------------ #
12511 # Checks for types. #
12512 # ------------------ #
12514 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12515 #if HAVE_SYS_SOCKET_H
12516 # include <sys/socket.h>
12517 #elif HAVE_WS2TCPIP_H
12518 # include <ws2tcpip.h>
12522 if test "x$ac_cv_type_socklen_t" = xyes
; then :
12524 cat >>confdefs.h
<<_ACEOF
12525 #define HAVE_SOCKLEN_T 1
12532 # ------------------------------------- #
12533 # Checks for compiler characteristics. #
12534 # ------------------------------------- #
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12537 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12538 if ${ac_cv_c_const+:} false
; then :
12539 $as_echo_n "(cached) " >&6
12541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12542 /* end confdefs.h. */
12548 #ifndef __cplusplus
12549 /* Ultrix mips cc rejects this sort of thing. */
12550 typedef int charset[2];
12551 const charset cs = { 0, 0 };
12552 /* SunOS 4.1.1 cc rejects this. */
12553 char const *const *pcpcc;
12555 /* NEC SVR4.0.2 mips cc rejects this. */
12556 struct point {int x, y;};
12557 static struct point const zero = {0,0};
12558 /* AIX XL C 1.02.0.0 rejects this.
12559 It does not let you subtract one const X* pointer from another in
12560 an arm of an if-expression whose if-part is not a constant
12562 const char *g = "string";
12563 pcpcc = &g + (g ? g-g : 0);
12564 /* HPUX 7.0 cc rejects these. */
12566 ppc = (char**) pcpcc;
12567 pcpcc = (char const *const *) ppc;
12568 { /* SCO 3.2v4 cc rejects this sort of thing. */
12571 char const *s = 0 ? (char *) 0 : (char const *) 0;
12576 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12577 int x[] = {25, 17};
12578 const int *foo = &x[0];
12581 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12582 typedef const int *iptr;
12586 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12587 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12588 struct s { int j; const int *ap[3]; } bx;
12589 struct s *b = &bx; b->j = 5;
12591 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12592 const int foo = 10;
12593 if (!foo) return 0;
12595 return !cs[0] && !zero.x;
12602 if ac_fn_c_try_compile
"$LINENO"; then :
12607 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12610 $as_echo "$ac_cv_c_const" >&6; }
12611 if test $ac_cv_c_const = no
; then
12613 $as_echo "#define const /**/" >>confdefs.h
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12618 $as_echo_n "checking for inline... " >&6; }
12619 if ${ac_cv_c_inline+:} false
; then :
12620 $as_echo_n "(cached) " >&6
12623 for ac_kw
in inline __inline__ __inline
; do
12624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12625 /* end confdefs.h. */
12626 #ifndef __cplusplus
12628 static $ac_kw foo_t static_foo () {return 0; }
12629 $ac_kw foo_t foo () {return 0; }
12633 if ac_fn_c_try_compile
"$LINENO"; then :
12634 ac_cv_c_inline
=$ac_kw
12636 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12637 test "$ac_cv_c_inline" != no
&& break
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12642 $as_echo "$ac_cv_c_inline" >&6; }
12644 case $ac_cv_c_inline in
12647 case $ac_cv_c_inline in
12649 *) ac_val
=$ac_cv_c_inline;;
12651 cat >>confdefs.h
<<_ACEOF
12652 #ifndef __cplusplus
12653 #define inline $ac_val
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12660 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12661 if ${ac_cv_c_bigendian+:} false
; then :
12662 $as_echo_n "(cached) " >&6
12664 ac_cv_c_bigendian
=unknown
12665 # See if we're dealing with a universal compiler.
12666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12667 /* end confdefs.h. */
12668 #ifndef __APPLE_CC__
12669 not a universal capable compiler
12674 if ac_fn_c_try_compile
"$LINENO"; then :
12676 # Check for potential -arch flags. It is not universal unless
12677 # there are at least two -arch flags with different values.
12680 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12681 if test -n "$ac_prev"; then
12683 i?
86 | x86_64 | ppc | ppc64
)
12684 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
12687 ac_cv_c_bigendian
=universal
12693 elif test "x$ac_word" = "x-arch"; then
12698 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12699 if test $ac_cv_c_bigendian = unknown
; then
12700 # See if sys/param.h defines the BYTE_ORDER macro.
12701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12702 /* end confdefs.h. */
12703 #include <sys/types.h>
12704 #include <sys/param.h>
12709 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12710 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12712 bogus endian macros
12719 if ac_fn_c_try_compile
"$LINENO"; then :
12720 # It does; now see whether it defined to BIG_ENDIAN or not.
12721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12722 /* end confdefs.h. */
12723 #include <sys/types.h>
12724 #include <sys/param.h>
12729 #if BYTE_ORDER != BIG_ENDIAN
12737 if ac_fn_c_try_compile
"$LINENO"; then :
12738 ac_cv_c_bigendian
=yes
12740 ac_cv_c_bigendian
=no
12742 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12744 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12746 if test $ac_cv_c_bigendian = unknown
; then
12747 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12749 /* end confdefs.h. */
12750 #include <limits.h>
12755 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12756 bogus endian macros
12763 if ac_fn_c_try_compile
"$LINENO"; then :
12764 # It does; now see whether it defined to _BIG_ENDIAN or not.
12765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12766 /* end confdefs.h. */
12767 #include <limits.h>
12772 #ifndef _BIG_ENDIAN
12780 if ac_fn_c_try_compile
"$LINENO"; then :
12781 ac_cv_c_bigendian
=yes
12783 ac_cv_c_bigendian
=no
12785 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12787 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12789 if test $ac_cv_c_bigendian = unknown
; then
12790 # Compile a test program.
12791 if test "$cross_compiling" = yes; then :
12792 # Try to guess by grepping values from an object file.
12793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12794 /* end confdefs.h. */
12795 short int ascii_mm[] =
12796 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12797 short int ascii_ii[] =
12798 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12799 int use_ascii (int i) {
12800 return ascii_mm[i] + ascii_ii[i];
12802 short int ebcdic_ii[] =
12803 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12804 short int ebcdic_mm[] =
12805 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12806 int use_ebcdic (int i) {
12807 return ebcdic_mm[i] + ebcdic_ii[i];
12814 return use_ascii (foo) == use_ebcdic (foo);
12819 if ac_fn_c_try_compile
"$LINENO"; then :
12820 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12821 ac_cv_c_bigendian
=yes
12823 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12824 if test "$ac_cv_c_bigendian" = unknown
; then
12825 ac_cv_c_bigendian
=no
12827 # finding both strings is unlikely to happen, but who knows?
12828 ac_cv_c_bigendian
=unknown
12832 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12835 /* end confdefs.h. */
12836 $ac_includes_default
12841 /* Are we little or big endian? From Harbison&Steele. */
12845 char c[sizeof (long int)];
12848 return u.c[sizeof (long int) - 1] == 1;
12854 if ac_fn_c_try_run
"$LINENO"; then :
12855 ac_cv_c_bigendian
=no
12857 ac_cv_c_bigendian
=yes
12859 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12860 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12866 $as_echo "$ac_cv_c_bigendian" >&6; }
12867 case $ac_cv_c_bigendian in #(
12869 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12875 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12879 as_fn_error $?
"unknown endianness
12880 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12884 # ------------------------------ #
12885 # Checks for library functions. #
12886 # ------------------------------ #
12888 for ac_func
in getuid getgid \
12889 pipe pread pread64 pwrite resize_term \
12891 sigaction sigsetmask socketpair \
12892 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
12893 setrlimit getrlimit posix_madvise waitpid \
12896 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12897 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12898 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12899 cat >>confdefs.h
<<_ACEOF
12900 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12908 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12909 if ${am_cv_langinfo_codeset+:} false
; then :
12910 $as_echo_n "(cached) " >&6
12912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12913 /* end confdefs.h. */
12914 #include <langinfo.h>
12918 char* cs = nl_langinfo(CODESET);
12923 if ac_fn_c_try_link
"$LINENO"; then :
12924 am_cv_langinfo_codeset
=yes
12926 am_cv_langinfo_codeset
=no
12928 rm -f core conftest.err conftest.
$ac_objext \
12929 conftest
$ac_exeext conftest.
$ac_ext
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12933 $as_echo "$am_cv_langinfo_codeset" >&6; }
12934 if test $am_cv_langinfo_codeset = yes; then
12936 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12940 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12941 if test "x$ac_cv_type_size_t" = xyes
; then :
12945 cat >>confdefs.h
<<_ACEOF
12946 #define size_t unsigned int
12954 for ac_header
in $ac_header_list
12956 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12957 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12959 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12960 cat >>confdefs.h
<<_ACEOF
12961 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12974 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12975 if test "x$ac_cv_type_pid_t" = xyes
; then :
12979 cat >>confdefs.h
<<_ACEOF
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12986 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12987 if ${ac_cv_path_SED+:} false
; then :
12988 $as_echo_n "(cached) " >&6
12990 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
12991 for ac_i
in 1 2 3 4 5 6 7; do
12992 ac_script
="$ac_script$as_nl$ac_script"
12994 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
12995 { ac_script
=; unset ac_script
;}
12996 if test -z "$SED"; then
12997 ac_path_SED_found
=false
12998 # Loop through the user's path and test for each of PROGNAME-LIST
12999 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13000 for as_dir
in $PATH
13003 test -z "$as_dir" && as_dir
=.
13004 for ac_prog
in sed gsed
; do
13005 for ac_exec_ext
in '' $ac_executable_extensions; do
13006 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
13007 as_fn_executable_p
"$ac_path_SED" ||
continue
13008 # Check for GNU ac_path_SED and select it if it is found.
13009 # Check for GNU $ac_path_SED
13010 case `"$ac_path_SED" --version 2>&1` in
13012 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
13015 $as_echo_n 0123456789 >"conftest.in"
13018 cat "conftest.in" "conftest.in" >"conftest.tmp"
13019 mv "conftest.tmp" "conftest.in"
13020 cp "conftest.in" "conftest.nl"
13021 $as_echo '' >> "conftest.nl"
13022 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13023 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13024 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13025 if test $ac_count -gt ${ac_path_SED_max-0}; then
13026 # Best one so far, save it but keep looking for a better one
13027 ac_cv_path_SED
="$ac_path_SED"
13028 ac_path_SED_max
=$ac_count
13030 # 10*(2^10) chars as input seems more than enough
13031 test $ac_count -gt 10 && break
13033 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13036 $ac_path_SED_found && break 3
13041 if test -z "$ac_cv_path_SED"; then
13042 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
13045 ac_cv_path_SED
=$SED
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13050 $as_echo "$ac_cv_path_SED" >&6; }
13051 SED
="$ac_cv_path_SED"
13055 # Set the 'development' global.
13056 .
$srcdir/..
/bfd
/development.sh
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13059 $as_echo_n "checking for ANSI C header files... " >&6; }
13060 if ${ac_cv_header_stdc+:} false
; then :
13061 $as_echo_n "(cached) " >&6
13063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13064 /* end confdefs.h. */
13065 #include <stdlib.h>
13066 #include <stdarg.h>
13067 #include <string.h>
13078 if ac_fn_c_try_compile
"$LINENO"; then :
13079 ac_cv_header_stdc
=yes
13081 ac_cv_header_stdc
=no
13083 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13085 if test $ac_cv_header_stdc = yes; then
13086 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13088 /* end confdefs.h. */
13089 #include <string.h>
13092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13093 $EGREP "memchr" >/dev
/null
2>&1; then :
13096 ac_cv_header_stdc
=no
13102 if test $ac_cv_header_stdc = yes; then
13103 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13105 /* end confdefs.h. */
13106 #include <stdlib.h>
13109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13110 $EGREP "free" >/dev
/null
2>&1; then :
13113 ac_cv_header_stdc
=no
13119 if test $ac_cv_header_stdc = yes; then
13120 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13121 if test "$cross_compiling" = yes; then :
13124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13125 /* end confdefs.h. */
13127 #include <stdlib.h>
13128 #if ((' ' & 0x0FF) == 0x020)
13129 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13130 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13132 # define ISLOWER(c) \
13133 (('a' <= (c) && (c) <= 'i') \
13134 || ('j' <= (c) && (c) <= 'r') \
13135 || ('s' <= (c) && (c) <= 'z'))
13136 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13139 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13144 for (i = 0; i < 256; i++)
13145 if (XOR (islower (i), ISLOWER (i))
13146 || toupper (i) != TOUPPER (i))
13151 if ac_fn_c_try_run
"$LINENO"; then :
13154 ac_cv_header_stdc
=no
13156 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13157 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13163 $as_echo "$ac_cv_header_stdc" >&6; }
13164 if test $ac_cv_header_stdc = yes; then
13166 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13170 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13171 # for constant arguments. Useless!
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13173 $as_echo_n "checking for working alloca.h... " >&6; }
13174 if ${ac_cv_working_alloca_h+:} false
; then :
13175 $as_echo_n "(cached) " >&6
13177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13178 /* end confdefs.h. */
13179 #include <alloca.h>
13183 char *p = (char *) alloca (2 * sizeof (int));
13189 if ac_fn_c_try_link
"$LINENO"; then :
13190 ac_cv_working_alloca_h
=yes
13192 ac_cv_working_alloca_h
=no
13194 rm -f core conftest.err conftest.
$ac_objext \
13195 conftest
$ac_exeext conftest.
$ac_ext
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13198 $as_echo "$ac_cv_working_alloca_h" >&6; }
13199 if test $ac_cv_working_alloca_h = yes; then
13201 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13206 $as_echo_n "checking for alloca... " >&6; }
13207 if ${ac_cv_func_alloca_works+:} false
; then :
13208 $as_echo_n "(cached) " >&6
13210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13211 /* end confdefs.h. */
13213 # define alloca __builtin_alloca
13216 # include <malloc.h>
13217 # define alloca _alloca
13219 # ifdef HAVE_ALLOCA_H
13220 # include <alloca.h>
13225 # ifndef alloca /* predefined by HP cc +Olibcalls */
13226 void *alloca (size_t);
13236 char *p = (char *) alloca (1);
13242 if ac_fn_c_try_link
"$LINENO"; then :
13243 ac_cv_func_alloca_works
=yes
13245 ac_cv_func_alloca_works
=no
13247 rm -f core conftest.err conftest.
$ac_objext \
13248 conftest
$ac_exeext conftest.
$ac_ext
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13251 $as_echo "$ac_cv_func_alloca_works" >&6; }
13253 if test $ac_cv_func_alloca_works = yes; then
13255 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13258 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13259 # that cause trouble. Some versions do not even contain alloca or
13260 # contain a buggy version. If you still want to use their alloca,
13261 # use ar to extract alloca.o from them instead of compiling alloca.c.
13263 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
13265 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13269 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13270 if ${ac_cv_os_cray+:} false
; then :
13271 $as_echo_n "(cached) " >&6
13273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13274 /* end confdefs.h. */
13275 #if defined CRAY && ! defined CRAY2
13282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13283 $EGREP "webecray" >/dev
/null
2>&1; then :
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13292 $as_echo "$ac_cv_os_cray" >&6; }
13293 if test $ac_cv_os_cray = yes; then
13294 for ac_func
in _getb67 GETB67 getb67
; do
13295 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13296 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13297 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13299 cat >>confdefs.h
<<_ACEOF
13300 #define CRAY_STACKSEG_END $ac_func
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13310 $as_echo_n "checking stack direction for C alloca... " >&6; }
13311 if ${ac_cv_c_stack_direction+:} false
; then :
13312 $as_echo_n "(cached) " >&6
13314 if test "$cross_compiling" = yes; then :
13315 ac_cv_c_stack_direction
=0
13317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13318 /* end confdefs.h. */
13319 $ac_includes_default
13321 find_stack_direction (int *addr, int depth)
13323 int dir, dummy = 0;
13326 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13327 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13328 return dir + dummy;
13332 main (int argc, char **argv)
13334 return find_stack_direction (0, argc + !argv + 20) < 0;
13337 if ac_fn_c_try_run
"$LINENO"; then :
13338 ac_cv_c_stack_direction
=1
13340 ac_cv_c_stack_direction
=-1
13342 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13343 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13348 $as_echo "$ac_cv_c_stack_direction" >&6; }
13349 cat >>confdefs.h
<<_ACEOF
13350 #define STACK_DIRECTION $ac_cv_c_stack_direction
13361 $as_echo "#define USE_WIN32API 1" >>confdefs.h
13363 WIN32APILIBS
="-lws2_32"
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13369 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13370 if ${am_cv_langinfo_codeset+:} false
; then :
13371 $as_echo_n "(cached) " >&6
13373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13374 /* end confdefs.h. */
13375 #include <langinfo.h>
13379 char* cs = nl_langinfo(CODESET);
13384 if ac_fn_c_try_link
"$LINENO"; then :
13385 am_cv_langinfo_codeset
=yes
13387 am_cv_langinfo_codeset
=no
13389 rm -f core conftest.err conftest.
$ac_objext \
13390 conftest
$ac_exeext conftest.
$ac_ext
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13394 $as_echo "$am_cv_langinfo_codeset" >&6; }
13395 if test $am_cv_langinfo_codeset = yes; then
13397 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13402 for ac_header
in linux
/perf_event.h locale.h memory.h signal.h sys
/resource.h sys
/socket.h sys
/un.h sys
/wait.h thread_db.h
wait.h termios.h dlfcn.h linux
/elf.h proc_service.h poll.h sys
/poll.h sys
/select.h
13404 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13405 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13406 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13407 cat >>confdefs.h
<<_ACEOF
13408 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13417 for ac_func
in getpagesize
13419 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13420 if test "x$ac_cv_func_getpagesize" = xyes
; then :
13421 cat >>confdefs.h
<<_ACEOF
13422 #define HAVE_GETPAGESIZE 1
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13429 $as_echo_n "checking for working mmap... " >&6; }
13430 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
13431 $as_echo_n "(cached) " >&6
13433 if test "$cross_compiling" = yes; then :
13434 ac_cv_func_mmap_fixed_mapped
=no
13436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13437 /* end confdefs.h. */
13438 $ac_includes_default
13439 /* malloc might have been renamed as rpl_malloc. */
13442 /* Thanks to Mike Haertel and Jim Avera for this test.
13443 Here is a matrix of mmap possibilities:
13444 mmap private not fixed
13445 mmap private fixed at somewhere currently unmapped
13446 mmap private fixed at somewhere already mapped
13447 mmap shared not fixed
13448 mmap shared fixed at somewhere currently unmapped
13449 mmap shared fixed at somewhere already mapped
13450 For private mappings, we should verify that changes cannot be read()
13451 back from the file, nor mmap's back from the file at a different
13452 address. (There have been systems where private was not correctly
13453 implemented like the infamous i386 svr4.0, and systems where the
13454 VM page cache was not coherent with the file system buffer cache
13455 like early versions of FreeBSD and possibly contemporary NetBSD.)
13456 For shared mappings, we should conversely verify that changes get
13457 propagated back to all the places they're supposed to be.
13459 Grep wants private fixed already mapped.
13460 The main things grep needs to know about mmap are:
13461 * does it exist and is it safe to write into the mmap'd area
13462 * how to use it (BSD variants) */
13465 #include <sys/mman.h>
13467 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13471 /* This mess was copied from the GNU getpagesize.h. */
13472 #ifndef HAVE_GETPAGESIZE
13473 # ifdef _SC_PAGESIZE
13474 # define getpagesize() sysconf(_SC_PAGESIZE)
13475 # else /* no _SC_PAGESIZE */
13476 # ifdef HAVE_SYS_PARAM_H
13477 # include <sys/param.h>
13478 # ifdef EXEC_PAGESIZE
13479 # define getpagesize() EXEC_PAGESIZE
13480 # else /* no EXEC_PAGESIZE */
13482 # define getpagesize() NBPG * CLSIZE
13485 # endif /* no CLSIZE */
13486 # else /* no NBPG */
13488 # define getpagesize() NBPC
13489 # else /* no NBPC */
13491 # define getpagesize() PAGESIZE
13492 # endif /* PAGESIZE */
13493 # endif /* no NBPC */
13494 # endif /* no NBPG */
13495 # endif /* no EXEC_PAGESIZE */
13496 # else /* no HAVE_SYS_PARAM_H */
13497 # define getpagesize() 8192 /* punt totally */
13498 # endif /* no HAVE_SYS_PARAM_H */
13499 # endif /* no _SC_PAGESIZE */
13501 #endif /* no HAVE_GETPAGESIZE */
13506 char *data, *data2, *data3;
13507 const char *cdata2;
13511 pagesize = getpagesize ();
13513 /* First, make a file with some known garbage in it. */
13514 data = (char *) malloc (pagesize);
13517 for (i = 0; i < pagesize; ++i)
13518 *(data + i) = rand ();
13520 fd = creat ("conftest.mmap", 0600);
13523 if (write (fd, data, pagesize) != pagesize)
13527 /* Next, check that the tail of a page is zero-filled. File must have
13528 non-zero length, otherwise we risk SIGBUS for entire page. */
13529 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13533 if (write (fd2, cdata2, 1) != 1)
13535 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13536 if (data2 == MAP_FAILED)
13538 for (i = 0; i < pagesize; ++i)
13542 if (munmap (data2, pagesize))
13545 /* Next, try to mmap the file at a fixed address which already has
13546 something else allocated at it. If we can, also make sure that
13547 we see the same garbage. */
13548 fd = open ("conftest.mmap", O_RDWR);
13551 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13552 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13554 for (i = 0; i < pagesize; ++i)
13555 if (*(data + i) != *(data2 + i))
13558 /* Finally, make sure that changes to the mapped area do not
13559 percolate back to the file as seen by read(). (This is a bug on
13560 some variants of i386 svr4.0.) */
13561 for (i = 0; i < pagesize; ++i)
13562 *(data2 + i) = *(data2 + i) + 1;
13563 data3 = (char *) malloc (pagesize);
13566 if (read (fd, data3, pagesize) != pagesize)
13568 for (i = 0; i < pagesize; ++i)
13569 if (*(data + i) != *(data3 + i))
13575 if ac_fn_c_try_run
"$LINENO"; then :
13576 ac_cv_func_mmap_fixed_mapped
=yes
13578 ac_cv_func_mmap_fixed_mapped
=no
13580 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13581 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13586 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13587 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13589 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13592 rm -f conftest.mmap conftest.txt
13594 for ac_header
in vfork.h
13596 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13597 if test "x$ac_cv_header_vfork_h" = xyes
; then :
13598 cat >>confdefs.h
<<_ACEOF
13599 #define HAVE_VFORK_H 1
13606 for ac_func
in fork vfork
13608 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13609 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13610 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13611 cat >>confdefs.h
<<_ACEOF
13612 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13618 if test "x$ac_cv_func_fork" = xyes
; then
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13620 $as_echo_n "checking for working fork... " >&6; }
13621 if ${ac_cv_func_fork_works+:} false
; then :
13622 $as_echo_n "(cached) " >&6
13624 if test "$cross_compiling" = yes; then :
13625 ac_cv_func_fork_works
=cross
13627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13628 /* end confdefs.h. */
13629 $ac_includes_default
13634 /* By Ruediger Kuhlmann. */
13635 return fork () < 0;
13641 if ac_fn_c_try_run
"$LINENO"; then :
13642 ac_cv_func_fork_works
=yes
13644 ac_cv_func_fork_works
=no
13646 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13647 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13652 $as_echo "$ac_cv_func_fork_works" >&6; }
13655 ac_cv_func_fork_works
=$ac_cv_func_fork
13657 if test "x$ac_cv_func_fork_works" = xcross
; then
13659 *-*-amigaos* |
*-*-msdosdjgpp*)
13660 # Override, as these systems have only a dummy fork() stub
13661 ac_cv_func_fork_works
=no
13664 ac_cv_func_fork_works
=yes
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13668 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13670 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13671 if test "x$ac_cv_func_vfork" = xyes
; then
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13673 $as_echo_n "checking for working vfork... " >&6; }
13674 if ${ac_cv_func_vfork_works+:} false
; then :
13675 $as_echo_n "(cached) " >&6
13677 if test "$cross_compiling" = yes; then :
13678 ac_cv_func_vfork_works
=cross
13680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13681 /* end confdefs.h. */
13682 /* Thanks to Paul Eggert for this test. */
13683 $ac_includes_default
13684 #include <sys/wait.h>
13685 #ifdef HAVE_VFORK_H
13686 # include <vfork.h>
13688 /* On some sparc systems, changes by the child to local and incoming
13689 argument registers are propagated back to the parent. The compiler
13690 is told about this with #include <vfork.h>, but some compilers
13691 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13692 static variable whose address is put into a register that is
13693 clobbered by the vfork. */
13696 sparc_address_test (int arg)
13698 sparc_address_test (arg) int arg;
13701 static pid_t child;
13719 pid_t parent = getpid ();
13722 sparc_address_test (0);
13727 /* Here is another test for sparc vfork register problems. This
13728 test uses lots of local variables, at least as many local
13729 variables as main has allocated so far including compiler
13730 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13731 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13732 reuse the register of parent for one of the local variables,
13733 since it will think that parent can't possibly be used any more
13734 in this routine. Assigning to the local variable will thus
13735 munge parent in the parent process. */
13737 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13738 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13739 /* Convince the compiler that p..p7 are live; otherwise, it might
13740 use the same hardware register for all 8 local variables. */
13741 if (p != p1 || p != p2 || p != p3 || p != p4
13742 || p != p5 || p != p6 || p != p7)
13745 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13746 from child file descriptors. If the child closes a descriptor
13747 before it execs or exits, this munges the parent's descriptor
13748 as well. Test for this by closing stdout in the child. */
13749 _exit(close(fileno(stdout)) != 0);
13754 while (wait(&status) != child)
13757 /* Was there some problem with vforking? */
13760 /* Did the child fail? (This shouldn't happen.) */
13763 /* Did the vfork/compiler bug occur? */
13764 || parent != getpid()
13766 /* Did the file descriptor bug occur? */
13767 || fstat(fileno(stdout), &st) != 0
13772 if ac_fn_c_try_run
"$LINENO"; then :
13773 ac_cv_func_vfork_works
=yes
13775 ac_cv_func_vfork_works
=no
13777 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13778 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13783 $as_echo "$ac_cv_func_vfork_works" >&6; }
13786 if test "x$ac_cv_func_fork_works" = xcross
; then
13787 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13789 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13792 if test "x$ac_cv_func_vfork_works" = xyes
; then
13794 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13798 $as_echo "#define vfork fork" >>confdefs.h
13801 if test "x$ac_cv_func_fork_works" = xyes
; then
13803 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13807 for ac_func
in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
13808 ptrace64 sbrk setns sigaltstack sigprocmask \
13809 setpgid setpgrp getrusage getauxval
13811 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13812 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13813 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13814 cat >>confdefs.h
<<_ACEOF
13815 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13822 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
13824 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
13830 cat >>confdefs.h
<<_ACEOF
13831 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
13835 if test "$cross_compiling" = yes; then :
13836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13837 /* end confdefs.h. */
13838 #include <sys/personality.h>
13843 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
13844 # define ADDR_NO_RANDOMIZE 0x0040000
13846 /* Test the flag could be set and stays set. */
13847 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13848 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13854 if ac_fn_c_try_link
"$LINENO"; then :
13855 have_personality
=true
13857 have_personality
=false
13859 rm -f core conftest.err conftest.
$ac_objext \
13860 conftest
$ac_exeext conftest.
$ac_ext
13862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13863 /* end confdefs.h. */
13864 #include <sys/personality.h>
13869 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
13870 # define ADDR_NO_RANDOMIZE 0x0040000
13872 /* Test the flag could be set and stays set. */
13873 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13874 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13880 if ac_fn_c_try_run
"$LINENO"; then :
13881 have_personality
=true
13883 have_personality
=false
13885 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13886 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13889 if $have_personality
13892 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
13896 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13897 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
13903 cat >>confdefs.h
<<_ACEOF
13904 #define HAVE_DECL_STRSTR $ac_have_decl
13908 # ----------------------- #
13909 # Checks for structures. #
13910 # ----------------------- #
13912 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13913 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
13915 cat >>confdefs.h
<<_ACEOF
13916 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13921 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
13922 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
13924 cat >>confdefs.h
<<_ACEOF
13925 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13932 # On FreeBSD we need libutil for the kinfo_get* functions. On
13933 # GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
13934 # Figure out which one to use.
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
13936 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
13937 if ${ac_cv_search_kinfo_getfile+:} false
; then :
13938 $as_echo_n "(cached) " >&6
13940 ac_func_search_save_LIBS
=$LIBS
13941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13942 /* end confdefs.h. */
13944 /* Override any GCC internal prototype to avoid an error.
13945 Use char because int might match the return type of a GCC
13946 builtin and then its argument prototype would still apply. */
13950 char kinfo_getfile ();
13954 return kinfo_getfile ();
13959 for ac_lib
in '' util util-freebsd
; do
13960 if test -z "$ac_lib"; then
13961 ac_res
="none required"
13964 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13966 if ac_fn_c_try_link
"$LINENO"; then :
13967 ac_cv_search_kinfo_getfile
=$ac_res
13969 rm -f core conftest.err conftest.
$ac_objext \
13971 if ${ac_cv_search_kinfo_getfile+:} false
; then :
13975 if ${ac_cv_search_kinfo_getfile+:} false
; then :
13978 ac_cv_search_kinfo_getfile
=no
13980 rm conftest.
$ac_ext
13981 LIBS
=$ac_func_search_save_LIBS
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
13984 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
13985 ac_res
=$ac_cv_search_kinfo_getfile
13986 if test "$ac_res" != no
; then :
13987 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13992 # Define HAVE_KINFO_GETFILE if kinfo_getfile is available.
13993 for ac_func
in kinfo_getfile
13995 ac_fn_c_check_func
"$LINENO" "kinfo_getfile" "ac_cv_func_kinfo_getfile"
13996 if test "x$ac_cv_func_kinfo_getfile" = xyes
; then :
13997 cat >>confdefs.h
<<_ACEOF
13998 #define HAVE_KINFO_GETFILE 1
14005 # Check for std::thread. This does not work on some platforms, like
14008 ac_cpp
='$CXXCPP $CPPFLAGS'
14009 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14010 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14011 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
14018 ac_cpp
='$CPP $CPPFLAGS'
14019 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14020 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14021 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14025 # We used to check for pthread.h first, but this fails if pthread.h
14026 # requires special compiler flags (e.g. on Tru64 or Sequent).
14027 # It gets checked for in the link test anyway.
14029 # First of all, check if the user has set any of the PTHREAD_LIBS,
14030 # etcetera environment variables, and if threads linking works using
14032 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
14033 ax_pthread_save_CC
="$CC"
14034 ax_pthread_save_CFLAGS
="$CFLAGS"
14035 ax_pthread_save_LIBS
="$LIBS"
14036 if test "x$PTHREAD_CC" != "x"; then :
14039 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
14040 LIBS
="$PTHREAD_LIBS $LIBS"
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
14042 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
14043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14044 /* end confdefs.h. */
14046 /* Override any GCC internal prototype to avoid an error.
14047 Use char because int might match the return type of a GCC
14048 builtin and then its argument prototype would still apply. */
14052 char pthread_join ();
14056 return pthread_join ();
14061 if ac_fn_c_try_link
"$LINENO"; then :
14064 rm -f core conftest.err conftest.
$ac_objext \
14065 conftest
$ac_exeext conftest.
$ac_ext
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14067 $as_echo "$ax_pthread_ok" >&6; }
14068 if test "x$ax_pthread_ok" = "xno"; then
14072 CC
="$ax_pthread_save_CC"
14073 CFLAGS
="$ax_pthread_save_CFLAGS"
14074 LIBS
="$ax_pthread_save_LIBS"
14077 # We must check for the threads library under a number of different
14078 # names; the ordering is very important because some systems
14079 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14080 # libraries is broken (non-POSIX).
14082 # Create a list of thread flags to try. Items starting with a "-" are
14083 # C compiler flags, and other items are library names, except for "none"
14084 # which indicates that we try without any flags at all, and "pthread-config"
14085 # which is a program returning the flags for the Pth emulation library.
14087 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14089 # The ordering *is* (sometimes) important. Some notes on the
14090 # individual items follow:
14092 # pthreads: AIX (must check this before -lpthread)
14093 # none: in case threads are in libc; should be tried before -Kthread and
14094 # other compiler flags to prevent continual compiler warnings
14095 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14096 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
14097 # (Note: HP C rejects this with "bad form for `-t' option")
14098 # -pthreads: Solaris/gcc (Note: HP C also rejects)
14099 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14100 # doesn't hurt to check since this sometimes defines pthreads and
14101 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
14102 # is present but should not be used directly; and before -mthreads,
14103 # because the compiler interprets this as "-mt" + "-hreads")
14104 # -mthreads: Mingw32/gcc, Lynx/gcc
14105 # pthread: Linux, etcetera
14106 # --thread-safe: KAI C++
14107 # pthread-config: use pthread-config program (for GNU Pth library)
14113 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14114 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14116 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
14121 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
14122 # multi-threading and also sets -lpthread."
14124 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
14129 # IBM z/OS requires a feature-test macro to be defined in order to
14130 # enable POSIX threads at all, so give the user a hint if this is
14131 # not set. (We don't define these ourselves, as they can affect
14132 # other portions of the system API in unpredictable ways.)
14134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14135 /* end confdefs.h. */
14137 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
14138 AX_PTHREAD_ZOS_MISSING
14142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14143 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
14145 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
14153 # On Solaris (at least, for some versions), libc contains stubbed
14154 # (non-functional) versions of the pthreads routines, so link-based
14155 # tests will erroneously succeed. (N.B.: The stubs are missing
14156 # pthread_cleanup_push, or rather a function called by this macro,
14157 # so we could check for that, but who knows whether they'll stub
14158 # that too in a future libc.) So we'll check first for the
14159 # standard Solaris way of linking pthreads (-mt -lpthread).
14161 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
14165 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
14167 if test "x$GCC" = "xyes"; then :
14168 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
14171 # The presence of a feature test macro requesting re-entrant function
14172 # definitions is, on some systems, a strong hint that pthreads support is
14173 # correctly enabled
14176 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
14177 ax_pthread_check_macro
="_REENTRANT"
14181 ax_pthread_check_macro
="_THREAD_SAFE"
14185 ax_pthread_check_macro
="--"
14188 if test "x$ax_pthread_check_macro" = "x--"; then :
14189 ax_pthread_check_cond
=0
14191 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
14194 # Are we compiling with Clang?
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
14197 $as_echo_n "checking whether $CC is Clang... " >&6; }
14198 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
14199 $as_echo_n "(cached) " >&6
14201 ax_cv_PTHREAD_CLANG
=no
14202 # Note that Autoconf sets GCC=yes for Clang as well as GCC
14203 if test "x$GCC" = "xyes"; then
14204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14205 /* end confdefs.h. */
14206 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
14207 # if defined(__clang__) && defined(__llvm__)
14208 AX_PTHREAD_CC_IS_CLANG
14212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14213 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
14214 ax_cv_PTHREAD_CLANG
=yes
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
14222 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
14223 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
14225 ax_pthread_clang_warning
=no
14227 # Clang needs special handling, because older versions handle the -pthread
14228 # option in a rather... idiosyncratic way
14230 if test "x$ax_pthread_clang" = "xyes"; then
14232 # Clang takes -pthread; it has never supported any other flag
14234 # (Note 1: This will need to be revisited if a system that Clang
14235 # supports has POSIX threads in a separate library. This tends not
14236 # to be the way of modern systems, but it's conceivable.)
14238 # (Note 2: On some systems, notably Darwin, -pthread is not needed
14239 # to get POSIX threads support; the API is always present and
14240 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
14241 # -pthread does define _REENTRANT, and while the Darwin headers
14242 # ignore this macro, third-party headers might not.)
14244 PTHREAD_CFLAGS
="-pthread"
14249 # However, older versions of Clang make a point of warning the user
14250 # that, in an invocation where only linking and no compilation is
14251 # taking place, the -pthread option has no effect ("argument unused
14252 # during compilation"). They expect -pthread to be passed in only
14253 # when source code is being compiled.
14255 # Problem is, this is at odds with the way Automake and most other
14256 # C build frameworks function, which is that the same flags used in
14257 # compilation (CFLAGS) are also used in linking. Many systems
14258 # supported by AX_PTHREAD require exactly this for POSIX threads
14259 # support, and in fact it is often not straightforward to specify a
14260 # flag that is used only in the compilation phase and not in
14261 # linking. Such a scenario is extremely rare in practice.
14263 # Even though use of the -pthread flag in linking would only print
14264 # a warning, this can be a nuisance for well-run software projects
14265 # that build with -Werror. So if the active version of Clang has
14266 # this misfeature, we search for an option to squash it.
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
14269 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
14270 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
14271 $as_echo_n "(cached) " >&6
14273 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
14274 # Create an alternate version of $ac_link that compiles and
14275 # links in two steps (.c -> .o, .o -> exe) instead of one
14276 # (.c -> exe), because the warning occurs only in the second
14278 ax_pthread_save_ac_link
="$ac_link"
14279 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
14280 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
14281 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
14282 ax_pthread_save_CFLAGS
="$CFLAGS"
14283 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
14284 if test "x$ax_pthread_try" = "xunknown"; then :
14287 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
14288 ac_link
="$ax_pthread_save_ac_link"
14289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14290 /* end confdefs.h. */
14291 int main(void){return 0;}
14293 if ac_fn_c_try_link
"$LINENO"; then :
14294 ac_link
="$ax_pthread_2step_ac_link"
14295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14296 /* end confdefs.h. */
14297 int main(void){return 0;}
14299 if ac_fn_c_try_link
"$LINENO"; then :
14302 rm -f core conftest.err conftest.
$ac_objext \
14303 conftest
$ac_exeext conftest.
$ac_ext
14306 rm -f core conftest.err conftest.
$ac_objext \
14307 conftest
$ac_exeext conftest.
$ac_ext
14309 ac_link
="$ax_pthread_save_ac_link"
14310 CFLAGS
="$ax_pthread_save_CFLAGS"
14311 if test "x$ax_pthread_try" = "x"; then :
14314 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
14318 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
14320 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
14322 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
14325 fi # $ax_pthread_clang = yes
14327 if test "x$ax_pthread_ok" = "xno"; then
14328 for ax_pthread_try_flag
in $ax_pthread_flags; do
14330 case $ax_pthread_try_flag in
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14333 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
14338 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
14339 PTHREAD_CFLAGS
="-mt"
14340 PTHREAD_LIBS
="-lpthread"
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
14345 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
14346 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
14350 # Extract the first word of "pthread-config", so it can be a program name with args.
14351 set dummy pthread-config
; ac_word
=$2
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14353 $as_echo_n "checking for $ac_word... " >&6; }
14354 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
14355 $as_echo_n "(cached) " >&6
14357 if test -n "$ax_pthread_config"; then
14358 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
14360 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14361 for as_dir
in $PATH
14364 test -z "$as_dir" && as_dir
=.
14365 for ac_exec_ext
in '' $ac_executable_extensions; do
14366 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14367 ac_cv_prog_ax_pthread_config
="yes"
14368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14375 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
14378 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
14379 if test -n "$ax_pthread_config"; then
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
14381 $as_echo "$ax_pthread_config" >&6; }
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14384 $as_echo "no" >&6; }
14388 if test "x$ax_pthread_config" = "xno"; then :
14391 PTHREAD_CFLAGS
="`pthread-config --cflags`"
14392 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
14397 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
14398 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
14402 ax_pthread_save_CFLAGS
="$CFLAGS"
14403 ax_pthread_save_LIBS
="$LIBS"
14404 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
14405 LIBS
="$PTHREAD_LIBS $LIBS"
14407 # Check for various functions. We must include pthread.h,
14408 # since some functions may be macros. (On the Sequent, we
14409 # need a special flag -Kthread to make this header compile.)
14410 # We check for pthread_join because it is in -lpthread on IRIX
14411 # while pthread_create is in libc. We check for pthread_attr_init
14412 # due to DEC craziness with -lpthreads. We check for
14413 # pthread_cleanup_push because it is one of the few pthread
14414 # functions on Solaris that doesn't have a non-functional libc stub.
14415 # We try pthread_create on general principles.
14417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14418 /* end confdefs.h. */
14419 #include <pthread.h>
14420 # if $ax_pthread_check_cond
14421 # error "$ax_pthread_check_macro must be defined"
14423 static void routine(void *a) { a = 0; }
14424 static void *start_routine(void *a) { return a; }
14428 pthread_t th; pthread_attr_t attr;
14429 pthread_create(&th, 0, start_routine, 0);
14430 pthread_join(th, 0);
14431 pthread_attr_init(&attr);
14432 pthread_cleanup_push(routine, 0);
14433 pthread_cleanup_pop(0) /* ; */
14438 if ac_fn_c_try_link
"$LINENO"; then :
14441 rm -f core conftest.err conftest.
$ac_objext \
14442 conftest
$ac_exeext conftest.
$ac_ext
14444 CFLAGS
="$ax_pthread_save_CFLAGS"
14445 LIBS
="$ax_pthread_save_LIBS"
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14448 $as_echo "$ax_pthread_ok" >&6; }
14449 if test "x$ax_pthread_ok" = "xyes"; then :
14458 # Various other checks:
14459 if test "x$ax_pthread_ok" = "xyes"; then
14460 ax_pthread_save_CFLAGS
="$CFLAGS"
14461 ax_pthread_save_LIBS
="$LIBS"
14462 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
14463 LIBS
="$PTHREAD_LIBS $LIBS"
14465 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14467 $as_echo_n "checking for joinable pthread attribute... " >&6; }
14468 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
14469 $as_echo_n "(cached) " >&6
14471 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
14472 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
14473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14474 /* end confdefs.h. */
14475 #include <pthread.h>
14479 int attr = $ax_pthread_attr; return attr /* ; */
14484 if ac_fn_c_try_link
"$LINENO"; then :
14485 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
14487 rm -f core conftest.err conftest.
$ac_objext \
14488 conftest
$ac_exeext conftest.
$ac_ext
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
14493 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
14494 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
14495 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
14496 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
14498 cat >>confdefs.h
<<_ACEOF
14499 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
14502 ax_pthread_joinable_attr_defined
=yes
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
14507 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
14508 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
14509 $as_echo_n "(cached) " >&6
14511 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
14514 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
14520 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
14521 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
14522 test "x$ax_pthread_special_flags_added" != "xyes"; then :
14523 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
14524 ax_pthread_special_flags_added
=yes
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
14528 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
14529 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
14530 $as_echo_n "(cached) " >&6
14532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14533 /* end confdefs.h. */
14534 #include <pthread.h>
14538 int i = PTHREAD_PRIO_INHERIT;
14543 if ac_fn_c_try_link
"$LINENO"; then :
14544 ax_cv_PTHREAD_PRIO_INHERIT
=yes
14546 ax_cv_PTHREAD_PRIO_INHERIT
=no
14548 rm -f core conftest.err conftest.
$ac_objext \
14549 conftest
$ac_exeext conftest.
$ac_ext
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
14553 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
14554 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
14555 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
14557 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
14559 ax_pthread_prio_inherit_defined
=yes
14563 CFLAGS
="$ax_pthread_save_CFLAGS"
14564 LIBS
="$ax_pthread_save_LIBS"
14566 # More AIX lossage: compile with *_r variant
14567 if test "x$GCC" != "xyes"; then
14571 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
14572 #handle absolute path differently from PATH based program lookup
14575 if as_fn_executable_p
${CC}_r
; then :
14576 PTHREAD_CC
="${CC}_r"
14579 for ac_prog
in ${CC}_r
14581 # Extract the first word of "$ac_prog", so it can be a program name with args.
14582 set dummy
$ac_prog; ac_word
=$2
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14584 $as_echo_n "checking for $ac_word... " >&6; }
14585 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
14586 $as_echo_n "(cached) " >&6
14588 if test -n "$PTHREAD_CC"; then
14589 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
14591 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14592 for as_dir
in $PATH
14595 test -z "$as_dir" && as_dir
=.
14596 for ac_exec_ext
in '' $ac_executable_extensions; do
14597 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14598 ac_cv_prog_PTHREAD_CC
="$ac_prog"
14599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14608 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
14609 if test -n "$PTHREAD_CC"; then
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14611 $as_echo "$PTHREAD_CC" >&6; }
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14614 $as_echo "no" >&6; }
14618 test -n "$PTHREAD_CC" && break
14620 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
14631 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
14637 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14638 if test "x$ax_pthread_ok" = "xyes"; then
14646 ac_cpp
='$CXXCPP $CPPFLAGS'
14647 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14648 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14649 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
14652 if test "$threads" = "yes"; then
14654 LIBS
="$PTHREAD_LIBS $LIBS"
14655 save_CXXFLAGS
="$CXXFLAGS"
14656 CXXFLAGS
="$PTHREAD_CFLAGS $save_CXXFLAGS"
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
14658 $as_echo_n "checking for std::thread... " >&6; }
14659 if ${gdb_cv_cxx_std_thread+:} false
; then :
14660 $as_echo_n "(cached) " >&6
14662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14663 /* end confdefs.h. */
14665 void callback() { }
14669 std::thread t(callback);
14674 if ac_fn_cxx_try_compile
"$LINENO"; then :
14675 gdb_cv_cxx_std_thread
=yes
14677 gdb_cv_cxx_std_thread
=no
14679 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
14682 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
14684 # This check must be here, while LIBS includes any necessary
14685 # threading library.
14686 for ac_func
in pthread_sigmask pthread_setname_np
14688 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14689 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14690 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14691 cat >>confdefs.h
<<_ACEOF
14692 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14700 CXXFLAGS
="$save_CXXFLAGS"
14702 if test "$gdb_cv_cxx_std_thread" = "yes"; then
14704 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
14708 ac_cpp
='$CPP $CPPFLAGS'
14709 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14710 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14711 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
14715 $as_echo_n "checking for sigsetjmp... " >&6; }
14716 if ${gdb_cv_func_sigsetjmp+:} false
; then :
14717 $as_echo_n "(cached) " >&6
14719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14720 /* end confdefs.h. */
14721 #include <setjmp.h>
14726 while (! sigsetjmp (env, 1))
14727 siglongjmp (env, 1);
14733 if ac_fn_c_try_compile
"$LINENO"; then :
14734 gdb_cv_func_sigsetjmp
=yes
14736 gdb_cv_func_sigsetjmp
=no
14739 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
14743 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
14744 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
14746 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
14751 # Check whether --with-intel_pt was given.
14752 if test "${with_intel_pt+set}" = set; then :
14753 withval
=$with_intel_pt;
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
14759 $as_echo_n "checking whether to use intel pt... " >&6; }
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
14761 $as_echo "$with_intel_pt" >&6; }
14763 if test "${with_intel_pt}" = no
; then
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
14765 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
14768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14769 /* end confdefs.h. */
14771 #include <linux/perf_event.h>
14772 #ifndef PERF_ATTR_SIZE_VER5
14777 if ac_fn_c_try_cpp
"$LINENO"; then :
14782 rm -f conftest.err conftest.i conftest.
$ac_ext
14783 if test "$perf_event" != yes; then
14784 if test "$with_intel_pt" = yes; then
14785 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
14788 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
14802 acl_save_prefix
="$prefix"
14803 prefix
="$acl_final_prefix"
14804 acl_save_exec_prefix
="$exec_prefix"
14805 exec_prefix
="$acl_final_exec_prefix"
14807 eval additional_includedir
=\"$includedir\"
14808 eval additional_libdir
=\"$libdir\"
14810 exec_prefix
="$acl_save_exec_prefix"
14811 prefix
="$acl_save_prefix"
14814 # Check whether --with-libipt-prefix was given.
14815 if test "${with_libipt_prefix+set}" = set; then :
14816 withval
=$with_libipt_prefix;
14817 if test "X$withval" = "Xno"; then
14820 if test "X$withval" = "X"; then
14822 acl_save_prefix
="$prefix"
14823 prefix
="$acl_final_prefix"
14824 acl_save_exec_prefix
="$exec_prefix"
14825 exec_prefix
="$acl_final_exec_prefix"
14827 eval additional_includedir
=\"$includedir\"
14828 eval additional_libdir
=\"$libdir\"
14830 exec_prefix
="$acl_save_exec_prefix"
14831 prefix
="$acl_save_prefix"
14834 additional_includedir
="$withval/include"
14835 additional_libdir
="$withval/lib"
14842 # Check whether --with-libipt-type was given.
14843 if test "${with_libipt_type+set}" = set; then :
14844 withval
=$with_libipt_type; with_libipt_type
=$withval
14846 with_libipt_type
=auto
14849 lib_type
=`eval echo \$with_libipt_type`
14856 names_already_handled
=
14857 names_next_round
='ipt '
14858 while test -n "$names_next_round"; do
14859 names_this_round
="$names_next_round"
14861 for name
in $names_this_round; do
14863 for n
in $names_already_handled; do
14864 if test "$n" = "$name"; then
14865 already_handled
=yes
14869 if test -z "$already_handled"; then
14870 names_already_handled
="$names_already_handled $name"
14871 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14872 eval value
=\"\
$HAVE_LIB$uppername\"
14873 if test -n "$value"; then
14874 if test "$value" = yes; then
14875 eval value
=\"\
$LIB$uppername\"
14876 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
14877 eval value
=\"\
$LTLIB$uppername\"
14878 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
14887 if test $use_additional = yes; then
14888 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
14889 found_dir
="$additional_libdir"
14890 found_so
="$additional_libdir/lib$name.$shlibext"
14891 if test -f "$additional_libdir/lib$name.la"; then
14892 found_la
="$additional_libdir/lib$name.la"
14894 elif test x
$lib_type != xshared
; then
14895 if test -f "$additional_libdir/lib$name.$libext"; then
14896 found_dir
="$additional_libdir"
14897 found_a
="$additional_libdir/lib$name.$libext"
14898 if test -f "$additional_libdir/lib$name.la"; then
14899 found_la
="$additional_libdir/lib$name.la"
14904 if test "X$found_dir" = "X"; then
14905 for x
in $LDFLAGS $LTLIBIPT; do
14907 acl_save_prefix
="$prefix"
14908 prefix
="$acl_final_prefix"
14909 acl_save_exec_prefix
="$exec_prefix"
14910 exec_prefix
="$acl_final_exec_prefix"
14912 exec_prefix
="$acl_save_exec_prefix"
14913 prefix
="$acl_save_prefix"
14917 dir
=`echo "X$x" | sed -e 's/^X-L//'`
14918 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
14920 found_so
="$dir/lib$name.$shlibext"
14921 if test -f "$dir/lib$name.la"; then
14922 found_la
="$dir/lib$name.la"
14924 elif test x
$lib_type != xshared
; then
14925 if test -f "$dir/lib$name.$libext"; then
14927 found_a
="$dir/lib$name.$libext"
14928 if test -f "$dir/lib$name.la"; then
14929 found_la
="$dir/lib$name.la"
14935 if test "X$found_dir" != "X"; then
14940 if test "X$found_dir" != "X"; then
14941 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
14942 if test "X$found_so" != "X"; then
14943 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
14944 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14947 for x
in $ltrpathdirs; do
14948 if test "X$x" = "X$found_dir"; then
14953 if test -z "$haveit"; then
14954 ltrpathdirs
="$ltrpathdirs $found_dir"
14956 if test "$hardcode_direct" = yes; then
14957 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14959 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
14960 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14962 for x
in $rpathdirs; do
14963 if test "X$x" = "X$found_dir"; then
14968 if test -z "$haveit"; then
14969 rpathdirs
="$rpathdirs $found_dir"
14973 for x
in $LDFLAGS $LIBIPT; do
14975 acl_save_prefix
="$prefix"
14976 prefix
="$acl_final_prefix"
14977 acl_save_exec_prefix
="$exec_prefix"
14978 exec_prefix
="$acl_final_exec_prefix"
14980 exec_prefix
="$acl_save_exec_prefix"
14981 prefix
="$acl_save_prefix"
14983 if test "X$x" = "X-L$found_dir"; then
14988 if test -z "$haveit"; then
14989 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
14991 if test "$hardcode_minus_L" != no
; then
14992 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14994 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
15000 if test "X$found_a" != "X"; then
15001 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
15003 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
15006 additional_includedir
=
15007 case "$found_dir" in
15009 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15010 additional_includedir
="$basedir/include"
15013 if test "X$additional_includedir" != "X"; then
15014 if test "X$additional_includedir" != "X/usr/include"; then
15016 if test "X$additional_includedir" = "X/usr/local/include"; then
15017 if test -n "$GCC"; then
15019 linux
*) haveit
=yes;;
15023 if test -z "$haveit"; then
15024 for x
in $CPPFLAGS $INCIPT; do
15026 acl_save_prefix
="$prefix"
15027 prefix
="$acl_final_prefix"
15028 acl_save_exec_prefix
="$exec_prefix"
15029 exec_prefix
="$acl_final_exec_prefix"
15031 exec_prefix
="$acl_save_exec_prefix"
15032 prefix
="$acl_save_prefix"
15034 if test "X$x" = "X-I$additional_includedir"; then
15039 if test -z "$haveit"; then
15040 if test -d "$additional_includedir"; then
15041 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
15047 if test -n "$found_la"; then
15048 save_libdir
="$libdir"
15049 case "$found_la" in
15050 */* |
*\\*) .
"$found_la" ;;
15051 *) .
"./$found_la" ;;
15053 libdir
="$save_libdir"
15054 for dep
in $dependency_libs; do
15057 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
15058 if test "X$additional_libdir" != "X/usr/lib"; then
15060 if test "X$additional_libdir" = "X/usr/local/lib"; then
15061 if test -n "$GCC"; then
15063 linux
*) haveit
=yes;;
15067 if test -z "$haveit"; then
15069 for x
in $LDFLAGS $LIBIPT; do
15071 acl_save_prefix
="$prefix"
15072 prefix
="$acl_final_prefix"
15073 acl_save_exec_prefix
="$exec_prefix"
15074 exec_prefix
="$acl_final_exec_prefix"
15076 exec_prefix
="$acl_save_exec_prefix"
15077 prefix
="$acl_save_prefix"
15079 if test "X$x" = "X-L$additional_libdir"; then
15084 if test -z "$haveit"; then
15085 if test -d "$additional_libdir"; then
15086 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
15090 for x
in $LDFLAGS $LTLIBIPT; do
15092 acl_save_prefix
="$prefix"
15093 prefix
="$acl_final_prefix"
15094 acl_save_exec_prefix
="$exec_prefix"
15095 exec_prefix
="$acl_final_exec_prefix"
15097 exec_prefix
="$acl_save_exec_prefix"
15098 prefix
="$acl_save_prefix"
15100 if test "X$x" = "X-L$additional_libdir"; then
15105 if test -z "$haveit"; then
15106 if test -d "$additional_libdir"; then
15107 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
15114 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
15115 if test "$enable_rpath" != no
; then
15117 for x
in $rpathdirs; do
15118 if test "X$x" = "X$dir"; then
15123 if test -z "$haveit"; then
15124 rpathdirs
="$rpathdirs $dir"
15127 for x
in $ltrpathdirs; do
15128 if test "X$x" = "X$dir"; then
15133 if test -z "$haveit"; then
15134 ltrpathdirs
="$ltrpathdirs $dir"
15139 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15142 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15145 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
15146 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
15152 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
15153 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
15154 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
15156 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
15157 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
15164 if test "X$rpathdirs" != "X"; then
15165 if test -n "$hardcode_libdir_separator"; then
15167 for found_dir
in $rpathdirs; do
15168 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15170 acl_save_libdir
="$libdir"
15172 eval flag
=\"$hardcode_libdir_flag_spec\"
15173 libdir
="$acl_save_libdir"
15174 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
15176 for found_dir
in $rpathdirs; do
15177 acl_save_libdir
="$libdir"
15178 libdir
="$found_dir"
15179 eval flag
=\"$hardcode_libdir_flag_spec\"
15180 libdir
="$acl_save_libdir"
15181 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
15185 if test "X$ltrpathdirs" != "X"; then
15186 for found_dir
in $ltrpathdirs; do
15187 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
15192 ac_save_CPPFLAGS
="$CPPFLAGS"
15194 for element
in $INCIPT; do
15196 for x
in $CPPFLAGS; do
15198 acl_save_prefix
="$prefix"
15199 prefix
="$acl_final_prefix"
15200 acl_save_exec_prefix
="$exec_prefix"
15201 exec_prefix
="$acl_final_exec_prefix"
15203 exec_prefix
="$acl_save_exec_prefix"
15204 prefix
="$acl_save_prefix"
15206 if test "X$x" = "X$element"; then
15211 if test -z "$haveit"; then
15212 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
15218 $as_echo_n "checking for libipt... " >&6; }
15219 if ${ac_cv_libipt+:} false
; then :
15220 $as_echo_n "(cached) " >&6
15223 ac_save_LIBS
="$LIBS"
15224 LIBS
="$LIBS $LIBIPT"
15225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15226 /* end confdefs.h. */
15227 #include "intel-pt.h"
15231 pt_insn_alloc_decoder (0);
15236 if ac_fn_c_try_link
"$LINENO"; then :
15241 rm -f core conftest.err conftest.
$ac_objext \
15242 conftest
$ac_exeext conftest.
$ac_ext
15243 LIBS
="$ac_save_LIBS"
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
15247 $as_echo "$ac_cv_libipt" >&6; }
15248 if test "$ac_cv_libipt" = yes; then
15251 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
15254 $as_echo_n "checking how to link with libipt... " >&6; }
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
15256 $as_echo "$LIBIPT" >&6; }
15259 CPPFLAGS
="$ac_save_CPPFLAGS"
15269 if test "$HAVE_LIBIPT" != yes; then
15270 if test "$with_intel_pt" = yes; then
15271 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
15274 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
15278 LIBS
="$LIBS $LIBIPT"
15279 for ac_func
in pt_insn_event
15281 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
15282 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
15283 cat >>confdefs.h
<<_ACEOF
15284 #define HAVE_PT_INSN_EVENT 1
15290 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
15292 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
15294 cat >>confdefs.h
<<_ACEOF
15295 #define HAVE_STRUCT_PT_INSN_ENABLED 1
15300 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
15302 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
15304 cat >>confdefs.h
<<_ACEOF
15305 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
15316 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
15318 for ac_header
in sys
/procfs.h
15320 ac_fn_c_check_header_mongrel
"$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
15321 if test "x$ac_cv_header_sys_procfs_h" = xyes
; then :
15322 cat >>confdefs.h
<<_ACEOF
15323 #define HAVE_SYS_PROCFS_H 1
15330 if test "$ac_cv_header_sys_procfs_h" = yes; then
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
15333 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
15334 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
15335 $as_echo_n "(cached) " >&6
15337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15338 /* end confdefs.h. */
15341 #include <sys/procfs.h>
15350 if ac_fn_c_try_compile
"$LINENO"; then :
15351 bfd_cv_have_sys_procfs_type_gregset_t
=yes
15353 bfd_cv_have_sys_procfs_type_gregset_t
=no
15356 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15359 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
15361 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
15365 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
15369 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
15370 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
15371 $as_echo_n "(cached) " >&6
15373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15374 /* end confdefs.h. */
15377 #include <sys/procfs.h>
15386 if ac_fn_c_try_compile
"$LINENO"; then :
15387 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
15389 bfd_cv_have_sys_procfs_type_fpregset_t
=no
15392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15395 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
15397 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
15401 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
15405 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
15406 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
15407 $as_echo_n "(cached) " >&6
15409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15410 /* end confdefs.h. */
15413 #include <sys/procfs.h>
15422 if ac_fn_c_try_compile
"$LINENO"; then :
15423 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
15425 bfd_cv_have_sys_procfs_type_prgregset_t
=no
15428 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15431 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
15433 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
15436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
15437 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
15441 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
15442 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
15443 $as_echo_n "(cached) " >&6
15445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15446 /* end confdefs.h. */
15449 #include <sys/procfs.h>
15458 if ac_fn_c_try_compile
"$LINENO"; then :
15459 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
15461 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
15464 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15467 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
15469 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
15473 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
15477 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
15478 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
15479 $as_echo_n "(cached) " >&6
15481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15482 /* end confdefs.h. */
15485 #include <sys/procfs.h>
15494 if ac_fn_c_try_compile
"$LINENO"; then :
15495 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
15497 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
15500 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15503 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
15505 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
15509 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
15513 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
15514 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
15515 $as_echo_n "(cached) " >&6
15517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15518 /* end confdefs.h. */
15521 #include <sys/procfs.h>
15530 if ac_fn_c_try_compile
"$LINENO"; then :
15531 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
15533 bfd_cv_have_sys_procfs_type_lwpid_t
=no
15536 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15539 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
15541 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
15545 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
15549 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
15550 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
15551 $as_echo_n "(cached) " >&6
15553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15554 /* end confdefs.h. */
15557 #include <sys/procfs.h>
15566 if ac_fn_c_try_compile
"$LINENO"; then :
15567 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
15569 bfd_cv_have_sys_procfs_type_psaddr_t
=no
15572 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15575 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
15577 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
15581 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
15585 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
15586 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
15587 $as_echo_n "(cached) " >&6
15589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15590 /* end confdefs.h. */
15593 #include <sys/procfs.h>
15597 elf_fpregset_t avar
15602 if ac_fn_c_try_compile
"$LINENO"; then :
15603 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
15605 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
15608 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15611 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
15613 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
15617 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
15622 # Check the return and argument types of ptrace.
15625 for ac_header
in sys
/ptrace.h ptrace.h
15627 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15628 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15629 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
15630 cat >>confdefs.h
<<_ACEOF
15631 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15639 gdb_ptrace_headers
='
15640 #include <sys/types.h>
15641 #if HAVE_SYS_PTRACE_H
15642 # include <sys/ptrace.h>
15645 # include <unistd.h>
15649 # Check return type. Varargs (used on GNU/Linux) conflict with the
15650 # empty argument list, so check for that explicitly.
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
15652 $as_echo_n "checking return type of ptrace... " >&6; }
15653 if ${gdb_cv_func_ptrace_ret+:} false
; then :
15654 $as_echo_n "(cached) " >&6
15656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15657 /* end confdefs.h. */
15658 Â $gdb_ptrace_headers
15662 extern long ptrace (enum __ptrace_request, ...);
15668 if ac_fn_c_try_compile
"$LINENO"; then :
15669 gdb_cv_func_ptrace_ret
='long'
15671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15672 /* end confdefs.h. */
15673 $gdb_ptrace_headers
15677 extern int ptrace ();
15683 if ac_fn_c_try_compile
"$LINENO"; then :
15684 gdb_cv_func_ptrace_ret
='int'
15686 gdb_cv_func_ptrace_ret
='long'
15689 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15692 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
15696 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
15699 cat >>confdefs.h
<<_ACEOF
15700 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
15704 # Check argument types.
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
15706 $as_echo_n "checking types of arguments for ptrace... " >&6; }
15707 if ${gdb_cv_func_ptrace_args+:} false
; then :
15708 $as_echo_n "(cached) " >&6
15710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15711 /* end confdefs.h. */
15712 $gdb_ptrace_headers
15716 extern long ptrace (enum __ptrace_request, ...);
15722 if ac_fn_c_try_compile
"$LINENO"; then :
15723 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
15725 for gdb_arg1
in 'int' 'long'; do
15726 for gdb_arg2
in 'pid_t' 'int' 'long'; do
15727 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
15728 for gdb_arg4
in 'int' 'long' 'void *'; do
15729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15730 /* end confdefs.h. */
15731 $gdb_ptrace_headers
15735 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
15741 if ac_fn_c_try_compile
"$LINENO"; then :
15742 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
15746 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15748 for gdb_arg5
in 'int *' 'int' 'long'; do
15749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15750 /* end confdefs.h. */
15751 $gdb_ptrace_headers
15755 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
15761 if ac_fn_c_try_compile
"$LINENO"; then :
15762 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
15766 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15772 # Provide a safe default value.
15773 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
15776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
15780 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
15782 ac_save_IFS
=$IFS; IFS
=','
15783 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
15787 cat >>confdefs.h
<<_ACEOF
15788 #define PTRACE_TYPE_ARG1 $1
15792 cat >>confdefs.h
<<_ACEOF
15793 #define PTRACE_TYPE_ARG3 $3
15797 cat >>confdefs.h
<<_ACEOF
15798 #define PTRACE_TYPE_ARG4 $4
15801 if test -n "$5"; then
15803 cat >>confdefs.h
<<_ACEOF
15804 #define PTRACE_TYPE_ARG5 $5
15810 if test "$cross_compiling" = no
; then
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
15812 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
15813 if ${ac_cv_func_setpgrp_void+:} false
; then :
15814 $as_echo_n "(cached) " >&6
15816 if test "$cross_compiling" = yes; then :
15817 as_fn_error $?
"cannot check setpgrp when cross compiling" "$LINENO" 5
15819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15820 /* end confdefs.h. */
15821 $ac_includes_default
15825 /* If this system has a BSD-style setpgrp which takes arguments,
15826 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
15827 exit successfully. */
15828 return setpgrp (1,1) != -1;
15833 if ac_fn_c_try_run
"$LINENO"; then :
15834 ac_cv_func_setpgrp_void
=no
15836 ac_cv_func_setpgrp_void
=yes
15838 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15839 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
15844 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
15845 if test $ac_cv_func_setpgrp_void = yes; then
15847 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
15853 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
15854 if ${ac_cv_func_setpgrp_void+:} false
; then :
15855 $as_echo_n "(cached) " >&6
15857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15858 /* end confdefs.h. */
15859 #include <unistd.h>
15863 if (setpgrp(1,1) == -1)
15872 if ac_fn_c_try_compile
"$LINENO"; then :
15873 ac_cv_func_setpgrp_void
=no
15875 ac_cv_func_setpgrp_void
=yes
15878 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
15882 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
15883 if test "$ac_cv_func_setpgrp_void" = yes; then
15884 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
15889 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
15890 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
15891 #include <sys/proc.h>
15894 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes
; then :
15896 cat >>confdefs.h
<<_ACEOF
15897 #define HAVE_STRUCT_THREAD_TD_PCB 1
15904 # See if <sys/lwp.h> defines `struct lwp`.
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
15906 $as_echo_n "checking for struct lwp... " >&6; }
15907 if ${gdb_cv_struct_lwp+:} false
; then :
15908 $as_echo_n "(cached) " >&6
15910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15911 /* end confdefs.h. */
15912 #include <sys/param.h>
15914 #include <sys/lwp.h>
15924 if ac_fn_c_try_compile
"$LINENO"; then :
15925 gdb_cv_struct_lwp
=yes
15927 gdb_cv_struct_lwp
=no
15930 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
15934 $as_echo "$gdb_cv_struct_lwp" >&6; }
15935 if test "$gdb_cv_struct_lwp" = yes; then
15937 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
15941 # See if <machine/reg.h> degines `struct reg'.
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
15943 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
15944 if ${gdb_cv_struct_reg+:} false
; then :
15945 $as_echo_n "(cached) " >&6
15947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15948 /* end confdefs.h. */
15949 #include <sys/types.h>
15950 #include <machine/reg.h>
15960 if ac_fn_c_try_compile
"$LINENO"; then :
15961 gdb_cv_struct_reg
=yes
15963 gdb_cv_struct_reg
=no
15966 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
15970 $as_echo "$gdb_cv_struct_reg" >&6; }
15971 if test "$gdb_cv_struct_reg" = yes; then
15973 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
15977 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
15978 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
15979 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
15980 #include <machine/reg.h>
15982 if test "x$ac_cv_member_struct_reg_r_fs" = xyes
; then :
15984 cat >>confdefs.h
<<_ACEOF
15985 #define HAVE_STRUCT_REG_R_FS 1
15990 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
15991 #include <machine/reg.h>
15993 if test "x$ac_cv_member_struct_reg_r_gs" = xyes
; then :
15995 cat >>confdefs.h
<<_ACEOF
15996 #define HAVE_STRUCT_REG_R_GS 1
16003 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
16005 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
16006 if ${gdb_cv_have_ptrace_getregs+:} false
; then :
16007 $as_echo_n "(cached) " >&6
16009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16010 /* end confdefs.h. */
16011 #include <sys/ptrace.h>
16020 if ac_fn_c_try_compile
"$LINENO"; then :
16021 gdb_cv_have_ptrace_getregs
=yes
16023 gdb_cv_have_ptrace_getregs
=no
16026 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
16031 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
16032 if test "$gdb_cv_have_ptrace_getregs" = yes; then
16034 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
16038 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
16040 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
16041 if ${gdb_cv_have_ptrace_getfpxregs+:} false
; then :
16042 $as_echo_n "(cached) " >&6
16044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16045 /* end confdefs.h. */
16046 #include <sys/ptrace.h>
16055 if ac_fn_c_try_compile
"$LINENO"; then :
16056 gdb_cv_have_ptrace_getfpxregs
=yes
16058 gdb_cv_have_ptrace_getfpxregs
=no
16061 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
16066 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
16067 if test "$gdb_cv_have_ptrace_getfpxregs" = yes; then
16069 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
16073 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
16075 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
16076 if ${gdb_cv_have_pt_getdbregs+:} false
; then :
16077 $as_echo_n "(cached) " >&6
16079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16080 /* end confdefs.h. */
16081 #include <sys/types.h>
16082 #include <sys/ptrace.h>
16092 if ac_fn_c_try_compile
"$LINENO"; then :
16093 gdb_cv_have_pt_getdbregs
=yes
16095 gdb_cv_have_pt_getdbregs
=no
16098 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
16103 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
16104 if test "$gdb_cv_have_pt_getdbregs" = yes; then
16106 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
16110 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
16112 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
16113 if ${gdb_cv_have_pt_getxmmregs+:} false
; then :
16114 $as_echo_n "(cached) " >&6
16116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16117 /* end confdefs.h. */
16118 #include <sys/types.h>
16119 #include <sys/ptrace.h>
16129 if ac_fn_c_try_compile
"$LINENO"; then :
16130 gdb_cv_have_pt_getxmmregs
=yes
16132 gdb_cv_have_pt_getxmmregs
=no
16135 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
16140 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
16141 if test "$gdb_cv_have_pt_getxmmregs" = yes; then
16143 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
16147 # See if <sys/ptrace.h> supports LWP names on FreeBSD
16148 # Older FreeBSD versions don't have the pl_tdname member of
16149 # `struct ptrace_lwpinfo'.
16150 ac_fn_c_check_member
"$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
16152 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes
; then :
16154 cat >>confdefs.h
<<_ACEOF
16155 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
16162 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
16163 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
16165 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>
16167 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes
; then :
16169 cat >>confdefs.h
<<_ACEOF
16170 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
16177 # Check if the compiler supports the `long long' type.
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
16180 $as_echo_n "checking for long long support in compiler... " >&6; }
16181 if ${gdb_cv_c_long_long+:} false
; then :
16182 $as_echo_n "(cached) " >&6
16184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16185 /* end confdefs.h. */
16186 extern long long foo;
16190 switch (foo & 2) { case 0: return 1; }
16195 if ac_fn_c_try_compile
"$LINENO"; then :
16196 gdb_cv_c_long_long
=yes
16198 gdb_cv_c_long_long
=no
16200 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
16203 $as_echo "$gdb_cv_c_long_long" >&6; }
16204 if test "$gdb_cv_c_long_long" != yes; then
16205 # libdecnumber requires long long.
16206 as_fn_error $?
"Compiler must support long long for GDB." "$LINENO" 5
16209 # Check if the compiler and runtime support printing long longs.
16211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
16212 $as_echo_n "checking for long long support in printf... " >&6; }
16213 if ${gdb_cv_printf_has_long_long+:} false
; then :
16214 $as_echo_n "(cached) " >&6
16216 if test "$cross_compiling" = yes; then :
16217 gdb_cv_printf_has_long_long
=no
16219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16220 /* end confdefs.h. */
16221 $ac_includes_default
16227 l = (l << 16) + 0x0123;
16228 l = (l << 16) + 0x4567;
16229 l = (l << 16) + 0x89ab;
16230 l = (l << 16) + 0xcdef;
16231 sprintf (buf, "0x%016llx", l);
16232 return (strcmp ("0x0123456789abcdef", buf));
16237 if ac_fn_c_try_run
"$LINENO"; then :
16238 gdb_cv_printf_has_long_long
=yes
16240 gdb_cv_printf_has_long_long
=no
16242 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16243 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
16248 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
16249 if test "$gdb_cv_printf_has_long_long" = yes; then
16251 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
16255 # Check if the compiler and runtime support printing decfloats.
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
16258 $as_echo_n "checking for decfloat support in printf... " >&6; }
16259 if ${gdb_cv_printf_has_decfloat+:} false
; then :
16260 $as_echo_n "(cached) " >&6
16262 if test "$cross_compiling" = yes; then :
16263 gdb_cv_printf_has_decfloat
=no
16265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16266 /* end confdefs.h. */
16267 $ac_includes_default
16272 _Decimal32 d32 = 1.2345df;
16273 _Decimal64 d64 = 1.2345dd;
16274 _Decimal128 d128 = 1.2345dl;
16275 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
16276 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
16281 if ac_fn_c_try_run
"$LINENO"; then :
16282 gdb_cv_printf_has_decfloat
=yes
16284 gdb_cv_printf_has_decfloat
=no
16286 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16287 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
16292 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
16293 if test "$gdb_cv_printf_has_decfloat" = yes; then
16295 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
16299 # Check if the compiler supports the `long double' type. We can't use
16300 # AC_C_LONG_DOUBLE because that one does additional checks on the
16301 # constants defined in <float.h> that fail on some systems,
16302 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
16305 $as_echo_n "checking for long double support in compiler... " >&6; }
16306 if ${gdb_cv_c_long_double+:} false
; then :
16307 $as_echo_n "(cached) " >&6
16309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16310 /* end confdefs.h. */
16313 if ac_fn_c_try_compile
"$LINENO"; then :
16314 gdb_cv_c_long_double
=yes
16316 gdb_cv_c_long_double
=no
16318 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
16321 $as_echo "$gdb_cv_c_long_double" >&6; }
16322 if test "$gdb_cv_c_long_double" = yes; then
16324 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
16328 # Check if the compiler and runtime support printing long doubles.
16330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
16331 $as_echo_n "checking for long double support in printf... " >&6; }
16332 if ${gdb_cv_printf_has_long_double+:} false
; then :
16333 $as_echo_n "(cached) " >&6
16335 if test "$cross_compiling" = yes; then :
16336 gdb_cv_printf_has_long_double
=no
16338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16339 /* end confdefs.h. */
16340 $ac_includes_default
16345 long double f = 3.141592653;
16346 sprintf (buf, "%Lg", f);
16347 return (strncmp ("3.14159", buf, 7));
16352 if ac_fn_c_try_run
"$LINENO"; then :
16353 gdb_cv_printf_has_long_double
=yes
16355 gdb_cv_printf_has_long_double
=no
16357 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16358 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
16363 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
16364 if test "$gdb_cv_printf_has_long_double" = yes; then
16366 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
16370 # Check if the compiler and runtime support scanning long doubles.
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
16373 $as_echo_n "checking for long double support in scanf... " >&6; }
16374 if ${gdb_cv_scanf_has_long_double+:} false
; then :
16375 $as_echo_n "(cached) " >&6
16377 if test "$cross_compiling" = yes; then :
16378 gdb_cv_scanf_has_long_double
=no
16380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16381 /* end confdefs.h. */
16386 char *buf = "3.141592653";
16388 sscanf (buf, "%Lg", &f);
16389 return !(f > 3.14159 && f < 3.14160);
16394 if ac_fn_c_try_run
"$LINENO"; then :
16395 gdb_cv_scanf_has_long_double
=yes
16397 gdb_cv_scanf_has_long_double
=no
16399 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16400 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
16405 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
16406 if test "$gdb_cv_scanf_has_long_double" = yes; then
16408 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
16414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
16415 $as_echo_n "checking for -bbigtoc option... " >&6; }
16416 if ${gdb_cv_bigtoc+:} false
; then :
16417 $as_echo_n "(cached) " >&6
16419 SAVE_LDFLAGS
=$LDFLAGS
16422 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
16423 *) gdb_cv_bigtoc
=-bbigtoc ;;
16426 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
16427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16428 /* end confdefs.h. */
16438 if ac_fn_c_try_link
"$LINENO"; then :
16444 rm -f core conftest.err conftest.
$ac_objext \
16445 conftest
$ac_exeext conftest.
$ac_ext
16446 LDFLAGS
="${SAVE_LDFLAGS}"
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
16450 $as_echo "$gdb_cv_bigtoc" >&6; }
16451 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
16456 $as_echo_n "checking for the dynamic export flag... " >&6; }
16458 if test "${gdb_native}" = yes; then
16459 # The dynamically loaded libthread_db needs access to symbols in the gdb
16460 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
16461 # may not be supported there.
16462 old_LDFLAGS
="$LDFLAGS"
16463 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
16464 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
16465 LDFLAGS
="$LDFLAGS $RDYNAMIC"
16466 if test "${have_libpython}" = no
; then
16467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16468 /* end confdefs.h. */
16478 if ac_fn_c_try_link
"$LINENO"; then :
16481 rm -f core conftest.err conftest.
$ac_objext \
16482 conftest
$ac_exeext conftest.
$ac_ext
16484 # Workaround http://bugs.python.org/issue4434 where static
16485 # libpythonX.Y.a would get its symbols required for
16486 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
16487 # Problem does not happen for the recommended libpythonX.Y.so linkage.
16489 # Note the workaround for Python
16490 # http://bugs.python.org/issue10112 earlier has removed
16491 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
16492 # here too, as otherwise it'd make this -Wl,--dynamic-list test
16494 old_CFLAGS
="$CFLAGS"
16495 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
16497 LIBS
="$LIBS $PYTHON_LIBS"
16498 old_CPPFLAGS
="$CPPFLAGS"
16499 CPPFLAGS
="$CPPFLAGS $PYTHON_CPPFLAGS"
16500 if test "$cross_compiling" = yes; then :
16503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16504 /* end confdefs.h. */
16505 #include "Python.h"
16511 err = PyRun_SimpleString ("import ctypes\n");
16513 return err == 0 ? 0 : 1;
16518 if ac_fn_c_try_run
"$LINENO"; then :
16521 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16522 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16526 CFLAGS
="$old_CFLAGS"
16527 CPPFLAGS
="$old_CPPFLAGS"
16529 LDFLAGS
="$old_LDFLAGS"
16531 if $dynamic_list; then
16532 found
="-Wl,--dynamic-list"
16533 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
16536 RDYNAMIC
="-rdynamic"
16539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
16540 $as_echo "$found" >&6; }
16543 if test "${build}" = "${host}" -a "${host}" = "${target}" ; then
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
16547 $as_echo_n "checking for AiX thread debugging library... " >&6; }
16548 if ${gdb_cv_have_aix_thread_debug+:} false
; then :
16549 $as_echo_n "(cached) " >&6
16551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16552 /* end confdefs.h. */
16553 #include <sys/pthdebug.h>
16557 #ifndef PTHDB_VERSION_3
16565 if ac_fn_c_try_compile
"$LINENO"; then :
16566 gdb_cv_have_aix_thread_debug
=yes
16568 gdb_cv_have_aix_thread_debug
=no
16571 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
16576 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
16577 if test "$gdb_cv_have_aix_thread_debug" = yes; then
16578 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
16579 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
16580 LIBS
="$LIBS -lpthdebug"
16582 # Older versions of AIX do not provide the declaration for
16583 # the getthrds function (it appears that it was introduced
16585 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
16587 if test "x$ac_cv_have_decl_getthrds" = xyes
; then :
16593 cat >>confdefs.h
<<_ACEOF
16594 #define HAVE_DECL_GETTHRDS $ac_have_decl
16603 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
16604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
16605 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
16606 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false
; then :
16607 $as_echo_n "(cached) " >&6
16609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16610 /* end confdefs.h. */
16611 #include <thread_db.h>
16615 int i = TD_NOTALLOC;
16621 if ac_fn_c_try_compile
"$LINENO"; then :
16622 gdb_cv_thread_db_h_has_td_notalloc
=yes
16624 gdb_cv_thread_db_h_has_td_notalloc
=no
16627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
16631 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
16634 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
16635 if ${gdb_cv_thread_db_h_has_td_version+:} false
; then :
16636 $as_echo_n "(cached) " >&6
16638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16639 /* end confdefs.h. */
16640 #include <thread_db.h>
16644 int i = TD_VERSION;
16650 if ac_fn_c_try_compile
"$LINENO"; then :
16651 gdb_cv_thread_db_h_has_td_version
=yes
16653 gdb_cv_thread_db_h_has_td_version
=no
16656 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
16660 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
16663 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
16664 if ${gdb_cv_thread_db_h_has_td_notls+:} false
; then :
16665 $as_echo_n "(cached) " >&6
16667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16668 /* end confdefs.h. */
16669 #include <thread_db.h>
16679 if ac_fn_c_try_compile
"$LINENO"; then :
16680 gdb_cv_thread_db_h_has_td_notls
=yes
16682 gdb_cv_thread_db_h_has_td_notls
=no
16685 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
16689 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
16691 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
16693 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
16696 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
16698 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
16701 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
16703 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
16716 cat >>confdefs.h
<<_ACEOF
16717 #define GDBINIT "$gdbinit"
16722 cat >>confdefs.h
<<_ACEOF
16723 #define GDBEARLYINIT ".gdbearlyinit"
16728 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
16729 # except that the argument to --with-sysroot is optional.
16730 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
16731 if test "x$with_sysroot" = xyes
; then
16732 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
16735 # Check whether --with-sysroot was given.
16736 if test "${with_sysroot+set}" = set; then :
16737 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
16739 TARGET_SYSTEM_ROOT
=
16743 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16744 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16745 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
16746 ac_define_dir
=`eval echo $ac_define_dir`
16748 cat >>confdefs.h
<<_ACEOF
16749 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
16755 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16756 if test "x$prefix" = xNONE
; then
16757 test_prefix
=/usr
/local
16759 test_prefix
=$prefix
16762 test_prefix
=$exec_prefix
16765 case ${ac_define_dir} in
16766 "${test_prefix}"|
"${test_prefix}/"*|\
16767 '${exec_prefix}'|
'${exec_prefix}/'*)
16772 cat >>confdefs.h
<<_ACEOF
16773 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
16780 # Check whether --with-system-gdbinit was given.
16781 if test "${with_system_gdbinit+set}" = set; then :
16782 withval
=$with_system_gdbinit;
16783 SYSTEM_GDBINIT
=$withval
16789 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16790 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16791 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
16792 ac_define_dir
=`eval echo $ac_define_dir`
16794 cat >>confdefs.h
<<_ACEOF
16795 #define SYSTEM_GDBINIT "$ac_define_dir"
16801 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16802 if test "x$prefix" = xNONE
; then
16803 test_prefix
=/usr
/local
16805 test_prefix
=$prefix
16808 test_prefix
=$exec_prefix
16811 case ${ac_define_dir} in
16812 "${test_prefix}"|
"${test_prefix}/"*|\
16813 '${exec_prefix}'|
'${exec_prefix}/'*)
16818 cat >>confdefs.h
<<_ACEOF
16819 #define SYSTEM_GDBINIT_RELOCATABLE $value
16826 # Check whether --with-system-gdbinit-dir was given.
16827 if test "${with_system_gdbinit_dir+set}" = set; then :
16828 withval
=$with_system_gdbinit_dir;
16829 SYSTEM_GDBINIT_DIR
=$withval
16831 SYSTEM_GDBINIT_DIR
=
16835 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16836 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16837 ac_define_dir
=`eval echo $SYSTEM_GDBINIT_DIR`
16838 ac_define_dir
=`eval echo $ac_define_dir`
16840 cat >>confdefs.h
<<_ACEOF
16841 #define SYSTEM_GDBINIT_DIR "$ac_define_dir"
16847 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16848 if test "x$prefix" = xNONE
; then
16849 test_prefix
=/usr
/local
16851 test_prefix
=$prefix
16854 test_prefix
=$exec_prefix
16857 case ${ac_define_dir} in
16858 "${test_prefix}"|
"${test_prefix}/"*|\
16859 '${exec_prefix}'|
'${exec_prefix}/'*)
16864 cat >>confdefs.h
<<_ACEOF
16865 #define SYSTEM_GDBINIT_DIR_RELOCATABLE $value
16872 # Check whether --enable-werror was given.
16873 if test "${enable_werror+set}" = set; then :
16874 enableval
=$enable_werror; case "${enableval}" in
16875 yes | y
) ERROR_ON_WARNING
="yes" ;;
16876 no | n
) ERROR_ON_WARNING
="no" ;;
16877 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
16882 # Enable -Werror by default when using gcc. Turn it off for releases.
16883 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
16884 ERROR_ON_WARNING
=yes
16888 if test "${ERROR_ON_WARNING}" = yes ; then
16889 WERROR_CFLAGS
="-Werror"
16892 # The options we'll try to enable.
16893 build_warnings
="-Wall -Wpointer-arith \
16894 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
16895 -Wno-switch -Wno-char-subscripts \
16896 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
16897 -Wno-sign-compare -Wno-error=maybe-uninitialized \
16898 -Wno-mismatched-tags \
16899 -Wno-error=deprecated-register \
16900 -Wsuggest-override \
16901 -Wimplicit-fallthrough=3 \
16902 -Wduplicated-cond \
16904 -Wdeprecated-copy \
16905 -Wdeprecated-copy-dtor \
16907 -Wmissing-declarations \
16908 -Wmissing-prototypes \
16909 -Wstrict-null-sentinel \
16914 # Enable -Wno-format by default when using gcc on mingw since many
16915 # GCC versions complain about %I64.
16916 build_warnings
="$build_warnings -Wno-format" ;;
16918 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
16919 # doesn't understand.
16920 build_warnings
="$build_warnings -Wno-unknown-pragmas"
16921 # Solaris 11 <unistd.h> marks vfork deprecated.
16922 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
16924 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
16925 # but there's a special case for this below.
16926 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
16929 # Check whether --enable-build-warnings was given.
16930 if test "${enable_build_warnings+set}" = set; then :
16931 enableval
=$enable_build_warnings; case "${enableval}" in
16933 no
) build_warnings
="-w";;
16934 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16935 build_warnings
="${build_warnings} ${t}";;
16936 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16937 build_warnings
="${t} ${build_warnings}";;
16938 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16940 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
16941 echo "Setting compiler warning flags = $build_warnings" 6>&1
16944 # Check whether --enable-gdb-build-warnings was given.
16945 if test "${enable_gdb_build_warnings+set}" = set; then :
16946 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
16948 no
) build_warnings
="-w";;
16949 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16950 build_warnings
="${build_warnings} ${t}";;
16951 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16952 build_warnings
="${t} ${build_warnings}";;
16953 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16955 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
16956 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
16960 # The set of warnings supported by a C++ compiler is not the same as
16961 # of the C compiler.
16963 ac_cpp
='$CXXCPP $CPPFLAGS'
16964 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16965 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16966 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
16970 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
16972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
16973 $as_echo_n "checking compiler warning flags... " >&6; }
16974 # Separate out the -Werror flag as some files just cannot be
16975 # compiled with it enabled.
16976 for w
in ${build_warnings}; do
16977 # GCC does not complain about -Wno-unknown-warning. Invert
16978 # and test -Wunknown-warning instead.
16981 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
16982 -Wformat-nonliteral)
16983 # gcc requires -Wformat before -Wformat-nonliteral
16984 # will work, so stick them together.
16993 -Werr*) WERROR_CFLAGS
=-Werror ;;
16995 # Check whether GCC accepts it.
16996 saved_CFLAGS
="$CFLAGS"
16997 CFLAGS
="$CFLAGS -Werror $wtest"
16998 saved_CXXFLAGS
="$CXXFLAGS"
16999 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
17000 if test "x$w" = "x-Wunused-variable"; then
17001 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
17002 # fixed in GCC 4.9. This test is derived from the gdb
17003 # source code that triggered this bug in GCC.
17004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17005 /* end confdefs.h. */
17006 struct scoped_restore_base {};
17007 struct scoped_restore_tmpl : public scoped_restore_base {
17008 ~scoped_restore_tmpl() {}
17013 const scoped_restore_base &b = scoped_restore_tmpl();
17019 if ac_fn_cxx_try_compile
"$LINENO"; then :
17020 WARN_CFLAGS
="${WARN_CFLAGS} $w"
17022 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17025 /* end confdefs.h. */
17035 if ac_fn_cxx_try_compile
"$LINENO"; then :
17036 WARN_CFLAGS
="${WARN_CFLAGS} $w"
17038 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17040 CFLAGS
="$saved_CFLAGS"
17041 CXXFLAGS
="$saved_CXXFLAGS"
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
17045 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
17051 ac_cpp='$CPP $CPPFLAGS'
17052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17058 # Check whether --enable-ubsan was given.
17059 if test "${enable_ubsan+set}" = set; then :
17060 enableval=$enable_ubsan;
17065 if test "x
$enable_ubsan" = xauto; then
17066 if $development; then
17071 ac_cpp='$CXXCPP $CPPFLAGS'
17072 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17073 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17074 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17076 if test "x
$enable_ubsan" = xyes; then
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
-fsanitize=undefined is accepted
" >&5
17078 $as_echo_n "checking whether
-fsanitize=undefined is accepted...
" >&6; }
17079 saved_CXXFLAGS="$CXXFLAGS"
17080 CXXFLAGS="$CXXFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
17081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17082 /* end confdefs.h. */
17092 if ac_fn_cxx_try_link "$LINENO"; then :
17098 rm -f core conftest.err conftest.$ac_objext \
17099 conftest$ac_exeext conftest.$ac_ext
17100 CXXFLAGS="$saved_CXXFLAGS"
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $enable_ubsan" >&5
17102 $as_echo "$enable_ubsan" >&6; }
17103 if test "x
$enable_ubsan" = xyes; then
17104 WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
17105 CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined
"
17109 ac_cpp='$CPP $CPPFLAGS'
17110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17116 # In the Cygwin environment, we need some additional flags.
17117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
17118 $as_echo_n "checking
for cygwin...
" >&6; }
17119 if ${gdb_cv_os_cygwin+:} false; then :
17120 $as_echo_n "(cached
) " >&6
17122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17123 /* end confdefs.h. */
17125 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
17129 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
17130 $EGREP "^lose$
" >/dev/null 2>&1; then :
17131 gdb_cv_os_cygwin=yes
17133 gdb_cv_os_cygwin=no
17138 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
17139 $as_echo "$gdb_cv_os_cygwin" >&6; }
17142 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
17144 *go32* ) SER_HARDWIRE=ser-go32.o ;;
17145 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
17146 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
17147 *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o
" ;;
17151 # libreadline needs libuser32.a in a cygwin environment
17153 if test x"$gdb_cv_os_cygwin" = xyes; then
17154 WIN32LIBS="-luser32"
17155 case "${target}" in
17156 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
17161 # The ser-tcp.c module requires sockets.
17162 # Note that WIN32APILIBS is set by GDB_AC_COMMON.
17163 WIN32LIBS="$WIN32LIBS $WIN32APILIBS"
17165 # Add ELF support to GDB, but only if BFD includes ELF support.
17168 OLD_LDFLAGS=$LDFLAGS
17170 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
17171 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
17172 # always want our bfd.
17173 CFLAGS="-I${srcdir}/..
/include
-I..
/bfd
-I${srcdir}/..
/bfd
$CFLAGS"
17174 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
17175 LDFLAGS="-L..
/bfd
-L..
/libiberty
$ZLIBDIR $LDFLAGS"
17176 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
17177 LIBS="-lbfd -liberty -lz $intl $LIBS"
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ELF support
in BFD
" >&5
17179 $as_echo_n "checking
for ELF support
in BFD...
" >&6; }
17180 if ${gdb_cv_var_elf+:} false; then :
17181 $as_echo_n "(cached
) " >&6
17183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17184 /* end confdefs.h. */
17185 #include <stdlib.h>
17186 #include <string.h>
17188 #include "elf-bfd.h
"
17192 return bfd_get_elf_phdr_upper_bound (NULL);
17198 if ac_fn_c_try_link "$LINENO"; then :
17204 rm -f core conftest.err conftest.$ac_objext \
17205 conftest$ac_exeext conftest.$ac_ext
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_var_elf" >&5
17209 $as_echo "$gdb_cv_var_elf" >&6; }
17211 LDFLAGS=$OLD_LDFLAGS
17213 if test "$gdb_cv_var_elf" = yes; then
17214 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o \
17215 gcore-elf.o elf-none-tdep.o
"
17217 $as_echo "#define HAVE_ELF 1" >>confdefs.h
17219 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
17220 if test "$plugins" = "yes"; then
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
17222 $as_echo_n "checking for library containing dlopen... " >&6; }
17223 if ${ac_cv_search_dlopen+:} false
; then :
17224 $as_echo_n "(cached) " >&6
17226 ac_func_search_save_LIBS
=$LIBS
17227 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17228 /* end confdefs.h. */
17230 /* Override any GCC internal prototype to avoid an error.
17231 Use char because int might match the return type of a GCC
17232 builtin and then its argument prototype would still apply. */
17245 for ac_lib
in '' dl
; do
17246 if test -z "$ac_lib"; then
17247 ac_res
="none required"
17250 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
17252 if ac_fn_c_try_link
"$LINENO"; then :
17253 ac_cv_search_dlopen
=$ac_res
17255 rm -f core conftest.err conftest.
$ac_objext \
17257 if ${ac_cv_search_dlopen+:} false
; then :
17261 if ${ac_cv_search_dlopen+:} false
; then :
17264 ac_cv_search_dlopen
=no
17266 rm conftest.
$ac_ext
17267 LIBS
=$ac_func_search_save_LIBS
17269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17270 $as_echo "$ac_cv_search_dlopen" >&6; }
17271 ac_res
=$ac_cv_search_dlopen
17272 if test "$ac_res" != no
; then :
17273 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
17280 # Add macho support to GDB, but only if BFD includes it.
17283 OLD_LDFLAGS
=$LDFLAGS
17285 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
17286 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
17287 # always want our bfd.
17288 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
17289 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
17290 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
17291 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
17292 LIBS
="-lbfd -liberty -lz $intl $LIBS"
17293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
17294 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
17295 if ${gdb_cv_var_macho+:} false
; then :
17296 $as_echo_n "(cached) " >&6
17298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17299 /* end confdefs.h. */
17300 #include <stdlib.h>
17301 #include <string.h>
17303 #include "mach-o.h"
17307 return bfd_mach_o_lookup_command (NULL, 0, NULL);
17313 if ac_fn_c_try_link
"$LINENO"; then :
17314 gdb_cv_var_macho
=yes
17316 gdb_cv_var_macho
=no
17319 rm -f core conftest.err conftest.
$ac_objext \
17320 conftest
$ac_exeext conftest.
$ac_ext
17323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
17324 $as_echo "$gdb_cv_var_macho" >&6; }
17326 LDFLAGS
=$OLD_LDFLAGS
17328 if test "$gdb_cv_var_macho" = yes; then
17329 CONFIG_OBS
="$CONFIG_OBS machoread.o"
17332 # Add any host-specific objects to GDB.
17333 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
17335 # If building on ELF, look for lzma support for embedded compressed debug info.
17336 if test "$gdb_cv_var_elf" = yes; then
17338 # Check whether --with-lzma was given.
17339 if test "${with_lzma+set}" = set; then :
17340 withval
=$with_lzma;
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
17346 $as_echo_n "checking whether to use lzma... " >&6; }
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
17348 $as_echo "$with_lzma" >&6; }
17350 if test "${with_lzma}" != no
; then
17361 acl_save_prefix
="$prefix"
17362 prefix
="$acl_final_prefix"
17363 acl_save_exec_prefix
="$exec_prefix"
17364 exec_prefix
="$acl_final_exec_prefix"
17366 eval additional_includedir
=\"$includedir\"
17367 eval additional_libdir
=\"$libdir\"
17369 exec_prefix
="$acl_save_exec_prefix"
17370 prefix
="$acl_save_prefix"
17373 # Check whether --with-liblzma-prefix was given.
17374 if test "${with_liblzma_prefix+set}" = set; then :
17375 withval
=$with_liblzma_prefix;
17376 if test "X$withval" = "Xno"; then
17379 if test "X$withval" = "X"; then
17381 acl_save_prefix
="$prefix"
17382 prefix
="$acl_final_prefix"
17383 acl_save_exec_prefix
="$exec_prefix"
17384 exec_prefix
="$acl_final_exec_prefix"
17386 eval additional_includedir
=\"$includedir\"
17387 eval additional_libdir
=\"$libdir\"
17389 exec_prefix
="$acl_save_exec_prefix"
17390 prefix
="$acl_save_prefix"
17393 additional_includedir
="$withval/include"
17394 additional_libdir
="$withval/lib"
17401 # Check whether --with-liblzma-type was given.
17402 if test "${with_liblzma_type+set}" = set; then :
17403 withval
=$with_liblzma_type; with_liblzma_type
=$withval
17405 with_liblzma_type
=auto
17408 lib_type
=`eval echo \$with_liblzma_type`
17415 names_already_handled
=
17416 names_next_round
='lzma '
17417 while test -n "$names_next_round"; do
17418 names_this_round
="$names_next_round"
17420 for name
in $names_this_round; do
17422 for n
in $names_already_handled; do
17423 if test "$n" = "$name"; then
17424 already_handled
=yes
17428 if test -z "$already_handled"; then
17429 names_already_handled
="$names_already_handled $name"
17430 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17431 eval value
=\"\
$HAVE_LIB$uppername\"
17432 if test -n "$value"; then
17433 if test "$value" = yes; then
17434 eval value
=\"\
$LIB$uppername\"
17435 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
17436 eval value
=\"\
$LTLIB$uppername\"
17437 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
17446 if test $use_additional = yes; then
17447 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
17448 found_dir
="$additional_libdir"
17449 found_so
="$additional_libdir/lib$name.$shlibext"
17450 if test -f "$additional_libdir/lib$name.la"; then
17451 found_la
="$additional_libdir/lib$name.la"
17453 elif test x
$lib_type != xshared
; then
17454 if test -f "$additional_libdir/lib$name.$libext"; then
17455 found_dir
="$additional_libdir"
17456 found_a
="$additional_libdir/lib$name.$libext"
17457 if test -f "$additional_libdir/lib$name.la"; then
17458 found_la
="$additional_libdir/lib$name.la"
17463 if test "X$found_dir" = "X"; then
17464 for x
in $LDFLAGS $LTLIBLZMA; do
17466 acl_save_prefix
="$prefix"
17467 prefix
="$acl_final_prefix"
17468 acl_save_exec_prefix
="$exec_prefix"
17469 exec_prefix
="$acl_final_exec_prefix"
17471 exec_prefix
="$acl_save_exec_prefix"
17472 prefix
="$acl_save_prefix"
17476 dir
=`echo "X$x" | sed -e 's/^X-L//'`
17477 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
17479 found_so
="$dir/lib$name.$shlibext"
17480 if test -f "$dir/lib$name.la"; then
17481 found_la
="$dir/lib$name.la"
17483 elif test x
$lib_type != xshared
; then
17484 if test -f "$dir/lib$name.$libext"; then
17486 found_a
="$dir/lib$name.$libext"
17487 if test -f "$dir/lib$name.la"; then
17488 found_la
="$dir/lib$name.la"
17494 if test "X$found_dir" != "X"; then
17499 if test "X$found_dir" != "X"; then
17500 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
17501 if test "X$found_so" != "X"; then
17502 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
17503 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17506 for x
in $ltrpathdirs; do
17507 if test "X$x" = "X$found_dir"; then
17512 if test -z "$haveit"; then
17513 ltrpathdirs
="$ltrpathdirs $found_dir"
17515 if test "$hardcode_direct" = yes; then
17516 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17518 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
17519 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17521 for x
in $rpathdirs; do
17522 if test "X$x" = "X$found_dir"; then
17527 if test -z "$haveit"; then
17528 rpathdirs
="$rpathdirs $found_dir"
17532 for x
in $LDFLAGS $LIBLZMA; do
17534 acl_save_prefix
="$prefix"
17535 prefix
="$acl_final_prefix"
17536 acl_save_exec_prefix
="$exec_prefix"
17537 exec_prefix
="$acl_final_exec_prefix"
17539 exec_prefix
="$acl_save_exec_prefix"
17540 prefix
="$acl_save_prefix"
17542 if test "X$x" = "X-L$found_dir"; then
17547 if test -z "$haveit"; then
17548 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
17550 if test "$hardcode_minus_L" != no
; then
17551 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17553 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
17559 if test "X$found_a" != "X"; then
17560 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
17562 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
17565 additional_includedir
=
17566 case "$found_dir" in
17568 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17569 additional_includedir
="$basedir/include"
17572 if test "X$additional_includedir" != "X"; then
17573 if test "X$additional_includedir" != "X/usr/include"; then
17575 if test "X$additional_includedir" = "X/usr/local/include"; then
17576 if test -n "$GCC"; then
17578 linux
*) haveit
=yes;;
17582 if test -z "$haveit"; then
17583 for x
in $CPPFLAGS $INCLZMA; do
17585 acl_save_prefix
="$prefix"
17586 prefix
="$acl_final_prefix"
17587 acl_save_exec_prefix
="$exec_prefix"
17588 exec_prefix
="$acl_final_exec_prefix"
17590 exec_prefix
="$acl_save_exec_prefix"
17591 prefix
="$acl_save_prefix"
17593 if test "X$x" = "X-I$additional_includedir"; then
17598 if test -z "$haveit"; then
17599 if test -d "$additional_includedir"; then
17600 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
17606 if test -n "$found_la"; then
17607 save_libdir
="$libdir"
17608 case "$found_la" in
17609 */* |
*\\*) .
"$found_la" ;;
17610 *) .
"./$found_la" ;;
17612 libdir
="$save_libdir"
17613 for dep
in $dependency_libs; do
17616 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
17617 if test "X$additional_libdir" != "X/usr/lib"; then
17619 if test "X$additional_libdir" = "X/usr/local/lib"; then
17620 if test -n "$GCC"; then
17622 linux
*) haveit
=yes;;
17626 if test -z "$haveit"; then
17628 for x
in $LDFLAGS $LIBLZMA; do
17630 acl_save_prefix
="$prefix"
17631 prefix
="$acl_final_prefix"
17632 acl_save_exec_prefix
="$exec_prefix"
17633 exec_prefix
="$acl_final_exec_prefix"
17635 exec_prefix
="$acl_save_exec_prefix"
17636 prefix
="$acl_save_prefix"
17638 if test "X$x" = "X-L$additional_libdir"; then
17643 if test -z "$haveit"; then
17644 if test -d "$additional_libdir"; then
17645 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
17649 for x
in $LDFLAGS $LTLIBLZMA; do
17651 acl_save_prefix
="$prefix"
17652 prefix
="$acl_final_prefix"
17653 acl_save_exec_prefix
="$exec_prefix"
17654 exec_prefix
="$acl_final_exec_prefix"
17656 exec_prefix
="$acl_save_exec_prefix"
17657 prefix
="$acl_save_prefix"
17659 if test "X$x" = "X-L$additional_libdir"; then
17664 if test -z "$haveit"; then
17665 if test -d "$additional_libdir"; then
17666 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
17673 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
17674 if test "$enable_rpath" != no
; then
17676 for x
in $rpathdirs; do
17677 if test "X$x" = "X$dir"; then
17682 if test -z "$haveit"; then
17683 rpathdirs
="$rpathdirs $dir"
17686 for x
in $ltrpathdirs; do
17687 if test "X$x" = "X$dir"; then
17692 if test -z "$haveit"; then
17693 ltrpathdirs
="$ltrpathdirs $dir"
17698 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17701 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17704 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
17705 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
17711 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
17712 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
17713 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
17715 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l:lib$name.$libext"
17716 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l:lib$name.$libext"
17723 if test "X$rpathdirs" != "X"; then
17724 if test -n "$hardcode_libdir_separator"; then
17726 for found_dir
in $rpathdirs; do
17727 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17729 acl_save_libdir
="$libdir"
17731 eval flag
=\"$hardcode_libdir_flag_spec\"
17732 libdir
="$acl_save_libdir"
17733 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
17735 for found_dir
in $rpathdirs; do
17736 acl_save_libdir
="$libdir"
17737 libdir
="$found_dir"
17738 eval flag
=\"$hardcode_libdir_flag_spec\"
17739 libdir
="$acl_save_libdir"
17740 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
17744 if test "X$ltrpathdirs" != "X"; then
17745 for found_dir
in $ltrpathdirs; do
17746 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
17751 ac_save_CPPFLAGS
="$CPPFLAGS"
17753 for element
in $INCLZMA; do
17755 for x
in $CPPFLAGS; do
17757 acl_save_prefix
="$prefix"
17758 prefix
="$acl_final_prefix"
17759 acl_save_exec_prefix
="$exec_prefix"
17760 exec_prefix
="$acl_final_exec_prefix"
17762 exec_prefix
="$acl_save_exec_prefix"
17763 prefix
="$acl_save_prefix"
17765 if test "X$x" = "X$element"; then
17770 if test -z "$haveit"; then
17771 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
17777 $as_echo_n "checking for liblzma... " >&6; }
17778 if ${ac_cv_liblzma+:} false
; then :
17779 $as_echo_n "(cached) " >&6
17782 ac_save_LIBS
="$LIBS"
17783 LIBS
="$LIBS $LIBLZMA"
17784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17785 /* end confdefs.h. */
17790 lzma_index_iter iter;
17791 lzma_index_iter_init (&iter, 0);
17792 lzma_mf_is_supported (LZMA_MF_HC3);
17797 if ac_fn_c_try_link
"$LINENO"; then :
17802 rm -f core conftest.err conftest.
$ac_objext \
17803 conftest
$ac_exeext conftest.
$ac_ext
17804 LIBS
="$ac_save_LIBS"
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
17808 $as_echo "$ac_cv_liblzma" >&6; }
17809 if test "$ac_cv_liblzma" = yes; then
17812 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
17814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
17815 $as_echo_n "checking how to link with liblzma... " >&6; }
17816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
17817 $as_echo "$LIBLZMA" >&6; }
17820 CPPFLAGS
="$ac_save_CPPFLAGS"
17830 if test "$HAVE_LIBLZMA" != yes; then
17831 if test "$with_lzma" = yes; then
17832 as_fn_error $?
"missing liblzma for --with-lzma" "$LINENO" 5
17838 LIBGUI
="../libgui/src/libgui.a"
17839 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
17848 *-*-cygwin* |
*-*-mingw* )
17857 if test "${enable_gdbtk}" = "yes"; then
17859 # Gdbtk must have an absolute path to srcdir in order to run
17860 # properly when not installed.
17863 GDBTK_SRC_DIR
=`pwd`
17868 # Ok, lets find the tcl configuration
17869 # First, look for one uninstalled.
17870 # the alternative search directory is invoked by --with-tcl
17873 if test x
"${no_tcl}" = x
; then
17874 # we reset no_tcl in case something fails here
17877 # Check whether --with-tcl was given.
17878 if test "${with_tcl+set}" = set; then :
17879 withval
=$with_tcl; with_tclconfig
=${withval}
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
17883 $as_echo_n "checking for Tcl configuration... " >&6; }
17884 if ${ac_cv_c_tclconfig+:} false
; then :
17885 $as_echo_n "(cached) " >&6
17889 # First check to see if --with-tcl was specified.
17891 *-*-cygwin*) platDir
="win" ;;
17892 *) platDir
="unix" ;;
17894 if test x
"${with_tclconfig}" != x
; then
17895 if test -f "${with_tclconfig}/tclConfig.sh" ; then
17896 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
17898 as_fn_error $?
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
17902 # then check for a private Tcl installation
17903 if test x
"${ac_cv_c_tclconfig}" = x
; then
17906 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17907 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
17908 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
17910 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17911 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
17912 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
17914 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17915 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
17916 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
17917 if test -f "$i/$platDir/tclConfig.sh" ; then
17918 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
17924 # on Darwin, check in Framework installation locations
17925 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
17926 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
17927 `ls -d /Library/Frameworks 2>/dev/null` \
17928 `ls -d /Network/Library/Frameworks 2>/dev/null` \
17929 `ls -d /System/Library/Frameworks 2>/dev/null` \
17931 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
17932 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
17938 # check in a few common install locations
17939 if test x
"${ac_cv_c_tclconfig}" = x
; then
17940 for i
in `ls -d ${libdir} 2>/dev/null` \
17941 `ls -d ${exec_prefix}/lib 2>/dev/null` \
17942 `ls -d ${prefix}/lib 2>/dev/null` \
17943 `ls -d /usr/local/lib 2>/dev/null` \
17944 `ls -d /usr/contrib/lib 2>/dev/null` \
17945 `ls -d /usr/lib 2>/dev/null` \
17947 if test -f "$i/tclConfig.sh" ; then
17948 ac_cv_c_tclconfig
=`(cd $i; pwd)`
17954 # check in a few other private locations
17955 if test x
"${ac_cv_c_tclconfig}" = x
; then
17958 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17959 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
17960 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
17961 if test -f "$i/$platDir/tclConfig.sh" ; then
17962 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
17971 if test x
"${ac_cv_c_tclconfig}" = x
; then
17972 TCL_BIN_DIR
="# no Tcl configs found"
17973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
17974 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
17977 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
17979 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
17984 # If $no_tk is nonempty, then we can't do Tk, and there is no
17985 # point to doing Tcl.
17988 # Ok, lets find the tk configuration
17989 # First, look for one uninstalled.
17990 # the alternative search directory is invoked by --with-tk
17993 if test x
"${no_tk}" = x
; then
17994 # we reset no_tk in case something fails here
17997 # Check whether --with-tk was given.
17998 if test "${with_tk+set}" = set; then :
17999 withval
=$with_tk; with_tkconfig
=${withval}
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
18003 $as_echo_n "checking for Tk configuration... " >&6; }
18004 if ${ac_cv_c_tkconfig+:} false
; then :
18005 $as_echo_n "(cached) " >&6
18009 # First check to see if --with-tkconfig was specified.
18010 if test x
"${with_tkconfig}" != x
; then
18011 if test -f "${with_tkconfig}/tkConfig.sh" ; then
18012 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
18014 as_fn_error $?
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
18018 # then check for a private Tk library
18020 *-*-cygwin*) platDir
="win" ;;
18021 *) platDir
="unix" ;;
18023 if test x
"${ac_cv_c_tkconfig}" = x
; then
18026 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
18027 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
18028 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
18030 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
18031 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
18032 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
18034 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
18035 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
18036 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
18037 if test -f "$i/$platDir/tkConfig.sh" ; then
18038 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
18044 # on Darwin, check in Framework installation locations
18045 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
18046 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
18047 `ls -d /Library/Frameworks 2>/dev/null` \
18048 `ls -d /Network/Library/Frameworks 2>/dev/null` \
18049 `ls -d /System/Library/Frameworks 2>/dev/null` \
18051 if test -f "$i/Tk.framework/tkConfig.sh" ; then
18052 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
18058 # check in a few common install locations
18059 if test x
"${ac_cv_c_tkconfig}" = x
; then
18060 for i
in `ls -d ${libdir} 2>/dev/null` \
18061 `ls -d ${exec_prefix}/lib 2>/dev/null` \
18062 `ls -d ${prefix}/lib 2>/dev/null` \
18063 `ls -d /usr/local/lib 2>/dev/null` \
18064 `ls -d /usr/contrib/lib 2>/dev/null` \
18065 `ls -d /usr/lib 2>/dev/null` \
18067 if test -f "$i/tkConfig.sh" ; then
18068 ac_cv_c_tkconfig
=`(cd $i; pwd)`
18073 # check in a few other private locations
18074 if test x
"${ac_cv_c_tkconfig}" = x
; then
18077 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
18078 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
18079 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
18080 if test -f "$i/$platDir/tkConfig.sh" ; then
18081 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
18090 if test x
"${ac_cv_c_tkconfig}" = x
; then
18091 TK_BIN_DIR
="# no Tk configs found"
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
18093 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
18096 TK_BIN_DIR
=${ac_cv_c_tkconfig}
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
18098 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
18103 if test -z "${no_tcl}" -a -z "${no_tk}"; then
18105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
18106 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
18108 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
18110 $as_echo "loading" >&6; }
18111 .
${TCL_BIN_DIR}/tclConfig.sh
18113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
18114 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
18117 # eval is required to do the TCL_DBGX substitution
18118 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
18119 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
18121 # If the TCL_BIN_DIR is the build directory (not the install directory),
18122 # then set the common variable name to the value of the build variables.
18123 # For example, the variable TCL_LIB_SPEC will be set to the value
18124 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
18125 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
18126 # installed and uninstalled version of Tcl.
18127 if test -f "${TCL_BIN_DIR}/Makefile" ; then
18128 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
18129 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
18130 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
18131 elif test "`uname -s`" = "Darwin"; then
18132 # If Tcl was built as a framework, attempt to use the libraries
18133 # from the framework at the given location so that linking works
18134 # against Tcl.framework installed in an arbitrary location.
18135 case ${TCL_DEFS} in
18137 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
18138 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
18139 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
18140 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
18141 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
18146 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
18147 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
18148 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
18154 # eval is required to do the TCL_DBGX substitution
18155 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
18156 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
18157 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
18158 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
18174 # Check for in-tree tcl
18181 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
18185 # Find Tcl private headers
18186 if test x
"${intree}" = xno
; then
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
18189 $as_echo_n "checking for Tcl private headers... " >&6; }
18191 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
18192 if test -f ${dir}/tclInt.h
; then
18196 if test x
"${private_dir}" = x
; then
18197 as_fn_error $?
"could not find private Tcl headers" "$LINENO" 5
18199 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
18200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
18201 $as_echo "${private_dir}" >&6; }
18204 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
18205 TCL_LIBRARY
="${TCL_LIB_SPEC}"
18208 # If building tcl in the same src tree, private headers
18209 # are not needed, but we need to be sure to use the right
18211 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
18212 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
18213 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
18221 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
18223 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
18225 $as_echo "loading" >&6; }
18226 .
${TK_BIN_DIR}/tkConfig.sh
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
18229 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
18232 # eval is required to do the TK_DBGX substitution
18233 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
18234 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
18236 # If the TK_BIN_DIR is the build directory (not the install directory),
18237 # then set the common variable name to the value of the build variables.
18238 # For example, the variable TK_LIB_SPEC will be set to the value
18239 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
18240 # instead of TK_BUILD_LIB_SPEC since it will work with both an
18241 # installed and uninstalled version of Tcl.
18242 if test -f "${TK_BIN_DIR}/Makefile" ; then
18243 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
18244 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
18245 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
18246 elif test "`uname -s`" = "Darwin"; then
18247 # If Tk was built as a framework, attempt to use the libraries
18248 # from the framework at the given location so that linking works
18249 # against Tk.framework installed in an arbitrary location.
18252 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
18253 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
18254 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
18255 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
18256 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
18261 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
18262 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
18263 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
18269 # eval is required to do the TK_DBGX substitution
18270 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
18271 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
18272 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
18273 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
18288 # Check for in-tree Tk
18290 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
18294 # Find Tk private headers
18295 if test x
"${intree}" = xno
; then
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
18298 $as_echo_n "checking for Tk private headers... " >&6; }
18300 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
18301 if test -f ${dir}/tkInt.h
; then
18305 if test x
"${private_dir}" = x
; then
18306 as_fn_error $?
"could not find Tk private headers" "$LINENO" 5
18308 TK_PRIVATE_INCLUDE
="-I${private_dir}"
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
18310 $as_echo "${private_dir}" >&6; }
18313 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
18314 TK_LIBRARY
=${TK_LIB_SPEC}
18317 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
18318 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
18319 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
18326 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
18328 # Include some libraries that Tcl and Tk want.
18329 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
18330 # Yes, the ordering seems wrong here. But it isn't.
18331 # TK_LIBS is the list of libraries that need to be linked
18332 # after Tcl/Tk. Note that this isn't put into LIBS. If it
18333 # were in LIBS then any link tests after this point would
18334 # try to include things like `$(LIBGUI)', which wouldn't work.
18335 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
18337 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
18338 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
18339 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
18340 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
18341 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
18342 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
18343 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
18345 if test x
"$gdb_cv_os_cygwin" = xyes
; then
18346 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
18347 WIN32LDAPP
="-Wl,--subsystem,console"
18348 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
18351 subdirs
="$subdirs gdbtk"
18363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
18364 $as_echo_n "checking for X... " >&6; }
18367 # Check whether --with-x was given.
18368 if test "${with_x+set}" = set; then :
18372 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18373 if test "x$with_x" = xno
; then
18374 # The user explicitly disabled X.
18377 case $x_includes,$x_libraries in #(
18378 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
18379 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
18380 $as_echo_n "(cached) " >&6
18382 # One or both of the vars are not set, and there is no cached value.
18383 ac_x_includes
=no ac_x_libraries
=no
18384 rm -f -r conftest.dir
18385 if mkdir conftest.dir
; then
18387 cat >Imakefile
<<'_ACEOF'
18389 @echo incroot='${INCROOT}'
18391 @echo usrlibdir='${USRLIBDIR}'
18393 @echo libdir='${LIBDIR}'
18395 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
18396 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
18397 for ac_var
in incroot usrlibdir libdir
; do
18398 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18400 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18401 for ac_extension
in a so sl dylib la dll
; do
18402 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18403 test -f "$ac_im_libdir/libX11.$ac_extension"; then
18404 ac_im_usrlibdir
=$ac_im_libdir; break
18407 # Screen out bogus values from the imake configuration. They are
18408 # bogus both because they are the default anyway, and because
18409 # using them would break gcc on systems where it needs fixed includes.
18410 case $ac_im_incroot in
18411 /usr
/include
) ac_x_includes
= ;;
18412 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
18414 case $ac_im_usrlibdir in
18415 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
18416 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
18420 rm -f -r conftest.dir
18423 # Standard set of common directories for X headers.
18424 # Check X11 before X11Rn because it is often a symlink to the current release.
18438 /usr/local/X11/include
18439 /usr/local/X11R7/include
18440 /usr/local/X11R6/include
18441 /usr/local/X11R5/include
18442 /usr/local/X11R4/include
18444 /usr/local/include/X11
18445 /usr/local/include/X11R7
18446 /usr/local/include/X11R6
18447 /usr/local/include/X11R5
18448 /usr/local/include/X11R4
18452 /usr/XFree86/include/X11
18456 /usr/unsupported/include
18457 /usr/athena/include
18458 /usr/local/x11r5/include
18459 /usr/lpp/Xamples/include
18461 /usr/openwin/include
18462 /usr/openwin/share/include'
18464 if test "$ac_x_includes" = no
; then
18465 # Guess where to find include files, by looking for Xlib.h.
18466 # First, try using that file with no special directory specified.
18467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18468 /* end confdefs.h. */
18469 #include <X11/Xlib.h>
18471 if ac_fn_c_try_cpp
"$LINENO"; then :
18472 # We can compile using X headers with no special include directory.
18475 for ac_dir
in $ac_x_header_dirs; do
18476 if test -r "$ac_dir/X11/Xlib.h"; then
18477 ac_x_includes
=$ac_dir
18482 rm -f conftest.err conftest.i conftest.
$ac_ext
18483 fi # $ac_x_includes = no
18485 if test "$ac_x_libraries" = no
; then
18486 # Check for the libraries.
18487 # See if we find them without any special options.
18488 # Don't add to $LIBS permanently.
18491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18492 /* end confdefs.h. */
18493 #include <X11/Xlib.h>
18502 if ac_fn_c_try_link
"$LINENO"; then :
18504 # We can link X programs with no special library path.
18508 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18510 # Don't even attempt the hair of trying to link an X program!
18511 for ac_extension
in a so sl dylib la dll
; do
18512 if test -r "$ac_dir/libX11.$ac_extension"; then
18513 ac_x_libraries
=$ac_dir
18519 rm -f core conftest.err conftest.
$ac_objext \
18520 conftest
$ac_exeext conftest.
$ac_ext
18521 fi # $ac_x_libraries = no
18523 case $ac_x_includes,$ac_x_libraries in #(
18524 no
,* |
*,no |
*\'*)
18525 # Didn't find X, or a directory has "'" in its name.
18526 ac_cv_have_x
="have_x=no";; #(
18528 # Record where we found X for the cache.
18529 ac_cv_have_x
="have_x=yes\
18530 ac_x_includes='$ac_x_includes'\
18531 ac_x_libraries='$ac_x_libraries'"
18537 eval "$ac_cv_have_x"
18540 if test "$have_x" != yes; then
18541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
18542 $as_echo "$have_x" >&6; }
18545 # If each of the values was on the command line, it overrides each guess.
18546 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
18547 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
18548 # Update the cache value to reflect the command line values.
18549 ac_cv_have_x
="have_x=yes\
18550 ac_x_includes='$x_includes'\
18551 ac_x_libraries='$x_libraries'"
18552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
18553 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
18557 # Unlike the sim directory, whether a simulator is linked is controlled by
18558 # presence of a gdb_sim definition in the target configure.tgt entry.
18559 # This code just checks for a few cases where we'd like to ignore those
18560 # definitions, even when they're present in the '.mt' file. These cases
18561 # are when --disable-sim is specified, or if the simulator directory is
18562 # not part of the source tree.
18564 # Check whether --enable-sim was given.
18565 if test "${enable_sim+set}" = set; then :
18566 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
18567 echo "enableval = ${enableval}";
18568 case "${enableval}" in
18569 yes) ignore_sim
=false
;;
18570 no
) ignore_sim
=true
;;
18571 *) ignore_sim
=false
;;
18578 if test ! -d "${srcdir}/../sim"; then
18584 if test "${ignore_sim}" = "false"; then
18585 if test x
"${gdb_sim}" != x
; then
18587 SIM_OBS
="remote-sim.o"
18589 $as_echo "#define WITH_SIM 1" >>confdefs.h
18592 # Some tdep code should only be compiled in when the ppc sim is
18593 # built. PR sim/13418.
18597 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
18617 # List of host floatformats.
18619 cat >>confdefs.h
<<_ACEOF
18620 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
18624 cat >>confdefs.h
<<_ACEOF
18625 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
18629 cat >>confdefs.h
<<_ACEOF
18630 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
18634 # target_subdir is used by the testsuite to find the target libraries.
18636 if test "${host}" != "${target}"; then
18637 target_subdir
="${target_alias}/"
18641 # Import nat definitions.
18642 nat_makefile_frag
=/dev
/null
18643 if test "${gdb_native}" = "yes"; then
18644 .
${srcdir}/configure.nat
18645 nativefile
=$NAT_FILE
18658 if test x
"${gdb_osabi}" != x
; then
18660 cat >>confdefs.h
<<_ACEOF
18661 #define GDB_OSABI_DEFAULT $gdb_osabi
18666 # Check for babeltrace and babeltrace-ctf
18668 # Check whether --with-babeltrace was given.
18669 if test "${with_babeltrace+set}" = set; then :
18670 withval
=$with_babeltrace;
18672 with_babeltrace
=auto
18675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
18676 $as_echo_n "checking whether to use babeltrace... " >&6; }
18677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
18678 $as_echo "$with_babeltrace" >&6; }
18680 if test "x$with_babeltrace" = "xno"; then
18681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
18682 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
18684 # Append -Werror to CFLAGS so that configure can catch the warning
18685 # "assignment from incompatible pointer type", which is related to
18686 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
18687 # in GDB, while babeltrace 1.0.3 is broken.
18688 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
18689 # safe to save and restore CFLAGS here.
18690 saved_CFLAGS
=$CFLAGS
18691 CFLAGS
="$CFLAGS -Werror"
18702 acl_save_prefix
="$prefix"
18703 prefix
="$acl_final_prefix"
18704 acl_save_exec_prefix
="$exec_prefix"
18705 exec_prefix
="$acl_final_exec_prefix"
18707 eval additional_includedir
=\"$includedir\"
18708 eval additional_libdir
=\"$libdir\"
18710 exec_prefix
="$acl_save_exec_prefix"
18711 prefix
="$acl_save_prefix"
18714 # Check whether --with-libbabeltrace-prefix was given.
18715 if test "${with_libbabeltrace_prefix+set}" = set; then :
18716 withval
=$with_libbabeltrace_prefix;
18717 if test "X$withval" = "Xno"; then
18720 if test "X$withval" = "X"; then
18722 acl_save_prefix
="$prefix"
18723 prefix
="$acl_final_prefix"
18724 acl_save_exec_prefix
="$exec_prefix"
18725 exec_prefix
="$acl_final_exec_prefix"
18727 eval additional_includedir
=\"$includedir\"
18728 eval additional_libdir
=\"$libdir\"
18730 exec_prefix
="$acl_save_exec_prefix"
18731 prefix
="$acl_save_prefix"
18734 additional_includedir
="$withval/include"
18735 additional_libdir
="$withval/lib"
18742 # Check whether --with-libbabeltrace-type was given.
18743 if test "${with_libbabeltrace_type+set}" = set; then :
18744 withval
=$with_libbabeltrace_type; with_libbabeltrace_type
=$withval
18746 with_libbabeltrace_type
=auto
18749 lib_type
=`eval echo \$with_libbabeltrace_type`
18756 names_already_handled
=
18757 names_next_round
='babeltrace babeltrace-ctf'
18758 while test -n "$names_next_round"; do
18759 names_this_round
="$names_next_round"
18761 for name
in $names_this_round; do
18763 for n
in $names_already_handled; do
18764 if test "$n" = "$name"; then
18765 already_handled
=yes
18769 if test -z "$already_handled"; then
18770 names_already_handled
="$names_already_handled $name"
18771 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18772 eval value
=\"\
$HAVE_LIB$uppername\"
18773 if test -n "$value"; then
18774 if test "$value" = yes; then
18775 eval value
=\"\
$LIB$uppername\"
18776 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
18777 eval value
=\"\
$LTLIB$uppername\"
18778 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
18787 if test $use_additional = yes; then
18788 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18789 found_dir
="$additional_libdir"
18790 found_so
="$additional_libdir/lib$name.$shlibext"
18791 if test -f "$additional_libdir/lib$name.la"; then
18792 found_la
="$additional_libdir/lib$name.la"
18794 elif test x
$lib_type != xshared
; then
18795 if test -f "$additional_libdir/lib$name.$libext"; then
18796 found_dir
="$additional_libdir"
18797 found_a
="$additional_libdir/lib$name.$libext"
18798 if test -f "$additional_libdir/lib$name.la"; then
18799 found_la
="$additional_libdir/lib$name.la"
18804 if test "X$found_dir" = "X"; then
18805 for x
in $LDFLAGS $LTLIBBABELTRACE; do
18807 acl_save_prefix
="$prefix"
18808 prefix
="$acl_final_prefix"
18809 acl_save_exec_prefix
="$exec_prefix"
18810 exec_prefix
="$acl_final_exec_prefix"
18812 exec_prefix
="$acl_save_exec_prefix"
18813 prefix
="$acl_save_prefix"
18817 dir
=`echo "X$x" | sed -e 's/^X-L//'`
18818 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18820 found_so
="$dir/lib$name.$shlibext"
18821 if test -f "$dir/lib$name.la"; then
18822 found_la
="$dir/lib$name.la"
18824 elif test x
$lib_type != xshared
; then
18825 if test -f "$dir/lib$name.$libext"; then
18827 found_a
="$dir/lib$name.$libext"
18828 if test -f "$dir/lib$name.la"; then
18829 found_la
="$dir/lib$name.la"
18835 if test "X$found_dir" != "X"; then
18840 if test "X$found_dir" != "X"; then
18841 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
18842 if test "X$found_so" != "X"; then
18843 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
18844 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18847 for x
in $ltrpathdirs; do
18848 if test "X$x" = "X$found_dir"; then
18853 if test -z "$haveit"; then
18854 ltrpathdirs
="$ltrpathdirs $found_dir"
18856 if test "$hardcode_direct" = yes; then
18857 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18859 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
18860 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18862 for x
in $rpathdirs; do
18863 if test "X$x" = "X$found_dir"; then
18868 if test -z "$haveit"; then
18869 rpathdirs
="$rpathdirs $found_dir"
18873 for x
in $LDFLAGS $LIBBABELTRACE; do
18875 acl_save_prefix
="$prefix"
18876 prefix
="$acl_final_prefix"
18877 acl_save_exec_prefix
="$exec_prefix"
18878 exec_prefix
="$acl_final_exec_prefix"
18880 exec_prefix
="$acl_save_exec_prefix"
18881 prefix
="$acl_save_prefix"
18883 if test "X$x" = "X-L$found_dir"; then
18888 if test -z "$haveit"; then
18889 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
18891 if test "$hardcode_minus_L" != no
; then
18892 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18894 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
18900 if test "X$found_a" != "X"; then
18901 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
18903 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
18906 additional_includedir
=
18907 case "$found_dir" in
18909 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18910 additional_includedir
="$basedir/include"
18913 if test "X$additional_includedir" != "X"; then
18914 if test "X$additional_includedir" != "X/usr/include"; then
18916 if test "X$additional_includedir" = "X/usr/local/include"; then
18917 if test -n "$GCC"; then
18919 linux
*) haveit
=yes;;
18923 if test -z "$haveit"; then
18924 for x
in $CPPFLAGS $INCBABELTRACE; do
18926 acl_save_prefix
="$prefix"
18927 prefix
="$acl_final_prefix"
18928 acl_save_exec_prefix
="$exec_prefix"
18929 exec_prefix
="$acl_final_exec_prefix"
18931 exec_prefix
="$acl_save_exec_prefix"
18932 prefix
="$acl_save_prefix"
18934 if test "X$x" = "X-I$additional_includedir"; then
18939 if test -z "$haveit"; then
18940 if test -d "$additional_includedir"; then
18941 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
18947 if test -n "$found_la"; then
18948 save_libdir
="$libdir"
18949 case "$found_la" in
18950 */* |
*\\*) .
"$found_la" ;;
18951 *) .
"./$found_la" ;;
18953 libdir
="$save_libdir"
18954 for dep
in $dependency_libs; do
18957 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
18958 if test "X$additional_libdir" != "X/usr/lib"; then
18960 if test "X$additional_libdir" = "X/usr/local/lib"; then
18961 if test -n "$GCC"; then
18963 linux
*) haveit
=yes;;
18967 if test -z "$haveit"; then
18969 for x
in $LDFLAGS $LIBBABELTRACE; do
18971 acl_save_prefix
="$prefix"
18972 prefix
="$acl_final_prefix"
18973 acl_save_exec_prefix
="$exec_prefix"
18974 exec_prefix
="$acl_final_exec_prefix"
18976 exec_prefix
="$acl_save_exec_prefix"
18977 prefix
="$acl_save_prefix"
18979 if test "X$x" = "X-L$additional_libdir"; then
18984 if test -z "$haveit"; then
18985 if test -d "$additional_libdir"; then
18986 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
18990 for x
in $LDFLAGS $LTLIBBABELTRACE; do
18992 acl_save_prefix
="$prefix"
18993 prefix
="$acl_final_prefix"
18994 acl_save_exec_prefix
="$exec_prefix"
18995 exec_prefix
="$acl_final_exec_prefix"
18997 exec_prefix
="$acl_save_exec_prefix"
18998 prefix
="$acl_save_prefix"
19000 if test "X$x" = "X-L$additional_libdir"; then
19005 if test -z "$haveit"; then
19006 if test -d "$additional_libdir"; then
19007 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
19014 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
19015 if test "$enable_rpath" != no
; then
19017 for x
in $rpathdirs; do
19018 if test "X$x" = "X$dir"; then
19023 if test -z "$haveit"; then
19024 rpathdirs
="$rpathdirs $dir"
19027 for x
in $ltrpathdirs; do
19028 if test "X$x" = "X$dir"; then
19033 if test -z "$haveit"; then
19034 ltrpathdirs
="$ltrpathdirs $dir"
19039 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19042 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19045 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
19046 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
19052 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
19053 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
19054 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
19056 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l:lib$name.$libext"
19057 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l:lib$name.$libext"
19064 if test "X$rpathdirs" != "X"; then
19065 if test -n "$hardcode_libdir_separator"; then
19067 for found_dir
in $rpathdirs; do
19068 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
19070 acl_save_libdir
="$libdir"
19072 eval flag
=\"$hardcode_libdir_flag_spec\"
19073 libdir
="$acl_save_libdir"
19074 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
19076 for found_dir
in $rpathdirs; do
19077 acl_save_libdir
="$libdir"
19078 libdir
="$found_dir"
19079 eval flag
=\"$hardcode_libdir_flag_spec\"
19080 libdir
="$acl_save_libdir"
19081 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
19085 if test "X$ltrpathdirs" != "X"; then
19086 for found_dir
in $ltrpathdirs; do
19087 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
19092 ac_save_CPPFLAGS
="$CPPFLAGS"
19094 for element
in $INCBABELTRACE; do
19096 for x
in $CPPFLAGS; do
19098 acl_save_prefix
="$prefix"
19099 prefix
="$acl_final_prefix"
19100 acl_save_exec_prefix
="$exec_prefix"
19101 exec_prefix
="$acl_final_exec_prefix"
19103 exec_prefix
="$acl_save_exec_prefix"
19104 prefix
="$acl_save_prefix"
19106 if test "X$x" = "X$element"; then
19111 if test -z "$haveit"; then
19112 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
19117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
19118 $as_echo_n "checking for libbabeltrace... " >&6; }
19119 if ${ac_cv_libbabeltrace+:} false
; then :
19120 $as_echo_n "(cached) " >&6
19123 ac_save_LIBS
="$LIBS"
19124 LIBS
="$LIBS $LIBBABELTRACE"
19125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19126 /* end confdefs.h. */
19127 #include <babeltrace/babeltrace.h>
19128 #include <babeltrace/ctf/events.h>
19129 #include <babeltrace/ctf/iterator.h>
19133 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
19134 struct bt_ctf_event *event = NULL;
19135 const struct bt_definition *scope;
19137 pos->type = BT_SEEK_BEGIN;
19138 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
19139 scope = bt_ctf_get_top_level_scope (event,
19140 BT_STREAM_EVENT_HEADER);
19141 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
19147 if ac_fn_c_try_link
"$LINENO"; then :
19148 ac_cv_libbabeltrace
=yes
19150 ac_cv_libbabeltrace
=no
19152 rm -f core conftest.err conftest.
$ac_objext \
19153 conftest
$ac_exeext conftest.
$ac_ext
19154 LIBS
="$ac_save_LIBS"
19157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
19158 $as_echo "$ac_cv_libbabeltrace" >&6; }
19159 if test "$ac_cv_libbabeltrace" = yes; then
19160 HAVE_LIBBABELTRACE
=yes
19162 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
19164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
19165 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
19166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
19167 $as_echo "$LIBBABELTRACE" >&6; }
19169 HAVE_LIBBABELTRACE
=no
19170 CPPFLAGS
="$ac_save_CPPFLAGS"
19180 CFLAGS
=$saved_CFLAGS
19182 if test "$HAVE_LIBBABELTRACE" != yes; then
19183 if test "$with_babeltrace" = yes; then
19184 as_fn_error $?
"babeltrace is missing or unusable" "$LINENO" 5
19186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
19187 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
19194 # Check whether --with-xxhash was given.
19195 if test "${with_xxhash+set}" = set; then :
19196 withval
=$with_xxhash;
19202 # Check whether --enable-libctf was given.
19203 if test "${enable_libctf+set}" = set; then :
19204 enableval
=$enable_libctf;
19205 case "$enableval" in
19207 *) as_fn_error $?
"Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
19215 if test x
${enable_static} = xno
; then
19216 LIBCTF
="-Wl,--rpath,../libctf/.libs ../libctf/.libs/libctf.so"
19217 CTF_DEPS
="../libctf/.libs/libctf.so"
19219 LIBCTF
="../libctf/.libs/libctf.a"
19222 if test "${enable_libctf}" = yes; then
19224 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
19234 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
19237 if test "x$with_xxhash" != "xno"; then
19248 acl_save_prefix
="$prefix"
19249 prefix
="$acl_final_prefix"
19250 acl_save_exec_prefix
="$exec_prefix"
19251 exec_prefix
="$acl_final_exec_prefix"
19253 eval additional_includedir
=\"$includedir\"
19254 eval additional_libdir
=\"$libdir\"
19256 exec_prefix
="$acl_save_exec_prefix"
19257 prefix
="$acl_save_prefix"
19260 # Check whether --with-libxxhash-prefix was given.
19261 if test "${with_libxxhash_prefix+set}" = set; then :
19262 withval
=$with_libxxhash_prefix;
19263 if test "X$withval" = "Xno"; then
19266 if test "X$withval" = "X"; then
19268 acl_save_prefix
="$prefix"
19269 prefix
="$acl_final_prefix"
19270 acl_save_exec_prefix
="$exec_prefix"
19271 exec_prefix
="$acl_final_exec_prefix"
19273 eval additional_includedir
=\"$includedir\"
19274 eval additional_libdir
=\"$libdir\"
19276 exec_prefix
="$acl_save_exec_prefix"
19277 prefix
="$acl_save_prefix"
19280 additional_includedir
="$withval/include"
19281 additional_libdir
="$withval/lib"
19288 # Check whether --with-libxxhash-type was given.
19289 if test "${with_libxxhash_type+set}" = set; then :
19290 withval
=$with_libxxhash_type; with_libxxhash_type
=$withval
19292 with_libxxhash_type
=auto
19295 lib_type
=`eval echo \$with_libxxhash_type`
19302 names_already_handled
=
19303 names_next_round
='xxhash '
19304 while test -n "$names_next_round"; do
19305 names_this_round
="$names_next_round"
19307 for name
in $names_this_round; do
19309 for n
in $names_already_handled; do
19310 if test "$n" = "$name"; then
19311 already_handled
=yes
19315 if test -z "$already_handled"; then
19316 names_already_handled
="$names_already_handled $name"
19317 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
19318 eval value
=\"\
$HAVE_LIB$uppername\"
19319 if test -n "$value"; then
19320 if test "$value" = yes; then
19321 eval value
=\"\
$LIB$uppername\"
19322 test -z "$value" || LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$value"
19323 eval value
=\"\
$LTLIB$uppername\"
19324 test -z "$value" || LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$value"
19333 if test $use_additional = yes; then
19334 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
19335 found_dir
="$additional_libdir"
19336 found_so
="$additional_libdir/lib$name.$shlibext"
19337 if test -f "$additional_libdir/lib$name.la"; then
19338 found_la
="$additional_libdir/lib$name.la"
19340 elif test x
$lib_type != xshared
; then
19341 if test -f "$additional_libdir/lib$name.$libext"; then
19342 found_dir
="$additional_libdir"
19343 found_a
="$additional_libdir/lib$name.$libext"
19344 if test -f "$additional_libdir/lib$name.la"; then
19345 found_la
="$additional_libdir/lib$name.la"
19350 if test "X$found_dir" = "X"; then
19351 for x
in $LDFLAGS $LTLIBXXHASH; do
19353 acl_save_prefix
="$prefix"
19354 prefix
="$acl_final_prefix"
19355 acl_save_exec_prefix
="$exec_prefix"
19356 exec_prefix
="$acl_final_exec_prefix"
19358 exec_prefix
="$acl_save_exec_prefix"
19359 prefix
="$acl_save_prefix"
19363 dir
=`echo "X$x" | sed -e 's/^X-L//'`
19364 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
19366 found_so
="$dir/lib$name.$shlibext"
19367 if test -f "$dir/lib$name.la"; then
19368 found_la
="$dir/lib$name.la"
19370 elif test x
$lib_type != xshared
; then
19371 if test -f "$dir/lib$name.$libext"; then
19373 found_a
="$dir/lib$name.$libext"
19374 if test -f "$dir/lib$name.la"; then
19375 found_la
="$dir/lib$name.la"
19381 if test "X$found_dir" != "X"; then
19386 if test "X$found_dir" != "X"; then
19387 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$found_dir -l$name"
19388 if test "X$found_so" != "X"; then
19389 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
19390 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19393 for x
in $ltrpathdirs; do
19394 if test "X$x" = "X$found_dir"; then
19399 if test -z "$haveit"; then
19400 ltrpathdirs
="$ltrpathdirs $found_dir"
19402 if test "$hardcode_direct" = yes; then
19403 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19405 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
19406 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19408 for x
in $rpathdirs; do
19409 if test "X$x" = "X$found_dir"; then
19414 if test -z "$haveit"; then
19415 rpathdirs
="$rpathdirs $found_dir"
19419 for x
in $LDFLAGS $LIBXXHASH; do
19421 acl_save_prefix
="$prefix"
19422 prefix
="$acl_final_prefix"
19423 acl_save_exec_prefix
="$exec_prefix"
19424 exec_prefix
="$acl_final_exec_prefix"
19426 exec_prefix
="$acl_save_exec_prefix"
19427 prefix
="$acl_save_prefix"
19429 if test "X$x" = "X-L$found_dir"; then
19434 if test -z "$haveit"; then
19435 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir"
19437 if test "$hardcode_minus_L" != no
; then
19438 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19440 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
19446 if test "X$found_a" != "X"; then
19447 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_a"
19449 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir -l$name"
19452 additional_includedir
=
19453 case "$found_dir" in
19455 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
19456 additional_includedir
="$basedir/include"
19459 if test "X$additional_includedir" != "X"; then
19460 if test "X$additional_includedir" != "X/usr/include"; then
19462 if test "X$additional_includedir" = "X/usr/local/include"; then
19463 if test -n "$GCC"; then
19465 linux
*) haveit
=yes;;
19469 if test -z "$haveit"; then
19470 for x
in $CPPFLAGS $INCXXHASH; do
19472 acl_save_prefix
="$prefix"
19473 prefix
="$acl_final_prefix"
19474 acl_save_exec_prefix
="$exec_prefix"
19475 exec_prefix
="$acl_final_exec_prefix"
19477 exec_prefix
="$acl_save_exec_prefix"
19478 prefix
="$acl_save_prefix"
19480 if test "X$x" = "X-I$additional_includedir"; then
19485 if test -z "$haveit"; then
19486 if test -d "$additional_includedir"; then
19487 INCXXHASH
="${INCXXHASH}${INCXXHASH:+ }-I$additional_includedir"
19493 if test -n "$found_la"; then
19494 save_libdir
="$libdir"
19495 case "$found_la" in
19496 */* |
*\\*) .
"$found_la" ;;
19497 *) .
"./$found_la" ;;
19499 libdir
="$save_libdir"
19500 for dep
in $dependency_libs; do
19503 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
19504 if test "X$additional_libdir" != "X/usr/lib"; then
19506 if test "X$additional_libdir" = "X/usr/local/lib"; then
19507 if test -n "$GCC"; then
19509 linux
*) haveit
=yes;;
19513 if test -z "$haveit"; then
19515 for x
in $LDFLAGS $LIBXXHASH; do
19517 acl_save_prefix
="$prefix"
19518 prefix
="$acl_final_prefix"
19519 acl_save_exec_prefix
="$exec_prefix"
19520 exec_prefix
="$acl_final_exec_prefix"
19522 exec_prefix
="$acl_save_exec_prefix"
19523 prefix
="$acl_save_prefix"
19525 if test "X$x" = "X-L$additional_libdir"; then
19530 if test -z "$haveit"; then
19531 if test -d "$additional_libdir"; then
19532 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$additional_libdir"
19536 for x
in $LDFLAGS $LTLIBXXHASH; do
19538 acl_save_prefix
="$prefix"
19539 prefix
="$acl_final_prefix"
19540 acl_save_exec_prefix
="$exec_prefix"
19541 exec_prefix
="$acl_final_exec_prefix"
19543 exec_prefix
="$acl_save_exec_prefix"
19544 prefix
="$acl_save_prefix"
19546 if test "X$x" = "X-L$additional_libdir"; then
19551 if test -z "$haveit"; then
19552 if test -d "$additional_libdir"; then
19553 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$additional_libdir"
19560 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
19561 if test "$enable_rpath" != no
; then
19563 for x
in $rpathdirs; do
19564 if test "X$x" = "X$dir"; then
19569 if test -z "$haveit"; then
19570 rpathdirs
="$rpathdirs $dir"
19573 for x
in $ltrpathdirs; do
19574 if test "X$x" = "X$dir"; then
19579 if test -z "$haveit"; then
19580 ltrpathdirs
="$ltrpathdirs $dir"
19585 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19588 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19591 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$dep"
19592 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$dep"
19598 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
19599 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
19600 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l$name"
19602 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l:lib$name.$libext"
19603 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l:lib$name.$libext"
19610 if test "X$rpathdirs" != "X"; then
19611 if test -n "$hardcode_libdir_separator"; then
19613 for found_dir
in $rpathdirs; do
19614 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
19616 acl_save_libdir
="$libdir"
19618 eval flag
=\"$hardcode_libdir_flag_spec\"
19619 libdir
="$acl_save_libdir"
19620 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
19622 for found_dir
in $rpathdirs; do
19623 acl_save_libdir
="$libdir"
19624 libdir
="$found_dir"
19625 eval flag
=\"$hardcode_libdir_flag_spec\"
19626 libdir
="$acl_save_libdir"
19627 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
19631 if test "X$ltrpathdirs" != "X"; then
19632 for found_dir
in $ltrpathdirs; do
19633 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-R$found_dir"
19638 ac_save_CPPFLAGS
="$CPPFLAGS"
19640 for element
in $INCXXHASH; do
19642 for x
in $CPPFLAGS; do
19644 acl_save_prefix
="$prefix"
19645 prefix
="$acl_final_prefix"
19646 acl_save_exec_prefix
="$exec_prefix"
19647 exec_prefix
="$acl_final_exec_prefix"
19649 exec_prefix
="$acl_save_exec_prefix"
19650 prefix
="$acl_save_prefix"
19652 if test "X$x" = "X$element"; then
19657 if test -z "$haveit"; then
19658 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
19663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxxhash" >&5
19664 $as_echo_n "checking for libxxhash... " >&6; }
19665 if ${ac_cv_libxxhash+:} false
; then :
19666 $as_echo_n "(cached) " >&6
19669 ac_save_LIBS
="$LIBS"
19670 LIBS
="$LIBS $LIBXXHASH"
19671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19672 /* end confdefs.h. */
19673 #include <xxhash.h>
19677 XXH32("foo", 3, 0);
19683 if ac_fn_c_try_link
"$LINENO"; then :
19684 ac_cv_libxxhash
=yes
19688 rm -f core conftest.err conftest.
$ac_objext \
19689 conftest
$ac_exeext conftest.
$ac_ext
19690 LIBS
="$ac_save_LIBS"
19693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxxhash" >&5
19694 $as_echo "$ac_cv_libxxhash" >&6; }
19695 if test "$ac_cv_libxxhash" = yes; then
19698 $as_echo "#define HAVE_LIBXXHASH 1" >>confdefs.h
19700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libxxhash" >&5
19701 $as_echo_n "checking how to link with libxxhash... " >&6; }
19702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXXHASH" >&5
19703 $as_echo "$LIBXXHASH" >&6; }
19706 CPPFLAGS
="$ac_save_CPPFLAGS"
19716 if test "$HAVE_LIBXXHASH" != yes; then
19717 if test "$with_xxhash" = yes; then
19718 as_fn_error $?
"xxhash is missing or unusable" "$LINENO" 5
19721 if test "x$with_xxhash" = "xauto"; then
19722 with_xxhash
="$HAVE_LIBXXHASH"
19726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
19727 $as_echo_n "checking whether to use xxhash... " >&6; }
19728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
19729 $as_echo "$with_xxhash" >&6; }
19733 if test "${nativefile}" != ""; then
19734 case "${nativefile}" in
19735 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
19736 * ) GDB_NM_FILE
="${nativefile}"
19738 ac_config_links
="$ac_config_links nm.h:$GDB_NM_FILE"
19741 cat >>confdefs.h
<<_ACEOF
19742 #define GDB_NM_FILE "${GDB_NM_FILE}"
19750 for ac_prog
in xsltproc
19752 # Extract the first word of "$ac_prog", so it can be a program name with args.
19753 set dummy
$ac_prog; ac_word
=$2
19754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19755 $as_echo_n "checking for $ac_word... " >&6; }
19756 if ${ac_cv_path_XSLTPROC+:} false
; then :
19757 $as_echo_n "(cached) " >&6
19761 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
19764 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19765 for as_dir
in $PATH
19768 test -z "$as_dir" && as_dir
=.
19769 for ac_exec_ext
in '' $ac_executable_extensions; do
19770 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19771 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
19772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19782 XSLTPROC
=$ac_cv_path_XSLTPROC
19783 if test -n "$XSLTPROC"; then
19784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19785 $as_echo "$XSLTPROC" >&6; }
19787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19788 $as_echo "no" >&6; }
19792 test -n "$XSLTPROC" && break
19794 test -n "$XSLTPROC" || XSLTPROC
="missing"
19796 if test "x$USE_MAINTAINER_MODE" = xyes
; then
19797 if test "${XSLTPROC}" = missing
; then
19798 as_fn_error $?
"unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
19806 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
19810 # Check whether we will enable the inclusion of unit tests when
19813 # The default value of this option changes depending whether we're on
19814 # development mode (in which case it's "true") or not (in which case
19815 # it's "false"). The $development variable is set by the GDB_AC_COMMON
19816 # macro, which must therefore be used before GDB_AC_SELFTEST.
19818 if test "x$development" != xtrue
&& test "x$development" != xfalse
; then :
19819 as_fn_error $?
"Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
19822 # Check whether --enable-unit-tests was given.
19823 if test "${enable_unit_tests+set}" = set; then :
19824 enableval
=$enable_unit_tests; case "${enableval}" in
19825 yes) enable_unittests
=true
;;
19826 no
) enable_unittests
=false
;;
19827 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
19830 enable_unittests
=$development
19834 if $enable_unittests; then
19836 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
19839 CONFIG_OBS
="$CONFIG_OBS \$(SELFTESTS_OBS)"
19840 CONFIG_SRCS
="$CONFIG_SRCS \$(SELFTESTS_SRCS)"
19846 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19847 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$gdb_ac_transform"`
19848 if test "x$GDB_TRANSFORM_NAME" = x
; then
19849 GDB_TRANSFORM_NAME
=gdb
19854 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19855 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$gdb_ac_transform"`
19856 if test "x$GCORE_TRANSFORM_NAME" = x
; then
19857 GCORE_TRANSFORM_NAME
=gcore
19861 ac_config_files
="$ac_config_files gcore"
19863 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
19866 cat >confcache
<<\_ACEOF
19867 # This file is a shell script that caches the results of configure
19868 # tests run on this system so they can be shared between configure
19869 # scripts and configure runs, see configure's option --config-cache.
19870 # It is not useful on other systems. If it contains results you don't
19871 # want to keep, you may remove or edit it.
19873 # config.status only pays attention to the cache file if you give it
19874 # the --recheck option to rerun configure.
19876 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19877 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19878 # following values.
19882 # The following way of writing the cache mishandles newlines in values,
19883 # but we know of no workaround that is simple, portable, and efficient.
19884 # So, we kill variables containing newlines.
19885 # Ultrix sh set writes to stderr and can't be redirected directly,
19886 # and sets the high bit in the cache file unless we assign to the vars.
19888 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19889 eval ac_val
=\$
$ac_var
19893 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19894 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19897 _ | IFS | as_nl
) ;; #(
19898 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
19899 *) { eval $ac_var=; unset $ac_var;} ;;
19905 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19906 *${as_nl}ac_space
=\
*)
19907 # `set' does not quote correctly, so add quotes: double-quote
19908 # substitution turns \\\\ into \\, and sed turns \\ into \.
19911 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19914 # `set' quotes correctly as required by POSIX, so do not add quotes.
19915 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19924 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19926 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19928 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
19929 if test -w "$cache_file"; then
19930 if test "x$cache_file" != "x/dev/null"; then
19931 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19932 $as_echo "$as_me: updating cache $cache_file" >&6;}
19933 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
19934 cat confcache
>"$cache_file"
19936 case $cache_file in #(
19938 mv -f confcache
"$cache_file"$$
&&
19939 mv -f "$cache_file"$$
"$cache_file" ;; #(
19941 mv -f confcache
"$cache_file" ;;
19946 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19947 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19952 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19953 # Let make expand exec_prefix.
19954 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19956 DEFS
=-DHAVE_CONFIG_H
19961 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19962 # 1. Remove the extension, and $U if already installed.
19963 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
19964 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
19965 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19966 # will be set to the directory where LIBOBJS objects are built.
19967 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19968 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
19970 LIBOBJS
=$ac_libobjs
19972 LTLIBOBJS
=$ac_ltlibobjs
19975 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19976 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
19977 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19979 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
19980 as_fn_error $?
"conditional \"HAVE_PYTHON\" was never defined.
19981 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19983 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
19984 as_fn_error $?
"conditional \"HAVE_GUILE\" was never defined.
19985 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19989 : "${CONFIG_STATUS=./config.status}"
19991 ac_clean_files_save
=$ac_clean_files
19992 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19993 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19994 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19996 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19998 # Generated by $as_me.
19999 # Run this file to recreate the current configuration.
20000 # Compiler output produced by configure, useful for debugging
20001 # configure, is in config.log if it exists.
20004 ac_cs_recheck=false
20007 SHELL=\${CONFIG_SHELL-$SHELL}
20010 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
20011 ## -------------------- ##
20012 ## M4sh Initialization. ##
20013 ## -------------------- ##
20015 # Be more Bourne compatible
20016 DUALCASE
=1; export DUALCASE
# for MKS sh
20017 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20020 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20021 # is contrary to our usage. Disable this feature.
20022 alias -g '${1+"$@"}'='"$@"'
20023 setopt NO_GLOB_SUBST
20025 case `(set -o) 2>/dev/null` in #(
20037 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20038 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20039 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20040 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20041 # Prefer a ksh shell builtin over an external printf program on Solaris,
20042 # but without wasting forks for bash or zsh.
20043 if test -z "$BASH_VERSION$ZSH_VERSION" \
20044 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20045 as_echo='print
-r --'
20046 as_echo_n='print
-rn --'
20047 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20048 as_echo='printf %s
\n'
20049 as_echo_n='printf %s
'
20051 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20052 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
20053 as_echo_n='/usr
/ucb
/echo -n'
20055 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20056 as_echo_n_body='eval
20060 expr "X$arg" : "X\\(.*\\)$as_nl";
20061 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20063 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
20065 export as_echo_n_body
20066 as_echo_n='sh
-c $as_echo_n_body as_echo
'
20068 export as_echo_body
20069 as_echo='sh
-c $as_echo_body as_echo
'
20072 # The user is always right.
20073 if test "${PATH_SEPARATOR+set}" != set; then
20075 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20076 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20083 # We need space, tab and new line, in precisely that order. Quoting is
20084 # there to prevent editors from complaining about space-tab.
20085 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20086 # splitting by setting IFS to empty value.)
20089 # Find who we are. Look in the path if we contain no directory separator.
20092 *[\\/]* ) as_myself=$0 ;;
20093 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20094 for as_dir in $PATH
20097 test -z "$as_dir" && as_dir=.
20098 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20104 # We did not find ourselves, most probably we were run as `sh COMMAND'
20105 # in which case we are not to be found in the path.
20106 if test "x$as_myself" = x
; then
20109 if test ! -f "$as_myself"; then
20110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20114 # Unset variables that we do not need and which cause bugs (e.g. in
20115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20116 # suppresses any "Segmentation fault" message there. '((' could
20117 # trigger a bug in pdksh 5.2.14.
20118 for as_var
in BASH_ENV ENV MAIL MAILPATH
20119 do eval test x\
${$as_var+set} = xset \
20120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
20133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
20136 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20137 # ----------------------------------------
20138 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20139 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20140 # script with STATUS, using 1 if that was 0.
20143 as_status
=$1; test $as_status -eq 0 && as_status
=1
20145 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
20146 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20148 $as_echo "$as_me: error: $2" >&2
20149 as_fn_exit
$as_status
20153 # as_fn_set_status STATUS
20154 # -----------------------
20155 # Set $? to STATUS, without forking.
20156 as_fn_set_status
()
20159 } # as_fn_set_status
20161 # as_fn_exit STATUS
20162 # -----------------
20163 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20167 as_fn_set_status
$1
20173 # Portably unset VAR.
20176 { eval $1=; unset $1;}
20178 as_unset
=as_fn_unset
20179 # as_fn_append VAR VALUE
20180 # ----------------------
20181 # Append the text in VALUE to the end of the definition contained in VAR. Take
20182 # advantage of any shell optimizations that allow amortized linear growth over
20183 # repeated appends, instead of the typical quadratic growth present in naive
20185 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
20186 eval 'as_fn_append ()
20197 # as_fn_arith ARG...
20198 # ------------------
20199 # Perform arithmetic evaluation on the ARGs, and store the result in the
20200 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20201 # must be portable across $(()) and expr.
20202 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
20203 eval 'as_fn_arith ()
20210 as_val
=`expr "$@" || test $? -eq 1`
20215 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20216 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20222 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20223 as_basename
=basename
20228 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
20234 as_me
=`$as_basename -- "$0" ||
20235 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20236 X"$0" : 'X\(//\)$' \| \
20237 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20239 sed '/^.*\/\([^/][^/]*\)\/*$/{
20253 # Avoid depending upon Character Ranges.
20254 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
20255 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20256 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
20257 as_cr_digits
='0123456789'
20258 as_cr_alnum
=$as_cr_Letters$as_cr_digits
20260 ECHO_C
= ECHO_N
= ECHO_T
=
20261 case `echo -n x` in #(((((
20263 case `echo 'xy\c'` in
20264 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
20266 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
20273 rm -f conf$$ conf$$.exe conf$$.
file
20274 if test -d conf$$.dir
; then
20275 rm -f conf$$.dir
/conf$$.
file
20278 mkdir conf$$.dir
2>/dev
/null
20280 if (echo >conf$$.
file) 2>/dev
/null
; then
20281 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20283 # ... but there are two gotchas:
20284 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20285 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20286 # In both cases, we have to default to `cp -pR'.
20287 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
20289 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20297 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
20298 rmdir conf$$.dir
2>/dev
/null
20303 # Create "$as_dir" as a directory, including parents if necessary.
20308 -*) as_dir
=.
/$as_dir;;
20310 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
20314 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20315 *) as_qdir
=$as_dir;;
20317 as_dirs
="'$as_qdir' $as_dirs"
20318 as_dir
=`$as_dirname -- "$as_dir" ||
20319 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20320 X"$as_dir" : 'X\(//\)[^/]' \| \
20321 X"$as_dir" : 'X\(//\)$' \| \
20322 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20323 $as_echo X"$as_dir" |
20324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20328 /^X\(\/\/\)[^/].*/{
20341 test -d "$as_dir" && break
20343 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
20344 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
20348 if mkdir
-p .
2>/dev
/null
; then
20349 as_mkdir_p
='mkdir -p "$as_dir"'
20351 test -d .
/-p && rmdir .
/-p
20356 # as_fn_executable_p FILE
20357 # -----------------------
20358 # Test if FILE is an executable regular file.
20359 as_fn_executable_p
()
20361 test -f "$1" && test -x "$1"
20362 } # as_fn_executable_p
20363 as_test_x
='test -x'
20364 as_executable_p
=as_fn_executable_p
20366 # Sed expression to map a string onto a valid CPP name.
20367 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20369 # Sed expression to map a string onto a valid variable name.
20370 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20374 ## ----------------------------------- ##
20375 ## Main body of $CONFIG_STATUS script. ##
20376 ## ----------------------------------- ##
20378 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
20380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20381 # Save the log message, to keep $0 and so on meaningful, and to
20382 # report actual input values of CONFIG_FILES etc. instead of their
20383 # values after options handling.
20385 This file was extended by $as_me, which was
20386 generated by GNU Autoconf 2.69. Invocation command line was
20388 CONFIG_FILES = $CONFIG_FILES
20389 CONFIG_HEADERS = $CONFIG_HEADERS
20390 CONFIG_LINKS = $CONFIG_LINKS
20391 CONFIG_COMMANDS = $CONFIG_COMMANDS
20394 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20399 case $ac_config_files in *"
20400 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
20403 case $ac_config_headers in *"
20404 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
20408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20409 # Files that config.status was made for.
20410 config_files="$ac_config_files"
20411 config_headers="$ac_config_headers"
20412 config_links="$ac_config_links"
20413 config_commands="$ac_config_commands"
20417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20419 \`$as_me' instantiates files and other configuration actions
20420 from templates according to the current configuration. Unless the files
20421 and actions are specified as TAGs, all are instantiated by default.
20423 Usage: $0 [OPTION]... [TAG]...
20425 -h, --help print this help, then exit
20426 -V, --version print version number and configuration settings, then exit
20427 --config print configuration, then exit
20428 -q, --quiet, --silent
20429 do not print progress messages
20430 -d, --debug don't remove temporary files
20431 --recheck update $as_me by reconfiguring in the same conditions
20432 --file=FILE[:TEMPLATE]
20433 instantiate the configuration file FILE
20434 --header=FILE[:TEMPLATE]
20435 instantiate the configuration header FILE
20437 Configuration files:
20440 Configuration headers:
20443 Configuration links:
20446 Configuration commands:
20449 Report bugs to the package provider."
20452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20453 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20456 configured by $0, generated by GNU Autoconf 2.69,
20457 with options \\"\$ac_cs_config\\"
20459 Copyright (C) 2012 Free Software Foundation, Inc.
20460 This config.status script is free software; the Free Software Foundation
20461 gives unlimited permission to copy, distribute and modify it."
20467 test -n "\$AWK" || AWK=awk
20470 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20471 # The default lists apply if the user does not specify any file.
20477 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20478 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
20482 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20494 # Handling of the options.
20495 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20497 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
20498 $as_echo "$ac_cs_version"; exit ;;
20499 --config |
--confi |
--conf |
--con |
--co |
--c )
20500 $as_echo "$ac_cs_config"; exit ;;
20501 --debug |
--debu |
--deb |
--de |
--d |
-d )
20503 --file |
--fil |
--fi |
--f )
20506 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20507 '') as_fn_error $?
"missing file argument" ;;
20509 as_fn_append CONFIG_FILES
" '$ac_optarg'"
20510 ac_need_defaults
=false
;;
20511 --header |
--heade |
--head |
--hea )
20514 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20516 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
20517 ac_need_defaults
=false
;;
20519 # Conflict between --help and --header
20520 as_fn_error $?
"ambiguous option: \`$1'
20521 Try \`$0 --help' for more information.";;
20522 --help |
--hel |
-h )
20523 $as_echo "$ac_cs_usage"; exit ;;
20524 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20525 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20528 # This is an error.
20529 -*) as_fn_error $?
"unrecognized option: \`$1'
20530 Try \`$0 --help' for more information." ;;
20532 *) as_fn_append ac_config_targets
" $1"
20533 ac_need_defaults
=false
;;
20539 ac_configure_extra_args
=
20541 if $ac_cs_silent; then
20543 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20547 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20548 if \$ac_cs_recheck; then
20549 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20551 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20552 CONFIG_SHELL='$SHELL'
20553 export CONFIG_SHELL
20558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20562 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20563 ## Running $as_me. ##
20569 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20573 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
20574 GDB_NM_FILE=$GDB_NM_FILE
20578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20580 # Handling of arguments.
20581 for ac_config_target
in $ac_config_targets
20583 case $ac_config_target in
20584 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
20585 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
20586 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
20587 "nm.h") CONFIG_LINKS
="$CONFIG_LINKS nm.h:$GDB_NM_FILE" ;;
20588 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
20589 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20590 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
20591 "gdb-gdb.py") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.py" ;;
20592 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
20593 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
20595 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20600 # If the user did not use the arguments to specify the items to instantiate,
20601 # then the envvar interface is used. Set only those that are not.
20602 # We use the long form for the default assignment because of an extremely
20603 # bizarre bug on SunOS 4.1.3.
20604 if $ac_need_defaults; then
20605 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20606 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20607 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
20608 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20611 # Have a temporary directory for convenience. Make it in the build tree
20612 # simply because there is no reason against having it here, and in addition,
20613 # creating and moving files from /tmp can sometimes cause problems.
20614 # Hook for its removal unless debugging.
20615 # Note that there is a small window in which the directory will not be cleaned:
20616 # after its creation but before its name has been assigned to `$tmp'.
20620 trap 'exit_status=$?
20621 : "${ac_tmp:=$tmp}"
20622 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20624 trap 'as_fn_exit 1' 1 2 13 15
20626 # Create a (secure) tmp directory for tmp files.
20629 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20633 tmp
=.
/conf$$
-$RANDOM
20634 (umask 077 && mkdir
"$tmp")
20635 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
20638 # Set up the scripts for CONFIG_FILES section.
20639 # No need to generate them if there are no CONFIG_FILES.
20640 # This happens for instance with `./config.status config.h'.
20641 if test -n "$CONFIG_FILES"; then
20643 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
20644 ac_cs_awk_getline
=:
20645 ac_cs_awk_pipe_init
=
20646 ac_cs_awk_read_file
='
20647 while ((getline aline < (F[key])) > 0)
20650 ac_cs_awk_pipe_fini
=
20652 ac_cs_awk_getline
=false
20653 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
20654 ac_cs_awk_read_file
='
20656 print "cat " F[key] " &&"
20657 '$ac_cs_awk_pipe_init
20658 # The final `:' finishes the AND list.
20659 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
20661 ac_cr
=`echo X | tr X '\015'`
20662 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20663 # But we know of no other shell where ac_cr would be empty at this
20664 # point, so we can use a bashism as a fallback.
20665 if test "x$ac_cr" = x
; then
20666 eval ac_cr
=\$
\'\\r
\'
20668 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20669 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20672 ac_cs_awk_cr
=$ac_cr
20675 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20678 # Create commands to substitute file output variables.
20680 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20681 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
20682 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
20685 } >conf$
$files.sh
&&
20686 . .
/conf$
$files.sh ||
20687 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
20688 rm -f conf$
$files.sh
20691 echo "cat >conf$$subs.awk <<_ACEOF" &&
20692 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20694 } >conf$$subs.sh ||
20695 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20696 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20698 for ac_last_try in false false false false false :; do
20699 . ./conf$$subs.sh ||
20700 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20702 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
20703 if test $ac_delim_n = $ac_delim_num; then
20705 elif $ac_last_try; then
20706 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20708 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20711 rm -f conf$$subs.sh
20713 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20714 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
20718 s/^/S["/; s
/!.
*/"]=/
20728 s/\(.\{148\}\)..*/\1/
20730 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
20735 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20742 s/\(.\{148\}\)..*/\1/
20744 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
20748 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20753 ' <conf$$subs.awk | sed '
20758 ' >>$CONFIG_STATUS || ac_write_fail=1
20759 rm -f conf$$subs.awk
20760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20762 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
20763 for (key in S) S_is_set[key] = 1
20765 \$ac_cs_awk_pipe_init
20769 nfields = split(line, field, "@
")
20771 len = length(field[1])
20772 for (i = 2; i < nfields; i++) {
20774 keylen = length(key)
20775 if (S_is_set[key]) {
20777 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20778 len += length(value) + length(field[++i])
20783 if (nfields == 3 && !substed) {
20785 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
20786 \$ac_cs_awk_read_file
20792 \$ac_cs_awk_pipe_fini
20795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20796 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20797 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
20800 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
20801 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
20804 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20805 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
20806 # trailing colons and then remove the whole line if VPATH becomes empty
20807 # (actually we leave an empty line to preserve line numbers).
20808 if test "x
$srcdir" = x.; then
20809 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20828 fi # test -n "$CONFIG_FILES"
20830 # Set up the scripts for CONFIG_HEADERS section.
20831 # No need to generate them if there are no CONFIG_HEADERS.
20832 # This happens for instance with `./config.status Makefile'.
20833 if test -n "$CONFIG_HEADERS"; then
20834 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
20838 # Transform confdefs.h into an awk script `defines.awk', embedded as
20839 # here-document in config.status, that substitutes the proper values into
20840 # config.h.in to produce config.h.
20842 # Create a delimiter string that does not exist in confdefs.h, to ease
20843 # handling of long lines.
20845 for ac_last_try in false false :; do
20846 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
20847 if test -z "$ac_tt"; then
20849 elif $ac_last_try; then
20850 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
20852 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20856 # For the awk script, D is an array of macro values keyed by name,
20857 # likewise P contains macro parameters if any. Preserve backslash
20858 # newline sequences.
20860 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20862 s/.\{148\}/&'"$ac_delim"'/g
20865 s/^[ ]*#[ ]*define[ ][ ]*/ /
20872 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
20874 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
20878 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
20879 D["\
1"]=" \
3\\\\\\n
"\\/p
20881 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
20886 s/.\{148\}/&'"$ac_delim"'/g
20891 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
20894 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
20896 ' <confdefs.h | sed '
20897 s/'"$ac_delim"'/"\\\
20898 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20900 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20901 for (key in D) D_is_set[key] = 1
20904 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20906 split(line, arg, " ")
20907 if (arg[1] == "#") {
20911 defundef
= substr
(arg
[1], 2)
20914 split(mac1
, mac2
, "(") #)
20916 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
20917 if (D_is_set
[macro
]) {
20918 # Preserve the white space surrounding the "#".
20919 print prefix
"define", macro P
[macro
] D
[macro
]
20922 # Replace #undef with comments. This is necessary, for example,
20923 # in the case of _POSIX_SOURCE, which is predefined and required
20924 # on some systems where configure will not decide to define it.
20925 if (defundef
== "undef") {
20926 print
"/*", prefix defundef
, macro
, "*/"
20934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20935 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
20936 fi # test -n "$CONFIG_HEADERS"
20939 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
20944 :[FHLC
]) ac_mode
=$ac_tag; continue;;
20946 case $ac_mode$ac_tag in
20948 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
20949 :[FH
]-) ac_tag
=-:-;;
20950 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
20967 -) ac_f
="$ac_tmp/stdin";;
20968 *) # Look for the file first in the build tree, then in the source tree
20969 # (if the path is not absolute). The absolute path cannot be DOS-style,
20970 # because $ac_f cannot contain `:'.
20974 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
20976 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20978 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20979 as_fn_append ac_file_inputs
" '$ac_f'"
20982 # Let's still pretend it is `configure' which instantiates (i.e., don't
20983 # use $as_me), people would be surprised to read:
20984 # /* config.h. Generated by config.status. */
20985 configure_input
='Generated from '`
20986 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20988 if test x
"$ac_file" != x-
; then
20989 configure_input
="$ac_file. $configure_input"
20990 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20991 $as_echo "$as_me: creating $ac_file" >&6;}
20993 # Neutralize special characters interpreted by sed in replacement strings.
20994 case $configure_input in #(
20995 *\
&* |
*\|
* |
*\\* )
20996 ac_sed_conf_input
=`$as_echo "$configure_input" |
20997 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20998 *) ac_sed_conf_input
=$configure_input;;
21002 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
21003 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
21008 ac_dir
=`$as_dirname -- "$ac_file" ||
21009 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21010 X"$ac_file" : 'X\(//\)[^/]' \| \
21011 X"$ac_file" : 'X\(//\)$' \| \
21012 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21013 $as_echo X"$ac_file" |
21014 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21018 /^X\(\/\/\)[^/].*/{
21031 as_dir
="$ac_dir"; as_fn_mkdir_p
21035 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21037 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21038 # A ".." for each directory in $ac_dir_suffix.
21039 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21040 case $ac_top_builddir_sub in
21041 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21042 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
21045 ac_abs_top_builddir
=$ac_pwd
21046 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
21047 # for backward compatibility:
21048 ac_top_builddir
=$ac_top_build_prefix
21051 .
) # We are building in place.
21053 ac_top_srcdir
=$ac_top_builddir_sub
21054 ac_abs_top_srcdir
=$ac_pwd ;;
21055 [\\/]* | ?
:[\\/]* ) # Absolute name.
21056 ac_srcdir
=$srcdir$ac_dir_suffix;
21057 ac_top_srcdir
=$srcdir
21058 ac_abs_top_srcdir
=$srcdir ;;
21059 *) # Relative name.
21060 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
21061 ac_top_srcdir
=$ac_top_build_prefix$srcdir
21062 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
21064 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
21074 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
21075 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
21079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21080 # If the template does not know about datarootdir, expand it.
21081 # FIXME: This hack should be removed a few years after 2.60.
21082 ac_datarootdir_hack
=; ac_datarootdir_seen
=
21093 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21094 *datarootdir
*) ac_datarootdir_seen
=yes;;
21095 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
21096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21097 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21099 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21100 ac_datarootdir_hack='
21101 s&@datadir@&$datadir&g
21102 s&@docdir@&$docdir&g
21103 s&@infodir@&$infodir&g
21104 s&@localedir@&$localedir&g
21105 s&@mandir@&$mandir&g
21106 s&\\\${datarootdir}&$datarootdir&g' ;;
21110 # Neutralize VPATH when `$srcdir' = `.'.
21111 # Shell code in configure.ac might set extrasub.
21112 # FIXME: do we really want to maintain this feature?
21113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21114 ac_sed_extra="$ac_vpsub
21117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21119 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
21120 s|@configure_input@|
$ac_sed_conf_input|
;t t
21121 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
21122 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
21123 s
&@srcdir@
&$ac_srcdir&;t t
21124 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
21125 s
&@top_srcdir@
&$ac_top_srcdir&;t t
21126 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
21127 s
&@builddir@
&$ac_builddir&;t t
21128 s
&@abs_builddir@
&$ac_abs_builddir&;t t
21129 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
21130 s
&@INSTALL@
&$ac_INSTALL&;t t
21131 $ac_datarootdir_hack
21133 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
21134 if $ac_cs_awk_getline; then
21135 $AWK -f "$ac_tmp/subs.
awk"
21137 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
21139 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
21141 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21142 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
21143 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21144 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
21145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
21146 which seems to be undefined. Please make sure it is defined" >&5
21147 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
21148 which seems to be undefined. Please make sure it is defined" >&2;}
21150 rm -f "$ac_tmp/stdin"
21152 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21153 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21155 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21161 if test x"$ac_file" != x-; then
21163 $as_echo "/* $configure_input */" \
21164 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21165 } >"$ac_tmp/config.h" \
21166 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21167 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21168 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21169 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21172 mv "$ac_tmp/config.h" "$ac_file" \
21173 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21176 $as_echo "/* $configure_input */" \
21177 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21178 || as_fn_error $? "could not create -" "$LINENO" 5
21186 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
21189 # Prefer the file from the source tree if names are identical.
21190 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
21191 ac_source=$srcdir/$ac_source
21194 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
21195 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
21197 if test ! -r "$ac_source"; then
21198 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
21202 # Try a relative symlink, then a hard link, then a copy.
21204 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
21205 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
21207 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
21208 ln "$ac_source" "$ac_file" 2>/dev/null ||
21209 cp -p "$ac_source" "$ac_file" ||
21210 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
21213 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21214 $as_echo "$as_me: executing $ac_file commands" >&6;}
21219 case $ac_file$ac_mode in
21220 "config.h":H) echo > stamp-h ;;
21221 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
21222 "nm.h":L) echo > stamp-nmh ;;
21223 "gcore":F) chmod +x gcore ;;
21231 ac_clean_files=$ac_clean_files_save
21233 test $ac_write_fail = 0 ||
21234 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21237 # configure is writing to config.log, and then calls config.status.
21238 # config.status does its own redirection, appending to config.log.
21239 # Unfortunately, on DOS this fails, as config.log is still kept open
21240 # by configure, so config.status won't be able to
write to it
; its
21241 # output is simply discarded. So we exec the FD to /dev/null,
21242 # effectively closing config.log, so it can be properly (re)opened and
21243 # appended to by config.status. When coming back to configure, we
21244 # need to make the FD available again.
21245 if test "$no_create" != yes; then
21247 ac_config_status_args
=
21248 test "$silent" = yes &&
21249 ac_config_status_args
="$ac_config_status_args --quiet"
21251 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21253 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21254 # would make configure fail if this is the last instruction.
21255 $ac_cs_success || as_fn_exit
1
21259 # CONFIG_SUBDIRS section.
21261 if test "$no_recursion" != yes; then
21263 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
21264 # so they do not pile up.
21265 ac_sub_configure_args
=
21267 eval "set x $ac_configure_args"
21271 if test -n "$ac_prev"; then
21276 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
21277 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
21278 ac_prev
=cache_file
;;
21279 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
21280 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
21283 --config-cache |
-C)
21285 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
21287 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
21289 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
21291 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
21293 --disable-option-checking)
21297 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21299 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
21303 # Always prepend --prefix to ensure using the same prefix
21304 # in subdir configurations.
21305 ac_arg
="--prefix=$prefix"
21307 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21309 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
21312 if test "$silent" = yes; then
21313 ac_sub_configure_args
="--silent $ac_sub_configure_args"
21316 # Always prepend --disable-option-checking to silence warnings, since
21317 # different subdirs can have different --enable and --with options.
21318 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
21321 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
21323 # Do not complain, so a configure script can configure whichever
21324 # parts of a large source tree are present.
21325 test -d "$srcdir/$ac_dir" ||
continue
21327 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21328 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
21329 $as_echo "$ac_msg" >&6
21330 as_dir
="$ac_dir"; as_fn_mkdir_p
21334 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21336 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21337 # A ".." for each directory in $ac_dir_suffix.
21338 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21339 case $ac_top_builddir_sub in
21340 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21341 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
21344 ac_abs_top_builddir
=$ac_pwd
21345 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
21346 # for backward compatibility:
21347 ac_top_builddir
=$ac_top_build_prefix
21350 .
) # We are building in place.
21352 ac_top_srcdir
=$ac_top_builddir_sub
21353 ac_abs_top_srcdir
=$ac_pwd ;;
21354 [\\/]* | ?
:[\\/]* ) # Absolute name.
21355 ac_srcdir
=$srcdir$ac_dir_suffix;
21356 ac_top_srcdir
=$srcdir
21357 ac_abs_top_srcdir
=$srcdir ;;
21358 *) # Relative name.
21359 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
21360 ac_top_srcdir
=$ac_top_build_prefix$srcdir
21361 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
21363 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
21368 # Check for guested configure; otherwise get Cygnus style configure.
21369 if test -f "$ac_srcdir/configure.gnu"; then
21370 ac_sub_configure
=$ac_srcdir/configure.gnu
21371 elif test -f "$ac_srcdir/configure"; then
21372 ac_sub_configure
=$ac_srcdir/configure
21373 elif test -f "$ac_srcdir/configure.in"; then
21374 # This should be Cygnus configure.
21375 ac_sub_configure
=$ac_aux_dir/configure
21377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
21378 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21382 # The recursion is here.
21383 if test -n "$ac_sub_configure"; then
21384 # Make the cache file name correct relative to the subdirectory.
21385 case $cache_file in
21386 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
21387 *) # Relative name.
21388 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
21391 { $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
21392 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21393 # The eval makes quoting arguments work.
21394 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21395 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21396 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
21402 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
21403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21404 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}